"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)([0xc080, ]);
/*

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

 Copyright Google LLC
 SPDX-License-Identifier: Apache-2.0
*/
/*

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

 The MIT License

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

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

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

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


 Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
     http://www.apache.org/licenses/LICENSE-2.0
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
*/
/*
 @license
 Copyright Google LLC All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.dev/license
*/
/*
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
/*

 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.
*/
var g,ba=function(a){a.isGuard_doNotManuallySetPrettyPlease=!0;return a},baa=function(){var a=aaa;return ba(function(b){for(var c in a)if(b===a[c]&&!/^[0-9]+$/.test(c))return!0;return!1})},daa=function(a){return ba(function(b){return caa(b)?b.every(function(c){return a(c)}):!1})},ca=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,ca);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b);this.reportErrorToServer=!0},eaa=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");ca.call(this,c+a[d])},da=function(a,b){if(a)throw Error("B");b.push(65533)},faa=function(a,b){b=String.fromCharCode.apply(null,b);return a==null?b:a+b},gaa=function(a,b,c,d){c=b+c;for(var e=[],f=null,h,k,q,v;b<c;)h=a[b++],h<128?e.push(h):h<224?b>=c?da(d,e):(k=a[b++],h<194||(k&192)!==128?(b--,da(d,e)):e.push((h&31)<<6|k&63)):h<240?b>=c-1?da(d,e):(k=a[b++],(k&192)!==128||h===224&&k<160||h===237&&k>=160||((q=a[b++])&192)!==
128?(b--,da(d,e)):e.push((h&15)<<12|(k&63)<<6|q&63)):h<=244?b>=c-2?da(d,e):(k=a[b++],(k&192)!==128||(h<<28)+(k-144)>>30!==0||((q=a[b++])&192)!==128||((v=a[b++])&192)!==128?(b--,da(d,e)):(h=(h&7)<<18|(k&63)<<12|(q&63)<<6|v&63,h-=65536,e.push((h>>10&1023)+55296,(h&1023)+56320))):da(d,e),e.length>=8192&&(f=faa(f,e),e.length=0);return faa(f,e)},kaa=function(a,b,c,d){var e;d?(e=haa)||(e=haa=new TextDecoder("utf-8",{fatal:!0})):(e=iaa)||(e=iaa=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(jaa===void 0){try{e.decode(new Uint8Array([128]))}catch(h){}try{e.decode(new Uint8Array([97])),jaa=!0}catch(h){jaa=!1}}b=!jaa}b&&(haa=void 0);throw f;}},oaa=function(a,b){b=b===void 0?!1:b;if(laa){if(b&&(maa?!a.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a)))throw Error("C");a=(naa||(naa=new TextEncoder)).encode(a)}else{for(var c=0,d=new Uint8Array(3*a.length),e=0;e<a.length;e++){var f=
a.charCodeAt(e);if(f<128)d[c++]=f;else{if(f<2048)d[c++]=f>>6|192;else{if(f>=55296&&f<=57343){if(f<=56319&&e<a.length){var h=a.charCodeAt(++e);if(h>=56320&&h<=57343){f=(f-55296)*1024+h-56320+65536;d[c++]=f>>18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("C");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},fa=function(a){ea.setTimeout(function(){throw a;},0)},ha=function(a,b){var c=a.length-b.length;
return c>=0&&a.indexOf(b,c)==c},paa=function(a){return ia("@ldap.google.com",a.slice(a.length-16))==0},ja=function(a){return/^[\s\xa0]*$/.test(a)},ia=function(a,b){a=String(a).toLowerCase();b=String(b).toLowerCase();return a<b?-1:a==b?0:1},la=function(a,b){return a.indexOf(b)!=-1},ma=function(a,b){return la(a.toLowerCase(),b.toLowerCase())},raa=function(a,b){var c=0;a=oa(String(a)).split(".");b=oa(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&e<d;e++){var f=a[e]||"",h=b[e]||
"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(f[0].length==0&&h[0].length==0)break;c=qaa(f[1].length==0?0:parseInt(f[1],10),h[1].length==0?0:parseInt(h[1],10))||qaa(f[2].length==0,h[2].length==0)||qaa(f[2],h[2]);f=f[3];h=h[3]}while(c==0)}return c},qaa=function(a,b){return a<b?-1:a>b?1:0},pa=function(){var a=ea.navigator;return a&&(a=a.userAgent)?a:""},saa=function(a){if(!qa||!ra)return!1;for(var b=0;b<ra.brands.length;b++){var c=ra.brands[b].brand;if(c&&
la(c,a))return!0}return!1},sa=function(a){return la(pa(),a)},ta=function(){return qa?!!ra&&ra.brands.length>0:!1},taa=function(){return ta()?!1:sa("Opera")},uaa=function(){return ta()?!1:sa("Trident")||sa("MSIE")},va=function(){return sa("Firefox")||sa("FxiOS")},vaa=function(){return sa("Safari")&&!(wa()||(ta()?0:sa("Coast"))||taa()||(ta()?0:sa("Edge"))||(ta()?saa("Microsoft Edge"):sa("Edg/"))||(ta()?saa("Opera"):sa("OPR"))||va()||sa("Silk")||sa("Android"))},wa=function(){return ta()?saa("Chromium"):
(sa("Chrome")||sa("CriOS"))&&!(ta()?0:sa("Edge"))||sa("Silk")},waa=function(){return sa("Android")&&!(wa()||va()||taa()||sa("Silk"))},xaa=function(){var a=pa();if(uaa()){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},yaa=function(){if(ta()){var a=
ra.brands.find(function(b){return b.brand==="Internet Explorer"});if(!a||!a.version)return NaN;a=a.version.split(".")}else{a=xaa();if(a==="")return NaN;a=a.split(".")}return a.length===0?NaN:Number(a[0])},xa=function(){return qa?!!ra&&!!ra.platform:!1},zaa=function(){return xa()?ra.platform==="Android":sa("Android")},Aaa=function(){return sa("iPhone")&&!sa("iPod")&&!sa("iPad")},ya=function(){return Aaa()||sa("iPad")||sa("iPod")},Aa=function(){return xa()?ra.platform==="macOS":sa("Macintosh")},Baa=
function(){return xa()?ra.platform==="Windows":sa("Windows")},Caa=function(){return xa()?ra.platform==="Chrome OS":sa("CrOS")},Daa=function(){var a=pa(),b="";Baa()?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0"):ya()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".")):Aa()?(b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10"):ma(pa(),"KaiOS")?(b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1]):zaa()?(b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&
a[1]):Caa()&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(a=b.exec(a))&&a[1]);return b||""},Ba=function(a){return a[a.length-1]},Eaa=function(a,b){var c=0;Ca(a,function(d,e,f){b.call(void 0,d,e,f)&&++c});return c},Faa=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},Gaa=function(a){if(!Array.isArray(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0},Fa=function(a,b){b=Da(a,b);var c;(c=b>=0)&&Ea(a,b);return c},
Ea=function(a,b){Array.prototype.splice.call(a,b,1)},Ga=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&&Ea(a,b)},Ja=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[]},Haa=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(Ka(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}},Jaa=function(a,b,c,
d){return Array.prototype.splice.apply(a,Iaa(arguments,1))},Iaa=function(a,b,c){return arguments.length<=2?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)},Kaa=function(a,b,c){b=b||a;var d=function(q){return La(q)?"o"+Ma(q):(typeof q).charAt(0)+q};c=c||d;for(var e=d=0,f={};e<a.length;){var h=a[e++],k=c(h);Object.prototype.hasOwnProperty.call(f,k)||(f[k]=!0,b[d++]=h)}b.length=d},Maa=function(a,b){a.sort(b||Laa)},Naa=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||Laa;Maa(c,function(f,h){return e(f.value,h.value)||f.index-h.index});for(b=0;b<a.length;b++)a[b]=c[b].value},Laa=function(a,b){return a>b?1:a<b?-1:0},Oaa=function(){for(var a=[],b=0;b<5;b+=1)a.push(b);return a},Paa=function(a,b,c){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,c,0,b[0])},Raa=function(a){return Qaa[a]||""},Vaa=function(a){if(!Saa)return Taa(a);a=Uaa.test(a)?a.replace(Uaa,Raa):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 Waa&&a!=null&&a instanceof Uint8Array},Xaa=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},Yaa=function(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b},Zaa=function(){var a=Error();Yaa(a,"incident");fa(a)},Qa=function(a){a=Error(a);Yaa(a,"warning");return a},aba=function(a,b){if(a!=null){var c;var d=(c=$aa)!=
null?c:$aa={};c=d[a]||0;c>=b||(d[a]=c+1,Zaa())}},Ra=function(a,b,c){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(c===void 0?0:c)&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol():b},Ua=function(a,b){Sa||Ta in a||bba(a,cba);a[Ta]|=b},Va=function(a,b){Sa||Ta in a||bba(a,cba);a[Ta]=b},dba=function(a){if(4&a)return 512&a?512:1024&a?1024:0},Wa=function(a){Ua(a,34);return a},eba=function(a){Ua(a,32);return a},Xa=function(){return typeof BigInt==="function"},fba=function(a){return a.length==
0?Ya():new Za(a,$a)},db=function(a){return a!=null&&a[ab]===cb},fb=function(a,b){return b===void 0?a.copyOnWrite!==eb&&!!(2&(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[Ta]|0)):!!(2&b)&&a.copyOnWrite!==eb},gb=function(a,b,c){if(a==null){if(!c)throw Error();}else if(typeof a==="string")a=gba(a);else if(a.constructor!==Za)if(Oa(a))a=a.length?new Za(new Uint8Array(a),$a):Ya();else{if(!b)throw Error();a=void 0}return a},hba=function(a){return!Array.isArray(a)||a.length?!1:(a[Ta]|0)&1?!0:
!1},ib=function(a,b){if(typeof b!=="number"||b<0||b>=a.length)throw Error();},iba=function(a,b){if(typeof b!=="number"||b<0||b>a.length)throw Error();},jba=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 h=e+(f?-1:0);for(b=b&128?1:0;b<h;b++)c(b-d,a[b]);if(f){a=a[e-1];for(var k in a)!isNaN(k)&&c(+k,a[k])}},jb=function(a){var b=a;if(kba(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(lba(b)&&!Number.isSafeInteger(b))throw Error(String(b));
return mba?BigInt(a):a=nba(a)?a?"1":"0":kba(a)?a.trim()||"0":String(a)},oba=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}},pba=function(a){var b=a>>>0;kb=b;lb=(a-b)/4294967296>>>0},mb=function(a){if(a<0){pba(-a);var b=l(qba(kb,lb));a=b.next().value;b=b.next().value;kb=a>>>0;lb=b>>>0}else pba(a)},rba=function(a,b){var c=b*4294967296+(a>>>0);return Number.isSafeInteger(c)?c:nb(a,b)},sba=
function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,a==0&&(b=b+1>>>0));a=rba(a,b);return typeof a==="number"?c?-a:a:c?"-"+a:a},nb=function(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else Xa()?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+tba(c)+tba(a));return c},tba=function(a){a=String(a);return"0000000".slice(a.length)+a},uba=
function(){var a=kb,b=lb;b&2147483648?Xa()?a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0)):(b=l(qba(a,b)),a=b.next().value,b=b.next().value,a="-"+nb(a,b)):a=nb(a,b);return a},vba=function(a){if(a.length<16)mb(Number(a));else if(Xa())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(qba(kb,lb)),a=b.next().value,b=b.next().value,kb=a,lb=b)}},qba=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]},ob=function(a){return Array.prototype.slice.call(a)},pb=function(a,b){throw Error(b===void 0?"unexpected value "+a+"!":b);},qb=function(a){if(typeof a!=="number")throw Error("H`"+typeof a+"`"+a);return a},sb=function(a){if(a==null||typeof a==="number")return a;if(a==="NaN"||a==="Infinity"||a==="-Infinity")return Number(a)},vb=function(a){if(typeof a!=="boolean")throw Error("I`"+
ub(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 wba.test(a);default:return!1}},zb=function(a){if(!xb(a))throw Qa("enum");return a|0},xba=function(a){return a==null?a:zb(a)},Ab=function(a){return a==null?a:xb(a)?a|0:void 0},Cb=function(a){if(typeof a!=="number")throw Qa("int32");if(!xb(a))throw Qa("int32");return a|0},Db=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},yba=function(){if(!xb(0))throw Qa("uint32");return 0},zba=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},Hb=function(a,b){b=b===void 0?0:b;if(!yb(a))throw Qa("int64");var c=typeof a;switch(b){case 512:switch(c){case "string":return Eb(a);case "bigint":return String(Fb(64,a));default:return Aba(a)}case 1024:switch(c){case "string":return Bba(a);
case "bigint":return jb(Fb(64,a));default:return Cba(a)}case 0:switch(c){case "string":return Eb(a);case "bigint":return jb(Fb(64,a));default:return Gb(a)}default:return pb(b,"Unknown format requested type for int64")}},Ib=function(a,b){return a==null?a:Hb(a,b===void 0?0:b)},Dba=function(a){if(a[0]==="-")return!1;var b=a.length;return b<20?!0:b===20&&Number(a.substring(0,6))<184467},Eba=function(a){var b=a.length;return a[0]==="-"?b<20?!0:b===20&&Number(a.substring(0,7))>-922337:b<19?!0:b===19&&Number(a.substring(0,
6))<922337},Fba=function(a){if(a<0){mb(a);var b=nb(kb,lb);a=Number(b);return Jb(a)?a:b}b=String(a);if(Dba(b))return b;mb(a);return rba(kb,lb)},Gba=function(a){if(Eba(a))return a;vba(a);return uba()},Hba=function(a){if(Dba(a))return a;vba(a);return nb(kb,lb)},Gb=function(a){a=Kb(a);Jb(a)||(mb(a),a=sba(kb,lb));return a},Iba=function(a){a=Kb(a);return a>=0&&Jb(a)?a:Fba(a)},Aba=function(a){a=Kb(a);if(Jb(a))a=String(a);else{var b=String(a);Eba(b)?a=b:(mb(a),a=uba())}return a},Jba=function(a){a=Kb(a);if(a>=
0&&Jb(a))a=String(a);else{var b=String(a);Dba(b)?a=b:(mb(a),a=nb(kb,lb))}return a},Eb=function(a){var b=Kb(Number(a));if(Jb(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Gba(a)},Bba=function(a){var b=Kb(Number(a));if(Jb(b))return jb(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Xa()?jb(Fb(64,BigInt(a))):jb(Gba(a))},Cba=function(a){return Jb(a)?jb(Gb(a)):jb(Aba(a))},Kba=function(a){return Jb(a)?jb(Iba(a)):jb(Jba(a))},Lba=function(a){var b=Kb(Number(a));if(Jb(b)&&
b>=0)return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Hba(a)},Mba=function(a){var b=Kb(Number(a));if(Jb(b)&&b>=0)return jb(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Xa()?jb(Mb(64,BigInt(a))):jb(Hba(a))},Nb=function(a){if(a==null)return a;if(typeof a==="bigint")return Nba(a)?a=Number(a):(a=Fb(64,a),a=Nba(a)?Number(a):String(a)),a;if(yb(a))return typeof a==="number"?Gb(a):Eb(a)},Ob=function(a,b){b=b===void 0?!1:b;var c=typeof a;if(a==null)return a;if(c==="bigint")return String(Fb(64,
a));if(yb(a))return c==="string"?Eb(a):b?Aba(a):Gb(a)},Pb=function(a){var b=typeof a;if(a==null)return a;if(b==="bigint")return jb(Fb(64,a));if(yb(a))return b==="string"?Bba(a):Cba(a)},Oba=function(a){var b=0;b=b===void 0?0:b;if(!yb(a))throw Qa("uint64");var c=typeof a;switch(b){case 512:switch(c){case "string":return Lba(a);case "bigint":return String(Mb(64,a));default:return Jba(a)}case 1024:switch(c){case "string":return Mba(a);case "bigint":return jb(Mb(64,a));default:return Kba(a)}case 0:switch(c){case "string":return Lba(a);
case "bigint":return jb(Mb(64,a));default:return Iba(a)}default:return pb(b,"Unknown format requested type for int64")}},Pba=function(a){if(a==null)return a;var b=typeof a;if(b==="bigint")return String(Fb(64,a));if(yb(a)){if(b==="string")return Eb(a);if(b==="number")return Gb(a)}},Qba=function(a){if(a==null)return a;var b=typeof a;if(b==="bigint")return String(Mb(64,a));if(yb(a)){if(b==="string")return Lba(a);if(b==="number")return Iba(a)}},Qb=function(a){if(typeof a!=="string")throw Error();return a},
Rba=function(a){if(a!=null&&typeof a!=="string")throw Error();return a},Rb=function(a){return a==null||typeof a==="string"?a:void 0},Tb=function(a,b,c,d){if(db(a))return a;if(!Array.isArray(a))return c?d&2?b[Sba]||(b[Sba]=Tba(b)):new b:void 0;c=a[Ta]|0;d=c|d&32|d&2;d!==c&&Va(a,d);return new b(a)},Tba=function(a){a=new a;Wa(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a},Ub=function(a,b,c){if(b)return vb(a);var d;return(d=wb(a))!=null?d:c?!1:void 0},Vb=function(a,b,c){a=b?Hb(a,
1024):Pb(a);return a==null?c?Uba:void 0:a},Wb=function(a,b,c){if(b)return Qb(a);var d;return(d=Rb(a))!=null?d:c?"":void 0},Vba=function(a,b,c){a=b?zb(a):Ab(a);return a==null?c?0:void 0:a},Wba=function(a){return a},Xba=function(a,b){if(typeof b==="string")try{b=Vaa(b)}catch(c){return!1}return Oa(b)&&Xaa(a,b)},Yba=function(a){switch(a){case "bigint":case "string":case "number":return!0;default:return!1}},$ba=function(a,b){if(a[ab]===cb)a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;else if(!Array.isArray(a))return!1;
if(b[ab]===cb)b=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;else if(!Array.isArray(b))return!1;return Zba(a,b,void 0,2)},aca=function(a,b,c){return Zba(a,b,c,0)},Zba=function(a,b,c,d){if(a===b||a==null&&b==null)return!0;if(a instanceof Map)return bca(a,b,c);if(b instanceof Map)return bca(b,a,c);if(a==null||b==null)return!1;if(a instanceof Za)return cca(a,b);if(b instanceof Za)return cca(b,a);if(Oa(a))return Xba(a,b);if(Oa(b))return Xba(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):Yba(e)&&Yba(f)?""+a===""+b:e==="boolean"&&f==="number"||e==="number"&&f==="boolean"?!a===!b:!1;if(a[ab]===cb||b[ab]===cb)return $ba(a,b);if(a.constructor!=b.constructor)return!1;if(a.constructor===Array){f=a[Ta]|0;var h=b[Ta]|0,k=a.length,q=b.length,v=Math.max(k,q);e=(f|h|64)&128?0:-1;(d===1||(f|h)&1)&&(d=1);f=k&&a[k-1];h=q&&b[q-1];f!=null&&typeof f==="object"&&f.constructor===Object||(f=null);h!=null&&typeof h==="object"&&
h.constructor===Object||(h=null);k=k-e-+!!f;q=q-e-+!!h;for(var A=0;A<v;A++)if(!dca(A-e,a,f,k,b,h,q,e,c,d))return!1;if(f)for(var E in f){d=a;v=f;A=k;var H=b,L=h,O=q,S=e,aa=c,ka=+E;if(!(!Number.isFinite(ka)||ka<A||ka<O||dca(ka,d,v,A,H,L,O,S,aa,2)))return!1}if(h)for(var na in h)if((E=f&&na in f)||(E=a,d=f,v=k,A=b,H=h,L=q,O=e,S=c,aa=+na,E=!Number.isFinite(aa)||aa<v||aa<L?!0:dca(aa,E,d,v,A,H,L,O,S,2)),!E)return!1;return!0}if(a.constructor===Object)return aca([a],[b]);throw Error();},dca=function(a,b,c,
d,e,f,h,k,q,v){b=eca(a,b,c,d,k);e=eca(a,e,f,h,k);v=v===1;if(e==null&&hba(b)||b==null&&hba(e))return!0;a=v?q:q==null?void 0:q.getFieldComparisonTypeInfo(a);return Zba(b,e,a,0)},eca=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]},fca=function(a){return a},gca=function(a,b,c,d,e,f){a=Tb(a,d,c,f);e&&(a=Xb(a));return a},hca=function(a,b,c){if(a.size!=b.size)return!1;var d=!0;a.forEach(function(e,f){aca(e,b.get(f),c==null?void 0:c.getFieldComparisonTypeInfo(2))||(d=!1)});
return d},ica=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},jca=function(a,b,c){if(b==null)return a.size===0;if(!Array.isArray(b)||a.size>b.length)return!1;b=ob(b);Array.prototype.sort.call(b,ica);for(var d=0,e=void 0,f=b.length-1;f>=0;f--){var h=b[f];if(!h||!Array.isArray(h)||h.length!==2)return!1;var k=h[0];if(k!==e){e=void 0;if(!aca(a.get(k),h[1],(e=c)==null?void 0:e.getFieldComparisonTypeInfo(2)))return!1;e=k;d++}}return d===a.size},kca=
function(a){return[a,this.get(a)]},nca=function(){return lca||(lca=new Yb(Wa([]),void 0,void 0,void 0,mca))},oca=function(a){var b=Zb($b);return b?a[b]:void 0},pca=function(a,b){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var c=Zb($b);c&&c in a&&(a=a[c])&&delete a[b]},sca=function(a,b){var c=c===void 0?!1:c;if(Zb(qca)&&Zb($b)&&void 0===qca){var d=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=d[$b];if(!e)return;if(e=e.reviveUnknownFields)try{e(d,b,rca);return}catch(f){fa(f)}}c&&
pca(a,b)},uca=function(a,b){var c=Zb($b),d;Sa&&c&&((d=a[c])==null?void 0:d[b])!=null&&aba(tca,3)},wca=function(a,b){b<100||aba(vca,1)},ac=function(a,b,c,d){var e=d!==void 0;d=!!d;var f=Zb($b),h;!e&&Sa&&f&&(h=a[f])&&xca(h,wca);f=[];var k=a.length;h=4294967295;var q=!1,v=!!(b&64),A=v?b&128?0:-1:void 0;if(!(b&1)){var E=k&&a[k-1];E!=null&&typeof E==="object"&&E.constructor===Object?(k--,h=k):E=void 0;if(v&&!(b&128)&&!e){q=!0;var H;h=((H=yca)!=null?H:Wba)(h-A,A,a,E,void 0)+A}}b=void 0;for(H=0;H<k;H++){var L=
a[H];if(L!=null&&(L=c(L,d))!=null)if(v&&H>=h){var O=H-A,S=void 0;((S=b)!=null?S:b={})[O]=L}else f[H]=L}if(E)for(var aa in E)k=E[aa],k!=null&&(k=c(k,d))!=null&&(H=+aa,L=void 0,v&&!Number.isNaN(H)&&(L=H+A)<h?f[L]=k:(H=void 0,((H=b)!=null?H:b={})[aa]=k));b&&(q?f.push(b):f[h]=b);e&&Zb($b)&&(a=oca(a))&&a instanceof zca&&(f[$b]=Aca(a));return f},Bca=function(a){a[0]=cc(a[0]);a[1]=cc(a[1]);return a},cc=function(a){switch(typeof a){case "number":return Number.isFinite(a)?a:""+a;case "bigint":return Nba(a)?
Number(a):""+a;case "boolean":return a?1:0;case "object":if(Array.isArray(a)){var b=a[Ta]|0;return a.length===0&&b&1?void 0:ac(a,b,cc)}if(db(a))return Cca(a);if(a instanceof Za)return Dca(a);if(a instanceof Yb)return a=a.size!==0?Array.from(fc.prototype.entries.call(a),Bca):void 0,a;return}return a},Gca=function(a,b){if(b){yca=b==null||b===Wba||b[Eca]!==Fca?Wba:b;try{return Cca(a)}finally{yca=void 0}}return Cca(a)},Cca=function(a){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return ac(a,
a[Ta]|0,cc)},Jca=function(a){switch(typeof a){case "boolean":return Hca||(Hca=[0,void 0,!0]);case "number":return a>0?void 0:a===0?Ica||(Ica=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}},Kca=function(a,b,c){return a=m(a,b[0],b[1],c?1:2)},m=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&-8380417|(b&1023)<<13)}else{if(!Array.isArray(a))throw Error("K");e=a[Ta]|0;if(Lca&&1&e)throw Error("L");2048&e&&!(2&e)&&Mca();if(e&256)throw Error("M");
if(e&64)return d!==0||e&2048||Va(a,e|2048),a;if(c&&(e|=128,c!==a[0]))throw Error("N");a:{c=a;e|=64;var f=c.length;if(f){var h=f-1,k=c[h];if(k!=null&&typeof k==="object"&&k.constructor===Object){b=e&128?0:-1;h-=b;if(h>=1024)throw Error("P");for(var q in k)f=+q,f<h&&(c[f+b]=k[q],delete k[q]);e=e&-8380417|(h&1023)<<13;break a}}if(b){q=Math.max(b,f-(e&128?0:-1));if(q>1024)throw Error("Q");e=e&-8380417|(q&1023)<<13}}}e|=64;d===0&&(e|=2048);Va(a,e);return a},Mca=function(){if(Lca)throw Error("O");aba(Nca,
5)},Qca=function(a,b){if(typeof a!=="object")return a;if(Array.isArray(a)){var c=a[Ta]|0;return a.length===0&&c&1?void 0:Oca(a,c,b)}if(db(a))return Pca(a);if(a instanceof Yb){b=a.arrayState;if(b&2)return a;if(!a.size)return;c=Wa(Array.from(fc.prototype.entries.call(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:db(e)?e=Pca(e):Array.isArray(e)?e=Oca(e,e[Ta]|0,!!(b&32)):e=void 0;d[1]=e}return c}if(a instanceof Za)return a},Oca=function(a,b,c){if(b&
2)return a;!c||4096&b||16&b?a=hc(a,b,!1,c&&!(b&16)):(Ua(a,34),b&4&&Object.freeze(a));return a},Rca=function(a,b,c){a=new a.constructor(b);c&&(a.copyOnWrite=eb);a.noLegacyNull=eb;return a},Pca=function(a){var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=b[Ta]|0;return fb(a,c)?a:Sca(a,b,c)?Rca(a,b):hc(b,c)},hc=function(a,b,c,d){d!=null||(d=!!(34&b));a=ac(a,b,Qca,d);d=32;c&&(d|=2);b=b&8380609|d;Va(a,b);return a},Xb=function(a){var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,
c=b[Ta]|0;return fb(a,c)?Sca(a,b,c)?Rca(a,b,!0):new a.constructor(hc(b,c,!1)):a},jc=function(a){if(a.copyOnWrite!==eb)return!1;var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;b=hc(b,b[Ta]|0);Ua(b,2048);a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=b;a.copyOnWrite=void 0;a.noLegacyNull=void 0;return!0},kc=function(a){if(!jc(a)&&fb(a,a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[Ta]|0))throw Error();},lc=function(a,b){b===void 0&&(b=a[Ta]|0);b&32&&!(b&4096)&&Va(a,
b|4096)},Sca=function(a,b,c){return c&2?!0:c&32&&!(c&4096)?(Va(b,c|2),a.copyOnWrite=eb,!0):!1},mc=function(a,b,c,d,e){var f=c+(e?0:-1),h=a.length-1;if(h>=1+(e?0:-1)&&f>=h){var k=a[h];if(k!=null&&typeof k==="object"&&k.constructor===Object)return k[c]=d,b}if(f<=h)return a[f]=d,b;if(d!==void 0){var q;h=((q=b)!=null?q:b=a[Ta]|0)>>13&1023||536870912;c>=h?d!=null&&(f={},a[h+(e?0:-1)]=(f[c]=d,f)):a[f]=d}return b},pc=function(a,b,c,d,e,f,h){var k=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,
q=k[Ta]|0;d=fb(a,q)?1:d;e=!!e||d===3;d===2&&jc(a)&&(k=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=k[Ta]|0);var v=Tca(k,b,h),A=v===nc?7:v[Ta]|0,E=Uca(A,q);var H=E;4&H?f==null?a=!1:(!e&&f===0&&(512&H||1024&H)&&(a.constructor[Vca]=(a.constructor[Vca]|0)+1)<5&&Zaa(),a=f===0?!1:!(f&H)):a=!0;if(a){4&E&&(v=ob(v),A=0,E=oc(E,q),q=mc(k,q,b,v,h));for(var L=H=0;H<v.length;H++){var O=c(v[H]);O!=null&&(v[L++]=O)}L<H&&(v.length=L);c=(E|4)&-513;E=c&=-1025;f&&(E|=f);E&=-4097}E!==A&&(Va(v,E),2&E&&Object.freeze(v));
return v=Wca(v,E,k,q,b,h,d,a,e)},Wca=function(a,b,c,d,e,f,h,k,q){var v=b;h===1||(h!==4?0:2&b||!(16&b)&&32&d)?qc(b)||(b|=!a.length||k&&!(4096&b)||32&d&&!(4096&b||16&b)?2:256,b!==v&&Va(a,b),Object.freeze(a)):(h===2&&qc(b)&&(a=ob(a),v=0,b=oc(b,d),d=mc(c,d,e,a,f)),qc(b)||(q||(b|=16),b!==v&&Va(a,b)));2&b||!(4096&b||16&b)||lc(c,d);return a},Tca=function(a,b,c){a=rc(a,b,c);return Array.isArray(a)?a:nc},Uca=function(a,b){2&b&&(a|=2);return a|1},qc=function(a){return!!(2&a)&&!!(4&a)||!!(256&a)},sc=function(a){return gb(a,
!0,!0)},Xca=function(a,b,c,d,e,f){var h=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k=h[Ta]|0;var q=fb(a,k);a:{!q&&jc(a)&&(h=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k=h[Ta]|0);var v=rc(h,b,f);a=!1;if(v==null){if(q){b=nca();break a}v=[]}else if(v.constructor===Yb)if(v.arrayState&2&&!q)v=Array.from(fc.prototype.entries.call(v));else{b=v;break a}else Array.isArray(v)?a=!!((v[Ta]|0)&2):v=[];if(q){if(!v.length){b=nca();break a}a||(a=!0,Wa(v))}else if(a){a=!1;v=ob(v);for(var A=
0;A<v.length;A++){var E=v[A]=ob(v[A]);Array.isArray(E[1])&&(E[1]=Wa(E[1]))}}!a&&k&32&&eba(v);d=new Yb(v,c,d,e);k=mc(h,k,b,d,f);a||lc(h,k);b=d}!q&&c&&(b.callToMutableOnAccess=!0);return b},tc=function(a,b,c,d){return Xca(a,b,void 0,Wb,c,d)},uc=function(a,b,c,d,e){return Xca(a,b,c,d,void 0,e)},vc=function(a,b,c,d,e){kc(a);var f=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h=f[Ta]|0;if(c==null)return mc(f,h,b,void 0,e),a;var k=c===nc?7:c[Ta]|0,q=k,v=qc(k),A=v||Object.isFrozen(c);v||(k=0);
A||(c=ob(c),q=0,k=oc(k,h),A=!1);k|=5;var E;v=(E=dba(k))!=null?E:0;for(E=0;E<c.length;E++){var H=c[E],L=d(H,v);Object.is(H,L)||(A&&(c=ob(c),q=0,k=oc(k,h),A=!1),c[E]=L)}k!==q&&(A&&(c=ob(c),k=oc(k,h)),Va(c,k));mc(f,h,b,c,e);return a},xc=function(a,b,c,d,e){kc(a);var f=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;mc(f,f[Ta]|0,b,(d==="0"?Number(c)===0:c===d)?void 0:c,e);return a},zc=function(a,b,c,d,e,f){return yc(a,b,c,d,void 0,e,f,void 0,!0)},Bc=function(a,b,c,d,e,f){return yc(a,b,c,e,d,
f,void 0,1)},Yca=function(a){if(Sa){var b;return(b=a[Cc])!=null?b:a[Cc]=new Map}if(Cc in a)return a[Cc];b=new Map;Object.defineProperty(a,Cc,{value:b});return b},$ca=function(a,b,c,d){var e=Yca(a),f=Zca(e,a,b,c);f!==d&&(f&&(b=mc(a,b,f)),e.set(c,d));return b},Zca=function(a,b,c,d,e){var f=a.get(d);if(f!=null)return f;for(var h=f=0;h<d.length;h++){var k=d[h];rc(b,k,e)!=null&&(f!==0&&(c=mc(b,c,f,void 0,e)),f=k)}a.set(d,f);return f},Ec=function(a,b,c,d,e){var f=!1;d=rc(a,d,e,function(h){var k=Tb(h,c,
!1,b);f=k!==h&&k!=null;return k});if(d!=null)return f&&!fb(d)&&lc(a,b),d},ada=function(a,b,c,d,e,f,h,k,q){var v=fb(a,c);f=v?1:f;k=!!k||f===3;v=q&&!v;(f===2||v)&&jc(a)&&(b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=b[Ta]|0);a=Tca(b,e,h);var A=a===nc?7:a[Ta]|0,E=Uca(A,c);if(q=!(4&E)){var H=a,L=c,O=!!(2&E);O&&(L|=2);for(var S=!O,aa=!0,ka=0,na=0;ka<H.length;ka++){var za=Tb(H[ka],d,!1,L);if(za instanceof d){if(!O){var Na=fb(za);S&&(S=!Na);aa&&(aa=Na)}H[na++]=za}}na<ka&&(H.length=na);E|=
4;E=aa?E&-4097:E|4096;E=S?E|8:E&-9}E!==A&&(Va(a,E),2&E&&Object.freeze(a));if(v&&!(8&E||!a.length&&(f===1||(f!==4?0:2&E||!(16&E)&&32&c)))){qc(E)&&(a=ob(a),E=oc(E,c),c=mc(b,c,e,a,h));d=a;v=E;for(A=0;A<d.length;A++)H=d[A],E=Xb(H),H!==E&&(d[A]=E);v|=8;E=v=d.length?v|4096:v&-4097;Va(a,E)}return a=Wca(a,E,b,c,e,h,f,q,k)},bda=function(a){a==null&&(a=void 0);return a},oc=function(a,b){return a=(2&b?a|2:a&-3)&-273},yc=function(a,b,c,d,e,f,h,k,q,v){kc(a);b=pc(a,b,f,2,!0,void 0,h);var A;f=(A=dba(b===nc?7:b[Ta]|
0))!=null?A:0;if(q)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&&v?(e!=null||(e=b.length-1),ib(b,e),b.splice(e,k)):(k&&iba(b,e),e!=void 0?b.splice(e,k,c(d,f)):b.push(c(d,f)));return a},Fc=function(a,b,c,d,e,f,h,k){kc(a);var q=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;a=ada(a,q,q[Ta]|0,c,b,2,d,!0);if(h&&k)f!=null||(f=a.length-1),ib(a,f),a.splice(f,h),a.length||(a[Ta]&=-4097);else return h?iba(a,
f):e=e!=null?e:new c,f!=void 0?a.splice(f,h,e):a.push(e),f=c=a===nc?7:a[Ta]|0,(h=fb(e))?(c&=-9,a.length===1&&(c&=-4097)):c|=4096,c!==f&&Va(a,c),h||lc(q),e},cda=function(a){return Ob(a,!0)},dda=function(a){return gb(a,!1,!1)},eda=function(a,b){if(typeof a==="string")return new Gc(Vaa(a),b);if(Array.isArray(a))return new Gc(new Uint8Array(a),b);if(a.constructor===Uint8Array)return new Gc(a,!1);if(a.constructor===ArrayBuffer)return a=new Uint8Array(a),new Gc(a,!1);if(a.constructor===Za)return b=Ic(a)||
new Uint8Array(0),new Gc(b,!0,a);if(a instanceof Uint8Array)return a=a.constructor===Uint8Array?a:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),new Gc(a,!1);throw Error();},Jc=function(){var a=function(){throw Error();};Object.setPrototypeOf(a,a.prototype);return a},fda=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(eba(b))},ida=function(a){var b=gda;var c=c===void 0?hda:c;
return new Kc(a,b,c)},gda=function(a,b,c,d,e){b=b instanceof n?b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows:Array.isArray(b)?Kca(b,d,!1):void 0;if(b!=null){Lc(a,c,2);c=a.encoder_.end();Mc(a,c);c.push(a.totalLength_);e(b,a);e=c.pop();for(e=a.totalLength_+a.encoder_.length()-e;e>127;)c.push(e&127|128),e>>>=7,a.totalLength_++;c.push(e);a.totalLength_++}},mda=function(a,b,c,d){var e=d[a];if(e)return e;e={};e.binaryFields=d;e.messageMetadata=Jca(d[0]);var f=d[1],h=1;f&&f.constructor===Object&&
(e.extensions=f,f=d[++h],typeof f==="function"&&(e.isMessageSet=!0,jda!=null||(jda=f),kda!=null||(kda=d[h+1]),f=d[h+=2]));for(var k={};f&&Array.isArray(f)&&f.length&&typeof f[0]==="number"&&f[0]>0;){for(var q=0;q<f.length;q++)k[f[q]]=f;f=d[++h]}for(q=1;f!==void 0;){typeof f==="number"&&(q+=f,f=d[++h]);var v=void 0;if(f instanceof Kc)var A=f;else A=lda,h--;f=void 0;if((f=A)==null?0:f.$$isMsg){f=d[++h];v=d;var E=h;typeof f==="function"&&(f=f(),v[E]=f);v=f}f=d[++h];E=q+1;typeof f==="number"&&f<0&&(E-=
f,f=d[++h]);for(;q<E;q++){var H=k[q];v?c(e,q,A,v,H):b(e,q,A,H)}}return d[a]=e},oda=function(a){return Array.isArray(a)?a[0]instanceof Kc?a:[nda,a]:[a,void 0]},pda=function(a,b,c,d){var e=c.$$binaryReaderFn;a[b]=d?function(f,h,k){return e(f,h,k,d)}:e},rda=function(a,b,c,d,e){var f=c.$$binaryReaderFn,h,k;a[b]=function(q,v,A){return f(q,v,A,k||(k=mda(qda,pda,rda,d).messageMetadata),h||(h=sda(d)),e)}},sda=function(a){var b=a[tda];if(b!=null)return b;var c=mda(qda,pda,rda,a);b=c.isMessageSet?function(d,
e){return jda(d,e,c)}:function(d,e){for(;uda(e)&&e.nextWireType_!=4;){var f=e.nextField_,h=c[f];if(h==null){var k=c.extensions;k&&(k=k[f])&&(k=vda(k),k!=null&&(h=c[f]=k))}if(h==null||!h(e,d,f)){k=e;h=k.fieldCursor_;wda(k);if(k.discardUnknownFields)var q=void 0;else{var v=k.decoder_.getCursor()-h;k.decoder_.cursor_=h;q=k.decoder_.readByteString(v)}v=k=h=void 0;var A=d;q&&((h=(k=(v=A[$b])!=null?v:A[$b]=new zca)[f])!=null?h:k[f]=[]).push(q)}}if(d=oca(d))d.reviveUnknownFields=c.binaryFields[xda];return!0};
a[tda]=b;a[xda]=yda.bind(a);return b},yda=function(a,b,c,d){var e=this[qda],f=this[tda],h=Kca(void 0,e.messageMetadata,!1),k=oca(a);if(k){var q=!1,v=e.extensions;if(v){e=function(O,S,aa){if(aa.length!==0)if(v[S])for(O=l(aa),S=O.next();!S.done;S=O.next()){S=zda(S.value);try{q=!0,f(h,S)}finally{S.free()}}else d==null||d(a,S,aa)};if(b==null)xca(k,e);else if(k!=null){var A=k[b];A&&e(k,b,A)}if(q){var E=a[Ta]|0;if(E&2&&E&2048&&(c==null||!c.reviveIntoImmutable))throw Error();var H=E&128?Nc:void 0,L=function(O,
S){if(rc(a,O,H)!=null)switch(c==null?void 0:c.resolutionBehavior){case 1:return;default:throw Error();}S!=null&&(E=mc(a,E,O,S,H));delete k[O]};b==null?jba(h,h[Ta]|0,function(O,S){L(O,S)}):L(b,rc(h,b,H))}}}},vda=function(a){a=oda(a);var b=a[0].$$binaryReaderFn;if(a=a[1]){var c=sda(a),d=mda(qda,pda,rda,a).messageMetadata;return function(e,f,h){return b(e,f,h,d,c)}}return b},Oc=function(a){return mda(Ada,Bda,Cda,a)},Bda=function(a,b,c){a[b]=c.$$binaryWriterFn},Cda=function(a,b,c,d){var e,f,h=c.$$binaryWriterFn;
a[b]=function(k,q,v){return h(k,q,v,f||(f=Oc(d).messageMetadata),e||(e=Dda(d)))}},Dda=function(a){var b=a[Eda];if(!b){var c=Oc(a);b=function(d,e){return Fda(d,e,c)};a[Eda]=b}return b},Fda=function(a,b,c){jba(a,a[Ta]|0,function(d,e){if(e!=null){var f=Gda(c,d);f?f(b,e,d):d<500||aba(Hda,3)}});(a=oca(a))&&xca(a,function(d,e,f){Mc(b,b.encoder_.end());for(d=0;d<f.length;d++)Mc(b,Ic(f[d])||new Uint8Array(0))})},Gda=function(a,b){var c=a[b];if(c)return c;if(c=a.extensions)if(c=c[b]){c=oda(c);var d=c[0].$$binaryWriterFn;
if(c=c[1]){var e=Dda(c),f=Oc(c).messageMetadata;c=a.isMessageSet?kda(f,e):function(h,k,q){return d(h,k,q,f,e)}}else c=d;return a[b]=c}},Pc=function(a,b,c){return new Kc(a,b,c)},Qc=function(a,b,c){mc(a,a[Ta]|0,b,c,(a[Ta]|0)&128?Nc:void 0)},Ida=function(a){a!=null&&(a=a.value_||"",a=typeof a==="string"?a:new Uint8Array(a));return a},Sc=function(a,b,c){if(Rc(a,1).split("/").pop()!=c)return null;c=typeof b==="function"?b:b.constructor;var d=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=d[Ta]|
0;b=rc(d,2);jc(a)&&(d=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=d[Ta]|0);a=d;if(b!=null&&!Array.isArray(b)&&!db(b))throw Error("V`"+ub(b));d=Tb(b,c,!0,e);if(!(d instanceof c))throw Error("W`"+d.constructor.displayName+"`"+c.displayName);(c=!!(2&e))||(d=Xb(d));b!==d&&(mc(a,e,2,d),c||lc(a));return d},Jda=function(a,b){return function(c,d){var e={treatNewDataAsImmutable:!0};d&&Object.assign(e,d);c=zda(c,void 0,void 0,e);try{var f=new a,h=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;
sda(b)(h,c);var k=f}finally{c.free()}return k}},Kda=function(a){return function(b){b=JSON.parse(b);if(!Array.isArray(b))throw Error("R`"+ub(b)+"`"+b);Wa(b);return new a(b)}},Tc=function(a){return function(b){return Lda(a,b)}},Vc=function(a){if(a!=null)return Uc(a)},Uc=function(a){return Nba(a)?Number(a):String(a)},Nda=function(){var a=null;if(!Mda)return a;try{var b=function(c){return c};a=Mda.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){}return a},Pda=function(){Oda===
void 0&&(Oda=Nda());return Oda},Xc=function(a){var b=Pda();a=b?b.createScriptURL(a):a;return new Wc(a)},Yc=function(a){if(a instanceof Wc)return a.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("aa");},Qda=function(a){return a.toString().indexOf("`")===-1},$c=function(a){return a instanceof Zc},ad=function(a){if($c(a))return a.privateDoNotAccessOrElseWrappedUrl;throw Error("aa");},bd=function(a){return new Rda(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})},cd=function(a){var b=
b===void 0?Sda:b;a:if(b=b===void 0?Sda:b,!$c(a)){for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof Rda&&d.isValid(a)){a=new Zc(a);break a}}a=void 0}return a||Tda},Vda=function(a){if(Uda.test(a))return a},dd=function(a){return a instanceof Zc?ad(a):Vda(a)},Wda=function(a,b){b=dd(b);b!==void 0&&(a.href=b)},fd=function(a){var b=Pda();a=b?b.createHTML(a):a;return new ed(a)},gd=function(a){return a instanceof ed},hd=function(a){if(gd(a))return a.privateDoNotAccessOrElseWrappedHtml;throw Error("aa");
},Xda=function(a,b){a.src=Yc(b).toString()},id=function(a,b,c,d){b=dd(b);return b!==void 0?a.open(b,c,d):null},Yda=function(a){a=a===void 0?document:a;var b,c;a=(c=(b=a).querySelector)==null?void 0:c.call(b,"script[nonce]");return a==null?"":a.nonce||a.getAttribute("nonce")||""},jd=function(a,b){a.src=Yc(b);(b=Yda(a.ownerDocument))&&a.setAttribute("nonce",b)},Zda=function(a,b){if(a.nodeType===1&&/^(script|style)$/i.test(a.tagName))throw Error("aa");a.innerHTML=hd(b)},$da=function(a){return fd(a)},
aea=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}},bea=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""}},eea=function(a){var b=[],c=[];a=[].concat(p(a)).sort(cea);a=dea(a);a=l(a);for(var d=a.next(),e={};!d.done;e={name$jscomp$130:void 0,operator$jscomp$1:void 0},d=a.next())d=d.value,e.name$jscomp$130=d.name,e.operator$jscomp$1=
d.operator,d=d.values,d.length!==0&&b.push(d.map(function(f){return function(h){return lba(h)||nba(h)?f.name$jscomp$130+f.operator$jscomp$1+h:f.name$jscomp$130+f.operator$jscomp$1+'"'+h+'"'}}(e)).join(" "));c.length>0&&b.push("filters="+encodeURIComponent(c.join(",")));return b.join(" ")},dea=function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=d.operator;var e=d.values;if(d=d.id)if(daa(lba)(e))b.push({name:d,operator:c,values:e});else if(daa(kba)(e))b.push({name:d,operator:c,
values:e});else if(daa(nba)(e))b.push({name:d,operator:c,values:e});else throw Error("ga`"+e);}return b},kd=function(a,b,c){if(fea.includes(a)||gea.includes(a)||hea.includes(a))return{id:a,operator:b,values:c};throw Error("ha`"+a);},cea=function(a,b){return iea.indexOf(a.id)-iea.indexOf(b.id)},jea=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}},kea=function(a,b,c){var d=jea(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[kd(d,"=",[b])];case "job_regex":return[kd(d,"=~",[b])];case "index":case "attempt":case "min_time":case "max_time":return[kd(d,"=",[Number(b)])];case "q":return[kd(d,"=",[b.startsWith("(?i)")?b.substring(4):b])];case "q_invert":return[kd(d,"!=",[b.startsWith("(?i)")?b.substring(4):b])];case "src_file":return a=c.get("src_line"),[kd(d,"=~",[a?
b+":"+a:b])];case "inverted_call_site_regex":return[kd(d,"!=",[].concat(p(b.split(","))))];default:return null}},lea=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}},mea=function(a,b,c,d,e){var f=Zone.__symbol__(d);if(!b[f]){var h=b[f]=b[d];b[d]=function(k,q,v){q&&q.prototype&&e.forEach(function(A){var E=c+"."+d+"::"+A,H=q.prototype;try{if(H.hasOwnProperty(A)){var L=
a.ObjectGetOwnPropertyDescriptor(H,A);L&&L.value?(L.value=a.wrapWithCurrentZone(L.value,E),a._redefineProperty(q.prototype,A,L)):H[A]&&(H[A]=a.wrapWithCurrentZone(H[A],E))}else H[A]&&(H[A]=a.wrapWithCurrentZone(H[A],E))}catch(O){}});return h.call(b,k,q,v)};a.attachOriginToPatched(b[d],h)}},md=function(a){return(ld.__Zone_symbol_prefix||"__zone_symbol__")+a},nea=function(){function a(ua){h&&h.mark&&h.mark(ua)}function b(ua,Ha){h&&h.measure&&h.measure(ua,Ha)}function c(ua){aa||ld[H]&&(aa=ld[H].resolve(0));
if(aa){var Ha=aa[L];Ha||(Ha=aa.then);Ha.call(aa,ua)}else ld[E](ua,0)}function d(ua){hb===0&&O.length===0&&c(e);ua&&O.push(ua)}function e(){if(!S){for(S=!0;O.length;){var ua=O;O=[];for(var Ha=0;Ha<ua.length;Ha++){var Ia=ua[Ha];try{Ia.zone.runTask(Ia,null,null)}catch(tb){za.onUnhandledError(tb)}}}za.microtaskDrainDone();S=!1}}function f(){}var h=ld.performance;a("Zone");var k=function(ua,Ha){this._parent=ua;this._name=Ha?Ha.name||"unnamed":"<root>";this._properties=Ha&&Ha.properties||{};this._zoneDelegate=
new v(this,this._parent&&this._parent._zoneDelegate,Ha)};k.assertZonePatched=function(){if(ld.Promise!==na.ZoneAwarePromise)throw Error("ja");};k.__load_patch=function(ua,Ha,Ia){Ia=Ia===void 0?!1:Ia;if(na.hasOwnProperty(ua)){if(Ha=ld[md("forceDuplicateZoneCheck")]===!0,!Ia&&Ha)throw Error("ka`"+ua);}else ld["__Zone_disable_"+ua]||(Ia="Zone:"+ua,a(Ia),na[ua]=Ha(ld,k,za),b(Ia,Ia))};k.prototype.get=function(ua){var Ha=this.getZoneWith(ua);if(Ha)return Ha._properties[ua]};k.prototype.getZoneWith=function(ua){for(var Ha=
this;Ha;){if(Ha._properties.hasOwnProperty(ua))return Ha;Ha=Ha._parent}return null};k.prototype.fork=function(ua){if(!ua)throw Error("la");return this._zoneDelegate.fork(this,ua)};k.prototype.wrap=function(ua,Ha){if(typeof ua!=="function")throw Error("ma`"+ua);var Ia=this._zoneDelegate.intercept(this,ua,Ha),tb=this;return function(){return tb.runGuarded(Ia,this,arguments,Ha)}};k.prototype.run=function(ua,Ha,Ia,tb){Na={parent:Na,zone:this};try{return this._zoneDelegate.invoke(this,ua,Ha,Ia,tb)}finally{Na=
Na.parent}};k.prototype.runGuarded=function(ua,Ha,Ia,tb){Na={parent:Na,zone:this};try{try{return this._zoneDelegate.invoke(this,ua,Ha===void 0?null:Ha,Ia,tb)}catch(rb){if(this._zoneDelegate.handleError(this,rb))throw rb;}}finally{Na=Na.parent}};k.prototype.runTask=function(ua,Ha,Ia){if(ua.zone!=this)throw Error("na`"+(ua.zone||ka).name+"`"+this.name);var tb=ua.type,rb=ua.data===void 0?{}:ua.data,dc=rb.isPeriodic===void 0?!1:rb.isPeriodic;rb=rb.isRefreshable===void 0?!1:rb.isRefreshable;if(ua.state!==
"notScheduled"||tb!=="eventTask"&&tb!=="macroTask"){var bc=ua.state!="running";bc&&ua._transitionTo("running","scheduled");var Ac=Pa;Pa=ua;Na={parent:Na,zone:this};try{tb!="macroTask"||!ua.data||dc||rb||(ua.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,ua,Ha,Ia)}catch(ic){if(this._zoneDelegate.handleError(this,ic))throw ic;}}finally{Ha=ua.state,Ha!=="notScheduled"&&Ha!=="unknown"&&(tb=="eventTask"||dc||rb&&Ha==="scheduling"?bc&&ua._transitionTo("scheduled","running","scheduling"):
(tb=ua._zoneDelegates,this._updateTaskCount(ua,-1),bc&&ua._transitionTo("notScheduled","running","notScheduled"),rb&&(ua._zoneDelegates=tb))),Na=Na.parent,Pa=Ac}}};k.prototype.scheduleTask=function(ua){if(ua.zone&&ua.zone!==this)for(var Ha=this;Ha;){if(Ha===ua.zone)throw Error("oa`"+this.name+"`"+ua.zone.name);Ha=Ha.parent}ua._transitionTo("scheduling","notScheduled");Ha=[];ua._zoneDelegates=Ha;ua._zone=this;try{ua=this._zoneDelegate.scheduleTask(this,ua)}catch(Ia){throw ua._transitionTo("unknown",
"scheduling","notScheduled"),this._zoneDelegate.handleError(this,Ia),Ia;}ua._zoneDelegates===Ha&&this._updateTaskCount(ua,1);ua.state=="scheduling"&&ua._transitionTo("scheduled","scheduling");return ua};k.prototype.scheduleMicroTask=function(ua,Ha,Ia,tb){return this.scheduleTask(new A("microTask",ua,Ha,Ia,tb,void 0))};k.prototype.scheduleMacroTask=function(ua,Ha,Ia,tb,rb){return this.scheduleTask(new A("macroTask",ua,Ha,Ia,tb,rb))};k.prototype.scheduleEventTask=function(ua,Ha,Ia,tb,rb){return this.scheduleTask(new A("eventTask",
ua,Ha,Ia,tb,rb))};k.prototype.cancelTask=function(ua){if(ua.zone!=this)throw Error("pa`"+(ua.zone||ka).name+"`"+this.name);if(ua.state==="scheduled"||ua.state==="running"){ua._transitionTo("canceling","scheduled","running");try{this._zoneDelegate.cancelTask(this,ua)}catch(Ha){throw ua._transitionTo("unknown","canceling"),this._zoneDelegate.handleError(this,Ha),Ha;}this._updateTaskCount(ua,-1);ua._transitionTo("notScheduled","canceling");ua.runCount=-1;return ua}};k.prototype._updateTaskCount=function(ua,
Ha){var Ia=ua._zoneDelegates;Ha==-1&&(ua._zoneDelegates=null);for(var tb=0;tb<Ia.length;tb++)Ia[tb]._updateTaskCount(ua.type,Ha)};nd.Object.defineProperties(k.prototype,{parent:{configurable:!0,enumerable:!0,get:function(){return this._parent}},name:{configurable:!0,enumerable:!0,get:function(){return this._name}}});nd.Object.defineProperties(k,{root:{configurable:!0,enumerable:!0,get:function(){for(var ua=k.current;ua.parent;)ua=ua.parent;return ua}},current:{configurable:!0,enumerable:!0,get:function(){return Na.zone}},
currentTask:{configurable:!0,enumerable:!0,get:function(){return Pa}}});k.__symbol__=md;var q={name:"",onHasTask:function(ua,Ha,Ia,tb){return ua.hasTask(Ia,tb)},onScheduleTask:function(ua,Ha,Ia,tb){return ua.scheduleTask(Ia,tb)},onInvokeTask:function(ua,Ha,Ia,tb,rb,dc){return ua.invokeTask(Ia,tb,rb,dc)},onCancelTask:function(ua,Ha,Ia,tb){return ua.cancelTask(Ia,tb)}},v=function(ua,Ha,Ia){this._taskCounts={microTask:0,macroTask:0,eventTask:0};this._zone=ua;this._parentDelegate=Ha;this._forkZS=Ia&&
(Ia&&Ia.onFork?Ia:Ha._forkZS);this._forkDlgt=Ia&&(Ia.onFork?Ha:Ha._forkDlgt);this._forkCurrZone=Ia&&(Ia.onFork?this._zone:Ha._forkCurrZone);this._interceptZS=Ia&&(Ia.onIntercept?Ia:Ha._interceptZS);this._interceptDlgt=Ia&&(Ia.onIntercept?Ha:Ha._interceptDlgt);this._interceptCurrZone=Ia&&(Ia.onIntercept?this._zone:Ha._interceptCurrZone);this._invokeZS=Ia&&(Ia.onInvoke?Ia:Ha._invokeZS);this._invokeDlgt=Ia&&(Ia.onInvoke?Ha:Ha._invokeDlgt);this._invokeCurrZone=Ia&&(Ia.onInvoke?this._zone:Ha._invokeCurrZone);
this._handleErrorZS=Ia&&(Ia.onHandleError?Ia:Ha._handleErrorZS);this._handleErrorDlgt=Ia&&(Ia.onHandleError?Ha:Ha._handleErrorDlgt);this._handleErrorCurrZone=Ia&&(Ia.onHandleError?this._zone:Ha._handleErrorCurrZone);this._scheduleTaskZS=Ia&&(Ia.onScheduleTask?Ia:Ha._scheduleTaskZS);this._scheduleTaskDlgt=Ia&&(Ia.onScheduleTask?Ha:Ha._scheduleTaskDlgt);this._scheduleTaskCurrZone=Ia&&(Ia.onScheduleTask?this._zone:Ha._scheduleTaskCurrZone);this._invokeTaskZS=Ia&&(Ia.onInvokeTask?Ia:Ha._invokeTaskZS);
this._invokeTaskDlgt=Ia&&(Ia.onInvokeTask?Ha:Ha._invokeTaskDlgt);this._invokeTaskCurrZone=Ia&&(Ia.onInvokeTask?this._zone:Ha._invokeTaskCurrZone);this._cancelTaskZS=Ia&&(Ia.onCancelTask?Ia:Ha._cancelTaskZS);this._cancelTaskDlgt=Ia&&(Ia.onCancelTask?Ha:Ha._cancelTaskDlgt);this._cancelTaskCurrZone=Ia&&(Ia.onCancelTask?this._zone:Ha._cancelTaskCurrZone);this._hasTaskCurrZone=this._hasTaskDlgtOwner=this._hasTaskDlgt=this._hasTaskZS=null;ua=Ia&&Ia.onHasTask;var tb=Ha&&Ha._hasTaskZS;if(ua||tb)this._hasTaskZS=
ua?Ia:q,this._hasTaskDlgt=Ha,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,Ia.onScheduleTask||(this._scheduleTaskZS=q,this._scheduleTaskDlgt=Ha,this._scheduleTaskCurrZone=this._zone),Ia.onInvokeTask||(this._invokeTaskZS=q,this._invokeTaskDlgt=Ha,this._invokeTaskCurrZone=this._zone),Ia.onCancelTask||(this._cancelTaskZS=q,this._cancelTaskDlgt=Ha,this._cancelTaskCurrZone=this._zone)};v.prototype.fork=function(ua,Ha){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,ua,Ha):
new k(ua,Ha)};v.prototype.intercept=function(ua,Ha,Ia){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,ua,Ha,Ia):Ha};v.prototype.invoke=function(ua,Ha,Ia,tb,rb){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,ua,Ha,Ia,tb,rb):Ha.apply(Ia,tb)};v.prototype.handleError=function(ua,Ha){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,ua,Ha):!0};v.prototype.scheduleTask=
function(ua,Ha){var Ia=Ha;if(this._scheduleTaskZS)this._hasTaskZS&&Ia._zoneDelegates.push(this._hasTaskDlgtOwner),(Ia=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,ua,Ha))||(Ia=Ha);else if(Ha.scheduleFn)Ha.scheduleFn(Ha);else if(Ha.type=="microTask")d(Ha);else throw Error("qa");return Ia};v.prototype.invokeTask=function(ua,Ha,Ia,tb){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,ua,Ha,Ia,tb):Ha.callback.apply(Ia,
tb)};v.prototype.cancelTask=function(ua,Ha){if(this._cancelTaskZS)ua=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,ua,Ha);else{if(!Ha.cancelFn)throw Error("ra");ua=Ha.cancelFn(Ha)}return ua};v.prototype.hasTask=function(ua,Ha){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,ua,Ha)}catch(Ia){this.handleError(ua,Ia)}};v.prototype._updateTaskCount=function(ua,Ha){var Ia=this._taskCounts,tb=Ia[ua];Ha=Ia[ua]=tb+Ha;if(Ha<0)throw Error("sa");
tb!=0&&Ha!=0||this.hasTask(this._zone,{microTask:Ia.microTask>0,macroTask:Ia.macroTask>0,eventTask:Ia.eventTask>0,change:ua})};nd.Object.defineProperties(v.prototype,{zone:{configurable:!0,enumerable:!0,get:function(){return this._zone}}});var A=function(ua,Ha,Ia,tb,rb,dc){this._zone=null;this.runCount=0;this._zoneDelegates=null;this._state="notScheduled";this.type=ua;this.source=Ha;this.data=tb;this.scheduleFn=rb;this.cancelFn=dc;if(!Ia)throw Error("ta");this.callback=Ia;var bc=this;this.invoke=
ua==="eventTask"&&tb&&tb.useG?A.invokeTask:function(){return A.invokeTask.call(ld,bc,this,arguments)}};A.invokeTask=function(ua,Ha,Ia){ua||(ua=this);hb++;try{return ua.runCount++,ua.zone.runTask(ua,Ha,Ia)}finally{hb==1&&e(),hb--}};A.prototype.cancelScheduleRequest=function(){this._transitionTo("notScheduled","scheduling")};A.prototype._transitionTo=function(ua,Ha,Ia){if(this._state===Ha||this._state===Ia)this._state=ua,ua=="notScheduled"&&(this._zoneDelegates=null);else throw Error("ua`"+this.type+
"`"+this.source+"`"+ua+"`"+Ha+"`"+(Ia?" or '"+Ia+"'":"")+"`"+this._state);};A.prototype.toString=function(){return this.data&&typeof this.data.handleId!=="undefined"?this.data.handleId.toString():Object.prototype.toString.call(this)};A.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}};nd.Object.defineProperties(A.prototype,{zone:{configurable:!0,enumerable:!0,get:function(){return this._zone}},state:{configurable:!0,
enumerable:!0,get:function(){return this._state}}});var E=md("setTimeout"),H=md("Promise"),L=md("then"),O=[],S=!1,aa,ka={name:"NO ZONE"},na={},za={symbol:md,currentZoneFrame:function(){return Na},onUnhandledError:f,microtaskDrainDone:f,scheduleMicroTask:d,showUncaughtError:function(){return!k[md("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:f,patchMethod:function(){return f},bindArguments:function(){return[]},patchThen:function(){return f},patchMacroTask:function(){return f},
patchEventPrototype:function(){return f},isIEOrEdge:function(){return!1},getGlobalObjects:function(){},ObjectDefineProperty:function(){return f},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return f},wrapWithCurrentZone:function(){return f},filterProperties:function(){return[]},attachOriginToPatched:function(){return f},_redefineProperty:function(){return f},patchCallbacks:function(){return f},nativeScheduleMicroTask:c},
Na={parent:null,zone:new k(null,null)},Pa=null,hb=0;b("Zone","Zone");return k},oea=function(a,b){return Zone.current.wrap(a,b)},pea=function(a,b){for(var c=a.length-1;c>=0;c--)typeof a[c]==="function"&&(a[c]=oea(a[c],b+"_"+c));return a},rea=function(a){for(var b=["getCurrentPosition","watchPosition"],c=a.constructor.name,d={},e=0;e<b.length;d={name$jscomp$140:void 0},e++){d.name$jscomp$140=b[e];var f=a[d.name$jscomp$140];if(f){var h=od(a,d.name$jscomp$140);qea(h)&&(a[d.name$jscomp$140]=function(k){return function(q){var v=
function(){return q.apply(this,pea(arguments,c+"."+k.name$jscomp$140))};qd(v,q);return v}}(d)(f))}}},qea=function(a){return a?a.writable===!1?!1:!(typeof a.get==="function"&&typeof a.set==="undefined"):!0},vea=function(a,b,c){var d=od(a,b);!d&&c&&od(c,b)&&(d={enumerable:!0,configurable:!0});if(d&&d.configurable&&(c=md("on"+b+"patched"),!a.hasOwnProperty(c)||!a[c])){delete d.writable;delete d.value;var e=d.get,f=d.set,h=b.slice(2),k=sea[h];k||(k=sea[h]=md("ON_PROPERTY"+h));d.set=function(q){var v=
this;v||a!==rd||(v=rd);v&&(typeof v[k]==="function"&&v.removeEventListener(h,tea),f==null||f.call(v,null),v[k]=q,typeof q==="function"&&v.addEventListener(h,tea,!1))};d.get=function(){var q=this;q||a!==rd||(q=rd);if(!q)return null;var v=q[k];return v?v:e&&(v=e.call(this))?(d.set.call(this,v),typeof q.removeAttribute==="function"&&q.removeAttribute(b),v):null};uea(a,b,d);a[c]=!0}},wea=function(a,b,c){if(b)for(var d=0;d<b.length;d++)vea(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++)vea(a,b[d],c)}},td=function(a){var b=rd[a];if(b){rd[md(a)]=b;rd[a]=function(){var e=pea(arguments,a);switch(e.length){case 0:this[sd]=new b;break;case 1:this[sd]=new b(e[0]);break;case 2:this[sd]=new b(e[0],e[1]);break;case 3:this[sd]=new b(e[0],e[1],e[2]);break;case 4:this[sd]=new b(e[0],e[1],e[2],e[3]);break;default:throw Error("va");}};qd(rd[a],b);var c=new b(function(){}),d;for(d in c)a==="XMLHttpRequest"&&d==="responseBlob"||function(e){typeof c[e]==="function"?rd[a].prototype[e]=
function(){return this[sd][e].apply(this[sd],arguments)}:uea(rd[a].prototype,e,{set:function(f){typeof f==="function"?(this[sd][e]=oea(f,a+"."+e),qd(this[sd][e],f)):this[sd][e]=f},get:function(){return this[sd][e]}})}(d);for(d in b)d!=="prototype"&&b.hasOwnProperty(d)&&(rd[a][d]=b[d])}},ud=function(a,b,c){for(var d=a;d&&!d.hasOwnProperty(b);)d=xea(d);!d&&a[b]&&(d=a);a=md(b);var e=null;if(d&&(!(e=d[a])||!d.hasOwnProperty(a))){e=d[a]=d[b];var f=d&&od(d,b);if(qea(f)){var h=c(e,a,b);d[b]=function(){return h(this,
arguments)};qd(d[b],e)}}return e},yea=function(a,b,c){function d(f){var h=f.data;h.args[h.cbIdx]=function(){f.invoke.apply(this,arguments)};e.apply(h.target,h.args);return f}var e=null;e=ud(a,b,function(f){return function(h,k){var q=c(h,k);return q.cbIdx>=0&&typeof k[q.cbIdx]==="function"?Zone.current.scheduleMacroTask(q.name,k[q.cbIdx],q,d,void 0):f.apply(h,k)}})},qd=function(a,b){a[md("OriginalDelegate")]=b},Bea=function(){if(zea)return Aea;zea=!0;try{var a=vd.navigator.userAgent;if(a.indexOf("MSIE ")!==
-1||a.indexOf("Trident/")!==-1||a.indexOf("Edge/")!==-1)Aea=!0}catch(b){}return Aea},Cea=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})},Dea=function(a){return Object.getOwnPropertyNames(a).filter(function(b){return b.startsWith("on")&&b.length>2}).map(function(b){return b.substring(2)})},Eea=function(a,b){var c=(b?b(a):a)+"false";b=(b?b(a):a)+"true";
c=wd+c;b=wd+b;xd[a]={};xd[a]["false"]=c;xd[a]["true"]=b},Lea=function(a,b,c,d){function e(ka,na,za){if(na=na||a.event){ka=ka||na.target||a;var Na=ka[xd[na.type][za?"true":"false"]];if(Na){za=[];if(Na.length===1)(na=H(Na[0],ka,na))&&za.push(na);else{Na=Na.slice();for(var Pa=0;Pa<Na.length&&(!na||na[Fea]!==!0);Pa++){var hb=H(Na[Pa],ka,na);hb&&za.push(hb)}}if(za.length===1)throw za[0];na={};for(ka=0;ka<za.length;na={err$jscomp$24:void 0},ka++)na.err$jscomp$24=za[ka],b.nativeScheduleMicroTask(function(ua){return function(){throw ua.err$jscomp$24;
}}(na))}}}function f(ka,na){function za(Lb,Dc){return Dc?typeof Lb==="boolean"?{capture:Lb,passive:!0}:Lb?typeof Lb==="object"&&Lb.passive!==!1?Object.assign({},Lb,{passive:!0}):Lb:{passive:!0}:Lb}function Na(Lb){if(typeof Lb==="object"&&Lb!==null){var Dc=Object.assign({},Lb);Lb.signal&&(Dc.signal=Lb.signal);return Dc}return Lb}if(!ka)return!1;var Pa=!0;na&&na.useG!==void 0&&(Pa=na.useG);var hb=na&&na.vh,ua=!0;na&&na.chkDup!==void 0&&(ua=na.chkDup);var Ha=!1;na&&na.rt!==void 0&&(Ha=na.rt);for(var Ia=
ka;Ia&&!Ia.hasOwnProperty(h);)Ia=xea(Ia);!Ia&&ka[h]&&(Ia=ka);if(!Ia||Ia[A])return!1;var tb=na&&na.eventNameToString,rb={},dc=Ia[A]=Ia[h],bc=Ia[md(k)]=Ia[k];ka=Ia[md(q)]=Ia[q];var Ac=Ia[md(v)]=Ia[v],ic;na&&na.prepend&&(ic=Ia[md(na.prepend)]=Ia[na.prepend]);var ye=function(Lb){if(!Lb.isRemoved){var Dc=xd[Lb.eventName],Hc;Dc&&(Hc=Dc[Lb.capture?"true":"false"]);if(Dc=Hc&&Lb.target[Hc])for(var Od=0;Od<Dc.length;Od++)if(Dc[Od]===Lb){Dc.splice(Od,1);Lb.isRemoved=!0;Lb.removeAbortListener&&(Lb.removeAbortListener(),
Lb.removeAbortListener=null);Dc.length===0&&(Lb.allRemoved=!0,Lb.target[Hc]=null);break}}if(Lb.allRemoved)return bc.call(Lb.target,Lb.eventName,Lb.capture?O:L,Lb.options)},Bb=function(Lb){return dc.call(rb.target,rb.eventName,Lb.invoke,rb.options)},Sb=function(Lb){return ic.call(rb.target,rb.eventName,Lb.invoke,rb.options)},bb=function(Lb){return bc.call(Lb.target,Lb.eventName,Lb.invoke,Lb.options)};ye=Pa?ye:bb;bb=function(Lb,Dc){var Hc=typeof Dc;return Hc==="function"&&Lb.callback===Dc||Hc==="object"&&
Lb.originalDelegate===Dc};var ec=(na==null?void 0:na.diff)||bb,wc=Zone[md("UNPATCHED_EVENTS")],pd=a[md("PASSIVE_EVENTS")];bb=function(Lb,Dc,Hc,Od,Hd,Ff){Hd=Hd===void 0?!1:Hd;Ff=Ff===void 0?!1:Ff;return function(){var Bh=this||a,Vg=arguments[0];na&&na.transferEventName&&(Vg=na.transferEventName(Vg));var Sh=arguments[1];if(!Sh||Gea&&Vg==="uncaughtException")return Lb.apply(this,arguments);var G$=!1;if(typeof Sh!=="function"){if(!Sh.handleEvent)return Lb.apply(this,arguments);G$=!0}if(!hb||hb(Lb,Sh,
Bh,arguments)){var AA=!!pd&&pd.indexOf(Vg)!==-1,io=Na(za(arguments[2],AA)),fw=io==null?void 0:io.signal;if(fw==null||!fw.aborted){if(wc)for(var TF=0;TF<wc.length;TF++)if(Vg===wc[TF])return AA?Lb.call(Bh,Vg,Sh,io):Lb.apply(this,arguments);AA=io?typeof io==="boolean"?!0:io.capture:!1;TF=io&&typeof io==="object"?io.once:!1;var Ula=Zone.current,Dp=xd[Vg];Dp||(Eea(Vg,tb),Dp=xd[Vg]);var ut=Dp[AA?"true":"false"];Dp=Bh[ut];var gw=!1;if(Dp){if(gw=!0,ua)for(ut=0;ut<Dp.length;ut++)if(ec(Dp[ut],Sh))return}else Dp=
Bh[ut]=[];var QM;ut=Bh.constructor.name;var H$=Hea[ut];H$&&(QM=H$[Vg]);QM||(QM=ut+Dc+(tb?tb(Vg):Vg));rb.options=io;TF&&(rb.options.once=!1);rb.target=Bh;rb.capture=AA;rb.eventName=Vg;rb.isExisting=gw;if(gw=Pa?Iea:void 0)gw.taskData=rb;fw&&(rb.options.signal=void 0);var jo=Ula.scheduleEventTask(QM,Sh,gw,Hc,Od);if(fw){rb.options.signal=fw;var Vla=function(){return jo.zone.cancelTask(jo)};Lb.call(fw,"abort",Vla,{once:!0});jo.removeAbortListener=function(){return fw.removeEventListener("abort",Vla)}}rb.target=
null;gw&&(gw.taskData=null);TF&&(rb.options.once=!0);typeof jo.options!=="boolean"&&(jo.options=io);jo.target=Bh;jo.capture=AA;jo.eventName=Vg;G$&&(jo.originalDelegate=Sh);Ff?Dp.unshift(jo):Dp.push(jo);if(Hd)return Bh}}}};Ia[h]=bb(dc,E,Pa?function(){if(!rb.isExisting)return dc.call(rb.target,rb.eventName,rb.capture?O:L,rb.options)}:Bb,ye,Ha);ic&&(Ia.prependListener=bb(ic,".prependListener:",Sb,ye,Ha,!0));Ia[k]=function(){var Lb=this||a,Dc=arguments[0];na&&na.transferEventName&&(Dc=na.transferEventName(Dc));
var Hc=arguments[2];Hc=Hc?typeof Hc==="boolean"?!0:Hc.capture:!1;var Od=arguments[1];if(!Od)return bc.apply(this,arguments);if(!hb||hb(bc,Od,Lb,arguments)){var Hd=xd[Dc],Ff;Hd&&(Ff=Hd[Hc?"true":"false"]);if(Hd=Ff&&Lb[Ff])for(var Bh=0;Bh<Hd.length;Bh++){var Vg=Hd[Bh];if(ec(Vg,Od)){Hd.splice(Bh,1);Vg.isRemoved=!0;Hd.length===0&&(Vg.allRemoved=!0,Lb[Ff]=null,Hc||typeof Dc!=="string"||(Lb[wd+"ON_PROPERTY"+Dc]=null));Vg.zone.cancelTask(Vg);if(Ha)return Lb;return}}return bc.apply(this,arguments)}};Ia[q]=
function(){var Lb=this||a,Dc=arguments[0];na&&na.transferEventName&&(Dc=na.transferEventName(Dc));var Hc=[];Lb=Jea(Lb,tb?tb(Dc):Dc);for(Dc=0;Dc<Lb.length;Dc++){var Od=Lb[Dc];Hc.push(Od.originalDelegate?Od.originalDelegate:Od.callback)}return Hc};Ia[v]=function(){var Lb=this||a,Dc=arguments[0];if(Dc){na&&na.transferEventName&&(Dc=na.transferEventName(Dc));var Hc=xd[Dc];if(Hc){var Od=Lb[Hc["false"]];Lb=Lb[Hc["true"]];if(Od)for(Od=Od.slice(),Hc=0;Hc<Od.length;Hc++){var Hd=Od[Hc];this[k].call(this,Dc,
Hd.originalDelegate?Hd.originalDelegate:Hd.callback,Hd.options)}if(Lb)for(Lb=Lb.slice(),Od=0;Od<Lb.length;Od++)Hc=Lb[Od],this[k].call(this,Dc,Hc.originalDelegate?Hc.originalDelegate:Hc.callback,Hc.options)}}else{Dc=Object.keys(Lb);for(Lb=0;Lb<Dc.length;Lb++)(Od=(Od=Kea.exec(Dc[Lb]))&&Od[1])&&Od!=="removeListener"&&this[v].call(this,Od);this[v].call(this,"removeListener")}if(Ha)return this};qd(Ia[h],dc);qd(Ia[k],bc);Ac&&qd(Ia[v],Ac);ka&&qd(Ia[q],ka);return!0}for(var h=d&&d.add||"addEventListener",
k=d&&d.rm||"removeEventListener",q=d&&d.listeners||"eventListeners",v=d&&d.rmAll||"removeAllListeners",A=md(h),E="."+h+":",H=function(ka,na,za){if(!ka.isRemoved){var Na=ka.callback;typeof Na==="object"&&Na.handleEvent&&(ka.callback=function(ua){return Na.handleEvent(ua)},ka.originalDelegate=Na);try{ka.invoke(ka,na,[za])}catch(ua){var Pa=ua}var hb=ka.options;hb&&typeof hb==="object"&&hb.once&&na[k].call(na,za.type,ka.originalDelegate?ka.originalDelegate:ka.callback,hb);return Pa}},L=function(ka){return e(this,
ka,!1)},O=function(ka){return e(this,ka,!0)},S=[],aa=0;aa<c.length;aa++)S[aa]=f(c[aa],d);return S},Jea=function(a,b){if(!b){var c=[],d;for(d in a){var e=Kea.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=xd[b];c||(Eea(b),c=xd[b]);b=a[c["false"]];a=a[c["true"]];return b?a?b.concat(a):b.slice():a?a.slice():[]},Mea=function(a,b){(a=a.Event)&&a.prototype&&b.patchMethod(a.prototype,"stopImmediatePropagation",function(c){return function(d,e){d[Fea]=!0;c&&
c.apply(d,e)}})},Rea=function(){yd.__load_patch("util",function(a,b,c){var d=Dea(a);c.patchOnProperties=wea;c.patchMethod=ud;c.bindArguments=pea;c.patchMacroTask=yea;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=Mea;c.patchEventTarget=Lea;c.isIEOrEdge=Bea;c.ObjectDefineProperty=uea;c.ObjectGetOwnPropertyDescriptor=od;c.ObjectCreate=Nea;c.ArraySlice=Oea;c.patchClass=td;c.wrapWithCurrentZone=oea;c.filterProperties=
Cea;c.attachOriginToPatched=qd;c._redefineProperty=Object.defineProperty;c.patchCallbacks=mea;c.getGlobalObjects=function(){return{globalSources:Hea,zoneSymbolEventNames:xd,eventNames:d,isBrowser:Pea,isMix:Qea,isNode:Gea,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:wd,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"}}})},Yea=function(){Sea=Zone.__symbol__;Tea=Object[Sea("defineProperty")]=Object.defineProperty;Uea=Object[Sea("getOwnPropertyDescriptor")]=
Object.getOwnPropertyDescriptor;Vea=Object.create;zd=Sea("unconfigurables");Object.defineProperty=function(a,b,c){if(a&&a[zd]&&a[zd][b])throw new TypeError("wa`"+b+"`"+a);var d=c.configurable;b!=="prototype"&&(c=Wea(a,b,c));return Xea(a,b,c,d)};Object.defineProperties=function(a,b){Object.keys(b).forEach(function(f){Object.defineProperty(a,f,b[f])});for(var c=l(Object.getOwnPropertySymbols(b)),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0;((e=Object.getOwnPropertyDescriptor(b,d))==null?0:
e.enumerable)&&Object.defineProperty(a,d,b[d])}return a};Object.create=function(a,b){typeof b!=="object"||Object.isFrozen(b)||Object.keys(b).forEach(function(c){b[c]=Wea(a,c,b[c])});return Vea(a,b)};Object.getOwnPropertyDescriptor=function(a,b){var c=Uea(a,b);c&&a&&a[zd]&&a[zd][b]&&(c.configurable=!1);return c}},Zea=function(a,b,c){var d=c.configurable;c=Wea(a,b,c);return Xea(a,b,c,d)},Wea=function(a,b,c){Object.isFrozen(c)||(c.configurable=!0);c.configurable||(a[zd]||Object.isFrozen(a)||Tea(a,zd,
{writable:!0,value:{}}),a[zd]&&(a[zd][b]=!0));return c},Xea=function(a,b,c,d){try{return Tea(a,b,c)}catch(e){if(c.configurable){typeof d=="undefined"?delete c.configurable:c.configurable=d;try{return Tea(a,b,c)}catch(f){d=!1;if(b==="createdCallback"||b==="attachedCallback"||b==="detachedCallback"||b==="attributeChangedCallback")d=!0;if(!d)throw f;d=null;try{d=JSON.stringify(c)}catch(h){d=c.toString()}console.log("Attempting to configure '"+b+"' with descriptor '"+d+"' on object '"+a+"' and got error, giving up: "+
f)}}else throw e;}},$ea=function(a,b){var c=b.getGlobalObjects(),d=c.eventNames,e=c.globalSources,f=c.zoneSymbolEventNames,h=c.TRUE_STR,k=c.FALSE_STR,q=c.ZONE_SYMBOL_PREFIX,v="ApplicationCache EventSource FileReader InputMethodContext MediaController MessagePort Node Performance SVGElementInstance SharedWorker TextTrack TextTrackCue TextTrackList WebKitNamedFlow Window Worker WorkerGlobalScope XMLHttpRequest XMLHttpRequestEventTarget XMLHttpRequestUpload IDBRequest IDBOpenDBRequest IDBDatabase IDBTransaction IDBCursor DBIndex WebSocket".split(" ");
c=[];var A="Anchor Area Audio BR Base BaseFont Body Button Canvas Content DList Directory Div Embed FieldSet Font Form Frame FrameSet HR Head Heading Html IFrame Image Input Keygen LI Label Legend Link Map Marquee Media Menu Meta Meter Mod OList Object OptGroup Option Output Paragraph Pre Progress Quote Script Select Source Span Style TableCaption TableCell TableCol Table TableRow TableSection TextArea Title Track UList Unknown Video".split(" ");a.wtf?c=A.map(function(na){return"HTML"+na+"Element"}).concat(v):
a.EventTarget?c.push("EventTarget"):c=v;var E=a.__Zone_disable_IE_check||!1,H=a.__Zone_enable_cross_context_check||!1,L=b.isIEOrEdge(),O={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"};for(v=0;v<d.length;v++){var S=d[v],aa=q+(S+k),ka=q+(S+h);f[S]={};f[S][k]=aa;f[S][h]=ka}for(f=0;f<A.length;f++)for(h=
A[f],k=e[h]={},q=0;q<d.length;q++)v=d[q],k[v]=h+".addEventListener:"+v;d=[];for(e=0;e<c.length;e++)A=a[c[e]],d.push(A&&A.prototype);b.patchEventTarget(a,b,d,{vh:function(na,za,Na,Pa){if(!E&&L)if(H)try{var hb=za.toString();if(hb==="[object FunctionWrapper]"||hb=="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }")return na.apply(Na,Pa),!1}catch(ua){return na.apply(Na,Pa),!1}else{if(za=za.toString(),za==="[object FunctionWrapper]"||za=="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }")return na.apply(Na,
Pa),!1}else if(H)try{za.toString()}catch(ua){return na.apply(Na,Pa),!1}return!0},transferEventName:function(na){return O[na]||na}});Zone[b.symbol("patchEventTarget")]=!!a.EventTarget},afa=function(a,b){var c=a.getGlobalObjects(),d=c.ADD_EVENT_LISTENER_STR,e=c.REMOVE_EVENT_LISTENER_STR,f=b.WebSocket;b.EventTarget||a.patchEventTarget(b,a,[f.prototype]);b.WebSocket=function(k,q){var v=arguments.length>1?new f(k,q):new f(k),A=a.ObjectGetOwnPropertyDescriptor(v,"onmessage");if(A&&A.configurable===!1){var E=
a.ObjectCreate(v);var H=v;[d,e,"send","close"].forEach(function(L){E[L]=function(){var O=a.ArraySlice.call(arguments);if(L===d||L===e){var S=O.length>0?O[0]:void 0;S&&(S=Zone.__symbol__("ON_PROPERTY"+S),v[S]=E[S])}return v[L].apply(v,O)}})}else E=v;a.patchOnProperties(E,["close","error","message","open"],H);return E};c=b.WebSocket;for(var h in f)c[h]=f[h]},bfa=function(a,b){var c=a.getGlobalObjects(),d=c.isMix;if((c.isBrowser||d)&&!a.ObjectGetOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&
typeof Element!=="undefined"){if((c=a.ObjectGetOwnPropertyDescriptor(Element.prototype,"onclick"))&&!c.configurable)return!1;if(c)return a.ObjectDefineProperty(Element.prototype,"onclick",{enumerable:!0,configurable:!0,get:function(){return!0}}),d=!!document.createElement("div").onclick,a.ObjectDefineProperty(Element.prototype,"onclick",c),d}var e=b.XMLHttpRequest;if(!e)return!1;c=e.prototype;if(d=a.ObjectGetOwnPropertyDescriptor(c,"onreadystatechange"))return a.ObjectDefineProperty(c,"onreadystatechange",
{enumerable:!0,configurable:!0,get:function(){return!0}}),e=!!(new e).onreadystatechange,a.ObjectDefineProperty(c,"onreadystatechange",d||{}),e;var f=a.symbol("fake");a.ObjectDefineProperty(c,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return this[f]},set:function(h){this[f]=h}});a=new e;c=function(){};a.onreadystatechange=c;c=a[f]===c;a.onreadystatechange=null;return c},dfa=function(a){for(var b=a.symbol("unbound"),c={},d=0;d<cfa.length;c={onproperty:void 0},d++){var e=cfa[d];
c.onproperty="on"+e;self.addEventListener(e,function(f){return function(h){h=h.target;var k;for(k=h?h.constructor.name+"."+f.onproperty:"unknown."+f.onproperty;h;){if(h[f.onproperty]&&!h[f.onproperty][b]){var q=a.wrapWithCurrentZone(h[f.onproperty],k);q[b]=h[f.onproperty];h[f.onproperty]=q}h=h.parentElement}}}(c),!0)}},efa=function(){var a=typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};a[(a.__Zone_symbol_prefix||"__zone_symbol__")+"legacyPatch"]=
function(){var b=a.Zone;b.__load_patch("defineProperty",function(c,d,e){e._redefineProperty=Zea;Yea()});b.__load_patch("registerElement",function(c,d,e){d=e.getGlobalObjects();var f=d.isMix;(d.isBrowser||f)&&"registerElement"in c.document&&e.patchCallbacks(e,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])});b.__load_patch("EventTargetLegacy",function(c,d,e){$ea(c,e);d=e.getGlobalObjects();var f=d.isMix;d.isNode&&!f||bfa(e,
c)||(d=typeof WebSocket!=="undefined",dfa(e),e.patchClass("XMLHttpRequest"),d&&afa(e,c),Zone[e.symbol("patchEvents")]=!0)})}},ffa=function(a,b){b.patchMethod(a,"queueMicrotask",function(){return function(c,d){Zone.current.scheduleMicroTask("queueMicrotask",d[0])}})},Ad=function(a,b,c,d){function e(v){var A=v.data;A.args[0]=function(){return v.invoke.apply(this,arguments)};var E=h.apply(a,A.args);typeof E==="number"?A.handleId=E:(A.handle=E,A.isRefreshable=typeof E.refresh==="function");return v}function f(v){v=
v.data;var A=v.handleId,E;return k.call(a,(E=v.handle)!=null?E:A)}var h=null,k=null;b+=d;c+=d;var q={};h=ud(a,b,function(v){return function(A,E){if(typeof E[0]==="function"){var H={isRefreshable:!1,isPeriodic:d==="Interval",delay:d==="Timeout"||d==="Interval"?E[1]||0:void 0,args:E},L=E[0];E[0]=function(){try{return L.apply(this,arguments)}finally{var za=H.handle,Na=H.handleId,Pa=H.isRefreshable;H.isPeriodic||Pa||(Na?delete q[Na]:za&&(za[gfa]=null))}};var O=Zone.current.scheduleMacroTask(b,E[0],H,
e,f);if(!O)return O;var S=O.data;A=S.handleId;E=S.handle;var aa=S.isRefreshable;S=S.isPeriodic;if(A)q[A]=O;else if(E&&(E[gfa]=O,aa&&!S)){var ka=E.refresh;E.refresh=function(){var za=O.zone,Na=O.state;Na==="notScheduled"?(O._state="scheduled",za._updateTaskCount(O,1)):Na==="running"&&(O._state="scheduling");return ka.call(this)}}var na;return(na=E!=null?E:A)!=null?na:O}return v.apply(a,E)}});k=ud(a,c,function(v){return function(A,E){A=E[0];if(typeof A==="number"){var H=q[A];delete q[A]}else(H=A==null?
void 0:A[gfa])?A[gfa]=null:H=A;var L;((L=H)==null?0:L.type)?H.cancelFn&&H.zone.cancelTask(H):v.apply(a,E)}})},jfa=function(){var a=yd;a.__load_patch("legacy",function(b){(b=b[a.__symbol__("legacyPatch")])&&b()});a.__load_patch("timers",function(b){Ad(b,"set","clear","Timeout");Ad(b,"set","clear","Interval");Ad(b,"set","clear","Immediate")});a.__load_patch("requestAnimationFrame",function(b){Ad(b,"request","cancel","AnimationFrame");Ad(b,"mozRequest","mozCancel","AnimationFrame");Ad(b,"webkitRequest",
"webkitCancel","AnimationFrame")});a.__load_patch("blocking",function(b,c){for(var d=["alert","prompt","confirm"],e=0;e<d.length;e++)ud(b,d[e],function(f,h,k){return function(q,v){return c.current.run(f,b,v,k)}})});a.__load_patch("EventTarget",function(b,c,d){d.patchEventPrototype(b,d);if(!Zone[d.symbol("patchEventTarget")]){var e=d.getGlobalObjects();c=e.eventNames;var f=e.zoneSymbolEventNames,h=e.TRUE_STR,k=e.FALSE_STR;e=e.ZONE_SYMBOL_PREFIX;for(var q=0;q<c.length;q++){var v=c[q],A=e+(v+k),E=e+
(v+h);f[v]={};f[v][k]=A;f[v][h]=E}(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(){td("MutationObserver");td("WebKitMutationObserver")});a.__load_patch("IntersectionObserver",function(){td("IntersectionObserver")});a.__load_patch("FileReader",function(){td("FileReader")});a.__load_patch("on_property",function(b,c,d){if((!Gea||Qea)&&!Zone[d.symbol("patchEvents")]){c=
b.__Zone_ignore_on_properties;d=[];if(Pea){var e=window;d=d.concat("Document SVGElement Element HTMLElement HTMLBodyElement HTMLMediaElement HTMLFrameSetElement HTMLFrameElement HTMLIFrameElement HTMLMarqueeElement Worker".split(" "));var f=[],h=Dea(e),k=c?c.concat(f):c;f=xea(e);e&&(h=Cea(e,h,k),wea(e,h,f))}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]],h=void 0,
(h=f)==null?0:h.prototype)h=f.prototype,f=Dea(f.prototype),h&&(f=Cea(h,f,c),wea(h,f,void 0))}});a.__load_patch("customElements",function(b,c,d){c=d.getGlobalObjects();var e=c.isMix;(c.isBrowser||e)&&b.customElements&&"customElements"in b&&d.patchCallbacks(d,b.customElements,"customElements","define","connectedCallback disconnectedCallback adoptedCallback attributeChangedCallback formAssociatedCallback formDisabledCallback formResetCallback formStateRestoreCallback".split(" "))});a.__load_patch("XHR",
function(b,c){(function(v){function A(Pa){var hb=Pa.data,ua=hb.target;ua[h]=!1;ua[q]=!1;var Ha=ua[f];O||(O=ua[hfa],S=ua[ifa]);Ha&&S.call(ua,"readystatechange",Ha);Ha=ua[f]=function(){if(ua.readyState===ua.DONE)if(!hb.aborted&&ua[h]&&Pa.state==="scheduled"){var Ia=ua[c.__symbol__("loadfalse")];if(ua.status!==0&&Ia&&Ia.length>0){var tb=Pa.invoke;Pa.invoke=function(){for(var rb=ua[c.__symbol__("loadfalse")],dc=0;dc<rb.length;dc++)rb[dc]===Pa&&rb.splice(dc,1);hb.aborted||Pa.state!=="scheduled"||tb.call(Pa)};
Ia.push(Pa)}else Pa.invoke()}else hb.aborted||ua[h]!==!1||(ua[q]=!0)};O.call(ua,"readystatechange",Ha);ua[d]||(ua[d]=Pa);za.apply(ua,hb.args);ua[h]=!0;return Pa}function E(){}function H(Pa){Pa=Pa.data;Pa.aborted=!0;return Na.apply(Pa.target,Pa.args)}var L=v.XMLHttpRequest;if(L){L=L.prototype;var O=L[hfa],S=L[ifa];!O&&(v=v.XMLHttpRequestEventTarget)&&(v=v.prototype,O=v[hfa],S=v[ifa]);var aa=ud(L,"open",function(){return function(Pa,hb){Pa[e]=hb[2]==0;Pa[k]=hb[1];return aa.apply(Pa,hb)}}),ka=md("fetchTaskAborting"),
na=md("fetchTaskScheduling"),za=ud(L,"send",function(){return function(Pa,hb){if(c.current[na]===!0||Pa[e])return za.apply(Pa,hb);hb={target:Pa,url:Pa[k],isPeriodic:!1,args:hb,aborted:!1};var ua=Zone.current.scheduleMacroTask("XMLHttpRequest.send",E,hb,A,H);Pa&&Pa[q]===!0&&!hb.aborted&&ua.state==="scheduled"&&ua.invoke()}}),Na=ud(L,"abort",function(){return function(Pa,hb){var ua=Pa[d];if(ua&&typeof ua.type=="string")ua.cancelFn==null||ua.data&&ua.data.aborted||ua.zone.cancelTask(ua);else if(c.current[ka]===
!0)return Na.apply(Pa,hb)}})}})(b);var d=md("xhrTask"),e=md("xhrSync"),f=md("xhrListener"),h=md("xhrScheduled"),k=md("xhrURL"),q=md("xhrErrorBeforeScheduled")});a.__load_patch("geolocation",function(b){b.navigator&&b.navigator.geolocation&&rea(b.navigator.geolocation)});a.__load_patch("PromiseRejectionEvent",function(b,c){function d(e){return function(f){Jea(b,e).forEach(function(h){var k=b.PromiseRejectionEvent;k&&(k=new k(e,{promise:f.promise,reason:f.rejection}),h.invoke(k))})}}b.PromiseRejectionEvent&&
(c[md("unhandledPromiseRejectionHandler")]=d("unhandledrejection"),c[md("rejectionHandledHandler")]=d("rejectionhandled"))});a.__load_patch("queueMicrotask",function(b,c,d){ffa(b,d)})},kfa=function(){yd.__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}})})},lfa=function(){yd.__load_patch("Error",function(a,b,c){function d(za){for(var Na=
{zoneName:za.zone.name},Pa=Na;za.parent;){za=za.parent;var hb={zoneName:za.zone.name};Na=Na.parent=hb}return Pa}function e(za,Na,Pa){Pa=Pa===void 0?!0:Pa;za=za.split("\n");for(var hb=0;za[hb]!==A&&za[hb]!==E&&za[hb]!==H&&za[hb]!==L&&za[hb]!==O&&hb<za.length;)hb++;for(;hb<za.length&&Na;hb++){var ua=za[hb];if(ua.trim())switch(v[ua]){case h.zoneJsInternal:za.splice(hb,1);hb--;break;case h.transition:Na.parent?Na=Na.parent:Na=null;za.splice(hb,1);hb--;break;default:za[hb]+=Pa?" ["+Na.zone.name+"]":" ["+
Na.zoneName+"]"}}return za.join("\n")}function f(){var za=this,Na=q.apply(this,arguments),Pa=Na.originalStack=Na.stack;if(f.stackRewrite&&Pa){var hb=c.currentZoneFrame();if(S==="lazy")Na[c.symbol("zoneFrameNames")]=d(hb);else if(S==="default")try{Na.stack=Na.zoneAwareStack=e(Pa,hb)}catch(ua){}}return this instanceof q&&this.constructor!=q?(Object.keys(Na).concat("stack","message","cause").forEach(function(ua){var Ha=Na[ua];if(Ha!==void 0)try{za[ua]=Ha}catch(Ia){}}),this):Na}var h={zoneJsInternal:0,
transition:1},k=c.symbol("zoneJsInternalStackFrames"),q=a[c.symbol("Error")]=a.Error,v={},A,E,H,L,O;a.Error=f;var S=a.__Zone_Error_BlacklistedStackFrames_policy||a.__Zone_Error_ZoneJsInternalStackFrames_policy||"default";f.prototype=q.prototype;f[k]=v;f.stackRewrite=!1;var aa=c.symbol("zoneAwareStack");S==="lazy"&&Object.defineProperty(f.prototype,"zoneAwareStack",{configurable:!0,enumerable:!0,get:function(){this[aa]||(this[aa]=e(this.originalStack,this[c.symbol("zoneFrameNames")],!1));return this[aa]},
set:function(za){this.originalStack=za;this[aa]=e(this.originalStack,this[c.symbol("zoneFrameNames")],!1)}});var ka=["stackTraceLimit","captureStackTrace","prepareStackTrace"];(a=Object.keys(q))&&a.forEach(function(za){ka.filter(function(Na){return Na===za}).length===0&&Object.defineProperty(f,za,{get:function(){return q[za]},set:function(Na){q[za]=Na}})});q.hasOwnProperty("stackTraceLimit")&&(q.stackTraceLimit=Math.max(q.stackTraceLimit,15),Object.defineProperty(f,"stackTraceLimit",{get:function(){return q.stackTraceLimit},
set:function(za){return q.stackTraceLimit=za}}));q.hasOwnProperty("captureStackTrace")&&Object.defineProperty(f,"captureStackTrace",{value:function(za,Na){q.captureStackTrace(za,Na)}});Object.defineProperty(f,"prepareStackTrace",{get:function(){return q.prepareStackTrace},set:function(za){return za&&typeof za==="function"?q.prepareStackTrace=function(Na,Pa){if(Pa)for(var hb=0;hb<Pa.length;hb++)if(Pa[hb].getFunctionName()==="zoneCaptureStackTrace"){Pa.splice(hb,1);break}return za.call(this,Na,Pa)}:
q.prepareStackTrace=za}});if(S!=="disable"){var na=b.current.fork({name:"detect",onHandleError:function(za,Na,Pa,hb){if(hb.originalStack&&Error===f)for(za=hb.originalStack.split(/\n/),hb=Pa=Na=!1;za.length;){var ua=za.shift();if(/:\d+:\d+/.test(ua)||ua==="ZoneAwareError"){var Ha=ua.split("(")[0].split("@")[0],Ia=h.transition;Ha.indexOf("ZoneAwareError")!==-1&&(Ha.indexOf("new ZoneAwareError")!==-1?(A=ua,E=ua.replace("new ZoneAwareError","new Error.ZoneAwareError")):(H=ua,L=ua.replace("Error.",""),
ua.indexOf("Error.ZoneAwareError")===-1&&(O=ua.replace("ZoneAwareError","Error.ZoneAwareError"))),v[E]=h.zoneJsInternal);Ha.indexOf("runGuarded")!==-1?Pa=!0:Ha.indexOf("runTask")!==-1?hb=!0:Ha.indexOf("run")!==-1?Na=!0:Ia=h.zoneJsInternal;v[ua]=Ia;if(Na&&Pa&&hb){f.stackRewrite=!0;break}}}return!1}}).fork({name:"child",onScheduleTask:function(za,Na,Pa,hb){return za.scheduleTask(Pa,hb)},onInvokeTask:function(za,Na,Pa,hb,ua,Ha){return za.invokeTask(Pa,hb,ua,Ha)},onCancelTask:function(za,Na,Pa,hb){return za.cancelTask(Pa,
hb)},onInvoke:function(za,Na,Pa,hb,ua,Ha,Ia){return za.invoke(Pa,hb,ua,Ha,Ia)}});b=Error.stackTraceLimit;Error.stackTraceLimit=100;na.run(function(){na.runGuarded(function(){var za=function(){};na.scheduleEventTask(k,function(){na.scheduleMacroTask(k,function(){na.scheduleMicroTask(k,function(){throw Error();},void 0,function(Na){Na._transitionTo=za;Na.invoke()});na.scheduleMicroTask(k,function(){throw Error();},void 0,function(Na){Na._transitionTo=za;Na.invoke()})},void 0,function(Na){Na._transitionTo=
za;Na.invoke()},function(){})},void 0,function(Na){Na._transitionTo=za;Na.invoke()},function(){})})});Error.stackTraceLimit=b}})},mfa=function(){yd.__load_patch("ZoneAwarePromise",function(a,b,c){function d(Bb){if(Bb&&Bb.toString===Object.prototype.toString){var Sb=Bb.constructor&&Bb.constructor.name;return(Sb?Sb:"")+": "+JSON.stringify(Bb)}return Bb?Bb.toString():Object.prototype.toString.call(Bb)}function e(Bb){c.onUnhandledError(Bb);try{var Sb=b[Na];typeof Sb==="function"&&Sb.call(this,Bb)}catch(bb){}}
function f(Bb){return Bb}function h(Bb){return ic.reject(Bb)}function k(Bb,Sb){return function(bb){try{q(Bb,Sb,bb)}catch(ec){q(Bb,!1,ec)}}}function q(Bb,Sb,bb){var ec=tb();if(Bb===bb)throw new TypeError("za");if(Bb[Pa]===null){var wc=null;try{if(typeof bb==="object"||typeof bb==="function")wc=bb&&bb.then}catch(pd){return ec(function(){q(Bb,!1,pd)})(),Bb}if(Sb!==!1&&bb instanceof ic&&bb.hasOwnProperty(Pa)&&bb.hasOwnProperty(hb)&&bb[Pa]!==null)v(bb),q(Bb,bb[Pa],bb[hb]);else if(Sb!==!1&&typeof wc===
"function")try{wc.call(bb,ec(k(Bb,Sb)),ec(k(Bb,!1)))}catch(pd){ec(function(){q(Bb,!1,pd)})()}else{Bb[Pa]=Sb;ec=Bb[hb];Bb[hb]=bb;Bb[ua]===ua&&Sb===!0&&(Bb[Pa]=Bb[Ia],Bb[hb]=Bb[Ha]);Sb===!1&&bb instanceof Error&&(wc=b.currentTask&&b.currentTask.data&&b.currentTask.data.__creationTrace__)&&O(bb,rb,{configurable:!0,enumerable:!1,writable:!0,value:wc});for(wc=0;wc<ec.length;)A(Bb,ec[wc++],ec[wc++],ec[wc++],ec[wc++]);if(ec.length==0&&Sb==0){Bb[Pa]=0;Sb=bb;try{throw Error("Aa`"+d(bb)+"`"+(bb&&bb.stack?"\n"+
bb.stack:""));}catch(pd){Sb=pd}ka&&(Sb.throwOriginal=!0);Sb.rejection=bb;Sb.promise=Bb;Sb.zone=b.current;Sb.task=b.currentTask;aa.push(Sb);c.scheduleMicroTask()}}}return Bb}function v(Bb){if(Bb[Pa]===0){try{var Sb=b[dc];Sb&&typeof Sb==="function"&&Sb.call(this,{rejection:Bb[hb],promise:Bb})}catch(bb){}Bb[Pa]=!1;for(Sb=0;Sb<aa.length;Sb++)Bb===aa[Sb].promise&&aa.splice(Sb,1)}}function A(Bb,Sb,bb,ec,wc){v(Bb);var pd=Bb[Pa],Lb=pd?typeof ec==="function"?ec:f:typeof wc==="function"?wc:h;Sb.scheduleMicroTask("Promise.then",
function(){try{var Dc=Bb[hb],Hc=!!bb&&ua===bb[ua];Hc&&(bb[Ha]=Dc,bb[Ia]=pd);var Od=Sb.run(Lb,void 0,Hc&&Lb!==h&&Lb!==f?[]:[Dc]);q(bb,!0,Od)}catch(Hd){q(bb,!1,Hd)}},bb)}function E(Bb){var Sb=Bb.prototype,bb=L(Sb,"then");if(!bb||bb.writable!==!1&&bb.configurable){var ec=Sb.then;Sb[za]=ec;Bb.prototype.then=function(wc,pd){var Lb=this;return(new ic(function(Dc,Hc){ec.call(Lb,Dc,Hc)})).then(wc,pd)};Bb[ye]=!0}}function H(Bb){return function(Sb,bb){Sb=Bb.apply(Sb,bb);if(Sb instanceof ic)return Sb;bb=Sb.constructor;
bb[ye]||E(bb);return Sb}}var L=Object.getOwnPropertyDescriptor,O=Object.defineProperty,S=c.symbol,aa=[],ka=a[S("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,na=S("Promise"),za=S("then");c.onUnhandledError=function(Bb){if(c.showUncaughtError()){var Sb=Bb&&Bb.rejection;Sb?console.error("Unhandled Promise rejection:",Sb instanceof Error?Sb.message:Sb,"; Zone:",Bb.zone.name,"; Task:",Bb.task&&Bb.task.source,"; Value:",Sb,Sb instanceof Error?Sb.stack:void 0):console.error(Bb)}};c.microtaskDrainDone=
function(){for(var Bb={};aa.length;Bb={uncaughtPromiseError:void 0}){Bb.uncaughtPromiseError=aa.shift();try{Bb.uncaughtPromiseError.zone.runGuarded(function(Sb){return function(){if(Sb.uncaughtPromiseError.throwOriginal)throw Sb.uncaughtPromiseError.rejection;throw Sb.uncaughtPromiseError;}}(Bb))}catch(Sb){e(Sb)}}};var Na=S("unhandledPromiseRejectionHandler"),Pa=S("state"),hb=S("value"),ua=S("finally"),Ha=S("parentPromiseValue"),Ia=S("parentPromiseState"),tb=function(){var Bb=!1;return function(Sb){return function(){Bb||
(Bb=!0,Sb.apply(null,arguments))}}},rb=S("currentTaskTrace"),dc=S("rejectionHandledHandler"),bc=function(){},Ac=a.AggregateError,ic=function(Bb){if(!(this instanceof ic))throw Error("Ba");this[Pa]=null;this[hb]=[];try{var Sb=tb();Bb&&Bb(Sb(k(this,!0)),Sb(k(this,!1)))}catch(bb){q(this,!1,bb)}};ic.toString=function(){return"function ZoneAwarePromise() { [native code] }"};ic.resolve=function(Bb){return Bb instanceof ic?Bb:q(new this(null),!0,Bb)};ic.reject=function(Bb){return q(new this(null),!1,Bb)};
ic.withResolvers=function(){var Bb={};Bb.promise=new ic(function(Sb,bb){Bb.resolve=Sb;Bb.reject=bb});return Bb};ic.any=function(Bb){if(!Bb||typeof Bb[Symbol.iterator]!=="function")return Promise.reject(new Ac([],"All promises were rejected"));var Sb=[],bb=0;try{for(var ec=l(Bb),wc=ec.next();!wc.done;wc=ec.next()){var pd=wc.value;bb++;Sb.push(ic.resolve(pd))}}catch(Hc){return Promise.reject(new Ac([],"All promises were rejected"))}if(bb===0)return Promise.reject(new Ac([],"All promises were rejected"));
var Lb=!1,Dc=[];return new ic(function(Hc,Od){for(var Hd=0;Hd<Sb.length;Hd++)Sb[Hd].then(function(Ff){Lb||(Lb=!0,Hc(Ff))},function(Ff){Dc.push(Ff);bb--;bb===0&&(Lb=!0,Od(new Ac(Dc,"All promises were rejected")))})})};ic.race=function(Bb){function Sb(Dc){ec(Dc)}function bb(Dc){wc(Dc)}var ec,wc,pd=new this(function(Dc,Hc){ec=Dc;wc=Hc});Bb=l(Bb);for(var Lb=Bb.next();!Lb.done;Lb=Bb.next())(Lb=Lb.value)&&typeof Lb.then==="function"||(Lb=this.resolve(Lb)),Lb.then(Sb,bb);return pd};ic.all=function(Bb){return ic.allWithCallback(Bb)};
ic.allSettled=function(Bb){return(this&&this.prototype instanceof ic?this:ic).allWithCallback(Bb,{thenCallback:function(Sb){return{status:"fulfilled",value:Sb}},errorCallback:function(Sb){return{status:"rejected",reason:Sb}}})};ic.allWithCallback=function(Bb,Sb){var bb,ec,wc=new this(function(Hd,Ff){bb=Hd;ec=Ff}),pd=2,Lb=0,Dc=[];Bb=l(Bb);for(var Hc=Bb.next(),Od={};!Hc.done;Od={curValueIndex:void 0},Hc=Bb.next()){(Hc=Hc.value)&&typeof Hc.then==="function"||(Hc=this.resolve(Hc));Od.curValueIndex=Lb;
try{Hc.then(function(Hd){return function(Ff){Dc[Hd.curValueIndex]=Sb?Sb.thenCallback(Ff):Ff;pd--;pd===0&&bb(Dc)}}(Od),function(Hd){return function(Ff){Sb?(Dc[Hd.curValueIndex]=Sb.errorCallback(Ff),pd--,pd===0&&bb(Dc)):ec(Ff)}}(Od))}catch(Hd){ec(Hd)}pd++;Lb++}pd-=2;pd===0&&bb(Dc);return wc};nd.Object.defineProperty(ic.prototype,Symbol.toStringTag,{configurable:!0,enumerable:!0,get:function(){return"Promise"}});nd.Object.defineProperty(ic.prototype,Symbol.species,{configurable:!0,enumerable:!0,get:function(){return ic}});
ic.prototype.then=function(Bb,Sb){var bb,ec=(bb=this.constructor)==null?void 0:bb[Symbol.species];ec&&typeof ec==="function"||(ec=this.constructor||ic);bb=new ec(bc);ec=b.current;this[Pa]==null?this[hb].push(ec,bb,Bb,Sb):A(this,ec,bb,Bb,Sb);return bb};ic.prototype.catch=function(Bb){return this.then(null,Bb)};ic.prototype.finally=function(Bb){var Sb,bb=(Sb=this.constructor)==null?void 0:Sb[Symbol.species];bb&&typeof bb==="function"||(bb=ic);Sb=new bb(bc);Sb[ua]=ua;bb=b.current;this[Pa]==null?this[hb].push(bb,
Sb,Bb,Bb):A(this,bb,Sb,Bb,Bb);return Sb};ic.resolve=ic.resolve;ic.reject=ic.reject;ic.race=ic.race;ic.all=ic.all;na=a[na]=a.Promise;a.Promise=ic;var ye=S("thenPatched");c.patchThen=E;na&&(E(na),ud(a,"fetch",function(Bb){return H(Bb)}));Promise[b.__symbol__("uncaughtPromiseErrors")]=aa;return ic})},nfa=function(){yd.__load_patch("toString",function(a){var b=Function.prototype.toString,c=md("OriginalDelegate"),d=md("Promise"),e=md("Error"),f=function(){if(typeof this==="function"){var k=this[c];if(k)return typeof k===
"function"?b.call(k):Object.prototype.toString.call(k);if(this===Promise&&(k=a[d])||this===Error&&(k=a[e]))return b.call(k)}return b.call(this)};f[c]=b;Function.prototype.toString=f;var h=Object.prototype.toString;Object.prototype.toString=function(){return typeof Promise==="function"&&this instanceof Promise?"[object Promise]":h.call(this)}})},Bd=function(a){for(var b in a)if(a[b]===Bd)return b;throw Error("aa");},Cd=function(a){return{token:a.token,providedIn:a.providedIn||null,factory:a.factory,
value:void 0}},Dd=function(a){return{providers:a.providers||[],imports:a.imports||[]}},pfa=function(a){var b=ofa;return a.hasOwnProperty(b)&&a[b]||null},qfa=function(a){var b;return(a=(b=a==null?void 0:a[ofa])!=null?b:null)?a:null},sfa=function(a){return a&&a.hasOwnProperty(rfa)?a[rfa]:null},tfa=function(a,b){return Object.is(a,b)},Fd=function(a){var b=Ed;Ed=a;return b},Id=function(a){if(ufa)throw Error("aa");if(Ed!==null){Ed.consumerOnSignalRead(a);var b=Ed.producersTail;if(b===void 0||b.producer!==
a){var c=void 0,d=Ed.recomputing;if(d&&(c=b!==void 0?b.nextProducer:Ed.producers,c!==void 0&&c.producer===a)){Ed.producersTail=c;c.lastReadVersion=a.version;return}var e=a.consumersTail,f;if(!(f=e===void 0||e.consumer!==Ed)){if(d){a:{f=Ed;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=Gd(Ed),c={producer:a,consumer:Ed,nextProducer:c,prevConsumer:e,lastReadVersion:a.version,nextConsumer:void 0},Ed.producersTail=
c,b!==void 0?b.nextProducer=c:Ed.producers=c,d&&vfa(a,c))}}},Kd=function(a){if(!Gd(a)||a.dirty)if(a.dirty||a.lastCleanEpoch!==Jd)(a.producerMustRecompute(a)||wfa(a))&&a.producerRecomputeValue(a),a.dirty=!1,a.lastCleanEpoch=Jd},xfa=function(a){if(a.consumers!==void 0){var b=ufa;ufa=!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,xfa(d),(a=d.consumerMarkedDirty)==null||a.call(d,d))}}finally{ufa=b}}},yfa=function(){var a;return((a=Ed)==null?void 0:
a.consumerAllowSignalWrites)!==!1},Ld=function(a){a&&(a.producersTail=void 0,a.recomputing=!0);return Fd(a)},Md=function(a,b){Fd(b);if(a){a.recomputing=!1;b=a.producersTail;var c=b!==void 0?b.nextProducer:a.producers;if(c!==void 0){if(Gd(a)){do c=zfa(c);while(c!==void 0)}b!==void 0?b.nextProducer=void 0:a.producers=void 0}}},wfa=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;Kd(b);if(c!==b.version)return!0}return!1},Nd=function(a){if(Gd(a))for(var b=
a.producers;b!==void 0;)b=zfa(b);a.producers=void 0;a.producersTail=void 0;a.consumers=void 0;a.consumersTail=void 0},vfa=function(a,b){var c=a.consumersTail,d=Gd(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)vfa(a.producer,a)},zfa=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,!Gd(b))for(a=b.producers;a!==void 0;)a=zfa(a);return c},Gd=function(a){return a.consumerIsAlwaysLive||a.consumers!==void 0},Bfa=function(a,b){var c=Object.create(Afa);c.computation=a;b!==void 0&&(c.equal=b);a=function(){Kd(c);Id(c);if(c.value===Pd)throw c.error;return c.value};a[Qd]=c;return a},Efa=function(a,b){var c=Object.create(Cfa);c.value=a;b!==void 0&&(c.equal=b);a=function(){Id(c);return c.value};
a[Qd]=c;return[a,function(d){return Rd(c,d)},function(d){yfa()||Dfa();Rd(c,d(c.value))}]},Rd=function(a,b){yfa()||Dfa();a.equal(a.value,b)||(a.value=b,a.version++,Jd++,xfa(a))},Gfa=function(a,b,c){var d=Object.create(Ffa);d.source=a;d.computation=b;c!=void 0&&(d.equal=c);a=function(){Kd(d);Id(d);if(d.value===Pd)throw d.error;return d.value};a[Qd]=d;return a},Sd=function(a){var b=Fd(null);try{return a()}finally{Fd(b)}},Td=function(a){if(typeof a==="string")return a;if(Array.isArray(a))return"["+a.map(Td).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},Hfa=function(a,b){return a?b?a+" "+b:a:b||""},Ud=function(a){return typeof a==="string"?a:a==null?"":String(a)},Ifa=function(){throw new Vd(-201,!1);},Lfa=function(a){var b=new Vd(a,"");b[Jfa]=a;b[Kfa]="";return b},Xd=function(a){var b=Wd;Wd=a;return b},Mfa=function(a,b,c){if((a=pfa(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;Ifa()},Zd=function(a){var b=Yd;Yd=a;return b},Ofa=function(a){return a===Nfa||(a==null?void 0:a.name)==="\u0275NotFound"},$d=function(a){a.__forward_ref__=$d;a.toString=function(){return Td(this())};return a},ae=function(a){return Pfa(a)?a():a},Pfa=function(a){return typeof a==="function"&&a.hasOwnProperty(Qfa)&&a.__forward_ref__===$d},Rfa=function(a,b){b=b===void 0?0:b;var c=Yd;if(c===void 0)throw new Vd(-203,!1);if(c===null)return Mfa(a,void 0,b);
b={optional:!!(b&8),host:!!(b&1),self:!!(b&2),skipSelf:!!(b&4)};a=c.retrieve(a,b);if(Ofa(a)){if(b.optional)return null;throw a;}return a},be=function(a,b){b=b===void 0?0:b;return(Wd||Rfa)(ae(a),b)},r=function(a,b){return be(a,ce(b))},ce=function(a){return typeof a==="undefined"||typeof a==="number"?a:0|(a.optional&&8)|(a.host&&1)|(a.self&&2)|(a.skipSelf&&4)},Sfa=function(a){for(var b=[],c=0;c<a.length;c++){var d=ae(a[c]);if(Array.isArray(d)){if(d.length===0)throw new Vd(900,!1);for(var e=void 0,f=
0,h=0;h<d.length;h++){var k=d[h],q=k.__NG_DI_FLAG__;typeof q==="number"?q===-1?e=k.token:f|=q:e=k}b.push(be(e,f))}else b.push(be(d))}return b},de=function(a,b){a.__NG_DI_FLAG__=b;a.prototype.__NG_DI_FLAG__=b;return a},Ufa=function(a){return a[Tfa]||null},ee=function(a){return a.hasOwnProperty(Vfa)?a[Vfa]:null},Wfa=function(a,b){a.forEach(function(c){return Array.isArray(c)?Wfa(c,b):b(c)})},Xfa=function(a,b){return b>=a.length-1?a.pop():a.splice(b,1)[0]},Yfa=function(a,b,c){var d=fe(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}}},Zfa=function(a,b){b=fe(a,b);if(b>=0)return a[b|1]},fe=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)},aga=function(){return{"\u0275providers":$fa(!0,ge.apply(0,arguments)),"\u0275fromNgModule":!0}},$fa=function(a){var b=[],c=new Set,d,e=function(f){b.push(f)};Wfa(ge.apply(1,
arguments),function(f){bga(f,e,[],c)&&(d||(d=[]),d.push(f))});d!==void 0&&cga(d,e);return b},cga=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;dga(c.providers$jscomp$2,function(f){return function(h){b(h,f.ngModule)}}(c))}},bga=function(a,b,c,d){a=ae(a);if(!a)return!1;var e=null,f=sfa(a),h=!f&&(a[he]||null);if(f||h){if(h&&!h.standalone)return!1;e=a}else{var k=a.ngModule;if(f=sfa(k))e=k;
else return!1}k=d.has(e);if(h){if(k)return!1;d.add(e);if(h.dependencies)for(f=typeof h.dependencies==="function"?h.dependencies():h.dependencies,f=l(f),k=f.next();!k.done;k=f.next())bga(k.value,b,c,d)}else if(f){if(f.imports!=null&&!k){d.add(e);var q;Wfa(f.imports,function(A){bga(A,b,c,d)&&(q||(q=[]),q.push(A))});q!==void 0&&cga(q,b)}k||(h=ee(e)||function(){return new e},b({provide:e,useFactory:h,deps:ie},e),b({provide:ega,useValue:e,multi:!0},e),b({provide:je,useValue:function(){return be(e)},multi:!0},
e));f=f.providers;if(f!=null&&!k){var v=a;dga(f,function(A){b(A,v)})}}else return!1;return e!==a&&a.providers!==void 0},dga=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)?dga(c,b):b(c)},gga=function(a){return a!==null&&typeof a=="object"&&fga in a},ke=function(a){return typeof a==="function"},jga=function(){hga===void 0&&(hga=new iga);return hga},lga=function(a){var b=pfa(a);b=b!==null?b.factory:ee(a);if(b!==null)return b;
if(a instanceof le)throw new Vd(204,!1);if(a instanceof Function)return kga(a);throw new Vd(204,!1);},kga=function(a){if(a.length>0)throw new Vd(204,!1);var b=qfa(a);return b!==null?function(){return b.factory(a)}:function(){return new a}},oga=function(a){if(gga(a))return me(void 0,a.useValue);a=mga(a);return me(a,nga)},mga=function(a){var b=void 0;if(ke(a))return b=ae(a),ee(b)||lga(b);if(gga(a))b=function(){return ae(a.useValue)};else if(a&&a.useFactory)b=function(){return a.useFactory.apply(a,p(Sfa(a.deps||
[])))};else if(a&&a.useExisting)b=function(d,e){return be(ae(a.useExisting),e!==void 0&&e&8?8:void 0)};else{var c=ae(a&&(a.useClass||a.provide));if(a.deps)b=function(){return new (Function.prototype.bind.apply(c,[null].concat(p(Sfa(a.deps)))))};else return ee(c)||lga(c)}return b},pga=function(a){if(a.destroyed)throw new Vd(205,!1);},me=function(a,b,c){return{factory:a,value:b,multi:(c===void 0?0:c)?[]:void 0}},qga=function(a,b){a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,Array.isArray(c)?
qga(c,b):c&&c&&c.\u0275providers?qga(c.\u0275providers,b):b(c)},oe=function(a,b){a instanceof ne?pga(a):a=new rga(a);a=Zd(a);var c=Xd();try{return b()}finally{Zd(a),Xd(c)}},pe=function(a){return Array.isArray(a)&&typeof a[1]==="object"},qe=function(a){return Array.isArray(a)&&a[1]===!0},uga=function(a){a.type.prototype.ngOnChanges&&(a.setInput=sga);return tga},tga=function(){var a=this.__ngSimpleChanges__||null,b=a==null?void 0:a.current;if(b){var c=a.previous;if(c===re)a.previous=b;else for(var d in b)c[d]=
b[d];a.current=null;this.ngOnChanges(b)}},sga=function(a,b,c,d,e){d=this.declaredInputs[d];var f;(f=a.__ngSimpleChanges__||null)||(f=a.__ngSimpleChanges__={previous:re,current:null});var h=f;f=h.current||(h.current={});h=h.previous;var k=h[d];f[d]=new vga(k&&k.currentValue,c,h===re);b!==null?b.applyValueToInputSignal(b,c):a[e]=c},se=function(a){for(;Array.isArray(a);)a=a[0];return a},te=function(a,b){return se(b[a.index])},wga=function(a,b,c,d){c>=a.data.length&&(a.data[c]=null,a.blueprint[c]=null);
b[c]=d},ue=function(a,b){a=b[a];return pe(a)?a:a[0]},ve=function(a,b){return b===null||b===void 0?null:a[b]},xga=function(a){a[2]&1024||(a[2]|=1024,(a[2]&128)===128&&we(a))},yga=function(a){var b;return!!(a[2]&9216||((b=a[24])==null?0:b.dirty))},zga=function(a){var b;(b=a[10].changeDetectionScheduler)==null||b.notify(8);a[2]&64&&(a[2]|=1024);yga(a)&&we(a)},we=function(a){var b;(b=a[10].changeDetectionScheduler)==null||b.notify(0);for(a=xe(a);a!==null&&!(a[2]&8192);){a[2]|=8192;if((a[2]&128)!==128)break;
a=xe(a)}},Aga=function(a,b){if((a[2]&256)===256)throw new Vd(911,!1);a[21]===null&&(a[21]=[]);a[21].push(b)},xe=function(a){a=a[3];return qe(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=[]},t=function(){return ze.lView},u=function(a){ze.contextLView=a;return a[8]},w=function(a){ze.contextLView=null;return a},Ae=function(){for(var a=ze.currentTNode;a!==null&&a.type===64;)a=a.parent;return a},Be=function(a,b){var c=ze;c.currentTNode=
a;c.isParent=b},Ega=function(a){var b=Dga;Dga=a;return b},Ce=function(){var a=ze,b=a.bindingRootIndex;b===-1&&(b=a.bindingRootIndex=a.tView.bindingStartIndex);return b},De=function(){return ze.bindingIndex++},Ee=function(a){var b=ze,c=b.bindingIndex;b.bindingIndex+=a;return c},Fga=function(a){var b=ze.currentDirectiveIndex;return b===-1?null:a[b]},Hga=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=ze=Gga();c.currentTNode=b;c.lView=a;return!0},Iga=function(a){var b=Gga(),c=a[1];ze=b;b.currentTNode=c.firstChild;b.lView=a;b.tView=c;b.contextLView=a;b.bindingIndex=c.bindingStartIndex;b.inI18n=!1},Gga=function(){var a=ze,b=a===null?null:a.child;return b===null?Jga(a):b},Jga=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},Kga=function(){var a=ze;ze=a.parent;a.currentTNode=null;a.lView=null;return a},Lga=function(){var a=Kga();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},Fe=function(){var a=ze;return a.tView.data[a.selectedIndex]},Ge=function(){ze.currentNamespace=
"svg"},He=function(){ze.currentNamespace=null},Mga=function(a,b){var c=b.directiveStart;for(b=b.directiveEnd;c<b;c++){var d=a.data[c].type.prototype,e=d.ngAfterContentInit,f=d.ngAfterContentChecked,h=d.ngAfterViewInit,k=d.ngAfterViewChecked;d=d.ngOnDestroy;if(e){var q=void 0,v=void 0;((v=(q=a).contentHooks)!=null?v:q.contentHooks=[]).push(-c,e)}f&&(q=e=void 0,((q=(e=a).contentHooks)!=null?q:e.contentHooks=[]).push(c,f),q=e=void 0,((q=(e=a).contentCheckHooks)!=null?q:e.contentCheckHooks=[]).push(c,
f));h&&(e=f=void 0,((e=(f=a).viewHooks)!=null?e:f.viewHooks=[]).push(-c,h));k&&(f=h=void 0,((f=(h=a).viewHooks)!=null?f:h.viewHooks=[]).push(c,k),f=h=void 0,((f=(h=a).viewCheckHooks)!=null?f:h.viewCheckHooks=[]).push(c,k));d!=null&&(h=k=void 0,((h=(k=a).destroyHooks)!=null?h:k.destroyHooks=[]).push(c,d))}},Nga=function(a,b,c,d){(a[2]&3)===c&&Ie(a,b,c,d)},Oga=function(a,b){var c=a[2];(c&3)===b&&(a[2]=(c&16383)+1)},Ie=function(a,b,c,d){for(var e=d!=null?d:-1,f=b.length-1,h=0,k=d!==void 0?a[17]&65535:
0;k<f;k++)if(typeof b[k+1]==="number"){if(h=b[k],d!=null&&h>=d)break}else{b[k]<0&&(a[17]+=65536);if(h<e||e==-1){var q=b[k]<0,v=b[k+1],A=a[q?-b[k]:b[k]];q?a[2]>>14<a[17]>>16&&(a[2]&3)===c&&(a[2]+=16384,Pga(A,v)):Pga(A,v);a[17]=(a[17]&4294901760)+k+2}k++}},Pga=function(a,b){Je(4,a,b);var c=Fd(null);try{b.call(a)}finally{Fd(c),Je(5,a,b)}},Ke=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?Qga(a,c,e,b[++d]):Qga(a,c,e,null))}return a},Qga=function(a,b,c,d){var e=0,f=a.length;if(b===-1)f=-1;else for(;e<a.length;){var h=a[e++];if(typeof h==="number")if(h===b){f=-1;break}else if(h>b){f=e-1;break}}for(;e<a.length;){h=a[e];if(typeof h==="number")break;else if(h===c){d!==null&&(a[e+1]=d);return}e++;d!==null&&e++}f!==-1&&(a.splice(f,0,b),e=f+1);a.splice(e++,0,c);d!==null&&a.splice(e++,0,d)},Rga=function(a,b){for(a>>=16;a>0;)b=b[14],a--;return b},Le=function(a){return{toString:a}.toString()},
Tga=function(a){var b=Sga;Sga=a;return b},Vga=function(a,b,c){var d;typeof c==="string"?d=c.charCodeAt(0)||0:c.hasOwnProperty(Me)&&(d=c[Me]);d==null&&(d=c[Me]=Uga++);c=d&255;b.data[a+(c>>5)]|=1<<c},Zga=function(a,b){var c=Wga(a,b);if(c!==-1)return c;c=b[1];c.firstCreatePass&&(a.injectorIndex=b.length,Xga(c.data,a),Xga(b,null),Xga(c.blueprint,null));c=Yga(a,b);a=a.injectorIndex;if(c!==-1)for(var d=c&32767,e=Rga(c,b),f=e[1].data,h=0;h<8;h++)b[a+h]=e[d+h]|f[d+h];b[a+8]=c;return a},Xga=function(a,b){a.push(0,
0,0,0,0,0,0,0,b)},Wga=function(a,b){return a.injectorIndex===-1||a.parent&&a.parent.injectorIndex===a.injectorIndex||b[a.injectorIndex+8]===null?-1:a.injectorIndex},Yga=function(a,b){if(a.parent&&a.parent.injectorIndex!==-1)return a.parent.injectorIndex;a=0;for(var c=b;c!==null;){b=$ga(c);if(b===null)break;a++;c=c[14];if(b.injectorIndex!==-1)return b.injectorIndex|a<<16}return-1},aha=function(a){var b=Ae();if(a==="class")return b.classes;if(a==="style")return b.styles;if(b=b.attrs)for(var c=b.length,
d=0;d<c;){var e=b[d];if(e===3||e===4||e===6)break;if(e===0)d+=2;else if(typeof e==="number")for(d++;d<c&&typeof b[d]==="string";)d++;else{if(e===a)return b[d+1];d+=2}}return null},bha=function(a,b,c,d){c&8&&d===void 0&&(d=null);if((c&3)===0){a=a[9];var e=Xd();try{return a?a.get(b,d,c&8):Mfa(b,d,c&8)}finally{Xd(e)}}c&8||d!==void 0?b=d:(Ifa(),b=void 0);return b},dha=function(a,b,c,d,e){d=d===void 0?0:d;if(a!==null){if(b[2]&2048&&!(d&2)){a:{var f=d;for(var h=Ne,k=a,q=b;k!==null&&q!==null&&q[2]&2048&&
(q[2]&512)===0;){var v=cha(k,q,c,f|2);if(v!==Ne){f=v;break a}k=k.parent;if(!k){if(k=q[20])if(k=k.get(c,Ne,f),k!==Ne){f=k;break a}k=$ga(q);q=q[14]}}f=h}if(f!==Ne)return f}a=cha(a,b,c,d);if(a!==Ne)return a}return bha(b,c,d,e)},cha=function(a,b,c,d){var e=Ne;if(typeof c==="string")var f=c.charCodeAt(0)||0;else f=c.hasOwnProperty(Me)?c[Me]:void 0,f=typeof f==="number"?f>=0?f&255:eha:f;if(typeof f==="function"){if(!Hga(b,a,d))return d&1?d&8||e!==void 0?b=e:(Ifa(),b=void 0):b=bha(b,c,d,e),b;try{var h=f(d);
if(h!=null||d&8)return h;Ifa()}finally{Kga()}}else if(typeof f==="number"){h=null;var k=Wga(a,b),q=d&1?b[15][5]:null;if(k===-1||d&4){var v=k===-1?Yga(a,b):b[k+8];v===-1||d&2?k=-1:(h=b[1],k=v&32767,b=Rga(v,b))}for(;k!==-1;){a=b[1];if(a.data[k+(f>>5)]&1<<f){v=b[1];var A=v.data[k+8],E=fha(A,v,c,h==null?A.componentOffset>-1&&Sga:h!=v&&(A.type&3)!==0,d&1&&q===A);v=E!==null?Oe(b,v,E,A,d):Ne;if(v!==Ne)return v}v=b[k+8];v!==-1&&!(d&2||d&1&&b[1].data[k+8]===q)&&b[k+(f>>5)]&1<<f?(h=a,k=v&32767,b=Rga(v,b)):
k=-1}}return e},fha=function(a,b,c,d,e){var f=a.providerIndexes,h=b.data,k=f&1048575;b=a.directiveStart;a=a.directiveEnd;var q=f>>20;f=e?k+q:a;for(d=d?k:k+q;d<f;d++)if(k=h[d],d<b&&c===k||d>=b&&k.type===c)return d;return e&&(e=h[b])&&e.template&&e.type===c?b:null},Oe=function(a,b,c,d,e){var f=a[c],h=b.data;if(f instanceof Pe){var k=f;if(k.resolving)throw Lfa(-200);var q=Tga(k.canSeeViewProviders);k.resolving=!0;var v=k.injectImpl?Xd(k.injectImpl):null;Hga(a,d,0);try{if(f=a[c]=k.factory(void 0,e,h,
a,d),b.firstCreatePass&&c>=d.directiveStart){var A=h[c],E=A.type.prototype,H=E.ngOnInit,L=E.ngDoCheck;if(E.ngOnChanges){var O=uga(A),S;((S=b.preOrderHooks)!=null?S:b.preOrderHooks=[]).push(c,O);var aa;((aa=b.preOrderCheckHooks)!=null?aa:b.preOrderCheckHooks=[]).push(c,O)}if(H){var ka;((ka=b.preOrderHooks)!=null?ka:b.preOrderHooks=[]).push(-c,H)}if(L){var na;((na=b.preOrderHooks)!=null?na:b.preOrderHooks=[]).push(c,L);var za;((za=b.preOrderCheckHooks)!=null?za:b.preOrderCheckHooks=[]).push(c,L)}}}finally{v!==
null&&Xd(v),Tga(q),k.resolving=!1,Kga()}}return f},eha=function(){return new Qe(Ae(),t())},Re=function(a){return Le(function(){var b=a.prototype.constructor;b=b[Vfa]||gha(b);for(var c=Object.prototype,d=Object.getPrototypeOf(a.prototype).constructor;d&&d!==c;){var e=d[Vfa]||gha(d);if(e&&e!==b)return e;d=Object.getPrototypeOf(d)}return function(f){return new f}})},gha=function(a){return Pfa(a)?function(){var b=gha(ae(a));return b&&b()}:ee(a)},$ga=function(a){var b=a[1],c=b.type;return c===2?b.declTNode:
c===1?a[5]:null},hha=function(a){return function(){var b=ge.apply(0,arguments);if(a){b=a.apply(null,p(b));for(var c in b)this[c]=b[c]}}},iha=function(a,b){return Le(function(){function c(){function e(k,q,v){for(q=k.hasOwnProperty("__parameters__")?k.__parameters__:Object.defineProperty(k,"__parameters__",{value:[]}).__parameters__;q.length<=v;)q.push(null);(q[v]=q[v]||[]).push(h);return k}var f=ge.apply(0,arguments);if(this instanceof c)return d.apply(this,f),this;var h=new (Function.prototype.bind.apply(c,
[null].concat(p(f))));e.annotation=h;return e}var d=hha(b);c.prototype.ngMetadataName=a;return c})},kha=function(a,b,c,d){a=jha(a,b===void 0?null:b,c===void 0?null:c,d);a.resolveInjectorInitializers();return a},jha=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)||ie,aga(a)];d=d||(typeof a==="object"?void 0:Td(a));return new ne(c,b||jga(),d||null,e)},lha=function(a){return a.type===4&&a.value!=="ng-template"},mha=function(a,b,c){var d=4,e=a.attrs,f;if(e!==null)a:{for(f=
0;f<e.length;f++){var h=e[f];if(h===3||h===4||h===6)break a}f=e.length}else f=0;h=!1;for(var k=0;k<b.length;k++){var q=b[k];if(typeof q==="number"){if(!h&&(d&1)!==0&&(q&1)!==0)return!1;h&&(q&1)===0||(h=!1,d=q|d&1)}else if(!h)if(d&4){if(d=2|d&1,q!==""&&q!==(a.type!==4||c?a.value:"ng-template")||q===""&&b.length===1){if((d&1)===0)return!1;h=!0}}else if(d&8){var v;if(!(v=e===null)){a:{v=void 0;var A=a,E=0;if(c)for(;E<e.length&&typeof e[E]==="string";E+=2){if(A=e[E]==="class"){b:{A=e[E+1].toLowerCase();
for(var H=0,L=A.length;;){H=A.indexOf(q,H);if(H===-1){A=H;break b}if(H===0||A.charCodeAt(H-1)<=32){var O=q.length;if(H+O===L||A.charCodeAt(H+O)<=32){A=H;break b}}H+=1}A=void 0}A=A!==-1}if(A){q=!0;break a}}else if(lha(A)){q=!1;break a}E=e.indexOf(1,E);if(E>-1)for(;++E<e.length&&typeof(v=e[E])==="string";)if(v.toLowerCase()===q){q=!0;break a}q=!1}v=!q}if(v){if((d&1)===0)return!1;h=!0}}else{v=b[++k];a:if(e===null)q=-1;else if(E=0,c||!lha(a)){for(A=!1;E<e.length;){L=e[E];if(L===q){q=E;break a}if(L===
3||L===6)A=!0;else if(L===1||L===2){for(L=e[++E];typeof L==="string";)L=e[++E];continue}else if(L===4)break;else if(L===0){E+=4;continue}E+=A?1:2}q=-1}else b:{E=e.indexOf(4);if(E>-1)for(E++;E<e.length;){A=e[E];if(typeof A==="number")break;if(A===q){q=E;break b}E++}q=-1}if(q===-1){if((d&1)===0)return!1;h=!0}else if(v!==""&&(q=q>f?"":e[q+1].toLowerCase(),d&2&&v!==q)){if((d&1)===0)return!1;h=!0}}}return(d&1)===0||h},nha=function(a,b,c){c=c===void 0?!1:c;for(var d=0;d<b.length;d++)if(mha(a,b[d],c))return!0;
return!1},oha=function(a){for(var b=a[0],c=1,d=2,e="",f=!1;c<a.length;){var h=a[c];if(typeof h==="string")if(d&2){var k=a[++c];e+="["+h+(k.length>0?'="'+k+'"':"")+"]"}else d&8?e+="."+h:d&4&&(e+=" "+h);else e!==""&&(h&1)!==0&&(b+=f?":not("+e.trim()+")":e,e=""),d=h,f=f||(d&1)!==0;c++}e!==""&&(b+=f?":not("+e.trim()+")":e);return b},qha=function(){if(pha!==void 0)return pha;if(typeof document!=="undefined")return document;throw new Vd(210,!1);},Se=function(a,b){pe(b)?(a.__ngContext__=b[19],rha.set(b[19],
b)):a.__ngContext__=b},sha=function(a){for(;a!==null&&!qe(a);)a=a[4];return a},Ue=function(a,b){return new Te(te(a,b))},tha=function(a){return a instanceof Te?a.nativeElement:a},Ve=function(a){return a.ownerDocument.defaultView},uha=function(a){return a.ownerDocument},xha=function(){return"".replace(vha,function(a){return a.replace(wha,"\u200b$1\u200b")})},yha=function(a,b,c){var d=c.mergedAttrs,e=c.classes;c=c.styles;if(d!==null)for(var f=0;f<d.length;){var h=d[f];if(typeof h==="number"){if(h!==
0)break;f++;h=d[f++];var k=d[f++],q=d[f++];a.setAttribute(b,k,q,h)}else k=d[++f],h.charCodeAt(0)===64?a.setProperty(b,h,k):a.setAttribute(b,h,k),f++}e!==null&&(e===""?a.removeAttribute(b,"class"):a.setAttribute(b,"class",e));c!==null&&a.setAttribute(b,"style",c)},Aha=function(a){return zha(a)?Array.isArray(a)||!(a instanceof Map)&&Symbol.iterator in a:!1},Bha=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)},zha=function(a){return a!==
null&&(typeof a==="function"||typeof a==="object")},Cha=function(a,b,c){return a[b]=c},Xe=function(a,b,c){if(c===We||Object.is(a[b],c))return!1;a[b]=c;return!0},Ye=function(a,b,c,d){c=Xe(a,b,c);return Xe(a,b+1,d)||c},Dha=function(a,b){var c=Dga?64:1088,d;for((d=a[10].changeDetectionScheduler)==null||d.notify(b);a;){a[2]|=c;b=xe(a);if((a[2]&512)!==0&&!b)break;a=b}},Eha=function(){return new Ze(t())},x=function(a){Fha(ze.tView,t(),ze.selectedIndex+(a===void 0?1:a))},Fha=function(a,b,c){(b[2]&3)===3?
(a=a.preOrderCheckHooks,a!==null&&Ie(b,a,3,c)):(a=a.preOrderHooks,a!==null&&Nga(b,a,0,c));ze.selectedIndex=c},Gha=function(a,b,c,d){var e=Fd(null);try{var f=l(a.inputs[c]),h=f.next().value,k=f.next().value,q=f.next().value;f=null;(k&1)!==0&&(f=b[h][Qd]);f!==null&&f.transformFn!==void 0?d=f.transformFn(d):q!==null&&(d=q.call(b,d));a.setInput!==null?a.setInput(b,f,d,c,h):(a=f,a!==null?a.applyValueToInputSignal(a,d):b[h]=d)}finally{Fd(e)}},$e=function(a,b,c,d,e){if(d!=null){var f=!1;if(qe(d))var h=d;
else pe(d)&&(f=!0,d=d[0]);d=se(d);a===0&&c!==null?e==null?b.appendChild(c,d):b.insertBefore(c,d,e||null,!0):a===1&&c!==null?b.insertBefore(c,d,e||null,!0):a===2?b.removeChild(null,d,f):a===3&&b.destroyNode(d);if(h!=null)for(f=h[7],f!==se(h)&&$e(a,b,c,f,e),e=10;e<h.length;e++)d=h[e],af(b,a,d[1].firstChild,d,c,f,!1)}},Hha=function(a,b){var c;(c=b[10].changeDetectionScheduler)==null||c.notify(9);af(b[11],2,a.firstChild,b,null,null,!1)},Iha=function(a,b){a=a[9];b=a.indexOf(b);a.splice(b,1)},Kha=function(a,
b){if((b[2]&256)!==256){var c=b[11];c.destroyNode&&af(c,3,a.firstChild,b,null,null,!1);if(a=b[12])for(;a;){c=null;if(pe(a))c=a[12];else{var d=a[10];d&&(c=d)}if(!c){for(;a&&!a[4]&&a!==b;)pe(a)&&Jha(a[1],a),a=a[3];a===null&&(a=b);pe(a)&&Jha(a[1],a);c=a&&a[4]}a=c}else Jha(b[1],b)}},Jha=function(a,b){if((b[2]&256)!==256){var c=Fd(null);try{b[2]&=-129;b[2]|=256;b[24]&&Nd(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 Pe)){var h=d[e+1];if(Array.isArray(h))for(var k=
0;k<h.length;k+=2){var q=f[h[k]],v=h[k+1];Je(4,q,v);try{v.call(q)}finally{Je(5,q,v)}}else{Je(4,f,h);try{h.call(f)}finally{Je(5,f,h)}}}}var A=a.cleanup,E=b[7];if(A!==null)for(d=0;d<A.length-1;d+=2)if(typeof A[d]==="string"){var H=A[d+3];if(H>=0)E[H]();else E[-H].unsubscribe();d+=2}else A[d].call(E[A[d+1]]);E!==null&&(b[7]=null);var L=b[21];if(L!==null)for(b[21]=null,A=0;A<L.length;A++)(0,L[A])();var O=b[23];if(O!==null){b[23]=null;for(var S=l(O),aa=S.next();!aa.done;aa=S.next())aa.value.destroy()}b[1].type===
1&&b[11].destroy();var ka=b[16];if(ka!==null&&qe(b[3])){ka!==b[3]&&Iha(ka,b);var na=b[18];na!==null&&na.detachView(a)}rha.delete(b[19])}finally{Fd(c)}}},Lha=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:te(b,c)},Mha=function(a,b,c,d){a=Lha(a,d.parent,b);var e=b[11];d=d.parent||b[5];b=d.type&40?te(d,b):null;if(a!=null)if(Array.isArray(c))for(d=0;d<c.length;d++){var f=e,
h=a,k=c[d];b!==null?f.insertBefore(h,k,b,!1):f.appendChild(h,k)}else b!==null?e.insertBefore(a,c,b,!1):e.appendChild(a,c)},Oha=function(a,b){if(b!==null){var c=b.type;if(c&3)return te(b,a);if(c&4)return Nha(-1,a[b.index]);if(c&8){c=b.child;if(c!==null)return Oha(a,c);a=a[b.index];return qe(a)?Nha(-1,a):se(a)}if(c&128)return Oha(a,b.next);if(c&32)return(void 0)(b,a)()||se(a[b.index]);c=b!==null?a[15][5].projection[b.projection]:null;if(c!==null){if(Array.isArray(c))return c[0];a=xe(a[15]);return Oha(a,
c)}return Oha(a,b.next)}return null},Nha=function(a,b){a=10+a+1;if(a<b.length){a=b[a];var c=a[1].firstChild;if(c!==null)return Oha(a,c)}return b[7]},af=function(a,b,c,d,e,f,h){for(;c!=null;)if(c.type===128)c=c.next;else{var k=d[c.index],q=c.type;h&&b===0&&(k&&Se(se(k),d),c.flags|=2);if((c.flags&32)!==32)if(q&8)af(a,b,c.child,d,e,f,!1),$e(b,a,e,k,f);else if(q&32){q=(void 0)(c,d);for(var v;v=q();)$e(b,a,e,v,f);$e(b,a,e,k,f)}else q&16?Pha(a,b,d,c,e,f):$e(b,a,e,k,f);c=h?c.projectionNext:c.next}},Pha=
function(a,b,c,d,e,f){var h=c[15];c=h[5].projection[d.projection];if(Array.isArray(c))for(d=0;d<c.length;d++)$e(b,a,e,c[d],f);else h=h[3],(d.flags&128)===128&&(c.flags|=128),af(a,b,c,h,e,f,!0)},Qha=function(a,b,c,d,e,f,h,k,q,v,A){d=26+d;e=d+e;for(var E=[],H=0;H<e;H++)E.push(H<d?null:We);v=typeof v==="function"?v():v;return E[1]={type:a,blueprint:E,template:c,queries:null,viewQuery:k,declTNode:b,data:E.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:e,hostBindingOpCodes:null,firstCreatePass:!0,
firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof f==="function"?f():f,pipeRegistry:typeof h==="function"?h():h,firstChild:null,schemas:q,consts:v,incompleteFirstPass:!1,ssrId:A}},Sha=function(a,b,c,d,e,f,h,k,q,v,A){var E=b.blueprint.slice();E[0]=e;E[2]=d|1228;if(v!==null||a&&
a[2]&2048)E[2]|=2048;E[17]=0;E[3]=E[14]=a;E[8]=c;E[10]=h||a&&a[10];E[11]=k||a&&a[11];E[9]=q||a&&a[9]||null;E[5]=f;E[19]=Rha++;E[6]=A;E[20]=v;E[15]=b.type==2?a[15]:E;return E},Tha=function(a){var b=16;a.signals?b=4096:a.onPush&&(b=64);return b},Uha=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},Vha=function(a,b){a[12]?a[13][4]=b:a[12]=b;return a[13]=b},cf=function(a){return a instanceof bf?a.changingThisBreaksApplicationSecurity:
a},df=function(a,b){a=a instanceof bf&&a.getTypeName()||null;if(a!=null&&a!==b){if(a==="ResourceURL"&&b==="URL")return!0;throw Error("Ia`"+b+"`"+a);}return a===b},Xha=function(){if(Wha===void 0&&(Wha=null,ef.trustedTypes))try{Wha=ef.trustedTypes.createPolicy("angular",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(a){}return Wha},Yha=function(a){var b;return((b=Xha())==null?void 0:b.createHTML(a))||a},$ha=function(a){a=String(a);
return a.match(Zha)?a:"unsafe:"+a},ff=function(a){var b={};a=l(a.split(","));for(var c=a.next();!c.done;c=a.next())b[c.value]=!0;return b},aia=function(){for(var a={},b=l(ge.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},bia=function(a){a=a.nodeName;return typeof a==="string"?a:"FORM"},eia=function(a){return a.replace(/&/g,"&amp;").replace(cia,function(b){return"&#"+((b.charCodeAt(0)-55296)*1024+(b.charCodeAt(1)-56320)+65536)+";"}).replace(dia,
function(b){return"&#"+b.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")},nia=function(a,b){var c=null;try{var d;if(!(d=fia)){var e=new gia(a);try{var f=!!(new window.DOMParser).parseFromString(Yha(""),"text/html")}catch(na){f=!1}d=f?new hia(e):e}fia=d;var h=b?String(b):"";c=fia.getInertBodyElement(h);a=5;b=h;do{if(a===0)throw Error("Ka");a--;h=b;b=c.innerHTML;c=fia.getInertBodyElement(h)}while(h!==b);var k=new iia,q=(("content"in c&&c.nodeType===Node.ELEMENT_NODE&&c.nodeName==="TEMPLATE"?
c.content:null)||c).firstChild;h=!0;for(a=[];q;){if(q.nodeType===Node.ELEMENT_NODE){b=k;d=q;var v=bia(d).toLowerCase();if(jia.hasOwnProperty(v)){b.buf.push("<");b.buf.push(v);var A=d.attributes;for(d=0;d<A.length;d++){var E=A.item(d),H=E.name,L=H.toLowerCase();if(kia.hasOwnProperty(L)){var O=E.value;lia[L]&&(O=$ha(O));b.buf.push(" ",H,'="',eia(O),'"')}}b.buf.push(">");h=!0}else h=!mia.hasOwnProperty(v)}else q.nodeType===Node.TEXT_NODE&&k.buf.push(eia(q.nodeValue));if(h&&q.firstChild){a.push(q);var S=
q.firstChild;if(S&&(q.compareDocumentPosition(S)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY)throw Error("Ja`"+S.outerHTML);q=S}else for(;q;){q.nodeType===Node.ELEMENT_NODE&&k.endElement(q);var aa,ka=q.nextSibling;if(ka&&q!==ka.previousSibling)throw Error("Ja`"+ka.outerHTML);if(aa=ka){q=aa;break}q=a.pop()}}return Yha(k.buf.join(""))}finally{if(c)for(c=("content"in c&&c.nodeType===Node.ELEMENT_NODE&&c.nodeName==="TEMPLATE"?c.content:null)||c;c.firstChild;)c.firstChild.remove()}},
pia=function(){if(oia===void 0&&(oia=null,ef.trustedTypes))try{oia=ef.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(a){return a},createScript:function(a){return a},createScriptURL:function(a){return a}})}catch(a){}return oia},qia=function(a){var b;return((b=pia())==null?void 0:b.createHTML(a))||a},ria=function(a){var b;return((b=pia())==null?void 0:b.createScriptURL(a))||a},gf=function(a){var b=sia();return b?qia(b.sanitize(1,a)||""):df(a,"HTML")?qia(cf(a)):nia(qha(),Ud(a))},
tia=function(a){var b=sia();return b?b.sanitize(2,a)||"":df(a,"Style")?cf(a):Ud(a)},hf=function(a){var b=sia();return b?b.sanitize(4,a)||"":df(a,"URL")?cf(a):$ha(Ud(a))},uia=function(a){var b=sia();if(b)return ria(b.sanitize(5,a)||"");if(df(a,"ResourceURL"))return ria(cf(a));throw new Vd(904,!1);},via=function(a,b,c){return(c==="src"&&(b==="embed"||b==="frame"||b==="iframe"||b==="media"||b==="script")||c==="href"&&(b==="base"||b==="link")?uia:hf)(a)},sia=function(){var a=t();return a&&a[10].sanitizer},
wia=function(a,b,c,d,e){var f=ze.selectedIndex,h=d&2;try{ze.selectedIndex=-1,h&&b.length>26&&Fha(a,b,26),Je(h?2:0,e,c),c(d,e)}finally{ze.selectedIndex=f,Je(h?3:1,e,c)}},xia=function(a,b,c){var d=c.directiveStart,e=c.directiveEnd;if(c.componentOffset>-1){var f=a.data[d+c.componentOffset],h=te(c,b);var k=f.tView;k=k===null||k.incompleteFirstPass?f.tView=Qha(1,null,f.template,f.decls,f.vars,f.directiveDefs,f.pipeDefs,f.viewQuery,f.schemas,f.consts,f.id):k;f=Vha(b,Sha(b,k,null,Tha(f),h,c,null,b[10].rendererFactory.createRenderer(h,
f),null,null,null));b[c.index]=f}a.firstCreatePass||Zga(c,b);f=c.initialInputs;for(h=d;h<e;h++){k=a.data[h];var q=Oe(b,a,h,c);Se(q,b);if(f!==null){var v=f[h-d];if(v!==null)for(var A=0;A<v.length;A+=2)Gha(k,q,v[A],v[A+1])}k.template&&(ue(c.index,b)[8]=Oe(b,a,h,c))}if((c.flags&64)===64){e=c.directiveStart;d=c.directiveEnd;f=c.index;c=ze.currentDirectiveIndex;try{for(ze.selectedIndex=f;e<d;e++){var E=a.data[e],H=b[e];ze.currentDirectiveIndex=e;E.hostBindings===null&&E.hostVars===0&&E.hostAttrs===null||
E.hostBindings===null||E.hostBindings(1,H)}}finally{ze.selectedIndex=-1,ze.currentDirectiveIndex=c}}},yia=function(a,b,c){c=c===void 0?te:c;var d=b.localNames;if(d!==null)for(var e=b.index+1,f=0;f<d.length;f+=2){var h=d[f+1];h=h===-1?c(b,a):a[h];a[e++]=h}},Aia=function(a,b,c,d){c=d.get(zia,!1)||c===3||c===4;return a.selectRootElement(b,c)},Dia=function(a,b,c,d,e,f){jf(a,b[1],b,c,d)?a.componentOffset>-1&&Bia(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),Cia(a,b,c,d,e,f))},Cia=function(a,b,c,d,e,f){a.type&3&&(b=te(a,b),d=f!=null?f(d,a.value||"",c):d,e.setProperty(b,c,d))},Bia=function(a,b){a=ue(b,a);a[2]&16||(a[2]|=64)},Eia=function(a,b){a=a.directiveRegistry;var c=null;if(a)for(var d=0;d<a.length;d++){var e=a[d];nha(b,e.selectors,!1)&&(c!=null||(c=[]),e.template?c.unshift(e):c.push(e))}return c},Fia=function(a,b,c,d,e,f,h){f==null?a.removeAttribute(b,e,c):(d=h==null?
Ud(f):h(f,d||"",e),a.setAttribute(b,e,d,c))},Gia=function(a,b,c,d,e){var f=26+c,h=b[1];c=e(h,b,a,d,c);b[f]=c;Be(a,!0);(f=a.type===2)?(yha(b[11],c,a),ze.elementDepthCount!==0&&(a.flags&1)!==1||Se(c,b),ze.elementDepthCount++):Se(c,b);!kf||f&&(a.flags&32)===32||Mha(h,b,c,a)},Hia=function(){var a=Ae();ze.isParent?ze.isParent=!1:(a=a.parent,Be(a,!1));return a},Iia=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]},
jf=function(a,b,c,d,e){var f,h=(f=a.inputs)==null?void 0:f[d],k;a=(k=a.hostDirectiveInputs)==null?void 0:k[d];k=!1;if(a)for(f=0;f<a.length;f+=2)k=a[f],Gha(b.data[k],c[k],a[f+1],e),k=!0;if(h)for(h=l(h),a=h.next();!a.done;a=h.next())a=a.value,Gha(b.data[a],c[a],d,e),k=!0;return k},Kia=function(a,b,c){return function f(e){var h=a.componentOffset>-1?ue(a.index,b):b;Dha(h,5);h=b[8];for(var k=Jia(b,h,c,e),q=f.__ngNextListenerFn__;q;)k=Jia(b,h,q,e)&&k,q=q.__ngNextListenerFn__;return k}},Jia=function(a,b,
c,d){var e=Fd(null);try{return Je(6,b,c),c(d)!==!1}catch(k){d=k;var f=a[9];if(f){var h;(h=f.get(lf,null))==null||h(d)}return!1}finally{Je(7,b,c),Fd(e)}},Nia=function(a,b,c,d,e,f,h,k){var q=(a.flags&1)===1,v=!1,A=null;!d&&q&&(A=Lia(b,c,f,a.index));A!==null?((A.__ngLastListenerFn__||A).__ngNextListenerFn__=h,A.__ngLastListenerFn__=h,v=!0):(h=te(a,c),h=d?d(h):h,e=e.listen(h,f,k),Mia(d?function(E){return d(se(E[a.index]))}:a.index,b,c,f,k,e,!1));return v},Lia=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},Mia=function(a,b,c,d,e,f,h){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)*(h?-1:1))},Oia=function(a,b,c,d,e,f){var h=b[1];c=b[c][h.data[c].outputs[d]].subscribe(f);Mia(a.index,h,b,e,f,c,!0)},Pia=function(a,b){var c=a.contentQueries;if(c!==null){var d=Fd(null);try{for(var e=0;e<c.length;e+=2){var f=c[e],h=c[e+1];if(h!==
-1){var k=a.data[h];ze.currentQueryIndex=f;k.contentQueries(2,b[h],h)}}}finally{Fd(d)}}},Qia=function(a,b,c){ze.currentQueryIndex=0;var d=Fd(null);try{b(a,c)}finally{Fd(d)}},Ria=function(a,b,c){if((b.flags&4)!==0){var d=Fd(null);try{for(var e=b.directiveEnd,f=b.directiveStart;f<e;f++){var h=a.data[f];h.contentQueries&&h.contentQueries(1,c[f],f)}}finally{Fd(d)}}},Tia=function(a,b,c){Iga(b);try{var d=a.viewQuery;d!==null&&Qia(1,d,c);var e=a.template;e!==null&&wia(a,b,e,1,c);a.firstCreatePass&&(a.firstCreatePass=
!1);var f;(f=b[18])!=null&&Sia(f,a);a.staticContentQueries&&Pia(a,b);a.staticViewQueries&&Qia(2,a.viewQuery,c);var h=a.components;if(h!==null)for(c=0;c<h.length;c++){var k=ue(h[c],b),q=k[1];d=q;e=k;for(var v=e.length;v<d.blueprint.length;v++)e.push(d.blueprint[v]);k[0]!==null&&k[6]===null&&(k[6]=null);Je(18);Tia(q,k,k[8]);Je(19,k[8])}}catch(A){throw a.firstCreatePass&&(a.incompleteFirstPass=!0,a.firstCreatePass=!1),A;}finally{b[2]&=-5,Lga()}},Uia=function(a,b,c){var d=c?a.styles:null,e=c?a.classes:
null,f=0;if(b!==null)for(var h=0;h<b.length;h++){var k=b[h];if(typeof k==="number")f=k;else if(f==1)e=Hfa(e,k);else if(f==2){var q=b[++h];d=Hfa(d,k+": "+q+";")}}c?a.styles=d:a.stylesWithoutHost=d;c?a.classes=e:a.classesWithoutHost=e},nf=function(a,b,c,d,e){var f=a.data[b];if(f===null){f=ze.currentTNode;var h=ze.isParent,k=a.data,q=h?f:f&&f.parent,v=q?q.injectorIndex:-1,A=0;mf!==null&&(A|=128);b=k[b]={type:c,index:b,insertBeforeIndex:null,injectorIndex:v,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,
componentOffset:-1,propertyBindings:null,flags:A,providerIndexes:0,value:d,attrs:e,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:q,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0};a.firstChild===null&&(a.firstChild=
b);f!==null&&(h?f.child==null&&b.parent!==null&&(f.child=b):f.next===null&&(f.next=b,b.prev=f));f=b;ze.inI18n&&(f.flags|=32)}else f.type&64&&(f.type=c,f.value=d,f.attrs=e,a=ze,b=a.currentTNode,a=a.isParent?b:b.parent,f.injectorIndex=a===null?-1:a.injectorIndex);Be(f,!0);return f},of=function(a,b){b=b===void 0?0:b;var c=t();return c===null?be(a,b):dha(Ae(),c,ae(a),b)},Via=function(){throw Error("Ma");},Zia=function(a,b,c,d,e){var f=d===null?null:{"":-1},h=e(a,c);if(h!==null){for(var k=h,q=e=null,v=
l(h),A=v.next();!A.done;A=v.next())if(A=A.value,A.resolveHostDirectives!==null){q=l(A.resolveHostDirectives(h));k=q.next().value;e=q.next().value;q=q.next().value;break}h=k.length;v=!1;for(A=0;A<h;A++){var E=k[A];if(!v&&E.template){v=!0;var H=void 0,L=a,O=c;O.componentOffset=A;((H=L.components)!=null?H:L.components=[]).push(O.index)}H=Zga(c,b);Vga(H,a,E.type)}v=a.data.length;c.flags|=1;c.directiveStart=v;c.directiveEnd=v+h;c.providerIndexes=v;for(v=0;v<h;v++)A=k[v],A.providersResolver&&A.providersResolver(A);
H=E=!1;v=Uha(a,b,h,null);h>0&&(c.directiveToIndex=new Map);for(A=0;A<h;A++){L=k[A];c.mergedAttrs=Ke(c.mergedAttrs,L.hostAttrs);var S=a,aa=c,ka=b;O=v;S.data[O]=L;var na=L.factory||(L.factory=ee(L.type));na=new Pe(na,!!L.template);S.blueprint[O]=na;ka[O]=na;ka=Uha(S,ka,L.hostVars,We);if(na=L.hostBindings){var za=S.hostBindingOpCodes;za===null&&(za=S.hostBindingOpCodes=[]);S=~aa.index;a:{for(aa=za.length;aa>0;){var Na=za[--aa];if(typeof Na==="number"&&Na<0){aa=Na;break a}}aa=0}aa!=S&&za.push(S);za.push(O,
ka,na)}O=v;if(f){if(L.exportAs)for(ka=0;ka<L.exportAs.length;ka++)f[L.exportAs[ka]]=O;L.template&&(f[""]=O)}q!==null&&q.has(L)?(ka=l(q.get(L)),O=ka.next().value,ka=ka.next().value,c.directiveToIndex.set(L.type,[v,O+c.directiveStart,ka+c.directiveStart])):e!==null&&e.has(L)||c.directiveToIndex.set(L.type,v);L.contentQueries!==null&&(c.flags|=4);if(L.hostBindings!==null||L.hostAttrs!==null||L.hostVars!==0)c.flags|=64;L=L.type.prototype;!E&&(L.ngOnChanges||L.ngOnInit||L.ngDoCheck)&&(O=E=void 0,((O=(E=
a).preOrderHooks)!=null?O:E.preOrderHooks=[]).push(c.index),E=!0);H||!L.ngOnChanges&&!L.ngDoCheck||(L=H=void 0,((L=(H=a).preOrderCheckHooks)!=null?L:H.preOrderCheckHooks=[]).push(c.index),H=!0);v++}for(b=c.directiveStart;b<c.directiveEnd;b++)k=a.data[b],e!==null&&e.has(k)?(k=e.get(k),Wia(0,c,k,b),Wia(1,c,k,b),Xia(c,b,!0)):(Yia(0,c,k,b),Yia(1,c,k,b),Xia(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 Vd(-301,!1);a.push(d[c],b)}},Yia=function(a,
b,c,d){c=a===0?c.inputs:c.outputs;for(var e in c)if(c.hasOwnProperty(e)){if(a===0){var f=void 0,h=void 0;var k=(h=(f=b).inputs)!=null?h:f.inputs={}}else h=f=void 0,k=(h=(f=b).outputs)!=null?h:f.outputs={};h=f=void 0;(f=k)[h=e]!=null||(f[h]=[]);k[e].push(d);$ia(b,e)}},Wia=function(a,b,c,d){c=a===0?c.inputs:c.outputs;for(var e in c)if(c.hasOwnProperty(e)){var f=c[e];if(a===0){var h=void 0,k=void 0;var q=(k=(h=b).hostDirectiveInputs)!=null?k:h.hostDirectiveInputs={}}else k=h=void 0,q=(k=(h=b).hostDirectiveOutputs)!=
null?k:h.hostDirectiveOutputs={};k=h=void 0;(h=q)[k=f]!=null||(h[k]=[]);q[f].push(d,e);$ia(b,f)}},$ia=function(a,b){b==="class"?a.flags|=8:b==="style"&&(a.flags|=16)},Xia=function(a,b,c){var d=a.attrs,e=a.inputs,f=a.hostDirectiveInputs;if(d===null||!c&&e===null||c&&f===null||lha(a))a.initialInputs!=null||(a.initialInputs=[]),a.initialInputs.push(null);else{for(var h=null,k=0;k<d.length;){var q=d[k];if(q===0)k+=4;else{if(q!==5){if(typeof q==="number")break;if(!c&&e.hasOwnProperty(q))for(var v=l(e[q]),
A=v.next();!A.done;A=v.next()){if(A.value===b){h!=null||(h=[]);h.push(q,d[k+1]);break}}else if(c&&f.hasOwnProperty(q))for(q=f[q],v=0;v<q.length;v+=2)if(q[v]===b){h!=null||(h=[]);h.push(q[v+1],d[k+1]);break}}k+=2}}a.initialInputs!=null||(a.initialInputs=[]);a.initialInputs.push(h)}},aja=function(a,b,c,d,e,f,h){var k=b[1],q=k.consts;f=ve(q,f);a=nf(k,a,c,d,f);Zia(k,b,a,ve(q,h),e);a.mergedAttrs=Ke(a.mergedAttrs,a.attrs);a.attrs!==null&&Uia(a,a.attrs,!1);a.mergedAttrs!==null&&Uia(a,a.mergedAttrs,!0);k.queries!==
null&&k.queries.elementStart(k,a);return a},bja=function(a,b){Mga(a,b);(b.flags&4)!==0&&a.queries.elementEnd(b)},cja=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(se(f));if(qe(f)){for(var h=d,k=10;k<f.length;k++){var q=f[k],v=q[1].firstChild;v!==null&&cja(q[1],q,v,h)}f[7]!==f[0]&&h.push(f[7])}f=c.type;if(f&8)cja(a,b,c.child,d);else if(f&32)for(f=(void 0)(c,b);h=f();)d.push(h);else f&16&&(f=c!==null?b[15][5].projection[c.projection]:null,Array.isArray(f)?
d.push.apply(d,p(f)):(h=xe(b[15]),cja(h[1],h,f,d,!0)))}c=e?c.projectionNext:c.next}return d},dja=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}},eja=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)}},gja=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=Dga;try{for(Ega(!0),fja(a,d),d=0;yga(a);){if(d===100)throw new Vd(103,!1);d++;fja(a,1)}}finally{Ega(b)}}finally{var e;(e=c.end)==null||e.call(c)}},hja=function(a,b){for(a=sha(a[12]);a!==null;a=sha(a[4]))for(var c=10;c<a.length;c++){var d=a[c];(d[2]&128)===128&&
fja(d,b)}},fja=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)&&wfa(e)));f||(f=!1);e&&(e.dirty=!1);a[2]&=-9217;if(f){f=c.template;var h=a[8];if((a[2]&256)!==256){var k=a[2];Iga(a);b=!0;e=d=null;if(c.type!==2){var q;if((q=a[24])!=null)var v=q;else q=(v=ija.pop())!=null?v:Object.create(jja),q.lView=a,v=q;e=v;d=Ld(e)}else Ed===null?(b=!1,v=(q=a[24])!=null?q:Object.create(kja),v.lView=a,e=v,d=Ld(e)):a[24]&&(Nd(a[24]),a[24]=
null);try{a[17]=0;ze.bindingIndex=c.bindingStartIndex;f!==null&&wia(c,a,f,2,h);if(v=(k&3)===3){var A=c.preOrderCheckHooks;A!==null&&Ie(a,A,3,null)}else{var E=c.preOrderHooks;E!==null&&Nga(a,E,0,null);Oga(a,0)}for(var H=sha(a[12]);H!==null;H=sha(H[4]))if(H[2]&2){var L=H[9];for(A=0;A<L.length;A++)xga(L[A])}eja(a);hja(a,0);c.contentQueries!==null&&Pia(c,a);if(v){var O=c.contentCheckHooks;O!==null&&Ie(a,O,3)}else{var S=c.contentHooks;S!==null&&Nga(a,S,1);Oga(a,1)}var aa=c.hostBindingOpCodes;if(aa!==null)try{for(H=
0;H<aa.length;H++){var ka=aa[H];if(ka<0)ze.selectedIndex=~ka;else{L=ka;var na=aa[++H],za=aa[++H];O=ze;O.bindingIndex=O.bindingRootIndex=na;ze.currentDirectiveIndex=L;var Na=a[L];Je(24,Na);za(2,Na);Je(25,Na)}}}finally{ze.selectedIndex=-1}var Pa=c.components;Pa!==null&&lja(a,Pa,0);var hb=c.viewQuery;hb!==null&&Qia(2,hb,h);if(v){var ua=c.viewCheckHooks;ua!==null&&Ie(a,ua,3)}else{var Ha=c.viewHooks;Ha!==null&&Nga(a,Ha,2);Oga(a,2)}c.firstUpdatePass===!0&&(c.firstUpdatePass=!1);if(a[22]){for(var Ia=l(a[22]),
tb=Ia.next();!tb.done;tb=Ia.next()){var rb=tb.value;rb()}a[22]=null}dja(a);a[2]&=-73}catch(dc){throw we(a),dc;}finally{e!==null&&(Md(e,d),b&&(a=e,a.lView[24]!==a&&(a.lView=null,ija.push(a)))),Lga()}}}else if(d&8192){aa=Fd(null);try{eja(a),hja(a,1),h=c.components,h!==null&&lja(a,h,1),dja(a)}finally{Fd(aa)}}},lja=function(a,b,c){for(var d=0;d<b.length;d++){var e=a,f=b[d],h=c;Je(18);e=ue(f,e);(e[2]&128)===128&&fja(e,h);Je(19,e[8])}},mja=function(a,b){b=10+b;if(b<a.length)return a[b]},oja=function(a,
b,c,d){d=d===void 0?!0:d;var e=b[1],f=10+c,h=a.length;c>0&&(a[f-1][4]=b);c<h-10?(b[4]=a[f],f=10+c,f>=a.length?a.push(b):a.splice(f,0,b)):(a.push(b),b[4]=null);b[3]=a;f=b[16];f!==null&&a!==f&&nja(f,b);f=b[18];f!==null&&Sia(f,e);zga(b);b[2]|=128;d&&(c=Nha(c,a),d=b[11],f=d.parentNode(a[7]),f!==null&&(a=a[5],b[0]=f,b[5]=a,af(d,1,e.firstChild,b,f,c,!1)));b=b[6];b!==null&&b.firstChild!==null&&(b.firstChild=null)},qja=function(a){a=pja(a,0);a!==void 0&&Kha(a[1],a)},pja=function(a,b){if(!(a.length<=10)){var c=
10+b,d=a[c];if(d){var e=d[16];e!==null&&e!==a&&Iha(e,d);b>0&&(a[c-1][4]=d[4]);a=Xfa(a,10+b);Hha(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}},nja=function(a,b){var c=a[9],d=b[3];pe(d)?a[2]|=2:b[15]!==d[3][15]&&(a[2]|=2);c===null?a[9]=[b]:c.push(b)},rja=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})},
sja=function(a){return Object.keys(a).map(function(b){return{propName:a[b],templateName:b}})},uja=function(a,b,c){(b=b instanceof pf?b:b==null?void 0:b.injector)&&a.getStandaloneInjector!==null&&(b=a.getStandaloneInjector(b)||b);return b?new tja(c,b):c},wja=function(a){var b=a.get(qf,null);if(b===null)throw new Vd(407,!1);var c=a.get(vja,null);a=a.get(rf,null);return{rendererFactory:b,sanitizer:c,changeDetectionScheduler:a,ngReflect:!1}},xja=function(a,b){a=(a.selectors[0][0]||"div").toLowerCase();
return b.createElement(a,a==="svg"?"svg":a==="math"?"math":null)},Bja=function(a,b,c,d){if(a)a=["ng-version","0.0.0-PLACEHOLDER"];else{a=b.selectors[0];for(var e=[],f=[],h=1,k=2;h<a.length;){var q=a[h];if(typeof q==="string")k===2?q!==""&&e.push(q,a[++h]):k===8&&f.push(q);else{if((k&1)!==0)break;k=q}h++}f.length&&e.push.apply(e,[1].concat(p(f)));a=e}f=e=null;h=0;if(c)for(c=l(c),k=c.next();!k.done;k=c.next())k=k.value,h+=k[yja].requiredVars,k.create&&(k.targetIdx=0,q=void 0,((q=e)!=null?q:e=[]).push(k)),
k.update&&(k.targetIdx=0,q=void 0,((q=f)!=null?q:f=[]).push(k));if(d)for(c=0;c<d.length;c++)if(k=d[c],typeof k!=="function")for(k=l(k.bindings),q=k.next();!q.done;q=k.next()){q=q.value;h+=q[yja].requiredVars;var v=c+1;if(q.create){q.targetIdx=v;var A=void 0;((A=e)!=null?A:e=[]).push(q)}q.update&&(q.targetIdx=v,v=void 0,((v=f)!=null?v:f=[]).push(q))}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)[zja]||null);return Qha(0,null,Aja(e,f),1,h,b,null,
null,null,[a],null)},Aja=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},Cja=function(a){a=a[yja].kind;return a==="input"||a==="twoWay"},Dja=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)}},Eja=function(a,b,c){return new sf(a,b,c,!1)},Gja=function(a,b,c){return(new Fja({providers:a,parent:b,debugName:c===
void 0?null:c,runEnvironmentInitializers:!0})).injector},tf=function(a){if(!Hja.has(a)){Hja.add(a);var b,c;(b=performance)==null||(c=b.mark)==null||c.call(b,"mark_feature_usage",{detail:{feature:a}})}},y=function(a){return Le(function(){var b=Ija(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(Jja);if(d.standalone){if(!e.cachedInjectors.has(d)){var f=$fa(!1,d.type);f=f.length>0?Gja([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||ie,_:null,schemas:a.schemas||null,tView:null,id:""});b.standalone&&tf("NgStandalone");Kja(d);b=a.dependencies;d.directiveDefs=Lja(b,Mja);
d.pipeDefs=Lja(b,Ufa);d.id=Nja(d);return d})},Mja=function(a){return a[he]||a[zja]||null},uf=function(a){return Le(function(){return{type:a.type,bootstrap:a.bootstrap||ie,declarations:a.declarations||ie,imports:a.imports||ie,exports:a.exports||ie,transitiveCompileScopes:null,schemas:a.schemas||null,id:a.id||null}})},vf=function(a){return Le(function(){var b=Ija(a);Kja(b);return b})},wf=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}},Ija=function(a){var b={},c,d=a.type,e=a.hostBindings||null,f=a.hostVars||0,h=a.hostAttrs||null,k=a.contentQueries||null,q=a.inputs||re,v=a.exportAs||null,A=(c=a.standalone)!=null?c:!0;c=a.signals===!0;var E=a.selectors||ie,H=a.viewQuery||null,L=a.features||null;var O=a.inputs;if(O==null)var S=re;else{var aa={};for(S in O)if(O.hasOwnProperty(S)){var ka=O[S];if(Array.isArray(ka)){var na=ka[0];var za=ka[1];var Na=void 0;var Pa=(Na=ka[2])!=null?Na:za;
ka=ka[3]||null}else Pa=za=ka,na=0,ka=null;aa[za]=[S,na,ka];b[za]=Pa}S=aa}a=a.outputs;if(a==null)var hb=re;else{O={};for(hb in a)a.hasOwnProperty(hb)&&(O[a[hb]]=hb);hb=O}return{type:d,providersResolver:null,factory:null,hostBindings:e,hostVars:f,hostAttrs:h,contentQueries:k,declaredInputs:b,inputConfig:q,exportAs:v,standalone:A,signals:c,selectors:E,viewQuery:H,features:L,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:S,outputs:hb,debugInfo:null}},Kja=function(a){var b;(b=a.features)==
null||b.forEach(function(c){return c(a)})},Lja=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},Nja=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)},Oja=function(a){return!!a&&typeof a.then==="function"},Pja=function(a){return!!a&&typeof a.subscribe==="function"},Rja=function(a){return{"\u0275providers":[{provide:Qja,multi:!0,useValue:a}]}},Sja=function(a,b){a&&(b=a.indexOf(b),0<=b&&a.splice(b,1))},xf=function(a){return typeof a==="function"},Tja=function(a){return a instanceof yf||a&&"closed"in a&&xf(a.remove)&&
xf(a.add)&&xf(a.unsubscribe)},zf=function(){},Vja=function(a){Uja(function(){throw a;})},Af=function(a){return a},Bf=function(){return Wja(ge.apply(0,arguments))},Wja=function(a){return a.length===0?Af:a.length===1?a[0]:function(b){return a.reduce(function(c,d){return d(c)},b)}},Xja=function(a){var b;return(b=a!=null?a:void 0)!=null?b:Promise},Yja=function(a,b){return new Cf(function(c){var d=0;return b.schedule(function(){d===a.length?c.complete():(c.next(a[d++]),c.closed||this.schedule())})})},
Zja=function(a,b){if(!a)throw Error("Na");return new Cf(function(c){var d=new yf;d.add(b.schedule(function(){var e=a[Symbol.asyncIterator]();d.add(b.schedule(function(){var f=this;e.next().then(function(h){h.done?c.complete():(c.next(h.value),f.schedule())})}))}));return d})},$ja=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},bka=function(a,b){return new Cf(function(c){var d;c.add(b.schedule(function(){d=a[aka]();$ja(c,b,function(){var e=
d.next(),f=e.value;e.done?c.complete():(c.next(f),this.schedule())})}));return function(){var e;return xf((e=d)==null?void 0:e.return)&&d.return()}})},dka=function(a,b){return new Cf(function(c){var d=new yf;d.add(b.schedule(function(){var e=a[cka]();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})},eka=function(a,
b){return new Cf(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)}))})})})},fka=function(a){return new TypeError("Oa`"+(a!==null&&typeof a==="object"?"an invalid object":"'"+a+"'"))},hka=function(a,b){if(a!=null){if(xf(a[cka]))return dka(a,b);if(gka(a))return Yja(a,b);if(xf(a==null?void 0:a.then))return eka(a,b);if(Symbol.asyncIterator&&
xf(a==null?void 0:a[Symbol.asyncIterator]))return Zja(a,b);if(xf(a==null?void 0:a[aka]))return bka(a,b)}throw fka(a);},Ef=function(a,b){return b?hka(a,b):Df(a)},Df=function(a){if(a instanceof Cf)return a;if(a!=null){if(xf(a[cka]))return ika(a);if(gka(a))return jka(a);if(xf(a==null?void 0:a.then))return kka(a);if(Symbol.asyncIterator&&xf(a==null?void 0:a[Symbol.asyncIterator]))return lka(a);if(xf(a==null?void 0:a[aka]))return mka(a)}throw fka(a);},ika=function(a){return new Cf(function(b){var c=a[cka]();
if(xf(c.subscribe))return c.subscribe(b);throw new TypeError("Pa");})},jka=function(a){return new Cf(function(b){for(var c=0;c<a.length&&!b.closed;c++)b.next(a[c]);b.complete()})},kka=function(a){return new Cf(function(b){a.then(function(c){b.closed||(b.next(c),b.complete())},function(c){return b.error(c)}).then(null,Vja)})},mka=function(a){return new Cf(function(b){for(var c=a[aka]();!b.closed;){var d=c.next(),e=d.value;d.done?b.complete():b.next(e)}return function(){return xf(c==null?void 0:c.return)&&
c.return()}})},lka=function(a){return new Cf(function(b){nka(a,b).catch(function(c){return b.error(c)})})},nka=function(a,b){var c,d,e,f,h,k;return z(function(q){switch(q.nextAddress){case 1:Gf(q,2,3);var v=a[Symbol.asyncIterator];f=v!==void 0?v.call(a):new oka(l(a));case 5:return B(q,f.next(),8);case 8:d=q.yieldResult;if(d.done){q.jumpTo(3);break}h=d.value;b.next(h);q.jumpTo(5);break;case 3:Hf(q);If(q,9);if(!d||d.done||!(e=f.return)){q.jumpTo(9);break}return B(q,e.call(f),9);case 9:Hf(q,0,0,1);if(c)throw c.error;
Jf(q,10,1);break;case 10:Jf(q,4);break;case 2:k=Kf(q);c={error:k};q.jumpTo(3);break;case 4:b.complete(),Lf(q)}})},pka=function(a,b){return b?Yja(a,b):jka(a)},qka=function(a){return xf(a[a.length-1])?a.pop():void 0},Mf=function(a){var b=a[a.length-1];return b&&xf(b.schedule)?a.pop():void 0},Nf=function(){var a=ge.apply(0,arguments),b=Mf(a);return b?Yja(a,b):pka(a)},Of=function(a){var b=xf(a)?a:function(){return a};return new Cf(function(c){return c.error(b())})},Rf=function(a){return new Promise(function(b,
c){var d=new Pf({next:function(e){b(e);d.unsubscribe()},error:c,complete:function(){c(new Qf)}});a.subscribe(d)})},Sf=function(a){return function(b){if(xf(b==null?void 0:b.lift))return b.lift(function(c){try{return a(c,this)}catch(d){this.error(d)}});throw new TypeError("Qa");}},rka=function(){return Sf(function(a,b){var c=null;a._refCount++;var d=new Tf(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())})},C=function(a){return Sf(function(b,c){var d=0;b.subscribe(new Tf(c,function(e){c.next(a.call(void 0,e,d++))}))})},tka=function(a){return C(function(b){return ska(b)?a.apply(null,p(b)):a(b)})},yka=function(a){if(a.length===1){var b=a[0];if(uka(b))return{args:b,keys:null};if(b&&typeof b==="object"&&vka(b)===wka)return a=xka(b),{args:a.map(function(c){return b[c]}),keys:a}}return{args:a,keys:null}},Uf=function(){var a=ge.apply(0,arguments),
b=Mf(a),c=qka(a);a=yka(a);var d=a.args,e=a.keys;if(d.length===0)return Ef([],b);b=new Cf(zka(d,b,e?function(f){for(var h={},k=0;k<f.length;k++)h[e[k]]=f[k];return h}:Af));return c?b.pipe(tka(c)):b},zka=function(a,b,c){c=c===void 0?Af:c;return function(d){Aka(b,function(){for(var e=a.length,f=Array(e),h=e,k=a.map(function(){return!1}),q=!0,v={i$jscomp$342:0};v.i$jscomp$342<e;v={i$jscomp$342:v.i$jscomp$342},v.i$jscomp$342++)Aka(b,function(A){return function(){Ef(a[A.i$jscomp$342],b).subscribe(new Bka(d,
function(E){f[A.i$jscomp$342]=E;q&&(k[A.i$jscomp$342]=!0,q=!k.every(Af));q||d.next(c(f.slice()))},function(){return--h===0}))}}(v),d)},d)}},Aka=function(a,b,c){a?c.add(a.schedule(b)):b()},Cka=function(a,b,c,d){var e=[],f=0,h=0,k=!1,q=function(v){f++;Df(c(v,h++)).subscribe(new Tf(b,function(A){b.next(A)},void 0,function(){f--;for(var A={};e.length&&f<d;A={bufferedValue:void 0})A.bufferedValue=e.shift(),q(A.bufferedValue);!k||e.length||f||b.complete()}))};a.subscribe(new Tf(b,function(v){return f<d?
q(v):e.push(v)},void 0,function(){k=!0;!k||e.length||f||b.complete()}));return function(){e=null}},Vf=function(a,b,c){c=c===void 0?Infinity:c;if(xf(b))return Vf(function(d,e){return C(function(f,h){return b(d,f,e,h)})(Df(a(d,e)))},c);typeof b==="number"&&(c=b);return Sf(function(d,e){return Cka(d,e,a,c)})},Wf=function(a){a=a===void 0?Infinity:a;return Vf(Af,a)},Xf=function(){var a=ge.apply(0,arguments);return Wf(1)(pka(a,Mf(a)))},Yf=function(a){return new Cf(function(b){Df(a()).subscribe(b)})},Zf=
function(){var a=ge.apply(0,arguments),b=qka(a),c=yka(a);a=c.args;c=c.keys;return b?Dka(a,c).pipe(C(function(d){return b.apply(null,p(d))})):Dka(a,c)},Dka=function(a,b){return new Cf(function(c){var d=a.length;if(d===0)c.complete();else for(var e=Array(d),f=0,h=0,k={sourceIndex:0};k.sourceIndex<d;k={hasValue$jscomp$2:void 0,sourceIndex:k.sourceIndex},k.sourceIndex++){var q=Df(a[k.sourceIndex]);k.hasValue$jscomp$2=!1;c.add(q.subscribe({next:function(v){return function(A){v.hasValue$jscomp$2||(v.hasValue$jscomp$2=
!0,h++);e[v.sourceIndex]=A}}(k),error:function(v){return c.error(v)},complete:function(v){return function(){f++;f!==d&&v.hasValue$jscomp$2||(h===d&&c.next(b?b.reduce(function(A,E,H){return A[E]=e[H],A},{}):e),c.complete())}}(k)}))}})},$f=function(a,b,c){if(xf(c)){var d=c;c=void 0}if(d)return $f(a,b,c).pipe(tka(d));d=l(xf(a.addEventListener)&&xf(a.removeEventListener)?Eka.map(function(h){return function(k){return a[h](b,k,c)}}):xf(a.addListener)&&xf(a.removeListener)?Fka.map(Gka(a,b)):xf(a.on)&&xf(a.off)?
Hka.map(Gka(a,b)):[]);var e=d.next().value,f=d.next().value;return!e&&gka(a)?Vf(function(h){return $f(h,b,c)})(pka(a)):new Cf(function(h){if(!e)throw new TypeError("Ra");var k=function(){var q=ge.apply(0,arguments);return h.next(1<q.length?q:q[0])};e(k);return function(){return f(k)}})},Gka=function(a,b){return function(c){return function(d){return a[c](b,d)}}},Ika=function(a,b){return new Cf(function(c){var d=function(){var f=ge.apply(0,arguments);return c.next(f.length===1?f[0]:f)},e=a(d);return xf(b)?
function(){return b(d,e)}:void 0})},Jka=function(a,b,c){return Yf(function(){return a()?b:c})},bg=function(a,b,c){a=a===void 0?0:a;c=c===void 0?ag:c;var d=-1;b!=null&&(b&&xf(b.schedule)?c=b:d=b);return new Cf(function(e){var f=a instanceof Date&&!isNaN(a)?+a-c.now():a;f<0&&(f=0);var h=0;return c.schedule(function(){e.closed||(e.next(h++),0<=d?this.schedule(void 0,d):e.complete())},f)})},Kka=function(a,b){a=a===void 0?0:a;b=b===void 0?ag:b;a<0&&(a=0);return bg(a,a,b)},dg=function(){var a=ge.apply(0,
arguments),b=Mf(a);var c=typeof a[a.length-1]==="number"?a.pop():Infinity;return a.length?a.length===1?Df(a[0]):Wf(c)(pka(a,b)):cg},eg=function(a){return Sf(function(b,c){var d=0;b.subscribe(new Tf(c,function(e){return a.call(void 0,e,d++)&&c.next(e)}))})},Nka=function(){var a=ge.apply(0,arguments);a=a.length===1&&Lka(a[0])?a[0]:a;return a.length===1?Df(a[0]):new Cf(Mka(a))},Mka=function(a){return function(b){for(var c=[],d={i$jscomp$345:0};c&&!b.closed&&d.i$jscomp$345<a.length;d={i$jscomp$345:d.i$jscomp$345},
d.i$jscomp$345++)c.push(Df(a[d.i$jscomp$345]).subscribe(new Tf(b,function(e){return function(f){if(c){for(var h=0;h<c.length;h++)h!==e.i$jscomp$345&&c[h].unsubscribe();c=null}b.next(f)}}(d))))}},fg=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?Oka:a.with,e=a.scheduler===void 0?ag:a.scheduler,f=a.meta===void 0?null:a.meta;if(b==null&&c==null)throw new TypeError("Ta");return Sf(function(h,k){var q,v=null,A=0,E=function(L){q=
$ja(k,e,function(){H.unsubscribe();Df(d({meta:f,lastValue:v,seen:A})).subscribe(k)},L)};var H=h.subscribe(new Tf(k,function(L){var O;(O=q)==null||O.unsubscribe();A++;k.next(v=L);c>0&&E(c)},void 0,void 0,function(){var L;if((L=q)==null||!L.closed){var O;(O=q)==null||O.unsubscribe()}v=null}));E(b!=null?typeof b==="number"?b:+b-e.now():c)})},Oka=function(a){throw new Pka(a);},Rka=function(a){return a in Qka?(delete Qka[a],!0):!1},Ska=function(a){return!!a&&(a instanceof Cf||xf(a.lift)&&xf(a.subscribe))},
Tka=function(){},Uka=function(a){function b(){a=Tka;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()}},Vka=function(a){queueMicrotask(function(){return a()});return function(){a=Tka}},Wka=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}}},Yka=function(a){function b(){Uka(function(){a.callbackScheduled=!1;Xka(a);a.isCheckStableRunning=!0;Wka(a);a.isCheckStableRunning=!1})}a.isCheckStableRunning||a.callbackScheduled||(a.callbackScheduled=!0,a.scheduleInRootZone?Zone.root.run(function(){b()}):a._outer.run(function(){b()}),Xka(a))},bla=function(a){var b=Zka++,c={};a._inner=
a._inner.fork({name:"angular",properties:(c.isAngularZone=!0,c.isAngularZone_ID=b,c["isAngularZone_ID"+b]=!0,c),onInvokeTask:function(d,e,f,h,k,q){if($ka(q,"__ignore_ng_zone__"))return d.invokeTask(f,h,k,q);try{return ala(a),d.invokeTask(f,h,k,q)}finally{(a.shouldCoalesceEventChangeDetection&&h.type==="eventTask"||a.shouldCoalesceRunChangeDetection)&&Yka(a),a._nesting--,Wka(a)}},onInvoke:function(d,e,f,h,k,q,v){try{return ala(a),d.invoke(f,h,k,q,v)}finally{!a.shouldCoalesceRunChangeDetection||a.callbackScheduled||
$ka(q,"__scheduler_tick__")||Yka(a),a._nesting--,Wka(a)}},onHasTask:function(d,e,f,h){d.hasTask(f,h);e===f&&(h.change=="microTask"?(a._hasPendingMicrotasks=h.microTask,Xka(a),Wka(a)):h.change=="macroTask"&&(a.hasPendingMacrotasks=h.macroTask))},onHandleError:function(d,e,f,h){d.handleError(f,h);a.runOutsideAngular(function(){return a.onError.emit(h)});return!1}})},Xka=function(a){a.hasPendingMicrotasks=a._hasPendingMicrotasks||(a.shouldCoalesceEventChangeDetection||a.shouldCoalesceRunChangeDetection)&&
a.callbackScheduled===!0?!0:!1},ala=function(a){a._nesting++;a.isStable&&(a.isStable=!1,a.onUnstable.emit(null))},$ka=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},gg=function(a){return typeof a==="function"&&a[Qd]!==void 0},cla=function(a){return Sf(function(b,c){var d=!1,e=null,f=null,h=!1,k=function(){var v;(v=f)==null||v.unsubscribe();f=null;d&&(d=!1,v=e,e=null,c.next(v));h&&c.complete()},q=function(){f=null;
h&&c.complete()};b.subscribe(new Tf(c,function(v){d=!0;e=v;f||Df(a(v)).subscribe(f=new Tf(c,k,void 0,q))},void 0,function(){h=!0;d&&f&&!f.closed||c.complete()}))})},dla=function(a,b){b=b===void 0?ag:b;return cla(function(){return bg(a,b)})},ela=function(a){return Sf(function(b,c){var d=[];b.subscribe(new Tf(c,function(e){return d.push(e)},void 0,function(){c.next(d);c.complete()}));a.subscribe(new Tf(c,function(){var e=d;d=[];c.next(e)},void 0,zf));return function(){d=null}})},hg=function(a){return Sf(function(b,
c){var d=null,e=!1,f;d=b.subscribe(new Tf(c,void 0,function(h){f=Df(a(h,hg(a)(b)));d?(d.unsubscribe(),d=null,f.subscribe(c)):e=!0}));e&&(d.unsubscribe(),d=null,f.subscribe(c))})},fla=function(a,b,c){return function(d,e){var f=c,h=b,k=0;d.subscribe(new Tf(e,function(q){var v=k++;h=f?a(h,q,v):(f=!0,q);e.next(h)},void 0,void 0))}},gla=function(){var a=ge.apply(0,arguments),b=qka(a);return b?Bf(gla.apply(null,p(a)),tka(b)):Sf(function(c,d){zka([c].concat(p(a.length===1&&Lka(a[0])?a[0]:a)))(d)})},ig=function(){return gla.apply(null,
p(ge.apply(0,arguments)))},jg=function(a){return xf()?Vf(a,void 0,1):Vf(a,1)},ila=function(){return hla.apply(null,p(ge.apply(0,arguments)))},hla=function(){var a=ge.apply(0,arguments),b=Mf(a);return Sf(function(c,d){Wf(1)(pka([c].concat(p(a)),b)).subscribe(d)})},jla=function(a){return Sf(function(b,c){var d=!1,e=null,f=null,h=function(){var k;(k=f)==null||k.unsubscribe();f=null;d&&(d=!1,k=e,e=null,c.next(k))};b.subscribe(new Tf(c,function(k){var q;(q=f)==null||q.unsubscribe();d=!0;e=k;f=new Tf(c,
h,void 0,zf);Df(a(k)).subscribe(f)},void 0,function(){h();c.complete()},function(){e=f=null}))})},kg=function(a,b){b=b===void 0?ag:b;var c=bg(a,b);return jla(function(){return c})},kla=function(a){a=a===void 0?null:a;return Sf(function(b,c){var d=!1;b.subscribe(new Tf(c,function(e){d=!0;c.next(e)},void 0,function(){d||c.next(a);c.complete()}))})},lla=function(){return Sf(function(a,b){a.subscribe(new Tf(b,zf))})},lg=function(a){return Sf(function(b,c){b.subscribe(new Tf(c,function(){return c.next(a)}))})},
mg=function(a){return a<=0?function(){return cg}:Sf(function(b,c){var d=0;b.subscribe(new Tf(c,function(e){++d<=a&&(c.next(e),a<=d&&c.complete())}))})},mla=function(a){return Vf(function(b,c){return a(b,c).pipe(mg(1),lg(b))})},ng=function(a,b){b=b===void 0?ag:b;var c=bg(a,b);return mla(function(){return c})},og=function(a){var b=b===void 0?Af:b;var c;a=(c=a)!=null?c:nla;return Sf(function(d,e){var f,h=!0;d.subscribe(new Tf(e,function(k){var q=b(k);if(h||!a(f,q))h=!1,f=q,e.next(k)}))})},nla=function(a,
b){return a===b},pla=function(a){a=a===void 0?ola:a;return Sf(function(b,c){var d=!1;b.subscribe(new Tf(c,function(e){d=!0;c.next(e)},void 0,function(){return d?c.complete():c.error(a())}))})},ola=function(){return new Qf},pg=function(a){return Sf(function(b,c){b.subscribe(c);c.add(a)})},qg=function(a,b){var c=arguments.length>=2;return function(d){return d.pipe(a?eg(function(e,f){return a(e,f,d)}):Af,mg(1),c?kla(b):pla(function(){return new Qf}))}},qla=function(){return Sf(function(a,b){var c=[];
a.subscribe(new Tf(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}))})},rla=function(a,b){var c=arguments.length>=2;return function(d){return d.pipe(a?eg(function(e,f){return a(e,f,d)}):Af,qla(),c?kla(b):pla(function(){return new Qf}))}},sla=function(a){var b=xf(a)?a:function(){return a};return xf()?Sf(function(c,d){var e=b();(void 0)(e).subscribe(d).add(c.subscribe(e))}):function(c){var d=
new rg(c,b);xf(c==null?void 0:c.lift)&&(d.lift=c.lift);d.source=c;d.subjectFactory=b;return d}},tla=function(){return Sf(function(a,b){var c,d=!1;a.subscribe(new Tf(b,function(e){var f=c;c=e;d&&b.next([f,e]);d=!0}))})},ula=function(){var a=new sg(1,void 0,void 0);return function(b){return sla(function(){return a})(b)}},vla=function(){var a=ge.apply(0,arguments);return a.length?Sf(function(b,c){Mka([b].concat(p(a)))(c)}):Af},wla=function(a){return Sf(function(b,c){var d,e=!1,f,h=function(){d=b.subscribe(new Tf(c,
void 0,function(k){f||(f=new tg,a(f).subscribe(new Tf(c,function(){return d?h():e=!0})));f&&f.next(k)}));e&&(d.unsubscribe(),d=null,e=!1,h())};h()})},xla=function(a,b){return Sf(fla(a,b,arguments.length>=2))},yla=function(){var a=a||{};var b=a.connector===void 0?function(){return new tg}:a.connector,c=a.resetOnComplete===void 0?!0:a.resetOnComplete,d=a.resetOnError===void 0?!0:a.resetOnError,e=a.resetOnRefCountZero===void 0?!0:a.resetOnRefCountZero;return function(f){var h=null,k=null,q=0,v=!1,A=
!1,E=function(){h=k=null;v=A=!1};return Sf(function(H,L){q++;var O;k=(O=k)!=null?O:b();L.add(function(){q--;if(e&&!q&&!A&&!v){var S=h;E();S==null||S.unsubscribe()}});k.subscribe(L);!h&&q>0&&(h=new Pf({next:function(S){return k.next(S)},error:function(S){A=!0;var aa=k;d&&E();aa.error(S)},complete:function(){v=!0;var S=k;c&&E();S.complete()}}),Ef(H).subscribe(h))})(f)}},ug=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 Sf(zla(b))(c)}},
zla=function(a){var b=a.bufferSize===void 0?Infinity:a.bufferSize;var c=a.windowTime===void 0?Infinity:a.windowTime;var d=a.refCount;var e=a.scheduler;var f,h=0,k;return function(q,v){h++;if(f)var A=f.subscribe(v);else f=new sg(b,c,e),A=f.subscribe(v),k=q.subscribe({next:function(E){f.next(E)},error:function(E){var H=f;f=k=void 0;H.error(E)},complete:function(){k=void 0;f.complete()}}),k.closed&&(k=void 0);v.add(function(){h--;A.unsubscribe();d&&h===0&&k&&(k.unsubscribe(),f=k=void 0)})}},vg=function(a){return eg(function(b,
c){return a<=c})},wg=function(){var a=ge.apply(0,arguments),b=Mf(a);return Sf(function(c,d){(b?Xf(a,c,b):Xf(a,c)).subscribe(d)})},xg=function(a){return Sf(function(b,c){var d=null,e=0,f=!1;b.subscribe(new Tf(c,function(h){var k;(k=d)==null||k.unsubscribe();k=e++;Df(a(h,k)).subscribe(d=new Tf(c,function(q){return c.next(q)},void 0,function(){d=null;f&&!d&&c.complete()}))},void 0,function(){(f=!0,!d)&&c.complete()}))})},Ala=function(a){return xg(function(){return a})},yg=function(a){return Sf(function(b,
c){Df(a).subscribe(new Tf(c,function(){return c.complete()},void 0,zf));!c.closed&&b.subscribe(c)})},Bla=function(a){var b=b===void 0?!1:b;return Sf(function(c,d){var e=0;c.subscribe(new Tf(d,function(f){var h=a(f,e++);(h||b)&&d.next(f);!h&&d.complete()}))})},zg=function(a,b){var c=xf(a)||b?{next:a,error:b,complete:void 0}:a;return c?Sf(function(d,e){d.subscribe(new Tf(e,function(f){var h;(h=c.next)==null||h.call(c,f);e.next(f)},function(f){var h;(h=c.error)==null||h.call(c,f);e.error(f)},function(){var f;
(f=c.complete)==null||f.call(c);e.complete()}))}):Af},Dla=function(a){var b=Cla.leading;var c=Cla.trailing;return Sf(function(d,e){var f=!1,h=null,k=null,q=!1,v=function(){var L;(L=k)==null||L.unsubscribe();k=null;c&&(H(),q&&e.complete())},A=function(){k=null;q&&e.complete()},E=function(L){return k=Df(a(L)).subscribe(new Tf(e,v,void 0,A))},H=function(){f&&(e.next(h),!q&&E(h));f=!1;h=null};d.subscribe(new Tf(e,function(L){f=!0;h=L;(!k||k.closed)&&(b?H():E(L))},void 0,function(){q=!0;c&&f&&k&&!k.closed||
e.complete()}))})},Ag=function(){var a=ge.apply(0,arguments),b=qka(a);return Sf(function(c,d){for(var e=a.length,f=Array(e),h=a.map(function(){return!1}),k=!1,q={i$jscomp$357:0};q.i$jscomp$357<e;q={i$jscomp$357:q.i$jscomp$357},q.i$jscomp$357++)Df(a[q.i$jscomp$357]).subscribe(new Tf(d,function(v){return function(A){f[v.i$jscomp$357]=A;k||h[v.i$jscomp$357]||(h[v.i$jscomp$357]=!0,(k=h.every(Af))&&(h=null))}}(q),void 0,zf));c.subscribe(new Tf(d,function(v){k&&(v=[v].concat(p(f)),d.next(b?b.apply(null,
p(v)):v))}))})},Ela=function(){Dfa=function(){throw new Vd(600,"");}},Fla=function(a,b){return Array.isArray(b)?b.reduce(Fla,a):Object.assign({},a,b)},Gla=function(a,b){b=a.indexOf(b);b>-1&&a.splice(b,1)},Hla=function(a,b,c,d){var e=Fd(null);try{var f=b.tView,h,k,q,v=Sha(a,f,c,a[2]&4096?4096:16,null,b,null,null,(h=d==null?void 0:d.injector)!=null?h:null,(k=d==null?void 0:d.embeddedViewInjector)!=null?k:null,(q=d==null?void 0:d.dehydratedView)!=null?q:null);v[16]=a[b.index];var A=a[18];A!==null&&(v[18]=
A.createEmbeddedView(f));Tia(f,v,c);return v}finally{Fd(e)}},Ila=function(a,b){return!b||b.firstChild===null||(a.flags&128)===128},Bg=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 Vd(903,!1);e=b.\u0275dir}if(e){if(c){d.push(e);var f=a;f.inputs=Jla(a.inputs);f.declaredInputs=Jla(a.declaredInputs);f.outputs=Jla(a.outputs);(f=e.hostBindings)&&Kla(a,f);f=e.viewQuery;var h=e.contentQueries;
f&&Lla(a,f);h&&Mla(a,h);f=void 0;h=a;var k=e;for(f in k.inputs)if(k.inputs.hasOwnProperty(f)&&!h.inputs.hasOwnProperty(f)){var q=k.inputs[f];q!==void 0&&(h.inputs[f]=q,h.declaredInputs[f]=k.declaredInputs[f])}f=void 0;h=a.outputs;k=e.outputs;for(f in k)k.hasOwnProperty(f)&&!h.hasOwnProperty(f)&&(h[f]=k[f]);e.template&&e.data.animation&&(f=a.data,f.animation=(f.animation||[]).concat(e.data.animation))}if(e=e.features)for(f=0;f<e.length;f++)(h=e[f])&&h.ngInherit&&h(a),h===Bg&&(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=Ke(e.hostAttrs,b=Ke(b,e.hostAttrs))},Jla=function(a){return a===re?{}:a===ie?[]:a},Lla=function(a,b){var c=a.viewQuery;a.viewQuery=c?function(d,e){b(d,e);c(d,e)}:b},Mla=function(a,b){var c=a.contentQueries;a.contentQueries=c?function(d,e,f){b(d,e,f);c(d,e,f)}:b},Kla=function(a,b){var c=a.hostBindings;a.hostBindings=c?function(d,e){b(d,e);c(d,e)}:b},Ola=function(a){for(var b=[],c=!1,d=null,e=null,f=0;f<a.length;f++){var h=
a[f];if(h.hostDirectives!==null){var k=b.length;d!=null||(d=new Map);e!=null||(e=new Map);Nla(h,b,d);e.set(h,[k,b.length-1])}f===0&&h.template&&(c=!0,b.push(h))}for(c=c?1:0;c<a.length;c++)b.push(a[c]);return[b,d,e]},Nla=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())Pla(Qla(e.value),b,c)}else Pla(d,b,c)}},Pla=function(a,b,c){var d=a.directive[zja]||null,e=
d.declaredInputs,f=a.inputs,h;for(h in f)f.hasOwnProperty(h)&&(e[f[h]]=e[h]);Nla(d,b,c);c.set(d,a);b.push(d)},Qla=function(a){return typeof a==="function"?{directive:ae(a),inputs:re,outputs:re}:{directive:ae(a.directive),inputs:Rla(a.inputs),outputs:Rla(a.outputs)}},Rla=function(a){if(a===void 0||a.length===0)return re;for(var b={},c=0;c<a.length;c+=2)b[a[c]]=a[c+1];return b},Tla=function(){return new Sla(t(),Ae())},Ig=function(a,b){var c,d=(c=b==null?void 0:b.injector)!=null?c:r(Cg);tf("NgAfterNextRender");
c=d.get(Dg);c.impl!=null||(c.impl=d.get(Eg));var e=d.get(Fg,null,{optional:!0});b=(b==null?void 0:b.manualCleanup)!==!0?d.get(Gg):null;d=d.get(Sla,null,{optional:!0});a=new Hg(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},Xla=function(){return Wla(Ae(),t())},Yla=function(a){return a[8]||(a[8]=[])},Wla=function(a,b){var c=b[a.index];if(qe(c))var d=c;else d=
[c,!0,0,b,null,a,null,null,null,null],b[a.index]=d,Vha(b,d);Zla(d,b,a,c);return new Jg(d,a,b)},$la=function(a,b,c,d){if(!a[7]){if(c.type&8)d=se(d);else{d=b[11];var e=d.createComment("");c=te(c,b);b=d.parentNode(c);c=d.nextSibling(c);d.insertBefore(b,e,c,!1);d=e}a[7]=d}},bma=function(a,b,c,d,e,f,h,k){c.firstCreatePass&&(a.mergedAttrs=Ke(a.mergedAttrs,a.attrs),e=a.tView=Qha(2,a,e,f,h,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);Be(a,!1);k=ama(c,b,a,d);kf&&Mha(c,b,k,a);Se(k,b);a=[k,!0,0,b,null,a,null,k,null,null];b[d+26]=a;Vha(b,a)},cma=function(a,b,c,d,e,f,h,k,q,v,A){var E=c+26;if(b.firstCreatePass){if(h=nf(b,E,4,h||null,k||null),v!=null)for(k=ve(b.consts,v),h.localNames=[],E=0;E<k.length;E+=2)h.localNames.push(k[E],-1)}else h=b.data[E];bma(h,a,b,c,d,e,f,q);v!=null&&yia(a,h,A)},D=function(a,b,c,d,e,f,h,k){var q=t(),v=ze.tView;f=ve(v.consts,f);var A=a+26;v.firstCreatePass?(e=nf(v,
A,4,e||null,f||null),Zia(v,q,e,ve(v.consts,h),Eia),Mga(v,e)):e=v.data[A];bma(e,q,v,a,b,c,d);(e.flags&1)===1&&xia(v,q,e);h!=null&&yia(q,e,k);return D},dma=function(a,b,c,d,e,f,h,k){var q=t(),v=ze.tView;f=ve(v.consts,f);cma(q,v,a,b,c,d,e,f,void 0,h,k);return dma},ema=function(a,b){kf=!0;return b[11].createComment("")},Kg=function(a,b){var c=t(),d=De();if(Xe(c,d,b)){var e=ze.tView;d=Fe();jf(d,e,c,a,b)?d.componentOffset>-1&&Bia(c,d.index):(e=te(d,c),Fia(c[11],e,null,d.value,a.charAt(4)!=="-"?"aria-"+
a.slice(4).toLowerCase():a,b,null))}return Kg},Lg=function(a,b,c,d){var e=t(),f=De();if(Xe(e,f,b)){f=Fe();var h=te(f,e);Fia(e[11],h,d,f.value,a,b,c)}return Lg},fma=function(a,b,c,d,e){return a===c&&Object.is(b,d)?1:Object.is(e(a,b),e(c,d))?-1:0},lma=function(a,b,c){var d=void 0,e=void 0,f=0,h=a.length-1;if(Array.isArray(b)){for(var k=b.length-1;f<=h&&f<=k;){var q=a.at(f),v=b[f],A=fma(f,q,f,v,c);if(A!==0)A<0&&a.updateValue(f,v),f++;else{var E=a.at(h);A=b[k];var H=fma(h,E,k,A,c);H!==0?(H<0&&a.updateValue(h,
A),h--,k--):(q=c(f,q),E=c(h,E),H=c(f,v),Object.is(H,E)?(E=c(k,A),Object.is(E,q)?(gma(a,f,h),a.updateValue(h,A),k--,h--):a.move(h,f),a.updateValue(f,v),f++):(d!=null||(d=new hma),e!=null||(e=ima(a,f,h,c)),jma(a,d,f,H)?(a.updateValue(f,v),f++,h++):e.has(H)?(d.set(q,a.detach(f)),h--):(v=a.create(f,b[f]),a.attach(f,v),f++,h++)))}}for(;f<=k;)kma(a,d,c,f,b[f]),f++}else if(b!=null){b=b[Symbol.iterator]();for(k=b.next();!k.done&&f<=h;)v=a.at(f),A=k.value,q=fma(f,v,f,A,c),q!==0?(q<0&&a.updateValue(f,A),f++,
k=b.next()):(d!=null||(d=new hma),e!=null||(e=ima(a,f,h,c)),q=c(f,A),jma(a,d,f,q)?(a.updateValue(f,A),f++,h++,k=b.next()):e.has(q)?(v=c(f,v),d.set(v,a.detach(f)),h--):(a.attach(f,a.create(f,A)),f++,h++,k=b.next()));for(;!k.done;)kma(a,d,c,a.length,k.value),k=b.next()}for(;f<=h;)a.destroy(a.detach(h--));var L;(L=d)==null||L.forEach(function(O){a.destroy(O)})},jma=function(a,b,c,d){return b!==void 0&&b.has(d)?(a.attach(c,b.get(d)),b.delete(d),!0):!1},kma=function(a,b,c,d,e){jma(a,b,d,c(d,e))?a.updateValue(d,
e):(b=a.create(d,e),a.attach(d,b))},ima=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){tf("NgControlFlow");var h=t(),k=ze.tView;f=ve(k.consts,f);cma(h,k,a,b,c,d,e,f,256);return Mg},Mg=function(a,b,c,d,e,f,h,k){tf("NgControlFlow");var q=t(),v=ze.tView;f=ve(v.consts,f);cma(q,v,a,b,c,d,e,f,512,h,k);return Mg},G=function(a,b){tf("NgControlFlow");var c=t(),d=De(),e=c[d]!==We?c[d]:-1;e=e!==-1?c[26+e]:void 0;if(Xe(c,d,a)){d=Fd(null);try{if(e!==void 0&&
qja(e),a!==-1){a=26+a;var f=c[a],h=c[1].data[a],k=Hla(c,h,b,{dehydratedView:null});oja(f,k,0,Ila(h,null))}}finally{Fd(d)}}else e!==void 0&&(c=mja(e,0),c!==void 0&&(c[8]=b))},Ng=function(a){return a},Og=function(a,b){return b},Pg=function(a,b,c,d,e,f,h,k){tf("NgControlFlow");var q=t(),v=ze.tView,A=t();h=k?h.bind(A[15][8]):h;A[26+a]=new mma(h);cma(q,v,a+1,b,c,d,e,ve(v.consts,f),256)},Qg=function(a){var b=Fd(null),c=ze.selectedIndex;try{var d=t(),e=d[1],f=d[c],h=c+1,k=d[h];f.liveCollection===void 0?
f.liveCollection=new nma(k,d,e.data[h]):f.liveCollection.reset();var q=f.liveCollection;lma(q,a,f.trackByFn);if(q.needsIndexUpdate)for(a=0;a<q.length;a++)mja(q.lContainer,a)[8].$index=a;if(f.hasEmptyBlock){var v=De(),A=q.length===0;if(Xe(d,v,A)){c+=2;var E=d[c];if(A){var H=e.data[c],L=Hla(d,H,void 0,{dehydratedView:null});oja(E,L,0,Ila(H,null))}else{if(e.firstUpdatePass){var O,S=(O=E[6])!=null?O:[],aa=E[3][11];d=[];for(var ka=l(S),na=ka.next();!na.done;na=ka.next()){var za=na.value;if(za.data.di!==
void 0)d.push(za);else{S=0;var Na=za.firstChild;if(Na)for(var Pa=za.data.r;S<Pa;){var hb=Na.nextSibling;aa.removeChild(null,Na,!1);Na=hb;S++}}}E[6]=d}qja(E)}}}}finally{Fd(b)}},Rg=function(a,b,c){var d=t(),e=De();Xe(d,e,b)&&(e=Fe(),Cia(e,d,a,b,d[11],c));return Rg},oma=function(a,b,c){var d=t(),e=De();if(Xe(d,e,b)){e=ze.tView;var f=Fe();Cia(f,d,a,b,Iia(Fga(e.data),f,d),c)}return oma},I=function(a,b,c){var d=t(),e=De();Xe(d,e,b)&&(e=Fe(),Dia(e,d,a,b,d[11],c));return I},J=function(a,b,c,d){var e=t(),
f=e[1],h=a+26;c=f.firstCreatePass?aja(h,e,2,b,Eia,c,d):f.data[h];Gia(c,e,a,b,pma);(c.flags&1)===1&&(a=e[1],xia(a,e,c),Ria(a,c,e));d!=null&&yia(e,c);return J},K=function(){var a=ze.tView,b=Hia();a.firstCreatePass&&bja(a,b);mf===b&&(mf=null);ze.elementDepthCount--;b.classesWithoutHost!=null&&(b.flags&8)!==0&&jf(b,a,t(),"class",b.classesWithoutHost);b.stylesWithoutHost!=null&&(b.flags&16)!==0&&jf(b,a,t(),"style",b.stylesWithoutHost);return K},M=function(a,b,c,d){J(a,b,c,d);K();return M},Sg=function(a,
b,c,d){var e=t(),f=e[1],h=a+26;if(f.firstCreatePass){var k=f.consts;c=ve(k,c);h=nf(f,h,2,b,c);h.mergedAttrs=Ke(h.mergedAttrs,h.attrs);if(d!=null)for(k=ve(k,d),h.localNames=[],c=0;c<k.length;c+=2)h.localNames.push(k[c],-1);h.attrs!==null&&Uia(h,h.attrs,!1);h.mergedAttrs!==null&&Uia(h,h.mergedAttrs,!0);f.queries!==null&&f.queries.elementStart(f,h);f=h}else f=f.data[h];Gia(f,e,a,b,pma);d!=null&&yia(e,f);return Sg},Tg=function(){var a=Hia();mf===a&&(mf=null);ze.elementDepthCount--;return Tg},Ug=function(a,
b,c,d){Sg(a,b,c,d);Tg();return Ug},Wg=function(a,b,c){var d=t(),e=d[1],f=a+26;b=e.firstCreatePass?aja(f,d,8,"ng-container",Eia,b,c):e.data[f];Gia(b,d,a,"ng-container",qma);(b.flags&1)===1&&(a=d[1],xia(a,d,b),Ria(a,b,d));c!=null&&yia(d,b);return Wg},Xg=function(){var a=ze.tView,b=Hia();a.firstCreatePass&&bja(a,b);return Xg},Yg=function(a,b,c){Wg(a,b,c);Xg();return Yg},Zg=function(a){var b=a.toLowerCase().replace(/_/g,"-");if(a=rma(b))return a;b=b.split("-")[0];if(a=rma(b))return a;if(b==="en")return sma;
throw new Vd(701,!1);},rma=function(a){a in tma||(tma[a]=ef.ng&&ef.ng.common&&ef.ng.common.locales&&ef.ng.common.locales[a]);return tma[a]},$g=function(a){var b=ze.tView,c=t();a+=26;var d=nf(b,a,128,null,null);Be(d,!1);wga(b,c,a,uma);return $g},ah=function(a){tf("NgLet");wga(ze.tView,t(),ze.selectedIndex,a);return a},bh=function(a){a=ze.contextLView[26+a];if(a===uma)throw new Vd(314,!1);return a},N=function(a,b,c){var d=t();vma(ze.tView,d,d[11],Ae(),a,b,c);return N},wma=function(a,b){var c=Ae(),d=
t(),e=ze.tView;vma(e,d,Iia(Fga(e.data),c,d),c,a,b);return wma},xma=function(a,b,c){var d=t(),e=ze.tView,f=Ae();(f.type&3||c)&&Nia(f,e,d,c,d[11],a,b,Kia(f,d,b));return xma},vma=function(a,b,c,d,e,f,h){var k=!0,q=null;if(d.type&3||h)q!=null||(q=Kia(d,b,f)),Nia(d,a,b,h,c,e,f,q)&&(k=!1);if(k){var v;a=(v=d.outputs)==null?void 0:v[e];var A;if((v=(A=d.hostDirectiveOutputs)==null?void 0:A[e])&&v.length)for(A=0;A<v.length;A+=2)c=v[A],h=v[A+1],q!=null||(q=Kia(d,b,f)),Oia(d,b,c,h,e,q);if(a&&a.length)for(A=l(a),
v=A.next();!v.done;v=A.next())v=v.value,q!=null||(q=Kia(d,b,f)),Oia(d,b,v,e,e,q)}},P=function(a){a=a===void 0?1:a;for(var b=ze.contextLView;a>0;)b=b[14],a--;return(ze.contextLView=b)[8]},ch=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,h=null;b:{var k=e.attrs;if(k!=null){var q=k.indexOf(5);if((q&1)===0){k=k[q+1];break b}}k=null}for(q=0;q<f.length;q++){var v=
f[q];if(v==="*")h=q;else{if(k===null)v=nha(e,v,!0);else b:{var A=0;c:for(;A<v.length;A++){var E=v[A];if(k.length===E.length){for(var H=0;H<k.length;H++)if(k[H]!==E[H])continue c;v=!0;break b}}v=!1}if(v){e=q;break a}}}e=h}else e=0;e!==null&&(d[e]?d[e].projectionNext=b:c[e]=b,d[e]=b)}b=b.next}}},dh=function(a,b,c){b=b===void 0?0:b;var d=t(),e=ze.tView;a=nf(e,26+a,16,null,c||null);a.projection===null&&(a.projection=b);ze.isParent=!1;d[6]&&mf===null||(a.flags&32)===32||(b=d[11],e=Lha(e,a.parent,d),c=
a.parent||d[5],c=c.type&40?te(c,d):null,Pha(b,0,d,a,e,c))},yma=function(){return this._results[Symbol.iterator]()},Ama=function(){return zma(Ae(),t())},zma=function(a,b){return a.type&4?new eh(b,a,Ue(a,b)):null},Bma=function(a,b,c,d){d=b[18].queries[d];if(d.matches===null){a=a.data;for(var e=c.matches,f=[],h=0;e!==null&&h<e.length;h+=2){var k=e[h];if(k<0)f.push(null);else{var q=f,v=q.push,A=b,E=a[k],H=e[h+1];k=c.metadata.read;H===-1?(k=E,A=k.type&11?Ue(k,A):k.type&4?zma(k,A):null):H===-2?A=k===Te?
Ue(E,A):k===eh?zma(E,A):k===fh?Wla(E,A):void 0:A=Oe(A,A[1],H,E);v.call(q,A)}}d.matches=f}return d.matches},Cma=function(a,b,c,d){var e=a.queries.queries[c],f=e.matches;if(f!==null)for(a=Bma(a,b,e,c),c=0;c<f.length;c+=2){var h=f[c];if(h>0)d.push(a[c/2]);else{e=f[c+1];h=b[-h];for(var k=10;k<h.length;k++){var q=h[k];q[16]===q[3]&&Cma(q[1],q,e,d)}if(h[9]!==null)for(h=h[9],k=0;k<h.length;k++)q=h[k],Cma(q[1],q,e,d)}}return d},Fma=function(a,b){var c=t();b=new gh((b&4)===4);var d=b.destroy,e=Bga(c);e.push(b);
a.firstCreatePass&&Cga(a).push(d,e.length-1);var f;return((f=c[18])!=null?f:c[18]=new Dma).queries.push(new Ema(b))-1},hh=function(a,b,c){var d=ze.tView;d.firstCreatePass&&(Gma(d,new Hma(a,b,c),-1),(b&2)===2&&(d.staticViewQueries=!0));return Fma(d,b)},ih=function(a,b,c,d){var e=ze.tView;if(e.firstCreatePass){var f=Ae();Gma(e,new Hma(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 Fma(e,
c)},Ima=function(a){return a.split(",").map(function(b){return b.trim()})},Gma=function(a,b,c){a.queries===null&&(a.queries=new Jma);a.queries.track(new jh(b,c))},Kma=function(a,b){var c=a[1],d=c.queries.queries[b];return d.crossesNgTemplate?Cma(c,a,b,[]):Bma(c,a,d,b)},lh=function(a){var b=t(),c=ze.tView,d=ze.currentQueryIndex;ze.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=Kma(b,d),a.reset(b,tha),kh(a)),!0):
!1},mh=function(){return t()[18].queries[ze.currentQueryIndex].queryList},nh=function(a,b){var c=l(Efa(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=Lma.bind(a);return a},Lma=function(){var a=this,b=this[Qd];if(b.readonlyFn===void 0){var c=function(){return a()};c[Qd]=b;b.readonlyFn=c}return b.readonlyFn},Mma=function(a){var b=Bfa(function(){c._dirtyCounter();var d=c;var e=d._lView;var f=d._queryIndex;e===void 0||f===void 0||e[2]&4?e=
void 0:(d=e[18].queries[f].queryList,e=Kma(e,f),d.reset(e,tha),e=d.first);if(a&&e===void 0)throw new Vd(-951,!1);return e});var c=b[Qd];c._dirtyCounter=nh(0);c._flatValue=void 0;return b},oh=function(a,b){var c=a[Qd];c._lView=t();c._queryIndex=b;c._queryList=c._lView[18].queries[b].queryList;Nma(c._queryList,function(){return c._dirtyCounter.update(function(d){return d+1})})},Oma=function(a){ze.currentQueryIndex+=a===void 0?1:a},Q=function(a){return ze.contextLView[26+a]},Pma=function(a,b,c,d){for(var e=
a[c+1],f=b===null,h=d?e>>17&32767:(e&131068)>>2,k=!1;h!==0&&(k===!1||f);){var q=a[h+1],v=a[h];if(v===null||b==null||(Array.isArray(v)?v[1]:v)===b||Array.isArray(v)&&typeof b==="string"&&fe(v,b)>=0)k=!0,a[h+1]=d?q|1:q|2;h=d?q>>17&32767:(q&131068)>>2}k&&(a[c+1]=d?e|2:e|1)},Qma=function(a,b){var c=ph;if(c===b)return-1;for(b=qh=b;b<c&&a.charCodeAt(b)>32;)b++;b=rh=b;return sh(a,b,c)},Vma=function(a,b){var c=ph;b=qh=sh(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=rh=b;b=Rma(a,b,c);d=b=Sma=sh(a,b,c);for(var e=b=-1,f=-1,h=d,k=h;h<c;){var q=a.charCodeAt(h++);if(q===59)break;else q===34||q===39?k=h=Tma(a,q,h,c):d===h-4&&f===85&&e===82&&b===76&&q===40?k=h=Tma(a,41,h,c):q>32&&(k=h);f=e;e=b;b=q&-33}b=Uma=k;return Rma(a,b,c)},sh=function(a,b,c){for(;b<c&&a.charCodeAt(b)<=32;)b++;return b},Rma=function(a,b,c){b=sh(a,b,c);b<c&&b++;return b},Tma=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();},th=function(a,b,c){Wma(a,b,c,!1);return th},uh=function(a,b){Wma(a,b,null,!0);return uh},Yma=function(a,b){var c;Uma=Sma=rh=qh=0;ph=b.length;for(c=Vma(b,sh(b,0,ph));c>=0;c=Vma(b,c))Xma(a,b.substring(qh,rh),b.substring(Sma,Uma))},vh=function(a){Zma($ma,ana,a,!0)},ana=function(a,b){var c;Uma=Sma=rh=qh=0;ph=b.length;for(c=Qma(b,sh(b,0,ph));c>=0;c=Qma(b,c))Yfa(a,b.substring(qh,rh),!0)},Wma=function(a,b,c,d){var e=t(),f=ze.tView,h=Ee(2);f.firstUpdatePass&&bna(f,a,h,
d);if(b!==We&&Xe(e,h,b)){var k=f.data[ze.selectedIndex],q=e[11];b!=null&&b!==""&&(typeof c==="string"?b+=c:typeof b==="object"&&(b=Td(cf(b))));cna(f,k,e,q,a,e[h+1]=b,d,h)}},Zma=function(a,b,c,d){var e=ze.tView,f=Ee(2);e.firstUpdatePass&&bna(e,null,f,d);var h=t();if(c!==We&&Xe(h,f,c)){var k=e.data[ze.selectedIndex];if((k.flags&(d?8:16))===0||f>=e.expandoStartIndex){var q=h[11],v=h[f+1];if(c==null||c==="")a=ie;else{var A=[];c=cf(c);if(Array.isArray(c))for(b=0;b<c.length;b++)a(A,c[b],!0);else if(typeof c===
"object")for(var E in c)c.hasOwnProperty(E)&&a(A,E,c[E]);else typeof c==="string"&&b(A,c);a=A}a=h[f+1]=a;v===We&&(v=ie);b=A=0;c=0<v.length?v[0]:null;for(E=0<a.length?a[0]:null;c!==null||E!==null;){var H=A<v.length?v[A+1]:void 0,L=b<a.length?a[b+1]:void 0,O=null,S=void 0;c===E?(A+=2,b+=2,H!==L&&(O=E,S=L)):E===null||c!==null&&c<E?(A+=2,O=c):(b+=2,O=E,S=L);O!==null&&cna(e,k,h,q,O,S,d,f);c=A<v.length?v[A]:null;E=b<a.length?a[b]:null}}else f=d?k.classesWithoutHost:k.stylesWithoutHost,f!==null&&(c=Hfa(f,
c?c:"")),jf(k,e,h,d?"class":"style",c)}},bna=function(a,b,c,d){var e=a.data;if(e[c+1]===null){var f=e[ze.selectedIndex];a=c>=a.expandoStartIndex;(f.flags&(d?8:16))!==0&&b===null&&!a&&(b=!1);var h=Fga(e),k=d?f.residualClasses:f.residualStyles;if(h===null)(d?f.classBindings:f.styleBindings)===0&&(b=dna(null,e,f,b,d),b=ena(b,f.attrs,d),k=null);else{var q=f.directiveStylingLast;if(q===-1||e[q]!==h)if(b=dna(h,e,f,b,d),k===null)h=d?f.classBindings:f.styleBindings,h=(h&131068)>>2!==0?e[h>>17&32767]:void 0,
h!==void 0&&Array.isArray(h)&&(h=dna(null,e,f,h[1],d),h=ena(h,f.attrs,d),e[(d?f.classBindings:f.styleBindings)>>17&32767]=h);else{k=void 0;h=f.directiveEnd;for(q=1+f.directiveStylingLast;q<h;q++)k=ena(k,e[q].hostAttrs,d);k=ena(k,f.attrs,d)}}k!==void 0&&(d?f.residualClasses=k:f.residualStyles=k);h=b;k=d?f.classBindings:f.styleBindings;b=k>>17&32767;k=(k&131068)>>2;e[c]=h;q=!1;if(Array.isArray(h)){var v=h[1];if(v===null||fe(h,v)>0)q=!0}else v=h;a?k!==0?(a=e[b+1]>>17&32767,e[c+1]=a<<17|b<<2,a!==0&&(e[a+
1]=e[a+1]&-131069|c<<2),e[b+1]=e[b+1]&131071|c<<17):(e[c+1]=b<<17|0,b!==0&&(e[b+1]=e[b+1]&-131069|c<<2),b=c):(e[c+1]=k<<17|0,b===0?b=c:e[k+1]=e[k+1]&-131069|c<<2,k=c);q&&(e[c+1]|=2);Pma(e,v,c,!0);Pma(e,v,c,!1);a=v;h=d?f.residualClasses:f.residualStyles;h!=null&&typeof a=="string"&&fe(h,a)>=0&&(e[c+1]|=1);k=b<<17|k<<2;d?f.classBindings=k:f.styleBindings=k}},dna=function(a,b,c,d,e){var f=c.directiveEnd,h=c.directiveStylingLast;for(h===-1?h=c.directiveStart:h++;h<f;){var k=b[h];d=ena(d,k.hostAttrs,e);
if(k===a)break;h++}a!==null&&(c.directiveStylingLast=h);return d},ena=function(a,b,c){var d=c?1:2,e=-1;if(b!==null)for(var f=0;f<b.length;f++){var h=b[f];typeof h==="number"?e=h:e===d&&(Array.isArray(a)||(a=a===void 0?[]:["",a]),Yfa(a,h,c?!0:b[++f]))}return a===void 0?null:a},Xma=function(a,b,c){Yfa(a,b,cf(c))},$ma=function(a,b,c){b=String(b);b===""||b.includes(" ")||Yfa(a,b,c)},cna=function(a,b,c,d,e,f,h,k){if(b.type&3){a=a.data;var q=a[k+1];((q&1)===1?fna(a,b,c,e,(q&131068)>>2,h):void 0)===void 0&&
(f!==void 0||(q&2)==2&&(f=fna(a,null,c,e,k,h)),b=se(c[ze.selectedIndex]),h?f?d.addClass(b,e):d.removeClass(b,e):(h=e.indexOf("-")===-1?void 0:2,f==null?d.removeStyle(b,e,h):(typeof f==="string"&&f.endsWith("!important")&&(f=f.slice(0,-10),h|=1),d.setStyle(b,e,f,h))))}},fna=function(a,b,c,d,e,f){for(var h=b===null,k=void 0;e>0;){var q=a[e],v=Array.isArray(q),A=v?q[1]:q,E=A===null,H=c[e+1];H===We&&(H=E?ie:void 0);A=E?Zfa(H,d):A===d?H:void 0;v&&A===void 0&&(A=Zfa(q,d));if(A!==void 0&&(k=A,h))return k;
e=a[e+1];e=h?e>>17&32767:(e&131068)>>2}b!==null&&(a=f?b.residualClasses:b.residualStyles,a!=null&&(k=Zfa(a,d)));return k},R=function(a,b){b=b===void 0?"":b;var c=t(),d=ze.tView;a+=26;var e=d.firstCreatePass?nf(d,a,1,b,null):d.data[a];kf=!0;b=c[11].createText(b);c[a]=b;kf&&Mha(d,c,b,e);Be(e,!1)},gna=function(a,b,c,d){d=d===void 0?"":d;return Xe(a,De(),c)?b+Ud(c)+d:We},hna=function(a,b,c,d,e,f){f=f===void 0?"":f;a=Ye(a,ze.bindingIndex,c,e);Ee(2);return a?b+Ud(c)+d+Ud(e)+f:We},wh=function(a){T("",a);
return wh},T=function(a,b,c){var d=t();a=gna(d,a,b,c);a!==We&&ina(d,a);return T},xh=function(a,b,c,d,e){var f=t();a=hna(f,a,b,c,d,e);a!==We&&ina(f,a);return xh},jna=function(a,b,c,d,e,f,h,k,q){var v=t();q=q===void 0?"":q;var A=ze.bindingIndex;var E=Ye(v,A,b,d);A=Ye(v,A+2,f,k)||E;Ee(4);a=A?a+Ud(b)+c+Ud(d)+e+Ud(f)+h+Ud(k)+q:We;a!==We&&ina(v,a);return jna},ina=function(a,b){a[11].setValue(se(a[ze.selectedIndex]),b)},yh=function(a,b,c){gg(b)&&typeof b.set==="function"&&(b=b());var d=t(),e=De();Xe(d,e,
b)&&(e=Fe(),Dia(e,d,a,b,d[11],c));return yh},zh=function(a,b){var c=gg(a)&&typeof a.set==="function";c&&a.set(b);return c},Ah=function(a,b){var c=t();vma(ze.tView,c,c[11],Ae(),a,b);return Ah},Ch=function(a){return Xe(t(),De(),a)?Ud(a):We},Dh=function(a,b,c){return gna(t(),a,b,c===void 0?"":c)},Eh=function(a,b,c,d,e){return hna(t(),a,b,c,d,e===void 0?"":e)},kna=function(a,b,c){var d="",e=t();d=d===void 0?"":d;var f=ze.bindingIndex,h=Ye(e,f,a,b);e=Xe(e,f+2,c)||h;Ee(3);return e?"bv2-user-hotlists-bg-"+
Ud(a)+"-"+Ud(b)+"-"+Ud(c)+d:We},lna=function(a,b,c,d,e){a=ae(a);if(Array.isArray(a))for(var f=0;f<a.length;f++)lna(a[f],b,c,d,e);else{f=ze.tView;var h=t(),k=Ae(),q=ke(a)?a:ae(a.provide),v=mga(a),A=k.providerIndexes&1048575,E=k.directiveStart,H=k.providerIndexes>>20;if(ke(a)||!a.multi)d=new Pe(v,e),v=mna(q,b,e?A:A+H,E),v===-1?(v=Zga(k,h),Vga(v,f,q),nna(f,a,b.length),b.push(q),k.directiveStart++,k.directiveEnd++,e&&(k.providerIndexes+=1048576),c.push(d),h.push(d)):(c[v]=d,h[v]=d);else{E=mna(q,b,A+H,
E);A=mna(q,b,A,A+H);var L=E>=0&&c[E];H=A>=0&&c[A];e&&!H||!e&&!L?(E=Zga(k,h),Vga(E,f,q),E=c.length,L=new Pe(e?ona:pna,e),L.multi=[],L.index=E,L.componentProviders=0,d&&!e&&L.componentProviders++,L.multi.push(v),!e&&H&&(c[A].providerFactory=L),nna(f,a,b.length,0),b.push(q),k.directiveStart++,k.directiveEnd++,e&&(k.providerIndexes+=1048576),c.push(L),h.push(L)):(b=c[e?A:E],!e&&d&&b.componentProviders++,b=b.multi.push(v)-1,nna(f,a,E>-1?E:A,b));!e&&d&&H&&c[A].componentProviders++}}},nna=function(a,b,c,
d){var e=ke(b),f=!!b.useClass;if(e||f)if(f=(f?ae(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)},mna=function(a,b,c,d){for(;c<d;c++)if(b[c]===a)return c;return-1},pna=function(){return qna(this.multi,[])},ona=function(a,b,c,d,e){var f=this.multi;if(this.providerFactory){var h=this.providerFactory.componentProviders;e=Oe(d,d[1],this.providerFactory.index,e);d=e.slice(0,h);qna(f,d);for(f=h;f<
e.length;f++)d.push(e[f])}else d=[],qna(f,d);return d},qna=function(a,b){for(var c=0;c<a.length;c++)b.push((0,a[c])());return b},Fh=function(a){var b=b===void 0?[]:b;return function(c){c.providersResolver=function(d,e){e=e?e(a):a;var f=ze.tView;f.firstCreatePass&&(d=!!d.template,lna(b,f.data,f.blueprint,d,!0),lna(e,f.data,f.blueprint,d,!1))}}},Gh=function(a,b){a=Ce()+a;var c=t();return c[a]===We?Cha(c,a,b()):c[a]},Hh=function(a,b,c){return rna(t(),Ce(),a,b,c)},Ih=function(a,b,c,d){return sna(t(),
Ce(),a,b,c,d)},una=function(a,b,c,d){return tna(t(),Ce(),2,a,b,c,d)},vna=function(a,b){a=a[b];return a===We?void 0:a},rna=function(a,b,c,d,e,f){b+=c;return Xe(a,b,e)?Cha(a,b+1,f?d.call(f,e):d(e)):vna(a,b+1)},sna=function(a,b,c,d,e,f,h){b+=c;return Ye(a,b,e,f)?Cha(a,b+2,h?d.call(h,e,f):d(e,f)):vna(a,b+2)},tna=function(a,b,c,d,e,f,h,k){b+=c;c=Ye(a,b,e,f);return Xe(a,b+2,h)||c?Cha(a,b+3,k?d.call(k,e,f,h):d(e,f,h)):vna(a,b+3)},U=function(a,b){var c=ze.tView;a+=26;if(c.firstCreatePass){a:{var d=c.pipeRegistry;
if(d)for(var e=d.length-1;e>=0;e--){var f=d[e];if(b===f.name){b=f;break a}}b=void 0}c.data[a]=b;if(b.onDestroy){var h;((h=c.destroyHooks)!=null?h:c.destroyHooks=[]).push(a,b.onDestroy)}}else b=c.data[a];h=b.factory||(b.factory=ee(b.type));b=Xd(of);try{var k=Tga(!1),q=h();Tga(k);wga(c,t(),a,q)}finally{Xd(b)}},V=function(a,b,c){a+=26;var d=t(),e=d[a];return d[1].data[a].pure?rna(d,Ce(),b,e.transform,c,e):e.transform(c)},Kh=function(a,b,c,d){a+=26;var e=t(),f=e[a];return e[1].data[a].pure?sna(e,Ce(),
b,f.transform,c,d,f):f.transform(c,d)},wna=function(a,b,c,d){a+=26;var e=t(),f=e[a];return e[1].data[a].pure?tna(e,Ce(),b,f.transform,c,0,d,f):f.transform(c,0,d)},xna=function(a,b,c){a=a.\u0275cmp;a.directiveDefs=Lja(b,Mja);a.pipeDefs=Lja(c,Ufa)},Lh=function(a,b){return zma(a,b)},Ana=function(a,b){function c(){Id(d);if(d.value===yna)throw new Vd(-950,null);return d.value}var d=Object.create(zna);d.value=a;d.transformFn=b==null?void 0:b.transform;c[Qd]=d;return c},Mh=function(a,b){return Ana(a,b)},
Nh=function(){return Mma(!1)},Bna=function(){return Mma(!1)},Cna=function(a){var b=Ae(),c=t();b.componentOffset>-1&&(a&16)!==16?(a=ue(b.index,c),a=new Oh(a,a)):a=b.type&175?new Oh(c[15],c):null;return a},Dna=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},Hna=function(a){var b=a.ngZoneFactory;var c=a.ignoreChangesOutsideZone;var d=a.scheduleInRootZone;b!=null||(b=function(){return new Ph(Object.assign({},Ena(),{scheduleInRootZone:d}))});return[{provide:Ph,
useFactory:b},{provide:je,multi:!0,useFactory:function(){var e=r(Qh,{optional:!0});return function(){return e.initialize()}}},{provide:je,multi:!0,useFactory:function(){var e=r(Rh);return function(){e.initialize()}}},c===!0?{provide:Fna,useValue:!0}:[],{provide:Gna,useValue:d!=null?d:!1},{provide:lf,useFactory:function(){var e=r(Ph),f=r(pf),h;return function(k){e.runOutsideAngular(function(){f.destroyed&&!h?setTimeout(function(){throw k;}):(h!=null||(h=f.get(Th)),h.handleError(k))})}}}]},Ena=function(a){var b,
c;return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:(b=a==null?void 0:a.eventCoalescing)!=null?b:!1,shouldCoalesceRunChangeDetection:(c=a==null?void 0:a.runCoalescing)!=null?c:!1}},Ona=function(a){var b=a.moduleRef?a.moduleRef.injector:a.r3Injector,c=b.get(Ph);return c.run(function(){a.moduleRef?a.moduleRef.resolveInjectorInitializers():a.r3Injector.resolveInjectorInitializers();var d=b.get(lf),e;c.runOutsideAngular(function(){e=c.onError.subscribe({next:d})});if(a.moduleRef){var f=
function(){return a.moduleRef.destroy()},h=a.platformInjector.get(Ina);h.add(f);a.moduleRef.onDestroy(function(){Gla(a.allPlatformModules,a.moduleRef);e.unsubscribe();h.delete(f)})}else{var k=function(){return b.destroy()},q=a.platformInjector.get(Ina);q.add(k);b.onDestroy(function(){e.unsubscribe();q.delete(k)})}return Jna(d,c,function(){var v=b.get(Uh),A=v.add(),E=b.get(Vh);Kna(E);return E.donePromise.then(function(){b.get(Lna,"en-US");if(!b.get(Mna,!0)){if(!a.moduleRef)return b.get(Wh);a.allPlatformModules.push(a.moduleRef);
return a.moduleRef}if(!a.moduleRef){var H=b.get(Wh);a.rootComponent!==void 0&&H.bootstrap(a.rootComponent);return H}(H=Nna)==null||H(a.moduleRef,a.allPlatformModules);return a.moduleRef}).finally(function(){return void v.remove(A)})})})},Pna=function(a,b){var c=a.injector.get(Wh);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 Vd(-403,!1);b.push(a)},Jna=function(a,b,c){try{var d=
c();return Oja(d)?d.catch(function(e){b.runOutsideAngular(function(){return a(e)});throw e;}):d}catch(e){throw b.runOutsideAngular(function(){return a(e)}),e;}},Vna=function(a,b,c){c=c===void 0?[]:c;var d="Platform: "+b,e=new le(d);return function(f){f=f===void 0?[]:f;var h=Qna();if(!h||h.injector.get(Rna,!1))if(f=[].concat(p(c),p(f),[{provide:e,useValue:!0}]),a)a(f);else{f=Sna(f,d);if(Tna&&!Tna.get(Rna,!1))throw new Vd(400,!1);Ela();Tna=f;f.get(Xh);Una(f)}f=Qna();if(!f)throw new Vd(401,!1);return f}},
Sna=function(a,b){a=a===void 0?[]:a;return Yh({name:b,providers:[{provide:Wna,useValue:"platform"},{provide:Ina,useValue:new Set([function(){return Tna=null}])}].concat(p(a))})},Qna=function(){var a,b;return(b=(a=Tna)==null?void 0:a.get(Xh))!=null?b:null},Una=function(a){var b=a.get(Xna,null);oe(a,function(){b==null||b.forEach(function(c){return c()})})},Zh=function(a,b){return Bfa(a,b==null?void 0:b.equal)},boa=function(a,b){var c,d=(c=b==null?void 0:b.injector)!=null?c:r(Cg);b=(b==null?void 0:b.manualCleanup)!==
!0?d.get(Gg):null;c=d.get(Sla,null,{optional:!0});var e=d.get(rf);if(c!==null){var f=Yna(c.view,e,a);b instanceof Ze&&b._lView===c.view&&(b=null)}else f=Zna(a,d.get($na),e);f.injector=d;b!==null&&(f.onDestroyFn=b.onDestroy(function(){return f.destroy()}));return new aoa(f)},Yna=function(a,b,c){var d=Object.create(coa);d.view=a;d.zone=typeof Zone!=="undefined"?Zone.current:null;d.notifier=b;d.fn=c;a[23]!=null||(a[23]=new Set);a[23].add(d);d.consumerMarkedDirty(d);return d},Zna=function(a,b,c){var d=
Object.create(doa);d.fn=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},goa=function(a){if(typeof a==="function")return a=Gfa(a,eoa),foa(a);a=Gfa(a.source,a.computation,a.equal);return foa(a)},foa=function(a){var b=a[Qd];a.set=function(c){Kd(b);Rd(b,c);b.dirty=!1;b.lastCleanEpoch=Jd};a.update=function(c){Kd(b);yfa()||Dfa();Rd(b,c(b.value));b.dirty=!1;b.lastCleanEpoch=Jd};a.asReadonly=Lma.bind(a);return a},hoa=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}},$h=function(a){return typeof a==="boolean"?a:a!=null&&a!=="false"},ai=function(a,b){b=b===void 0?NaN:b;return isNaN(parseFloat(a))||isNaN(Number(a))?b:Number(a)},joa=function(a){var b=r(Cg),c=b.get(rf),d=b.get(Dg),e=b.get(Fg,null,{optional:!0});d.impl!=null||(d.impl=b.get(Eg));var f=a;typeof f==="function"&&(f={mixedReadWrite:a});a=b.get(Sla,null,{optional:!0});b=new ioa(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)},koa=function(a,b){a=a[he]||null;var c=b.elementInjector||jga();return(new bi(a)).create(c,b.projectableNodes,b.hostElement,b.environmentInjector,b.directives,b.bindings)},loa=function(a){var b=a[he]||null;if(!b)return null;var c=new bi(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}}},moa=function(a){if(a&&!a.createEmbeddedView)throw new Vd(2020,!1);},noa=function(a,b,c){a=Zg(a);b=ci([a[1],a[2]],b);return ci(b,c)},ooa=function(a,b,c){a=Zg(a);b=ci([a[3],a[4]],b);return ci(b,c)},poa=function(a,b,c){a=Zg(a);b=ci([a[5],a[6]],b);return ci(b,c)},qoa=function(a,b){a=Zg(a)[7];return ci(a,b)},roa=function(a,b){a=Zg(a);return ci(a[10],b)},soa=function(a,b){a=Zg(a);return ci(a[11],b)},toa=function(a,b){a=Zg(a)[12];
return ci(a,b)},di=function(a,b){a=Zg(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},voa=function(a){a=Zg(a);if(!a[21])throw new Vd(2303,!1);return(a[21][2]||[]).map(function(b){return typeof b==="string"?uoa(b):[uoa(b[0]),uoa(b[1])]})},woa=function(a,b,c){a=Zg(a);if(!a[21])throw new Vd(2303,!1);b=ci([a[21][0],a[21][1]],b)||[];return ci(b,c)||[]},ci=function(a,b){for(;b>-1;b--)if(typeof a[b]!=="undefined")return a[b];throw new Vd(2304,!1);
},uoa=function(a){var b=l(a.split(":"));a=b.next().value;b=b.next().value;return{hours:+a,minutes:+b}},ei=function(){return new Vd(2100,!1)},Foa=function(a,b,c,d){var e=xoa(a);b=fi(c,b)||b;a=[];for(var f;b;)if(f=yoa.exec(b)){if(a=a.concat(f.slice(1)),b=a.pop(),!b)break}else{a.push(b);break}var h=e.getTimezoneOffset();d&&(h=zoa(d,h),e=Aoa(e,d));var k="";a.forEach(function(q){a:if(Boa[q])var v=Boa[q];else{switch(q){case "G":case "GG":case "GGG":v=gi(3,1);break;case "GGGG":v=gi(3,2);break;case "GGGGG":v=
gi(3,0);break;case "y":v=hi(0,1,0,!1,!0);break;case "yy":v=hi(0,2,0,!0,!0);break;case "yyy":v=hi(0,3,0,!1,!0);break;case "yyyy":v=hi(0,4,0,!1,!0);break;case "Y":v=Coa(1);break;case "YY":v=Coa(2,!0);break;case "YYY":v=Coa(3);break;case "YYYY":v=Coa(4);break;case "M":case "L":v=hi(1,1,1);break;case "MM":case "LL":v=hi(1,2,1);break;case "MMM":v=gi(2,1);break;case "MMMM":v=gi(2,2);break;case "MMMMM":v=gi(2,0);break;case "LLL":v=gi(2,1,1);break;case "LLLL":v=gi(2,2,1);break;case "LLLLL":v=gi(2,0,1);break;
case "w":v=Doa(1);break;case "ww":v=Doa(2);break;case "W":v=Doa(1,!0);break;case "d":v=hi(2,1);break;case "dd":v=hi(2,2);break;case "c":case "cc":v=hi(7,1);break;case "ccc":v=gi(1,1,1);break;case "cccc":v=gi(1,2,1);break;case "ccccc":v=gi(1,0,1);break;case "cccccc":v=gi(1,3,1);break;case "E":case "EE":case "EEE":v=gi(1,1);break;case "EEEE":v=gi(1,2);break;case "EEEEE":v=gi(1,0);break;case "EEEEEE":v=gi(1,3);break;case "a":case "aa":case "aaa":v=gi(0,1);break;case "aaaa":v=gi(0,2);break;case "aaaaa":v=
gi(0,0);break;case "b":case "bb":case "bbb":v=gi(0,1,1,!0);break;case "bbbb":v=gi(0,2,1,!0);break;case "bbbbb":v=gi(0,0,1,!0);break;case "B":case "BB":case "BBB":v=gi(0,1,0,!0);break;case "BBBB":v=gi(0,2,0,!0);break;case "BBBBB":v=gi(0,0,0,!0);break;case "h":v=hi(3,1,-12);break;case "hh":v=hi(3,2,-12);break;case "H":v=hi(3,1);break;case "HH":v=hi(3,2);break;case "m":v=hi(4,1);break;case "mm":v=hi(4,2);break;case "s":v=hi(5,1);break;case "ss":v=hi(5,2);break;case "S":v=hi(6,1);break;case "SS":v=hi(6,
2);break;case "SSS":v=hi(6,3);break;case "Z":case "ZZ":case "ZZZ":v=Eoa(0);break;case "ZZZZZ":v=Eoa(3);break;case "O":case "OO":case "OOO":case "z":case "zz":case "zzz":v=Eoa(1);break;case "OOOO":case "ZZZZ":case "zzzz":v=Eoa(2);break;default:v=null;break a}Boa[q]=v}k+=v?v(e,c,h):q==="''"?"'":q.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return k},Goa=function(a,b,c){var d=new Date(0);d.setFullYear(a,b,c);d.setHours(0,0,0);return d},fi=function(a,b){var c=Zg(a)[0];Hoa[c]!=null||(Hoa[c]={});if(Hoa[c][b])return Hoa[c][b];
var d="";switch(b){case "shortDate":d=roa(a,0);break;case "mediumDate":d=roa(a,1);break;case "longDate":d=roa(a,2);break;case "fullDate":d=roa(a,3);break;case "shortTime":d=soa(a,0);break;case "mediumTime":d=soa(a,1);break;case "longTime":d=soa(a,2);break;case "fullTime":d=soa(a,3);break;case "short":d=fi(a,"shortTime");var e=fi(a,"shortDate");d=Ioa(toa(a,0),[d,e]);break;case "medium":d=fi(a,"mediumTime");e=fi(a,"mediumDate");d=Ioa(toa(a,1),[d,e]);break;case "long":d=fi(a,"longTime");e=fi(a,"longDate");
d=Ioa(toa(a,2),[d,e]);break;case "full":d=fi(a,"fullTime"),e=fi(a,"fullDate"),d=Ioa(toa(a,3),[d,e])}d&&(Hoa[c][b]=d);return d},Ioa=function(a,b){b&&(a=a.replace(/\{([^}]+)}/g,function(c,d){return b!=null&&d in b?b[d]:c}));return a},ii=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},hi=function(a,b,c,d,e){c=c===void 0?0:c;d=d===void 0?!1:d;e=e===void 0?!1:e;return function(f,h){f=Joa(a,f);if(c>
0||f>-c)f+=c;if(a===3)f===0&&c===-12&&(f=12);else if(a===6)return ii(f,3).substring(0,b);h=di(h,5);return ii(f,b,h,d,e)}},Joa=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 Vd(2301,!1);}},gi=function(a,b,c,d){c=c===void 0?0:c;d=d===void 0?!1:d;return function(e,f){return Koa(e,f,
a,b,c,d)}},Koa=function(a,b,c,d,e,f){switch(c){case 2:return poa(b,e,d)[a.getMonth()];case 1:return ooa(b,e,d)[a.getDay()];case 0:var h=a.getHours(),k=a.getMinutes();return f&&(c=voa(b),a=woa(b,e,d),c=c.findIndex(function(q){if(Array.isArray(q)){var v=l(q);q=v.next().value;v=v.next().value;var A=h>=q.hours&&k>=q.minutes,E=h<v.hours||h===v.hours&&k<v.minutes;if(q.hours<v.hours){if(A&&E)return!0}else if(A||E)return!0}else if(q.hours===h&&q.minutes===k)return!0;return!1}),c!==-1)?a[c]:noa(b,e,d)[h<12?
0:1];case 3:return qoa(b,d)[a.getFullYear()<=0?0:1];default:throw new Vd(2302,!1);}},Eoa=function(a){return function(b,c,d){b=-1*d;c=di(c,5);var e=b>0?Math.floor(b/60):Math.ceil(b/60);switch(a){case 0:return(b>=0?"+":"")+ii(e,2,c)+ii(Math.abs(b%60),2,c);case 1:return"GMT"+(b>=0?"+":"")+ii(e,1,c);case 2:return"GMT"+(b>=0?"+":"")+ii(e,2,c)+":"+ii(Math.abs(b%60),2,c);case 3:return d===0?"Z":(b>=0?"+":"")+ii(e,2,c)+":"+ii(Math.abs(b%60),2,c);default:throw new Vd(2302,!1);}}},Loa=function(a){var b=a.getDay();
b=b===0?-3:4-b;return Goa(a.getFullYear(),a.getMonth(),a.getDate()+b)},Doa=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=Loa(c);e=c.getFullYear();var f=Goa(e,0,1).getDay();e=Goa(e,0,1+(f<=4?4:11)-f);c=1+Math.round((c.getTime()-e.getTime())/6048E5)}return ii(c,a,di(d,5))}},Coa=function(a,b){b=b===void 0?!1:b;return function(c,d){c=Loa(c).getFullYear();return ii(c,a,di(d,5),b)}},zoa=function(a,
b){a=a.replace(/:/g,"");a=Date.parse("Jan 01, 1970 00:00:00 "+a)/6E4;return isNaN(a)?b:a},Aoa=function(a,b){var c=a.getTimezoneOffset();b=zoa(b,c);a=new Date(a.getTime());a.setMinutes(a.getMinutes()+-1*(b-c));return a},xoa=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 Goa(a,c-1,b===void 0?1:b)}b=parseFloat(a);if(!isNaN(a-b))return new Date(b);if(b=a.match(Moa))return Noa(b)}a=new Date(a);if(!(a instanceof Date)||isNaN(a.valueOf()))throw new Vd(2302,!1);return a},Noa=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},Ooa=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},Uoa=function(a,b,c,d){var e=e===void 0?!1:e;var f="",h=!1;if(isFinite(a)){h=Poa(a);e&&(h=Qoa(h));f=b.minInt;e=b.minFrac;var k=b.maxFrac;
if(d){var q=d.match(Roa);if(q===null)throw new Vd(2306,!1);d=q[1];var v=q[3];q=q[5];d!=null&&(f=Soa(d));v!=null&&(e=Soa(v));q!=null?k=Soa(q):v!=null&&e>k&&(k=e)}Toa(h,e,k);e=h.digits;v=h.integerLen;k=h.exponent;d=[];for(h=e.every(function(A){return!A});v<f;v++)e.unshift(0);for(;v<0;v++)e.unshift(0);v>0?d=e.splice(v,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(di(c,1));d.length&&(f+=di(c,0)+d.join(""));k&&(f+=di(c,6)+"+"+k)}else f=di(c,9);return f=a<0&&!h?b.negPre+f+b.negSuf:b.posPre+f+b.posSuf},Qoa=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},Poa=function(a){a=Math.abs(a)+"";var b=0,c,d,e,f;(c=a.indexOf("."))>-1&&(a=a.replace(".",""));(d=a.search(/e/i))>0?(c<0&&(c=d),c+=+a.slice(d+1),a=a.substring(0,d)):c<0&&(c=a.length);
for(d=0;a.charAt(d)==="0";d++);if(d===(f=a.length)){var h=[0];c=1}else{for(f--;a.charAt(f)==="0";)f--;c-=d;h=[];for(e=0;d<=f;d++,e++)h[e]=Number(a.charAt(d))}c>22&&(h=h.splice(0,21),b=c-1,c=1);return{digits:h,exponent:b,integerLen:c}},Toa=function(a,b,c){if(b>c)throw new Vd(2307,!1);var d=a.digits,e=d.length-a.integerLen;c=Math.min(Math.max(b,e),c);var f=c+a.integerLen,h=d[f];if(f>0){d.splice(Math.max(a.integerLen,f));for(var k=f;k<d.length;k++)d[k]=0}else for(e=Math.max(0,e),a.integerLen=1,d.length=
Math.max(1,f=c+1),d[0]=0,k=1;k<f;k++)d[k]=0;if(h>=5)if(f-1<0){for(h=0;h>f;h--)d.unshift(0),a.integerLen++;d.unshift(1);a.integerLen++}else d[f-1]++;for(;e<Math.max(0,c);e++)d.push(0);var q=c!==0,v=b+a.integerLen;if(b=d.reduceRight(function(A,E,H,L){E+=A;L[H]=E<10?E:E-10;q&&(L[H]===0&&H>=v?L.pop():q=!1);return E>=10?1:0},0))d.unshift(b),a.integerLen++},Soa=function(a){a=parseInt(a);if(isNaN(a))throw new Vd(2305,!1);return a},Voa=function(a,b){return a?b?a.endsWith("/")?b.startsWith("/")?a+b.slice(1):
a+b:b.startsWith("/")?a+b:a+"/"+b:a:b},Woa=function(a){var b=a.search(/#|\?|$/);return a[b-1]==="/"?a.slice(0,b-1)+a.slice(b):a},ji=function(a){return a&&a[0]!=="?"?"?"+a:a},Xoa=function(a){return RegExp("^(https?:)?//").test(a)?(a=l(a.split(/\/\/[^\/]+/)),a.next(),a.next().value):a},Yoa=function(a){return a.buttons===0||a.detail===0},Zoa=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)},ki=function(a){var b=ge.apply(1,arguments);return b.length?b.some(function(c){return a[c]}):a.altKey||a.shiftKey||a.ctrlKey||a.metaKey},bpa=function(){if($oa)return $oa;if(typeof document!=="object"||!document)return $oa=new Set(apa);var a=document.createElement("input");return $oa=new Set(apa.filter(function(b){a.setAttribute("type",b);return a.type===b}))},dpa=function(){if(cpa==null&&typeof window!=="undefined")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return cpa=
!0}}))}finally{cpa=cpa||!1}return cpa},li=function(a){return dpa()?a:!!a.capture},fpa=function(){if(epa==null){if(typeof document!=="object"||!document||typeof Element!=="function"||!Element)return epa=!1;if("scrollBehavior"in document.documentElement.style)epa=!0;else{var a=Element.prototype.scrollTo;epa=a?!/\{\s*\[native code\]\s*\}/.test(a.toString()):!1}}return epa},hpa=function(){if(typeof document!=="object"||!document)return 0;if(gpa==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);gpa=0;a.scrollLeft===0&&(a.scrollLeft=1,gpa=a.scrollLeft===0?1:2);a.remove()}return gpa},jpa=function(a){if(ipa==null){var b=typeof document!=="undefined"?document.head:null;ipa=!(!b||!b.createShadowRoot&&!b.attachShadow)}return ipa&&(a=a.getRootNode?a.getRootNode():null,typeof ShadowRoot!==
"undefined"&&ShadowRoot&&a instanceof ShadowRoot)?a:null},mi=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},ni=function(a){return a.composedPath?a.composedPath()[0]:a.target},kpa=function(){return typeof __karma__!=="undefined"&&!!__karma__||typeof jasmine!=="undefined"&&!!jasmine||typeof jest!=="undefined"&&!!jest||typeof Mocha!=="undefined"&&!!Mocha},oi=function(a){return Array.isArray(a)?
a:[a]},pi=function(a){return a!=null&&""+a!=="false"},qi=function(a){return a==null?"":typeof a==="string"?a:a+"px"},ri=function(a){return a instanceof Te?a.nativeElement:a},si=function(a,b){return isNaN(parseFloat(a))||isNaN(Number(a))?arguments.length===2?b===void 0?0:b:0:Number(a)},lpa=function(a){if(!a.hasAttribute("tabindex")||a.tabIndex===void 0)return!1;a=a.getAttribute("tabindex");return!(!a||isNaN(parseInt(a,10)))},mpa=function(a){if(!lpa(a))return null;a=parseInt(a.getAttribute("tabindex")||
"",10);return isNaN(a)?-1:a},npa=function(a){return{matches:a==="all"||a==="",media:a,addListener:function(){},removeListener:function(){}}},opa=function(a){return a.map(function(b){return b.split(",")}).reduce(function(b,c){return b.concat(c)}).map(function(b){return b.trim()})},ppa=function(){return null},qpa=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},spa=function(a,b,c){var d=rpa(a,b);c=c.trim();d.some(function(e){return e.trim()===c})||(d.push(c),a.setAttribute(b,d.join(" ")))},ti=function(a,b,c){var d=rpa(a,b);c=c.trim();d=d.filter(function(e){return e!==c});d.length?a.setAttribute(b,d.join(" ")):a.removeAttribute(b)},rpa=function(a,b){var c,d;return(d=(c=a.getAttribute(b))==null?void 0:c.match(/\S+/g))!=null?d:[]},tpa=function(a,b){return typeof a===
"string"?(b||"")+"/"+a:a},vpa=function(a,b){a.id||(a.id="cdk-describedby-message-"+b+"-"+upa++)},wpa=function(a){return Ska(a)?a:Nf(a)},xpa=function(){return r(ui)},ypa=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},zpa=function(a){return a&&typeof a.connect==="function"&&!(a instanceof rg)},Bpa=function(a){return new Apa(a.get(vi),a.get(ui))},Cpa=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})},Dpa=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})},xi=function(a,b){return new Epa(a.get(wi),a.get(vi),a.get(Ph),b)},Bi=function(a,b){return new yi(b,a.get(vi),a.get(ui),a.get(zi),a.get(Ai))},Ci=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},Gpa=function(a){if(typeof a!=="number"&&a!=null){var b=l(a.split(Fpa));a=b.next().value;
return(b=b.next().value)&&b!=="px"?null:parseFloat(a)}return a||null},Hpa=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)}},Pi=function(a,b){a.get(Di).load(Ei);var c=a.get(Ai),d=a.get(ui),e=a.get(Fi),f=a.get(Wh),h=a.get(Gi),k=d.createElement("div"),q=d.createElement("div");q.id=e.getId("cdk-overlay-");q.classList.add("cdk-overlay-pane");k.appendChild(q);Ipa(c).appendChild(k);
c=new Hi(q,f,a);e=new Ii(b);f=a.get(Ji,null,{optional:!0})||a.get(qf).createRenderer(null,null);e.direction=e.direction||h.value;var v;return new Ki(c,k,q,e,a.get(Ph),a.get(Li),d,a.get(Mi),a.get(Ni),(v=b==null?void 0:b.disableAnimations)!=null?v:a.get(Oi,null,{optional:!0})==="NoopAnimations",a.get(pf),f)},Lpa=function(){var a;if(((a=r(Jpa,{optional:!0}))==null?0:a.animationsDisabled)||r(Oi,{optional:!0})==="NoopAnimations")return"di-disabled";Kpa!=null||(Kpa=r(Qi).matchMedia("(prefers-reduced-motion)").matches);
return Kpa?"reduced-motion":"enabled"},Ri=function(){return Lpa()!=="enabled"},Mpa=function(){return r(Lna)},Npa=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)},Opa=function(a){a&1&&M(0,"mat-pseudo-checkbox",1);a&2&&(a=P(),I("disabled",a.disabled)("state",a.selected?"checked":"unchecked"))},Ppa=function(a){a&1&&M(0,"mat-pseudo-checkbox",3);a&2&&(a=P(),I("disabled",a.disabled))},Qpa=function(a){a&1&&(J(0,
"span",4),R(1),K());a&2&&(a=P(),x(),T("(",a.group.label,")"))},Rpa=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},Spa=function(a,b,c,d){return a<c?a:a+b>c+d?Math.max(0,a-d+b):c},Tpa=function(a,b){return this._trackRow(b)},Upa=function(a){a&1&&(J(0,"tr",0)(1,"td",3),R(2),K()());a&2&&(a=P(),x(),th("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),Lg("colspan",a.numCols),x(),T(" ",a.label," "))},Vpa=
function(a){a&1&&(J(0,"td",3),R(1),K());a&2&&(a=P(2),th("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),Lg("colspan",a._firstRowOffset),x(),T(" ",a._firstRowOffset>=a.labelMinRequiredCells?a.label:""," "))},Wpa=function(a,b){if(a&1){var c=t();J(0,"td",6)(1,"button",7);N("click",function(f){var h=u(c).$implicit,k=P(2);return w(k._cellClicked(h,f))})("focus",function(f){var h=u(c).$implicit,k=P(2);return w(k._emitActiveDateChange(h,f))});J(2,"span",8);R(3);K();M(4,"span",9);K()()}if(a&
2){a=b.$implicit;b=b.$index;var d=P().$index,e=P();th("width",e._cellWidth)("padding-top",e._cellPadding)("padding-bottom",e._cellPadding);Lg("data-mat-row",d)("data-mat-col",b);x();uh("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);Lg("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));x();uh("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);x();T(" ",a.displayValue," ")}},Ypa=function(a,b){a&1&&(J(0,"tr",1),F(1,Vpa,2,6,"td",4),Pg(2,Wpa,5,48,"td",5,Xpa),K());if(a&2){a=b.$implicit;b=b.$index;var c=P();x();G(b===0&&c._firstRowOffset?1:-1);x();Qg(a)}},Zpa=function(a){return(a==null?void 0:a.nodeName)==="TD"},$pa=function(a){if(Zpa(a))var b=a;else if(Zpa(a.parentNode))b=a.parentNode;else{var c;Zpa((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},aqa=function(a,b,c){return c!==null&&b!==c&&a<c&&a===b},bqa=function(a,b,c){return b!==null&&b!==c&&a>=b&&a===c},cqa=function(a,b,c,d){return d&&b!==null&&c!==null&&b!==c&&a>=b&&a<=c},dqa=function(a){a=a.changedTouches[0];return document.elementFromPoint(a.clientX,a.clientY)},eqa=function(a){return a==null?void 0:ai(a)},fqa=function(){return{color:"accent"}},gqa=function(a,b){a&1&&(J(0,"th",2)(1,"span",6),R(2),K(),J(3,"span",3),R(4),K()());a&2&&(a=b.$implicit,x(2),wh(a.long),x(2),wh(a.narrow))},
iqa=function(a,b,c,d,e){b=a.getYear(b);c=a.getYear(c);a=hqa(a,d,e);return Math.floor((b-a)/24)===Math.floor((c-a)/24)},jqa=function(a,b,c,d){return((a.getYear(b)-hqa(a,c,d))%24+24)%24},hqa=function(a,b,c){var d=0;c?d=a.getYear(c)-24+1:b&&(d=a.getYear(b));return d},kqa=function(){},lqa=function(a){if(a&1){var b=t();J(0,"mat-month-view",4);Ah("activeDateChange",function(c){u(b);var d=P();zh(d.activeDate,c)||(d.activeDate=c);return w(c)});N("_userSelection",function(c){u(b);var d=P();return w(d._dateSelected(c))})("dragStarted",
function(c){u(b);var d=P();return w(d._dragStarted(c))})("dragEnded",function(c){u(b);var d=P();return w(d._dragEnded(c))});K()}a&2&&(a=P(),yh("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))},mqa=function(a){if(a&
1){var b=t();J(0,"mat-year-view",5);Ah("activeDateChange",function(c){u(b);var d=P();zh(d.activeDate,c)||(d.activeDate=c);return w(c)});N("monthSelected",function(c){u(b);var d=P();return w(d._monthSelectedInYearView(c))})("selectedChange",function(c){u(b);var d=P();return w(d._goToDateInView(c,"month"))});K()}a&2&&(a=P(),yh("activeDate",a.activeDate),I("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass))},nqa=function(a){if(a&1){var b=
t();J(0,"mat-multi-year-view",6);Ah("activeDateChange",function(c){u(b);var d=P();zh(d.activeDate,c)||(d.activeDate=c);return w(c)});N("yearSelected",function(c){u(b);var d=P();return w(d._yearSelectedInMultiYearView(c))})("selectedChange",function(c){u(b);var d=P();return w(d._goToDateInView(c,"year"))});K()}a&2&&(a=P(),yh("activeDate",a.activeDate),I("selected",a.selected)("dateFilter",a.dateFilter)("maxDate",a.maxDate)("minDate",a.minDate)("dateClass",a.dateClass))},pqa=function(a){return a==null||
oqa(a)===0},oqa=function(a){if(a!=null){if(Array.isArray(a)||typeof a==="string")return a.length;if(a instanceof Set)return a.size}return null},qqa=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}},rqa=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}},sqa=function(a){return pqa(a.value)?{required:!0}:
null},tqa=function(a){return function(b){var c,d,e=(d=(c=b.value)==null?void 0:c.length)!=null?d:oqa(b.value);return e!==null&&e>a?{maxlength:{requiredLength:a,actualLength:e}}:null}},vqa=function(a){if(!a)return uqa;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(pqa(d.value))return null;d=d.value;return c.test(d)?null:{pattern:{requiredPattern:b,actualValue:d}}}},uqa=function(){return null},
wqa=function(a){return a!=null},xqa=function(a){return Oja(a)?Ef(a):a},yqa=function(a){var b={};a.forEach(function(c){b=c!=null?Object.assign({},b,c):b});return Object.keys(b).length===0?null:b},zqa=function(a,b){return b.map(function(c){return c(a)})},Aqa=function(a){return a.map(function(b){return b.validate?function(c){return b.validate(c)}:b})},Bqa=function(a){if(!a)return null;var b=a.filter(wqa);return b.length==0?null:function(c){return yqa(zqa(c,b))}},Cqa=function(a){return a!=null?Bqa(Aqa(a)):
null},Dqa=function(a){if(!a)return null;var b=a.filter(wqa);return b.length==0?null:function(c){c=zqa(c,b).map(xqa);return Zf(c).pipe(C(yqa))}},Eqa=function(a){return a!=null?Dqa(Aqa(a)):null},Fqa=function(a,b){return a===null?[b]:Array.isArray(a)?[].concat(p(a),[b]):[a,b]},Gqa=function(a,b){return Array.isArray(a)?a.includes(b):a===b},Hqa=function(a){var b=[Si],c=a?Array.isArray(a)?a:[a]:[];(b?Array.isArray(b)?b:[b]:[]).forEach(function(d){Gqa(c,d)||c.push(d)});return c},Iqa=function(a,b){return[].concat(p(b.path),
[a])},Oqa=function(a,b,c){c=c===void 0?"whenDisabledForLegacyCode":c;Jqa(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)}Kqa(a,b);Lqa(a,b);Mqa(a,b);Nqa(a,b)},Qqa=function(a,b){var c=function(){};b.valueAccessor&&(b.valueAccessor.registerOnChange(c),b.valueAccessor.registerOnTouched(c));Pqa(a,b);a&&(b._invokeOnDestroyCallbacks(),a._registerOnCollectionChange(function(){}))},Rqa=function(a,b){a.forEach(function(c){c.registerOnValidatorChange&&
c.registerOnValidatorChange(b)})},Nqa=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)})}},Jqa=function(a,b){var c=a._rawValidators;b.validator!==null?Sqa(a,Fqa(c,b.validator)):typeof c==="function"&&Sqa(a,[c]);c=a._rawAsyncValidators;b.asyncValidator!==null?Tqa(a,Fqa(c,b.asyncValidator)):typeof c==="function"&&Tqa(a,[c]);c=function(){return Ti(a)};
Rqa(b._rawValidators,c);Rqa(b._rawAsyncValidators,c)},Pqa=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(){};Rqa(b._rawValidators,
a);Rqa(b._rawAsyncValidators,a);return c},Kqa=function(a,b){b.valueAccessor.registerOnChange(function(c){a._pendingValue=c;a._pendingChange=!0;a._pendingDirty=!0;a.updateOn==="change"&&Uqa(a,b)})},Mqa=function(a,b){b.valueAccessor.registerOnTouched(function(){a._pendingTouched=!0;a.updateOn==="blur"&&a._pendingChange&&Uqa(a,b);a.updateOn!=="submit"&&Vqa(a)})},Uqa=function(a,b){a._pendingDirty&&Wqa(a);a.setValue(a._pendingValue,{emitModelToViewChange:!1});b.viewToModelUpdate(a._pendingValue);a._pendingChange=
!1},Lqa=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)})},Xqa=function(a,b){if(!a.hasOwnProperty("model"))return!1;a=a.model;return a.firstChange?!0:!Object.is(b,a.currentValue)},Yqa=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)})},Zqa=function(a){if(!a)return null;
var b=void 0,c=void 0,d=void 0;a.forEach(function(e){e.constructor===Ui?b=e:Object.getPrototypeOf(e.constructor)===Vi?c=e:d=e});return d?d:c?c:b?b:null},Wi=function(a){return a!=null&&!Array.isArray(a)&&typeof a==="object"},$qa=function(a,b,c){a=a.controls;if(!(b?Object.keys(a):a).length)throw new Vd(1E3,"");if(!a[c])throw new Vd(1001,"");},ara=function(a,b){a._forEachChild(function(c,d){if(b[d]===void 0)throw new Vd(1002,"");})},bra=function(a){return typeof a==="object"&&a!==null&&Object.keys(a).length===
2&&"value"in a&&"disabled"in a},cra=function(a){return!!a&&(a.asyncValidators!==void 0||a.validators!==void 0||a.updateOn!==void 0)},dra=function(a){a&1&&M(0,"span",20)},era=function(a){a&1&&(J(0,"label",19),dh(1,1),F(2,dra,1,0,"span",20),K());a&2&&(a=P(2),I("floating",a._shouldLabelFloat())("monitorResize",a._hasOutline())("id",a._labelId),Lg("for",a._control.disableAutomaticLabeling?null:a._control.id),x(2),G(!a.hideRequiredMarker&&a._control.required?2:-1))},fra=function(a){a&1&&F(0,era,3,5,"label",
19);a&2&&(a=P(),G(a._hasFloatingLabel()?0:-1))},gra=function(a){a&1&&M(0,"div",7)},hra=function(){},ira=function(a){a&1&&D(0,hra,0,0,"ng-template",13);a&2&&(P(2),a=Q(1),I("ngTemplateOutlet",a))},jra=function(a){a&1&&(J(0,"div",9),F(1,ira,1,1,null,13),K());a&2&&(a=P(),I("matFormFieldNotchedOutlineOpen",a._shouldLabelFloat()),x(),G(a._forceDisplayInfixLabel()?-1:1))},kra=function(a){a&1&&(J(0,"div",10,2),dh(2,2),K())},lra=function(a){a&1&&(J(0,"div",11,3),dh(2,3),K())},mra=function(){},nra=function(a){a&
1&&D(0,mra,0,0,"ng-template",13);a&2&&(P(),a=Q(1),I("ngTemplateOutlet",a))},ora=function(a){a&1&&(J(0,"div",14,4),dh(2,4),K())},pra=function(a){a&1&&(J(0,"div",15,5),dh(2,5),K())},qra=function(a){a&1&&M(0,"div",16)},rra=function(a){a&1&&dh(0,6)},sra=function(a){a&1&&(J(0,"mat-hint",21),R(1),K());a&2&&(a=P(2),I("id",a._hintLabelId),x(),wh(a.hintLabel))},tra=function(a){a&1&&(F(0,sra,2,2,"mat-hint",21),dh(1,7),M(2,"div",22),dh(3,8));a&2&&(a=P(),G(a.hintLabel?0:-1))},ura=function(){},vra=function(a){a&
1&&(Ge(),J(0,"svg",2),M(1,"path",3),K())},Xi=function(a,b){if(gd(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 fd(a)},Zi=function(a){return Yi(a)},Yi=function(a){var b=Xi("");
return fd(a.map(function(c){return hd(Xi(c))}).join(hd(b).toString()))},yra=function(a){if(!wra.test(a))throw Error("aa");if(xra.indexOf(a.toUpperCase())!==-1)throw Error("aa");},$i=function(a,b,c){yra(a);var d="<"+a;b&&(d+=zra(b));Array.isArray(c)||(c=c===void 0?[]:[c]);Ara.indexOf(a.toUpperCase())!==-1?d+=">":(b=Zi(c.map(function(e){return gd(e)?e:Xi(String(e))})),d+=">"+b.toString()+"</"+a+">");return fd(d)},zra=function(a){for(var b="",c=Object.keys(a),d=0;d<c.length;d++){var e=c[d],f=a[e];if(!wra.test(e))throw Error("aa");
if(f!==void 0&&f!==null){if(/^on./i.test(e))throw Error("aa");Bra.indexOf(e.toLowerCase())!==-1&&(f=$c(f)?f.toString():Vda(String(f))||"about:invalid#zClosurez");f=e+'="'+Xi(String(f))+'"';b+=" "+f}}return b},aj=function(a){var b=ge.apply(1,arguments);if(b.length===0)return Xc(a[0]);for(var c=a[0],d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return Xc(c)},Cra=function(a,b,c,d){function e(h,k){h!=null&&(Array.isArray(h)?h.forEach(function(q){return e(q,k)}):(b+=f+encodeURIComponent(k)+"="+
encodeURIComponent(h),f="&"))}var f=b.length?"&":"?";d.constructor===Object&&(d=Object.entries(d));Array.isArray(d)?d.forEach(function(h){return e(h[1],h[0])}):d.forEach(e);return Xc(a+b+c)},Era=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(Dra.keys());for(var e=d.next();!e.done;e=d.next())if(e=e.value,
c.startsWith(e))return{account:c.replace(e,""),accountType:Dra.get(e)}}var f,h;return{account:(h=(f=a.get("account"))!=null?f:a.get("gaia"))!=null?h:"",accountType:"gaia"}},bj=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},cj=function(a,b){var c={},d;for(d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c},Fra=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c},Gra=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1},Hra=function(a){var b=[],c=0,d;
for(d in a)b[c++]=a[d];return b},Ira=function(a,b){return a!==null&&b in a},Jra=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c},Kra=function(a,b){return(b=Jra(a,b))&&a[b]},Lra=function(a){for(var b in a)return!1;return!0},Mra=function(a){for(var b in a)delete a[b]},dj=function(a,b){b in a&&delete a[b]},Nra=function(a,b,c){if(a!==null&&b in a)throw Error("Ya`"+b);a[b]=c},Ora=function(a,b){return a!==null&&b in a?a[b]:void 0},ej=function(a){var b={},c;for(c in a)b[c]=a[c];return b},
Qra=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<Pra.length;f++)c=Pra[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}},fj=function(a){return{fieldType:3,fieldName:a}},Ura=function(){for(var a;a=Rra.remove();){try{a.fn.call(a.scope)}catch(b){fa(b)}Sra.put(a)}Tra=!1},Vra=function(a){var b=a,c;return function(){if(b){var d=b;b=void 0;c=d.apply(this,arguments)}return c}},Wra=function(a,b){return a.size!==b.size?!1:[].concat(p(a)).every(function(c){return b.has(c)})},
Xra=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},Yra=function(a,b){if(!Wra(a,b)){var c=[].concat(p(b)).filter(function(e){return!a.has(e)}),d=[].concat(p(a)).filter(function(e){return!b.has(e)});return{added:c,removed:d}}},Zra=function(a,b){var c=a.size>b.size?a:b;return new Set([].concat(p(a===c?b:a)).filter(function(d){return c.has(d)}))},$ra=function(a,b){return a.size>=b.size&&[].concat(p(b)).every(function(c){return a.has(c)})},
gj=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(!gj(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?Wra(a,b):!1;if(gd(a)||gd(b))return gd(a)&&gd(b)?a===
b||a.toString()===b.toString():!1;if(a instanceof n||b instanceof n)return a instanceof n&&b instanceof n?a===b||a==null&&b==null||!(!a||!b)&&a instanceof b.constructor&&$ba(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(!asa.call(b,f)||!gj(a[f],b[f]))return!1}return!0}return!1},bsa=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(gj(c,f.value)){d=!0;break}d||b.push(c)}return b},csa=function(a,b){for(var c=a.length-1;c>=0;c--)gj(a[c],b)&&a.splice(c,1)},dsa=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},fsa=function(a){return Object.assign.apply(Object,
[{}].concat(p(esa.map(function(b){var c={};return c[b]=a[b],c}))))},hj=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(hj(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(hj(c),hj(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(hj(c.value));a=b}else if(!gd(a))if(a instanceof n)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]=hj(e)}Object.setPrototypeOf(b,Object.getPrototypeOf(a));a=b}return a},gsa=function(a){return typeof a==="number"},hsa=function(a){return typeof a==="string"},ij=function(a){return Array.isArray(a)&&a.every(hsa)},isa=function(a){return Array.isArray(a)&&a.every(gsa)},jsa=
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},ksa=function(a){return a.toLowerCase().replace(/_([a-z])/g,function(b,c){return c.toUpperCase()})},lsa=function(a){if(a){if(gsa(a)){var b=new Date(a);b.getFullYear()>47E3&&(b=new Date(a/1E3));return new jj(b)}b=a.split("/");if(b.length===3)return a=kj(b[2]),a<50?a+=2E3:a<100&&(a+=1900),new jj(a,kj(b[0])-1,kj(b[1]));if(b.length===1)return lsa(Number(a))}return new jj},
msa=function(a){return a.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"")},nsa=function(a){return!(!a||!a.startsWith("text/")&&!a.startsWith("image/")&&a!=="application/pdf")},osa=function(a,b){return a.map(function(c){return c[b]})},psa=function(a,b){return a.filter(function(c){return!b.has(c)})},qsa=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},lj=function(a,b){return psa(a,new Set(b))},
rsa=function(a,b){var c=/[,;]/;(b===void 0||b)&&(c=/[\s,;]/);return a.split(c).map(oa).filter(function(d){return!!d})},ssa=function(a,b){a=new URL(a);return a.host+a.pathname+b},tsa=function(a){return a.user!==void 0},usa=function(a){switch(a){case "public_non_google":return"Public (non-google.com)";case "googlers_unrestricted":return"Full-time Googlers";default:return mj(a.replace(/_/g," ").toLowerCase())}},nj=function(a,b){return function(c){if(a.has(c))return a.get(c);var d=b(c);a.set(c,d);return d}},
vsa=function(a,b){return new Map(a.map(function(c){return[c,b(c)]}))},oj=function(a,b){var c;return new Map((c=a==null?void 0:a.map(function(d){return[b(d),d]}))!=null?c:[])},wsa=function(a,b){var c=new Map;a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=b(d),f=void 0,h=(f=c.get(e))!=null?f:[];h.push(d);c.set(e,h)}return c},xsa=function(a,b){return vsa([].concat(p(a.keys())),function(c){return b(a.get(c),c)})},ysa=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},zsa=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},pj=function(){return new Asa},Bsa=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)}},Csa=function(a){function b(){var e,f,h,k;return z(function(q){if(q.nextAddress==
1){if(d||c.length===0)return q.return();d=!0;e=[].concat(p(c));c=[];f=l(e);h=f.next()}if(q.nextAddress!=3){if(h.done)return d=!1,B(q,b(),0);k=h.value;return B(q,a.apply(null,p(k.args)).then(k.returnValue.resolve).catch(k.returnValue.reject),3)}h=f.next();return q.jumpTo(2)})}var c=[],d=!1;return function(){var e=ge.apply(0,arguments),f=new Asa;c.push({args:e,returnValue:f});b();return f.promise}},qj=function(a){var b=!1;return function(){var c=ge.apply(0,arguments);if(!b)return b=!0,a.apply(null,
p(c))}},Dsa=function(a){var b=new Map;return function(){var c=ge.apply(0,arguments),d=c.map(String).join("-");if(b.has(d))return b.get(d);c=a.apply(null,p(c));b.set(d,c);return c}},Esa=function(a){return a},sj=function(a){return rj(a,Esa)},rj=function(a,b){var c={};return a.filter(function(d){d=String(b(d));return c[d]?!1:c[d]=!0})},Fsa=function(a){return function(b){return rj(b,a)}},Gsa=function(a,b){return a.map(function(c,d){return[c,b[d]]})},Hsa=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},Isa=function(a,b){return a===b?!0:a.length!==b.length?!1:a.every(function(c,d){return c===b[d]})},Jsa=function(a,b){a=[].concat(p(a)).sort();b=[].concat(p(b)).sort();return Isa(a,b)},Ksa=function(a,b){if(a.length===0)return b;b=b.slice();b=Hsa(a,b);return[].concat(p(a),p(b))},Lsa=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)})}},
Msa=function(a,b){a=wsa(a,b);return[].concat(p(a.values()))},Nsa=function(a){for(var b=[],c=0;c<a.length;c+=100)b.push(a.slice(c,c+100));return b},Osa=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]})},Psa=function(a){var b=a.filter(function(k){var q;return(q=k.experimentalFields)==null?void 0:q.clusterIds.length});a=new Map;b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;for(var d=l(c.experimentalFields.clusterIds),
e=d.next();!e.done;e=d.next()){e=e.value;var f=void 0,h=(f=a.get(e))!=null?f:new Set;h.add(c.issueId);a.set(e,h)}}a=[].concat(p(a.values())).map(function(k){return[].concat(p(k))});return rj(a,function(k){return k.sort().join(",")}).filter(function(k){return k.length>=3}).sort(function(k,q){return q.length-k.length}).slice(0,3).map(function(k){return[].concat(p(k))})},Qsa=function(a){switch(a){case "P0":case "P1":case "P2":case "P3":case "P4":return a;default:return null}},Rsa=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}},Ssa=function(a){switch(a){case "S0":case "S1":case "S2":case "S3":case "S4":return a;default:return null}},tj=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""}},vj=function(a,b,c,d){var e;return{status:a,displayValue:(e=uj.get(a))!=null?e:"",open:b,assigneeRequirement:c,sortOrder:d}},dta=function(){return[Tsa,Usa,Vsa,Wsa,Xsa,Ysa,Zsa,$sa,ata,bta,cta]},eta=function(a){if(!a)return!1;a=a.userGaiaStatus;return!a||a==="ACTIVE"||a==="UNSPECIFIED"},xj=function(a){return a?a.map(wj):[]},yj=function(a){a=xj(a);
a.sort();return a},wj=function(a){return a&&a.getUserGaiaStatus?fta(gta(a)):fta(a)},fta=function(a){return a?a.userGaiaStatus==="DELETED"?"[Deleted User]":a.userGaiaStatus==="UNAVAILABLE"?"[Unavailable User]":eta(a)?hta(a)||"[No Data]":"[No Data]":""},zj=function(a){return a&&a.getUserGaiaStatus?hta(gta(a)):hta(a)},hta=function(a){if(a)return a.emailAddress||a.obfuscatedEmailAddress||""},gta=function(a){if(a!=null){var b={},c;if(c=a.getEmailAddress())b.emailAddress=c;if(c=Rc(a,2))b.obfuscatedEmailAddress=
c;if(c=a.getUserGaiaStatus())b.userGaiaStatus=ita[c];(c=Aj(a,4,Bj(Cj)))&&c.length>0&&(b.aliases=c);return b}},Dj=function(a){return a?{emailAddress:a.trim(),userGaiaStatus:"ACTIVE"}:null},jta=function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())b.push(Dj(c.value));return b},lta=function(a){var b=a.getId(),c=Ej(a,3,void 0,Nc);var d=Aj(a,2,Bj(),Nc);a=Fj(a,4,Bj(),Nc);return kta({id:b,std_offset:c,names:d,transitions:a||[]})},Kj=function(a){var b=a.emailAddress,c=a.obfuscatedEmailAddress,
d=a.aliases;a=a.userGaiaStatus;var e=new Gj;b&&Hj(e,1,b);c&&Hj(e,2,c);(d==null?0:d.length)&&Ij(e,4,d);if(a)switch(a){case "UNSPECIFIED":Jj(e,3,0);break;case "ACTIVE":Jj(e,3,1);break;case "DELETED":Jj(e,3,2);break;case "UNAVAILABLE":Jj(e,3,3);break;default:pb(a)}return e},Lj=function(a){var b={},c=a.getEmailAddress();c&&(b.emailAddress=c);if(c=Rc(a,2))b.obfuscatedEmailAddress=c;c=a.getUserGaiaStatus();switch(c){case 0:break;case 1:b.userGaiaStatus="ACTIVE";break;case 2:b.userGaiaStatus="DELETED";break;
case 3:b.userGaiaStatus="UNAVAILABLE";break;default:throw Error("fb`"+c);}a=Aj(a,4,Bj(Cj));if(a==null?0:a.length)b.aliases=a;return b},Mj=function(a){if(a!=null&&(a=String(a),a.trim()!==""))return a=Number(a),isNaN(a)?void 0:a},Nj=function(a){if(a!=null)return String(a)},Oj=function(a){if(a!=null&&a!=="0")return a},Pj=function(a){return a==null?void 0:a},mta=function(){return function(a){return a==null?"<none>":a}},Qj=function(a){return a!=null},nta=function(a){if(a!=null)return a/1E3},qta=function(a){var b=
a.getTrackerId_asString(),c=a.getName(),d=a.getComponentId_asString(),e=Rj(a,4,1).map(Uc).map(String);var f=W(a,ota,6);f=f!=null?{logoUrl:f.getLogoUrl(),cocUrl:Rc(f,3),theme:pta[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:Sj(a,Gj,10,Bj()).length>0?Sj(a,Gj,10,Bj()).map(Lj):void 0}},rta=function(a){return qta(a.getIt())},sta=
function(a){return a.getIt().getTrackersList().map(qta)},tta=function(a){return{trackers:a.getIt().getTrackersList().map(qta),nextPageToken:a.getIt().getNextPageToken(),totalSize:a.getIt().getTotalSize()}},Tj=function(a){if(a==null)return"UNSPECIFIED_FORMATTING_MODE";switch(uta[a]){case "MARKDOWN_FORMATTING_MODE":return"MARKDOWN";case "PLAIN_FORMATTING_MODE":return"PLAIN";case "LITERAL_FORMATTING_MODE":return"LITERAL";default:return"UNSPECIFIED_FORMATTING_MODE"}},vta=function(a){if(a==null)return"COMMENT_FORMATTING_MODE_UNSPECIFIED";
switch(Uj[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"}},wta=function(a){return console==null?!1:typeof console[a]==="function"},Vj=function(){wta("debug")&&console.debug.apply(console,ge.apply(0,arguments))},Wj=function(){wta("info")&&console.info.apply(console,ge.apply(0,arguments))},xta=function(){wta("log")&&console.log.apply(console,ge.apply(0,
arguments))},Xj=function(){wta("warn")&&console.warn.apply(console,ge.apply(0,arguments))},yta=function(){wta("error")&&console.error.apply(console,ge.apply(0,arguments))},zta=function(a){if(a!=null){var b=a.getYear();if(b==null)Xj("No year. dateToJs");else{var c=a.getDay();if(c==null)Xj("No day. dateToJs");else if(a=a.getMonth(),a==null)Xj("No month. dateToJs");else return{year:b,day:c,month:a}}}},Ata=function(a){var b=new Yj;Zj(b,3,a.day);b.setMonth(a.month);b.setYear(a.year);return b},ak=function(a){if(a!=
null){var b=Uc(a.getSeconds());a=a.getNanos();return{seconds:b,nanos:a}}},ck=function(a){var b=new bk;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},Bta=function(a){var b=new dk;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},Cta=function(a){if(a!=null){var b=Uc(a.getSeconds());a=a.getNanos();return{seconds:b,nanos:a}}},Dta=function(a){if(a!=null)return Number(a.toDate())},ek=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 ck({seconds:a,nanos:b})},Eta=function(a){return ak(ek(a*1E3))},fk=function(a){if(!a)return 0;a=Uc(a.getSeconds())*1E9+a.getNanos();return Math.round(a/1E3)},Fta=function(a){return a?a==="ASCENDING"?"asc":"desc":""},gk=function(a,b,c){return function(d,e){e=e===void 0?c:e;return Gta(d,a,b,e)}},Gta=function(a,b,c,d){return d?[].concat(p(a)).sort(function(e,f){var h=d==="ASCENDING"?1:-1;return c(b(e),b(f))*h}):[].concat(p(a))},hk=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},ik=function(a,b){return a==null||b==null?a==null&&b==null?0:a==null?1:b==null?-1:0:a.localeCompare(b)},aua=function(a){var b={};jk(a,1)&&(b.showFullHistory=kk(a,1));jk(a,2)&&(b.useCodefont=kk(a,2));lk(a,5)&&(b.resultsPerPage=Ej(a,5));jk(a,26)&&(b.showRecentEventsFirst=kk(a,26));var c=a.getDisplayColumns();c&&(b.displayColumns={column:c.getColumnList().map(Hta).filter(Qj)});if(c=a.getSortColumns())b.sortColumns={column:c.getColumnList().map(Ita).filter(Qj)};
mk(a,7)&&(b.bannerMessageId=Rc(a,7));if(c=W(a,Jta,3)){var d={};nk(c,1)&&(d.reportedPriority=ok(pk(c,1)));nk(c,2)&&(d.assignedPriority=ok(pk(c,2)));nk(c,3)&&(d.verifiedPriority=ok(pk(c,3)));nk(c,4)&&(d.ccdPriority=ok(pk(c,4)));nk(c,9)&&(d.collaboratorPriority=ok(pk(c,9)));nk(c,5)&&(d.starredPriority=ok(pk(c,5)));jk(c,6)&&(d.excludeChangesByMe=kk(c,6));jk(c,7)&&(d.unsubscribeFromAll=kk(c,7));jk(c,8)&&(d.enableV2Prefs=kk(c,8));b.notificationPreferences=d}if(d=W(a,Kta,9)){c={showHotlists:kk(d,1),showStatusIcons:kk(d,
4),wrapComponents:kk(d,3),wrapTitles:kk(d,2),rtlComponentPath:kk(d,5)};var e=tc(d,6,Wb);c.fieldStatus=Object.fromEntries(e.entries());d=tc(d,7,Wb);c.modeForField=Object.fromEntries(d.entries());b.listViewPreferences=c}if(c=a.getLayoutPreferences())d={},lk(c,1)&&(d.leftSidebarWidth=Ej(c,1)),jk(c,2)&&(d.expandIssueSlo=kk(c,2)),lk(c,3)&&(d.rightSidebarWidth=Ej(c,3)),b.layoutPreferences=d;if(d=a.getDateTimePreferences())c={},mk(d,1)&&(c.calendarFormat=Rc(d,1)),mk(d,2)&&(c.timeFormat=Rc(d,2)),d.hasTimeZone()&&
(c.timeZone=d.getTimeZone()),nk(d,7)&&(d=pk(d,7),c.sloEtaViewAs=Lta[d]),b.dateTimePreferences=c;if(d=W(a,qk,8))c={},nk(d,1)&&(d=d.getDensity(),c.density=Mta[d]),b.themePreferences=c;if(c=a.getHomepagePreferences())d={},nk(c,1)&&(d.resourceType=Nta(pk(c,1,1))),Ob(rk(c,2))!=null&&(d.resourceId=sk(c,2)),b.homepagePreferences=d;if(c=W(a,Ota,17))d={},jk(c,1)&&(d.enableAllHotkeys=kk(c,1,!0)),b.keyboardPreferences=d;Ob(rk(a,16))!=null&&(b.newFeaturesAcknowledgedMillis=sk(a,16));jk(a,18)&&(b.autoCcOnComment=
kk(a,18));tk(a,uk,20)&&(d=W(a,uk,20),c=d.getCommentDisplayOverride(),d=d.getLastPublishMode(),b.textDisplayPreferences={commentDisplayOverride:Pta(c),lastPublishMode:Pta(d)});tk(a,vk,33)&&(e=W(a,vk,33),c=pk(e,3),d=e.getCommentDisplayOverride(),e=e.getLastPublishMode(),b.commentFormattingPreferences={commentCreateOverride:Pta(c),commentDisplayOverride:Pta(d),lastPublishMode:Pta(e)});tk(a,Qta,21)&&(c=W(a,Qta,21),d={},jk(c,2)&&(d.announcementDismissed=kk(c,2)),jk(c,1)&&(d.enableBugScreensaver=kk(c,1)),
b.bugScreensaverPreferences=d);tk(a,Rta,24)&&(c=W(a,Rta,24),d={},wk(c,1)&&(d.announcementDismissedMillis=Uc(xk(c,1))),b.g3nPreferences=d);if(c=W(a,Sta,23))c=Sj(c,yk,1,Bj()),b.teamWarningPreferences={componentTeamWarnings:c.map(Tta)};c=uc(a,25,bk,Wb);c.size&&(b.dismissalTimestamps=Uta(c));c=a.getCollapsedMap();c.size&&(b.collapsed=Object.fromEntries(c.entries()));jk(a,29)&&(b.showInlineImages=a.getShowInlineImages());tk(a,Vta,28)&&(c=W(a,Vta,28),d={},nk(c,1)&&(d.commentFilter=Wta(pk(c,1))),b.commentFilterPreferences=
d);if(c=W(a,zk,31))b.missionControlPreferences=Xta(c);tk(a,Yta,32)&&(b.scopePreferences=Zta(W(a,Yta,32)));c=uc(a,34,Ak,Vb);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:$ta[pk(e,2,1)],componentScope:Bk(e,3),includeDescendants:kk(e,4)});b.assistiveIssuePickerPreferences=a}return b},Hta=function(a){if(a.hasType()){var b=a.getType();b={type:bua[b]};a.hasCustomFieldId()&&(b.customFieldId=
Uc(a.getCustomFieldId()));return b}},Ita=function(a){var b=a.getColumn();if(b=b&&Hta(b)){if(nk(a,2))a:switch(a=pk(a,2,1),a){case 1:a="ASCENDING";break a;case 2:a="DESCENDING";break a;default:a=pb(a,"Unknown sortOrder: "+a)}else a=void 0;if(a)return{column:b,order:a}}},ok=function(a){return cua[a]},Pta=function(a){if(a!==0)return dua[a]},Nta=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 pb(a,"Unknown resourceType: "+a)}},Tta=function(a){var b={};a.hasComponentId()&&(b.componentId=a.getComponentId_asString());wk(a,2)&&(b.dismissMillis=Uc(xk(a,2)));return b},Uta=function(a){a=Array.from(a.entries()).map(function(b){var c=l(b);b=c.next().value;c=c.next().value;return[b,c.toDate()]});return Object.fromEntries(a)},Wta=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 pb(a,
"Unknown resourceType: "+a)}},Zta=function(a){var b=Ck(a,1),c=ak(W(a,bk,2));a=Sj(a,Dk,3,Bj()).map(function(d){return{teamId:d.getTeamId_asString(),triageId:Bk(d,2)}});return{starredTeams:b,lastAutomaticStarsUpdate:c,starredTriageViews:a}},hua=function(a){var b=eua(fua(new Yta,a.starredTeams),a.starredTriageViews.map(function(c){var d=(new Dk).setTeamId(c.teamId);return Ek(d,2,c.triageId)}));a.lastAutomaticStarsUpdate&&gua(b,ck(a.lastAutomaticStarsUpdate));return b},Xta=function(a){var b=lk(a,3)?Ej(a,
3):void 0,c=lk(a,6)?Ej(a,6):void 0,d=lk(a,5)?Ej(a,5):void 0,e=lk(a,4)?Ej(a,4):void 0,f=jk(a,10)?kk(a,10):void 0,h=jk(a,11)?kk(a,11):void 0,k=jk(a,12)?kk(a,12):void 0,q=Fk(a,7,Bj()).map(function(aa){return iua[aa]}),v=Fk(a,8,Bj()).map(function(aa){return iua[aa]}),A=jua(Sj(a,Gk,18,Bj())),E=kua(Sj(a,Hk,19,Bj())),H=lua(Sj(a,Ik,20,Bj())),L=mua(Sj(a,Jk,21,Bj())),O=nua(Sj(a,Kk,22,Bj())),S=oua(Sj(a,Lk,24,Bj()));b={workAreaUrls:Aj(a,1,Bj(Cj)),myTasksTab:b,myTasksDaysOld:c,needsAttentionDaysOld:d,workAreaTab:e,
needsAttentionSources:q,needsAttentionBuganizerFilteredSignals:A,needsAttentionDriveFilteredSignals:E,needsAttentionGerritFilteredSignals:H,needsAttentionChangelistFilteredSignals:L,needsAttentionGoogleTasksFilteredSignals:O,needsAttentionIrmFilteredSignals:S,myTasksSources:v,hideBadgeInNav:f,isNeedsAttentionSourcesConfigured:h,isMyTasksSourcesConfigured:k};c=tc(a,9,Vba);c.size&&(b.workAreaQuickFilters=pua(c));a=a.getCollapsedMap();a.size&&(b.collapsed=Object.fromEntries(a.entries()));return b},pua=
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=qua(d))&&(b[c]=d)}return b},rua=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}},qua=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"}},Fua=function(a){var b=new Mk;a.showFullHistory!=null&&Nk(b,1,a.showFullHistory);a.useCodefont!=null&&Nk(b,2,a.useCodefont);a.resultsPerPage!=null&&Ok(b,5,a.resultsPerPage);a.displayColumns!=null&&b.setDisplayColumns(sua(a.displayColumns));if(a.sortColumns!=null){var c=tua(a.sortColumns);X(b,
Pk,6,c)}a.bannerMessageId!=null&&Qk(b,7,a.bannerMessageId);if(a.notificationPreferences!=null){c=a.notificationPreferences;var d=new Jta;d=Rk(d,1,Sk[c.reportedPriority]);d=Rk(d,2,Sk[c.assignedPriority]);d=Rk(d,3,Sk[c.verifiedPriority]);d=Rk(d,4,Sk[c.ccdPriority]);d=Rk(d,9,Sk[c.collaboratorPriority]);d=Rk(d,5,Sk[c.starredPriority]);d=Nk(d,6,c.excludeChangesByMe);d=Nk(d,7,c.unsubscribeFromAll);c=Nk(d,8,c.unsubscribeFromAll);X(b,Jta,3,c)}a.listViewPreferences!=null&&(c=a.listViewPreferences,d=new Kta,
d=Nk(d,1,c.showHotlists),d=Nk(d,2,c.wrapTitles),d=Nk(d,3,c.wrapComponents),d=Nk(d,4,c.showStatusIcons),d=Nk(d,5,c.rtlComponentPath),c.fieldStatus!=null&&uua(c.fieldStatus,tc(d,6,Wb)),c.modeForField!=null&&uua(c.modeForField,tc(d,7,Wb)),X(b,Kta,9,d));a.layoutPreferences!=null&&(c=a.layoutPreferences,d=new vua,c.leftSidebarWidth!=null&&Ok(d,1,c.leftSidebarWidth),c.expandIssueSlo!=null&&Nk(d,2,c.expandIssueSlo),c.rightSidebarWidth!=null&&Ok(d,3,c.rightSidebarWidth),X(b,vua,10,d));a.dateTimePreferences!=
null&&(c=a.dateTimePreferences,d=new Tk,d=Qk(d,1,c.calendarFormat),d=Qk(d,2,c.timeFormat).setTimeZone(c.timeZone),c=Rk(d,7,wua[c.sloEtaViewAs]),X(b,Tk,11,c));a.themePreferences!=null&&(c=a.themePreferences,c=(new qk).setDensity(xua[c.density]),X(b,qk,8,c));if(a.homepagePreferences!=null){c=a.homepagePreferences;d=new yua;if(c.resourceType!=null){var e=zua(c.resourceType);Rk(d,1,e)}c.resourceId!=null&&d.setResourceId(c.resourceId);X(b,yua,13,d)}a.keyboardPreferences!=null&&(c=a.keyboardPreferences,
d=new Ota,c=Nk(d,1,c.enableAllHotkeys),X(b,Ota,17,c));a.newFeaturesAcknowledgedMillis!=null&&Uk(b,16,a.newFeaturesAcknowledgedMillis);a.autoCcOnComment!=null&&Nk(b,18,a.autoCcOnComment);a.textDisplayPreferences!=null&&(c=a.textDisplayPreferences,d=new uk,c.commentDisplayOverride&&d.setCommentDisplayOverride(Aua[c.commentDisplayOverride]),c.lastPublishMode&&d.setLastPublishMode(Aua[c.lastPublishMode]),X(b,uk,20,d));a.commentFormattingPreferences!=null&&(c=a.commentFormattingPreferences,d=new vk,c.commentCreateOverride&&
Rk(d,3,Aua[c.commentCreateOverride]),c.commentDisplayOverride&&d.setCommentDisplayOverride(Aua[c.commentDisplayOverride]),c.lastPublishMode&&d.setLastPublishMode(Aua[c.lastPublishMode]),X(b,vk,33,d));a.bugScreensaverPreferences!=null&&(c=a.bugScreensaverPreferences,d=new Qta,c.enableBugScreensaver!=null&&Nk(d,1,c.enableBugScreensaver),c.announcementDismissed!=null&&Nk(d,2,c.announcementDismissed),X(b,Qta,21,d));a.g3nPreferences!=null&&(c=a.g3nPreferences,d=new Rta,c.announcementDismissedMillis!=null&&
Ek(d,1,c.announcementDismissedMillis),X(b,Rta,24,d));a.teamWarningPreferences!=null&&(c=Bua(a.teamWarningPreferences),X(b,Sta,23,c));if(a.dismissalTimestamps!=null)for(d=a.dismissalTimestamps,c=uc(b,25,bk,Wb),d=l(Object.entries(d)),e=d.next();!e.done;e=d.next()){var f=l(e.value);e=f.next().value;var h=f.next().value;f=c;var k=f.set;h=(new bk).fromMillis(h.getTime());k.call(f,e,h)}a.collapsed!=null&&uua(a.collapsed,b.getCollapsedMap());a.showRecentEventsFirst!=null&&Nk(b,26,a.showRecentEventsFirst);
a.showInlineImages!=null&&Nk(b,29,a.showInlineImages);a.commentFilterPreferences!=null&&(d=a.commentFilterPreferences,c=new Vta,d.commentFilter!=null&&(d=Cua(d.commentFilter),Rk(c,1,d)),X(b,Vta,28,c));a.missionControlPreferences!=null&&(c=Dua(a.missionControlPreferences),X(b,zk,31,c));a.scopePreferences!=null&&(c=hua(a.scopePreferences),X(b,Yta,32,c));if(a.assistiveIssuePickerPreferences!=null)for(c=a.assistiveIssuePickerPreferences,a=uc(b,34,Ak,Vb),c=l(c.entries()),d=c.next();!d.done;d=c.next())d=
l(d.value),k=d.next().value,f=d.next().value,d=a,e=d.set,k=jb(k),h=(new Ak).setOpen(f.open),h=Rk(h,2,Eua[f.searchScope]),h=Ek(h,3,f.componentScope),f=Nk(h,4,f.includeDescendants),e.call(d,k,f);return b},sua=function(a){return(new Vk).setColumnList(a.column.map(function(b){return Gua(b)}))},Gua=function(a){var b=(new Wk).setType(Hua[a.type]);a.customFieldId!=null&&b.setCustomFieldId(a.customFieldId);return b},tua=function(a){return(new Pk).setColumnList(a.column.map(function(b){var c=(new Xk).setColumn(Gua(b.column));
a:switch(b=b.order,b){case "ASCENDING":b=1;break a;case "DESCENDING":b=2;break a;default:b=pb(b,"Unknown sortOrder: "+b)}return Rk(c,2,b)}))},zua=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 pb(a,"Unknown resourceType: "+a)}},Bua=function(a){var b=new Sta;a.componentTeamWarnings!=null&&Iua(b,a.componentTeamWarnings.map(function(c){var d=new yk;c.componentId&&d.setComponentId(c.componentId);
c.dismissMillis&&Ek(d,2,c.dismissMillis);return d}));return b},Cua=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 pb(a,"Unknown commentFilterType: "+a)}},Dua=function(a){var b=new zk;a.workAreaUrls&&Ij(b,1,a.workAreaUrls);a.collapsed&&uua(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]=rua(c[f]);uua(d,tc(b,9,Vba))}a.myTasksTab!=null&&Ok(b,3,a.myTasksTab);a.workAreaTab!=null&&Ok(b,4,a.workAreaTab);a.myTasksDaysOld!=null&&Ok(b,6,a.myTasksDaysOld);a.needsAttentionDaysOld!=null&&Ok(b,5,a.needsAttentionDaysOld);a.needsAttentionSources&&Jua(b,a.needsAttentionSources.map(Kua));a.myTasksSources&&Lua(b,a.myTasksSources.map(Kua));a.hideBadgeInNav!=null&&Nk(b,10,!!a.hideBadgeInNav);a.isNeedsAttentionSourcesConfigured!=null&&Nk(b,11,!!a.isNeedsAttentionSourcesConfigured);a.isMyTasksSourcesConfigured!=
null&&Nk(b,12,!!a.isMyTasksSourcesConfigured);a.needsAttentionBuganizerFilteredSignals&&Mua(b,Yk(a.needsAttentionBuganizerFilteredSignals,function(h,k){return(new Gk).setSignal(Nua[h]).setChecked(k)}));a.needsAttentionDriveFilteredSignals&&Oua(b,Yk(a.needsAttentionDriveFilteredSignals,function(h,k){return(new Hk).setSignal(Pua[h]).setChecked(k)}));a.needsAttentionGerritFilteredSignals&&Qua(b,Yk(a.needsAttentionGerritFilteredSignals,function(h,k){return(new Ik).setSignal(Rua[h]).setChecked(k)}));a.needsAttentionChangelistFilteredSignals&&
Sua(b,Yk(a.needsAttentionChangelistFilteredSignals,function(h,k){return(new Jk).setSignal(Tua[h]).setChecked(k)}));a.needsAttentionGoogleTasksFilteredSignals&&Uua(b,Yk(a.needsAttentionGoogleTasksFilteredSignals,function(h,k){return(new Kk).setSignal(Vua[h]).setChecked(k)}));a.needsAttentionIrmFilteredSignals&&Wua(b,Yk(a.needsAttentionIrmFilteredSignals,function(h,k){return(new Lk).setSignal(Xua[h]).setChecked(k)}));return b},Kua=function(a){return Yua[a]},jua=function(a){return a.reduce(function(b,
c){return b.set(Zua[c.getSignal()],c.getChecked())},new Map)},kua=function(a){return a.reduce(function(b,c){return b.set($ua[c.getSignal()],c.getChecked())},new Map)},lua=function(a){return a.reduce(function(b,c){return b.set(ava[c.getSignal()],c.getChecked())},new Map)},mua=function(a){return a.reduce(function(b,c){return b.set(bva[c.getSignal()],c.getChecked())},new Map)},nua=function(a){return a.reduce(function(b,c){return b.set(cva[c.getSignal()],c.getChecked())},new Map)},oua=function(a){return a.reduce(function(b,
c){return b.set(dva[c.getSignal()],c.getChecked())},new Map)},uua=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)}},Yk=function(a,b){var c=[];a.forEach(function(d,e){c.push(b(e,d))});return c},eva=function(a){a=hd(a).toString();var b=new Zk;Qk(b,2,a);return b},fva=function(a){if(!a)return null;a=$k(a,2);return a===null||a===void 0?null:fd(a)},gva=function(a){if(!a)return null;a=$k(a,3);return a===null||a===void 0?
null:new Zc(a)},jva=function(){al==null&&(al=new hva(iva.buganizerSessionJspb));tk(al,bl,2)||al.setConfig(new bl);if(!tk(al,cl,9)){var a=al,b=new cl;X(a,cl,9,b)}al.hasUser()||al.setUser(new dl);tk(al,Mk,7)||(a=al,b=new Mk,X(a,Mk,7,b));return al},fl=function(a){return function(){var b=el.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}}},kva=function(a){return function(b){b===!0?el.setItem(a,"1"):el.removeItem(a)}},
lva=function(a){return a&&typeof a==="object"&&"overrideUntilDate"in a&&"flagName"in a&&"value"in a?!0:!1},mva=function(a){return{overrides:a.overrides.filter(function(b){return b.overrideUntilDate?Date.parse(b.overrideUntilDate)>Date.now():!0})}},nva=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.")},qva=function(){if(gl("flag-overrides")()){var a=ova("flag-overrides")();if(a&&
typeof a==="object"&&"overrides"in a&&Array.isArray(a.overrides)&&a.overrides.every(lva))return mva(a);pva();console.warn("Could not parse flag overrides.")}},pva=function(){hl("flag-overrides")()},rva=function(a,b){var c=new Date(Date.now()+864E5);c=c===void 0?null:c;nva();var d,e=((d=qva())==null?void 0:d.overrides)||[];hl("flag-overrides")({overrides:[].concat(p(e.filter(function(f){return f.flagName!==a})),[{flagName:a,value:b,overrideUntilDate:c}])})},sva=function(a,b){rva(a,b)},tva=function(a){nva();
var b,c=((b=qva())==null?void 0:b.overrides)||[];hl("flag-overrides")({overrides:c.filter(function(d){return d.flagName!==a})})},ll=function(){if(uva==null){vva();var a=jva();var b=a.hasUser()?a.getUser():new dl;b=kk(b,4)?{anonymous:!0,email:null,userTypeLabel:"ANONYMOUS",sessionIdentifier:""}:{anonymous:!1,email:b.getEmail(),userTypeLabel:b.getUserTypeLabel(),sessionIdentifier:b.getSessionIdentifier()};var c=tk(a,bl,2)?a.getConfig():new bl;for(var d=new Map,e=l(tc(c,4,Ub).entries()),f=e.next();!f.done;f=
e.next()){var h=l(f.value);f=h.next().value;h=h.next().value;d.set(f,h)}c={appName:c.getAppName(),documentationBaseUrl:c.getDocumentationBaseUrl(),enabledFlags:d,environmentType:c.getEnvironmentType(),onePickUrl:c.getOnePickUrl(),onePickSecretToken:c.getOnePickSecretToken(),commentNumberLimit:c.getCommentNumberLimit(),createComponentRedirectDelay:c.getCreateComponentRedirectDelay(),createRestrictedSubresourcesComponentIds:Ck(c,13).map(Oj).filter(Qj),indefiniteRetentionComponentsAllowlist:Ck(c,20).map(Oj).filter(Qj),
trustedEmailDomainsAllowlist:Aj(c,22,Bj(Cj)),helpMeFixSidebarComponentAllowlist:Ck(c,23).map(Oj).filter(Qj),batchDedupeComponentAllowlist:Ck(c,28).map(Oj).filter(Qj),internalBaseUrl:c.getInternalBaseUrl(),externalBaseUrl:c.getExternalBaseUrl()};d=aua(tk(a,Mk,7)?a.getUserPreferences():new Mk);f=tk(a,cl,9)?W(a,cl,9):new cl;e=Sj(f,il,1,Bj()).map(lta);tk(f,jl,2)?(f=f.getAnnouncement(),f={message:f.getMessage(),messageId:Rc(f,2,void 0,Nc),dismissible:kk(f,3,void 0,Nc),tags:f.getTagsList(Cj)}):f=null;e=
{timezones:e,announcement:f};f=a.getXsrfToken();h=a.getCspNonce();var k=a.getFrontendAccessMode(),q=a.getMustAcknowledgeTerms(),v=a.getShowNewFeaturesDialog(),A=a.getAppBaseHref(),E=tk(a,kl,11)?rta(a.getTracker()):null,H;tk(a,wva,12)?(H=a.getPassiveLoginIframeUrl())?(H=$k(H,4),H=H===null||H===void 0?null:Xc(H)):H=null:H=null;uva={user:b,config:c,xsrfToken:f,cspNonce:h,frontendAccessMode:k,mustAcknowledgeTerms:q,showNewFeaturesDialog:v,userPreferences:d,preload:e,appBaseHref:A,tracker:E,passiveLoginIframeUrl:H,
userRequiresCaptcha:kk(a,13)}}return uva},xva=function(a){return a.frontendAccessMode||"INTERNAL"},yva=function(){return xva(ll())==="INTERNAL"},ml=function(a){a=a.config.environmentType||"QA";switch(a){case "NIGHTLY":case "PROD":return!0;case "QA":case "DEV":return!1;default:pb(a,"Unknown environment type.")}},nl=function(a,b){if(b)Zda(a,b);else for(;a.lastChild;)a.lastChild.remove()},zva=function(a){for(a=a.firstChild;a;){if(a.nodeType!==Node.TEXT_NODE)return!1;a=a.nextSibling}return!0},ol=function(a){return a.endsWith("px")?
Math.floor(Number(a.substr(0,a.length-2))):Number.NaN},Ava=function(a){return a.ctrlKey||a.metaKey||a.shiftKey||a.altKey},Bva=function(a){if(a.plainFormat)return a.plainFormat.plainSection.map(function(c){var d=document.createElement("div");nl(d,c.content);return d.innerText}).join("\n");if(a.markdownFormat){var b=document.createElement("div");nl(b,a.markdownFormat.content);return b.innerText}return a.literalFormat?(b=document.createElement("div"),nl(b,a.literalFormat.content),b.innerText):""},pl=
function(a){return!!a&&Cva.test(a)&&!Dva.test(a)},Gva=function(a){a=a===void 0?"":a;return!Eva(a)||a.endsWith("-robots@google.com")||Fva(a)},Fva=function(a){return Hva.some(function(b){return a.endsWith(b)})},Eva=function(a){return!a.endsWith("@prod.google.com")&&!a.endsWith("@appspot.gserviceaccount.com")},ql=function(a){return a?a.seconds*1E3+a.nanos/1E6:0},Iva=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":""))+")"},Jva=function(a){if(a){var b=
new rl;b.setTime(a.getTime());return b}},sl=function(a){if(a!=null)return new Date(a.year,a.month-1,a.day)},Kva=function(a){if(a)return{year:a.getFullYear(),month:a.getMonth()+1,day:a.getDate()}},Lva=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)}},Mva=function(a){if(a==null)return"";var b=a.toLocaleDateString(void 0,{dateStyle:"medium"});return(new Date).getFullYear()===a.getFullYear()?b.split(", ")[0]:
b},Nva=function(a){return a==null?!1:Date.now()>ql(a)},Ova=function(a,b){return(a!=null?a:0)+(b!=null?b:0)},Pva=function(a){return a.length===0?0:a.reduce(Ova)/a.length},Qva=function(a,b){b=b===void 0?Pva(a):b;if(a.length===0)return 0;a=a.map(function(c){return Math.pow(c-b,2)}).reduce(Ova)/(a.length-1);return Math.sqrt(a)},tl=function(a,b){if(a<5)return!1;if(!Rva.get(b)){var c=Pva(b),d=Qva(b,c);Rva.set(b,{mean:c,stdDev:d})}b=Rva.get(b);return a-b.mean>b.stdDev*2},ul=function(a){return!(a==null||
!a.commentNumber)},Sva=function(a){return a.unlinkifiedComment!==""?!0:a.formattedComment?Bva(a.formattedComment)!=="":!1},Tva=function(a){var b;return((b=a.attachments)==null?void 0:b.length)>0},Uva=function(a,b){return Object.assign({},a,{commentRedacted:b.redacted,unlinkifiedComment:b.unlinkifiedComment,formattedComment:b.formattedComment})},Vva=function(a,b,c){var d=a.findIndex(function(f){return f.commentNumber===b}),e=a[d];if(e==null)return a;c=Object.assign({},e,c);return[].concat(p(a.slice(0,
d)),[c],p(a.slice(d+1)))},vl=function(a){var b;return a==null?void 0:(b=a.snapshot)==null?void 0:b[0]},Wva=function(a){var b;return wj((b=vl(a))==null?void 0:b.assigneeUser)||void 0},Xva=function(a){if(a==null)return"";var b,c,d,e,f=a.etag,h=a.piiRetention;var k=a.piiRetentionState;k=k==null?"":[JSON.stringify(k.retentionPeriod),JSON.stringify(k.scheduledDeletionTime)].join("-");return[f,h,k,(b=a.entityStatus)==null?void 0:b.reason,(c=a.entityStatus)==null?void 0:c.status,(d=a.contentVerdict)==null?
void 0:(e=d.piiVerdict)==null?void 0:e.severity].join("-")},Yva=function(a){if(a==null)return"";var b=a.attachments.map(Xva).join("-"),c=[];if(a.commentReactions&&a.commentReactions.size>0){var d,e=l((d=a.commentReactions)==null?void 0:d.entries());for(d=e.next();!d.done;d=e.next()){var f=l(d.value);d=f.next().value;f=f.next().value;c.push(d+"-"+f.count)}}c=c.join("-");var h,k;return[a.modifiedDate,a.version,"["+b+"]",a.preDiffs.length,a.postDiffs.length,a.commentVersion,(h=a.commentContentVerdict)==
null?void 0:(k=h.piiVerdict)==null?void 0:k.severity,a.commentDeletionStatus,a.commentRetention,"["+c+"]"].join("-")},Zva=function(a){return a.map(function(b){return b.commentNumber}).filter(Qj).reduce(function(b,c){return Math.max(b,c)},1)},$va=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||Yva(d)!==Yva(e)))return!1}return!0},xl=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=wl.get(a))==null?void 0:d.open)!=null?e:!1},awa=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=wl.get(a);return b==null?!1:!(b==null?0:b.open)},cwa=function(a){return bwa(a,"FIXED")},bwa=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)},dwa=function(a){return a.isArchived==null?!1:!a.isArchived},ewa=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},gwa=function(){var a=yl;return gk(function(b){var c,d;return(d=fwa.get((c=a(b))==null?void 0:c.snapshot[0].status))!=null?d:0},hk)},hwa=function(){var a=yl;return gk(function(b){var c,d;return(c=a(b))==null?void 0:(d=
c.snapshot[0].assigneeUser)==null?void 0:d.emailAddress},ik)},iwa=function(){var a=yl;return gk(function(b){var c;return(c=a(b))==null?void 0:c.snapshot[0].type},ik)},jwa=function(){var a=yl;return gk(function(b){var c,d;return(c=a(b))==null?void 0:(d=c.snapshot[0].reporterUser)==null?void 0:d.emailAddress},ik)},kwa=function(a){return gk(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},hk)},lwa=function(a){return gk(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},hk)},nwa=function(){return gk(function(a){var b,c;return(c=a==null?void 0:(b=a.experimentalFields)==null?void 0:b.triage.triagerEmail)!=null?c:""},function(a,b){return a===mwa?1:b!==mwa&&a?b?ik(a,b):1:-1})},owa=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"},qwa=function(a){return gk(function(b){b=a(b);return pwa[owa(b)]},
hk)},rwa=function(){var a=yl;return gk(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},hk)},zl=function(a){var b;return(a==null?void 0:(b=a.userPerformingActionUser)==null?void 0:b.emailAddress)==="piper-bugupdater@prod.google.com"},swa=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"},Al=function(a){if(!swa(a))return!1;
var b;return((b=a==null?void 0:a.unlinkifiedComment)!=null?b:"").trim().split("\n").length>=9},twa=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})}},vwa=function(a,b,c){b=uwa.get(c)||new Set(c.map(function(e){return e.issueId}));uwa.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},xwa=function(a,b){wwa.get(b)||
wwa.set(b,[b.map(function(e){var f,h;return(h=e==null?void 0:(f=e.userActivityStats)==null?void 0:f.oneDayViewCount)!=null?h:0}),b.map(function(e){var f,h;return(h=e==null?void 0:(f=e.userActivityStats)==null?void 0:f.sevenDayViewCount)!=null?h:0}),b.map(function(e){var f,h;return(h=e==null?void 0:(f=e.userActivityStats)==null?void 0:f.thirtyDayViewCount)!=null?h:0})]);var c=l(wwa.get(b));b=c.next().value;var d=c.next().value;c=c.next().value;return tl(b[a],b)||tl(d[a],d)||tl(c[a],c)},ywa=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}},zwa=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}},Awa=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},Bwa=function(a){var b=wsa(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")},Bl=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""},Cwa=function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=Bl(c);b.has(d)?b.get(d).push(c):b.set(d,[c])}return b},Dwa=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=zj(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},Dl=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(Cl[a.allocation.involvement]);else{var h;((h=a.allocation)==null?void 0:h.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 q;if((q=a.allocation)==null?0:q.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:""},El=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(xl(a)&&(d==="NEW"||d==="UNSPECIFIED"))return"NEW";if(xl(a)&&d==="CONFIRMED")return"CONFIRMED";if(xl(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"},Fl=function(a){if(a){var b=El(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 xl(a)?"REOPENED":e;throw Error("gb");}}},Ewa=function(a){return a==null?{closed:0,total:0}:{closed:a.descendantCount-a.openDescendantCount,total:a.descendantCount}},Fwa=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},Gwa=function(a){var b,c;return(c=a==null?void 0:(b=a.changelists)==null?void 0:b.length)!=null?c:0},Hwa=
function(a){var b;return(b=a==null?void 0:a.gerritChanges)!=null?b:[]},Iwa=function(a){if(a==null)return[];a=[].concat(p(a.assignees.map(function(b){return b.emailAddress})),p(a.collaborators.map(function(b){return b.emailAddress})),p(a.verifiers.map(function(b){return b.emailAddress})),p(a.reporters.map(function(b){return b.emailAddress}))).filter(Qj);return Osa(a)},Jwa=function(a,b){var c;a=(c=a.componentPathInfo)==null?void 0:c.allCustomField;if(!a)return!0;c=l(a);var d=c.next();for(a={};!d.done;a=
{customField:void 0},d=c.next())if(a.customField=d.value,a.customField.required){d=!!a.customField.typedDefaultValue;var e=void 0,f=void 0,h=(e=b)==null?void 0:(f=e.snapshot.customField)==null?void 0:f.some(function(k){return function(q){return q.customFieldId===k.customField.customFieldId}}(a));if(!d&&!h)return!1}return!0},Gl=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},Hl=function(a){var b=a.match(Kwa);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"}}},Nwa=function(a,b){a=a.map(Lwa)||[];b=b.map(Lwa)||[];return psa(a,new Set(b)).map(Mwa)},Lwa=function(a){return a.host+","+a.repo+","+a.changeNumber+","+a.state},Mwa=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=Mj(d);if(!d)throw Error("hb");if(!Object.values(Owa).includes(b))throw Error("ib");
return{host:a,repo:c,changeNumber:d,state:b}},Pwa=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},Qwa=function(a){vva();var b,c;return(c=(b=jva().getConfig())==null?void 0:tc(b,4,Ub).get(a))!=null?c:!1},Rwa=function(a,b){b=b===
void 0?Qwa("enableGerritChanges"):b;var c;return z(function(d){return b?(c=a&&(!!Pwa(a)||!!Hl(a)))?d.return(""):d.return("Must be a CL number or Gerrit URL"):d.return("")})},Il=function(a){return new jj(a.year,a.month-1,a.day)},Swa=function(a){return{month:a.getMonth()+1,day:a.getDate(),year:a.getFullYear()}},Twa=function(a){return!(!a||a.day==null||a.month==null||a.year==null)},Uwa=function(a,b){if(a&&b){var c=l(b.split(":"));b=c.next().value;c=c.next().value;return new rl(a.getFullYear(),a.getMonth(),
a.getDate(),Number(b),Number(c))}},Wwa=function(a){return a==null?!1:Vwa.has(a.name)},Xwa=function(a){return(a==null?void 0:a.name)==="hotlist"},Ywa=function(a){return a==null?!1:a.href!=null&&a.value!=null},Zwa=function(a){return Array.isArray(a)?a.every(Ywa):!1},Jl=function(a){return{value:String(a),href:"issues/"+a}},$wa=function(a){return{value:a,href:"https://critique.corp.google.com/"+a}},axa=function(a){var b=yva();return{value:a.changeNumber,href:Gl(a,b===void 0?!1:b)}},bxa=function(a){return{value:String(a),
href:"issues?q=hotlistid:"+a}},cxa=function(a){return{value:a,href:"https://pm.corp.google.com/"+a}},exa=function(a,b){var c=new Map(a.filter(function(v){return v.placeholder}).map(function(v){var A;return[(A=Kl[v.placeholder.role])!=null?A:"",v.placeholder.count]})),d=new Map(b.filter(function(v){return v.placeholder}).map(function(v){var A;return[(A=Kl[v.placeholder.role])!=null?A:"",v.placeholder.count]}));a=Cwa(a.filter(function(v){return v.user}));b=Cwa(b.filter(function(v){return v.user}));
for(var e=[],f=[],h=l(c),k=h.next();!k.done;k=h.next()){var q=l(k.value);k=q.next().value;q=q.next().value;k.length!==0&&k!==Kl.JOB_ROLE_UNSPECIFIED&&(d.has(k)?d.get(k)!==q&&e.push(k+" ("+d.get(k)+" > "+q+")"):e.push(k+" ("+q+")"))}d=l(d);for(h=d.next();!h.done;h=d.next())k=l(h.value),h=k.next().value,k=k.next().value,h.length!==0&&h!==Kl.JOB_ROLE_UNSPECIFIED&&(c.has(h)||f.push(h+" ("+k+")"));c=new Set([].concat(p(a.keys()),p(b.keys())));c=l(c);h=c.next();for(d={};!h.done;d={addedAllocationsByKey:void 0},
h=c.next())h=h.value,h.length!==0&&(k=void 0,d.addedAllocationsByKey=Dwa((k=a.get(h))!=null?k:[]),q=void 0,k=Dwa((q=b.get(h))!=null?q:[]),d.addedAllocationsByKey.size>0&&(q=dxa(h,d.addedAllocationsByKey,k),q.length>0&&e.push(q)),d=new Map([].concat(p(k.entries())).filter(function(v){return function(A){var E=l(A);A=E.next().value;E.next();return!v.addedAllocationsByKey.has(A)}}(d))),d.size>0&&(d=dxa(h,d,new Map),d.length>0&&f.push(d)));return{additions:e,removals:f}},dxa=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(!gj(e,f)){if(d.length===0){var h=void 0;d.push(fxa(e.user,(h=f)==null?void 0:h.user));h=void 0;d.push(gxa(e.user,(h=f)==null?void 0:h.user))}var k=void 0,q=void 0;h=hxa((k=e.allocation)==null?void 0:k.startDate,(q=e.allocation)==null?void 0:q.endDate);k=void 0;e=ixa(e.allocation,(k=f)==null?void 0:k.allocation);e.length!==0&&(h.length>0?d.push(h+": "+e):d.push(e))}}if(d.length===0)return"";
c=d.filter(function(v){return v.length>0});return a+(c.length===0?"":" ("+c.join(", ")+")")},hxa=function(a,b){var c=new Ll("MMM d, yyyy");if(!a&&!b)return"";var d=a?c.format(Il(a)):"";c=b?c.format(Il(b)):"";return a?b?d+" - "+c:d+" - End":"Start - "+c},fxa=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: "+Kl[a]:a?c?"Custom Role: "+Kl[c]+" > "+Kl[a]:"Custom Role: None > "+Kl[a]:"Custom Role: "+Kl[c]+" > None"},gxa=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")},ixa=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=Cl[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=Cl[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},jxa=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},kxa=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"}},lxa=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=jxa(b);return{title:"Allow "+
(b===1?"members of the group to ":kxa(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)+"."}},mxa=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"}},oxa=function(a,b){return b.length?a.filter(function(c){return[].concat(p(b)).some(function(d){return nxa(c,d)})}):a},pxa=function(a,b){return b.length?a.filter(function(c){return[].concat(p(b)).every(function(d){return d.check(c)})}):a},nxa=function(a,b){var c,d;return!((c=a.experimentalFields)==null?
0:(d=c.triage)==null?0:d.dismissed)&&b.check(a)},Pl=function(a){switch(Ml(a,Nl)){case 0:throw Error("mb");case 1:return{user:Lj(a.getUser())};case 2:return{group:Lj(a.getGroup())};case 3:return{alias:Ol(a,3,Nl)};default:throw Error("nb");}},Sl=function(a){var b=new Ql;tsa(a)&&b.setUser(Kj(a.user));a.group!==void 0&&b.setGroup(Kj(a.group));a.alias!==void 0&&Rl(b,3,Nl,a.alias);return b},qxa=function(a){var b=new Tl;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("qb");}return b},rxa=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("qb");}},txa=function(a){if(a)return a=a.getAccessLevel(),{accessLevel:sxa[a]}},vxa=function(a){return(new Ul).setAccessLevel(uxa[a.accessLevel])},
xxa=function(a){if(a)return(a=W(a,Vl,1))?(a=a.getSeverity(),a={piiVerdict:a?{severity:wxa(a)}:{severity:"NONE_DETECTED"}}):a={piiVerdict:{severity:"NONE_DETECTED"}},a},wxa=function(a){switch(a){case 0:case 1:return"NONE_DETECTED";case 2:return"RESTRICTED";case 3:return"RESTRICTED_PLUS";default:throw Error("rb`"+a);}},yxa=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("rb`"+a);
}},zxa=function(a){var b=new Wl;b=Xl(b,1,a.contentJudgementId).setResourcePath(a.resourcePath);var c=yxa(a.severity);b=Jj(b,3,c);b=Hj(b,4,a.judgementReason);a.judge&&(a=Kj(a.judge),X(b,Gj,9,a));return b},Axa=function(a){return{contentJudgementId:Uc(xk(a,1))?String(xk(a,1)):void 0,resourcePath:a.getResourcePath()||void 0,severity:wxa(a.getRestrictionSeverity()),judgementReason:Rc(a,4),judge:Lj(W(a,Gj,9))}},Bxa=function(a){var b=new Wl;var c=yxa(a.severity);b=Jj(b,3,c);return Hj(b,4,a.judgementReason)},
Dxa=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("sb`"+b);}}return{status:b,reason:Cxa(a.getReason())}}},Cxa=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("tb`"+a);}},Exa=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("tb`"+a);}},Fxa=function(a){if(a){var b=new Yl,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("sb`"+d);}}return c.call(b,d).setReason(Exa(a.reason))}},Gxa=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("tb`"+a);}},Hxa=function(a){if(a!=null){var b,c;return{retentionPeriod:(b=Cta(a.getRetentionPeriod()))!=null?b:null,scheduledDeletionTime:(c=ak(W(a,bk,2)))!=null?c:null}}},Ixa=function(a){var b=new Zl;if(a.retentionPeriod){var c=Bta(a.retentionPeriod);X(b,dk,1,c)}a.scheduledDeletionTime&&(a=ck(a.scheduledDeletionTime),X(b,bk,2,a));return b},Kxa=function(a){var b=
pk(a,1);b=Jxa[b];var c=Ej(a,2),d=pk(a,3);return{retentionSelection:b,retentionPeriodDays:c,piiRetentionSelection:Jxa[d],piiRetentionPeriodDays:Ej(a,4),spiiRetentionPeriodDays:Ej(a,5)}},Mxa=function(a){var b=new $l;b=Jj(b,1,Lxa[a.retentionSelection]);b=Zj(b,2,a.retentionPeriodDays);b=Jj(b,3,Lxa[a.piiRetentionSelection]);b=Zj(b,4,a.piiRetentionPeriodDays);return Zj(b,5,a.spiiRetentionPeriodDays)},Nxa=function(a){switch(a){case 0:return"RETENTION_UNSPECIFIED";case 1:return"COMPONENT_DEFAULT";case 2:return"INDEFINITE";
default:throw Error("ub`"+a);}},Oxa=function(a){switch(a){case "RETENTION_UNSPECIFIED":return 0;case "COMPONENT_DEFAULT":return 1;case "INDEFINITE":return 2;default:throw Error("ub`"+a);}},Qxa=function(a){var b=Mj(Uc(a.getAttachmentId()));var c=a.getFilename();var d=Uc(a.getLength())||void 0,e=Rc(a,2);c=c&&e?{filename:c,length:d,contentType:e}:void 0;return{attachmentId:b,media:c,contentType:Rc(a,2),filename:a.getFilename(),length:Uc(a.getLength()),etag:Pxa(a.getEtag())||"",contentVerdict:xxa(a.getContentVerdict()),
entityStatus:Dxa(a.getEntityStatus()),piiRetentionState:Hxa(a.getRestrictedRetentionState()),piiRetention:Nxa(a.getRestrictedRetention())}},Sxa=function(a){var b=new am;var c=new Rxa;a=gba(a);c=bm(c,2,a);return X(b,Rxa,5,c).setEntityStatus(Fxa({status:"ACTIVE",reason:"UNSPECIFIED"}))},Txa=function(a){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(a.type)},Uxa=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"}},Wxa=function(a){if(a!=null)return{customFieldId:Pj(Mj(Uc(a.getCustomFieldId()))),standardField:Vxa[pk(a,cm(a,dm,2))]}},Yxa=function(a){var b=new em;a.customFieldId?b.setCustomFieldId(a.customFieldId):a.standardField&&fm(b,2,dm,xba(Xxa[a.standardField]));
return b},Zxa=function(a){if(a){var b=Mj(Uc(a.getCustomFieldId()));if(b==null)Xj("No customFieldId. customFieldValueToJs");else{b={customFieldId:b,displayValues:Sj(a,Zk,11,Bj()).map(function(H){return hd(fva(H)).toString()})};switch(a.getValueCase()){case 2:b.textValue=Pj(Ol(a,2,gm));break;case 3:b.dateValue=zta(a.getDateValue());break;case 4:b.enumValue=Pj(Ol(a,4,gm));break;case 5:b.numericValue=Pj(hm(a,cm(a,gm,5)));break;case 6:var c,d;b.repeatedTextValue={values:(d=(c=im(a,jm,6,gm))==null?void 0:
c.getValuesList(Cj))!=null?d:[]};break;case 8:var e,f;b.repeatedEnumValue={values:(f=(e=im(a,jm,8,gm))==null?void 0:e.getValuesList(Cj))!=null?f:[]};break;case 9:var h,k;b.repeatedNumericValue={values:(k=(h=im(a,km,9,gm))==null?void 0:h.getValuesList(Cj))!=null?k:[]};break;case 7:var q,v,A,E;b.repeatedDateValue={values:(E=(q=im(a,lm,7,gm))==null?void 0:(v=q.getValuesList())==null?void 0:(A=v.map(zta))==null?void 0:A.filter(Qj))!=null?E:[]}}return b}}},aya=function(a){var b=(new mm).setCustomFieldId(a.customFieldId);
a.textValue!=null?Rl(b,2,gm,a.textValue):a.dateValue!=null?(a=Ata(a.dateValue),nm(b,3,gm,a)):a.enumValue!=null?Rl(b,4,gm,a.enumValue):a.numericValue!=null?$xa(b,5,gm,a.numericValue):a.repeatedTextValue!=null?(a=(new jm).setValuesList(a.repeatedTextValue.values),nm(b,6,gm,a)):a.repeatedEnumValue!=null?(a=(new jm).setValuesList(a.repeatedEnumValue.values),nm(b,8,gm,a)):a.repeatedNumericValue!=null?(a=(new km).setValuesList(a.repeatedNumericValue.values),nm(b,9,gm,a)):a.repeatedDateValue!=null&&(a=(new lm).setValuesList(a.repeatedDateValue.values.map(Ata)),
nm(b,7,gm,a));return b},dya=function(a){var b=Uc(a.getCustomFieldId()),c=bya[a.getType()],d=!!kk(a,4),e=a.getName(),f=a.getDescription()||"",h=Zxa(W(a,mm,10));var k=Aj(a,8,Bj(Cj));b={customFieldId:b,type:c,required:d,name:e,description:f,typedDefaultValue:h,allowedValue:k,fieldSignificance:cya[pk(a,9)],shared:a.getShared(),stateOnIssues:"INHERIT",enabledOnIssues:!0};Uc(a.getComponentId())&&(b.componentId=a.getComponentId_asString());return b},eya=function(a){return dya(a)},hya=function(a){var b=new om;
a.customFieldId&&b.setCustomFieldId(String(a.customFieldId));b.setComponentId(String(a.componentId));b.setType(fya[a.type]);pm(b,4,a.required);b.setName(a.name);b.setDescription(a.description);if(a.typedDefaultValue){var c=aya(a.typedDefaultValue);X(b,mm,10,c)}a.allowedValue&&Ij(b,8,a.allowedValue);a.fieldSignificance&&b.setFieldSignificance(gya[a.fieldSignificance]);b.setShared(a.shared);return b},iya=function(a){return{specId:Uc(xk(a,1)),estimate:Rc(a,2),averageDays:hm(a,3),totalOpen:hm(a,4),totalComplete:hm(a,
5)}},pya=function(a){var b=new qm;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&&jya(b,kya(new lya,a.numericSpec.multiplier));if(a.enumSpec){var c;mya(b,nya(new oya,((c=a.enumSpec.options)!=null?c:[]).map(function(d){return(new rm).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}Jj(b,6,a)}return b},
um=function(a){var b=void 0,c=a.getContentVerdict();c&&(b=xxa(c));c=void 0;var d=a.getFormattedComment();d&&(c=sm(d));d=void 0;var e=W(a,Gj,3);e&&(d=Lj(e));e=void 0;var f=a.getEtag();f&&(e=Pxa(f));f=void 0;var h=a.getEntityStatus();h&&(f=Dxa(h));h=void 0;var k=a.getRestrictedRetentionState();k&&(h=Hxa(k));return{issueId:String(a.getIssueId()),commentNumber:a.getCommentNumber(),commentContentVerdict:b,formattingMode:qya(a.getFormattingMode()),formattedComment:c,lastEditorUser:d,lastModified:fk(a.getModifiedTime()),
version:a.getVersion(),unlinkifiedComment:a.getComment(),entityStatus:f,piiRetentionState:h,piiRetention:Nxa(a.getRestrictedRetention()),redacted:kk(a,13),etag:e,commentReactions:rya(W(a,tm,17))}},sm=function(a){if(vm(a,sya,1,wm)){var b=im(a,sya,1,wm);var c;b={plainSection:((c=Sj(b,xm,1,Bj()))!=null?c:[]).map(tya)}}else b=void 0;c=b;b=vm(a,ym,2,wm)?uya(im(a,ym,2,wm)):void 0;vm(a,zm,3,wm)?(a=im(a,zm,3,wm),a={content:fva(a.getContent())}):a=void 0;return{plainFormat:c,markdownFormat:b,literalFormat:a}},
wya=function(a){var b=new Am;if(a.plainFormat){var c=a.plainFormat;var d=new sya;c=c.plainSection.map(vya);d=Bm(d,1,c);nm(b,1,wm,d)}a.markdownFormat&&(d=a.markdownFormat,d=(new ym).setContent(eva(d.content)),nm(b,2,wm,d));a.literalFormat&&(a=a.literalFormat,a=(new zm).setContent(eva(a.content)),nm(b,3,wm,a));return b},tya=function(a){return{isQuoted:kk(a,1),content:fva(a.getContent())}},vya=function(a){var b=new xm;return pm(b,1,a.isQuoted).setContent(eva(a.content))},uya=function(a){return{content:fva(a.getContent())}},
qya=function(a){switch(a){case 0:case 1:return"PLAIN";case 2:return"MARKDOWN";case 3:return"LITERAL";default:throw Error("vb`"+a);}},Cm=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("vb`"+a);}},rya=function(a){var b,c;a==null?c=void 0:c=Sj(a,Dm,2,Bj());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("wb`"+d);}}var e=void 0,f=void 0,h=void 0,k=void 0,q=(f=kk(c,1))!=null?f:!1;f=(h=Uc(c.getCount()))!=null?h:0;c=Sj(c,Gj,3,Bj());c={type:d,hasReacted:q,count:f,recentResponders:(k=(e=c)==null?void 0:e.map(Lj).filter(Qj))!=null?k:[]};b.set(d,c)}return b},xya=function(a){return a.map(function(b){return W(b,Gj,1)}).filter(Qj).map(Lj).map(function(b){return{mentionedUser:b}})},yya=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"}},zya=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}},Aya=function(a){var b;return{paths:(b=a==null?void 0:Aj(a,1,Bj(Cj)))!=null?b:[]}},Cya=function(a){if(Bya.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 "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:pb(a)}},Dya=function(a){var b;return(b=a==null?void 0:Aj(a,1,Bj()).map(Cya).filter(Qj))!=null?b:[]},Eya=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:pb(a,"Unhandled IssueFieldName in fieldNameToMask")}},Gya=function(a){var b=ak(a.getStartTime()),c=ak(W(a,bk,3)),d=ak(a.getEndTime()),e=Cta(a.getObjective()),f=a.getBusinessDays();a=a.getDayType();return{startTime:b,targetTime:c,endTime:d,objective:e,businessDays:f,dayType:Fya[a]}},
Iya=function(a){var b=new Em;a.startTime&&b.setStartTime(ck(a.startTime));if(a.targetTime){var c=ck(a.targetTime);X(b,bk,3,c)}a.endTime&&b.setEndTime(ck(a.endTime));a.objective&&b.setObjective(Bta(a.objective));a.businessDays&&b.setBusinessDays(a.businessDays);a.dayType&&b.setDayType(Hya[a.dayType]);return b},Kya=function(a){var b=(new Fm).setInherit(a.inherit).setSource(Jya[a.source]).setComment(a.comment);a.id&&b.setId(a.id);a.sourceComponentId&&Xl(b,6,a.sourceComponentId);a.sourceTeamId&&b.setSourceTeamId(a.sourceTeamId);
return b},Mya=function(a){return{author:Lj(a.getAuthor()),timestamp:ak(a.getTimestamp()),add:Lya(a.getAdd()),remove:Lya(a.getRemove()),addMask:Aya(a.getAddMask()),removeMask:Aya(a.getRemoveMask())}},Lya=function(a){var b=String(a.getSloId()),c=a.getName(),d=a.getDescription(),e=String(a.getParentId());var f=Sj(a,Gm,5,Bj());f=(f!=null?f:[]).map(Nya);var h=Sj(a,Gm,6,Bj());h=(h!=null?h:[]).map(Nya);var k=a.getIsArchived();a:switch(a=pk(a,8),a){case 0:a="OFF";break a;case 1:a="OFF";break a;case 2:a="ON";
break a;default:throw Error("xb`"+a);}return{sloId:b,name:c,description:d,parentId:e,elements:f,effectiveElements:h,isArchived:k,alertState:a}},Nya=function(a){var b=Oya(a.getMetric()),c=a.getMatcher();a:{var d=a.getDayType();switch(d){case 0:d="CALENDAR";break a;case 1:d="CALENDAR";break a;case 2:d="BUSINESS";break a;default:throw Error("zb`"+d);}}return{metric:b,matcher:c,dayType:d,objective:Cta(a.getObjective()),businessDays:a.getBusinessDays()}},Oya=function(a){switch(a){case 0:return"METRIC_UNSPECIFIED";
case 1:return"ASSIGNMENT";case 2:return"RESPONSE";case 3:return"CLOSURE";default:throw Error("yb`"+a);}},Qya=function(a){var b=new Gm,c=Pya(a.metric);b=Jj(b,1,c).setMatcher(a.matcher);c=b.setDayType;a:{var d=a.dayType;switch(d){case "DAY_TYPE_UNSPECIFIED":d=0;break a;case "CALENDAR":d=1;break a;case "BUSINESS":d=2;break a;default:throw Error("zb`"+d);}}return c.call(b,d).setObjective(Bta(a.objective)).setBusinessDays(a.businessDays)},Pya=function(a){switch(a){case "METRIC_UNSPECIFIED":return 0;case "ASSIGNMENT":return 1;
case "RESPONSE":return 2;case "CLOSURE":return 3;default:throw Error("Ab`"+a);}},Rya=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}},Sya=function(a){switch(a){case "HIGH":return 1;case "MEDIUM":return 2;case "LOW":return 3;
default:return 4}},Vya=function(a){var b=new Hm;if(a.user){var c=b.setUser,d=a.user,e=(new Tya).setUser(Kj(d.user));d.isLead&&e.setIsLead(!0);d.role&&e.setRole(Rya(d.role));c=c.call(b,e);a=a.allocation;d=new Uya;d=Im(d,3,a.aggregationValue);a.involvement&&fm(d,1,Jm,xba(Sya(a.involvement)));a.percentage!==void 0&&$xa(d,2,Jm,a.percentage);a.startDate&&(e=Ata(a.startDate),X(d,Yj,4,e));a.endDate&&(a=Ata(a.endDate),X(d,Yj,5,a));X(c,Uya,3,d)}else a.placeholder&&(c=a.placeholder,c=(new Km).setRole(Rya(c.role)).setCount(c.count),
nm(b,2,Lm,c));return b},Wya=function(a){var b=new Mm;a=a.plannedAllocations.map(Vya);return Bm(b,1,a)},Xya=function(a){switch(a){case 1:return"HIGH";case 2:return"MEDIUM";case 3:return"LOW";default:return"ZERO"}},Yya=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"}},Zya=function(a){if(a.hasUser()){var b=a.getUser(),c=Yya(b.getRole());var d={user:Lj(b.getUser())};b.getIsLead()&&(d.isLead=!0);c!=="JOB_ROLE_UNSPECIFIED"&&(d.role=c);a=W(a,Uya,3);b={aggregationValue:hm(a,3)};c=cm(a,Jm,1);Nm(a,c)!=null&&(b.involvement=Xya(pk(a,cm(a,Jm,1))));c=cm(a,Jm,2);rk(a,c,void 0,void 0,sb)!=null&&(b.percentage=hm(a,cm(a,Jm,2)));tk(a,Yj,4)&&(b.startDate=zta(a.getStartDate()));tk(a,Yj,5)&&(b.endDate=zta(W(a,Yj,5)));d={user:d,allocation:b}}else vm(a,
Km,2,Lm)?(d=a.getPlaceholder(),d={placeholder:{role:Yya(d.getRole()),count:d.getCount()}}):d={};return d},$ya=function(a){return{issueId:String(a.getIssueId()),updateText:Rc(a,2),formattedText:tk(a,Am,3)?sm(W(a,Am,3)):void 0,formattingMode:a.getFormattingMode()?qya(a.getFormattingMode()):void 0,author:a.hasAuthor()?Lj(a.getAuthor()):void 0,updateTime:a.hasUpdateTime()?Pj(ak(a.getUpdateTime())):void 0,version:a.getVersion()}},aza=function(a){var b=(new Om).setFormattingMode(Cm(a.formattingMode));a.issueId&&
b.setIssueId(a.issueId);a.updateText&&Hj(b,2,a.updateText);if(a.formattedText){var c=wya(a.formattedText);X(b,Am,3,c)}a.author&&b.setAuthor(Kj(a.author));a.updateTime&&b.setUpdateTime(ck(a.updateTime));a.version&&b.setVersion(a.version);return b},gza=function(a){var b=a.getAccessLimit(),c=bza[pk(a,30)],d,e,f,h,k,q,v,A,E,H,L,O,S,aa,ka,na,za,Na=Oj(a.getComponentId_asString())||null,Pa=a.getType()?yya(a.getType()):null,hb=a.getStatus()?Pm[a.getStatus()]:null,ua=a.getPriority()?Qm[a.getPriority()]:null,
Ha=a.getSeverity()?cza[a.getSeverity()]:null,Ia=a.getTitle(),tb=a.getReporter()?Lj(a.getReporter()):null,rb=a.getAssignee()?Lj(a.getAssignee()):null,dc=a.getVerifier()?Lj(a.getVerifier()):null,bc=(v=(d=a.getCcsList())==null?void 0:d.map(Lj))!=null?v:[];d=(A=(e=a.getCollaboratorsList())==null?void 0:e.map(Lj))!=null?A:[];a.getStaffing()?(e=a.getStaffing(),e={plannedAllocations:Sj(e,Hm,1,Bj()).map(Zya)}):e=null;A=a.getCanonicalIssueId_asLegacyNumberOrString()?String(a.getCanonicalIssueId_asLegacyNumberOrString()):
null;v=(E=(f=a.getBlockedByIssueIdsList_asLegacyNumberOrString())==null?void 0:f.map(String))!=null?E:[];f=(H=(h=a.getBlockingIssueIdsList_asLegacyNumberOrString())==null?void 0:h.map(String))!=null?H:[];h=(L=a.getHotlistIdsList_asLegacyNumberOrString(Cj))!=null?L:[];L=(O=(k=a.getCustomFieldsList())==null?void 0:k.map(Zxa).filter(Qj))!=null?O:[];k=(S=a.getCodeChangesList(Cj))!=null?S:[];S=(aa=a.getGerritChangesList().map(dza))!=null?aa:[];aa=Aj(a,17,Bj(Cj));aa=aa!=null?aa:[];O=Aj(a,18,Bj(Cj));O=O!=
null?O:[];H=Aj(a,19,Bj(Cj));H=H!=null?H:[];E=a.getInProd();var Ac=a.getIsArchived(),ic=(ka=(q=a.getDuplicateIssueIdsList_asLegacyNumberOrString())==null?void 0:q.map(String))!=null?ka:[];q=a.getIsDeleted();ka=eza[pk(a,24)];var ye=(na=ak(a.getSloSnoozeUntil()))!=null?na:null;na=(za=ak(a.getSloEndTime()))!=null?za:null;za=Aj(a,27,Bj(Cj));return{componentId:Na,type:Pa,status:hb,priority:ua,severity:Ha,title:Ia,reporterUser:tb,assigneeUser:rb,verifierUser:dc,ccUsers:bc,collaboratorsUsers:d,staffing:e,
duplicateOfIssueId:A,blockedByIssueId:v,blockingIssueId:f,hotlistId:h,customField:L,changelist:k,gerritChanges:S,foundInVersion:aa,targetedToVersion:O,verifiedInVersion:H,inProd:E,isArchived:Ac,duplicateIssueId:ic,isDeleted:q,deletionReason:ka,sloStartTime:ye,sloEndTime:na,sloSnoozeType:c==="SLO_SNOOZE_TYPE_UNSPECIFIED"?null:c,postmortems:za!=null?za:[],retention:fza[a.getRetention()],effort:a.hasEffort()?iya(a.getEffort()):void 0,issueAccessLimitLevel:b!=null?rxa(b):null,comment:"",formattingMode:void 0}},
nza=function(a){var b=new Rm;a.componentId&&b.setComponentId(a.componentId);a.title&&b.setTitle(a.title);a.type!=null&&b.setType(zya(a.type));a.inProd!=null&&b.setInProd(a.inProd);a.isArchived!=null&&b.setIsArchived(a.isArchived);a.status!=null&&b.setStatus(hza[a.status]);a.priority!=null&&b.setPriority(iza[a.priority]);a.severity!=null&&b.setSeverity(jza[a.severity]);a.reporterUser&&b.setReporter(Kj(a.reporterUser));a.assigneeUser&&b.setAssignee(Kj(a.assigneeUser));a.verifierUser&&b.setVerifier(Kj(a.verifierUser));
a.ccUsers&&b.setCcsList(a.ccUsers.map(Kj));a.collaboratorsUsers&&b.setCollaboratorsList(a.collaboratorsUsers.map(Kj));a.staffing&&b.setStaffing(Wya(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(aya));a.changelist&&
b.setCodeChangesList(a.changelist);a.gerritChanges&&b.setGerritChangesList(a.gerritChanges.map(kza));a.foundInVersion&&Ij(b,17,a.foundInVersion);a.targetedToVersion&&Ij(b,18,a.targetedToVersion);a.verifiedInVersion&&Ij(b,19,a.verifiedInVersion);a.duplicateIssueId&&b.setDuplicateIssueIdsList(a.duplicateIssueId.map(Number));a.isDeleted!=null&&b.setIsDeleted(a.isDeleted);a.deletionReason!=null&&b.setDeletionReason(lza[a.deletionReason]);a.sloStartTime&&b.setSloSnoozeUntil(ck(a.sloStartTime));a.sloEndTime&&
b.setSloEndTime(ck(a.sloEndTime));a.sloSnoozeType!=null&&b.setSloSnoozeType(mza[a.sloSnoozeType]);a.retention!=null&&b.setRetention(Oxa(a.retention));if(a.effort){var c=b.setEffort,d=a.effort,e=new Sm;d.specId&&Xl(e,1,d.specId);d.estimate&&Hj(e,2,d.estimate);d.averageDays&&Im(e,3,d.averageDays);d.totalOpen&&Im(e,4,d.totalOpen);d.totalComplete&&Im(e,5,d.totalComplete);c.call(b,e)}a.issueAccessLimitLevel&&b.setAccessLimit(qxa(a.issueAccessLimitLevel));return b},dza=function(a){return{host:Rc(a,1),repo:Rc(a,
2),changeNumber:a.getChangeNumber_asLegacyNumberOrString(),state:oza[a.getState()]}},kza=function(a){var b=new Tm;b=Hj(b,1,a.host);return Hj(b,2,a.repo).setChangeNumber(a.changeNumber).setState(pza[a.state])},tza=function(a){switch(Ml(a,qza)){case 2:var b=im(a,rza,2,qza);return b.getCommentNumber()!==0?{type:"issueReference",issueId:String(b.getIssueId_asLegacyNumberOrString()),commentNumber:b.getCommentNumber(),sourceCommentNumber:Ej(a,3)}:{type:"issueReference",issueId:String(b.getIssueId_asLegacyNumberOrString()),
sourceCommentNumber:Ej(a,3)};case 1:return b=im(a,sza,1,qza),{type:"hyperlink",href:Rc(b,1),sourceCommentNumber:Ej(a,3)};case 0:throw Error("Bb");default:throw Error("Cb");}},Vm=function(a){var b=a.getIssueState()?[gza(a.getIssueState())]:[],c,d,e=String(a.getIssueId_asLegacyNumberOrString()),f=a.getVersion(),h;if(h=a.getUserData()){var k=kk(h,2);k=k==null?null:k;var q=kk(h,1);h={voted:k,starred:q==null?null:q,notificationSubscription:uza[pk(h,4)],lastViewedTimeMicros:fk(W(h,bk,5))}}else h=void 0;
if(a){q=void 0;(k=a.getSloStatus())&&(q={assignmentBounds:(k==null?0:tk(k,Em,1))?Gya(W(k,Em,1)):void 0,responseBounds:(k==null?0:tk(k,Em,2))?Gya(W(k,Em,2)):void 0,closureBounds:(k==null?0:tk(k,Em,3))?Gya(W(k,Em,3)):void 0});var v=void 0;(k=W(a,Gj,14))&&(v=Lj(k));var A;k={voteCount:(A=Um(a,10))!=null?A:0,createdTimeMicros:fk(a.getCreatedTime()),resolvedTimeMicros:fk(a.getResolvedTime()),verifiedTimeMicros:fk(a.getVerifiedTime()),modifiedTimeMicros:fk(a.getModifiedTime()),sloId:Mj(a.getSloId_asLegacyNumberOrString()),
teamId:Mj(a.getTeamId_asLegacyNumberOrString()),retentionState:Hxa(a.getRetentionState()),sloStatus:q,lastModifier:v}}else k=void 0;A=txa(a.getAccessLimit());q=a.getCustomFieldsList().map(dya);v=Sj(a,em,34,Bj()).map(Wxa).filter(Qj);var E=fk(a.getMajorModifiedTime()),H=a.getParentIssueIdsList_asLegacyNumberOrString().map(String),L=(c=a.getDescendantIssueCount())!=null?c:0;c=(d=a.getOpenDescendantIssueCount())!=null?d:0;d=a.getIsArchived();var O=Oj(String(a.getTrackerId_asLegacyNumberOrString())),S;
if(S=W(a,vza,47))S=W(a,vza,47),S={oneDayViewCount:Um(S,1),sevenDayViewCount:Um(S,2),thirtyDayViewCount:Um(S,3)};return{issueId:e,version:f,snapshot:b,userData:h,aggregatedData:k,accessLimit:A,customFields:q,visibleFields:v,majorModifiedTimeMicros:E,parentIssueIds:H,descendantCount:L,openDescendantCount:c,isArchived:d,trackerId:O,userActivityStats:S,escalationOwner:a.getEscalationOwner()?Lj(a.getEscalationOwner()):void 0}},xza=function(a){for(var b=new Map,c=l(a.getAncestorsMap().entries()),d=c.next();!d.done;d=
c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;b.set(String(d),{sourceIssueIds:e.getSourceIssueIdsList_asLegacyNumberOrString().map(String)})}c=Vm(a);d=Object;e=d.assign;var f=a.hasDescription()?um(a.getDescription()):void 0,h=a.getChildIssueCount();var k=Sj(a,wza,41,Bj());return e.call(d,{},c,{description:f,ancestors:b,childIssueCount:h,relatedLinks:k.map(tza),statusUpdate:a.hasStatusUpdate()?$ya(a.getStatusUpdate()):void 0})},yza=function(a){if(a)return{status:Pm[a.getStatus()],issueIds:a.getIssueIdsList().map(Uc).map(Nj).filter(Qj)}},
zza=function(a){if(a)return{priority:Qm[a.getPriority()],issueIds:a.getIssueIdsList().map(Uc).map(Nj).filter(Qj)}},Aza=function(){},Bza=function(a){return Object.values(a).length>0},Cza=function(a,b){a.next(Object.freeze(Object.assign({},a.getValue(),b)))},Dza=function(a,b){var c=a.getValue();c=Object.assign({},c);b=(delete c[b],c);a.next(Object.freeze(b))},Eza=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))},Fza=function(a){var b=Object.assign({},a);a=a.ids;b=(delete b.ids,b);a&&(b.ids=[].concat(p(a)).sort());return JSON.stringify(b)},Gza=function(a,b,c){c=a.get(b)||c;a.has(b)||a.set(b,c);return c},Hza=function(a){a=a===void 0?{}:a;return fsa(a)},Iza=function(a){var b=new tg,c=a.subscribe(b);a=Rf(b);a.finally(function(){c.unsubscribe()});return a},Jza=function(a){return a==null?new Promise(function(){}):Promise.resolve(a)},Kza=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 pb(a,"Unexpected pii severity")}},Wm=function(a){return a&&a.piiVerdict?a.piiVerdict.severity:"NONE_DETECTED"},Lza=function(a){switch(a){case "RESTRICTED":return"Restricted";case "RESTRICTED_PLUS":return"Restricted+";default:return""}},Mza=function(a){return Axa(a.getIt())},Xm=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,"+")},Nza=function(a){return{name:a.getName(),displayName:a.getDisplayName(),description:a.getDescription()}},Rza=function(a){var b={issueId:a.getIssueId_asString(),category:a.getCategory(),author:Lj(a.getAuthor()),timestamp:ak(a.getTimestamp())},c=a.getContentCase();switch(c){case 3:a=im(a,Oza,3,Pza);b.general={content:a.getContent(),formattedContent:sm(a.getFormattedContent())};
break;case 4:a=im(a,Qza,4,Pza);b.similarIssues={issueIds:a.getIssueIdsList_asString()};break;case 5:a=a.getSummary();b.summary={content:a.getContent(),formattedContent:sm(a.getFormattedContent())};break;default:throw Error("Lb`"+c);}return b},Sza=function(a){var b={issueId:a.getIssueId_asString(),attachmentId:a.getAttachmentId_asString(),category:a.getCategory(),content:a.getContent(),formattedContent:sm(a.getFormattedContent()),author:Lj(a.getAuthor()),timestamp:ak(a.getTimestamp()),contentVerdict:xxa(a.getContentVerdict())};
Rc(a,9)&&(b.customDisplayName=Rc(a,9));return b},Vza=function(a){var b=(new Tza).setIssueId(a.issueId).setCategory(a.category).setFeedbackType(Uza[a.feedbackType]);a.attachmentId&&b.setAttachmentId(a.attachmentId);return b},Xza=function(a){return a.type==="CUSTOM_FIELD"?[Wza[Hua[a.type]],a.customFieldId].join(":"):Wza[Hua[a.type]]},Zza=function(a){return a.includes(":")?(a=l(a.split(":")),a.next(),a=a.next().value,{type:"CUSTOM_FIELD",customFieldId:Ym(a)}):{type:bua[Yza[a]]}},$za=function(a){var b;
a==null?a=void 0:(a=Aj(a,1,Bj()),a=a==null?void 0:a.map(Zza));return(b=a)!=null?b:[]},bAa=function(a){var b=l(a.trim().split(" ")),c=b.next().value;a=b.next().value;aAa(b);b=Zza(c);c="DESCENDING";a==="asc"&&(c="ASCENDING");return{field:b,direction:c}},dAa=function(a){return a.map(cAa).join(",")},cAa=function(a){return Xza(a.field)+" "+(a.direction==="ASCENDING"?"asc":"desc")},eAa=function(a){return dAa(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(bAa))},fAa=function(a){var b,c,d,e,f,h=(new Zm).setHotlistId(a.hotlistId).setName(a.name).setDescription(a.description).setArchived(a.archived).setDefaultOrderBy(dAa((d=a.sortOrder)!=
null?d:[]));d=h.setDisplayPreferences;var k=new $m,q=(e=(b=a.displayColumn)==null?void 0:b.map(Xza))!=null?e:[];b=Ij(k,1,q);h=d.call(h,b).setCreatedTime(ek(a.createdTimeMicros)).setModifiedTime(ek(a.modifiedTimeMicros)).setOwnersList((f=(c=a.adminUsers)==null?void 0:c.map(Kj))!=null?f:[]);a.etag!==void 0&&(c=h.setEtag,a=a.etag,a=a.length?new Za(oaa(a,!0),$a):Ya(),c.call(h,a));return h},gAa=function(a){if(!Uc(a.getHotlistId()))throw Error("Mb");if(!a.getName())throw Error("Nb");if(!a.getCreatedTime())throw Error("Ob");
if(!a.getModifiedTime())throw Error("Pb");var b,c,d,e;return{hotlistId:Uc(a.getHotlistId()),name:a.getName(),description:(c=a.getDescription())!=null?c:"",archived:(d=a.getArchived())!=null?d:!1,createdTimeMicros:fk(a.getCreatedTime()),modifiedTimeMicros:fk(a.getModifiedTime()),displayColumn:$za(a.getDisplayPreferences()),sortOrder:a.getDefaultOrderBy().split(",").filter(Boolean).map(bAa),etag:Pxa(a.getEtag())||void 0,adminUsers:(e=(b=a.getOwnersList())==null?void 0:b.map(Lj))!=null?e:[]}},hAa=function(a){return{issueId:String(a.getIssueId()),
position:a.getPosition(),issue:Vm(a.getIssue())}},iAa=function(a){var b=Sj(a,an,1,Bj()).map(hAa),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()}},jAa=function(a){var b;return{searchId:Number(a.getSavedSearchId()),name:a.getName(),description:a.getDescription(),
query:a.getQuery(),sortOrder:a.getDefaultOrderBy().split(",").filter(Boolean).map(bAa),displayColumn:$za(a.getDisplayPreferences()),adminUsers:((b=a.getOwnersList())!=null?b:[]).map(Lj)}},kAa=function(a){var b,c,d=(new bn).setSavedSearchId(a.searchId).setName(a.name).setDescription(a.description).setQuery(a.query).setDefaultOrderBy(dAa((b=a.sortOrder)!=null?b:[]));b=d.setDisplayPreferences;var e=(c=a.displayColumn)!=null?c:[];c=new $m;e=e.map(Xza);c=Ij(c,1,e);return b.call(d,c).setOwnersList(a.adminUsers.map(Kj))},
mAa=function(a){switch(Ml(a,cn)){case 1:var b=a.getHotlist(),c=(b==null?0:b.getHotlist())?gAa(b.getHotlist()):void 0,d;b=(d=Vc(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())?jAa(e.getSavedSearch()):void 0,e=(c=Vc(e==null?void 0:e.getSavedSearchId()))!=null?c:0,{savedSearchId:e,savedSearch:d,name:(b=d==null?void 0:d.name)!=null?
b:"Saved search "+e,resourceType:"SAVED_SEARCH"};case 3:d=a.getBookmarkGroup();e=(d==null?0:d.getBookmarkGroup())?lAa(d.getBookmarkGroup()):void 0;var f,h;return{bookmarkGroupId:(f=Vc(d==null?void 0:d.getBookmarkGroupId()))!=null?f:0,bookmarkGroup:e,name:(h=e==null?void 0:e.name)!=null?h:"",resourceType:"BOOKMARK_GROUP"};default:throw Error("Qb");}},oAa=function(a){switch(a.resourceType){case "HOTLIST":var b=(new dn).setHotlistId(a.hotlistId);a.hotlist&&b.setHotlist(fAa(a.hotlist));return(new en).setHotlist(b);
case "SAVED_SEARCH":return b=(new fn).setSavedSearchId(a.savedSearchId),a.savedSearch&&b.setSavedSearch(kAa(a.savedSearch)),(new en).setSavedSearch(b);case "BOOKMARK_GROUP":return b=(new gn).setBookmarkGroupId(a.bookmarkGroupId),a.bookmarkGroup&&b.setBookmarkGroup(nAa(a.bookmarkGroup)),(new en).setBookmarkGroup(b);default:pb(a.resourceType,"Unexpected resourceType in bookmarkItemToItProto")}},lAa=function(a){var b=a.getArchived(),c=Uc(a.getBookmarkGroupId()),d=a.getDescription();var e=Sj(a,en,5,Bj());
return{archived:b,bookmarkGroupId:c,description:d,item:e.map(mAa),name:a.getName(),adminUsers:a.getOwnersList().map(Lj)}},nAa=function(a){var b,c=(new hn).setBookmarkGroupId(a.bookmarkGroupId).setName(a.name).setDescription(a.description).setArchived(a.archived),d=(b=a.item.map(oAa))!=null?b:[];return Bm(c,5,d).setOwnersList(a.adminUsers.map(Kj))},pAa=function(a){switch(a.resourceType){case "HOTLIST":return(new en).setHotlist((new dn).setHotlistId(a.resourceId));case "SAVED_SEARCH":return(new en).setSavedSearch((new fn).setSavedSearchId(a.resourceId));
case "BOOKMARK_GROUP":return(new en).setBookmarkGroup((new gn).setBookmarkGroupId(a.resourceId));default:pb(a.resourceType,"Unexpected resourceType in bookmarkItemForUpdateToItProto")}},qAa=function(a){a=lAa(a).item;a=wsa(a,function(k){return k.resourceType});var b,c,d,e,f,h;return{bookmarkGroups:(e=(b=a.get("BOOKMARK_GROUP"))==null?void 0:b.map(function(k){return k.bookmarkGroup}).filter(Qj))!=null?e:[],hotlists:(f=(c=a.get("HOTLIST"))==null?void 0:c.map(function(k){return k.hotlist}).filter(Qj))!=
null?f:[],savedSearches:(h=(d=a.get("SAVED_SEARCH"))==null?void 0:d.map(function(k){return k.savedSearch}).filter(Qj))!=null?h:[]}},rAa=function(a){return lAa(a.getIt())},sAa=function(a){a=Sj(a,hn,2,Bj(),Nc);return(a!=null?a:[]).map(lAa)},tAa=function(a){a=Fj(a,1,Bj(Cj),Nc);return{changelistNumbers:a!=null?a:[]}},wAa=function(a){return{changelists:Sj(a,uAa,1,Bj(),Nc).map(vAa),nextPageToken:a.getNextPageToken()}},vAa=function(a){var b,c;return{author:a.getAuthor(),changelistNumber:a.getChangelistNumber(),
pending:a.getPending(),timestamp:ak(a.getTimestamp()),issueIds:(b=a.getIssueIdsList_asString())!=null?b:[],fixedIssueIds:(c=Ck(a,6))!=null?c:[]}},xAa=function(a){var b=a.getAuthor(),c=a.getDescription(),d=a.getPending(),e=Uc(a.getTimestamp());a=Aj(a,5,Bj(Cj),Nc);return{author:b,description:c,pending:d,timestamp:e,affectedFiles:a!=null?a:[]}},yAa=function(a){if(a)return txa(a.getIt())},zAa=function(a){var b=Aj(a,1,Bj(Cj),Nc);a=Aj(a,2,Bj(Cj),Nc);return{noAccessEmails:b,unknownEmails:a}},AAa=function(a){var b=
a.getIt();a=Sj(b,Ql,2,Bj()).map(Pl);var c=b.getAppendersList().map(Pl),d=Sj(b,Ql,4,Bj()).map(Pl),e=b.getReadersList().map(Pl),f=Sj(b,Ql,11,Bj()).map(Pl),h=Sj(b,Ql,12,Bj()).map(Pl),k=Sj(b,Ql,3,Bj()).map(Pl),q=Sj(b,Ql,7,Bj()).map(Pl),v=Sj(b,Ql,5,Bj()).map(Pl),A=Sj(b,Ql,9,Bj()).map(Pl);a:switch(pk(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("ob");}return{admins:a,appenders:c,editors:d,readers:e,restrictedReaders:f,restrictedPlusReaders:h,
inheritedAdmins:k,implicitAppenders:q,implicitEditors:v,implicitReaders:A,implicitAccess:b}},CAa=function(a,b){b=b===void 0?document.documentElement:b;return Xf(Yf(function(){return Nf(b.querySelector(a))}),BAa(b,{childList:!0,subtree:!0}).pipe(eg(function(c){return c.some(function(d){return d.addedNodes.length>0})}),C(function(){return b.querySelector(a)}))).pipe(eg(Qj),mg(1),C(function(c){return c}))},BAa=function(a,b){return new Cf(function(c){var d=new MutationObserver(function(e){c.next(e)});
d.observe(a,b);return function(){d.disconnect()}})},jn=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)}}},DAa=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(" > ")},EAa=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)},kn=function(a){return a.ctrlKey||a.metaKey||a instanceof MouseEvent&&a.button===1},mn=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 ln(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("Sb`"+a);}},GAa=function(a){var b=Wxa(a.getFieldId()),c=pk(a,4);return{fieldId:b,stateOnIssues:FAa[c],enabledOnIssues:kk(a,5)}},JAa=function(a){var b,c,d;return{name:a.getName(),componentId:Oj(a.getComponentId_asString()),issueTypes:new Set((d=(b=im(a,HAa,5,IAa))==null?void 0:(c=Fk(b,1,Bj()))==null?void 0:c.map(yya))!=null?d:[]),customFieldConfigs:new Map(Sj(a,nn,
3,Bj()).map(function(e){return[Uc(e.getFieldId().getCustomFieldId()),e.getState()===2]}))}},OAa=function(a){var b=KAa((new on).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 nn).setFieldId(Yxa({customFieldId:c})).setState(d?2:1)}));a=[].concat(p(a.issueTypes));a.length>0?LAa(b,MAa(new HAa,a.map(zya))):NAa(b);return b},RAa=function(a){var b=W(a,pn,7),c,d=(c=b==null?void 0:b.getSlo())!=null?c:new qn,e;
c=String(a.getId());var f=(e=b==null?void 0:b.getVersion())!=null?e:0;e=a.getName();var h=a.getDescription(),k=[].concat(p(a.getPathNamesList())),q=a.getPathIdsList().map(Uc).map(String),v=[],A=v.concat;var E=Aj(a,5,Bj());v=A.call(v,p(E));A=a.getMembersList().map(PAa);a=a.getDeleted();d={inherit:d.getInherit(),sloId:String(d.getId()),comment:d.getComment(),sourceTeamId:String(d.getSourceTeamId())};if(b){E=b==null?void 0:b.getEscalationOwner();var H=b==null?void 0:b.getDefaultEscalationOwner();switch(b==
null?void 0:Ml(b,QAa)){case 9:b=Lj(im(b,Gj,9,QAa));break;case 10:b={emailAddress:"",obfuscatedEmailAddress:"",userGaiaStatus:"UNSPECIFIED",aliases:[]};break;default:b=void 0}b={escalationOwner:E?Lj(E):void 0,defaultEscalationOwner:H?Lj(H):void 0,escalationOwnerOverride:b}}else b=void 0;return{teamId:c,version:f,name:e,description:h,pathNames:k,pathIds:q,collapsedPathNames:v,members:A,deleted:a,slo:d,extra:b}},PAa=function(a){var b=a.getUser();return{user:b?Lj(b):{},isLead:a.getIsLead()}},TAa=function(a){return(new SAa).setIsLead(a.isLead).setUser(Kj(a.user))},
UAa=function(a){var b=new qn;b.setInherit(a.inherit).setId(Number(a.sloId)).setComment(a.comment).setSourceTeamId(Number(a.sourceTeamId));return b},VAa=function(a){return(new rn).setInherit(a.inherit).setId(a.id)},WAa=function(a){return{teamId:Uc(a.getTeamId()),score:a.getScore()}},YAa=function(a){return(new XAa).setTeamId(a.teamId).setScore(a.score)},ZAa=function(a){var b=Sj(a,sn,4,Bj()).map(GAa);b=new Map(b.map(function(h){return[h.fieldId.customFieldId,h]}));var c,d,e=(d=(c=Sj(a,om,5,Bj()))==null?
void 0:c.map(eya))!=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(JAa);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:Ck(a,1).map(Oj).filter(Qj),componentPathName:Aj(a,2,Bj(Cj)),allCustomField:e,fieldConfigsMap:b,fieldConfigsV2Map:c}},
$Aa=function(a){switch(a){case "ALL_PROTECTIONS":return 2;case "NO_PROTECTIONS":return 1;case "SPAM_PROTECTION_UNSPECIFIED":return 0;default:return 0}},cBa=function(a){var b=tk(a,$l,15)?Kxa(W(a,$l,15)):void 0,c=tk(a,tn,7)?ZAa(W(a,tn,7)):void 0;if(a.hasSlo()){var d=a.getSlo();var e=d.getInherit(),f=d.getSource();d={inherit:e,source:aBa[f],id:Oj(d.getId_asString()),sourceComponentId:Oj(Bk(d,6)),sourceTeamId:Oj(d.getSourceTeamId_asString()),comment:d.getComment()}}else d=void 0;var h;if(tk(a,qm,18)){f=
a.getEffortSpec();e=f.getInherit();var k=Uc(f.getId()),q=f.getName();a:switch(pk(f,6)){case 2:var v="MAX";break a;case 1:v="SUM";break a;default:v="AGGREGATION_TYPE_UNSPECIFIED"}e={inherit:e,id:k,name:q,aggregationType:v,customFieldId:Uc(f.getCustomFieldId())};if(vm(f,lya,4,un)){if(h=im(f,lya,4,un))e.numericSpec={multiplier:hm(h,1)}}else if(vm(f,oya,5,un)&&(f=im(f,oya,5,un),e.enumSpec={options:[]},f&&(f==null?void 0:(h=Sj(f,rm,1,Bj()))==null?void 0:h.length)>0))for(h=l(Sj(f,rm,1,Bj())),f=h.next();!f.done;f=
h.next())f=f.value,q=k=void 0,(k=e.enumSpec)==null||(q=k.options)==null||q.push({label:f.getLabel(),value:f.getValue()});h=e}else h=void 0;a.hasTeam()?(e=a.getTeam(),e={inherit:e.getInherit(),id:String(e.getId())}):e=void 0;f=txa(a.getAccessLimit());k=pk(a,21);k=k===2?"ALL_PROTECTIONS":k===1?"NO_PROTECTIONS":"SPAM_PROTECTION_UNSPECIFIED";q=Uc(a.getTrackerId())?String(a.getTrackerId()):void 0;var A,E;v=a.getComponentId_asString();var H=Oj(Bk(a,3)),L=a.getName(),O=a.getDescription(),S=a.getIsArchived(),
aa="buganizer-system+"+a.getComponentId()+"@google.com";var ka=pk(a,10)===1?"ENABLED":"DISABLED";var na=Uc(xk(a,6)),za=Mj(na);if(za==null)throw Error("Tb`"+na);na=String(xk(a,14));var Na=pk(a,17);return{componentId:v,parentComponentId:H,name:L,description:O,archived:S,componentPathInfo:c,accessLimit:f,emailAlias:aa,commentEditState:ka,defaultTemplateId:za,slo:d,bugscopeSloId:na,retentionSettings:b,fieldOrdering:bBa[Na],effortSpec:h,team:e,teamSuggestions:(E=(A=a.getTeamSuggestionsList())==null?void 0:
A.map(WAa))!=null?E:[],trackerId:q==="0"?void 0:q,spamProtection:k}},dBa=function(a){return{author:Lj(a.getAuthor()),timestamp:ak(a.getTimestamp()),add:cBa(a.getAdd()),remove:cBa(a.getRemove()),addMask:Aya(a.getAddMask()),removeMask:Aya(a.getRemoveMask())}},fBa=function(a){a=a.getIt();var b;return{updates:((b=Sj(a,eBa,1,Bj()))!=null?b:[]).map(dBa)}},vn=function(a){return cBa(a.getIt())},gBa=function(a){var b=new wn;b=Xl(b,3,a.parentComponentId).setName(a.name).setDescription(a.description);a.commentEditState&&
b.setCommentEditState(a.commentEditState==="ENABLED"?1:2);a.retentionSettings&&(a=Mxa(a.retentionSettings),X(b,$l,15,a));return(new xn).setIt(b)},hBa=function(a){var b;return((b=a.getComponentsList())!=null?b:[]).map(vn)},iBa=function(a){return{warningHeader:Rc(a,1,void 0,Nc),warning:Rc(a,2,void 0,Nc),isAllowed:kk(a,3,void 0,Nc),isExternalMove:kk(a,4,void 0,Nc)}},kBa=function(a){a=a.getIt();var b=gza(a.getIssueState());a.getComment()&&(b.comment=a.getComment());a.getFormattingMode()&&(b.formattingMode=
jBa[a.getFormattingMode()]);return{componentId:Oj(a.getComponentId_asString()),templateId:Uc(a.getTemplateId()),name:a.getName(),description:a.getDescription(),default:kk(a,9),inheritable:kk(a,10),snapshot:b}},mBa=function(a){var b=new yn,c=b.setIt;var d=(new lBa).setFormattingMode(Cm(a.snapshot.formattingMode)).setComment(a.snapshot.comment).setComponentId(a.componentId).setTemplateId(a.templateId).setName(a.name).setDescription(a.description);d=pm(d,9,a.default);a=pm(d,10,a.inheritable).setIssueState(nza(a.snapshot));
return c.call(b,a)},nBa=function(a){a=Sj(a,xn,1,Bj(),Nc);return(a!=null?a:[]).map(vn)},oBa=function(a){var b,c;return((c=(b=a.getIt())==null?void 0:b.getComponentsList())!=null?c:[]).map(cBa)},pBa=function(a){return{componentPath:a.getComponentPath(),retentionSettings:Kxa(W(a,$l,3))}},rBa=function(a){return Sj(a,qBa,2,Bj(),Nc).map(pBa)},sBa=function(a){return kBa(W(a,yn,1,Nc))},tBa=function(a){return(Sj(a,yn,1,Bj(),Nc)||[]).map(kBa)},uBa=function(a,b,c){var d=c.path.split("/");if(d.length>a.length||
c.pathMatch==="full"&&(b.hasChildren()||d.length<a.length))return null;b={};for(c=0;c<d.length;c++){var e=d[c],f=a[c];if(e[0]===":")b[e.substring(1)]=f;else if(e!==f.path)return null}return{consumed:a.slice(0,d.length),posParams:b}},zn=function(a,b){var c=a?vBa(a):void 0,d=b?vBa(b):void 0;if(!c||!d||c.length!=d.length)return!1;for(var e=0;e<c.length;e++)if(d=c[e],!wBa(a[d],b[d]))return!1;return!0},vBa=function(a){return[].concat(p(Object.keys(a)),p(Object.getOwnPropertySymbols(a)))},wBa=function(a,
b){if(Array.isArray(a)&&Array.isArray(b)){if(a.length!==b.length)return!1;a=[].concat(p(a)).sort();var c=[].concat(p(b)).sort();return a.every(function(d,e){return c[e]===d})}return a===b},An=function(a){return Ska(a)?a:Oja(a)?Ef(Promise.resolve(a)):Nf(a)},zBa=function(a,b,c){return xBa[c.paths](a.root,b.root,c.matrixParams)&&yBa[c.queryParams](a.queryParams,b.queryParams)&&!(c.fragment==="exact"&&a.fragment!==b.fragment)},ABa=function(a,b){return zn(a,b)},CBa=function(a,b,c){if(!Bn(a.segments,b.segments)||
!BBa(a.segments,b.segments,c)||a.numberOfChildren!==b.numberOfChildren)return!1;for(var d in b.children)if(!a.children[d]||!CBa(a.children[d],b.children[d],c))return!1;return!0},DBa=function(a,b){return Object.keys(b).length<=Object.keys(a).length&&Object.keys(b).every(function(c){return wBa(a[c],b[c])})},FBa=function(a,b,c){return EBa(a,b,b.segments,c)},EBa=function(a,b,c,d){if(a.segments.length>c.length)return a=a.segments.slice(0,c.length),Bn(a,c)&&!b.hasChildren()&&BBa(a,c,d)?!0:!1;if(a.segments.length===
c.length){if(!Bn(a.segments,c)||!BBa(a.segments,c,d))return!1;for(var e in b.children)if(!a.children[e]||!FBa(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 Bn(a.segments,e)&&BBa(a.segments,e,d)&&a.children.primary?EBa(a.children.primary,b,c,d):!1},BBa=function(a,b,c){return b.every(function(d,e){return yBa[c](a[e].parameters,d.parameters)})},GBa=function(a,b){return Bn(a,b)&&a.every(function(c,d){return zn(c.parameters,b[d].parameters)})},
Bn=function(a,b){return a.length!==b.length?!1:a.every(function(c,d){return c.path===b[d].path})},HBa=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},KBa=function(a){return a.segments.map(function(b){return IBa(b.path)+JBa(b.parameters)}).join("/")},LBa=function(a,
b){if(!a.hasChildren())return KBa(a);if(b){b=a.children.primary?LBa(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+":"+LBa(e,!1))});return c.length>0?b+"("+c.join("//")+")":b}b=HBa(a,function(d,e){return e==="primary"?[LBa(a.children.primary,!1)]:[e+":"+LBa(d,!1)]});return Object.keys(a.children).length===1&&a.children.primary!=null?KBa(a)+"/"+b[0]:KBa(a)+"/("+b.join("//")+")"},MBa=function(a){return encodeURIComponent(a).replace(/%40/g,
"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")},NBa=function(a){return MBa(a).replace(/%3B/gi,";")},IBa=function(a){return MBa(a).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")},JBa=function(a){return Object.entries(a).map(function(b){var c=l(b);b=c.next().value;c=c.next().value;return";"+IBa(b)+"="+IBa(c)}).join("")},OBa=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 NBa(c)+
"="+NBa(d)}).join("&"):NBa(c)+"="+NBa(b)}).filter(function(b){return b});return a.length?"?"+a.join("&"):""},QBa=function(a){return(a=a.match(PBa))?a[0]:""},RBa=function(a){var b={};return a.segments.length>0?new Cn([],(b.primary=a,b)):a},SBa=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=SBa(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 Cn(a.segments,b);a.numberOfChildren===1&&a.children.primary&&(b=a.children.primary,a=new Cn(a.segments.concat(b.segments),b.children));return a},En=function(a){return a instanceof Dn},TBa=function(a){function b(f){for(var h={},k=l(f.children),q=k.next();!q.done;q=k.next()){q=q.value;var v=b(q);h[q.outlet]=v}h=new Cn(f.url,h);f===a&&(c=h);return h}var c,d=b(a.root);d=RBa(d);
var e;return(e=c)!=null?e:d},$Ba=function(a,b,c,d){for(var e=a;e.parent;)e=e.parent;if(b.length===0)return UBa(e,e,e,c,d);b=VBa(b);if(b.isAbsolute&&b.commands.length===1&&b.commands[0]=="/")return UBa(e,e,new Cn([],{}),c,d);var f=e;if(b.isAbsolute)a=new WBa(f,!0,0);else if(a)if(a.parent===null)a=new WBa(a,!0,0);else{f=a;a=a.segments.length-1+(XBa(b.commands[0])?0:1);for(var h=b.numberOfDoubleDots;h>a;){h-=a;f=f.parent;if(!f)throw new Vd(4005,!1);a=f.segments.length}a=new WBa(f,!1,a-h)}else a=new WBa(f,
!1,NaN);b=a.processChildren?YBa(a.segmentGroup,a.index,b.commands):ZBa(a.segmentGroup,a.index,b.commands);return UBa(e,a.segmentGroup,b,c,d)},XBa=function(a){return typeof a==="object"&&a!=null&&!a.outlets&&!a.segmentPath},aCa=function(a){return typeof a==="object"&&a!=null&&a.outlets},UBa=function(a,b,c,d,e){var f={};d&&Object.entries(d).forEach(function(h){var k=l(h);h=k.next().value;k=k.next().value;f[h]=Array.isArray(k)?k.map(function(q){return""+q}):""+k});a=a===b?c:bCa(a,b,c);a=RBa(SBa(a));
return new Dn(a,f,e)},bCa=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:bCa(f,b,c)});return new Cn(a.segments,d)},VBa=function(a){if(typeof a[0]==="string"&&a.length===1&&a[0]==="/")return new cCa(!0,0,a);var b=0,c=!1;a=a.reduce(function(d,e,f){if(typeof e==="object"&&e!=null){if(e.outlets){var h={};Object.entries(e.outlets).forEach(function(k){var q=l(k);k=q.next().value;q=q.next().value;h[k]=typeof q==="string"?
q.split("/"):q});return[].concat(p(d),[{outlets:h}])}if(e.segmentPath)return[].concat(p(d),[e.segmentPath])}return typeof e!=="string"?[].concat(p(d),[e]):f===0?(e.split("/").forEach(function(k,q){if(q!=0||k!==".")q==0&&k===""?c=!0:k===".."?b++:k!=""&&d.push(k)}),d):[].concat(p(d),[e])},[]);return new cCa(c,b,a)},dCa=function(a){if(aCa(a[0]))return a[0].outlets;var b={};return b.primary=a,b},ZBa=function(a,b,c){a!=null||(a=new Cn([],{}));if(a.segments.length===0&&a.hasChildren())return YBa(a,b,c);
a:{var d=a;for(var e=0,f=b,h={match:!1,pathIndex:0,commandIndex:0};f<d.segments.length;){if(e>=c.length){d=h;break a}var k=d.segments[f],q=c[e];if(aCa(q))break;q=""+q;var v=e<c.length-1?c[e+1]:null;if(f>0&&q===void 0)break;if(q&&v&&typeof v==="object"&&v.outlets===void 0){if(q!=k.path||!zn(v,k.parameters)){d=h;break a}e+=2}else{v={};if(q!=k.path||!zn(v,k.parameters)){d=h;break a}e++}f++}d={match:!0,pathIndex:f,commandIndex:e}}e=c.slice(d.commandIndex);return d.match&&d.pathIndex<a.segments.length?
(b=new Cn(a.segments.slice(0,d.pathIndex),{}),b.children.primary=new Cn(a.segments.slice(d.pathIndex),a.children),YBa(b,0,e)):d.match&&e.length===0?new Cn(a.segments,{}):d.match&&!a.hasChildren()?eCa(a,b,c):d.match?YBa(a,0,e):eCa(a,b,c)},YBa=function(a,b,c){if(c.length===0)return new Cn(a.segments,{});var d=dCa(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=YBa(a.children.primary,b,c),new Cn(a.segments,
c.children);Object.entries(d).forEach(function(f){var h=l(f);f=h.next().value;h=h.next().value;typeof h==="string"&&(h=[h]);h!==null&&(e[f]=ZBa(a.children[f],b,h))});Object.entries(a.children).forEach(function(f){var h=l(f);f=h.next().value;h=h.next().value;d[f]===void 0&&(e[f]=h)});return new Cn(a.segments,e)},eCa=function(a,b,c){for(var d=a.segments.slice(0,b),e=0;e<c.length;){var f=c[e];if(aCa(f))return a=fCa(f.outlets),new Cn(d,a);if(e===0&&XBa(c[0]))d.push(new Fn(a.segments[b].path,gCa(c[0]))),
e++;else{f=aCa(f)?f.outlets.primary:""+f;var h=e<c.length-1?c[e+1]:null;f&&h&&XBa(h)?(d.push(new Fn(f,gCa(h))),e+=2):(d.push(new Fn(f,{})),e++)}}return new Cn(d,{})},fCa=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]=eCa(new Cn([],{}),0,d))});return b},gCa=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},hCa=function(a,
b){a.providers&&!a._injector&&(a._injector=Gja(a.providers,b,"Route: "+a.path));var c;return(c=a._injector)!=null?c:b},Gn=function(a){return a.outlet||"primary"},iCa=function(a,b){var c=a.filter(function(d){return Gn(d)===b});c.push.apply(c,p(a.filter(function(d){return Gn(d)!==b})));return c},Hn=function(a){if(!a)return null;var b;if((b=a.routeConfig)==null?0:b._injector)return a.routeConfig._injector;for(a=a.parent;a;a=a.parent){b=a.routeConfig;var c=void 0;if((c=b)==null?0:c._loadedInjector)return b._loadedInjector;
c=void 0;if((c=b)==null?0:c._injector)return b._injector}return null},jCa=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=jCa(a,c.value))return c;return null},kCa=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=kCa(a,d.value),d.length)return d.unshift(b),d;return[]},lCa=function(a){var b={};a&&a.children.forEach(function(c){return b[c.value.outlet]=c});return b},nCa=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[mCa]=
d.title);return a},oCa=function(a,b){b.value._routerState=a;b.children.forEach(function(c){return oCa(a,c)})},pCa=function(a){var b=a.children.length>0?" { "+a.children.map(pCa).join(", ")+" } ":"";return""+a.value+b},qCa=function(a){if(a.snapshot){var b=a.snapshot,c=a._futureSnapshot;a.snapshot=c;zn(b.queryParams,c.queryParams)||a.queryParamsSubject.next(c.queryParams);b.fragment!==c.fragment&&a.fragmentSubject.next(c.fragment);zn(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(!zn(d[f],e[f])){d=!1;break a}d=!0}}d||a.urlSubject.next(c.url);zn(b.data,c.data)||a.dataSubject.next(c.data)}else a.snapshot=a._futureSnapshot,a.dataSubject.next(a._futureSnapshot.data)},rCa=function(a,b){var c=zn(a.params,b.params)&&GBa(a.url,b.url),d=!a.parent!==!b.parent;return c&&!d&&(!a.parent||rCa(a.parent,b.parent))},sCa=function(a){var b=a.children&&a.children.map(sCa);a=b?Object.assign({},a,{children:b}):Object.assign({},
a);a.component||a.loadComponent||!b&&!a.loadChildren||!a.outlet||a.outlet==="primary"||(a.component=tCa);return a},wCa=function(a,b,c){a=uCa(a,b._root,c?c._root:void 0);return new vCa(a,b)},uCa=function(a,b,c){if(c&&a.shouldReuseRoute(b.value,c.value.snapshot)){var d=c.value;d._futureSnapshot=b.value;b=xCa(a,b,c);return new In(d,b)}d=yCa(b.value);b=b.children.map(function(e){return uCa(a,e)});return new In(d,b)},xCa=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 uCa(a,d,f);return uCa(a,d)})},yCa=function(a){return new Jn(new Kn(a.url),new Kn(a.params),new Kn(a.queryParams),new Kn(a.fragment),new Kn(a.data),a.outlet,a.component,a)},ACa=function(a){var b=En(a)?{redirectTo:a,navigationBehaviorOptions:void 0}:a;a=b.redirectTo;b=b.navigationBehaviorOptions;var c=zCa(0);c.url=a;c.navigationBehaviorOptions=b;return c},zCa=function(a){var b=Error("Vb`");b.ngNavigationCancelingError=!0;b.cancellationCode=
a;return b},BCa=function(a){return!!a&&a.ngNavigationCancelingError},Ln=function(){return xg(function(a){return Uf(a.map(function(b){return b.pipe(mg(1),wg(CCa))})).pipe(C(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c!==!0){if(c===CCa)return CCa;if(c===!1||En(c))return c}return!0}),eg(function(b){return b!==CCa}),mg(1))})},Mn=function(a,b){var c=Symbol(),d=b.get(a,c);return d===c?typeof a!=="function"||pfa(a)!==null?b.get(a):a:d},FCa=function(a,b,c,d,e){e=e===void 0?{canDeactivateChecks:[],
canActivateChecks:[]}:e;var f=lCa(b);a.children.forEach(function(h){var k=f[h.value.outlet],q=d.concat([h.value]),v=e;v=v===void 0?{canDeactivateChecks:[],canActivateChecks:[]}:v;var A=h.value,E=k?k.value:null,H=c?c.getContext(h.value.outlet):null;if(E&&A.routeConfig===E.routeConfig){var L=DCa(E,A,A.routeConfig.runGuardsAndResolvers);L?v.canActivateChecks.push(new ECa(q)):(A.data=E.data,A._resolvedData=E._resolvedData);A.component?FCa(h,k,H?H.children:null,q,v):FCa(h,k,c,q,v);L&&H&&H.outlet&&H.outlet.isActivated&&
v.canDeactivateChecks.push(new GCa(H.outlet.component,E))}else E&&HCa(k,H,v),v.canActivateChecks.push(new ECa(q)),A.component?FCa(h,null,H?H.children:null,q,v):FCa(h,null,c,q,v);delete f[h.value.outlet]});Object.entries(f).forEach(function(h){var k=l(h);h=k.next().value;k=k.next().value;return HCa(k,c.getContext(h),e)});return e},DCa=function(a,b,c){if(typeof c==="function")return c(a,b);switch(c){case "pathParamsChange":return!Bn(a.url,b.url);case "pathParamsOrQueryParamsChange":return!Bn(a.url,
b.url)||!zn(a.queryParams,b.queryParams);case "always":return!0;case "paramsOrQueryParamsChange":return!rCa(a,b)||!zn(a.queryParams,b.queryParams);default:return!rCa(a,b)}},HCa=function(a,b,c){var d=lCa(a),e=a.value;Object.entries(d).forEach(function(f){var h=l(f);f=h.next().value;h=h.next().value;e.component?b?HCa(h,b.children.getContext(f),c):HCa(h,null,c):HCa(h,b,c)});e.component?b&&b.outlet&&b.outlet.isActivated?c.canDeactivateChecks.push(new GCa(b.outlet.component,e)):c.canDeactivateChecks.push(new GCa(null,
e)):c.canDeactivateChecks.push(new GCa(null,e))},ICa=function(a){return typeof a==="function"},JCa=function(a){return a instanceof Qf||(a==null?void 0:a.name)==="EmptyError"},MCa=function(a,b){return Vf(function(c){var d=c.targetSnapshot,e=c.currentSnapshot,f=c.guards,h=f.canActivateChecks;f=f.canDeactivateChecks;return f.length===0&&h.length===0?Nf(Object.assign({},c,{guardsResult:!0})):KCa(f,d,e,a).pipe(Vf(function(k){return k&&typeof k==="boolean"?LCa(d,h,a,b):Nf(k)}),C(function(k){return Object.assign({},
c,{guardsResult:k})}))})},KCa=function(a,b,c,d){return Ef(a).pipe(Vf(function(e){return NCa(e.component,e.route,c,b,d)}),qg(function(e){return e!==!0},!0))},LCa=function(a,b,c,d){return Ef(b).pipe(jg(function(e){var f=e.route.parent;f!==null&&d&&d(new OCa(f));f=Nf(!0);var h=e.route;h!==null&&d&&d(new PCa(h));h=Nf(!0);return Xf(f,h,QCa(a,e.path,c),RCa(a,e.route,c))}),qg(function(e){return e!==!0},!0))},RCa=function(a,b,c){var d=b.routeConfig?b.routeConfig.canActivate:null;if(!d||d.length===0)return Nf(!0);
d=d.map(function(e){return Yf(function(){var f,h=(f=Hn(b))!=null?f:c,k=Mn(e,h);f=k&&ICa(k.canActivate)?k.canActivate(b,a):oe(h,function(){return k(b,a)});return An(f).pipe(qg())})});return Nf(d).pipe(Ln())},QCa=function(a,b,c){var d=b[b.length-1];b=b.slice(0,b.length-1).reverse().map(function(e){var f=e.routeConfig?e.routeConfig.canActivateChild:null;return f&&f.length!==0?{node:e,guards:f}:null}).filter(function(e){return e!==null}).map(function(e){return Yf(function(){var f=e.guards.map(function(h){var k,
q=(k=Hn(e.node))!=null?k:c,v=Mn(h,q);h=v&&ICa(v.canActivateChild)?v.canActivateChild(d,a):oe(q,function(){return v(d,a)});return An(h).pipe(qg())});return Nf(f).pipe(Ln())})});return Nf(b).pipe(Ln())},NCa=function(a,b,c,d,e){var f=b&&b.routeConfig?b.routeConfig.canDeactivate:null;if(!f||f.length===0)return Nf(!0);f=f.map(function(h){var k,q=(k=Hn(b))!=null?k:e,v=Mn(h,q);h=v&&ICa(v.canDeactivate)?v.canDeactivate(a,b,c,d):oe(q,function(){return v(a,b,c,d)});return An(h).pipe(qg())});return Nf(f).pipe(Ln())},
TCa=function(a,b,c){var d=b.canLoad;if(d===void 0||d.length===0)return Nf(!0);d=d.map(function(e){var f=Mn(e,a);e=f&&ICa(f.canLoad)?f.canLoad(b,c):oe(a,function(){return f(b,c)});return An(e)});return Nf(d).pipe(Ln(),SCa())},SCa=function(){return Bf(zg(function(a){if(typeof a!=="boolean")throw ACa(a);}),C(function(a){return a===!0}))},UCa=function(a,b,c){var d=b.canMatch;if(!d||d.length===0)return Nf(!0);d=d.map(function(e){var f=Mn(e,a);e=f&&ICa(f.canMatch)?f.canMatch(b,c):oe(a,function(){return f(b,
c)});return An(e)});return Nf(d).pipe(Ln(),SCa())},Nn=function(a){return Of(new VCa(a))},WCa=function(a,b,c){if(typeof a==="string")return Nf(a);var d=b.queryParams,e=b.fragment,f=b.routeConfig,h=b.url,k=b.outlet,q=b.params,v=b.data,A=b.title;return An(oe(c,function(){return a({params:q,data:v,queryParams:d,fragment:e,routeConfig:f,url:h,outlet:k,title:A})}))},ZCa=function(a,b,c,d){var e=XCa(a,b,c);if(!e.matched)return Nf(e);d=hCa(b,d);return UCa(d,b,c).pipe(C(function(f){return f===!0?e:Object.assign({},
YCa)}))},XCa=function(a,b,c){if(b.path==="**")return{matched:!0,parameters:c.length>0?(c.length>0?c[c.length-1]:null).parameters:{},consumedSegments:c,remainingSegments:[],positionalParamSegments:{}};if(b.path==="")return b.pathMatch==="full"&&(a.hasChildren()||c.length>0)?Object.assign({},YCa):{matched:!0,consumedSegments:[],remainingSegments:c,parameters:{},positionalParamSegments:{}};a=(b.matcher||uBa)(c,a,b);if(!a)return Object.assign({},YCa);var d={},e;Object.entries((e=a.posParams)!=null?e:
{}).forEach(function(h){var k=l(h);h=k.next().value;k=k.next().value;d[h]=k.path});e=a.consumed.length>0?Object.assign({},d,a.consumed[a.consumed.length-1].parameters):d;var f;return{matched:!0,consumedSegments:a.consumed,remainingSegments:c.slice(a.consumed.length),parameters:e,positionalParamSegments:(f=a.posParams)!=null?f:{}}},cDa=function(a,b,c,d){if(c.length>0&&$Ca(a,c,d)){var e=Cn;a=new Cn(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===""&&Gn(d)!==
"primary"){var f=new Cn([],{});c[Gn(d)]=f}c={segmentGroup:new e(b,c),slicedSegments:[]}}else if(c.length===0&&aDa(a,c,d)){b=Cn;e=a.segments;f=a.children;var h={};d=l(d);for(var k=d.next();!k.done;k=d.next())if(k=k.value,bDa(a,c,k)&&!f[Gn(k)]){var q=new Cn([],{});h[Gn(k)]=q}a=Object.assign({},f,h);c={segmentGroup:new b(e,a),slicedSegments:c}}else c={segmentGroup:new Cn(a.segments,a.children),slicedSegments:c};return c},$Ca=function(a,b,c){return c.some(function(d){return bDa(a,b,d)&&Gn(d)!=="primary"})},
aDa=function(a,b,c){return c.some(function(d){return bDa(a,b,d)})},bDa=function(a,b,c){return(a.hasChildren()||b.length>0)&&c.pathMatch==="full"?!1:c.path===""},dDa=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)})},eDa=function(a){return(a=a.value.routeConfig)&&a.path===""},fDa=function(a){var b=[],c=new Set;a=l(a);for(var d=a.next(),e={};!d.done;e={node$jscomp$168:void 0},d=a.next())e.node$jscomp$168=
d.value,eDa(e.node$jscomp$168)?(d=b.find(function(f){return function(h){return f.node$jscomp$168.value.routeConfig===h.value.routeConfig}}(e)),d!==void 0?(d.children.push.apply(d.children,p(e.node$jscomp$168.children)),c.add(d)):b.push(e.node$jscomp$168)):b.push(e.node$jscomp$168);a=l(c);for(e=a.next();!e.done;e=a.next())e=e.value,d=fDa(e.children),b.push(new In(e.value,d));return b.filter(function(f){return!c.has(f)})},hDa=function(a,b,c,d,e,f){return Vf(function(h){return(new gDa(a,b,c,d,h.extractedUrl,
f===void 0?"emptyOnly":f,e)).recognize().pipe(C(function(k){return Object.assign({},h,{targetSnapshot:k.state,urlAfterRedirects:k.tree})}))})},kDa=function(a,b){return Vf(function(c){var d=c.targetSnapshot,e=c.guards.canActivateChecks;if(!e.length)return Nf(c);var f=new Set(e.map(function(A){return A.route})),h=new Set;e=l(f);for(var k=e.next();!k.done;k=e.next())if(k=k.value,!h.has(k)){k=l(iDa(k));for(var q=k.next();!q.done;q=k.next())h.add(q.value)}var v=0;return Ef(h).pipe(jg(function(A){if(f.has(A))return jDa(A,
d,a,b);A.data=nCa(A,A.parent,a).resolve;return Nf(void 0)}),zg(function(){return v++}),qla(),Vf(function(){return v===h.size?Nf(c):cg}))})},iDa=function(a){var b=a.children.map(function(c){return iDa(c)}).flat();return[a].concat(p(b))},jDa=function(a,b,c,d){var e=a.routeConfig,f=a._resolve;(e==null?void 0:e.title)!==void 0&&typeof e.title!=="string"&&e.title!==null&&(f[mCa]=e.title);return Yf(function(){a.data=nCa(a,a.parent,c).resolve;return lDa(f,a,b,d).pipe(C(function(h){a._resolvedData=h;a.data=
Object.assign({},a.data,h);return null}))})},lDa=function(a,b,c,d){var e=vBa(a);if(e.length===0)return Nf({});var f={};return Ef(e).pipe(Vf(function(h){return mDa(a[h],b,c,d).pipe(qg(),zg(function(k){f[h]=k}))}),qla(),C(function(){return f}),hg(function(h){return JCa(h)?cg:Of(h)}))},mDa=function(a,b,c,d){var e,f=(e=Hn(b))!=null?e:d,h=Mn(a,f);a=h.resolve?h.resolve(b,c):oe(f,function(){return h(b,c)});return An(a)},nDa=function(a){return xg(function(b){var c=a(b);return c?Ef(c).pipe(C(function(){return b})):
Nf(b)})},oDa=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next())b.value.remove()},pDa=function(a,b){b=b.createElement("style");b.textContent=a;return b},qDa=function(a,b){b=b.createElement("link");b.setAttribute("rel","stylesheet");b.setAttribute("href",a);return b},sDa=function(a,b){return b.map(function(c){return c.replace(rDa,a)})},tDa=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},wDa=function(a){return encodeURIComponent(a).replace(uDa,function(b,c){var d;return(d=vDa[c])!=null?d:b})},xDa=function(a){return""+a},yDa=function(a){return typeof ArrayBuffer!=="undefined"&&a instanceof ArrayBuffer},zDa=function(a){return typeof Blob!=="undefined"&&a instanceof Blob},ADa=function(a){return typeof FormData!=="undefined"&&a instanceof FormData},BDa=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}},CDa=function(a,b){return b(a)},DDa=function(a,b){return function(c,d){return b.intercept(c,{handle:function(e){return a(e,
d)}})}},EDa=function(a,b,c){return function(d,e){return oe(c,function(){return b(d,function(f){return a(f,e)})})}},IDa=function(a,b){var c=a.url.toLowerCase();if(!r(FDa)||a.method==="GET"||a.method==="HEAD"||c.startsWith("http://")||c.startsWith("https://"))return b(a);c=r(GDa).getToken();var d=r(HDa);c==null||a.headers.has(d)||(a=a.clone({headers:a.headers.set(d,c)}));return b(a)},KDa=function(a){return function(b,c){var d,e=(d=c==null?void 0:c.injector)!=null?d:r(Cg);return new JDa(e,function(){var f=
typeof b==="function"?b():b;if(f!==void 0){typeof f==="string"&&(f={url:f});var h=f.headers instanceof On?f.headers:new On(f.headers),k=f.params instanceof Pn?f.params:new Pn({fromObject:f.params}),q,v;var A=new Qn((q=f.method)!=null?q:"GET",f.url,(v=f.body)!=null?v:null,{headers:h,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,integrity:f.integrity,timeout:f.timeout})}else A=void 0;return A},c==null?void 0:c.defaultValue,c==null?void 0:c.parse,c==null?void 0:c.equal)}},QDa=function(a,b,c){return An(oe(b,function(){return a.loadChildren()})).pipe(C(LDa),xg(MDa),Vf(function(d){return d instanceof NDa||Array.isArray(d)?Nf(d):Ef(Promise.resolve(new ODa(d)))}),C(function(d){c&&c(a);if(!Array.isArray(d)){var e=d.create(b).injector;d=e.get(PDa,[],{optional:!0,self:!0}).flat()}return{routes:d.map(sCa),
injector:e}}))},LDa=function(a){return a&&typeof a==="object"&&"default"in a?a["default"]:a},MDa=function(a){return Nf(a)},TDa=function(a,b,c){var d=a.get(RDa),e=a.get(ui);if(!e.startViewTransition||d.skipNextTransition)return d.skipNextTransition=!1,new Promise(function(v){return setTimeout(v)});var f,h=new Promise(function(v){f=v}),k=e.startViewTransition(function(){f();return SDa(a)});k.ready.catch(function(){});var q=d.onViewTransitionCreated;q&&oe(a,function(){return q({transition:k,from:b,to:c})});
return h},SDa=function(a){return new Promise(function(b){Ig({read:function(){return setTimeout(b)}},{injector:a})})},UDa=function(a,b){a.events.pipe(eg(function(c){return c instanceof Rn||c instanceof Sn||c instanceof Tn||c instanceof Un}),C(function(c){return c instanceof Rn||c instanceof Un?0:c instanceof Sn&&(c.code===0||c.code===1)?2:1}),eg(function(c){return c!==2}),mg(1)).subscribe(function(){b()})},VDa=function(a,b){return{"\u0275kind":a,"\u0275providers":b}},XDa=function(){if(WDa===void 0&&
(WDa=null,typeof window!=="undefined")){var a=window;a.trustedTypes!==void 0&&(WDa=a.trustedTypes.createPolicy("angular#components",{createHTML:function(b){return b}}))}return WDa},YDa=function(a){var b;return((b=XDa())==null?void 0:b.createHTML(a))||a},ZDa=function(){var a=r(ui),b=a?a.location:null;return{getPathname:function(){return b?b.pathname+b.search:""}}},$Da=function(a){return(new Vn).setIt(fAa(a))},Wn=function(a){return gAa(a.getIt())},bEa=function(a){a=W(a,aEa,1,Nc);return mAa(a.getIt())},
cEa=function(a){return jAa(a.getIt())},dEa=function(a){return cEa(a.getSearch())},eEa=function(a){return Sj(a,Xn,1,Bj(),Nc).map(cEa)},fEa=function(a){return{id:String(a.hotlistId),name:a.name,description:a.description,adminUsers:a.adminUsers,starred:!0,resourceType:"HOTLIST"}},gEa=function(a){switch(a.resourceType){case "HOTLIST":var b,c,d,e;return{id:String(a.hotlistId),name:a.name,description:(d=(b=a.hotlist)==null?void 0:b.description)!=null?d:"",adminUsers:(e=(c=a.hotlist)==null?void 0:c.adminUsers)!=
null?e:[],starred:!0,resourceType:"HOTLIST"};case "SAVED_SEARCH":var f,h,k,q;return{id:String(a.savedSearchId),name:a.name,description:(k=(f=a.savedSearch)==null?void 0:f.description)!=null?k:"",adminUsers:(q=(h=a.savedSearch)==null?void 0:h.adminUsers)!=null?q:[],starred:!0,resourceType:"SAVED_SEARCH"};case "BOOKMARK_GROUP":throw Error("jc");default:pb(a.resourceType,"Unexpected type in bookmarkItemToLink")}},hEa=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(gEa)}},lEa=function(a,b,c){var d=new Map,e=new Map,f=new Map,h=new Map,k=new Map;b=l(b);for(var q=b.next();!q.done;q=b.next())q=q.value,q.archived?e.set(q.bookmarkGroupId,q):d.set(q.bookmarkGroupId,q);b=[].concat(p(d.values())).flatMap(function(v){var A;return(A=v.item)!=null?A:[]});b=new Set(b.filter(function(v){return v.resourceType==="HOTLIST"}).map(function(v){return v.hotlistId}));
a=l(a);for(q=a.next();!q.done;q=a.next())q=q.value,b.has(q.hotlistId)||(q.archived?h.set(q.hotlistId,fEa(q)):f.set(q.hotlistId,fEa(q)));c=l(c);for(a=c.next();!a.done;a=c.next())a=a.value,k.set(a.searchId,{id:String(a.searchId),name:a.name,description:a.description,adminUsers:a.adminUsers,starred:!0,resourceType:"SAVED_SEARCH"});return{id:"current-user-bookmark-id",bookmarkGroups:iEa([].concat(p(d.values())).map(hEa)),archivedBookmarkGroups:iEa([].concat(p(e.values())).map(hEa)),hotlists:jEa(f.values()),
archivedHotlists:jEa(h.values()),savedSearches:kEa(k.values())}},mEa=function(a,b){var c=new Set(b.hotlists.map(function(k){return k.hotlistId})),d=new Set(b.bookmarkGroups.map(function(k){return k.bookmarkGroupId}));b=new Set(b.savedSearches.map(function(k){return k.searchId}));for(var e=l([].concat(p(a.hotlists),p(a.archivedHotlists))),f=e.next();!f.done;f=e.next())f=f.value,f.starred=c.has(Number(f.id));e=l([].concat(p(a.bookmarkGroups),p(a.archivedBookmarkGroups)));for(f=e.next();!f.done;f=e.next()){f=
f.value;f.starred=d.has(Number(f.id));var h=void 0;f=l((h=f.sublinks)!=null?h:[]);for(h=f.next();!h.done;h=f.next())switch(h=h.value,h.resourceType){case "HOTLIST":h.starred=c.has(Number(h.id));break;case "SAVED_SEARCH":h.starred=b.has(Number(h.id));break;case "BOOKMARK_GROUP":h.starred=d.has(Number(h.id));break;default:throw Error("kc");}}c=l(a.savedSearches);for(d=c.next();!d.done;d=c.next())d=d.value,d.starred=b.has(Number(d.id));return a},nEa=function(a){return dya(a.getIt())},pEa=function(a){return(new oEa).setIt(hya(a))},
qEa=function(a){a=a.getIt();return{customFields:a.getCustomFieldsList().map(dya),nextPageToken:a.getNextPageToken(),totalSize:a.getTotalSize()}},tEa=function(a){var b,c=(b=W(a,Yn,2,Nc))==null?void 0:pk(b,1),d;b=(d=W(a,Yn,2,Nc))==null?void 0:pk(d,4);var e,f,h,k;d=a.getId_asString();c={phase:c!=null?rEa[c]:"UNSPECIFIED",subphase:b!=null?sEa[b]:"TRIAGE_SUBPHASE_UNSPECIFIED",triagerEmail:(h=(e=W(a,Yn,2,Nc))==null?void 0:Rc(e,3))!=null?h:void 0,dismissed:(k=ak((f=W(a,Yn,2,Nc))==null?void 0:W(f,bk,5)))!=
null?k:void 0};a=Aj(a,4,Bj(),Nc);return{id:d,triage:c,clusterIds:a}},wEa=function(a){var b=new Yn;b=Rk(b,1,uEa[a.triage.phase]);b=Rk(b,4,vEa[a.triage.subphase]);b=Qk(b,3,a.triage.triagerEmail);if(a.triage.dismissed){var c=ck(a.triage.dismissed);X(b,bk,5,c)}b=(new Zn).setId(a.id).setTriage(b);return zc(b,4,Qb,a.clusterIds,Rb,Nc)},zEa=function(a){var b=a.getId_asString();if(b&&b!=="0"){var c={id:0};a=Sj(a,$n,2,Bj(),Nc).map(function(d){var e,f,h,k,q;return{scope:(f=d.getScope())!=null?f:void 0,showComponentColumn:(h=
kk(d,2))!=null?h:!1,config:Sj(d,xEa,3,Bj()).map(yEa)||[],id:(k=Uc(d.getId()))!=null?k:0,displayName:d.getDisplayName()||void 0,displayColumns:(q=(e=d.getDisplayColumns())==null?void 0:e.getColumnList().map(Hta).filter(Qj))!=null?q:[]}});a.length===0&&a.push(c);return{id:b,triage:a}}},yEa=function(a){switch(Ml(a,AEa)){case 1:return{type:"CUSTOM_FIELD",customFieldConfig:BEa(im(a,ao,1,AEa))};case 2:return{type:"HOTLIST",hotlistConfig:CEa(im(a,DEa,2,AEa))};default:throw Error("lc");}},IEa=function(a){var b=
new xEa;if(a.type==="CUSTOM_FIELD"&&a.customFieldConfig)a=EEa(a.customFieldConfig),nm(b,1,AEa,a);else if(a.type==="HOTLIST"&&a.hotlistConfig){a=a.hotlistConfig;var c=(new DEa).setHotlistIdsList(a.hotlistIds);a=Rk(c,2,FEa[a.operation]).setPhasesList(GEa(a.phases)).setSubphasesList(HEa(a.subphases));nm(b,2,AEa,a)}return b},BEa=function(a){var b,c=(b=Sj(a,JEa,2,Bj()).map(function(d){return{phases:d.getPhasesList().map(function(e){return rEa[e]}),subphases:d.getSubphasesList().map(function(e){return sEa[e]}),
value:Zxa(d.getValue())}}))!=null?b:[];return{customFieldId:a.getCustomFieldId_asString(),defaultValues:c}},EEa=function(a){var b=(new ao).setCustomFieldId(a.customFieldId);a=a.defaultValues.map(function(c){return(new JEa).setPhasesList(GEa(c.phases)).setSubphasesList(HEa(c.subphases)).setValue(aya(c.value))});Bm(b,2,a);return b},CEa=function(a){return{hotlistIds:a.getHotlistIdsList_asString(),operation:KEa[pk(a,2)],phases:a.getPhasesList().map(function(b){return rEa[b]}),subphases:a.getSubphasesList().map(function(b){return sEa[b]})}},
GEa=function(a){var b;return(b=a==null?void 0:a.map(function(c){return uEa[c]}))!=null?b:[]},HEa=function(a){var b;return(b=a==null?void 0:a.map(function(c){return vEa[c]}))!=null?b:[]},LEa=function(a){var b=new $n;a.scope&&b.setScope(a.scope);var c;Nk(b,2,a.showComponentColumn).setId(a.id).setDisplayName(a.displayName).setDisplayColumns(sua({column:(c=a.displayColumns)!=null?c:[]}));a.config&&(a=a.config.map(IEa),bo(b,3,xEa,a));return b},MEa=function(a){a==="[Deleted User]"&&(a="nobody@google.com");
a.includes("@")||(a+="@google.com");var b=new Gj;return Hj(b,1,a)},NEa=function(a){var b;return(b=a==null?void 0:a.trim().split(",").filter(Boolean).map(MEa))!=null?b:[]},co=function(a){var b;return(b=a==null?void 0:a.trim().split(",").filter(Boolean).map(Mj).filter(Qj))!=null?b:[]},eo=function(a){var b;return(b=a==null?void 0:a.trim().split(",").filter(Boolean))!=null?b:[]},PEa=function(a){var b=new fo,c=new fo,d=new Rm,e=new Rm;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(MEa(f.value)),go(b,"assignee")):(e.setAssignee(new Gj),go(c,"assignee"));break;case "attachments":break;case "blockedByIssueId":f.actionType==="ADD"?(d.addAllBlockedByIssueIds(co(f.value)),go(b,"blocked_by_issue_ids")):(e.addAllBlockedByIssueIds(co(f.value)),go(c,"blocked_by_issue_ids"));break;case "blockingIssueId":f.actionType==="ADD"?(d.addAllBlockingIssueIds(co(f.value)),go(b,"blocking_issue_ids")):(e.addAllBlockingIssueIds(co(f.value)),go(c,"blocking_issue_ids"));break;case "ccs":f.actionType===
"ADD"?(d.addAllCcs(NEa(f.value)),go(b,"ccs")):(e.addAllCcs(NEa(f.value)),go(c,"ccs"));break;case "changelists":f.actionType==="ADD"?(d.addAllCodeChanges(eo(f.value)),go(b,"code_changes")):(e.addAllCodeChanges(eo(f.value)),go(c,"code_changes"));break;case "collaborators":f.actionType==="ADD"?(d.addAllCollaborators(NEa(f.value)),go(b,"collaborators")):(e.addAllCollaborators(NEa(f.value)),go(c,"collaborators"));break;case "staffing":if(!f.staffingValue)break;f.actionType==="ADD"?(d.setStaffing(Wya(f.staffingValue)),
go(b,"staffing")):(e.setStaffing(Wya(f.staffingValue)),go(c,"staffing"));break;case "comment":break;case "componentId":d.setComponentId(Mj(f.value));go(b,"component_id");break;case "customField":if(!f.customFieldValue)break;var h=aya(f.customFieldValue);f.actionType==="ADD"?(d.addCustomFields(h),go(b,"custom_fields")):(e.addCustomFields(h),go(c,"custom_fields"));break;case "deletionReason":f.value!=null?(d.setDeletionReason(lza[f.value]),go(b,"deletion_reason")):(e.setDeletionReason(2),go(c,"deletion_reason"));
break;case "duplicateOfIssueId":(f=Mj(f.value))?(d.setCanonicalIssueId(f),go(b,"canonical_issue_id")):go(c,"canonical_issue_id");break;case "effortEstimate":f.value?(h=new Sm,f=Hj(h,2,f.value),d.setEffort(f),go(b,"effort")):(e.setEffort(new Sm),go(c,"effort"));break;case "foundInVersion":f.actionType==="ADD"?(h=d,f=eo(f.value),zc(h,17,Qb,f,Rb),go(b,"found_in_versions")):(h=e,f=eo(f.value),zc(h,17,Qb,f,Rb),go(c,"found_in_versions"));break;case "gerritChanges":h=(f.gerritChangeValue||[]).map(kza);f.actionType===
"ADD"?(d.addAllGerritChanges(h),go(b,"gerrit_changes")):(e.addAllGerritChanges(h),go(c,"gerrit_changes"));break;case "hotlists":f.actionType==="ADD"?(d.addAllHotlistIds(co(f.value)),go(b,"hotlist_ids")):(e.addAllHotlistIds(co(f.value)),go(c,"hotlist_ids"));break;case "inProd":d.setInProd(f.value==="true");go(b,"in_prod");break;case "type":d.setType(OEa[f.value]);go(b,"type");break;case "isArchived":d.setIsArchived(f.value==="true");go(b,"is_archived");break;case "isDeleted":d.setIsDeleted(f.value===
"true");go(b,"is_deleted");break;case "parentId":break;case "priority":d.setPriority(iza[f.value]);go(b,"priority");break;case "readState":break;case "reporter":d.setReporter(MEa(f.value));go(b,"reporter");break;case "severity":d.setSeverity(jza[f.value]);go(b,"severity");break;case "sloEndTime":(f=Mj(f.value))?(d.setSloEndTime(ck({seconds:f,nanos:0})),go(b,"slo_end_time")):(e.setSloEndTime(new bk),go(c,"slo_end_time"));break;case "sloSnoozeType":d.setSloSnoozeType(mza[f.value]);go(b,"slo_snooze_type");
break;case "sloStartTime":(f=Mj(f.value))?(d.setSloSnoozeUntil(ck({seconds:f,nanos:0})),go(b,"slo_snooze_until")):(e.setSloSnoozeUntil(new bk),go(c,"slo_snooze_until"));break;case "status":d.setStatus(hza[f.value]);go(b,"status");break;case "targetedToVersion":f.actionType==="ADD"?(h=d,f=eo(f.value),zc(h,18,Qb,f,Rb),go(b,"targeted_to_versions")):(h=e,f=eo(f.value),zc(h,18,Qb,f,Rb),go(c,"targeted_to_versions"));break;case "title":d.setTitle(f.value);go(b,"title");break;case "verifiedInVersion":f.actionType===
"ADD"?(h=d,f=eo(f.value),zc(h,19,Qb,f,Rb),go(b,"verified_in_versions")):(h=e,f=eo(f.value),zc(h,19,Qb,f,Rb),go(c,"verified_in_versions"));break;case "verifier":f.value?(d.setVerifier(MEa(f.value)),go(b,"verifier")):(e.setVerifier(new Gj),go(c,"verifier"));break;default:pb(f.fieldName,"Unhandled IssueFieldName in actionsToIssueStateChanges")}return{addMask:b,removeMask:c,stateAddBuilder:d,stateRemoveBuilder:e}},REa=function(a){var b=PEa(a.actions),c=b.addMask,d=b.removeMask,e=b.stateAddBuilder;b=b.stateRemoveBuilder;
c=(new QEa).setIssueId(Number(a.issueId)).setAdd(e).setRemove(b).setAddMask(c).setRemoveMask(d);(a=Ba(a.actions.filter(function(f){return f.fieldName==="comment"})))&&a.value!=null&&c.setIssueComment((new ho).setComment(a.value));return c},TEa=function(a,b,c,d){var e=new ko,f=e.setIt;a=(new SEa).setIssueId(a);b&&a.setIssueAccessLimit(qxa(b));c&&a.setAddedCollaboratorsList(c.map(Kj));d&&a.setRemovedCollaboratorsList(d.map(Kj));return f.call(e,a)},UEa=function(a){return(new lo).setIt((new mo).setIssueId(Number(a)))},
XEa=function(a){return(new VEa).setIt((new WEa).setIssueId(Number(a.issueId)).setComponentId(Number(a.componentId)))},$Ea=function(a){var b,c=new YEa,d=c.setIt,e=(new ZEa).setIssueId(String(a.issueId)).setComponentId(a.componentId);a=(b=a.setLimitViewTrusted)!=null?b:!1;b=pm(e,3,a);return d.call(c,b)},aFa=function(a){return{issueId:Oj(a.getIssueId_asString()),status:Pm[a.getStatus()],title:a.getTitle()}},dFa=function(a){var b=new bFa;b.setFieldName(a.fieldName);a.value&&b.setValue(a.value);a.actionType&&
Rk(b,3,cFa[a.actionType]);if(a.customFieldValue){var c=b.setCustomFieldValue;a=a.customFieldValue;a=(new no).setIt(aya(a));c.call(b,a)}return b},fFa=function(a){return(new eFa).setIt(REa(a))},jFa=function(a){var b=new gFa,c=a.addHotlistIds.map(String);vc(b,1,c,Hb);c=a.removeHotlistIds.map(String);vc(b,2,c,Hb);var d=a.hotlistIssue;a=(new an).setIssueId(Number(d.issueId));d.position&&a.setPosition(d.position);if(d.issue){c=a.setIssue;d=d.issue;var e=(new oo).setIssueId(d.issueId).setVersion(d.version).setCustomFieldsList(d.customFields.map(hya)),
f=d.visibleFields.map(Yxa);e=Bm(e,34,f).setMajorModifiedTime(ek(d.majorModifiedTimeMicros)).setParentIssueIdsList(d.parentIssueIds.map(Mj).filter(Qj)).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(nza(d.snapshot[0]));d.statusUpdate&&e.setStatusUpdate(aza(d.statusUpdate));if(d.userData){f=e.setUserData;
var h=d.userData,k=new hFa;h.voted&&pm(k,2,h.voted);h.starred&&pm(k,1,h.starred);h.notificationSubscription&&k.setNotificationSubscription(iFa[h.notificationSubscription]);h.lastViewedTimeMicros!==void 0&&(h=ek(h.lastViewedTimeMicros),X(k,bk,5,h));f.call(e,k)}if(d.aggregatedData){Xl(e,10,d.aggregatedData.voteCount).setCreatedTime(ek(d.aggregatedData.createdTimeMicros)).setResolvedTime(ek(d.aggregatedData.resolvedTimeMicros)).setVerifiedTime(ek(d.aggregatedData.verifiedTimeMicros)).setModifiedTime(ek(d.aggregatedData.modifiedTimeMicros));
d.aggregatedData.lastModifier&&(f=Kj(d.aggregatedData.lastModifier),X(e,Gj,14,f));if(d.aggregatedData.sloStatus){f=e.setSloStatus;h=d.aggregatedData.sloStatus;k=new po;if(h.assignmentBounds){var q=Iya(h.assignmentBounds);X(k,Em,1,q)}h.responseBounds&&(q=Iya(h.responseBounds),X(k,Em,2,q));h.closureBounds&&(h=Iya(h.closureBounds),X(k,Em,3,h));f.call(e,k)}d.aggregatedData.sloId&&e.setSloId(d.aggregatedData.sloId);d.aggregatedData.teamId&&e.setTeamId(d.aggregatedData.teamId);d.aggregatedData.retentionState&&
e.setRetentionState(Ixa(d.aggregatedData.retentionState))}d.accessLimit&&e.setAccessLimit(vxa(d.accessLimit));if(d.ancestors)for(f=e.getAncestorsMap(),k=l(d.ancestors.entries()),h=k.next();!h.done;h=k.next())q=l(h.value),h=q.next().value,q=q.next().value,f.set(jb(h),(new qo).setSourceIssueIdsList(q.sourceIssueIds.map(Mj).filter(Qj)));d.userActivityStats&&(f=d.userActivityStats,k=new vza,k=Xl(k,1,f.oneDayViewCount),k=Xl(k,2,f.sevenDayViewCount),f=Xl(k,3,f.thirtyDayViewCount),X(e,vza,47,f));d.escalationOwner&&
e.setEscalationOwner(Kj(d.escalationOwner));c.call(a,e)}a=(new ro).setIt(a);X(b,ro,3,a);return b},lFa=function(a){var b=Sj(a,kFa,1,Bj(),Nc);return{issueDigests:(b!=null?b:[]).map(aFa),numTotalResults:Uc(xk(a,2,void 0,Nc))}},oFa=function(a){var b=(new mFa).setIssueId(a.issueId).setRetention(Oxa(a.retention));a.significanceOverride&&b.setSignificanceOverride(gya[a.significanceOverride]);return(new nFa).setIt(b)},tFa=function(a){var b=new pFa,c=b.setIt,d=(new oo).setIssueState(nza(a.snapshot));a.snapshot.comment&&
d.setIssueComment((new ho).setComment(a.snapshot.comment).setFormattingMode(Cm(a.snapshot.formattingMode)));a.attachments&&d.addAllAttachments(a.attachments.map(Sxa));d=(new qFa).setIssue(d);if(a.templateId!=null){var e=new rFa;e=pm(e,1,!1).setTemplateId(a.templateId);X(d,rFa,3,e)}a.contentJudgement&&(e=d.setContentJudgement,a=sFa(Bxa(a.contentJudgement)),a=Jj(a,6,1),e.call(d,a));return c.call(b,d)},uFa=function(a){return{issueId:Oj(a.getIssueId_asString())}},wFa=function(a,b){a=(new vFa).setQuery(a);
b.s&&a.setOrderBy(eAa(b.s));b.count&&(a.setPageSize(b.count),b.p&&a.setPageToken("start_index:"+b.count*(b.p-1)));var c;return(new so).setIt(a).setTrackerIdsList((c=b.trackerIds)!=null?c:[])},IFa=function(a,b,c){a=xFa(new yFa,wFa(a,b));c.queryType&&Rk(a,2,zFa[c.queryType]);c.sortSpecs&&c.sortSpecs.length&&AFa(a,c.sortSpecs.map(function(d){var e=new BFa;e=Rk(e,1,CFa[d.sortType]);return Nk(e,2,d.sortDecreasing)}));c.experimentalFields&&DFa(a,wEa(c.experimentalFields));c.concatenator&&EFa(a,FFa((new GFa).setRelation(HFa[c.concatenator.relation]),
c.concatenator.experimentalSortPrimary));return a},JFa=function(a){return $ya(a.getIt())},KFa=function(a){var b=new to,c=b.setIt;var d=(new uo).setQuery(a.query);d=Jj(d,2,gya[a.minimumSignificance]);a=Zj(d,4,a.maximumSize);a=Jj(a,3,2);return c.call(b,a)},LFa=function(a){var b;return{isCommentEvent:!0,version:a.version,unlinkifiedComment:a.unlinkifiedComment,commentNumber:a.commentNumber,commentVersion:a.version,commentLastModifiedAtDate:nta(a.lastModified),commentRedacted:Pj(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}},MFa=function(a,b){var c,d,e;return{attachments:[],preDiffs:[],postDiffs:[],modifiedDate:Dta(ek((e=(c=b.aggregatedData)==null?void 0:c.createdTimeMicros)!=null?e:0)),userPerformingActionUser:a.lastEditorUser,
userPerformingAction:mta()(zj(a.lastEditorUser)),isCommentEvent:!0,commentVersion:a.version,version:a.version,commentLastModifiedAtDate:nta(a.lastModified),commentRedacted:Pj(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}},vo=function(a){if(a!=null&&a.getIssue())return a=a.getIssue(),a=a!=null?xza(a.getIt()):void 0,a},OFa=function(a){var b=new NFa;b.setIssueIdsList(a.issueIds.map(String));a=a.actions.map(dFa);Bm(b,1,a);return b},PFa=function(a){return{issueId:a.getIssueId_asString(),message:a.getMessage()}},RFa=function(a){for(var b={},c=l(uc(a,1,wo,Wb,Nc).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?Vm(e.getIt()):void 0;b[d]=e}c={};d=l(uc(a,3,xn,Wb,Nc).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]=vn(f)}a=Sj(a,QFa,2,Bj(),Nc);a=(a!=null?a:[]).map(PFa);return{affectedIssues:b,componentMap:c,errors:a}},SFa=function(a){var b;return((b=a.getIt().getIssueCommentsList())!=null?b:[]).map(um).map(LFa)},TFa=function(a){var b=a.getIt();tk(b,bk,3)?(a=a.getIt(),
a=W(a,bk,3),a=fk(a)):a=0;return{readTimestamp:a}},UFa=function(a){a=a.getIt();var b=a.getIssueState(),c=b.getAccessLimit();b={type:yya(b.getType()),status:Pm[b.getStatus()],priority:Qm[b.getPriority()],severity:cza[b.getSeverity()],componentId:Oj(b.getComponentId_asString()),accessLimitLevel:c!=null?rxa(c):null};return{issueId:String(a.getIssueId_asLegacyNumberOrString()),issueState:b,modifiedTime:ak(a.getModifiedTime()),teamId:a.getTeamId_asLegacyNumberOrString()}},VFa=function(a){return um(a.getIt())},
WFa=function(a){return a.getIt().getIssueCommentsList().map(um)},XFa=function(a){return rya(a==null?void 0:a.getIt())},YFa=function(a){a=a.getIt();return{issues:a.getIssuesList().filter(Qj).map(Vm),numTotalResults:a.getTotalSize(),positionMap:void 0,nextPageToken:a.getNextPageToken(),totalSizeAccurate:a.getTotalSizeAccurate(),maySkipResults:a.getMaySkipResults()}},$Fa=function(a){return{issueId:a.getIssueId_asString(),summaryType:ZFa[a.getSummaryType()],modelVersion:a.getModelVersion(),issueVersion:a.getIssueVersion(),
summary:a.getSummary(),formattedSummary:tk(a,ym,6)?uya(W(a,ym,6)):void 0}},eGa=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=Sc(a,aGa,b))==null?void 0:c.getValue()};case "google.protobuf.Int64Value":var d;return{type:"NUMBER",value:Vc((d=Sc(a,bGa,b))==null?void 0:d.getValue())};case "google.protobuf.StringValue":var e;return{type:"STRING",value:(e=Sc(a,cGa,b))==null?void 0:e.getValue()};case "google.protobuf.BoolValue":var f;
return{type:"BOOLEAN",value:(f=Sc(a,dGa,b))==null?void 0:f.getValue()};case "google.protobuf.Timestamp":return{type:"TIMESTAMP",value:ak(Sc(a,bk,b))};case "google.devtools.issuetracker.v1.User":return a=Sc(a,Gj,b),{type:"USER",value:a&&Lj(a)};case "google.devtools.issuetracker.v1.CustomFieldValue":return a=Sc(a,mm,b),{type:"CUSTOM_FIELD_VALUE",value:a&&Zxa(a)};case "google.devtools.issuetracker.v1.IssueAccessLimit":return a=Sc(a,Tl,b),{type:"ISSUE_ACCESS_LIMIT",value:a&&rxa(a)};case "google.devtools.issuetracker.v1.Issue.Effort":return a=
Sc(a,Sm,b),{type:"STRING",value:a&&iya(a).estimate};case "google.devtools.issuetracker.v1.EntityStatus":return a=Sc(a,Yl,b),{type:"ENTITY_STATUS",value:a&&Dxa(a)};case "google.devtools.issuetracker.v1.GerritChange":return a=Sc(a,Tm,b),{type:"GERRIT_CHANGE",value:a&&dza(a)};case "google.devtools.issuetracker.v1.Staffing.PlannedAllocation":return a=Sc(a,Hm,b),{type:"PLANNED_ALLOCATION",value:a&&Zya(a)};default:console.error("Unhandled type in parseProtoAny: "+b)}}},gGa=function(a){var b,c;return{issueId:String(a.getIssueId()),
version:a.getVersion(),author:Lj(a.getAuthor()),timestamp:ak(a.getTimestamp()),fieldUpdates:a.getFieldUpdatesList().map(fGa).filter(Qj),attachments:a.getAttachmentsList().map(Qxa),comment:a.hasIssueComment()&&Vc((b=a.getIssueComment())==null?void 0:b.getIssueId())!==0?um(a.getIssueComment()):void 0,statusUpdate:a.hasStatusUpdate()?$ya(a.getStatusUpdate()):void 0,statusUpdateEntityStatus:((c=a.getStatusUpdate())==null?0:c.getEntityStatus())?Dxa(a.getStatusUpdate().getEntityStatus()):void 0}},fGa=function(a){var b=
a.getField();if(Bya.has(b)){var c=Ml(a,hGa);switch(c){case 3:a:{if(c=im(a,iGa,3,hGa)){a=eGa(W(c,xo,1));var d=eGa(W(c,xo,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:jGa(im(a,kGa,4,hGa))};default:console.error("Unexpected ValueUpdate oneof in Proto for field id:"+c)}}else console.error('Unexpected IssueStateMask value: "'+
b+'"')},jGa=function(a){if(a){var b=Sj(a,xo,1,Bj()).map(eGa).filter(Qj);a=Sj(a,xo,2,Bj()).map(eGa).filter(Qj);var c=[].concat(p(b),p(a));if(c.length!==0)return{type:c[0].type,added:b.map(function(d){return d.value}),removed:a.map(function(d){return d.value})}}},yo=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},zo=function(a){a=yo(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},lGa=function(a){return a?Swa(lsa(a)):null},mGa=function(a){return a?(a=Ym(a),isNaN(a)?null:a):null},oGa=function(a){return nGa.format(Il(a))},pGa=function(a){return a.textValue!=null?a.textValue:a.dateValue!=null?oGa(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(oGa).join(", "):a.repeatedEnumValue!=null?a.repeatedEnumValue.values.join(", "):a.repeatedNumericValue!=null?a.repeatedNumericValue.values.map(String).join(", "):""},sGa=function(a){var b=a.fieldUpdates.map(function(c){return qGa(c,a)}).filter(Qj);a.statusUpdate&&b.push({name:"statusUpdate",displayName:"Status Update",type:"STATUS_UPDATE",important:!1,timestamp:ql(a.timestamp),statusUpdateDiff:a.statusUpdateEntityStatus?{entityStatus:a.statusUpdateEntityStatus}:
void 0});return rGa(b)},rGa=function(a){var b=a.filter(function(h){return h.name==="status"});a=a.filter(function(h){return h.name!=="status"});var c=[].concat(p(a),p(b));b=[];a=void 0;c=l(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.name==="canonicalId"?a=d:(d.name==="status"&&a&&(d.newValue==="Duplicate"&&(d.newValue="Duplicate of "+a.newValue),d.oldValue==="Duplicate"&&(d.oldValue="Duplicate of "+a.oldValue),a=void 0),b.push(d));var e,f;((e=a)==null?0:e.oldValue)&&((f=a)==null?0:f.newValue)&&
b.push({name:"status",displayName:"Status",type:"SINGLE_VALUE",important:!0,timestamp:a.timestamp,oldValue:"Duplicate of "+a.oldValue,newValue:"Duplicate of "+a.newValue});return b},qGa=function(a,b){var c=ql(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:Ao(e.oldValue),newValue:Ao(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(Jl),removed:e.removed.map(Jl)};case "blocking_issue_ids":return e=a.collectionUpdate,{name:"blockingId",displayName:"Blocking",type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(Jl),
removed:e.removed.map(Jl)};case "canonical_issue_id":return e=a.singleValueUpdate,{name:"canonicalId",displayName:"Canonical",type:"SINGLE_VALUE",important:!0,timestamp:c,oldValue:Nj(e.oldValue),newValue:Nj(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(Ao),removed:e.removed.map(Ao)};case "collaborators":return e=a.collectionUpdate,{name:"collaborators",displayName:"Collaborators",type:"USER_COLLECTION",
important:!1,timestamp:c,isUser:!0,added:e.added.map(Ao),removed:e.removed.map(Ao)};case "child_issue_ids":return e=a.collectionUpdate,{name:"childIssueIds",displayName:"Child Issue",type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(Jl),removed:e.removed.map(Jl)};case "code_changes":return e=a.collectionUpdate,Object.assign({},{name:"changelist",displayName:"Changelist",important:!1,timestamp:c},yva()?{type:"LINKED_COLLECTION",added:e.added.map($wa),removed:e.removed.map($wa)}:{type:"COLLECTION",
added:e.added,removed:e.removed});case "component_id":var f=a.singleValueUpdate,h;return{name:"component",displayName:"Component",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:(e=Nj(f.oldValue))!=null?e:"",newValue:(h=Nj(f.newValue))!=null?h:""};case "custom_fields":return e=a.singleValueUpdate,h=(e.oldValue||e.newValue).customFieldId,{customFieldId:h,name:String(h),displayName:"",type:"CUSTOM_FIELD",important:!1,timestamp:c,oldValue:tGa(e.oldValue),newValue:tGa(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(Jl),removed:e.removed.map(Jl)};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(Ha){return axa(Ha)}),removed:e.removed.map(function(Ha){return axa(Ha)})};case "hotlist_ids":return e=a.collectionUpdate,{name:"hotlist",displayName:"Hotlist",type:"LINKED_COLLECTION",important:!1,timestamp:c,added:e.added.map(bxa),removed:e.removed.map(bxa)};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(Jl),removed:e.removed.map(Jl)};case "staffing.planned_allocations":return e=a.collectionUpdate,e=exa(e.added,e.removed),{name:"staffing",displayName:"Staffing",important:!1,timestamp:c,type:"COLLECTION",added:e.additions,removed:e.removals};case "postmortems":return e=a.collectionUpdate,Object.assign({},{name:"postmortem",displayName:"Postmortem",timestamp:c,important:!1},yva()?{type:"LINKED_COLLECTION",added:e.added.map(cxa),removed:e.removed.map(cxa)}:
{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?Qm[e.oldValue]:"",newValue:e.newValue!=null?Qm[e.newValue]:""};case "retention":e=a.singleValueUpdate;var q,v;return{name:"retention",displayName:"Retention",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:(q=uGa(e.oldValue))!=null?q:"",newValue:(v=uGa(e.newValue))!=null?v:""};case "reporter":return e=
a.singleValueUpdate,{name:"reporter",displayName:"Reporter",type:"SINGLE_VALUE",important:!1,timestamp:c,isUser:!0,oldValue:Ao(e.oldValue),newValue:Ao(e.newValue)};case "severity":return e=a.singleValueUpdate,{name:"severity",displayName:"Severity",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:e.oldValue!=null?cza[e.oldValue]:"",newValue:e.newValue!=null?cza[e.newValue]:""};case "slo_snooze_until":e=a.singleValueUpdate;var A,E,H,L;return{name:"sloStartTime",displayName:"SLO Start Date",type:"SINGLE_VALUE",
important:!1,timestamp:c,oldValue:String((H=(A=e.oldValue)==null?void 0:A.seconds)!=null?H:"<none>"),newValue:String((L=(E=e.newValue)==null?void 0:E.seconds)!=null?L:"<none>")};case "slo_end_time":e=a.singleValueUpdate;var O,S,aa,ka;return{name:"sloEndTime",displayName:"SLO End Date",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:String((aa=(O=e.oldValue)==null?void 0:O.seconds)!=null?aa:"<none>"),newValue:String((ka=(S=e.newValue)==null?void 0:S.seconds)!=null?ka:"<none>")};case "status":e=
a.singleValueUpdate;var na,za;return{name:"status",displayName:"Status",type:"SINGLE_VALUE",important:!0,timestamp:c,oldValue:mj((na=Bo.get(e.oldValue))!=null?na:""),newValue:mj((za=Bo.get(e.newValue))!=null?za:"")};case "targeted_to_versions":return e=a.collectionUpdate,{name:"targetedTo",displayName:"Targeted to",type:"COLLECTION",important:!1,timestamp:c,added:e.added,removed:e.removed};case "title":e=a.singleValueUpdate;var Na,Pa;return{name:"title",displayName:"Title",type:"SINGLE_VALUE",important:!1,
timestamp:c,oldValue:(Na=e.oldValue)!=null?Na:"",newValue:(Pa=e.newValue)!=null?Pa:""};case "type":e=a.singleValueUpdate;var hb,ua;return{name:"type",displayName:"Type",type:"SINGLE_VALUE",important:!1,timestamp:c,oldValue:(hb=vGa.get(e.oldValue))!=null?hb:"",newValue:(ua=vGa.get(e.newValue))!=null?ua:""};case "verifier":return e=a.singleValueUpdate,{name:"verifier",displayName:"Verifier",type:"SINGLE_VALUE",important:!1,timestamp:c,isUser:!0,oldValue:Ao(e.oldValue),newValue:Ao(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:pb(d,"Unexpected IssueStateMask in fieldUpdateToDiff")}},Ao=function(a){return mta()(zj(a))},tGa=function(a){return a==null?"<none>":pGa(a)},uGa=function(a){if(a!=null)switch(fza[a]){case "COMPONENT_DEFAULT":return"Component Default";case "INDEFINITE":return"Indefinite"}},
AGa=function(a){var b=void 0,c=void 0;a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.updates.flatMap(function(A){return A.fieldUpdates}),f=void 0,h=(f=Ba(e.filter(function(A){return A.field==="assignee"})))==null?void 0:f.singleValueUpdate;h&&(b=wGa(h));f=void 0;var k=(f=Ba(e.filter(function(A){return A.field==="verifier"})))==null?void 0:f.singleValueUpdate;k&&(c=wGa(k));f=void 0;k=(f=Ba(e.filter(function(A){return A.field==="status"})))==null?void 0:f.singleValueUpdate;var q=void 0;
f=(q=Ba(e.filter(function(A){return A.field==="canonical_issue_id"})))==null?void 0:q.singleValueUpdate;q=void 0;e=(q=Ba(e.filter(function(A){return A.field==="is_archived"})))==null?void 0:q.singleValueUpdate;if(k){q=k.oldValue!=null?Pm[k.oldValue]:void 0;k=k.newValue!=null?Pm[k.newValue]:void 0;var v=void 0;f=Nj((v=f)==null?void 0:v.newValue);xGa(d,yGa({oldStatus:q,newStatus:k,currentAssignee:b,currentVerifier:c,canonicalIssueId:f,assigneeChanged:!!h}))}else h&&b?xGa(d,[Co("Reassigned to "),zGa(b),
Co(".")]):f&&(k=void 0,f=Nj((k=f)==null?void 0:k.newValue),xGa(d,yGa({oldStatus:"DUPLICATE",newStatus:"DUPLICATE",currentAssignee:b,currentVerifier:c,canonicalIssueId:f,assigneeChanged:!!h})));e&&xGa(d,[Co(e.newValue?"Archived.":"Unarchived.")])}},yGa=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&&wl.get(b);var h=c&&wl.get(c);if(b&&h&&!b.open&&h.open)return[Co("Status: "+h.displayValue+" (reopened)")];
switch(c){case "ASSIGNED":if(d)return[Co("Assigned to "),zGa(d),Co(".")];break;case "ACCEPTED":if(d)return[Co("Accepted by "),zGa(d),Co(".")];break;case "FIXED":return a&&d?[Co("Marked as fixed, reassigned to "),zGa(d),Co(".")]:[Co("Marked as fixed.")];case "VERIFIED":if(e)return[Co("Verified by "),zGa(e),Co(".")];break;case "DUPLICATE":if(f)return[Co("Status: Duplicate of "),{text:f,tag:"bug"}]}return[Co("Status: "+mj(h.displayValue))]},wGa=function(a){if(a)return a.newValue},Co=function(a){return{text:a,
tag:""}},zGa=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 Co(a.obfuscatedEmailAddress);break;case "DELETED":return Co("Deleted User");case "UNAVAILABLE":return Co("Unavailable User");default:return console.warn("Unexpected User Gaia status in userToTaggedText"),{text:""}}return Co("User")},DGa=function(a){if(!a.length)return[];a=Msa(a,function(b){return b.issueId}).flatMap(BGa);
return CGa(a,"DESCENDING")},BGa=function(a){if(!a.length)return[];a=EGa(a);AGa(a);return a.map(function(b){return FGa(b)}).filter(GGa)},GGa=function(a){var b;return a.postDiffs.length||a.preDiffs.length||a.commentNumber||a.attachments.length||((b=a.taggedSummary)==null?void 0:b.length)},EGa=function(a){var b=HGa(a,"ASCENDING");a=[new IGa];b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=Ba(a),e;var f=e=void 0;if(d.updates.length===0)e=!0;else{var h;if(!(h=d.hasInitialUpdate)&&!(h=!d.author||
!c.author)){h=d.author;var k=c.author;h=!(h===k||(h.emailAddress||k.emailAddress?h.emailAddress===k.emailAddress:(h.obfuscatedEmailAddress||k.obfuscatedEmailAddress)&&h.obfuscatedEmailAddress===k.obfuscatedEmailAddress))}if(h||d.comment&&c.comment)e=!1;else{if(h=(f=d.updates[0])==null?0:f.timestamp)f=(e=d.updates[0])==null?void 0:e.timestamp,h=Math.abs(ql(f)-ql(c.timestamp))>36E5;e=h?!1:!0}}e?JGa(d,c):a.push(JGa(new IGa,c))}return a},KGa=function(a){var b={};if(a==null)return b;a=Sj(a,Do,1,Bj(),Nc);
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},LGa=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})},Eo=function(a){return{id:a,triage:{phase:"NEW",subphase:"TRIAGE_SUBPHASE_UNSPECIFIED"},clusterIds:[]}},
MGa=function(a,b){var c=new Map(b.map(function(d){return[d==null?void 0:d.id,d]}));return a.filter(Qj).map(function(d){return Object.assign({},d,{experimentalFields:c.get(d.issueId)})})},OGa=function(){return NGa.performance&&NGa.PerformanceObserver&&typeof window.performance.getEntriesByType==="function"&&typeof window.performance.mark==="function"&&typeof window.performance.measure==="function"},PGa=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}}},RGa=function(a){a=a.sort(function(d,e){return d.startTime-e.startTime});var b=a.find(QGa);if(b!=null){var c=b.name.split(" -> ")[1];return a.find(function(d){return d.name===c})}},VGa=function(){var a=window.performance.getEntries(),b=RGa(a);if(b==null)return[];var c=b.startTime;return a.filter(SGa).filter(TGa).filter(UGa).filter(function(d){return d.startTime<=c})},QGa=function(a){var b=a.entryType;a=a.name;return b===
"measure"&&a.startsWith("browserStart")},SGa=function(a){return!a.name.startsWith("Zone")},UGa=function(a){return a.entryType==="resource"},WGa=function(a){return a.initiatorType==="xmlhttprequest"},TGa=function(a){return a.name.match(/\.html$/)==null},XGa=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}},ZGa=function(){return typeof YGa.gtag==="function"},$Ga=function(a){if(a!=
null&&!(a.duration>=3E4))return{hitType:"event",eventCategory:"cf",eventAction:a.from,eventLabel:a.to,eventValue:a.duration}},cHa=function(a){a=a.getEntries().map(PGa).map($Ga);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}:{});aHa(b,d)}}setTimeout(bHa,
100)},bHa=function(){if(!dHa){var a=VGa(),b=a.filter(function(c){return!WGa(c)}).reduce(XGa,eHa());Fo("r-until-cf","asset","count",b.count);Fo("r-until-cf","asset","transferSize",b.transferSize);Fo("r-until-cf","asset","duration",b.duration);Fo("r-until-cf","asset","cacheHitRate",b.cacheHitRate);a=a.filter(WGa).reduce(XGa,eHa());Fo("r-until-cf","xhr","count",a.count);Fo("r-until-cf","xhr","transferSize",a.transferSize);Fo("r-until-cf","xhr","duration",a.duration);dHa=!0}},Fo=function(a,b,c,d){aHa(a,
Object.assign({},b!==void 0?{event_action:b}:{},c!==void 0?{event_label:c}:{},d!==void 0?{event_value:d}:{}))},Go=function(a,b){fHa[a]=b;gHa&&Wj("[stub gtag.ts] Event scoped dimension set {"+a+": "+b+")}")},hHa=function(a){if(ZGa()){var b={};YGa.gtag("set","user_properties",(b.dimension13=a,b))}gHa&&Wj("[stub gtag.ts] gtag('set', 'user_properties', {dimension13: "+a+")}")},aHa=function(a,b){b!=null&&(iHa("page_location","Scrubbed Page URL"),iHa("page_title","Scrubbed Page Title"),b=Object.assign({},
fHa,b),ZGa()&&YGa.gtag("event",a,b),gHa&&Wj("[stub gtag.ts] gtag('event')",a,b))},iHa=function(a,b){if(ZGa()){var c={};YGa.gtag("set",(c[a]=b,c))}gHa&&Wj("[stub gtag.ts] gtag('set', {"+a+": "+b+")}")},nHa=function(){var a=a===void 0?Fo:a;var b=Date.now(),c=Ho(b);Ho(jHa())!==c?a("retention","first-visit"):(c=Ho(b),Ho(jHa())===c&&kHa()===1&&a("retention","second-visit"));a=Ho(b);Ho(jHa())!==a?lHa(1):(a=kHa()||0,lHa(a+1));mHa(b)},Ho=function(a){if(a!=null)return(new Date(a)).toLocaleDateString()},oHa=
function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;A=v=0}function b(E){for(var H=h,L=0;L<64;L+=4)H[L/4]=E[L]<<24|E[L+1]<<16|E[L+2]<<8|E[L+3];for(L=16;L<80;L++)E=H[L-3]^H[L-8]^H[L-14]^H[L-16],H[L]=(E<<1|E>>>31)&4294967295;E=e[0];var O=e[1],S=e[2],aa=e[3],ka=e[4];for(L=0;L<80;L++){if(L<40)if(L<20){var na=aa^O&(S^aa);var za=1518500249}else na=O^S^aa,za=1859775393;else L<60?(na=O&S|aa&(O|S),za=2400959708):(na=O^S^aa,za=3395469782);na=((E<<5|E>>>27)&
4294967295)+na+ka+za+H[L]&4294967295;ka=aa;aa=S;S=(O<<30|O>>>2)&4294967295;O=E;E=na}e[0]=e[0]+E&4294967295;e[1]=e[1]+O&4294967295;e[2]=e[2]+S&4294967295;e[3]=e[3]+aa&4294967295;e[4]=e[4]+ka&4294967295}function c(E,H){if(typeof E==="string"){E=unescape(encodeURIComponent(E));for(var L=[],O=0,S=E.length;O<S;++O)L.push(E.charCodeAt(O));E=L}H||(H=E.length);L=0;if(v==0)for(;L+64<H;)b(E.slice(L,L+64)),L+=64,A+=64;for(;L<H;)if(f[v++]=E[L++],A++,v==64)for(v=0,b(f);L+64<H;)b(E.slice(L,L+64)),L+=64,A+=64}function d(){var E=
[],H=A*8;v<56?c(k,56-v):c(k,64-(v-56));for(var L=63;L>=56;L--)f[L]=H&255,H>>>=8;b(f);for(L=H=0;L<5;L++)for(var O=24;O>=0;O-=8)E[H++]=e[L]>>O&255;return E}for(var e=[],f=[],h=[],k=[128],q=1;q<64;++q)k[q]=0;var v,A;a();return{reset:a,update:c,digest:d,digestString:function(){for(var E=d(),H="",L=0;L<E.length;L++)H+="0123456789ABCDEF".charAt(Math.floor(E[L]/16))+"0123456789ABCDEF".charAt(E[L]%16);return H}}},Io=function(a){a&&typeof a.dispose=="function"&&a.dispose()},pHa=function(a){for(var b=0,c=arguments.length;b<
c;++b){var d=arguments[b];Ka(d)?pHa.apply(null,d):Io(d)}},vHa=function(a,b){b=b===void 0?qHa:b;if(!rHa){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("xc"));sHa((a.brands||[]).map(function(e){var f=new tHa;return Qk(f,1,e.brand).setVersion(e.version)}));typeof a.mobile==="boolean"&&Nk(uHa,2,a.mobile);rHa=a.getHighEntropyValues(b)}var d=new Set(b);return rHa.then(function(e){var f=
uHa.clone();d.has("platform")&&f.setPlatform(e.platform);d.has("platformVersion")&&Qk(f,4,e.platformVersion);d.has("architecture")&&Qk(f,5,e.architecture);d.has("model")&&f.setModel(e.model);d.has("uaFullVersion")&&Qk(f,7,e.uaFullVersion);return f.serialize()}).catch(function(){return uHa.serialize()})},wHa=function(a){this.currBaseValue_=this.currValue_=this.initialValue_=a},Jo=function(a){this.src=a;this.listeners={};this.typeCount_=0},xHa=function(){return ge.apply(0,arguments).map(String).join("__")},
zHa=function(){for(var a={},b=l(Object.entries(yHa)),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},AHa=function(){var a=Object.values(yHa),b=a.map(function(c){return c-1}).reduce(Ova,0);a=a.reduce(Ova,0);return{total:a,redundant:b,redundancyRatio:Math.round(b/a*100)/100}},BHa=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("/")},
CHa=function(a){return a instanceof Rn},DHa=function(a){return a instanceof Ko},EHa=function(a){return function(b){return new Cf(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()})})})}},FHa=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},IHa=function(){var a=window.defrostedResourcesJspb;if(a&&Array.isArray(a))if(a=fda(GHa,HHa(a))){if((a=Sj(a,Lo,1,Bj()))&&a.length===1)return vo(a[0])}else Xj("Defroster: found data, but it was unparseable. This is unintended but will not cause a user-visible issue.")},JHa=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)}},OHa=function(a){var b=void 0;switch(a.getContentCase()){case 9:b={recommendedIssue:Vm(im(a,oo,9,Mo))};break;case 10:b={recommendedHotlist:gAa(im(a,Zm,10,Mo))};break;case 12:var c=a.getIssueModification();b={issueModification:{addState:c.getAdd()?gza(c.getAdd()):void 0,addMask:Dya(c.getAddMask()),removeState:c.getRemove()?gza(c.getRemove()):void 0,removeMask:Dya(c.getRemoveMask()),comment:c.getComment()?um(c.getComment()):void 0}};break;case 11:var d=im(a,KHa,11,Mo);c={name:d.getName(),entries:d.getEntriesList().map(LHa)};
if(d=W(d,oo,2))c.recommendedCanonicalIssue=Vm(d);b={issueDeduplicationBatch:c}}c=a.getName();d=a.getSource();var e=a.getResource();var f=a.getType();f=MHa[f];var h=a.getRecommendation(),k=a.getScore();var q=a.getConfidence();q=NHa[q];var v=ak(a.getCreateTime());a.getRationale()?(a=a.getRationale(),a={text:a.getText(),formattingMode:qya(a.getFormattingMode()),formattedText:tk(a,Am,3)?sm(W(a,Am,3)):void 0,createTime:ak(a.getCreateTime())}):a=void 0;return{name:c,source:d,resource:e,type:f,recommendation:h,
score:k,confidence:q,createTime:v,content:b,rationale:a}},THa=function(a){var b=(new PHa).setParent(a.parent),c=a.userEngagement;a=(new No).setType(QHa[c.type]);c.rejectionReason!==void 0&&Jj(a,3,RHa[c.rejectionReason]);if(c.issueModification!==void 0){var d=a.setIssueModification,e=c.issueModification;c=new SHa;if(e.addState!==void 0){c.setAdd(nza(e.addState));var f=c.getMutableAddMask(),h=e.addMask.map(Eya).filter(Qj);Ij(f,1,h)}e.removeState!==void 0&&(c.setRemove(nza(e.removeState)),f=c.getMutableRemoveMask(),
h=e.removeMask.map(Eya).filter(Qj),Ij(f,1,h));if(e.comment!==void 0){f=c.setComment;h=e.comment;e=(new ho).setIssueId(h.issueId).setCommentNumber(h.commentNumber).setVersion(h.version).setFormattingMode(Cm(h.formattingMode)).setComment(h.unlinkifiedComment).setModifiedTime(ek(h.lastModified));e=pm(e,13,h.redacted).setEtag(h.etag);if(h.commentContentVerdict){var k=e.setContentVerdict;var q=h.commentContentVerdict;if(q!=null&&q.piiVerdict){var v=new Oo;q=(new Vl).setSeverity(yxa(q.piiVerdict.severity));
v=X(v,Vl,1,q)}else v=void 0;k.call(e,v)}h.formattedComment&&e.setFormattedComment(wya(h.formattedComment));h.lastEditorUser&&(k=Kj(h.lastEditorUser),X(e,Gj,3,k));h.entityStatus&&e.setEntityStatus(Fxa(h.entityStatus));h.piiRetention&&e.setRestrictedRetention(Oxa(h.piiRetention));h.piiRetentionState&&e.setRestrictedRetentionState(Ixa(h.piiRetentionState));if(h.commentReactions){k=h.commentReactions;h=new tm;k=l(k.entries());for(v=k.next();!v.done;v=k.next()){q=l(v.value);v=q.next().value;var A=q.next().value;
q=v;v=A;A=new Dm;var E=A.setType;a:switch(q){case "REACTION_TYPE_UNSPECIFIED":q=0;break a;case "UPVOTE":q=1;break a;default:throw Error("wb`"+q);}q=E.call(A,q);q=pm(q,1,v.hasReacted).setCount(v.count);v=v.recentResponders.map(Kj);v=bo(q,3,Gj,v);Po(h,2,Dm,v)}X(e,tm,17,h)}f.call(c,e)}d.call(a,c)}return X(b,No,2,a)},VHa=function(a){return{recommendations:Sj(a,UHa,1,Bj(),Nc).map(OHa),nextPageToken:a.getNextPageToken(),totalSize:Uc(a.getTotalSize())}},LHa=function(a){return{issue:Vm(a.getIssue()),recommendation:a.getRecommendation()}},
WHa=function(a){var b=l(a.split("-"));a=b.next().value;b=b.next().value;return{issueId:a,recommendationType:b}},XHa=function(a){var b;return((b=a.error)==null?void 0:b.message)!==void 0},Qo=function(a){return!!a&&La(a)&&(!!a.data&&a.data.message!==void 0||XHa(a))},Ro=function(a){return a.data&&a.data.message!==void 0&&a.data&&a.data.message?a.data.message:XHa(a)&&a.error&&a.error.message?a.error.message:""},YHa=function(a){var b=new So;b=Xl(b,1,Number(a.targetIssueId));return Xl(b,2,a.afterIssueId?
Number(a.afterIssueId):void 0)},ZHa=function(a){return{targetIssueId:String(xk(a,1)),afterIssueId:Uc(xk(a,2))?String(xk(a,2)):void 0}},$Ha=function(a){return{sourceIssueId:Uc(xk(a,3)),issueRelationships:a.getIssueRelationshipsList().map(ZHa),totalSize:a.getTotalSize()}},aIa=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},bIa=
function(a){return!(a==null||!a.relatedChildren.length)},dIa=function(a,b){var c=[].concat(p(a));a=new Set(a.map(function(h){return h.targetIssueId}));b=l(b);for(var d=b.next(),e={};!d.done;e={newItem$jscomp$6:void 0},d=b.next())if(e.newItem$jscomp$6=d.value,!a.has(e.newItem$jscomp$6.targetIssueId)){d=c.findIndex(function(h){return function(k){return k.targetIssueId===h.newItem$jscomp$6.afterIssueId}}(e));var f=void 0;f=e.newItem$jscomp$6.afterIssueId?d===-1?c.length:d+1:0;c.splice(f,0,e.newItem$jscomp$6);
a.add(e.newItem$jscomp$6.targetIssueId)}return cIa(c)},eIa=function(a,b){return cIa(a.filter(function(c){return c.targetIssueId!==b}))},cIa=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},fIa=function(a){var b=new Map;a=l(a);for(var c=a.next(),d={};!c.done;d={previousOperation:void 0},c=a.next()){var e=c.value;c=e.issues.map(function(f){return f.issueId}).join(",");
d.previousOperation=b.get(c);d.previousOperation?(e={newParentId:e.newParentId,newRelations:e.newRelations,issues:d.previousOperation.issues,eventTimestamps:[].concat(p(d.previousOperation.eventTimestamps),p(e.eventTimestamps)),newParentChildrenSnapshot:e.newParentChildrenSnapshot,done:e.done},e.done.promise.then(d.previousOperation.done.resolve).catch(function(f){return function(h){f.previousOperation.done.reject(h);throw h;}}(d)),b.set(c,e)):b.set(c,e)}b=[].concat(p(b.values()));a=l(b);d=a.next();
for(c={};!d.done;c={operation$jscomp$5:void 0},d=a.next())c.operation$jscomp$5=d.value,c.operation$jscomp$5.newRelations=c.operation$jscomp$5.newRelations.map(function(f){return function(h){return f.operation$jscomp$5.newParentChildrenSnapshot.find(function(k){return k.targetIssueId===h.targetIssueId})}}(c));return b.sort(function(f,h){var k=f.newParentChildrenSnapshot,q=h.newParentChildrenSnapshot;f=Math.min.apply(Math,p(f.issues.map(function(v){return k.findIndex(function(A){return A.targetIssueId===
v.issueId})})));h=Math.min.apply(Math,p(h.issues.map(function(v){return q.findIndex(function(A){return A.targetIssueId===v.issueId})})));return f===h?0:f<h?-1:1})},lIa=function(a){return a?(a=a.getResponse())?Sj(a,gIa,1,Bj()).map(function(b){if(b&&b.getObjective()){var c,d;var e=b.getObjective(),f=(c=b.getUri())==null?void 0:c.getResourcePath();if(e&&e.getId()){var h,k;c={objectiveId:f!=null?f:e.getId(),title:e.getTitle(),url:gva(e.getUrl()),priorityRating:hIa(e==null?void 0:(h=e.getPriority())==
null?void 0:pk(h,1)),keyResults:(k=Sj(e,iIa,7,Bj()).map(jIa).filter(Qj))!=null?k:[]}}else c=void 0;b={objective:c,periodLabel:(d=W(b,kIa,4))==null?void 0:d.getLabel()}}else b=void 0;return b}).filter(Qj):[]:[]},jIa=function(a){if(a&&a.getId()){var b;return{keyResultId:a.getId(),title:a.getTitle(),url:gva(a.getUrl()),priorityRating:hIa(a==null?void 0:(b=a.getPriority())==null?void 0:pk(b,1))}}},hIa=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"}},oIa=function(a){return a.getResponsesList().map(function(b){return Sj(b,mIa,1,Bj()).map(nIa)}).flat().filter(function(b){return b.signals.length>0})},nIa=function(a){var b=pIa(a.getTask());a=Sj(a,qIa,2,Bj());return{task:b,signals:a.map(rIa).filter(Qj)}},tIa=function(a){return a.getResponsesList().map(function(b){return Sj(b,sIa,1,Bj()).map(pIa).filter(Qj)}).flat()},pIa=function(a){if(a){var b=a.getTaskId(),c=uIa(pk(a,2)),d=a.getTitle(),
e=ak(a.getCreatedTimestamp()),f=ak(a.getLastModifiedTimestamp()),h=a.getExternalLink();var k=Sj(a,vIa,7,Bj());b={taskId:b,taskResourceType:c,title:d,createdTimestamp:e,lastModifiedTimestamp:f,externalLink:h,resourceRelationships:k.map(wIa),isStaleTask:kk(a,13),snoozeUntilTimestamp:ak(W(a,bk,14)),manualSignalTimestamp:ak(W(a,bk,15))};a.hasDriveResource()?(a=a.getDriveResource(),a={fileType:xIa[pk(a,1)],lastMentionTimestamp:ak(W(a,bk,2)),lastMentionLink:Rc(a,4),docwrapRequestTimestamp:ak(W(a,bk,3)),
docwrapRequestLink:Rc(a,5)},b.driveResource=a):vm(a,yIa,9,zIa)&&(a=im(a,yIa,9,zIa),a={priority:Qm[a.getPriority()],accessLevel:sxa[a.getAccessLevel()],hotlistIds:a.getHotlistIdsList_asLegacyNumberOrString(Cj)},b.issueResource=a);return b}},wIa=function(a){return{category:AIa[a.getCategory()],roleName:Rc(a,2)}},rIa=function(a){var b={timestamp:ak(a.getTimestamp()),url:gva(a.getUrl()),signalStatus:kk(a,8)?1:0};if(vm(a,BIa,3,To)){a=im(a,BIa,3,To);var c={signal:CIa[a.getSignal()]};Uo.has(c.signal)?(Vo(a,
2,DIa)!=null&&(c.commentId=a.getCommentId()),a=c):a=null;if(!a)return null;b.driveAlert=a}else if(vm(a,Wo,5,To)){c=im(a,Wo,5,To);a={signal:EIa[c.getSignal()]};if(Uo.has(a.signal)){tk(c,dk,4)&&(a.reviewEstimate=Cta(W(c,dk,4)));c=W(c,FIa,5);var d=c==null?void 0:im(c,GIa,2,HIa);c=d?{currentAvailability:{comeBackTimestamp:ak(d.getComeBackTimestamp())}}:(c=c==null?void 0:im(c,IIa,1,HIa))?{futureAvailability:{comeBackTimestamp:ak(c.getComeBackTimestamp()),futureOooTimestamp:ak(W(c,bk,1))}}:void 0;a.clAuthorAvailability=
c}else a=null;if(!a)return null;b.changelistAlert=a}else if(vm(a,JIa,4,To)){c=im(a,JIa,4,To);a={signal:KIa[c.getSignal()]};if(Uo.has(a.signal)){if(d=c.getCommentNumbers())d=Fj(d,1,Bj(Cj)),d.length>0&&(a.commentNumbers=d);if(c=im(c,LIa,3,MIa))a.configurableAlertSubscriptionId=Rc(c,1)}else a=null;if(!a)return null;b.issueAlert=a}else if(vm(a,NIa,7,To)){a=im(a,NIa,7,To);a={signal:OIa[a.getSignal()]};a=Uo.has(a.signal)?a:null;if(!a)return null;b.gerritAlert=a}else if(vm(a,PIa,9,To)){a=im(a,PIa,9,To);
a={signal:cva[a.getSignal()]};a=Uo.has(a.signal)?a:null;if(!a)return null;b.googleTasksAlert=a}else if(vm(a,QIa,10,To)){a=im(a,QIa,10,To);a={signal:dva[a.getSignal()]};a=Uo.has(a.signal)?a:null;if(!a)return null;b.irmAlert=a}return b},uIa=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"}},RIa=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}},SIa=function(a){switch(a){case 0:return 0;case 1:return 5;case 2:return 2;default:return 0}},TIa=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}},VIa=function(a){return a?UIa[a]:UIa.ISSUE_SIGNAL_UNSPECIFIED},XIa=function(a){return a?
WIa[a]:WIa.DRIVE_SIGNAL_UNSPECIFIED},ZIa=function(a){return a?YIa[a]:YIa.CHANGELIST_SIGNAL_UNSPECIFIED},aJa=function(a){return a?$Ia[a]:$Ia.GERRIT_CHANGE_SIGNAL_UNSPECIFIED},bJa=function(a){return a?Vua[a]:Vua.GOOGLE_TASKS_SIGNAL_UNSPECIFIED},cJa=function(a){return a?Xua[a]:Xua.IRM_SIGNAL_UNSPECIFIED},dJa=function(a){if(a=a.getResponse())return{commentId:a.getCommentId(),authorDisplayName:Rc(a,2),content:a.getContent(),lastModifiedTimestamp:ak(W(a,bk,4))}},fJa=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:[]).map(function(f){if(c.some(function(v){return v===f[0].toString()})){var h=f[1],k,q=(k=b.getData())==null?void 0:k.getWorkspacesMap().get(h.getWorkspaceId());return eJa(h,q)}}).filter(Qj)},eJa=function(a,b){if(a&&a.getType()===3){var c=(new Date).getTime()/1E3,d=ak(a.getStartTime()),e=ak(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}}},iJa=function(a){var b=a.getResponse();return b&&Sj(b,Xo,1,Bj())&&W(b,gJa,2)?Sj(b,Xo,1,Bj()).map(function(c){var d=W(b,gJa,2);if(c&&d){var e=c.getId();d=fJa(c.getId(),d);var f=c.getId(),h;c=c&&uc(c,15,hJa,Wb)?(h=uc(c,15,hJa,Wb).get(f))==null?void 0:Aj(h,1,Bj()):void 0;e={workItemId:e,
iterations:d,okrIds:c}}else e=void 0;return e}).filter(Qj):[]},Yo=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"},mJa=function(a){var b={};a=l(uc(a,1,jJa,Wb,Nc).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:kJa[pk(d,1)],detailedUserType:lJa[pk(d,
2)]}}return b},nJa=function(a,b){return a.map(function(c){return b[c]||null})},oJa=function(){return{principalType:"NON_GAIA",detailedUserType:"NO_DETAILED_TYPE"}},pJa=function(a){switch(a){case 1:return"daily";case 2:return"weekly";case 3:return"monthly";case 0:break;default:pb(a)}},qJa=function(a){switch(a){case "daily":return 1;case "weekly":return 2;case "monthly":return 3;default:return pb(a)}},rJa=function(a){var b={id:a.getId()};a.getVersion()&&(b.version=a.getVersion());return b},sJa=function(a){var b=
(new Zo).setId(a.id);a.version&&b.setVersion(a.version);return b},tJa=function(a){return{hours:a.getHours(),minutes:a.getMinutes(),seconds:a.getSeconds(),nanos:a.getNanos()}},uJa=function(a){return(new $o).setHours(a.hours).setMinutes(a.minutes).setSeconds(a.seconds).setNanos(a.nanos)},vJa=function(a){var b;return((b=a.getTeamSloEditPolicy())==null?void 0:pk(b,2))===1},wJa=function(a){var b;return((b=W(a,ap,1,Nc))==null?void 0:b.getEffectiveSloEditPolicy())===1},xJa=function(a){var b=W(a,Gj,2),c=
pJa(a.getFrequency()),d=a.getTimeZone(),e=a.getTimeOfDay();if(b==null)throw Error("Fc");if(c==null)throw Error("Gc");if(d==null)throw Error("Hc");if(e==null)throw Error("Ic");var f=a.getId_asLegacyNumberOrString();b=Lj(b);var h=a.getOrdinal();d=rJa(d);e=tJa(e);var k=hm(a,7),q=Fk(a,8,Bj()).map(yya);a=bp(a,9,Bj(Cj));return{id:f,lead:b,frequency:c,ordinal:h,timeZone:d,timeOfDay:e,daysRemaining:k,types:q,sloIds:a}},yJa=function(a){var b=(new cp).setId(a.id),c=Kj(a.lead);b=X(b,Gj,2,c).setFrequency(qJa(a.frequency)).setOrdinal(a.ordinal).setTimeZone(sJa(a.timeZone)).setTimeOfDay(uJa(a.timeOfDay)).setDaysRemaining(a.daysRemaining);
c=a.types.map(zya);b=dp(b,8,c);return ep(b,9,a.sloIds)},zJa=function(a){return Lya(a.getIt())},AJa=function(a){var b=new fp,c=b.setIt;var d=(new gp).setSloId(a.sloId).setName(a.name).setDescription(a.description).setParentId(a.parentId);var e=a.elements.map(Qya);d=Bm(d,5,e);e=a.effectiveElements.map(Qya);d=Bm(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("xb`"+a);}a=Jj(d,8,a);return c.call(b,a)},BJa=function(a){return{id:a.getId_asString(),
name:a.getName(),description:a.getDescription()}},CJa=function(a){if(a=a.getIt())return RAa(a);throw Error("Jc");},DJa=function(a){return{teamId:a.getId_asString(),name:a.getName(),description:a.getDescription(),pathNames:a.getPathNamesList(Cj),pathIds:a.getPathIdsList_asString()}},EJa=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"}}},FJa=function(a,b){b=new Kn(b);
a.subscribe(b);return b},hp=function(a){var b;a.subscribe(function(c){b=c}).unsubscribe();return b},ip=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("Lc`"+b);return c},jp=function(){return og(function(a,b){return gj(a,b)})},GJa=function(){return function(a){return a.pipe(C(function(b){return{event:b,timestamp:Date.now()}}),ela(a.pipe(kg(1E4,kp))))}},lp=function(a){a||(a=r(Gg));var b=new Cf(function(c){if(a.destroyed)c.next();else return a.onDestroy(c.next.bind(c))});
return function(c){return c.pipe(yg(b))}},mp=function(a,b){return b!=null&&b.displayName?b.displayName:a+" triage"},HJa=function(a,b,c){return c!=null&&c.displayName?Nf(c.displayName):a.pipe(C(function(d){var e;return(e=d==null?void 0:d.name)!=null?e:b}),C(function(d){return mp(d)}))},IJa=function(a,b){return{displayAs:"Team: "+a.name,queryAtom:"teamId:"+a.teamId+(b===void 0||b?"+":""),tooltip:"Issues within this team's components"}},JJa=function(a,b){return{displayAs:"Component: "+a.name,queryAtom:"componentId:"+
a.componentId+(b===void 0||b?"+":""),tooltip:"Issues within this component"}},np=function(a,b,c){c=c===void 0?!1:c;if(!b)return"";Array.isArray(b)||(b=[b]);b=b.filter(Qj);return b.length===0?"":a+":("+b.join("|")+")"+(c?"+":"")},op=function(){return ge.apply(0,arguments).filter(Boolean).join(" AND ")},KJa=function(a){return{filter:a,pageSize:250,sort:"created_time:desc",custom:"byExperimentalPhase"}},LJa=function(a,b){return a.filter(function(c){return El(c)===b})},MJa=function(a){a&1&&(Ge(),J(0,
"svg",2),M(1,"polygon",3),K())},NJa=function(a){if(a&1){var b=t();Sg(0,"div",0);xma("click",function(){u(b);var c=P();return w(c.closed.emit("click"))})("animationstart",function(c){u(b);var d=P();return w(d._onAnimationStart(c.animationName))})("animationend",function(c){u(b);var d=P();return w(d._onAnimationDone(c.animationName))})("animationcancel",function(c){u(b);var d=P();return w(d._onAnimationDone(c.animationName))});Sg(1,"div",1);dh(2);Tg()()}a&2&&(a=P(),vh(a._classList),uh("mat-menu-panel-animations-disabled",
a._animationsDisabled)("mat-menu-panel-exit-animation",a._panelAnimationState==="void")("mat-menu-panel-animating",a._isAnimating),Rg("id",a.panelId),Lg("aria-label",a.ariaLabel||null)("aria-labelledby",a.ariaLabelledby||null)("aria-describedby",a.ariaDescribedby||null))},OJa=function(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}},PJa=function(a,b){if(a&1){var c=t();J(0,"button",4);N("click",function(){var d=u(c).$implicit;P(3).onSelect.emit(d);
return w()});R(1);K()}a&2&&(a=b.$implicit,x(),T(" ",a.displayAs," "))},RJa=function(a){a&1&&Pg(0,PJa,2,1,"button",3,QJa);a&2&&(P(),a=bh(2),Qg(a))},TJa=function(a,b){if(a&1){var c=t();J(0,"button",2);N("click",function(){var d=u(c).$implicit;P().onSelect.emit(d);return w()});R(1);K();$g(2);F(3,RJa,2,0)}a&2&&(a=b.$implicit,x(),T(" ",a.displayAs," "),x(),a=ah(SJa(a)),x(),G(a.length?3:-1))},UJa=function(a){a&1&&dh(0)},VJa=function(a){a&1&&Yg(0)},WJa=function(a){if(a&1){var b=t();J(0,"button",6,1);N("click",
function(e){u(b);var f=P();return w(f.onClick(e))});D(2,VJa,1,0,"ng-container",7);K()}if(a&2){a=P();var c=Q(1);vh(a.size);var d;I("color",a.color)("disabled",a.disabled)("matTooltip",(d=a.tooltip)!=null?d:"");Lg("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);x(2);I("ngTemplateOutlet",c)}},XJa=function(a){a&1&&Yg(0)},YJa=function(a){if(a&1){var b=t();J(0,"button",8,1);N("click",function(e){u(b);var f=P();return w(f.onClick(e))});D(2,XJa,1,0,"ng-container",7);K()}if(a&2){a=P();var c=Q(1);
vh(a.size);var d;I("color",a.color)("disabled",a.disabled)("matTooltip",(d=a.tooltip)!=null?d:"");Lg("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);x(2);I("ngTemplateOutlet",c)}},ZJa=function(a){a&1&&Yg(0)},$Ja=function(a){if(a&1){var b=t();J(0,"button",9,1);N("click",function(e){u(b);var f=P();return w(f.onClick(e))});D(2,ZJa,1,0,"ng-container",7);K()}if(a&2){a=P();var c=Q(1);vh(a.size);var d;I("color",a.color)("disabled",a.disabled)("matTooltip",(d=a.tooltip)!=null?d:"");Lg("aria-label",
a.bAriaLabel)("aria-expanded",a.bAriaExpanded);x(2);I("ngTemplateOutlet",c)}},aKa=function(a){a&1&&Yg(0)},bKa=function(a){if(a&1){var b=t();J(0,"button",10,1);N("click",function(e){u(b);var f=P();return w(f.onClick(e))});D(2,aKa,1,0,"ng-container",7);K()}if(a&2){a=P();var c=Q(1);vh(a.size);var d;I("color",a.color)("disabled",a.disabled)("matTooltip",(d=a.tooltip)!=null?d:"");Lg("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);x(2);I("ngTemplateOutlet",c)}},cKa=function(a){a&1&&Yg(0)},dKa=
function(a){if(a&1){var b=t();J(0,"button",6,1);N("click",function(e){u(b);var f=P();return w(f.onClick(e))});D(2,cKa,1,0,"ng-container",7);K()}if(a&2){a=P();var c=Q(1);vh(a.size);var d;I("color",a.color)("disabled",a.disabled)("matTooltip",(d=a.tooltip)!=null?d:"");Lg("aria-label",a.bAriaLabel)("aria-expanded",a.bAriaExpanded);x(2);I("ngTemplateOutlet",c)}},eKa=function(a){a&1&&(J(0,"span",11),Ge(),J(1,"svg",13),M(2,"path",14),K(),J(3,"svg",15),M(4,"path",16),K()())},fKa=function(a){return a instanceof
pp?a:new pp(a,{})},qp=function(a){a=fKa(a);return new pp(a.char,Object.assign({},a.modifiers,{shift:!0}))},gKa=function(a){a=fKa(a);return new pp(a.char,Object.assign({},a.modifiers,{ctrl:!0}))},hKa=function(){var a=qp("f");a=fKa(a);return new pp(a.char,Object.assign({},a.modifiers,{alt:!0}))},jKa=function(a){if(a instanceof pp){var b=iKa(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(jKa).join(" "):
iKa(a)},rp=function(){return ge.apply(0,arguments)},iKa=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 pb(a)}},kKa=function(a){return a.keys.join("-")+"-"+a.description+"-"+a.displayAs},lKa=function(a){switch(a){case "P0":return sp.CHANGE_ISSUE_PRIORITY_TO_P0;case "P1":return sp.CHANGE_ISSUE_PRIORITY_TO_P1;case "P2":return sp.CHANGE_ISSUE_PRIORITY_TO_P2;case "P3":return sp.CHANGE_ISSUE_PRIORITY_TO_P3;case "P4":return sp.CHANGE_ISSUE_PRIORITY_TO_P4;
case "PRIORITY_UNSPECIFIED":break;default:console.error("Unsupported issue priority in issuePriorityToHotkey")}},mKa=function(a){switch(a){case "NEW":return sp.CHANGE_ISSUE_STATUS_TO_NEW;case "ASSIGNED":return sp.CHANGE_ISSUE_STATUS_TO_ASSIGNED;case "ACCEPTED":return sp.CHANGE_ISSUE_STATUS_TO_ACCEPTED;case "FIXED":return sp.CHANGE_ISSUE_STATUS_TO_FIXED;case "VERIFIED":return sp.CHANGE_ISSUE_STATUS_TO_VERIFIED;case "NOT_REPRODUCIBLE":return sp.CHANGE_ISSUE_STATUS_TO_NOT_REPRODUCIBLE;case "INTENDED_BEHAVIOR":return sp.CHANGE_ISSUE_STATUS_TO_INTENDED_BEHAVIOR;
case "OBSOLETE":return sp.CHANGE_ISSUE_STATUS_TO_OBSOLETE;case "INFEASIBLE":return sp.CHANGE_ISSUE_STATUS_TO_INFEASIBLE;case "INACTIVE":return sp.CHANGE_ISSUE_STATUS_TO_INACTIVE;case "DUPLICATE":return sp.CHANGE_ISSUE_STATUS_TO_DUPLICATE;case "STATUS_UNSPECIFIED":break;default:console.error("Unsupported issue status in issueStatusToHotkey")}},nKa=function(a,b){if(a==null)return null;a=a.getRequestHook(b);return a==null?null:a},oKa=function(a){return Object.assign({},{arrays:{},descriptions:{},keys:[],
objectMaps:{},objects:{},enums:{},emptyArrayIsUnset:!1},a)},pKa=function(a,b){return tp(b,a)},qKa=function(a,b,c){b[a]=c},rKa=function(){return{}},wKa=function(a,b){var c=new a;return b==null?c:sKa(b,tKa,uKa,vKa,a)},tKa=function(a,b){return b[a]},uKa=function(a,b,c){b.Serializable$values[a]=c},vKa=function(a){if(a==null)throw Error("Nc");return new a},sKa=function(a,b,c,d,e){e=d(e);for(var f=xKa(a,e),h=f.arrays||{},k=f.objects||{},q=f.objectMaps||{},v=l(f.keys||[]),A=v.next(),E={};!A.done;E={mapMetadata:void 0},
A=v.next()){A=A.value;var H=b(A,a);if(H!=null){var L=void 0;if(h.hasOwnProperty(A)){if(f.emptyArrayIsUnset&&H.length===0)continue;L=yKa(H,b,c,d,!0,!0,h[A])}else if(k.hasOwnProperty(A))L=yKa(H,b,c,d,!1,!0,k[A]);else if(q.hasOwnProperty(A))E.mapMetadata=q[A],L=E.mapMetadata.isPropertyArray?H.map(function(O){return function(S){return zKa(S,O.mapMetadata,b,c,d)}}(E)):zKa(H,E.mapMetadata,b,c,d);else if(Array.isArray(H)){if(f.emptyArrayIsUnset&&H.length===0)continue;L=yKa(H,b,c,d,!0,!1)}else L=H;c(A,e,
L)}}return e},zKa=function(a,b,c,d,e){for(var f={},h=l(Object.keys(a)),k=h.next();!k.done;k=h.next()){k=k.value;var q=a[k];q!=null&&(f[k]=yKa(q,c,d,e,b.isValueArray,b.isSerializable,b.ctor))}return f},yKa=function(a,b,c,d,e,f,h){if(f&&h==null)throw Error("Oc");if(a==null)return a;var k;e&&f?k=a.map(function(q){return sKa(q,b,c,d,h)}):e&&!f?k=a.map(function(q){return q}):!e&&f?k=sKa(a,b,c,d,h):typeof a==="object"?k=JSON.parse(JSON.stringify(a)):k=a;return k},xKa=function(a,b){if(b instanceof up)a=
oKa(b.getPartialClassMetadata());else if(a instanceof up)a=oKa(a.getPartialClassMetadata());else throw Error("Pc");return a},AKa=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}},BKa=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},CKa=function(a,b){a&1&&(J(0,"div",1),Ge(),J(1,"svg",
2)(2,"g"),M(3,"path",3),K()(),He(),J(4,"span",4),R(5),K()());a&2&&(a=b.ngIf,Lg("aria-label",a)("title",a),x(5),wh(a))},DKa=function(a){a&1&&M(0,"waldo-availability-chip",1);a&2&&(a=P(),I("user",a.user),Lg("coinonly",a.coinonly))},EKa=function(a,b){if(a&1){var c=t();J(0,"a",7);N("click",function(){var d=u(c).$implicit,e=P(2);return w(e.clickSegment.emit(d.name||d.path))});R(1);K()}a&2&&(a=b.$implicit,I("href",a.path,hf),x(),T(" ",a.name||a.path," "))},FKa=function(a){a&1&&(J(0,"button",4),M(1,"mat-icon",
5),K(),J(2,"mat-menu",null,0),Pg(4,EKa,2,2,"a",6,Og),K());if(a&2){a=Q(3);var b=P();I("matMenuTriggerFor",a);x(4);Qg(b.segments)}},GKa=function(a){a&1&&M(0,"mat-icon",2);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},HKa=function(a,b){if(a&1){var c=t();J(0,"button",1);N("click",function(){var e=u(c).$implicit,f=P();e=e.value;f.value=e;f.valueChange.next(e);return w()});F(1,GKa,1,1,"mat-icon",2);R(2);K()}if(a&2){a=b.$implicit;b=P();var d;I("disableRipple",!0)("matTooltip",(d=a.tooltip)!=null?d:"");Lg("aria-checked",
b.value===a.value);x();G(a.icon?1:-1);x();T(" ",a.name," ")}},IKa=function(a){a=a.getBoundingClientRect();return a.top>=0&&a.bottom<=window.innerHeight},JKa=function(a){a=a.getBoundingClientRect();return a.bottom>0&&a.top<window.innerHeight},KKa=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 Cf(function(f){f.next(e(a));var h=b(function(k){f.next(k[0].isIntersecting)},d?{threshold:0}:{threshold:1});h.observe(a);return function(){h.unobserve(a)}})).pipe(og())},
LKa=function(a,b,c){var d=(c===void 0?0:c)?function(e){return b.partially(e)}:function(e){return b.fully(e)};return dg(Nf(void 0),$f(window,"scroll").pipe(kg(500))).pipe(C(function(){return d(a)}),og())},OKa=function(a){return!a.endsWith("/history")&&!!a.match(MKa)||!!a.match(NKa)},vp=function(a){return a.type==="hyperlink"},PKa=function(a){return vp(a)&&OKa(a.href)},RKa=function(a){return vp(a)&&!!a.href.match(QKa)},SKa=function(a,b){b=b===void 0?!1:b;return!a.endsWith("/history")&&a.match(MKa)?
(a=a.match(MKa)[2],b?"https://3p-screenshot.corp.google.com/"+a+".png":"https://screenshot.googleplex.com/"+a+".png"):a.match(NKa)?"https://plx-alerts.corp.google.com/chart/?"+a.match(NKa)[1]:null},TKa=function(a){return a.type==="issueReference"},UKa=function(a){return vp(a)&&!PKa(a)&&!(vp(a)&&a.href.startsWith("mailto:"))},VKa=function(a,b){a=a===void 0?"":a;b=b===void 0?48:b;var c=c===void 0?"...":c;var d=[].concat(p(a));if(d.length<=b)return a;a=b-[].concat(p(c)).length;d=d.slice(0,a).join("");
String.prototype.trimEnd!=null&&(d=d.trimEnd());return d+c},WKa=function(a){a=a===void 0?"":a;var b=new Set([].concat(p('!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~\t\n')));a=[].concat(p(a)).map(function(c){return b.has(c)?" ":c}).join("").trim();return a.length===0?[]:a.split(/[\s]+/g)},XKa=function(a){return a.split("").every(function(b){return b.length===1&&b.charCodeAt(0)>=0&&b.charCodeAt(0)<=255})},ZKa=function(a){if(a!=null){a=[].concat(p(a)).slice(0,100);a=l(a);for(var b=a.next();!b.done;b=a.next())if(b=
YKa[b.value])return b}},bLa=function(a){if(a.includes('"')||a.includes("'"))return[];var b=[].concat(p(a.matchAll($Ka)));if(b.length)return b.map(function(c){c=l(c);c.next();c.next();return c.next().value});a=[].concat(p(a.matchAll(aLa)));return a.length?a.map(function(c){c=l(c);c.next();c.next();return c.next().value}):[]},cLa=function(a,b){var c;a=(c=a)!=null?c:"";var d;b=(d=b)!=null?d:"";return a.trim()===b.trim()},dLa=function(a){a&1&&(M(0,"img",1),U(1,"async"));if(a&2){a=P(2);I("src",V(1,2,a.srcRedirected$),
hf);var b;Lg("alt",(b=a.alt)!=null?b:"user provided image")}},eLa=function(a){if(a&1){var b=t();J(0,"a",3);U(1,"async");U(2,"async");N("click",function(c){u(b);var d=P(2);return w(d.trigger(c))})("keydown.enter",function(c){u(b);var d=P(2);return w(d.trigger(c))});J(3,"b-glue");M(4,"mat-icon",4);K();Wg(5);R(6);U(7,"async");Xg();K()}a&2&&(a=P(2),I("href",V(1,3,a.src$),hf)("title",V(2,5,a.src$)),x(6),wh(V(7,7,a.srcTruncated$)))},fLa=function(a){a&1&&(F(0,dLa,2,4,"img",1),U(1,"async"),Mg(2,eLa,8,9,"a",
2));if(a&2){var b;a=P();G((b=V(1,1,a.showImage$))?0:2,b)}},gLa=function(a){a&1&&(M(0,"mat-icon",0),U(1,"async"));a&2&&(a=P(),I("matTooltip",Dh("Unable to load image ",V(1,2,a.srcTruncated$))))},hLa=function(a){a&1&&(M(0,"br"),J(1,"a",1),M(2,"b-secure-image-widget",2),K(),M(3,"br"));if(a&2){a=P();var b=P();x();I("href",a,hf)("rel",b.EXTERNAL_LINK_REL);x();I("src",a)("alt",b.alt||"User provided screenshot")("showByDefault",!0)}},iLa=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)}},jLa=function(a){a&1&&(F(0,hLa,4,5),U(1,"async"),Mg(2,iLa,1,3,"b-secure-image-widget",0));if(a&2){var b;a=P();G((b=V(1,1,a.displayMode$))===a.DisplayMode.SHOW?0:b===a.DisplayMode.COLLAPSE?2:-1)}},mLa=function(){var a={timeout:5E3};a=a===void 0?{}:a;return kLa!=null?kLa:kLa=lLa(a)},nLa=function(){return new Promise(function(a,b){window.gapi.load("client",{callback:a,onerror:b})})},lLa=function(a){a=a===void 0?{}:a;var b;return z(function(c){if(c.nextAddress==
1){if((b=window.gapi)&&b.client&&b.client.load)c=c.return(b);else{var d=Xc("https://apis.google.com/js/api.js");c=B(c,oLa(d,a),2)}return c}if(c.nextAddress!=3){b=window.gapi;if(!b)throw Error("Sc");return b.client&&b.client.load?c.jumpTo(3):B(c,nLa(),3)}return c.return(b)})},pLa=function(a,b,c){var d=a.config.get(b);c!==d&&a.config.update(b,c)},rLa=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(qLa.has(a))return qLa.get(a);
b=Promise.resolve(c.reloadAuthResponse()).finally(function(){qLa.delete(a)});qLa.set(a,b);return b}return Promise.resolve()},sLa=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})},tLa=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},uLa=function(){var a=window.gapi;
if(!a)return Promise.reject(Error("Uc"));if(a.client&&a.client.load)return Promise.resolve(a);Vj("loading gapi client");return new Promise(function(b,c){a.load("client",{callback:function(){Vj("gapi client has finished loading");b(a)},onerror:c})})},wp=function(a){return a==null?"":typeof a==="number"?isFinite(a)?String(a):"":a&&(a=String(a),a.length<=254)?a:""},yLa=function(){var a=xp("gapi.config.get");if((a=wp(a&&a("googleapis.config/sessionIndex")))||(a=wp(ea.__X_GOOG_AUTHUSER))||(a=wp(xp("google.authuser"))))return a;
var b=ea.location.href||"",c=vLa.exec(b);try{a=wp(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;c=wLa.exec(b);try{a=wp(c&&decodeURIComponent(c[2]))}catch(d){}if(a)return a;a=xLa.exec(b);return(a=wp(a&&a[1]))?a:""},zLa=function(){var a=xp("gapi.auth.getToken");a=(a=a?a():null)&&a.access_token;var b=null;if(!a){a=(a=xp("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}},BLa=function(a){a=a===void 0?"":a;var b;if(!(b=zLa())){b=a;var c=c===void 0?yLa():c;a={};var d=ALa([]);d&&(a.Authorization=d);b||(b=(b=xp("gapi.config.get"))&&b("client/apiKey"));b&&(a["X-Goog-Api-Key"]=b);c&&(a["X-Goog-AuthUser"]=String(c));b=a}return b},CLa=function(a,b){b=b===void 0?0:b;var c;if(c=b===0)c=(c=xp("gapi.config.get"))?(c=c("oauth-flow/authUrl"))&&(c.indexOf("staging")>0||c.indexOf("test")>0)?2:1:0,c=c===2;c&&(b=7);switch(b){case 7:b="dev-";c="-googleapis.corp";break;
case 1:b="autopush-";c="-googleapis.sandbox";break;case 2:b="staging-";c="-googleapis.sandbox";break;default:b="",c=".clients6"}a="https://"+b+a+c+".google.com";(b=(b=xp("gapi.config.get"))&&b("client/rewrite"))&&b[a]&&(a=String(b[a]));return a},ELa=function(a,b){return a<1||!isFinite(a)?Promise.reject("gapi.client missing"):(new Promise(function(c){return ea.setTimeout(c,b)})).then(function(){return DLa(a-1,b*2)})},DLa=function(a,b){a=a===void 0?0:a;b=b===void 0?5E3:b;var c=ea;try{do var d=c.gapi;
while(!d&&c!==c.top&&(c=c.parent))}catch(e){}if(!d)return ELa(a,b);ea.gapi||(ea.gapi=d);return d.client?Promise.resolve(d):new Promise(function(e,f){d.load("client",function(){d.client?e(d):f("gapi.client missing")})})},FLa=function(){var a=a===void 0?"":a;var b=b===void 0?yLa():b;var c=xp("gapi.config.update");c("googleapis.config/auth/useFirstPartyAuth",!0);c("googleapis.config/auth/useFirstPartyAuthV2",!0);b&&c("googleapis.config/sessionIndex",b);a&&c("client/apiKey",a)},GLa=function(a){return(new yp).setEventType(2).setRpcType(2).setLookupType(a)},
HLa=function(a){a=Math.round(a*1E3);return isFinite(a)?a:null},zp=function(a){var b;return(b=a==null?void 0:a.trim())!=null?b:""},Ap=function(a){var b=b===void 0?ILa:b;var c=Ma(a),d=function(e){e=l(e);e.next();e=aAa(e);return b(c,e)};return function(){var e=ge.apply(0,arguments),f=this||ea,h=JLa.get(f);h||(h={},JLa.set(f,h));f=h;h=[this].concat(p(e));e=d?d(h):h;if(Object.prototype.hasOwnProperty.call(f,e))f=f[e];else{var k=l(h);h=k.next().value;k=aAa(k);h=a.apply(h,k);f=f[e]=h}return f}},KLa=function(a,
b){this.text=a;this.specialRowHandler=b},Bp=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);if(e<192||e>382)e=null;else{var f=LLa[e];f?e=f:(f="AAAAAA*CEEEEIIIIDNOOOOOx0UUUUYpBaaaaaa*ceeeeiiiionooooo^ouuuuypyAaAaAaCcCcCcCcDdDdEeEeEeEeEeGgGgGgGgHhHhIiIiIiIiIi**JjKkkLlLlLLLlllNnNnNnnNnOoOoOo**RrRrRrSsSsSsSsTtTtttUuUuUuUuUuUuWwYyYZzZzZz"[e-192],e=f==="^"?null:f)}e&&(c!==d&&b.push(a.substr(c,d-c)),c=d+1,b.push(e))}return b.length>0?(b.push(a.substr(c)),b.join("")):a},Fp=function(a,
b,c,d){Cp.call(this);this.initialized_=!1;this.title_=null;this.cache_=b;this.id_=c;this.transport_=a;MLa(this.transport_,this.id_);d&&Ep(d.getEventTarget(),"a",this.onContactsChange_,!1,this)},NLa=function(a){var b={};if(a){a=l(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=d.containerType;d=d.id||"";c&&d&&(b[c]=b[c]||d)}}return b},PLa=function(a){return a.extendedData&&a.extendedData.contactPreferences?a.extendedData.contactPreferences.map(function(b){return OLa(b.name,b.email)}).join(", "):
""},SLa=function(a,b,c){var d=[];a&&(QLa("name",a.name,b,d,c),QLa("phone",a.phone,b,d,c),QLa("photo",a.photo,b,d,c));return d.map(function(e){return new RLa(e)})},QLa=function(a,b,c,d,e){if(b){b=l(b);for(var f=b.next();!f.done;f=b.next())if(f=f.value,xp("metadata.containerType",f)!=="CONTACT"){var h=f;var k=c,q=d,v=e,A=xp("metadata.encodedContainerId",h),E=xp("metadata.containerType",h);k.contains(A,E)?h=k.get(A,E)||0:(h=q.length,k.set(A,E,h),q.push({}),v.push(A));k=q[h];k[a]=k[a]||[];k[a].push(f)}}},
ULa=function(a,b){if(a){a=TLa(a);for(var c=0;c<a.getFieldLength();c++){var d=a.getField(c);if(d.hasValue()&&(!b||b(d.getMetaData())))return d.getValue()}}return null},VLa=function(a,b){if(a){a=a.getPhoto();for(var c=0;c<a.getFieldLength();c++){var d=a.getField(c);if(d.hasUrl()&&(!b||b(d.getMetaData())))return d.getUrl()}}return null},WLa=function(a){this.query_=a;this.error_=0},ZLa=function(a,b){for(var c=[],d=a.length,e=0,f=[],h,k,q=0;q<d;){switch(e){case 0:var v=a.indexOf("<",q);if(v<0){if(c.length===
0)return a;c.push(a.substring(q));q=d}else c.push(a.substring(q,v)),k=v,q=v+1,XLa?(YLa.lastIndex=q,v=YLa.exec(a)):(YLa.lastIndex=0,v=YLa.exec(a.substring(q))),v?(f=["<",v[0]],h=v[1],e=1,q+=v[0].length):c.push("<");break;case 1:v=a.charAt(q++);switch(v){case "'":case '"':var A=a.indexOf(v,q);A<0?q=d:(f.push(v,a.substring(q,A+1)),q=A+1);break;case ">":f.push(v);c.push(b(f.join(""),h));e=0;f=[];k=h=null;break;default:f.push(v)}break;default:throw Error();}e===1&&q>=d&&(q=k+1,c.push("<"),e=0,f=[],k=h=
null)}return c.join("")},Hp=function(a,b){b=a(b||$La,void 0);a=Gp();b&&b.renderAsElement?a=b.renderAsElement():(a=a.createElement("DIV"),b=aMa(b),a.innerHTML=hd(b));a.childNodes.length==1&&(b=a.firstChild,b.nodeType==1&&(a=b));return a},aMa=function(a){return La(a)?a.toSafeHtml&&(a=a.toSafeHtml(),a instanceof ed)?a:Xi("zSoyz"):Xi(String(a))},cMa=function(a,b){var c=0,d=0;bMa(a)&&(c=a.selectionStart,d=b?-1:a.selectionEnd);return[c,d]},bMa=function(a){try{return typeof a.selectionStart=="number"}catch(b){return!1}},
dMa=function(a,b,c,d){Ip.call(this,d);this.type="key";this.keyCode=a;this.charCode=b;this.repeat=c},eMa=function(){return Jp?"Webkit":Kp?"Moz":null},fMa=function(a,b){if(b&&a in b)return a;var c=eMa();return c?(c=c.toLowerCase(),a=c+mj(a),b===void 0||a in b?a:null):null},Lp=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d},Np=function(a,b,c,d,e,f,h){this.serverBase_=typeof a==="string"?new Mp(a):a;this.useApiary_=!!c;this.apiaryClientDeferred_=d;this.onAuthError_=e;this.testGaia_=
!!f;this.contactStoreConfig_=h;this.commonAcParams_={};this.acWrappers_={};this.onAcCompleteListeners_={};this.inputToAcWrapper_={};this.focusedElement_=null},gMa=function(a){this.rows_=a||[]},hMa=function(a){a=a.getEmail();if(!a)return!1;for(var b=l(["-pager","+pager","-oncall","+oncall","lifeguard-ng"]),c=b.next();!c.done;c=b.next())if(a.includes(c.value))return!0;return!1},kMa=function(a,b,c){a=a.filter(iMa());if(!c)return a;c=c.map(function(d){return{contact:d,toString:function(){return d.text}}});
b=jMa(new gMa(c),b,c.length);return a.concat(b.map(function(d){return d.contact}))},Pp=function(a){return(a!=null?a:[]).map(Op)},Qp=function(a){return(a!=null?a:[]).map(lMa)},Op=function(a){if(a==null)return"";var b=a.user,c=a.group,d=a.alias;a=void 0;b!=null?(a="USER",b=zj(b)):c!=null?(a="GROUP",b=zj(c)):d!=null?(a="ALIAS",b=d):b="";return a===void 0||b===""?"":a+":"+b},Rp=function(a){return(a!=null?a:[]).map(Op)},Sp=function(a){return(a!=null?a:[]).map(lMa)},lMa=function(a){var b=l(a.split(":"));
a=b.next().value;b=b.next().value;if(!a||!b)throw Error("hd`"+b);switch(a){case "USER":return{user:{emailAddress:b}};case "GROUP":return{group:{emailAddress:b}};case "ALIAS":return{alias:b};default:throw Error("id`"+b);}},Tp=function(){return{admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[],inheritedAdmins:[],implicitAccess:null}},Up=function(a){return{admins:Pp(a.admins),editors:Pp(a.editors),appenders:Pp(a.appenders),readers:Pp(a.readers),restrictedReaders:Pp(a.restrictedReaders),
restrictedPlusReaders:Pp(a.restrictedPlusReaders),inheritedAdmins:Pp(a.inheritedAdmins),implicitAccess:a.implicitAccess||null}},Vp=function(a){return{admins:Qp(a.admins),editors:Qp(a.editors),appenders:Qp(a.appenders),readers:Qp(a.readers),restrictedReaders:Qp(a.restrictedReaders),restrictedPlusReaders:Qp(a.restrictedPlusReaders),implicitAccess:a.implicitAccess}},Wp=function(a){return a?la(a,"@")?a:a==="[Deleted User]"?a:a+"@google.com":""},pMa=function(a){var b="",c=[];a=l(a.split(","));for(var d=
a.next();!d.done;d=a.next())b+=d.value.trim(),b.match(/^[a-z0-9@\-\._\+]+$/i)?(c.push(mMa(b)),b=""):nMa.test(b)?(c.push(b),b=""):b.match(/(".+" )?<.+>/)&&(b=mMa(oMa(b)),c.push(b),b="");return c.join(", ")+", "},oMa=function(a){return a.substr(Math.max(0,a.lastIndexOf("<"))).trim().replace(/[<>]/g,"")},mMa=function(a){a=a.trim();Ba(a)===","&&(a=a.slice(0,-1));a=Wp(a);var b=a.split("@");return b.length===2?b[0]+"@"+b[1].toLowerCase():a},rMa=function(a){if(qMa==null){var b=typeof document!=="undefined"?
document.head:null;qMa=!(!b||!b.createShadowRoot&&!b.attachShadow)}return qMa&&(a=a.getRootNode?a.getRootNode():null,typeof ShadowRoot!=="undefined"&&ShadowRoot&&a instanceof ShadowRoot)?a:null},sMa=function(a){if(a&1){var b=t();J(0,"div",0);N("clickOutside",function(){u(b);var c=P();return w(c.closeHovercard$.next())})("mouseenter",function(){u(b);P().isOnHover$.next(!0);return w()})("mouseleave",function(){u(b);P().isOnHover$.next(!1);return w()});dh(1);K()}a&2&&(a=P(),vh(a.className),I("cdkTrapFocusAutoCapture",
a.wasTriggeredByKeyboard))},tMa=function(a){a&1&&M(0,"img",9);a&2&&(a=P(),I("src",a.person.imageUrl,hf)("alt",a.person.name+"'s profile picture"))},uMa=function(a){a&1&&(J(0,"div",10),R(1),K());a&2&&(a=P(),x(),wh(a.person.email))},vMa=function(a){a&1&&(J(0,"div",11)(1,"onedev-chip",12),M(2,"mat-icon",13),R(3),K()());a&2&&(a=P(),x(3),T("",a.outOfOfficeDescription," "))},wMa=function(a){a&1&&(J(0,"li"),R(1),K());a&2&&(a=P(2),x(),wh(a.person.title))},xMa=function(a){a&1&&M(0,"li",18)},yMa=function(a){a&
1&&(J(0,"li"),R(1),K());a&2&&(a=P(2),x(),wh(a.person.department))},zMa=function(a){a&1&&(Wg(0),M(1,"mat-icon",14),J(2,"div",15)(3,"ul",16),D(4,wMa,2,1,"li",8)(5,xMa,1,0,"li",17)(6,yMa,2,1,"li",8),K()(),Xg());a&2&&(a=P(),x(4),I("ngIf",a.person.title),x(),I("ngIf",a.person.title&&a.person.department),x(),I("ngIf",a.person.department))},AMa=function(a){a&1&&(Wg(0),M(1,"mat-icon",19),J(2,"div",15),R(3),K(),Xg());a&2&&(a=P(),x(3),wh(a.person.location))},BMa=function(a){a&1&&(Wg(0),M(1,"mat-icon",20),J(2,
"div",15)(3,"ul",16)(4,"li")(5,"a",21),R(6,"Teams"),K()(),M(7,"li",18),J(8,"li")(9,"a",21),R(10,"Calendar"),K()(),M(11,"li",18),J(12,"li")(13,"a",21),R(14,"CLs"),K()(),M(15,"li",18),J(16,"li")(17,"a",21),R(18,"Readability"),K()(),M(19,"li",18),J(20,"li")(21,"a",21),R(22,"CLStats"),K()()()(),Xg());a&2&&(a=P(),x(5),I("href","https://moma.corp.google.com/person/"+a.person.ldap,hf),x(4),I("href","https://www.google.com/calendar/embed?src="+a.person.email+"&mode=WEEK&showCalendars=0",hf),x(4),I("href",
"https://critique.corp.google.com/"+a.person.ldap,hf),x(4),I("href","https://icanread.corp.google.com/s/"+a.person.ldap,hf),x(4),I("href","https://clstats.corp.google.com/?user="+a.person.ldap+"#r",hf))},DMa=function(a){return a&&CMa.test(a)?a.split("@")[0]:""},EMa=function(a){return a?a.find(function(b){var c;return((c=b.metadata)==null?void 0:c.container)==="DOMAIN_PROFILE"}):null},FMa=function(a){return a?a.find(function(b){var c;return((c=b.metadata)==null?void 0:c.container)==="DOMAIN_PROFILE"}):
null},GMa=function(a,b){return a.map(function(c){var d,e,f,h=(e=b==null?void 0:(d=b.matches)==null?void 0:d.find(function(L){return L.lookupId===c}))==null?void 0:(f=e.personId)==null?void 0:f[0];if(!h)return{ldap:DMa(c),name:"",email:c};var k;d=b==null?void 0:(k=b.people)==null?void 0:k[h];var q;h=(q=FMa(d==null?void 0:d.email))==null?void 0:q.value;var v,A;q=d==null?void 0:(v=d.name)==null?void 0:(A=v[0])==null?void 0:A.displayName;var E,H;v=d==null?void 0:(E=d.photo)==null?void 0:(H=E[0])==null?
void 0:H.url;A=EMa(d==null?void 0:d.organization);E=A==null?void 0:A.title;H=A==null?void 0:A.department;A=A==null?void 0:A.location;return{ldap:DMa(h),email:h||c||"",name:q||"",imageUrl:v,title:E,department:H,location:A}})},HMa=function(a,b){a!=null&&this.append.apply(this,arguments)},Xp=function(a){IMa.call(this,a)},Yp=function(a,b){b=b===void 0?!1:b;this.parsedImageUrl_=null;a instanceof JMa||(KMa==void 0&&(KMa=new LMa),a=KMa.parse(a.toString(),b));this.parsedImageUrl_=a;a=this.parsedImageUrl_.getParsedOptions();
IMa.call(this,a);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;this.domain_=this.parsedImageUrl_.getDomain();this.query_=this.parsedImageUrl_.getQuery()},MMa=function(a,b){a&1&&(J(0,"onedev-person-hovercard-body",1),U(1,"async"),dh(2,0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),dh(3,1,["ngProjectAs","[onedev-additional-content]",5,["","onedev-additional-content",""]]),K());a&2&&(a=b.ngIf,b=P(),I("person",a)("outOfOfficeDescription",V(1,2,b.outOfOfficeDescription$)))},
NMa=function(a){a&1&&(J(0,"onedev-person-hovercard",2,0),dh(2,0,["ngProjectAs","onedev-hovercard-action",5,["onedev-hovercard-action"]]),K());if(a&2){a=Q(1);var b=P();I("email",b.email)("enableWaldo",!0)("onedevIsHovercardReady",a.init)}},OMa=function(a){a&1&&Yg(0)},PMa=function(a){a&1&&(J(0,"span",2),D(1,OMa,1,0,"ng-container",3),K(),J(2,"onedev-hovercard",null,1),M(4,"b-person-card",4),K());if(a&2){a=Q(3);var b=P(),c=Q(3);I("onedevHovercardTrigger",a)("onedevHovercardActive",!!b.email);x();I("ngTemplateOutlet",
c);x(3);I("email",b.email)}},QMa=function(a){a&1&&Yg(0)},RMa=function(a){a&1&&D(0,QMa,1,0,"ng-container",3);a&2&&(P(),a=Q(3),I("ngTemplateOutlet",a))},SMa=function(a){a&1&&dh(0)},TMa=function(){return new Vd(3008,!1)},UMa=function(a,b){return{type:7,name:a,definitions:b,options:{}}},Zp=function(a,b){return{type:4,styles:b===void 0?null:b,timings:a}},$p=function(a){return{type:6,styles:a,offset:null}},aq=function(a,b){return{type:0,name:a,styles:b,options:void 0}},bq=function(a,b){return{type:1,expr:a,
animation:b,options:null}},cq=function(a){if(typeof a=="number")return a;a=a.match(/^(-?[\.\d]+)(m?s)/);return!a||a.length<2?0:VMa(parseFloat(a[1]),a[2])},VMa=function(a,b){switch(b){case "s":return a*1E3;default:return a}},XMa=function(a,b,c){if(a.hasOwnProperty("duration"))b=a;else a:{var d=0,e="";if(typeof a==="string"){var f=a.match(WMa);if(f===null){b.push(new Vd(3E3,!1));b={duration:0,delay:0,easing:""};break a}a=VMa(parseFloat(f[1]),f[2]);var h=f[3];h!=null&&(d=VMa(parseFloat(h),f[4]));(f=
f[5])&&(e=f)}c||(c=!1,f=b.length,a<0&&(b.push(new Vd(3100,!1)),c=!0),d<0&&(b.push(new Vd(3101,!1)),c=!0),c&&b.splice(f,0,new Vd(3E3,!1)));b={duration:a,delay:d,easing:e}}return b},YMa=function(a){return a.length?a[0]instanceof Map?a:a.map(function(b){return new Map(Object.entries(b))}):[]},dq=function(a,b,c){b.forEach(function(d,e){var f=ZMa(e);c&&!c.has(e)&&c.set(e,a.style[f]);a.style[f]=d})},eq=function(a,b){b.forEach(function(c,d){d=ZMa(d);a.style[d]=""})},$Ma=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},bNa=function(a,b,c){var d=b.params||{};a=aNa(a);a.length&&a.forEach(function(e){d.hasOwnProperty(e)||c.push(new Vd(3001,!1))})},aNa=function(a){var b=[];if(typeof a==="string"){for(var c;c=cNa.exec(a);)b.push(c[1]);cNa.lastIndex=0}return b},dNa=function(a,b,c){var d=""+a,e=d.replace(cNa,function(f,h){h=b[h];h==null&&(c.push(new Vd(3003,!1)),h="");return h.toString()});return e==d?a:e},ZMa=function(a){return a.replace(eNa,function(){return ge.apply(0,
arguments)[1].toUpperCase()})},gNa=function(a,b,c){if(c.size&&b.length){var d=b[0],e=[];c.forEach(function(h,k){d.has(k)||e.push(k);d.set(k,h)});if(e.length){c={};for(var f=1;f<b.length;c={kf$jscomp$1:void 0},f++)c.kf$jscomp$1=b[f],e.forEach(function(h){return function(k){return h.kf$jscomp$1.set(k,fNa(a,k))}}(c))}}return b},fq=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 Vd(3004,!1);}},fNa=function(a,b){return window.getComputedStyle(a)[b]},hq=function(a){switch(a.length){case 0:return new gq;case 1:return a[0];default:return new hNa(a)}},jNa=function(a,b,c){b=b===
void 0?new Map:b;c=c===void 0?new Map:c;var d=[],e=[],f=-1,h=null;a.forEach(function(k){var q=k.get("offset"),v=q==f,A=v&&h||new Map;k.forEach(function(E,H){var L=H;if(H!=="offset")switch(L=ZMa(L),E){case "!":E=b.get(H);break;case "*":E=c.get(H);break;default:E=iNa(L,E,d)}A.set(L,E)});v||e.push(A);h=A;f=q});if(d.length)throw new Vd(3502,!1);return e},lNa=function(a,b,c,d){switch(b){case "start":a.onStart(function(){return d(c&&kNa(c,"start",a))});break;case "done":a.onDone(function(){return d(c&&
kNa(c,"done",a))});break;case "destroy":a.onDestroy(function(){return d(c&&kNa(c,"destroy",a))})}},kNa=function(a,b,c){var d=c.totalTime;b=mNa(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},mNa=function(a,b,c,d,e,f,h){return{element:a,triggerName:b,fromState:c,toState:d,phaseName:e===void 0?"":e,totalTime:f===void 0?0:f,disabled:!!h}},iq=function(a,b,c){var d=a.get(b);d||a.set(b,d=c);return d},nNa=function(a){var b=
a.indexOf(":");return[a.substring(1,b),a.slice(b+1)]},pNa=function(a){a=a.parentNode||a.host||null;return a===oNa?null:a},qNa=function(a,b){for(;b;){if(b===a)return!0;b=pNa(b)}return!1},tNa=function(a,b){var c=[];typeof a=="string"?a.split(/\s*,\s*/).forEach(function(d){a:{if(d[0]==":"&&(d=rNa(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 Vd(3015,!1)),d=c;else{d=e[1];var f=e[2];e=e[3];c.push(sNa(d,
e));f[0]!="<"||d=="*"&&e=="*"||c.push(sNa(e,d));d=void 0}}return d}):c.push(a);return c},rNa=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 Vd(3016,!1)),"* => *"}},sNa=function(a,b){var c=uNa.has(a)||vNa.has(a),d=uNa.has(b)||vNa.has(b);return function(e,f){var h=a=="*"||a==e,k=b=="*"||
b==f;!h&&c&&typeof e==="boolean"&&(h=e?uNa.has(a):vNa.has(a));!k&&d&&typeof f==="boolean"&&(k=f?uNa.has(b):vNa.has(b));return h&&k}},xNa=function(a){var b=a.split(/\s*,\s*/).find(function(c){return c==":self"})?!0:!1;b&&(a=a.replace(wNa,""));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]},yNa=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},zNa=function(a,b){if(a.hasOwnProperty("duration"))return a;if(typeof a=="number")return{duration:XMa(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=XMa(a,b);return{duration:a.duration,delay:a.delay,
easing:a.easing}},jq=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},ANa=function(a,b,c,d,e,f,h,k){return{type:1,element:a,keyframes:b,preStyleProps:c,postStyleProps:d,duration:e,delay:f,totalTime:e+f,easing:h===void 0?null:h,subTimeline:k===void 0?!1:k}},CNa=function(a,b,c,d,e,f,h,k,q,v){f=f===void 0?new Map:f;h=h===void 0?new Map:h;v=v===void 0?[]:v;return(new BNa).buildKeyframes(a,b,c,d,e,f,h,k,q,v)},DNa=function(a,
b){var c=new Map,d;a.forEach(function(e){if(e==="*"){d!=null||(d=b.keys());e=l(d);for(var f=e.next();!f.done;f=e.next())c.set(f.value,"*")}else for(e=l(e),f=e.next();!f.done;f=e.next()){var h=l(f.value);f=h.next().value;h=h.next().value;c.set(f,h)}});return c},ENa=function(a,b,c,d,e,f,h,k,q,v,A,E,H){return{type:0,element:a,triggerName:b,isRemovalTransition:e,fromState:c,fromStyles:f,toState:d,toStyles:h,timelines:k,queriedElements:q,preStyleProps:v,postStyleProps:A,totalTime:E,errors:H}},FNa=function(a,
b,c,d,e){return a.some(function(f){return f(b,c,d,e)})},GNa=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},INa=function(a,b){return new HNa(a,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(){return!0}],options:null,queryCount:0,depCount:0},b)},JNa=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))},KNa=function(a){return a&&a.nodeType===1},LNa=
function(a,b){var c=a.style.display;a.style.display=b!=null?b:"none";return c},NNa=function(a,b,c){var d=[];b.forEach(function(h){return d.push(LNa(h))});var e=[];c.forEach(function(h,k){var q=new Map;h.forEach(function(v){var A=fNa(k,v);q.set(v,A);A&&A.length!=0||(k.__ng_removed=MNa,e.push(k))});a.set(k,q)});var f=0;b.forEach(function(h){return LNa(h,d[f++])});return e},ONa=function(a,b){function c(h){if(!h)return 1;var k=f.get(h);if(k)return k;var q=h.parentNode;d.has(q)?k=q:e.has(q)?k=1:k=c(q);
f.set(h,k);return k}var d=new Map;a.forEach(function(h){return d.set(h,[])});if(b.length==0)return d;var e=new Set(b),f=new Map;b.forEach(function(h){var k=c(h);k!==1&&d.get(k).push(h)});return d},kq=function(a,b){var c;(c=a.classList)==null||c.add(b)},lq=function(a,b){var c;(c=a.classList)==null||c.remove(b)},QNa=function(a,b,c){hq(c).onDone(function(){return PNa(a,b)})},SNa=function(a){var b=[];RNa(a,b);return b},RNa=function(a,b){for(var c=0;c<a.length;c++){var d=a[c];d instanceof hNa?RNa(d.players,
b):b.push(d)}},TNa=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},UNa=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},XNa=function(a,b){var c=null,d=null;Array.isArray(b)&&b.length?(c=VNa(b[0]),b.length>1&&(d=VNa(b[b.length-1]))):b instanceof Map&&(c=VNa(b));return c||d?new WNa(a,c,d):
null},VNa=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},YNa=function(a){switch(a){case "body":return document.body;case "document":return document;case "window":return window;default:return a}},ZNa=function(a){var b=a.indexOf(".");return[a.substring(0,b),a.slice(b+1)]},$Na=function(a){var b=function(){var c=a.apply(this,[].concat(p(ge.apply(0,arguments))))||this;c.defaultColor=void 0;c.color=void 0;return c};Y(b,a);nd.Object.defineProperties(b.prototype,
{color:{configurable:!0,enumerable:!0,get:function(){return this._color},set:function(c){c=c||this.defaultColor;c!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),c&&this._elementRef.nativeElement.classList.add("mat-"+c),this._color=c)}}});return b},aOa=function(a){var b=function(){var c=a.apply(this,[].concat(p(ge.apply(0,arguments))))||this;c._disableRipple=!1;return c};Y(b,a);nd.Object.defineProperties(b.prototype,{disableRipple:{configurable:!0,
enumerable:!0,get:function(){return this._disableRipple},set:function(c){this._disableRipple=pi(c)}}});return b},bOa=function(a){var b=function(){var c=a.apply(this,[].concat(p(ge.apply(0,arguments))))||this;c._disabled=!1;return c};Y(b,a);nd.Object.defineProperties(b.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(c){this._disabled=pi(c)}}});return b},cOa=function(a){if(a&1){var b=t();J(0,"div",1)(1,"button",2);N("click",function(){u(b);var c=
P();return w(c.action())});R(2);K()()}a&2&&(a=P(),x(2),T(" ",a.data.action," "))},dOa=function(){},eOa=function(a){a&1&&M(0,"span",1);a&2&&(a=P(),I("innerHtml",a.data.htmlMessage,gf))},fOa=function(a){a&1&&(J(0,"span",2),R(1),K());a&2&&(a=P(),x(),wh(a.data.message))},gOa=function(a){if(a&1){var b=t();J(0,"button",6);N("click",function(){u(b);var c=P();return w(c.snackBarRef.dismissWithAction())});R(1);K()}a&2&&(a=P(),x(),T(" ",a.data.actionLabel," "))},hOa=function(a){if(a&1){var b=t();J(0,"button",
6);N("click",function(){u(b);var c=P();return w(c.snackBarRef.dismiss())});R(1);K()}a&2&&(a=P(),x(),T(" ",a.data.dismissLabel," "))},iOa=function(a){if(a&1){var b=t();J(0,"button",7);N("click",function(){u(b);var c=P();return w(c.snackBarRef.dismiss())});M(1,"mat-icon",8);K()}},mq=function(a){return typeof a==="string"?"buganizer.drafts."+a:"buganizer.drafts.labeled."+a.label},jOa=function(){},kOa=function(a){var b=nh.apply(null,[a].concat(p([]))),c=new nq;return{valueSignal:b,get value(){return b()},
change:c,ngOnDestroy:function(){c.complete()}}},lOa=function(a,b){for(var c=a.length;c--;)b(a[c])},mOa=function(){},nOa=function(a){return a==null?null:typeof a==="number"?a:a.endsWith("ms")?si(a.substring(0,a.length-2)):a.endsWith("s")?si(a.substring(0,a.length-1))*1E3:a==="0"?0:null},oOa=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},pOa=function(a){if(a&1){var b=
t();J(0,"button",5);N("click",function(){u(b);var c=P();return w(c.dialogRef.close(!1))});R(1);K()}a&2&&(a=P(),x(),T(" ",a.cancelButtonText," "))},qOa=function(a){var b=[];a=[].concat.apply([],p(a.map(function(e){return e.actions})));a=l(a);for(var c=a.next(),d={};!c.done;d={action$jscomp$51:void 0},c=a.next())d.action$jscomp$51=c.value,b.some(function(e){return function(f){return gj(e.action$jscomp$51,f)}}(d))||b.push(d.action$jscomp$51);return b},rOa=function(a){return Array.from(new Set([].concat.apply([],
p(a.map(function(b){return b.issueIds})))))},tOa=function(a){return sOa.has(a)},uOa=function(a){return{encryptedMedia:Dca(oq(a,1,void 0,Nc)),errorMessage:a.getErrorMessage()}},wOa=function(a){var b=new vOa;pq(b,1,gb(a.attachment,!1,!0));if(a.contentJudgement!==void 0){var c=b.setContentJudgement;a=a.contentJudgement;a=(new qq).setIt(Bxa(a));c.call(b,a)}return b},yOa=function(a){var b;return{attachments:((b=a.getAttachmentsList())!=null?b:[]).map(xOa)}},xOa=function(a){if(a!=null)return Qxa(a.getIt())},
zOa=function(a,b){a&1&&(J(0,"li"),R(1),K());a&2&&(a=b.$implicit,x(),wh(a))},COa=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=AOa(b),f=AOa(c),h=AOa(d);a=b*(c+d)?" ":"";var k=c*d?" ":"";b=BOa("{COUNT, plural, =0 {}=1 {{TEXT} day}other {{TEXT} days}}",b,e);c=BOa("{COUNT, plural, =0 {}=1 {{TEXT} hour}other {{TEXT} hours}}",c,f);d=BOa("{COUNT, plural, =0 {}=1 {{TEXT} minute}other {{TEXT} minutes}}",d,h);return b+
a+c+k+d},BOa=function(a,b,c){return(new DOa(a)).format({COUNT:b,TEXT:c})},EOa=function(a){return a.endsWith("?")?a.slice(0,a.length-1):a},FOa=function(a,b,c,d){c&&c.targetTime&&(c.endTime?b.push({sloBounds:c,sloMetric:d}):a.push({sloBounds:c,sloMetric:d}))},GOa=function(a,b){return a.sloBounds.targetTime.seconds-b.sloBounds.targetTime.seconds},HOa=function(){return{startTime:Date.now(),sessionStartTime:Date.now(),firstActionSeen:!1,editCount:0,variations:new Set}},IOa=function(a){var b;return(b=Mj(a))!=
null?b:null},JOa=function(a){var b;return(b=Nj(a))!=null?b:null},KOa=function(a,b){b=(b===void 0?{}:b).comment;return{path:"/issues/"+a,fragment:b?"comment"+b:void 0}},rq=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},LOa=function(a){var b={};a=(b.component=a||void 0,b);a=a===void 0?{}:a;return{path:"/issues/new",queryParams:a}},MOa=function(a){return{path:"/components/"+
a}},NOa=function(a){var b={};a&&(b.componentId=a);return{path:"/components",queryParams:b}},OOa=function(a){return{path:"/slos/"+a+"/edit"}},POa=function(a){var b;return(a==null?void 0:(b=a.userData)==null?void 0:b.starred)||!1},QOa=function(a){var b;return(a==null?void 0:(b=a.userData)==null?void 0:b.lastViewedTimeMicros)||0},ROa=function(a){var b;return(b=vl(a))==null?void 0:b.title},SOa=function(a){var b,c;return(c=(b=vl(a))==null?void 0:b.status)!=null?c:void 0},TOa=function(a){var b,c;return(c=
(b=vl(a))==null?void 0:b.priority)!=null?c:void 0},UOa=function(a){var b,c;return(c=(b=vl(a))==null?void 0:b.assigneeUser)!=null?c:void 0},VOa=function(a){var b,c;return(c=(b=vl(a))==null?void 0:b.reporterUser)!=null?c:void 0},WOa=function(a){var b;a=a==null?void 0:(b=a.aggregatedData)==null?void 0:b.teamId;return Nj(a)},XOa=function(a){var b;a=(b=vl(a))==null?void 0:b.componentId;return Nj(a)},YOa=function(a){var b,c;return(c=(b=vl(a))==null?void 0:b.ccUsers)!=null?c:[]},ZOa=function(a){var b,c;
return(c=(b=vl(a))==null?void 0:b.issueAccessLimitLevel)!=null?c:"LIMIT_NONE"},$Oa=function(a){var b,c;return(c=(b=vl(a))==null?void 0:b.collaboratorsUsers)!=null?c:[]},aPa=function(a){var b,c;return(c=(b=vl(a))==null?void 0:b.type)!=null?c:void 0},bPa=function(a){var b,c;return(c=(b=vl(a))==null?void 0:b.foundInVersion)!=null?c:[]},cPa=function(a){var b,c;return(c=(b=vl(a))==null?void 0:b.targetedToVersion)!=null?c:[]},dPa=function(a){var b,c;return(c=(b=vl(a))==null?void 0:b.changelist)!=null?c:
[]},ePa=function(a){var b,c;return(c=(b=vl(a))==null?void 0:b.postmortems)!=null?c:[]},fPa=function(a){var b;return((b=vl(a))==null?void 0:b.inProd)||!1},gPa=function(a){var b;return(b=vl(a))==null?void 0:b.effort},hPa=function(a){var b,c;return(c=(b=vl(a))==null?void 0:b.staffing)!=null?c:void 0},iPa=function(a){var b;return a==null?void 0:(b=a.aggregatedData)==null?void 0:b.voteCount},jPa=function(a){var b;return(a==null?void 0:(b=a.userData)==null?void 0:b.voted)||!1},lPa=function(a){return kPa(a)},
kPa=function(a){var b,c;return(c=(b=vl(a))==null?void 0:b.isDeleted)!=null?c:!1},nPa=function(a){return mPa(a)},mPa=function(a){var b;return a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel},oPa=function(a){return(a=a==null?void 0:a.aggregatedData)&&Math.round(a.modifiedTimeMicros/1E3)},qPa=function(a){return pPa(a)},pPa=function(a){var b,c;return(c=(b=vl(a))==null?void 0:b.retention)!=null?c:void 0},rPa=function(a){var b,c;return(c=(b=vl(a))==null?void 0:b.duplicateOfIssueId)!=null?c:
void 0},tPa=function(a){return sPa(a)},sPa=function(a){var b,c;return(c=a==null?void 0:(b=a.aggregatedData)==null?void 0:b.retentionState)!=null?c:void 0},uPa=function(a){var b;return Nj(a==null?void 0:(b=a.aggregatedData)==null?void 0:b.sloId)},vPa=function(a){var b;return a==null?void 0:(b=a.aggregatedData)==null?void 0:b.createdTimeMicros},wPa=function(a){return a==null?void 0:a.effortSpec},xPa=function(a){a=wPa(a);return!(!a||!a.name&&!a.inherit)},yPa=function(a){return a==null?void 0:a.componentPathInfo},
BPa=function(a){if(!a)return{};var b,c=l((b=a.match(zPa))!=null?b:[]);c.next();b=c.next().value;var d;a=l((d=a.match(APa))!=null?d:[]);a.next();d=a.next().value;return{commentNumber:Mj(b),commentVersion:Mj(d)}},CPa=function(a){return typeof a==="object"?"customField:"+a.customFieldId:a},EPa=function(a,b){if(DPa[a])return DPa[a][b]},FPa=function(a){return a.customFieldValue?{customFieldId:String(a.customFieldValue.customFieldId)}:a.fieldName},IPa=function(a){if(a&1){var b=t();Wg(0,1);J(1,"onedev-hovercard-action",
3);U(2,"async");N("onAction",function(){u(b);var e=P();return w(GPa(e))});J(3,"span");R(4);K()();J(5,"onedev-hovercard-action",3);U(6,"async");N("onAction",function(){u(b);var e=P();return w(HPa(e))});J(7,"span");R(8);K()();Xg()}if(a&2){a=P();x();var c;I("disabled",(c=V(2,4,a.actionService.assigneeUpdating$))!=null?c:!1);x(3);wh(a.email!==a.currentAssignee?"Set as assignee":"Remove assignee");x();var d;I("disabled",(d=V(6,6,a.actionService.ccUpdating$))!=null?d:!1);x(3);wh(a.currentCc.includes(a.email)?
"Remove from CCs":"Add to CCs")}},JPa=function(a){a&1&&M(0,"b-availability-chip",2);a&2&&(a=P(2),I("user",a.email))},KPa=function(a){a&1&&(Wg(0),R(1),Xg(),F(2,JPa,1,1,"b-availability-chip",2));if(a&2){a=P();var b=P();x();wh(a.content);x();G(b.enableWaldoAvailability&&b.availabilityChipEnabled?2:-1)}},LPa=function(a){a&1&&Yg(0)},MPa=function(a){a&1&&(J(0,"span",3),D(1,LPa,1,0,"ng-container",4),K(),J(2,"onedev-hovercard",null,1),M(4,"b-issue-person-card",5),K());if(a&2){a=Q(3);var b=P(),c=Q(1),d=P();
I("onedevHovercardTrigger",a);Lg("tabindex",d.hovercardEnabled&&d.hovercardFocusEnabled?"0":null);x();I("ngTemplateOutlet",c);x(3);I("email",b.email)}},NPa=function(a){a&1&&Yg(0)},OPa=function(a){a&1&&D(0,NPa,1,0,"ng-container",4);a&2&&(P(),a=Q(1),I("ngTemplateOutlet",a))},PPa=function(a,b){a&1&&(D(0,KPa,3,2,"ng-template",null,0,Lh),F(2,MPa,5,4)(3,OPa,1,1,"ng-container"));a&2&&(a=P(),x(2),G(a.hovercardEnabled&&a.isNonObfuscatedEmail(b.email)?2:3))},QPa=function(a){a&1&&M(0,"b-user-display-name",0);
a&2&&(a=P(),I("email",a.getEmailAddress())("hovercardEnabled",!1)("availabilityChipEnabled",a.availabilityChipEnabled)("hovercardFocusEnabled",a.hovercardFocusEnabled))},RPa=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P(),x(),wh(a.getDisplayString()))},SPa=function(a){a&1&&Yg(0)},TPa=function(a){a&1&&(J(0,"span",2),D(1,SPa,1,0,"ng-container",3),K(),J(2,"onedev-hovercard",null,1),M(4,"b-issue-person-card",4),K());if(a&2){a=Q(3);var b=P(),c=Q(3);I("onedevHovercardTrigger",a);x();I("ngTemplateOutlet",
c);x(3);I("email",b.email)}},UPa=function(a){a&1&&Yg(0)},VPa=function(a){a&1&&D(0,UPa,1,0,"ng-container",3);a&2&&(P(),a=Q(3),I("ngTemplateOutlet",a))},XPa=function(a){a&1&&M(0,"img",5);a&2&&(a=P(2),P(),I("src",WPa[a.email],hf))},YPa=function(a){a&1&&M(0,"img",8);a&2&&(a=P(3),I("src",a.src,hf)("srcset",a.srcset))},ZPa=function(a){a&1&&(J(0,"span",7),U(1,"async"),F(2,YPa,1,2,"img",8),K());if(a&2){a=P(2);var b=P();uh("team-member",V(1,5,b.isTeamMember$))("anonymous",!a.showImage);x(2);G(a.showImage?
2:-1)}},aQa=function(a){a&1&&(F(0,XPa,1,1,"img",5),F(1,ZPa,3,7,"span",6));if(a&2){a=P();var b=P();G(a.email&&$Pa(b,a.email)?0:-1);x();G($Pa(b,a.email)?-1:1)}},bQa=function(a,b){a&1&&(F(0,TPa,5,3)(1,VPa,1,1,"ng-container"),D(2,aQa,2,2,"ng-template",null,0,Lh));a&2&&(a=P(),G(a.isNonObfuscatedEmail(b.email)?0:1))},cQa=function(a){a&1&&M(0,"b-user-image",3);a&2&&(a=P(),I("email",a.email))},dQa=function(a){a&1&&Yg(0)},eQa=function(a){a&1&&(J(0,"span",5),D(1,dQa,1,0,"ng-container",6),K(),J(2,"onedev-hovercard",
null,1),M(4,"b-issue-person-card",7),K());if(a&2){a=Q(3);var b=P(),c=Q(5);I("onedevHovercardTrigger",a);x();I("ngTemplateOutlet",c);x(3);I("email",b.email)}},fQa=function(a){a&1&&Yg(0)},gQa=function(a){a&1&&D(0,fQa,1,0,"ng-container",6);a&2&&(P(),a=Q(5),I("ngTemplateOutlet",a))},hQa=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P(),x(),wh(a.getEmailDisplayString(a.email,a.ldapOnly)))},iQa=function(a){a&1&&(J(0,"span",4),M(1,"b-availability-chip",8),K());a&2&&(a=P(),x(),I("user",a.email))},jQa=function(a,
b){pl(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},kQa=function(a){a&1&&M(0,"b-icon",5)},lQa=function(a){a&1&&M(0,"b-user-image",6);a&2&&(a=P(2),I("email",a.email))},mQa=function(a){a&1&&(F(0,kQa,1,0,"b-icon",5),U(1,"async"),Mg(2,lQa,1,1,"b-user-image",6));a&2&&(a=P(),G(a.enableGroupIcon&&V(1,1,a.isGroup$)?0:2))},nQa=function(a){a&1&&M(0,"b-user-display-name",2);a&2&&(a=P(),I("email",a.email)("hovercardFocusEnabled",
!0)("availabilityChipEnabled",!1))},oQa=function(a){a&1&&Yg(0)},pQa=function(a){a&1&&(J(0,"span",7),D(1,oQa,1,0,"ng-container",8),K(),J(2,"onedev-hovercard",null,1),M(4,"b-issue-person-card",9),K());if(a&2){a=Q(3);P();var b=Q(3),c=P();I("onedevHovercardTrigger",a);x();I("ngTemplateOutlet",b);x(3);I("email",c.email)}},qQa=function(a){a&1&&Yg(0)},rQa=function(a){a&1&&D(0,qQa,1,0,"ng-container",8);a&2&&(P(),a=Q(3),I("ngTemplateOutlet",a))},sQa=function(a){a&1&&(J(0,"span",10),R(1),K());a&2&&(a=P(2),
x(),wh(a.email))},tQa=function(a){a&1&&(F(0,pQa,5,3)(1,rQa,1,1,"ng-container"),D(2,sQa,2,1,"ng-template",null,0,Lh));a&2&&(a=P(),G(a.isNonObfuscatedEmail(a.email)?0:1))},uQa=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=V(1,2,a.iconName$))!=null?b:"")("matTooltip",(c=V(2,4,a.iconToolTip$))!=null?c:"")}},vQa=function(a){a&1&&M(0,"b-availability-chip",4);a&2&&(a=P(),I("user",a.email))},wQa=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}},xQa=function(a){return a?mj(a.replace(/_/g," ").toLowerCase()):""},yQa=function(a){return a?a.join(", "):""},zQa=function(a,b){if(!a)return Xi("");if(!b)return Xi(a);b=b.split(" ").map(msa);b=b.filter(function(h){return!!h});b=b.map(sq);if(b.length===0)return Xi(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($i("b",{},f));c.push(d);a=a.substring(e+f.length+d.length)}return Yi(c)},AQa=function(a){return a?"Yes":"No"},BQa=function(a){return a?a.pathNames?a.pathNames.join(" > "):"":""},CQa=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},DQa=function(a){if(!a)return null;
var b=new rl;b.setTime(a.seconds*1E3);return b},EQa=function(a){if(a&&pl(a))return a},FQa=function(a){return a==null?"":String(a)},GQa=function(a){var b;return(b=a==null?void 0:a.filter(function(c){return!!c.trim()}).join(", "))!=null?b:""},HQa=function(a){a&1&&Yg(0)},IQa=function(a){a&1&&D(0,HQa,1,0,"ng-container",8);a&2&&(a=P(),I("ngTemplateOutlet",a.calendarButtonRow))},JQa=function(a){if(a&1){var b=t();J(0,"mat-form-field",3)(1,"input",9);N("focus",function(c){u(b);var d=P();return w(d.showPicker(c.target))});
K()()}a&2&&(a=P(),x(),I("formControl",a.timeFormControl))},NQa=function(a){if(a&1){var b=t();J(0,"button",12);N("click",function(){u(b);var c=P(2);KQa(c,new jj);c.includeTimePicker&&(c.dateTime=new rl,LQa(c,new rl));MQa(c);c.saveChanges();return w(c.saveClicked.emit())});R(1,"Today");K()}},OQa=function(a){if(a&1){var b=t();J(0,"button",13);N("click",function(){u(b);var c=P(2);KQa(c);c.includeTimePicker&&(c.dateTime=void 0);c.saveChanges();return w(c.saveClicked.emit())});R(1,"None");K()}},PQa=function(a){a&
1&&(J(0,"div",1),F(1,NQa,2,0,"button",10),F(2,OQa,2,0,"button",11),M(3,"mat-divider"),K());a&2&&(a=P(),x(),G(a.todayButtonEnabled?1:-1),x(),G(a.noneButtonEnabled&&!a.required?2:-1))},QQa=function(a){a&1&&(M(0,"div"),U(1,"lowercase"));a&2&&(a=P(3),vh(Dh("bv2-edit-icon ",V(1,3,a.type))))},RQa=function(a){a&1&&(J(0,"div")(1,"label"),R(2),K(),F(3,QQa,2,5,"div",13),K());a&2&&(a=P(2),vh(Dh("bv2-editable-title bv2-editable-title-",a.name," flex-kids-x")),x(2),T(" ",a.title," "),x(),G(a.readonly||a.disabled?
-1:3))},SQa=function(a){a&1&&Yg(0)},TQa=function(a){if(a&1){var b=t();J(0,"div",17);N("menuClosed",function(){u(b);var d=P(3);return w(tq(d,null,!1,!0))});D(1,SQa,1,0,"ng-container",18);K()}if(a&2){P(3);a=Q(7);var c=Q(10);I("matMenuTriggerFor",a);x();I("ngTemplateOutlet",c)}},VQa=function(a,b){a&1&&(J(0,"a",19),R(1),K());a&2&&(a=P(4),Lg("aria-label",Eh("customfield",a.customFieldId,":",b)),I("queryParams",Hh(5,UQa,"customfield"+a.customFieldId+':"'+b+'"')),x(),T(" ",b," "))},WQa=function(a){a&1&&
R(0," -- ")},XQa=function(a){if(a&1){var b=t();J(0,"div",16);F(1,VQa,2,7,"a",19)(2,WQa,1,0);M(3,"br");J(4,"button",20);N("menuClosed",function(){u(b);var e=P(3);return w(tq(e,null,!1,!0))});R(5," Edit ");K()()}if(a&2){var c;a=P(3);var d=Q(7);x();G((c=a.getDisplayValue(""))?1:2,c);x(3);Lg("aria-label",Dh("Edit item for ",a.title));I("matMenuTriggerFor",d)}},YQa=function(a){a&1&&F(0,TQa,2,2,"div",15)(1,XQa,6,4,"div",16);a&2&&(a=P(2),G(a.choices.length>50&&a.customFieldId!==0?1:0))},ZQa=function(a){a&
1&&Yg(0)},$Qa=function(a){a&1&&(J(0,"div",14),D(1,ZQa,1,0,"ng-container",18),K());a&2&&(P(2),a=Q(10),x(),I("ngTemplateOutlet",a))},bRa=function(a){if(a&1){var b=t();J(0,"div",12,3);N("click",function(c){u(b);var d=P();return w(tq(d,c,!0,!1))})("keydown",function(c){u(b);var d=P();return w(aRa(d,c))})("keydown.escape",function(){u(b);var c=Q(2);return w(c.hide())});F(3,RQa,4,5,"div",13);F(4,YQa,2,1)(5,$Qa,2,1,"div",14);K()}a&2&&(a=P(),vh(Dh("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",
a.name)),uh("bv2-disabled",a.disabled)("bv2-readonly",a.readonly),Lg("aria-label",Eh("",a.title," value is ",a.getDisplayValue("empty"))),I("matTooltip",a.getTooltip()),Lg("tabindex",a.readonly?-1:0)("aria-disabled",!1),x(3),G(a.title?3:-1),x(),G(a.type==="ENUM"?4:5))},cRa=function(a){if(a&1){var b=t();J(0,"div",23);N("click",function(){u(b);var c=P(2);return w(c.setFieldValue(!c.value))});J(1,"label");R(2);K()()}a&2&&(a=P(2),vh(Dh("bv2-editable-title bv2-editable-title-",a.name," flex-kids-x")),
x(2),wh(a.title))},dRa=function(a){if(a&1){var b=t();J(0,"div",21);F(1,cRa,3,4,"div",13);J(2,"b-slide-toggle",22);N("modelChange",function(){u(b);var d=P();return w(d.setFieldValue(!d.value))});K()()}if(a&2){a=P();vh(Dh("bv2-issue-metadata-field-inner bv2-issue-metadata-field-",a.name));uh("bv2-disabled",a.disabled)("bv2-readonly",a.readonly);I("matTooltip",a.getTooltip());Lg("aria-disabled",!1);x();G(a.title?1:-1);x();I("disabled",a.disabled||a.readonly);Kg("aria-label",a.name);var c;I("model",(c=
a.value)!=null?c:void 0)}},eRa=function(a){a&1&&M(0,"b-availability-chip",24);a&2&&(a=P(2),I("user",a.value))},fRa=function(a){a&1&&F(0,eRa,1,1,"b-availability-chip",24);a&2&&(a=P(),G(a.value&&a.enableWaldoAvailability?0:-1))},gRa=function(a){if(a&1){var b=t();J(0,"button",26);N("click",function(){u(b);var c=P(2);return w(c.clearFieldValue())});J(1,"span",27);M(2,"mat-icon",28);K();R(3," \u00a0 ");K()}a&2&&(a=P(2),uh("b-menu-item-checked",a.value==null),I("disabled",a.value==null))},hRa=function(a){a&
1&&M(0,"mat-divider")},iRa=function(a){a&1&&M(0,"mat-icon",31);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},jRa=function(a){a&1&&(J(0,"span",32),R(1),K());a&2&&(a=P().$implicit,x(),wh(a.hotkey.displayAs))},kRa=function(a,b){if(a&1){var c=t();F(0,hRa,1,0,"mat-divider");J(1,"button",29);N("click",function(){var e=u(c).$implicit,f=P(2);return w(f.setFieldValue(e.value))})("onHotkey",function(){var e=u(c).$implicit,f=P(2);f.setFieldValue(e.value);return w(f.enumMenuTrigger.closeMenu())});J(2,"span",30);
F(3,iRa,1,1,"mat-icon",31);J(4,"span",27);M(5,"mat-icon",28);K();R(6);F(7,jRa,2,1,"span",32);K()()}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);x();uh("b-menu-item-checked",d.value==a.value);I("disabled",d.value==a.value)("hotkey",a.hotkey);Lg("aria-label",a.displayText)("title",!d.showEnumTitle||a.altText?"":a.displayText);x(2);G(a.icon?3:-1);x(3);T(" ",a.displayText," ");x();G(a.hotkey&&d.showHotkeyHint?7:-1)}},lRa=function(a){a&1&&(F(0,gRa,4,
3,"button",25),Pg(1,kRa,8,10,null,null,Og));a&2&&(a=P(),G(a.clearable?0:-1),x(),Qg(a.choices))},mRa=function(a){a&1&&M(0,"b-user-membership-chip",37);a&2&&(a=P(4),I("user",a.user)("email",a.value)("teamId",a.teamId)("enableSmallChip",!0))},nRa=function(a){a&1&&M(0,"b-user-image",38);a&2&&(a=P(4),I("email",a.value))},oRa=function(a){a&1&&(J(0,"span",39)(1,"b-person-hovercard",40),R(2),K()());a&2&&(a=P(4),x(),I("email",a.value),x(),T(" ",a.getDisplayValue("--")," "))},pRa=function(a){a&1&&(J(0,"div",
36),F(1,mRa,1,4,"b-user-membership-chip",37),F(2,nRa,1,1,"b-user-image",38),F(3,oRa,3,2,"span",39),K());a&2&&(a=P(3),x(),G(a.enableTeamAnnotations&&a.value?1:-1),x(),G(!a.enableTeamAnnotations&&a.value?2:-1),x(),G(a.enableTeamAnnotations?-1:3))},qRa=function(a){a&1&&(J(0,"div"),F(1,pRa,4,3,"div",36),K());a&2&&(a=P(2),x(),G(a.isUser?1:-1))},rRa=function(a){a&1&&M(0,"mat-icon",41);a&2&&(a=P(3),I("svgIcon",a.displayIcon))},sRa=function(a){a&1&&M(0,"b-truncated-span",45);a&2&&(a=P(3),uh("p0",a.value===
a.IssuePriority.P0)("p1",a.value===a.IssuePriority.P1),I("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},tRa=function(a){a&1&&M(0,"b-truncated-span",45);a&2&&(a=P(3),vh(Dh("chippy status-",a.value)),I("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},uRa=function(a){a&1&&M(0,"b-truncated-span",44);a&2&&(a=P(3),I("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},vRa=function(a){a&1&&M(0,"b-truncated-span",45);
a&2&&(a=P(3),I("maxWidth",150)("modelValue",a.getDisplayValue("--"))("disabled",!a.truncate))},wRa=function(a){a&1&&M(0,"div",46)},xRa=function(a){a&1&&(J(0,"div")(1,"span",30),F(2,rRa,1,1,"mat-icon",41),F(3,sRa,1,7,"b-truncated-span",42)(4,tRa,1,6,"b-truncated-span",43)(5,uRa,1,3,"b-truncated-span",44)(6,vRa,1,3,"b-truncated-span",45),K(),F(7,wRa,1,0,"div",46),K());a&2&&(a=P(2),x(2),G(a.displayIcon?2:-1),x(),G(a.title==="Priority"?3:a.title==="Status"?4:a.title==="Triage phase"?5:6),x(4),G(a.title||
a.readonly||a.disabled?-1:7))},yRa=function(a){a&1&&(J(0,"div",34),M(1,"mat-icon",47),K())},zRa=function(a){a&1&&(J(0,"div",35),M(1,"mat-icon",48),K())},ARa=function(a){if(a&1){var b=t();J(0,"div",33,4);N("keydown",function(c){u(b);var d=P();return w(aRa(d,c))})("click",function(c){u(b);var d=P();return w(tq(d,c,!0,!1))});F(2,qRa,2,1,"div")(3,xRa,8,3,"div");F(4,yRa,2,0,"div",34)(5,zRa,2,0,"div",35);K()}a&2&&(a=P(),uh("edit-field-user-container",a.isUser)("edit-field-activated",a.isActive),x(2),G(a.isUser?
2:3),x(2),G(a.type=="ENUM"?4:5))},BRa=function(){},CRa=function(){},DRa=function(a){if(a&1){var b=t();J(0,"div",23);N("click",function(d){u(b);return w(d.stopPropagation())});J(1,"b-date-time-picker-content",51);N("dateSelectionChange",function(d){u(b);var e=P(2);return w(e.googDateValue=d!=null?d:null)})("saveClicked",function(){u(b);var d=P(2);return w(d.setFieldValue(d.googDateValue))})("cancelClicked",function(){u(b);var d=P(2);return w(tq(d,null,!1,!1))});K()()}if(a&2){a=P(2);x();var c;I("required",
!(a.clearable&&a.type==="DATE"))("date",(c=a.googDateValue)!=null?c:void 0)}},FRa=function(a){if(a&1){var b=t();J(0,"textarea",60);Ah("ngModelChange",function(c){u(b);var d=P(4);zh(d.textBuffer,c)||(d.textBuffer=c);return w(c)});N("keydown",function(c){u(b);var d=P(4);return w(ERa(d,c))});K()}a&2&&(a=P(4),yh("ngModel",a.textBuffer),Lg("aria-label",a.title))},HRa=function(a){if(a&1){var b=t();J(0,"input",61);Ah("ngModelChange",function(c){u(b);var d=P(4);zh(d.textBuffer,c)||(d.textBuffer=c);return w(c)});
N("keydown",function(c){u(b);var d=P(4);return w(GRa(d,c))});K()}a&2&&(a=P(4),yh("ngModel",a.textBuffer),Lg("type",a.type==="NUMERIC"?"number":"text")("aria-label",a.title))},IRa=function(a){a&1&&(J(0,"div"),F(1,FRa,1,2,"textarea",58)(2,HRa,1,3,"input",59),K());a&2&&(a=P(3),x(),G(a.multiline?1:2))},JRa=function(a){if(a&1){var b=t();J(0,"textarea",64);Ah("ngModelChange",function(c){u(b);var d=P(4);zh(d.textBuffer,c)||(d.textBuffer=c);return w(c)});N("keydown",function(c){u(b);var d=P(4);return w(ERa(d,
c))})("autocompleteActive",function(c){u(b);var d=P(4);return w(d.autocompleteActive=c)});K()}a&2&&(a=P(4),yh("ngModel",a.textBuffer),I("bContactAutocomplete","MULTI"),Lg("aria-label",a.title))},KRa=function(a){if(a&1){var b=t();J(0,"input",65);Ah("ngModelChange",function(c){u(b);var d=P(4);zh(d.textBuffer,c)||(d.textBuffer=c);return w(c)});N("keydown",function(c){u(b);var d=P(4);return w(GRa(d,c))})("autocompleteActive",function(c){u(b);var d=P(4);return w(d.autocompleteActive=c)});K()}a&2&&(a=P(4),
yh("ngModel",a.textBuffer),I("bContactAutocomplete","SINGLE"),Lg("type",a.type==="NUMERIC"?"number":"text")("aria-label",a.title))},LRa=function(a){a&1&&(J(0,"div"),F(1,JRa,1,3,"textarea",62)(2,KRa,1,4,"input",63),K());a&2&&(a=P(3),x(),G(a.multiline?1:2))},NRa=function(a){if(a&1){var b=t();J(0,"div",52);N("click",function(c){u(b);return w(c.stopPropagation())});F(1,IRa,3,1,"div");F(2,LRa,3,1,"div");J(3,"div",53)(4,"button",54);N("click",function(){u(b);var c=P(2);return w(MRa(c))});M(5,"mat-icon",
55);K();J(6,"button",56);N("click",function(c){u(b);var d=P(2);return w(tq(d,c,!1,!0))});M(7,"mat-icon",57);K()();J(8,"div",35);M(9,"mat-icon",48);K()()}a&2&&(a=P(2),x(),G(a.isUser?-1:1),x(),G(a.isUser?2:-1),x(2),Lg("aria-label",Dh("Apply change to ",a.title)),I("matTooltip",Dh("Apply change to ",a.title))("disabled",a.value==a.textBuffer),x(2),Lg("aria-label",Dh("Discard change to ",a.title)),I("matTooltip",Dh("Discard change to ",a.title)))},ORa=function(a){a&1&&(J(0,"div",49,5),F(2,BRa,0,0)(3,
CRa,0,0)(4,DRa,2,2,"div")(5,NRa,10,11,"div",50),K());if(a&2){var b;a=P();vh(Dh("bv2-issue-metadata-field-edit bv2-issue-metadata-field-",a.name,"-edit"));x(2);G((b=a.type)==="ENUM"?2:b==="BOOL"?3:b==="DATE"?4:5)}},PRa=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}},uq=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(QRa),h=f.next();!h.done;h=f.next()){var k=l(h.value);h=k.next().value;k=k.next().value;if(e.length>=c)break;var q=Math.floor(d/k);if(q>=1)b?e.push(""+q+RRa[h]):q===1?e.push(q+" "+h):e.push(q+" "+h+"s");else if(e.length)break;d-=q*k;if(q>1)break}if(e.length)return e.join(" ")+" ago";console.error("epochToDateAgo() unhandled input. Seconds:",a)}},SRa=function(a,b){a&1&&(J(0,"time",1),U(1,"async"),R(2),K());if(a&2){a=P();var c=Dh("padding-left: ",a.paddingLeftPx,"px");Zma(Xma,Yma,
c,!1);I("title",b.title);Lg("datetime",V(1,6,a.timestampIso$));x(2);wh(b.formatted)}},TRa=function(a,b){a&1&&(J(0,"span",4),R(1," by "),M(2,"b-user-display-name",7),K());a&2&&(x(2),I("email",b)("hovercardEnabled",!1))},URa=function(a,b){a&1&&(J(0,"div")(1,"span"),R(2),K(),M(3,"b-formatted-date-time",8),K());a&2&&(a=P(),x(2),wh(a.pending?"Created on: ":"Submitted on: "),x(),I("timestamp",b))},VRa=function(a,b){a&1&&(M(0,"br"),R(1));a&2&&(a=b.$implicit,x(),T("",a," "))},WRa=function(a,b){a&1&&(J(0,
"div",2)(1,"a",3),R(2," CL "),J(3,"span"),R(4),K()(),F(5,TRa,3,2,"span",4),M(6,"br")(7,"br"),F(8,URa,4,2,"div"),J(9,"div",5),M(10,"div",6)(11,"br"),J(12,"div"),R(13," Affected files: "),Pg(14,VRa,2,1,null,null,Og),K()()());if(a&2){var c,d;a=P();x();I("href","http://critique.corp.google.com/"+a.changelistId,hf);x(3);wh(a.changelistId);x();G((c=b.author)?5:-1,c);x(3);G((d=b.timestamp)?8:-1,d);x(2);I("innerHTML",b.description,gf);x(4);Qg(b.affectedFiles)}},XRa=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)}},YRa=function(a){a&1&&M(0,"b-changelist-chip",0);a&2&&(a=P(),I("changelistId",a.changelist))},ZRa=function(a){a&1&&M(0,"b-gerrit-change-chip",1);a&2&&(a=P(),I("gerritChange",a.gerritChange))},$Ra=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)}},aSa=function(a){a&1&&dh(0,4)},bSa=function(a){a&1&&(J(0,"div",11),M(1,"input",12),
J(2,"div",13),Ge(),J(3,"svg",14),M(4,"path",15),K(),He(),M(5,"div",16),K()());a&2&&(a=P(),uh("mdc-checkbox--disabled",a.disabled),x(),I("checked",a.selected)("disabled",a.disabled))},cSa=function(a){a&1&&(J(0,"div",17),M(1,"input",18),J(2,"div",19),M(3,"div",20)(4,"div",21),K()());a&2&&(a=P(),uh("mdc-radio--disabled",a.disabled),x(),I("checked",a.selected)("disabled",a.disabled))},dSa=function(){},eSa=function(a){a&1&&(J(0,"span",4),D(1,dSa,0,0,"ng-template",6),K());a&2&&(P(),a=Q(3),x(),I("ngTemplateOutlet",
a))},fSa=function(){},gSa=function(a){a&1&&(J(0,"span",5),D(1,fSa,0,0,"ng-template",6),K());a&2&&(P(),a=Q(5),x(),I("ngTemplateOutlet",a))},hSa=function(){},iSa=function(a){a&1&&D(0,hSa,0,0,"ng-template",6);a&2&&(P(),a=Q(1),I("ngTemplateOutlet",a))},jSa=function(){},kSa=function(a){a&1&&(J(0,"span",9),D(1,jSa,0,0,"ng-template",6),K());a&2&&(P(),a=Q(3),x(),I("ngTemplateOutlet",a))},lSa=function(){},mSa=function(a){a&1&&(J(0,"span",9),D(1,lSa,0,0,"ng-template",6),K());a&2&&(P(),a=Q(5),x(),I("ngTemplateOutlet",
a))},nSa=function(){},oSa=function(a){a&1&&D(0,nSa,0,0,"ng-template",6);a&2&&(P(),a=Q(1),I("ngTemplateOutlet",a))},pSa=function(a,b){a&1&&(J(0,"mat-list-option",11),R(1),K());a&2&&(a=b.$implicit,b=P(),th("height","auto"),I("selected",b.selectedValues.has(a))("value",a),x(),T(" ",a," "))},qSa=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)"]},rSa=function(a,b){a&1&&(Sg(0,"div",1,0),dh(2),Tg());a&2&&(a=b.id,b=P(),vh(b._classList),uh("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"),Rg("id",b.id),Lg("aria-label",b.ariaLabel||null)("aria-labelledby",
b._getPanelAriaLabelledby(a)))},sSa=function(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}},tSa=function(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}},uSa=function(a){if(a&1){var b=t();J(0,"mat-checkbox",8);N("click",function(d){u(b);return w(d.stopPropagation())})("change",function(){u(b);var d=P().$implicit,e=P();return w(e.toggleSelection(d))});R(1);K()}if(a&2){a=P().$implicit;
var c=P();I("checked",c.selectedValuesMap[a]);x();T(" ",a," ")}},vSa=function(a){a&1&&(J(0,"div",7),R(1),K());a&2&&(a=P().$implicit,x(),T(" ",a," "))},wSa=function(a,b){a&1&&(J(0,"mat-option",4),F(1,uSa,2,2,"mat-checkbox",6)(2,vSa,2,1,"div",7),K());a&2&&(a=b.$implicit,b=P(),I("value",a),x(),G(b.allowMultiSelect?1:2))},ySa=function(a){if(a&1){var b=t();J(0,"div",5)(1,"button",9);N("click",function(){u(b);var c=P();return w(xSa(c))})("keydown.enter",function(){u(b);var c=P();return w(xSa(c))});M(2,
"mat-icon",10);K();J(3,"button",11);N("click",function(){u(b);var c=P();return w(c.cancel())})("keydown.esc",function(){u(b);var c=P();return w(xSa(c))});M(4,"mat-icon",12);K()()}a&2&&(a=P(),x(),Lg("aria-label",Dh("Apply changes to ",a.customFieldTitle)),I("disabled",!a.hasPendingChanges),x(2),Lg("aria-label",Dh("Discard changes to ",a.customFieldTitle)))},zSa=function(a){if(a&1){var b=t();J(0,"a",16);N("click",function(){u(b);var c=P();return w(c.trackClick("viewTeamAssociationOnComponent"))});J(1,
"button",11);R(2,"View team association on component");K()()}a&2&&(a=P(),I("href",a.ROUTES.editComponent.makeHref(a.componentId),hf))},ASa=function(a){if(a&1){var b=t();J(0,"a",4);N("click",function(){u(b);var d=P(2);return w(d.trackClick("viewTeamInMoma"))});J(1,"span");R(2);M(3,"mat-icon",5);K()()}if(a&2){a=P(2);var c=Q(4);I("href",Dh("https://moma.corp.google.com/team/",a.teamId),hf)("onedevHovercardTrigger",c);Lg("aria-labelledby",a.linkAriaLabelledBy())("aria-label",(a.teamName?a.teamName:a.teamId)+
" - link opens in a new tab");x();Lg("id",a.teamLinkId);x();T("",a.teamName?a.teamName:a.teamId," ")}},BSa=function(a){a&1&&(J(0,"span",3),R(1),K());if(a&2){a=P(2);var b=Q(4);I("onedevHovercardTrigger",b);x();wh(a.teamName?a.teamName:a.teamId)}},CSa=function(a){a&1&&(F(0,ASa,4,7,"a",2),F(1,BSa,2,2,"span",3));a&2&&(a=P(),G(a.anchorLinkEnabled?0:-1),x(),G(a.anchorLinkEnabled?-1:1))},DSa=function(a){a&1&&M(0,"span",6)},ESa=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P(2),x(),wh(a.teamNotAssignedMessage))},
FSa=function(a){a&1&&(F(0,DSa,1,0,"span",6),F(1,ESa,2,1,"span"));a&2&&(a=P(),G(a.teamId!="0"?0:-1),x(),G(a.teamId=="0"?1:-1))},GSa=function(a){a&1&&M(0,"b-icon",2);a&2&&(a=P(),I("name",a.iconName))},HSa=function(a){a&1&&(J(0,"span",3),R(1),K());a&2&&(a=P(),x(),wh(a.title))},ISa=function(a){a&1&&(J(0,"div",4),R(1,"\u00a0"),K())},JSa=function(){return jla(function(){return Ef(Promise.resolve(void 0))})},KSa=function(a){a&1&&M(0,"a",1)},OSa=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"?LSa(a,b):(d==="input"||d==="select"||d==="textarea")&&MSa(a,b);NSa("canvas",a,b,LSa);NSa("input, textarea, select",a,b,MSa);return b},NSa=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])},MSa=function(a,b){b.type!=="file"&&(b.value=a.value);b.type==="radio"&&b.name&&(b.name="mat-clone-"+b.name+"-"+PSa++)},LSa=function(a,
b){if(b=b.getContext("2d"))try{b.drawImage(a,0,0)}catch(c){}},QSa=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}},RSa=function(a,b,c){var d=a.bottom,e=a.left,f=a.right;return c>=a.top&&c<=d&&b>=e&&b<=f},SSa=function(a,b,c){a.top+=b;a.bottom=a.top+a.height;a.left+=c;a.right=a.left+a.width},TSa=function(a,b,c){var d=a.right,e=a.bottom,f=a.left,h=a.width*.05,k=a.height*.05;return c>a.top-k&&c<e+k&&b>f-h&&b<
d+h},USa=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},VSa=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)}},vq=function(a,b){var c=b?"":"none";VSa(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})},XSa=function(a,b){VSa(a.style,{position:b?"":"fixed",top:b?"":"0",opacity:b?"":"0",left:b?"":"-999em"},WSa)},YSa=function(a,b){return b&&b!="none"?a+" "+b:a},$Sa=function(a,b){a.style.width=b.width+"px";a.style.height=b.height+"px";a.style.transform=ZSa(b.left,b.top)},ZSa=function(a,b){return"translate3d("+Math.round(a)+"px, "+Math.round(b)+"px, 0)"},aTa=function(a){var b=a.toLowerCase().indexOf("ms")>
-1?1:1E3;return parseFloat(a)*b},cTa=function(a){a=getComputedStyle(a);var b=bTa(a,"transition-property"),c=b.find(function(d){return d==="transform"||d==="all"});if(!c)return 0;b=b.indexOf(c);c=bTa(a,"transition-duration");a=bTa(a,"transition-delay");return aTa(c[b])+aTa(a[b])},bTa=function(a,b){return a.getPropertyValue(b).split(",").map(function(c){return c.trim()})},dTa=function(a){return a.type[0]==="t"},eTa=function(a){a.preventDefault()},wq=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}},fTa=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},gTa=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},hTa=function(a){a&1&&(J(0,"label"),R(1),K());a&2&&(a=P(),x(),T(" ",a.title," "))},iTa=function(a){a&1&&M(0,"mat-icon",14)},kTa=function(a,b){a&1&&(J(0,"div",19),Yg(1,21),K());if(a&2){a=b.$implicit;
b=b.$index;P(2);var c=Q(13);x();I("ngTemplateOutletContext",Ih(2,jTa,a,b))("ngTemplateOutlet",c)}},mTa=function(a){a&1&&(J(0,"collapsible-panel",16),Pg(1,kTa,2,5,"div",19,Ng),Yg(3,20),K());if(a&2){a=P();var b=Q(15),c=I("isExpanded",a.isExpanded||a.enableNewCustomRepeatedEnumUi&&xq(a))("iconName",a.iconName)("hasCompactTitleBar",!0);var d=a.enableNewCustomRepeatedEnumUi&&xq(a)?(d=a.values)?d.length===1?"1 value":d.length+" values":"":a.collapsiblePanelTitle;c("title",d);x();Qg(lTa(a));x(2);I("ngTemplateOutlet",
b)}},nTa=function(a,b){a&1&&(J(0,"div",19),Yg(1,21),K());if(a&2){a=b.$implicit;b=b.$index;P(2);var c=Q(13);x();I("ngTemplateOutletContext",Ih(2,jTa,a,b))("ngTemplateOutlet",c)}},oTa=function(a){a&1&&(J(0,"div",22),R(1,"--"),K())},pTa=function(a){a&1&&(Pg(0,nTa,2,5,"div",19,Ng),Yg(2,20),F(3,oTa,2,0,"div",22));if(a&2){a=P();var b=Q(15);Qg(lTa(a));x(2);I("ngTemplateOutlet",b);x();G((a.values==null?0:a.values.length)?-1:3)}},sTa=function(a){if(a&1){var b=t();J(0,"button",28);N("menuOpened",function(){u(b);
var d=P(3);qTa(d);d.enumPendingValues=new Set(d.values||[]);return w()})("menuClosed",function(){u(b);var d=P(3);return w(rTa(d))});R(1,"Edit ");K()}if(a&2){a=P(3);var c=Q(17);I("matMenuTriggerFor",c);Lg("aria-label","Add item to "+a.title)}},tTa=function(a){a&1&&(J(0,"button",26,7),R(2,"Edit "),K());if(a&2){a=P(3);var b=Q(24);I("xapInlineDialogClick",b)("overlayPositions",a.OVERLAY_POSITION_LIST);Lg("aria-label","Edit items for "+a.title)}},vTa=function(a){if(a&1){var b=t();J(0,"button",29,7);N("click",
function(){u(b);var c=P(3);return w(uTa(c))});R(2,"Edit ");K()}a&2&&(a=P(3),Lg("aria-label","Edit items for "+a.title))},wTa=function(a){a&1&&(F(0,sTa,2,2,"button",25),F(1,tTa,3,3,"button",26),F(2,vTa,3,1,"button",27));a&2&&(a=P(2),G(xq(a)?-1:0),x(),G(xq(a)&&!a.enableNewCustomRepeatedEnumUi?1:-1),x(),G(a.enableNewCustomRepeatedEnumUi&&xq(a)?2:-1))},xTa=function(a){a&1&&(J(0,"button",23),R(1,"Add "),K());if(a&2){a=P(2);var b=Q(22);Lg("aria-label",Dh("Add item to ",a.title));I("xapInlineDialogClick",
b)("overlayPositions",a.OVERLAY_POSITION_LIST)}},yTa=function(a){if(a&1){var b=t();J(0,"button",30);N("beforeOpened",function(){u(b);var d=P(2);return w(d.invalidMessage="")});R(1,"Add ");K()}if(a&2){a=P(2);var c=Q(20);Lg("aria-label",Dh("Add item to ",a.title));I("dialogLabel",Dh("Add item to ",a.title))("matTooltip",Dh("Add item to ",a.title))("xapInlineDialogClick",c)("overlayPositions",a.OVERLAY_POSITION_LIST)}},zTa=function(a){a&1&&F(0,wTa,3,3)(1,xTa,2,4,"button",23)(2,yTa,2,8,"button",24);if(a&
2){var b;a=P();G((b=a.type)==="REPEATED_ENUM"?0:b==="REPEATED_DATE"?1:2)}},ATa=function(a){a&1&&(J(0,"div"),M(1,"b-code-change-chip",36),K());a&2&&(a=P(2).item,x(),I("codeChange",a))},BTa=function(a){a&1&&(J(0,"div")(1,"a",37),R(2),K()());if(a&2){a=P(2).item;var b=P();x();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,hf);Lg("aria-label","Workspace"+a.workspaceId);x();T(" ",a.workspaceName," ")}},CTa=function(a){a&1&&(J(0,"div"),M(1,"b-team-display",38),K());a&2&&(a=P(2).item,x(),I("teamId",a.teamId)("componentId",a.componentId))},DTa=function(a){if(a&1){var b=t();J(0,"div")(1,"a",39);N("click",function(){u(b);var c=P(3);return w(c.trackClick("postmortem"))});R(2);K()()}a&2&&(a=P(2).item,x(),Lg("aria-label",Dh("Postmortem ",a)),I("href",Dh("https://pm.corp.google.com/",a),hf),x(),T(" ",a," "))},FTa=function(a){if(a&
1){var b=t();J(0,"div",33)(1,"a",40);N("click",function(){u(b);var d=P(3);return w(d.trackClick("repeated-enum"))});R(2);K()()}if(a&2){a=P(2).item;var c=P();I("matTooltip",a);x();Lg("aria-label",Eh("Search issues for customfield",c.customFieldId,":",a));I("queryParams",Hh(6,ETa,"customfield"+c.customFieldId+':"'+a+'"'));x();T(" ",a," ")}},GTa=function(a){a&1&&(J(0,"div"),M(1,"b-truncated-span",41),K());if(a&2){a=P(2).item;var b=P();x();I("maxWidth",150)("modelValue",a)("disabled",!b.truncate)}},HTa=
function(a){if(a&1){var b=t();J(0,"button",42,8);N("click",function(){u(b);var d=P(2).$index,e=P();return w(e.removeItem(d))});K()}if(a&2){a=P(2).item;var c=P();Lg("aria-label",Eh("Remove ",a," from ",c.title));I("disabled",c.listFieldDisabled)("matTooltip","Remove item")}},ITa=function(a){a&1&&(J(0,"div",31)(1,"div",32),F(2,ATa,2,1,"div")(3,BTa,3,3,"div")(4,CTa,2,2,"div")(5,DTa,3,5,"div")(6,FTa,3,8,"div",33)(7,GTa,2,3,"div"),K(),F(8,HTa,2,5,"button",34),M(9,"div",35),K());if(a&2){a=P().item;var b=
P();x(2);G(b.type==="CODE_CHANGES"?2:b.type==="WORKSPACES"?3:b.type==="TEAM"?4:b.type==="POSTMORTEMS"?5:b.type==="REPEATED_ENUM"&&xq(b)?6:b.isString(a)?7:-1);x(6);G((b.readonly?0:b.type==="REPEATED_ENUM"?xq(b)&&!b.enableNewCustomRepeatedEnumUi:1)?8:-1)}},JTa=function(a,b){a&1&&F(0,ITa,10,2,"div",31);if(a&2){a=b.item;b=b.$index;var c=P();G((c.showingAll||b<c.defaultLineCount||c.values&&c.values.length===c.defaultLineCount+1)&&(c.type!=="CODE_CHANGES"||c.showCodeChanges(a))?0:-1)}},KTa=function(a){if(a&
1){var b=t();J(0,"div",44,9);N("click",function(c){u(b);var d=P(2);return w(yq(d,!1,c))})("keydown.enter",function(c){u(b);var d=P(2);return w(yq(d,!1,c))})("keydown.space",function(c){u(b);var d=P(2);return w(yq(d,!1,c))});R(2," (show fewer) ");K()}a&2&&(a=P(2),Lg("aria-label",Eh("Show at most ",a.defaultLineCount," ",a.title," items")),I("matTooltip",Dh("Show a truncated list of at most ",a.defaultLineCount," items")))},LTa=function(a){if(a&1){var b=t();J(0,"div")(1,"div",45);R(2);J(3,"span",46,
10);N("click",function(c){u(b);var d=P(2);return w(yq(d,!0,c))})("keydown.enter",function(c){u(b);var d=P(2);return w(yq(d,!0,c))})("keydown.space",function(c){u(b);var d=P(2);return w(yq(d,!0,c))});R(5," (show all) ");K()()()}a&2&&(a=P(2),x(2),T(" ... and ",a.values.length-a.defaultLineCount," more "),x(),Lg("aria-label",Eh("Show all ",a.values==null?null:a.values.length," ",a.title," items")),I("matTooltip",Dh("Show all ",a.values==null?null:a.values.length," items in the list")))},NTa=function(a){a&
1&&(F(0,KTa,3,5,"div",43),F(1,LTa,6,6,"div"));a&2&&(a=P(),G(a.showingAll&&MTa(a)?0:-1),x(),G(!a.showingAll&&MTa(a)?1:-1))},PTa=function(a,b){if(a&1){var c=t();J(0,"button",48);N("click",function(d){var e=u(c).$implicit,f=P(2),h=e.value;f.enumPendingValues.has(h)?f.enumPendingValues.delete(h):f.enumPendingValues.add(h);f.liveAnnouncer.announce(OTa(f,e));d==null||d.stopPropagation();return w()});J(1,"span",49);M(2,"mat-icon",50);K();R(3);K()}a&2&&(a=b.$implicit,b=P(2),uh("b-menu-item-checked",b.enumPendingValues.has(a.value)),
I("disabled",b.listFieldDisabled),Lg("aria-label",OTa(b,a)),x(3),T(" ",a.displayText," "))},QTa=function(a){a&1&&Pg(0,PTa,4,5,"button",47,Ng);a&2&&(a=P(),Qg(a.sortedEnumChoices))},RTa=function(a){a&1&&(J(0,"mat-error"),R(1),K());a&2&&(a=P(2),Lg("aria-label",Eh("",a.title," error: ",a.invalidMessage)),x(),T(" ",a.invalidMessage," "))},STa=function(a){if(a&1){var b=t();J(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"form",51,11);N("ngSubmit",function(){u(b);var d=Q(3),e=Q(4),f=P();return w(f.textPopupSubmit(d,
e))});M(5,"input",52);J(6,"div",53)(7,"button",54);M(8,"mat-icon",55);K();J(9,"button",56);N("click",function(){u(b);var d=P();return w(d.closeAddPopup(!0))});M(10,"mat-icon",57);K()();F(11,RTa,2,4,"mat-error");K()()()}if(a&2){a=Q(3);var c=P();x(5);Lg("aria-label",Dh("Addition to ",c.title));I("type",c.type==="REPEATED_NUMERIC"?"number":"text");x(2);Lg("aria-label",Dh("Apply addition to ",c.title));I("disabled",!a.valid||c.listFieldDisabled);x(2);Lg("aria-label",Dh("Discard addition to ",c.title));
x(2);G(c.invalidMessage?11:-1)}},TTa=function(a){if(a&1){var b=t();J(0,"b-date-time-picker-content",58);N("dateChange",function(c){u(b);var d=P();return w(c&&d.addItems(c))})("cancelClicked",function(){u(b);var c=P();return w(c.closeAddPopup(!1))});K()}a&2&&I("required",!0)("renderPanel",!1)},WTa=function(a){if(a&1){var b=t();J(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-custom-repeated-enum-picker",59);N("onApplyChanges",function(c){u(b);var d=P();return w(UTa(d,c))})("onCancelChanges",
function(){u(b);var c=P();return w(c.closeAddPopup(!0))});K()()()}a&2&&(a=P(),x(2),I("allowMultiSelect",!0)("customFieldTitle",a.title)("allowedValues",VTa(a))("selectedValues",a.values))},XTa=function(a,b){return{originX:a,originY:b}},YTa=function(a,b){return{overlayX:a,overlayY:b}},ZTa=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}},$Ta=function(a){a&1&&Yg(0)},aUa=function(a){if(a&1){var b=t();J(0,"div",3);N("mouseenter",function(){u(b);var c=P();return w(c.toggle(!0))})("mouseleave",function(){u(b);var c=P();return w(c.toggle(!1))})("mousemove",function(){u(b);P().activity.next();return w()});D(1,$Ta,1,0,"ng-container",4);K()}a&2&&(a=P(),I("ngClass",a.bubbleStyle)("@fade",void 0),x(),I("ngTemplateOutlet",a.panelTemplate))},bUa=function(a){a&1&&(J(0,"span",3),R(1),K());a&2&&(a=P(2),vh(a.chipClass),uh("xs",
a.compactMode),x(),T(" ",a.chipText," "))},cUa=function(a){a&1&&(J(0,"div",5),R(1),J(2,"a",6),R(3," Learn more"),K()());a&2&&(a=P(3),x(),T(" ",a.bubbleText," "),x(),I("href",zq(a.documentationLinks),hf))},dUa=function(a){a&1&&(J(0,"xap-bubble",2)(1,"span",4),R(2),K(),D(3,cUa,4,2,"ng-template",null,0,Lh),K());if(a&2){a=Q(4);var b=P(2);I("panelTemplate",a);x();vh(b.chipClass);uh("xs",b.compactMode);x();T(" ",b.chipText," ")}},eUa=function(a){a&1&&F(0,bUa,2,5,"span",1)(1,dUa,5,6,"xap-bubble",2);a&2&&
(a=P(),G(a.labelOnlyMode?0:1))},fUa=function(a){a&1&&(J(0,"li")(1,"a",3),R(2," Create an issue in this component"),K()());a&2&&(a=P(2),x(),I("href",a.createIssueUrl,hf))},gUa=function(a,b){a&1&&(J(0,"h3"),R(1),K(),J(2,"p"),R(3),K(),M(4,"b-component-access-level-indicator",2),J(5,"p"),R(6),K(),J(7,"ul")(8,"li")(9,"a",3),R(10," View recent open issues"),K()(),F(11,fUa,3,1,"li"),J(12,"li")(13,"a",3),R(14," View component"),K()()());a&2&&(a=P(),x(),wh(b.name),x(2),T("ID: ",a.componentId),x(),I("accessLevel",
b.accessLimit==null?null:b.accessLimit.accessLevel)("labelOnlyMode",!0),x(2),wh(b.description),x(3),I("href",a.recentIssuesUrl,hf),x(2),G(a.isAnonymous?-1:11),x(2),I("href",a.viewComponentUrl,hf))},hUa=function(a,b){a&1&&(J(0,"span",4)(1,"a",6),R(2),K(),J(3,"onedev-hovercard",null,0),M(5,"b-component-card",7),K()());a&2&&(a=b.$implicit,b=Q(4),x(),I("onedevHovercardTrigger",b)("routerLinkObj",a.route),x(),wh(a.name),x(3),I("componentId",a.id.toString()))},iUa=function(a){a&1&&(J(0,"span",5),R(1,"[Archived]"),
K())},jUa=function(a,b){b=b===void 0?rq:b;var c,d=(c=a==null?void 0:a.componentPathId)!=null?c:[],e,f=(e=a==null?void 0:a.componentPathName)!=null?e:[];return d.map(function(h,k){var q;k=(q=f[k])!=null?q:String(h);q=b(h);return{id:h,name:k,route:q}})},kUa=function(a){a&1&&R(0," > ")},lUa=function(a,b){a&1&&(J(0,"a",4),R(1),K(),F(2,kUa,1,0));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;Lg("aria-label",Dh("View recent issues in ",a.name));I("routerLinkObj",a.route);x();wh(a.name);x();G(c!==b-1?2:
-1)}},mUa=function(a){a&1&&(J(0,"span"),R(1," [Archived]"),K())},nUa=function(a){a&1&&(J(0,"div",2),Pg(1,lUa,3,5,null,null,Og),U(3,"async"),F(4,mUa,2,0,"span"),U(5,"async"),K());a&2&&(a=P(),x(),Qg(V(3,1,a.componentPath$)),x(3),G(V(5,3,a.isArchived$)?4:-1))},oUa=function(a,b){a&1&&(J(0,"div",5),M(1,"mat-icon",6),J(2,"div",7),R(3),K()(),J(4,"div",8)(5,"span",7),R(6),K(),M(7,"b-component-access-level-indicator",9),K(),J(8,"p",7),R(9),K());a&2&&(x(3),wh(b.name),x(3),T("Component ID: ",b.componentId),
x(),I("accessLevel",b.accessLimit==null?null:b.accessLimit.accessLevel)("labelOnlyMode",!0),x(2),wh(b.description))},pUa=function(a,b){a&1&&(J(0,"div",3)(1,"a",10),R(2,"View recent open issues"),K(),J(3,"a",11),R(4,"View component settings"),K(),J(5,"a",12),R(6,"Create issue in this component"),K()());a&2&&(x(),I("routerLinkObj",b.recentIssues),x(2),I("routerLinkObj",b.componentSettings),x(2),I("routerLinkObj",b.createIssue))},rUa=function(a){return qUa[a]},Aq=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]]}))})},Bq=function(a){a=a===void 0?0:a;return new Promise(function(b){setTimeout(b,a)})},sUa=function(a){a&1&&(J(0,"span",4),R(1),K());a&2&&(a=P(2),x(),T(" ",a.name," "))},tUa=function(a){a&1&&R(0," Trackers are distinct communities with their own branding. ")},uUa=function(a){a&1&&(J(0,"a",9),R(1,"Learn More"),K());a&2&&(a=P(2),I("href",a.documentationLinks.baseDocumentationUrl+"/concepts/trackers",hf))},vUa=function(a){a&1&&(J(0,"button",1),M(1,"img",2)(2,"img",3),F(3,sUa,2,1,"span",
4),K(),J(4,"onedev-hovercard",null,0)(6,"div",5)(7,"div",6)(8,"span",7),R(9),F(10,tUa,1,0),K(),J(11,"div",8)(12,"a",9),R(13),K(),F(14,uUa,2,1,"a",9),K()()()());if(a&2){a=Q(5);var b=P();uh("xs",b.compactMode);I("onedevHovercardTrigger",a)("onedevHovercardActive",b.showHovercard);x();I("src",b.logoLight,hf);x();I("src",b.logoDark,hf);x();G(b.compactMode?-1:3);x(6);T(" This component or issue is part of ",b.extendedName,". ");x();G(b.isGlobalBuganizer?-1:10);x(2);I("href",b.redirectUrl,hf);x();T("View ",
b.extendedName);x();G(b.isGlobalBuganizer?-1:14)}},wUa=function(a){a&1&&(M(0,"b-tracker-chip",0),U(1,"async"));a&2&&(a=P(),I("tracker",V(1,4,a.tracker$)||void 0)("compactMode",a.compactMode)("showHovercard",a.showHovercard)("isGlobalBuganizer",a.isGlobalBuganizer))},xUa=function(a){a&1&&M(0,"mat-icon",1)},yUa=function(a){if(a&1){var b=t();J(0,"button",9);N("mousedown",function(c){u(b);var d=P();return w(d.back(c))});M(1,"mat-icon",10);K()}},zUa=function(a){if(a&1){var b=t();J(0,"button",11);N("mousedown",
function(c){u(b);var d=P();return w(d.expand(d.componentOption,c))});M(1,"mat-icon",12);K()}a&2&&(a=P(),I("matTooltip","View child components of "+a.componentOption.name),Lg("aria-label","View child components of "+a.componentOption.name),x(),I("svgIcon",a.showFolderSpecialIcon?"folder_special_24px":"folder"))},AUa=function(a){if(a&1){var b=t();J(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 w()});K()}if(a&2){a=P().$implicit;var c=P(2);I("innerHtml",Kh(2,3,V(1,1,a.name),c.query),gf)}},BUa=function(a){a&1&&R(0);a&2&&(a=P().$implicit,T(" ",a.name," "))},CUa=function(a){a&1&&R(0," \u00a0>\u00a0 ")},DUa=function(a,b){a&1&&(F(0,AUa,3,6,"a",13)(1,BUa,1,1),F(2,CUa,1,0));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;G(a.name!=a.id?0:1);x(2);G(c!==b-1?2:-1)}},EUa=function(a){a&1&&Pg(0,DUa,3,2,null,null,Og);a&2&&(a=P(),Qg(a.componentOption.componentPath))},FUa=function(a,
b){if(a&1){var c=t();J(0,"a",16);N("mousedown",function(d){var e=u(c);P(2).selectComponentId.emit(e.id);d.preventDefault();d.stopPropagation();return w()});R(1);K()}a&2&&(x(),T(" ",b.name," "))},GUa=function(a){a&1&&F(0,FUa,2,1,"a",15);if(a&2){var b;a=P();G((b=a.componentOption.componentPath[a.componentOption.componentPath.length-1])?0:-1,b)}},HUa=function(a){a&1&&(J(0,"span",6),R(1," [Archived] "),K())},IUa=function(a){return{type:"team",id:a.teamId,name:a.name,description:a.description,pathNames:a.pathNames,
pathIds:a.pathIds,expanded:!1}},JUa=function(a){return{type:"team",id:a.id,name:a.name,description:a.description,expanded:!1}},KUa=function(a,b){var c,d=(c=b==null?void 0:b.componentPathId)!=null?c:[],e,f=(e=b==null?void 0:b.componentPathName)!=null?e:[];b=d.map(function(h,k){return{id:h,name:f[k],pathText:f.slice(0,k+1).join(" > ")}});return{type:"component",id:a.componentId,name:a.name,description:a.description,accessLimit:a.accessLimit,archived:a.archived,componentPath:b,trackerId:a.trackerId}},
LUa=function(a){return new Map([].concat(p(a.entries())).map(function(b){var c=l(b);b=c.next().value;c=c.next().value;return[b,c.map(JUa)]}))},MUa=function(a){a&1&&M(0,"img",1);a&2&&(a=P(),Lg("src",a.getLogoUrl(),hf))},NUa=function(a){a&1&&(J(0,"span",6),R(1,"no components"),K())},OUa=function(a){a&1&&(J(0,"div",3),M(1,"div",5),U(2,"boldPrefixMatches"),F(3,NUa,2,0,"span",6),K());a&2&&(a=P(),x(),I("innerHtml",Kh(2,2,a.teamOption.name,a.query),gf),x(2),G(a.hasNoComponent?3:-1))},PUa=function(a){if(a&
1){var b=t();J(0,"a",8);N("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 w()});R(1);K()}a&2&&(a=P(2).$implicit,x(),wh(a))},QUa=function(a){a&1&&R(0);a&2&&(a=P(2).$implicit,T(" ",a," "))},RUa=function(a){a&1&&(F(0,PUa,2,1,"a",7)(1,QUa,1,1),Wg(2),R(3," \u00b7 "),Xg());a&2&&(a=P(3),G(a.allowSegmentSelection?0:1))},SUa=function(a){a&1&&(J(0,"strong",9),R(1),K());a&2&&
(a=P(2).$implicit,x(),wh(a))},TUa=function(a){a&1&&R(0);a&2&&(a=P(2).$implicit,T(" ",a," "))},UUa=function(a){a&1&&F(0,SUa,2,1,"strong",9)(1,TUa,1,1);a&2&&(a=P(3),G(a.compact?0:1))},VUa=function(a,b){a&1&&F(0,RUa,4,1)(1,UUa,2,1);a&2&&G(b.$index!==b.$count-1?0:1)},WUa=function(a){a&1&&(J(0,"div",4),Pg(1,VUa,2,1,null,null,Og),K());a&2&&(a=P(),x(),Qg(a.teamOption.pathNames))},XUa=function(a){var b={attributeFilter:["aria-label","aria-valuenow"]};return new Cf(function(c){(new MutationObserver(function(d){var e=
d[0].target,f;d=(f=e.getAttribute("aria-label"))!=null?f:"";var h;f=(h=e.getAttribute("aria-valuenow"))!=null?h:"indeterminate";c.next([d,f])})).observe(a,b)})},YUa=function(a){a&1&&Ug(0,"div",2)},ZUa=function(){var a=r(ui),b=a?a.location:null;return{getPathname:function(){return b?b.pathname+b.search:""}}},$Ua=function(a){if(a&1){var b=t();J(0,"button",9);N("mousedown",function(c){u(b);P().clearQuery();return w(Cq(c))});M(1,"mat-icon",10);K()}},aVa=function(a){a&1&&(J(0,"div",11),R(1," Checking for admin access... "),
K())},bVa=function(a){a&1&&(J(0,"div",12),R(1," You do not have admin access to this component. "),J(2,"a",13),R(3,"View component admins"),K()());a&2&&(a=P(3),x(2),I("href",Dq.editComponentAccess.makeHref(a.selectedComponent.componentId),hf))},cVa=function(a){a&1&&F(0,bVa,4,1,"div",12);a&2&&(a=P(2),G(!a.hasAccess&&a.selectedComponent?0:-1))},dVa=function(a){a&1&&(J(0,"div"),F(1,aVa,2,0,"div",11)(2,cVa,1,1),K());a&2&&(a=P(),x(),G(a.checkingAccess?1:2))},eVa=function(a){a&1&&M(0,"mat-progress-bar",
16)},fVa=function(a){a&1&&R(0," teams ")},gVa=function(a){a&1&&R(0," team ")},jVa=function(a,b){if(a&1){var c=t();J(0,"div",21);N("mousedown",function(e){var f=u(c).$implicit,h=P(6);hVa(h.searchState,f);return w(Cq(e))});J(1,"team-row",22);N("selectTeamId",function(e){u(c);var f=P(6);return w(iVa(f.searchState,e))});K()()}if(a&2){a=b.$implicit;b=P(6);var d=Q(3);I("data",a);x();I("teamOption",a)("query",d.value)("hasNoComponent",b.searchState.hasNoComponent(a.id))}},kVa=function(a){a&1&&(J(0,"div",
18)(1,"div",19),R(2," Filter components by my teams "),J(3,"span"),R(4),F(5,fVa,1,0)(6,gVa,1,0),K()(),Pg(7,jVa,2,4,"div",20,Og),M(9,"mat-divider"),K());a&2&&(a=P(),x(4),T("",a.length," "),x(),G(a.length>1?5:6),x(2),Qg(a))},lVa=function(a,b){a&1&&F(0,kVa,10,2,"div",18);a&2&&G(b.length?0:-1)},mVa=function(a){a&1&&Yg(0)},oVa=function(a){a&1&&D(0,mVa,1,0,"ng-container",23);if(a&2){a=P(4);var b=Q(12);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Hh(2,nVa,a.searchState.popularComponents))}},pVa=function(a){a&
1&&M(0,"mat-divider")},qVa=function(a){a&1&&Yg(0)},sVa=function(a){a&1&&D(0,qVa,1,0,"ng-container",23);if(a&2){a=P(4);var b=Q(12);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Hh(2,rVa,a.searchState.recentComponents))}},tVa=function(a){a&1&&(F(0,lVa,1,1),U(1,"async"),F(2,oVa,1,4,"ng-container"),F(3,pVa,1,0,"mat-divider"),F(4,sVa,1,4,"ng-container"));if(a&2){var b;a=P(3);G((b=V(1,4,a.searchState.myTeams$))?0:-1,b);x(2);G(a.searchState.popularComponents.length?2:-1);x();G(a.searchState.popularComponents.length&&
a.searchState.recentComponents.length?3:-1);x();G(a.searchState.recentComponents.length||!a.searchState.popularComponents.length?4:-1)}},uVa=function(a){a&1&&R(0," teams ")},vVa=function(a){a&1&&R(0," team ")},wVa=function(a){a&1&&Yg(0)},zVa=function(a,b){a&1&&D(0,wVa,1,0,"ng-container",23);if(a&2){a=b.$implicit;b=b.$index;P(6);var c=Q(10);I("ngTemplateOutlet",c)("ngTemplateOutletContext",Ih(4,xVa,a,Hh(2,yVa,b)))}},AVa=function(a){if(a&1){var b=t();J(0,"button",25);N("mousedown",function(){u(b);var c=
P(6);return w(c.searchState.showAllTeams$.next(!0))});M(1,"mat-icon",26);R(2," Show all teams ");K()}},BVa=function(a,b){a&1&&(J(0,"div",18)(1,"div",19),R(2," Filter components by teams "),J(3,"span"),R(4),F(5,uVa,1,0)(6,vVa,1,0),K()(),Pg(7,zVa,1,7,"ng-container",null,Og),U(9,"async"),F(10,AVa,3,0,"button",24),U(11,"async"),M(12,"mat-divider"),K());a&2&&(a=P(5),x(4),T("",b," "),x(),G(b>1?5:6),x(2),Qg(V(9,3,a.searchState.filteredTeamOptions$)),x(3),G(V(11,5,a.searchState.hasHiddenTeams$)?10:-1))},
CVa=function(a,b){a&1&&F(0,BVa,13,7,"div",18);if(a&2){var c;G((c=b.length)?0:-1,c)}},DVa=function(a){a&1&&Yg(0)},FVa=function(a){a&1&&(F(0,CVa,1,1),U(1,"async"),D(2,DVa,1,0,"ng-container",23));if(a&2){var b;a=P(3);var c=Q(12);G((b=V(1,3,a.searchState.teamOptions$))?0:-1,b);x(2);I("ngTemplateOutlet",c)("ngTemplateOutletContext",Hh(5,EVa,a.searchState.componentOptions))}},GVa=function(a){a&1&&Yg(0)},IVa=function(a,b){a&1&&D(0,GVa,1,0,"ng-container",23);if(a&2){a=b.$implicit;b=b.$index;P(8);var c=Q(10);
I("ngTemplateOutlet",c)("ngTemplateOutletContext",Ih(4,xVa,a,Hh(2,HVa,b)))}},JVa=function(a){a&1&&(J(0,"div",32),Pg(1,IVa,1,7,"ng-container",null,Og),K());a&2&&(a=P(2),x(),Qg(a))},MVa=function(a){if(a&1){var b=t();F(0,JVa,3,0,"div",32);J(1,"button",25);N("mousedown",function(c){u(b);var d=P(6),e=d.searchState.teamScope$.value;e.expanded?KVa(d.searchState,e):LVa(d.searchState,e);return w(Cq(c))});M(2,"mat-icon",26);R(3);K()}a&2&&(a=P(6),G(a.searchState.teamScope$.value.expanded?0:-1),x(2),uh("expanded",
a.searchState.teamScope$.value.expanded),x(),T(" ",a.searchState.teamScope$.value.expanded?"Hide":"Show"," child teams "))},NVa=function(a,b){a&1&&F(0,MVa,4,4);a&2&&G(b.length?0:-1)},QVa=function(a){if(a&1){var b=t();J(0,"div",27)(1,"div",19);R(2," Filtering by team: ");K();J(3,"div",28)(4,"team-row",29);N("selectTeamId",function(e){u(b);var f=P(4);return w(iVa(f.searchState,e))});K();J(5,"button",30);N("mousedown",function(e){u(b);var f=P(4);OVa(f.searchState);return w(Cq(e))});M(6,"mat-icon",31);
K()();F(7,NVa,1,1);K()}if(a&2){var c;a=P(4);var d=Q(3);x(3);I("data",a.searchState.teamScope$.value)("listOrder",Gh(7,PVa));x();I("teamOption",a.searchState.teamScope$.value)("query",d.value)("compact",!0)("allowSegmentSelection",!0);x(3);G((c=a.searchState.getChildTeams(a.searchState.teamScope$.value.id))?7:-1,c)}},RVa=function(a){a&1&&Yg(0)},TVa=function(a){a&1&&(F(0,QVa,8,8,"div",27),D(1,RVa,1,0,"ng-container",23));if(a&2){a=P(3);var b=Q(12);G(a.searchState.teamScope$.value?0:-1);x();I("ngTemplateOutlet",
b)("ngTemplateOutletContext",Ih(3,SVa,a.searchState.componentOptions,a.searchState.teamScope$.value))}},WVa=function(a){if(a&1){var b=t();J(0,"div",33)(1,"div",34);R(2,"Component Tree Browser");K();J(3,"component-row",35);N("goBack",function(){u(b);var c=P(4);return w(UVa(c.searchState))})("selectComponentId",function(c){u(b);var d=P(4);return w(VVa(d.searchState,c))});K()()}a&2&&(a=P(4),x(3),I("componentOption",a.searchState.componentScope))},XVa=function(a){a&1&&Yg(0)},ZVa=function(a){a&1&&(F(0,
WVa,4,1,"div",33),D(1,XVa,1,0,"ng-container",23));if(a&2){a=P(3);var b=Q(12);G(a.searchState.componentScope?0:-1);x();I("ngTemplateOutlet",b)("ngTemplateOutletContext",Hh(3,YVa,a.searchState.componentOptions))}},$Va=function(a){a&1&&(F(0,tVa,5,6),U(1,"async"),Mg(2,FVa,3,7)(3,TVa,2,6)(4,ZVa,2,5));if(a&2){var b;a=P(2);G((b=V(1,1,a.searchState.state$))==="default"?0:b==="global"?2:b==="team_scope"?3:b==="component_scope"?4:-1)}},aWa=function(a){if(a&1){var b=t();J(0,"div",14,5);N("mousedown",function(c){u(b);
P();return w(Cq(c))});J(2,"div",15);F(3,eVa,1,0,"mat-progress-bar",16);K();J(4,"div",17);F(5,$Va,5,3);K()()}a&2&&(a=P(),x(3),G(a.isLoading()?3:-1),x(2),G(a.isLoading()?-1:5))},bWa=function(a){if(a&1){var b=t();J(0,"button",39);N("mousedown",function(c){u(b);var d=P().team,e=P();d.expanded?KVa(e.searchState,d):LVa(e.searchState,d);return w(Cq(c))});M(1,"mat-icon",40);K()}a&2&&(a=P().team,x(),uh("expanded",a.expanded))},cWa=function(a){a&1&&Yg(0)},eWa=function(a,b){a&1&&D(0,cWa,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",una(dWa,a,d+1,c.concat(b)))}},fWa=function(a){a&1&&Pg(0,eWa,1,6,"ng-container",null,Og);if(a&2){a=P().team;var b=P();Qg(b.searchState.getChildTeams(a.id))}},gWa=function(a,b){if(a&1){var c=t();J(0,"div",36);N("mousedown",function(h){var k=u(c).team,q=P();hVa(q.searchState,k);return w(Cq(h))});J(1,"div",37);F(2,bWa,2,2,"button",38);J(3,"team-row",22);N("selectTeamId",function(h){u(c);
var k=P();return w(iVa(k.searchState,h))});K()()();F(4,fWa,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);x();th("margin-left",d*28,"px");x();G(e.searchState.getChildTeams(a.id).length?2:-1);x();uh("indent",!e.searchState.getChildTeams(a.id).length);I("teamOption",a)("query",f.value)("hasNoComponent",e.searchState.hasNoComponent(a.id));x();G(a.expanded?4:-1)}},hWa=function(a){a&1&&R(0," Select a commonly used component ")},iWa=function(a){a&1&&R(0," Select recent component ")},
jWa=function(a){a&1&&R(0," Select component ")},kWa=function(a){a&1&&R(0," components ")},lWa=function(a){a&1&&R(0," component ")},nWa=function(a,b){if(a&1){var c=t();J(0,"div",43);N("mousedown",function(f){var h=u(c).$implicit,k=P(3);mWa(k.searchState,h.id);return w(Cq(f))});J(1,"component-row",44);N("selectComponentId",function(f){u(c);var h=P(3);return w(mWa(h.searchState,f))})("expandComponent",function(f){u(c);var h=P(3);return w(h.searchState.expandComponent(f))});K()()}if(a&2){a=b.$implicit;
b=P(2).mode;var d=P(),e=Q(3);I("data",a);x();I("showFolderSpecialIcon",Eq(d.activeSession))("componentOption",a)("query",e.value)("mode",b)}},oWa=function(a,b){a&1&&(J(0,"div",41)(1,"div",19),F(2,hWa,1,0)(3,iWa,1,0)(4,jWa,1,0),J(5,"span"),R(6),F(7,kWa,1,0)(8,lWa,1,0),K()(),Pg(9,nWa,2,5,"div",42,Og),K());if(a&2){var c=P();a=c.$implicit;c=c.mode;x(2);G(c==="popular"?2:c==="recent"?3:4);x(4);T("",b," ");x();G(b>1?7:8);x(2);Qg(a)}},pWa=function(a){a&1&&R(0," No recent components ")},qWa=function(a){a&
1&&R(0," No child components ")},rWa=function(a){a&1&&(R(0),M(1,"mat-icon",46),R(2," above ("),J(3,"a",47),R(4,"learn more "),M(5,"mat-icon",48),K(),R(6," about team associations) "));a&2&&(a=P(4).teamScope,T(" for ",a.name,". Remove the team filter by clicking on the "))},sWa=function(a){a&1&&(R(0," No components found "),F(1,rWa,7,1));a&2&&(a=P(3).teamScope,x(),G(a?1:-1))},tWa=function(a){a&1&&(J(0,"div",45),F(1,pWa,1,0)(2,qWa,1,0)(3,sWa,2,1),K());a&2&&(a=P(2).mode,x(),G(a==="recent"?1:a==="leaf"?
2:3))},uWa=function(a){a&1&&F(0,tWa,4,1,"div",45);a&2&&(a=P(2),G(a.componentLoading||a.searchState.componentsLoading?-1:0))},vWa=function(a,b){a&1&&F(0,oWa,11,3,"div",41)(1,uWa,1,1);if(a&2){var c;G((c=b.$implicit.length)?0:1,c)}},wWa=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},xWa=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P().$implicit,x(),wh(a.text))},yWa=
function(a){a&1&&(J(0,"span"),M(1,"b-component-access-level-indicator",0),K());a&2&&(a=P().$implicit,x(),I("accessLevel",a.accessLevel))},zWa=function(a,b){a&1&&(J(0,"span"),F(1,xWa,2,1,"span")(2,yWa,2,1,"span"),K());a&2&&(a=b.$implicit,P(),x(),G(a.text!==void 0?1:2))},BWa=function(a,b){var c=AWa.get(b);if(!c)return null;a=a.toLowerCase().indexOf(c);return a>=0?{accessLevel:b,startOfMatch:a,endOfMatch:a+c.length}:null},CWa=function(){return{color:"accent",disabledInteractive:!1}},DWa=function(a){if(a&
1){var b=t();J(0,"div");M(1,"br");J(2,"mat-radio-group",7);Ah("ngModelChange",function(c){u(b);var d=P(2);zh(d.setLimitViewTrusted,c)||(d.setLimitViewTrusted=c);return w(c)});J(3,"mat-radio-button",8);R(4,"Mark this issue as Limited Visibility + Google. Information will only be shared with Googlers and listed public users.");K();J(5,"mat-radio-button",9);R(6,"Leave issue unrestricted. All information in this issue is suitable for external sharing.");K()()()}a&2&&(a=P(2),x(2),yh("ngModel",a.setLimitViewTrusted),
x(),I("value",!0),x(2),I("value",!1))},EWa=function(a){if(a&1){var b=t();J(0,"div");M(1,"br");J(2,"mat-checkbox",10);Ah("ngModelChange",function(c){u(b);var d=P(2);zh(d.acknowledged,c)||(d.acknowledged=c);return w(c)});K();J(3,"span");R(4,"All information in this issue is suitable for external sharing.");K()()}a&2&&(a=P(2),x(2),yh("ngModel",a.acknowledged))},FWa=function(a){a&1&&(J(0,"div"),F(1,DWa,7,3,"div")(2,EWa,5,1,"div"),K());a&2&&(a=P(),x(),G(a.isLimitNoneIssueTrackerMove?1:2))},GWa=function(a){if(a&
1){var b=t();J(0,"button",11);N("click",function(){u(b);var c=P();return w(c.allow())});R(1," Move Issue ");K()}a&2&&(a=P(),I("disabled",!a.acknowledged))},Fq=function(a,b){return HWa(Dq.viewIssue.routeDeclarationPath,{id:a,params:b})},LWa=function(a,b,c,d,e){c=IWa(c);d=JWa(d);return KWa("action/issues/csv","q",a,"trackerIds",b,"s",c,"c",d,"h",e)},IWa=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):null},JWa=function(a){return a&&a.length?a.map(function(b){return b.toApiUrlParam()}).join(","):
null},HWa=function(a,b){b=b===void 0?{}:b;return b.id==null?"":Gq(a,b)},Gq=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=MWa(f,d));e&&(f=f+"#"+e);return f},NWa=function(a){return xya(a.getIt().getMentionsList(Cj)).map(function(b){return b.mentionedUser}).map(zj).map(function(b){return b||""})},OWa=function(a){a=a.getIt();return a.hasFormattedComment()?sm(a.getFormattedComment()):{}},PWa=function(a){switch(a.formattingMode){case "LITERAL":return Nf({literalFormat:{content:Xi(a.comment)}});
case "MARKDOWN":return a={markdownFormat:{content:Xi("")}},Nf(a);case void 0:case "PLAIN":case "UNSPECIFIED_FORMATTING_MODE":return a={plainFormat:{plainSection:[{isQuoted:!1,content:Xi(a.comment)}]}},Nf(a);default:return pb(a.formattingMode,"Unknown formatting mode: "+a.formattingMode)}},QWa=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P().$implicit,x(),T("(",a.disabledReason,")"))},RWa=function(a,b){a&1&&(J(0,"mat-radio-button",4),R(1),F(2,QWa,2,1,"span"),K());a&2&&(a=b.$implicit,I("value",a)("disabled",
!a.enabled),x(),T(" ",a.displayText," "),x(),G(a.enabled?-1:2))},SWa=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P().$implicit,x(),T("(",a.disabledReason,")"))},TWa=function(a,b){a&1&&(J(0,"mat-radio-button",4),R(1),F(2,SWa,2,1,"span"),K());a&2&&(a=b.$implicit,I("value",a)("disabled",!a.enabled),x(),T(" ",a.displayText," "),x(),G(a.enabled?-1:2))},UWa=function(a){return a?"https://goto.corp.google.com/buganizer-delete":"https://issuetracker.google.com/issues/new?component=169992&template=543202"},
VWa=function(a){return"share-email-confirmation-"+a},WWa=function(a){a&1&&(Ge(),J(0,"svg",11),M(1,"circle",12),K());a&2&&(a=P(),Lg("viewBox",a._viewBox()),x(),th("stroke-dasharray",a._strokeCircumference(),"px")("stroke-dashoffset",a._strokeCircumference()/2,"px")("stroke-width",a._circleStrokeWidth(),"%"),Lg("r",a._circleRadius()))},XWa=function(){return{diameter:100}},YWa=function(a){a&1&&M(0,"mat-spinner",0);a&2&&(a=P(),I("diameter",a.SIZE_LARGE),Lg("aria-label",a.ariaLabel))},ZWa=function(a){a&
1&&M(0,"mat-spinner",1);a&2&&(a=P(),I("diameter",a.SIZE_SMALL)("strokeWidth",a.DIAMETER_SMALL),Lg("aria-label",a.ariaLabel))},$Wa=function(){},aXa=function(a){a&1&&dh(0)},bXa=function(){},cXa=function(a){a&1&&D(0,bXa,0,0,"ng-template",12);a&2&&(a=P().$implicit,I("cdkPortalOutlet",a.templateLabel))},dXa=function(a){a&1&&R(0);a&2&&(a=P().$implicit,wh(a.textLabel))},eXa=function(a,b){if(a&1){var c=t();J(0,"div",7,2);N("click",function(){var f=u(c),h=f.$implicit;f=f.$index;var k=P(),q=Q(1);return w(k._handleClick(h,
q,f))})("cdkFocusChange",function(f){var h=u(c).$index,k=P();return w(k._tabFocusChanged(f,h))});M(2,"span",8)(3,"div",9);J(4,"span",10)(5,"span",11);F(6,cXa,1,1,null,12)(7,dXa,1,1);K()()()}if(a&2){a=b.$implicit;b=b.$index;var d=Q(1),e=P();vh(a.labelClass);uh("mdc-tab--active",e.selectedIndex===b);I("id",e._getTabLabelId(a,b))("disabled",a.disabled)("fitInkBarToContent",e.fitInkBarToContent);Lg("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);x(3);I("matRippleTrigger",d)("matRippleDisabled",a.disabled||e.disableRipple);x(3);G(a.templateLabel?6:7)}},fXa=function(a){a&1&&dh(0)},gXa=function(a,b){if(a&1){var c=t();J(0,"mat-tab-body",13);N("_onCentered",function(){u(c);var e=P();return w(e._removeTabBodyWrapperHeight())})("_onCentering",function(e){u(c);var f=P();return w(f._setTabBodyWrapperHeight(e))})("_beforeCentering",
function(e){u(c);var f=P();return w(f._bodyCentered(e))});K()}if(a&2){a=b.$implicit;b=b.$index;var d=P();vh(a.bodyClass);I("id",d._getTabContentId(b))("content",a.content)("position",a.position)("animationDuration",d.animationDuration)("preserveContent",d.preserveContent);Lg("tabindex",d.contentTabIndex!=null&&d.selectedIndex===b?d.contentTabIndex:null)("aria-labelledby",d._getTabLabelId(a,b))("aria-hidden",d.selectedIndex!==b)}},iXa=function(a){var b,c=new Hq,d=c.setIt,e=(new hXa).setIssueId(a.issueId).setScope(a.scope);
e=Hj(e,4,a.scopeSortOrder).setMaxResults((b=a.maxResults)!=null?b:7);a=Hj(e,3,a.keyword);return d.call(c,a)},jXa=function(a,b){a=Gsa([].concat(p(a.scores),p(b.scores)),[].concat(p(a.similarIssues),p(b.similarIssues))).sort(function(c,d){return d[0]-c[0]});a=rj(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]})}},kXa=function(a){a&1&&dh(0)},lXa=function(a){a&1&&M(0,"div",0)},mXa=function(a){a&1&&
M(0,"b-formatted-date-time",1);a&2&&(a=P(),I("mode",a.mode)("timestamp",a.createdTime)("paddingLeftPx",0))},nXa=function(a){if(a&1){var b=t();J(0,"div",0);N("keydown",function(c){u(b);var d=P();return w(d.processKeydown(c))});dh(1);K()}a&2&&(a=P(),vh(a.className),Lg("id",a.id))},oXa=function(a){a&1&&M(0,"mat-icon",9)},pXa=function(a){a&1&&(J(0,"span",17),R(1),K());a&2&&(a=P(3),x(),wh(a.HOTKEYS.COPY_ISSUE_ID.displayAs))},qXa=function(a){a&1&&(J(0,"span",17),R(1),K());a&2&&(a=P(4),x(),wh(a.HOTKEYS.COPY_ISSUE_SHORTLINK.displayAs))},
rXa=function(a){if(a&1){var b=t();J(0,"div",14)(1,"label",15);R(2,"Issue shortlink");K();J(3,"input",24,5);N("onHotkey",function(){u(b);var d=Q(4),e=P(3);return w(Iq(e,d))})("focus",function(){u(b);var d=Q(4);return w(d.select())});K();F(5,qXa,2,1,"span",17);J(6,"button",25);N("onHotkey",function(){u(b);var d=Q(4),e=P(3);return w(Iq(e,d))})("click",function(){u(b);var d=Q(4),e=P(3);return w(Iq(e,d))});M(7,"mat-icon",19);K()()}if(a&2){a=Q(4);var c=P(3);x();I("htmlFor",a.id);x(2);I("hotkey",c.HOTKEYS.COPY_ISSUE_SHORTLINK)("hotkeyEnabled",
c.enableHotkeys);Lg("value",c.getAppBaseUrl().replace(/^.*?:\/\//,""));x(2);G(c.enableHotkeys?5:-1);x();I("hotkey",c.HOTKEYS.COPY_ISSUE_SHORTLINK)("hotkeyEnabled",c.enableHotkeys)}},sXa=function(a){a&1&&(J(0,"span",17),R(1),K());a&2&&(a=P(3),x(),wh(a.HOTKEYS.COPY_ISSUE_URL.displayAs))},tXa=function(a){a&1&&(J(0,"span",17),R(1),K());a&2&&(a=P(3),x(),wh(a.HOTKEYS.COPY_ISSUE_TITLE.displayAs))},uXa=function(a){a&1&&(J(0,"span",17),R(1),K());a&2&&(a=P(4),x(),wh(a.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS.displayAs))},
vXa=function(a){if(a&1){var b=t();J(0,"div",14)(1,"label",15);R(2,"Issue email");K();J(3,"input",26,6);N("onHotkey",function(){u(b);var d=Q(4),e=P(3);return w(Iq(e,d))})("focus",function(){u(b);var d=Q(4);return w(d.select())});K();F(5,uXa,2,1,"span",17);J(6,"button",27);N("onHotkey",function(){u(b);var d=Q(4),e=P(3);return w(Iq(e,d))})("click",function(){u(b);var d=Q(4),e=P(3);return w(Iq(e,d))});M(7,"mat-icon",19);K()()}if(a&2){a=Q(4);var c=P(3);x();I("htmlFor",a.id);x(2);I("hotkey",c.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS)("hotkeyEnabled",
c.enableHotkeys);Lg("value","buganizer-system"+(ml(c.activeSession.session)?"":"-qa")+("+"+c.componentId+"+"+c.issueId)+"@google.com");x(2);G(c.enableHotkeys?5:-1);x();I("hotkey",c.HOTKEYS.COPY_ISSUE_EMAIL_ADDRESS)("hotkeyEnabled",c.enableHotkeys)}},wXa=function(a){a&1&&(J(0,"span",17),R(1),K());a&2&&(a=P(4),x(),wh(a.HOTKEYS.COPY_ISSUE_TODO.displayAs))},xXa=function(a){if(a&1){var b=t();J(0,"div",14)(1,"label",15);R(2,"TODO comment");K();J(3,"input",28,7);N("onHotkey",function(){u(b);var d=Q(4),e=
P(3);return w(Iq(e,d))})("focus",function(){u(b);var d=Q(4);return w(d.select())});K();F(5,wXa,2,1,"span",17);J(6,"button",29);N("onHotkey",function(){u(b);var d=Q(4),e=P(3);return w(Iq(e,d))})("click",function(){u(b);var d=Q(4),e=P(3);return w(Iq(e,d))});M(7,"mat-icon",19);K()()}if(a&2){a=Q(4);var c=P(3);x();I("htmlFor",a.id);x(2);I("hotkey",c.HOTKEYS.COPY_ISSUE_TODO)("hotkeyEnabled",c.enableHotkeys);Lg("value","TODO: "+c.getAppBaseUrl().replace(/^.*?:\/\//,"")+" - ");x(2);G(c.enableHotkeys?5:-1);
x();I("hotkey",c.HOTKEYS.COPY_ISSUE_TODO)("hotkeyEnabled",c.enableHotkeys)}},yXa=function(a){if(a&1){var b=t();J(0,"div",13)(1,"div",14)(2,"label",15);R(3,"Issue ID");K();J(4,"input",16,2);N("onHotkey",function(){u(b);var f=Q(5),h=P(2);return w(Iq(h,f))})("focus",function(){u(b);var f=Q(5);return w(f.select())});K();F(6,pXa,2,1,"span",17);J(7,"button",18);N("onHotkey",function(){u(b);var f=Q(5),h=P(2);return w(Iq(h,f))})("click",function(){u(b);var f=Q(5),h=P(2);return w(Iq(h,f))});M(8,"mat-icon",
19);K()();F(9,rXa,8,7,"div",14);J(10,"div",14)(11,"label",15);R(12,"Issue URL");K();J(13,"input",20,3);N("onHotkey",function(){u(b);var f=Q(14),h=P(2);return w(Iq(h,f))})("focus",function(){u(b);var f=Q(14);return w(f.select())});K();F(15,sXa,2,1,"span",17);J(16,"button",21);N("onHotkey",function(){u(b);var f=Q(14),h=P(2);return w(Iq(h,f))})("click",function(){u(b);var f=Q(14),h=P(2);return w(Iq(h,f))});M(17,"mat-icon",19);K()();J(18,"div",14)(19,"label",15);R(20,"URL and title");K();J(21,"input",
22,4);N("onHotkey",function(){u(b);var f=Q(22),h=P(2);return w(Iq(h,f))})("focus",function(){u(b);var f=Q(22);return w(f.select())});K();F(23,tXa,2,1,"span",17);J(24,"button",23);N("onHotkey",function(){u(b);var f=Q(22),h=P(2);return w(Iq(h,f))})("click",function(){u(b);var f=Q(22),h=P(2);return w(Iq(h,f))});M(25,"mat-icon",19);K()();F(26,vXa,8,7,"div",14);F(27,xXa,8,7,"div",14);K()}if(a&2){a=Q(5);var c=Q(14),d=Q(22),e=P(2);I("cdkTrapFocusAutoCapture",!0);x(2);I("htmlFor",a.id);x(2);I("hotkey",e.HOTKEYS.COPY_ISSUE_ID)("hotkeyEnabled",
e.enableHotkeys);Lg("value",e.issueId);x(2);G(e.enableHotkeys?6:-1);x();I("hotkey",e.HOTKEYS.COPY_ISSUE_ID)("hotkeyEnabled",e.enableHotkeys);x(2);G(e.activeSession.isInternalSession()&&!Eq(e.activeSession)?9:-1);x(2);I("htmlFor",c.id);x(2);I("hotkey",e.HOTKEYS.COPY_ISSUE_URL)("hotkeyEnabled",e.enableHotkeys);Lg("value",e.getIssueUrl());x(2);G(e.enableHotkeys?15:-1);x();I("hotkey",e.HOTKEYS.COPY_ISSUE_URL)("hotkeyEnabled",e.enableHotkeys);x(3);I("htmlFor",d.id);x(2);I("hotkey",e.HOTKEYS.COPY_ISSUE_TITLE)("hotkeyEnabled",
e.enableHotkeys);Lg("value",e.getAppBaseUrl(e.isExternalIssue)+" "+e.issueTitle);x(2);G(e.enableHotkeys?23:-1);x();I("hotkey",e.HOTKEYS.COPY_ISSUE_TITLE)("hotkeyEnabled",e.enableHotkeys);x(2);G(e.activeSession.isInternalSession()&&!Eq(e.activeSession)?26:-1);x();G(e.activeSession.isInternalSession()&&!Eq(e.activeSession)?27:-1)}},zXa=function(a){if(a&1){var b=t();J(0,"button",10,0);N("onHotkey",function(){u(b);var d=P();d.disabled||d.trigger.open();return w()})("onedevPopupPanelTriggerOpened",function(){u(b);
var d=P();return w(d.isOpen=!0)})("onedevPopupPanelTriggerClosed",function(){u(b);var d=P();return w(d.isOpen=!1)})("click",function(){u(b);var d=P();d.disabled||d.trigger.open();return w()});M(2,"mat-icon",11);K();J(3,"onedev-popup-panel",12,1);F(5,yXa,28,25,"div",13);K()}if(a&2){a=Q(4);var c=P();I("onedevPopupPanelTriggerFor",a)("hotkey",c.HOTKEYS.HIGHLIGHT_ISSUE_ID)("hotkeyEnabled",c.enableHotkeys);Lg("aria-label","Show links for the issue "+c.issueId);x(5);G(c.isOpen?5:-1)}},AXa=function(a){a&
1&&M(0,"b-issue-id-picker",1);a&2&&(a=P(),I("issueId",a.id)("showCopyOptions",!1))},BXa=function(a){a&1&&M(0,"b-issue-priority-display",1);a&2&&(a=P(),I("issuePriority",a.priority))},CXa=function(a){a&1&&(J(0,"a",2),R(1," Fix Pending "),K());a&2&&(a=P(),vh(Dh("chippy status-",a.IssueStatus.FIXED)),I("href",Dh("http://cl/",a.pendingFixCl.changelistNumber),hf)("matTooltip",Eh("Open cl/",a.pendingFixCl.changelistNumber," from ",a.pendingFixCl.author)))},DXa=function(a,b){a&1&&(J(0,"div",4),R(1),K());
if(a&2){a=P(2);vh(Dh("chippy status-",b));var c;I("title",(c=a.STATUS_JS_FULL_TEXT.get(b))!=null?c:"");x();var d;T(" ",(d=a.STATUS_JS_TERSE.get(b))!=null?d:""," ")}},EXa=function(a){a&1&&F(0,DXa,2,5,"div",3);if(a&2){var b;a=P();G((b=a.status)?0:-1,b)}},FXa=function(a,b){b=b===void 0?"":b;return a.filter(function(c){return c.fixedIssueIds.includes(b)})[0]},GXa=function(a){if(a&1){var b=t();J(0,"div",5)(1,"div",6);R(2," Relative link may be malformed:\u00a0 ");J(3,"code");R(4);K();J(5,"button",7);N("click",
function(){u(b);var c=P(2);c.copyToClipboard();return w(c.hide())});M(6,"mat-icon",8);K()();J(7,"div",6);R(8," Force open as: \u00a0 ");J(9,"a",9);N("click",function(c){u(b);var d=P(2);Ava(c)||(c.preventDefault(),c.stopPropagation(),Jq(d.domSafe,"http://"+d.originalHref));return w(d.hide())});R(10);K()()()}a&2&&(a=P(2),x(4),wh(a.originalHref),x(5),I("href",Dh("http://",a.originalHref),hf),x(),T(" http://",a.originalHref," "))},HXa=function(a){a&1&&F(0,GXa,11,4,"div",5);a&2&&(a=P(),G(a.opened?0:-1))},
IXa=function(a){a&1&&(J(0,"b-glue"),M(1,"mat-icon",4),K())},JXa=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},KXa=function(a,b){if(a&1){var c=t();J(0,"span",6);F(1,JXa,1,1,"mat-icon",7);J(2,"a",8);N("click",function(f){var h=u(c).$implicit,k=P(3);k.openLink(f,h.href);return w(k.hide())});R(3);K()();J(4,"button",9);N("click",function(){var f=u(c).$implicit,h=P(3);h.copyToClipboard(f.originalHref);return w(h.hide())});M(5,"mat-icon",10);K()}if(a&2){a=b.$implicit;var d=
b.$index;b=b.$count;var e=P(3);x();G(a.icon?1:-1);x();I("href",a.originalHref,hf)("rel",e.EXTERNAL_LINK_REL);x();wh(a.label);x();uh("final",d===b-1)}},MXa=function(a){a&1&&(J(0,"div",5),Pg(1,KXa,6,6,null,null,LXa),K());a&2&&(a=P(2),x(),Qg(a.urls))},NXa=function(a){a&1&&F(0,MXa,3,0,"div",5);a&2&&(a=P(),G(a.opened?0:-1))},OXa=function(a){a&1&&(J(0,"div",4),Yg(1,5),K());a&2&&(a=P(),I("onedevIsHovercardReady",a.hovercardReady))},PXa=function(a){for(;a.firstChild;)a.removeChild(a.firstChild)},QXa=function(a,
b){a&1&&M(0,"b-plain-format-section",1);a&2&&I("section",b.$implicit)},RXa=function(a){a&1&&M(0,"b-plain-format-quoted-section",0);a&2&&(a=P(),I("section",a.section))},SXa=function(a){a&1&&M(0,"b-plain-format-unquoted-section",0);a&2&&(a=P(),I("section",a.section))},UXa=function(a){if(a&1){var b=t();J(0,"a",4);N("click",function(){u(b);var c=P();c.showQuote=!1;TXa(c);return w()});R(1," - Hide quoted text - ");K()}a&2&&(a=P(),Lg("aria-controls",a.childId))},VXa=function(a){if(a&1){var b=t();J(0,"a",
5);N("click",function(){u(b);var c=P();c.showQuote=!0;TXa(c);return w()});R(1," - Show quoted text - ");K()}a&2&&(a=P(),Lg("aria-controls",a.childId))},WXa=function(a,b){a&1&&M(0,"b-literal-format-presenter",0);a&2&&I("content",b)},XXa=function(a,b){if(a&1){var c=t();J(0,"b-markdown-format-presenter",2);N("checkboxChange",function(d){u(c);var e=P();return w(e.checkboxChange.emit(d))});K()}a&2&&(a=P(),I("content",b)("canEditComment",a.canEditComment))},YXa=function(a,b){a&1&&M(0,"b-plain-format-presenter",
0);a&2&&I("content",b)},ZXa=function(a,b){a&1&&(J(0,"div",1),M(1,"b-formatted-comment-presenter",2),K());a&2&&(a=P(),uh("invisible",(a.comment||"").trim()==="")("error",b.isFallback),x(),I("formattedComment",b.formattedComment))},$Xa=function(a){if(a&1){var b=t();J(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 h=f.search(/\[[ Xx]\]/);if(h!==-1){var k=
f[h+1];k&&(k=k.toLowerCase()==="x"?"[ ]":"[x]",f=f.substring(0,h)+k+f.substring(h+k.length))}e[c]=f;d.rawComment=e.join("\n");d.rawComment$.next(d.rawComment);d.savingState=d.editIssueService.savingState(d.issueId);d.savingState.get("commentEdit")||(Kq(d.butterBar,"Saving comment edit...",0),Lq(d.savingState,"commentEdit"));Mq(d.issueInteractionsTracking,d.issueId,{label:d.commentNumber===1?"description":"comment"});return w()});K()}a&2&&(a=P(),I("formattedComment",a.formattedComment)("canEditComment",
a.canEditComment))},aYa=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))},bYa=function(a){a&1&&(Wg(0),R(1,"Un-CC me"),Xg())},cYa=function(a){a&1&&(Wg(0),R(1,"CC me"),Xg())},Nq=function(a){return new dYa(a)},fYa=function(a,b){var c=a.getPrimaryTarget(),d=a.getTargetList().map(function(e){return e===c?b:e});return Nq(new eYa(a,
d))},hYa=function(){return new gYa(ge.apply(0,arguments))},jYa=function(){return new iYa(ge.apply(0,arguments))},lYa=function(){var a=ge.apply(0,arguments);return a.length===1?a[0]:new kYa(a)},nYa=function(){return new mYa(ge.apply(0,arguments))},pYa=function(a,b){if(a&1){var c=t();J(0,"div",3)(1,"b-contact-chip",5);N("chipSelection",function(){var d=u(c).$index,e=P();e.selectedChipIndex!==d&&Oq(e,d)&&(oYa(e),e.selectedChipIndex=d,e.items[d].isSelected=!0);return w()})("chipClear",function(){u(c);
var d=P();return w(oYa(d))})("chipRemove",function(){var d=u(c).$index,e=P();return w(e.removeItem(d))});K()()}a&2&&(a=b.$implicit,b=P(),x(),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()))},sYa=function(a){if(a&1){var b=t();J(0,"input",8,0);N("autocompleteActive",function(){u(b);
var c=P(2);return w(c.chipifyFn())});Ah("ngModelChange",function(c){u(b);var d=P(2);zh(d.typedText,c)||(d.typedText=c);return w(c)});N("focus",function(){u(b);var c=P(2);return w(qYa(c))})("blur",function(){u(b);var c=P(2);rYa(c);c.isFocused=!1;return w()});K()}a&2&&(a=P(2),I("bContactAutocomplete","MULTI")("additionalContactsCallback",a.additionalContactsFn),yh("ngModel",a.typedText),I("disabled",a.isWidgetDisabled())("placeholder",a.placeholderText),Lg("aria-expanded",!1))},uYa=function(a){if(a&
1){var b=t();J(0,"input",9,0);N("peoplekitAutocompleteSelectionChange",function(c){u(b);var d=P(2);return w(d.selectAutocomplete(c))});Ah("ngModelChange",function(c){u(b);var d=P(2);zh(d.typedText,c)||(d.typedText=c);return w(c)});N("focus",function(){u(b);var c=P(2);return w(qYa(c))})("blur",function(){u(b);var c=P(2);rYa(c);c.isFocused=!1;return w()});K()}a&2&&(a=P(2),I("peoplekitAutocompleteConfig",tYa(a.autocompleteConfigService))("peoplekitSearchSessionOptions",a.sessionOptions),yh("ngModel",
a.typedText),I("disabled",a.isWidgetDisabled())("placeholder",a.placeholderText))},vYa=function(a){a&1&&F(0,sYa,2,6,"input",6)(1,uYa,2,5,"input",7);a&2&&(a=P(),G(a.enablePeoplekitAc?1:0))},wYa=function(a){a&1&&(J(0,"span"),R(1," Groups cannot be granted Restricted+ reader permission. "),J(2,"a",10),R(3,"Learn more"),K()());a&2&&(a=P(),x(2),Lg("href",zq(a.documentationLinks)+"#components",hf))},xYa=function(a){a&1&&(J(0,"span"),R(1," Invalid user(s). "),K())},yYa=function(a){a&1&&(J(0,"span"),R(1,
' "Public" or external users are not allowed for component designated as "internal access". '),K())},zYa=function(a){a&1&&(J(0,"span"),R(1,' "Public" is not allowed for components designated as "external partner access". '),K())},AYa=function(a){a&1&&(J(0,"span"),R(1," Team owner cannot be a group. "),K())},BYa=function(a){a&1&&(J(0,"span"),R(1," Team owner can only be a full-time Googler. "),K())},CYa=function(a){a&1&&(J(0,"span"),R(1," Only users in the Google domain can be selected. "),K())},DYa=
function(a){a&1&&(J(0,"span"),R(1," User has already been selected. "),K())},EYa=function(a){a&1&&(J(0,"span"),R(1," Only users can be selected. Groups and aliases are not supported. "),K())},JYa=function(a,b){if(!b||!a)return FYa;var c;return!GYa((c=b.readers)!=null?c:[])||HYa(a)?IYa:FYa},GYa=function(a){return a.some(function(b){return b.alias!==void 0?b.alias==="public"||b.alias==="public_non_google":!1})},HYa=function(a){return a==="LIMIT_VIEW"||a==="LIMIT_VIEW_TRUSTED"},KYa=function(a,b){a&1&&
(J(0,"a",6),R(1," Learn more. "),K());a&2&&I("href",b,hf)},LYa=function(a,b){a&1&&M(0,"b-multi-user-input",9);a&2&&(I("users",b),Lg("disabled",!0))},MYa=function(a){a&1&&(Wg(0,8),M(1,"br"),J(2,"h2"),R(3,"Users who can view"),K(),F(4,LYa,1,2,"b-multi-user-input",9),U(5,"async"),Xg());if(a&2){var b;a=P(2);I("onedevIsHovercardReady",a.showHovercard$);x(4);G((b=V(5,2,a.viewers$))?4:-1,b)}},OYa=function(a){if(a&1){var b=t();J(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 w(f.show())})("blur",function(){u(b);var f=Q(1);f.disabled=!0;return w(f.hide())});R(4);U(5,"async");K();J(6,"onedev-hovercard",null,1)(8,"div",3)(9,"div",4)(10,"div",5);R(11);U(12,"async");F(13,KYa,2,1,"a",6);D(14,MYa,6,4,"ng-container",7);K()()()()}if(a&2){var c;a=Q(7);var d=P();vh(V(2,10,d.chipClass$));uh("xs",d.compactMode);var e;I("onedevHovercardTrigger",a)("matTooltipDisabled",!0)("matTooltip",(e=V(3,12,d.tooltipText$))!=null?e:"");x(4);T(" ",V(5,
14,d.chipText$)," ");x(7);T(" ",V(12,16,d.bubbleText$)," ");x(2);G((c=NYa(d.documentationLinks))?13:-1,c)}},PYa=function(a){return a==="visible_to_listed_partners"||a==="visible_to_listed_public_users"},QYa=function(a){a&1&&(J(0,"span"),R(1," Assigned to "),M(2,"b-user-display",12),K());a&2&&(a=P(2),x(2),I("model",a.assigneeUser)("hovercardEnabled",!1))},RYa=function(a){a&1&&(J(0,"span"),R(1," Accepted by "),M(2,"b-user-display",12),K());a&2&&(a=P(2),x(2),I("model",a.assigneeUser)("hovercardEnabled",
!1))},SYa=function(a){a&1&&(J(0,"span"),R(1," Duplicate of "),J(2,"a",2),R(3),K()());if(a&2){a=P(2);var b=P();x(2);Lg("aria-label",Dh("Go to issue ",a.duplicateOfIssueId));I("href",b.ROUTES.viewIssue.makeHref(a.duplicateOfIssueId),hf);x();T(" ",a.duplicateOfIssueId," ")}},TYa=function(a){a&1&&(J(0,"span"),R(1),K());if(a&2){a=P();var b=P(2);x();var c;T(" ",(c=b.STATUS_JS_FULL_TEXT.get(a))!=null?c:""," ")}},UYa=function(a,b){a&1&&F(0,QYa,3,2,"span")(1,RYa,3,2,"span")(2,SYa,4,4,"span")(3,TYa,2,1,"span");
a&2&&G(b==="ASSIGNED"?0:b==="ACCEPTED"?1:b==="DUPLICATE"?2:3)},VYa=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)}},WYa=function(a){a&1&&F(0,VYa,1,3,"b-app-vote-button",13);if(a&2){var b;a=P(2);G((b=a.issue.userData)?0:-1,b)}},YYa=function(a){if(a&1){var b=t();J(0,"button",14);N("click",function(){u(b);var c=P(2);return w(XYa(c,c.childContextId))});R(1," Unlink parent ");K()}},ZYa=function(a,
b){a&1&&(J(0,"li"),R(1," Last updated by "),M(2,"b-user-display",12),R(3," on: "),M(4,"b-formatted-date-time",15),K());a&2&&(a=P(),x(2),I("model",b)("hovercardEnabled",!1),x(2),I("timestamp",a.modifiedTimeMicros/1E3))},$Ya=function(a,b){a&1&&(F(0,ZYa,5,3,"li"),J(1,"li"),R(2," Reported by "),M(3,"b-user-display",12),R(4," on: "),M(5,"b-formatted-date-time",15),K());if(a&2){var c;a=P();G((c=b.lastModifier)?0:-1,c);x(3);I("model",a.reporterUser)("hovercardEnabled",!1);x(2);I("timestamp",b.createdTimeMicros/
1E3)}},aZa=function(a){a&1&&(J(0,"li",11),M(1,"b-note-container",16),K());if(a&2){a=P(2);x();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())}},dZa=function(a,b){if(a&1){var c=t();J(0,"div",1)(1,"h3")(2,"a",2);R(3);K();R(4," \u00a0 ");J(5,"span",3);R(6);K()();J(7,"ul")(8,"li",4);M(9,"b-issue-visibility-chip",
5);K();J(10,"li",6)(11,"span",7);R(12);K();R(13," \u00a0 ");F(14,UYa,4,1);K()();J(15,"div",8)(16,"b-cc-button",9);N("onCc",function(q){u(c);var v=P();v.location&&q&&v.analytics.trackEvent(v.location+"_issueCard","add","CC");return w()});K();F(17,WYa,1,1);F(18,YYa,2,0,"button",10);K();J(19,"ul");F(20,$Ya,6,4);F(21,aZa,2,4,"li",11);K()()}if(a&2){var d,e,f;a=P();x(2);Lg("aria-label",Dh("Go to issue ",a.issueId));I("href",a.ROUTES.viewIssue.makeHref(a.issueId),hf);x();wh(a.issueId);x(3);wh(b.title);x(3);
I("issueId",a.issueId);x(2);vh(a.priorityClass(b.priority));x();var h;wh(a.ISSUE_PRIORITY_TEXT_JS[(h=b.priority)!=null?h:a.ISSUE_PRIORITY_ENUM.PRIORITY_UNSPECIFIED]);x(2);G((d=b.status)?14:-1,d);x(2);var k;I("issueId",a.issueId)("ccState",bZa(a,(k=b.ccUsers)!=null?k:Gh(16,cZa)));x();G((e=a.issue.aggregatedData)?17:-1,e);x();G(a.childContextId?18:-1);x(2);G((f=a.issue.aggregatedData)?20:-1,f);x();G(a.firstEvent&&Sva(a.firstEvent)?21:-1)}},eZa=function(a){a=a.getIt();return{matchedPatterns:Aj(a,1,Bj())}},
gZa=function(a){if(a&1){var b=t();J(0,"span",12);N("onedevHovercardShown",function(){u(b);var d=P(2);return w(fZa(d))});R(1);K()}if(a&2){a=P(2);var c=Q(6);I("onedevHovercardTrigger",c)("onedevHovercardActive",a.enableHovercard);x();wh(a.title)}},hZa=function(a){a&1&&(J(0,"span",9),R(1),K());a&2&&(a=P(2),x(),wh(a.title))},jZa=function(a){if(a&1){var b=t();F(0,gZa,2,3,"span",8)(1,hZa,2,1,"span",9);J(2,"a",10);N("keydown",function(c){u(b);P();c.key==="Enter"&&c.stopPropagation();return w()})("click",
function(c){u(b);var d=P();return w(iZa(d,c))});M(3,"mat-icon",11);K()}a&2&&(a=P(),G(a.enableHovercard?0:1),x(2),I("routerLink","/"+a.link)("target",a.anchorTarget))},kZa=function(a){a&1&&Yg(0)},lZa=function(a){a&1&&D(0,kZa,1,0,"ng-container",13);a&2&&(P(),a=Q(11),I("ngTemplateOutlet",a))},mZa=function(a,b){a&1&&(J(0,"span",14),R(1),K());if(a&2){vh(b.cssClass);Lg("aria-label",Eh("",b.title," - ",b.tooltip));var c;I("matTooltip",(c=b.tooltip)!=null?c:"");x();wh(b.title)}},nZa=function(a){a&1&&M(0,
"b-issue-card",6);a&2&&(a=P(),I("issueId",a.issue.issueId))},oZa=function(a){a&1&&(J(0,"p",7),R(1),J(2,"a",15),R(3," Learn more "),K()());a&2&&(a=P(),x(),T(" ",Pq(a.bannedWordsChecker)," is restricted. Press 'Esc' to cancel or 'Enter' to skip check and save title. "))},qZa=function(a){if(a&1){var b=t();J(0,"input",17,2);U(2,"async");N("input",function(){u(b);var c=P(2);return w(c.bannedWordsChecker.reset())});Ah("ngModelChange",function(c){u(b);var d=P(2);zh(d.title,c)||(d.title=c);return w(c)});
N("keydown",function(c){u(b);var d=P(2);c.key==="Enter"?(c.stopPropagation(),pZa(d)):c.key==="Escape"?(c.stopPropagation(),d.bannedWordsChecker.reset(),d.onCancel.emit()):c.key!=="ArrowLeft"&&c.key!=="ArrowRight"||c.stopPropagation();return w()});K();J(3,"b-button",18);N("onAction",function(){u(b);var c=P(2);return w(pZa(c))});R(4,"Save");K();J(5,"b-button",19);N("onAction",function(c){u(b);var d=P(2);c.stopPropagation();d.bannedWordsChecker.reset();d.onCancel.emit();return w()});R(6,"Cancel");K()}a&
2&&(a=P(2),uh("banned-words-warning",V(2,6,a.bannedWordsChecker.showWarning$)),I("bFocus",!0),yh("ngModel",a.title),x(3),I("disabled",!a.title||a.savingTitle),x(2),I("disabled",a.savingTitle))},rZa=function(a){if(a&1){var b=t();J(0,"a",20);N("keydown",function(d){u(b);P(2);d.key==="Enter"&&d.stopPropagation();return w()})("click",function(d){u(b);var e=P(2);return w(iZa(e,d))})("onedevHovercardShown",function(){u(b);var d=P(2);return w(fZa(d))});R(1);K()}if(a&2){a=P(2);var c=Q(6);I("routerLink","/"+
a.link)("target",a.anchorTarget)("onedevHovercardTrigger",c)("onedevHovercardActive",a.enableHovercard);x();wh(a.title)}},sZa=function(a){a&1&&F(0,qZa,7,8)(1,rZa,2,5,"a",16);a&2&&(a=P(),G(a.isEditMode?0:1))},tZa=function(a){a&1&&(J(0,"span",3),dh(1,1),K())},uZa=function(a){a&1&&(J(0,"span",6),dh(1,2),K())},vZa=function(a){a&1&&(J(0,"span",3),dh(1,1),J(2,"span",7),Ge(),J(3,"svg",8),M(4,"path",9),K()()())},wZa=function(a){a&1&&(J(0,"span",6),dh(1,2),K())},xZa=function(a){a&1&&(J(0,"span",4),R(1),K());
a&2&&(a=P(),x(),wh(a.placeholder))},yZa=function(a){a&1&&dh(0)},zZa=function(a){a&1&&(J(0,"span",11),R(1),K());a&2&&(a=P(2),x(),wh(a.triggerValue))},AZa=function(a){a&1&&(J(0,"span",5),F(1,yZa,1,0)(2,zZa,2,1,"span",11),K());a&2&&(a=P(),x(),G(a.customTrigger?1:2))},BZa=function(a){if(a&1){var b=t();J(0,"div",12,1);N("keydown",function(c){u(b);var d=P();return w(d._handleKeydown(c))});dh(2,1);K()}a&2&&(a=P(),vh(Dh("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",a._getPanelTheme())),
uh("mat-select-panel-animations-enabled",!a._animationsDisabled),I("ngClass",a.panelClass),Lg("id",a.id+"-panel")("aria-multiselectable",a.multiple)("aria-label",a.ariaLabel||null)("aria-labelledby",a._getPanelAriaLabelledby()))},CZa=function(a){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(function(b){return a.classList.contains(b)})},DZa=function(a){a&1&&dh(0,2)},EZa=function(a){a&1&&(J(0,"thead",0),Yg(1,1),K(),J(2,"tbody",0),Yg(3,2)(4,3),K(),J(5,"tfoot",0),Yg(6,4),K())},FZa=function(a){a&
1&&Yg(0,1)(1,2)(2,3)(3,4)},GZa=function(a,b){return a.concat(Array.from(b))},HZa=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},IZa=function(a){a&1&&dh(0,2)},JZa=function(a){a&1&&(J(0,"thead",0),Yg(1,1),K(),J(2,"tbody",2),Yg(3,3)(4,4),K(),J(5,"tfoot",0),Yg(6,5),K())},KZa=function(a){a&1&&Yg(0,1)(1,3)(2,4)(3,5)},LZa=function(a,b){a&1&&(J(0,"div",18)(1,"div",19),R(2,
"CURRENT ISSUE"),K(),J(3,"div",20),R(4),K()());a&2&&(x(4),T(" ",b==null?null:b.snapshot[0].title," "))},MZa=function(a){a&1&&(F(0,LZa,5,1,"div",18),U(1,"async"));if(a&2){var b;a=P();G((b=V(1,1,a.currentIssue$))?0:-1,b)}},NZa=function(a){a&1&&M(0,"mat-icon",21)},OZa=function(a){a&1&&M(0,"mat-icon",22)},PZa=function(a,b){a&1&&F(0,NZa,1,0,"mat-icon",21)(1,OZa,1,0,"mat-icon",22);a&2&&(a=P(),G(b===a.SearchSource.SEMANTIC_SEARCH?0:1))},RZa=function(a){if(a&1){var b=t();J(0,"mat-chip-listbox",37)(1,"mat-chip-option",
38,4);N("keydown.enter",function(){u(b);var d=Q(2);return w(d.openMenu())})("keyup.space",function(){u(b);var d=Q(2);return w(d.openMenu())})("menuOpened",function(){u(b);var d=P(4);return w(QZa(d))});J(3,"span");R(4);K();M(5,"mat-icon",36);K()()}if(a&2){P(2);a=Q(10);var c=P(2);I("selectable",!1);x();I("matMenuTriggerFor",a);x(3);wh(c.selectedScopeFilter.displayAs.replace("Component: ",""))}},TZa=function(a){if(a&1){var b=t();J(0,"mat-chip-listbox",34)(1,"mat-chip-option",35,3);N("keydown.enter",
function(){u(b);var d=Q(2);return w(d.openMenu())})("keyup.space",function(){u(b);var d=Q(2);return w(d.openMenu())});J(3,"span");R(4);K();M(5,"mat-icon",36);K()();F(6,RZa,6,3,"mat-chip-listbox",37)}if(a&2){P();a=Q(7);var c=P(2);I("selectable",!1);x();I("matMenuTriggerFor",a);x(3);wh(SZa(c.selectedScopeFilter.displayAs));x(2);G(c.selectedScopeFilter.displayAs.startsWith("Component:")?6:-1)}},VZa=function(a){if(a&1){var b=t();J(0,"button",41);N("click",function(){u(b);var c=P(4);return w(UZa(c,c.componentFilter))});
M(1,"mat-icon",42);R(2);K()}a&2&&(a=P(4),I("matTooltip",a.componentFilter.tooltip||""),x(),uh("invisible",a.componentFilter!==a.selectedScopeFilter),x(),T(" ",a.componentFilter.displayAs," "))},WZa=function(a){if(a&1){var b=t();J(0,"button",43);N("click",function(){u(b);var c=P(4);return w(UZa(c,c.teamFilter))});M(1,"mat-icon",42);R(2);K()}a&2&&(a=P(4),I("matTooltip",a.teamFilter.tooltip||""),x(),uh("invisible",a.teamFilter!==a.selectedScopeFilter),x(),T(" ",a.teamFilter.displayAs," "))},XZa=function(a){a&
1&&(F(0,VZa,3,4,"button",39),F(1,WZa,3,4,"button",40));a&2&&(a=P(3),G(a.componentFilter?0:-1),x(),G(a.teamFilter?1:-1))},ZZa=function(a){if(a&1){var b=t();J(0,"div",45)(1,"b-team-component-picker",46);N("selectedComponentChange",function(c){u(b);var d=P(4);return w(d.selectedComponent=c)});K()();J(2,"div",47)(3,"button",48);N("click",function(){u(b);var c=P(4);return w(YZa(c,c.selectedComponent))});R(4," Choose ");K();J(5,"button",49);N("click",function(){u(b);P(4).trigger.closeMenu();return w()});
R(6," Cancel ");K()()}a&2&&(a=P(4),x(),I("selectedComponent",a.selectedComponent)("placeholder","Search for a component")("shouldFocus",!0)("isRequired",!0),x(2),I("disabled",!a.selectedComponent))},$Za=function(a){if(a&1){var b=t();J(0,"div",44);N("click",function(c){u(b);return w(c.stopPropagation())})("keydown.tab",function(c){u(b);return w(c.stopPropagation())})("keydown.shift.tab",function(c){u(b);return w(c.stopPropagation())});F(1,ZZa,7,5);K()}a&2&&(a=P(3),x(),G(a.componentFilter?1:-1))},a_a=
function(a){if(a&1){var b=t();J(0,"button",50);N("click",function(){u(b);var c=P(3);return w(c.openLearnMore())});M(1,"mat-icon",51);K()}},c_a=function(a){if(a&1){var b=t();J(0,"div",23)(1,"mat-chip-listbox",24);N("change",function(c){u(b);var d=P(2);return w(d.openFilterChanged(c.value))});J(2,"mat-chip-option",25)(3,"span",26);R(4);K()()();F(5,TZa,7,4);J(6,"mat-menu",27,1);D(8,XZa,2,2,"ng-template",28);K();J(9,"mat-menu",29,2);D(11,$Za,2,1,"ng-template",28);K();J(12,"mat-chip-listbox",30);N("change",
function(){u(b);var c=P(2);return w(b_a(c))});J(13,"mat-chip-option",31);U(14,"async");J(15,"span",32);R(16);K()()();F(17,a_a,2,0,"button",33);K()}a&2&&(a=P(2),x(2),I("selected",a.selectedFilters$.has(a.openFilter))("value",a.openFilter),x(),I("matTooltip",a.openFilter.tooltip||""),x(),T(" ",a.openFilter.displayAs," "),x(),G(a.selectedScopeFilter?5:-1),x(8),I("selected",V(14,8,a.includeDescendants$)),x(3),T(" Include sub-",a.selectedScopeFilter===a.componentFilter?"components":"teams"," "),x(),G(a.isInternalSession?
17:-1))},d_a=function(a,b){a&1&&F(0,c_a,18,10,"div",23);a&2&&(a=P(),G(b===a.SearchSource.SEMANTIC_SEARCH&&a.tableDataSource!==a.TableDataSource.ISSUE_IDS?0:-1))},e_a=function(a){a&1&&M(0,"ai-spinner",52);a&2&&I("large",!0)},f_a=function(a){a&1&&M(0,"ai-spinner",53)},g_a=function(a){a&1&&M(0,"b-spinner",54)},h_a=function(a){a&1&&(J(0,"div",13),F(1,e_a,1,1,"ai-spinner",52),U(2,"async"),Mg(3,f_a,1,0,"ai-spinner",53)(4,g_a,1,0,"b-spinner",54),K());a&2&&(a=P(),x(),G(a.searchText$.value?a.searchText$.value&&
V(2,1,a.selectedSearchSource$)===a.SearchSource.SEMANTIC_SEARCH?3:4:1))},i_a=function(a){a&1&&(J(0,"b-callout",55)(1,"b-callout-body"),R(2," This issue was suggested by AI! Save time by exploring the suggestions first next time. "),J(3,"a",59),R(4,"Learn more"),K()()())},j_a=function(a){a&1&&(J(0,"h3",56),M(1,"mat-icon",60),R(2," Possible duplicates "),K())},k_a=function(a){a&1&&(J(0,"th",79)(1,"span",80),R(2,"Selection"),K()())},l_a=function(a,b){a&1&&(J(0,"td",81),M(1,"mat-radio-button",82),U(2,
"async"),K());a&2&&(a=b.$implicit,b=P(3),x(),I("checked",V(2,3,Qq(b.selectedIssues,a.issueId))),Kg("aria-label",a.snapshot[0].title),I("value",a.issueId))},m_a=function(a){a&1&&(J(0,"th",79),R(1," Title "),K())},n_a=function(a,b){a&1&&(J(0,"td",81),M(1,"b-issue-title-cell",83),K());a&2&&(a=b.$implicit,b=P(3),x(),I("issue",a)("issueUrlFactory",b.issueUrlFactory)("useButtonToNavigate",!0)("enableHovercard",!0))},o_a=function(a){a&1&&(J(0,"th",79),R(1," Id "),K())},p_a=function(a,b){a&1&&(J(0,"td",81),
M(1,"b-issue-id-cell",84),K());a&2&&(a=b.$implicit,x(),I("id",a.issueId))},q_a=function(a){a&1&&(J(0,"th",79),R(1," Priority "),K())},r_a=function(a,b){a&1&&(J(0,"td",81),M(1,"b-issue-priority-cell",85),K());a&2&&(a=b.$implicit,x(),I("issue",a))},s_a=function(a){a&1&&(J(0,"th",86),R(1," Status "),K())},t_a=function(a,b){a&1&&(J(0,"td",81),M(1,"b-issue-status-cell",85),K());a&2&&(a=b.$implicit,x(),I("issue",a))},u_a=function(a){a&1&&(J(0,"th",79),R(1," Dupes "),K())},v_a=function(a,b){a&1&&(J(0,"td",
87),R(1),K());if(a&2){a=b.$implicit;x();var c;T(" ",(c=a.snapshot[0].duplicateIssueId==null?null:a.snapshot[0].duplicateIssueId.length)!=null?c:0," ")}},w_a=function(a){a&1&&(J(0,"th",88)(1,"span",80),R(2,"Votes"),K(),M(3,"mat-icon",89),K())},x_a=function(a,b){a&1&&(J(0,"td",87),R(1),K());a&2&&(a=b.$implicit,x(),T(" ",a.aggregatedData.voteCount," "))},y_a=function(a){a&1&&(J(0,"th",90),R(1," Created "),K())},z_a=function(a,b){a&1&&(J(0,"td",81),M(1,"b-issue-created-time-cell",91),K());a&2&&(a=b.$implicit,
x(),I("issue",a))},A_a=function(a){a&1&&M(0,"tr",92)},B_a=function(a,b){if(a&1){var c=t();J(0,"tr",93);N("keydown",function(d){var e=u(c),f=e.$implicit;e=e.index;var h=P(3);return w(h.onRowKeydown(e,f,d))})("keydown.enter",function(){var d=u(c).$implicit,e=P(3);return w(e.selectIssue(d.issueId))})("focusin",function(){var d=u(c).$implicit,e=P(3);return w(Rq(e.focusManager,d))})("click",function(){var d=u(c),e=d.$implicit;d=d.index;var f=P(3);f.selectIssue(e.issueId);return w(f.focusManager.setActiveItem(d))});
K()}a&2&&I("row",b.$implicit)},D_a=function(a){if(a&1){var b=t();J(0,"table",61);N("contentChanged",function(){u(b);var d=P(),e=P();return w(C_a(e,d))});Wg(1,62);D(2,k_a,3,0,"th",63);J(3,"mat-radio-group",64);N("change",function(d){u(b);var e=P(2);return w(e.selectIssue(d.value))});D(4,l_a,3,5,"td",65);K();Xg();Wg(5,66);D(6,m_a,2,0,"th",63)(7,n_a,2,4,"td",65);Xg();Wg(8,67);D(9,o_a,2,0,"th",63)(10,p_a,2,1,"td",65);Xg();Wg(11,68);D(12,q_a,2,0,"th",63)(13,r_a,2,1,"td",65);Xg();Wg(14,69);D(15,s_a,2,0,
"th",70)(16,t_a,2,1,"td",65);Xg();Wg(17,71);D(18,u_a,2,0,"th",63)(19,v_a,2,1,"td",72);Xg();Wg(20,73);D(21,w_a,4,0,"th",74)(22,x_a,2,1,"td",72);Xg();Wg(23,75);D(24,y_a,2,0,"th",76)(25,z_a,2,1,"td",65);Xg();D(26,A_a,1,0,"tr",77)(27,B_a,1,1,"tr",78);K()}if(a&2){a=P();var c=P();I("dataSource",a)("trackBy",c.trackByIssueId);x(26);I("matHeaderRowDef",c.tableColumns);x();I("matRowDefColumns",c.tableColumns)}},E_a=function(a){a&1&&(J(0,"div",58)(1,"span",94),R(2,"No results found"),K()())},F_a=function(a,
b){a&1&&(J(0,"div",14),F(1,i_a,5,0,"b-callout",55),F(2,j_a,3,0,"h3",56),F(3,D_a,28,4,"table",57),F(4,E_a,3,0,"div",58),K());a&2&&(a=P(),x(),G(a.isPasteResultInSuggestion?1:-1),x(),G(a.searchText$.value||a.isLoading?-1:2),x(),G(!a.isLoading&&b&&b.length?3:-1),x(),G(a.isLoading||(b==null?null:b.length)!==0?-1:4))},G_a=function(a){a&1&&(J(0,"div")(1,"p"),R(2),K()());a&2&&(a=P(),x(2),wh(a.description))},H_a=function(a){a&1&&(J(0,"span"),R(1,", "),K())},I_a=function(a,b){a&1&&(J(0,"span",1),R(1),K(),J(2,
"onedev-hovercard",null,0)(4,"div",2)(5,"div",3)(6,"h3"),R(7),K(),F(8,G_a,3,1,"div"),K()()(),F(9,H_a,2,0,"span"));if(a&2){a=Q(3);var c=P(),d=c.$index;c=c.$count;I("onedevHovercardTrigger",a)("onedevHovercardActive",b.enableHovercard);x();wh(b.displayName);x(6);wh(b.displayName);x();G(b.description?8:-1);x();G(d!==c-1?9:-1)}},K_a=function(a,b){a&1&&(F(0,I_a,10,6),U(1,"async"));if(a&2){var c;a=b.$implicit;b=P();G((c=V(1,1,J_a(b,a)))?0:-1,c)}},L_a=function(a){if(a&1){var b=t();J(0,"button",4);N("click",
function(c){u(b);var d=P();d.expansionChange.emit();c.stopPropagation();d.issueTitleCell.bannedWordsChecker.reset();return w()});M(1,"b-icon",5);K()}a&2&&(a=P(),uh("collapsed",!a.expanded),Lg("aria-label",a.expanded?"Collapse children":"Expand children"))},M_a=function(a){a&1&&M(0,"div",2)},N_a=function(a){a&1&&M(0,"mat-icon",1);a&2&&(a=P(),I("svgIcon",a.icon))},O_a=function(a){if(a&1){var b=t();M(0,"b-signal-chip",3);J(1,"button",4);N("click",function(c){u(b);var d=P();c.preventDefault();c.stopPropagation();
return w(d.dismissAlert())})("mousedown",function(){u(b);var c=P();return w(c.dismissAlert())});M(2,"mat-icon",5);K()}a&2&&(P(),a=bh(1),I("chipColor",a.chipColor)("displayText",a.displayAs)("tooltip",a.tooltip))},Q_a=function(a){a&1&&(J(0,"div",2),R(1),K());if(a&2){a=P();var b=Q(5);I("xapInlineDialog",b);x();T(" +",P_a(a).slice(1).length," ")}},R_a=function(a,b){if(a&1){var c=t();J(0,"div",6);M(1,"b-signal-chip",3);J(2,"button",4);N("click",function(d){u(c);var e=P(2);d.preventDefault();d.stopPropagation();
return w(e.dismissAlert())})("mousedown",function(){u(c);var d=P(2);return w(d.dismissAlert())});M(3,"mat-icon",7);K()()}a&2&&(a=b.$implicit,x(),I("chipColor",a.chipColor)("displayText",a.displayAs)("tooltip",a.tooltip))},S_a=function(a){a&1&&(J(0,"xap-dialog-layout")(1,"xap-dialog-layout-content"),Pg(2,R_a,4,3,"div",6,Ng),K()());a&2&&(a=P(),x(2),Qg(P_a(a).slice(1)))},T_a=function(a){a&1&&(J(0,"b-person-hovercard",1),R(1),K());a&2&&(a=P(),I("email",a.assignee),x(),T(" ",a.assignee," "))},U_a=function(a){a&
1&&M(0,"b-team-display",1);a&2&&(a=P(),I("teamId",a.teamId)("componentId",a.componentId)("anchorLinkEnabled",!1))},V_a=function(a,b){a&1&&M(0,"b-user-image",0);a&2&&I("email",b)},W_a=function(a){if(a&1){var b=t();J(0,"button",2);N("click",function(){u(b);var c=P();return w(c.claim())})("mousedown",function(){u(b);var c=P();return w(c.claim())});R(1," Claim ");K()}},X_a=function(a){a&1&&(Wg(0),R(1),U(2,"enumToHuman"),Xg());a&2&&(a=P(),x(),wh(V(2,1,a.type)))},Y_a=function(a){a&1&&(J(0,"a",1),M(1,"mat-icon",
2),K());a&2&&(a=P(),I("href",a.mdHelpLink,hf)("disableRipple",!0))},Z_a=function(a){a&1&&Yg(0)},$_a=function(a){a&1&&(J(0,"span"),R(1,"Details"),K())},a0a=function(a){a&1&&(J(0,"span"),R(1,"Members"),K())},b0a=function(a){a&1&&(J(0,"div",11)(1,"a",12),F(2,$_a,2,0,"span")(3,a0a,2,0,"span"),K()());if(a&2){a=P(2);x();if(a.email===void 0)var b="";else{b=encodeURIComponent(a.getName());var c=encodeURIComponent(a.email);b=paa(a.email)?"https://ganpati2.corp.google.com/group/"+b+".corp":Fva(a.email)?"https://twosync.corp.google.com/rosterz/"+
c:"https://groups.google.com/a/google.com/forum/#!members/"+b}I("href",b,hf);x();G(paa(a.email)?2:3)}},c0a=function(a){a&1&&(J(0,"span",2),D(1,Z_a,1,0,"ng-container",3),K(),J(2,"onedev-hovercard",null,1)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"h3"),R(10),K()(),J(11,"div",9),M(12,"mat-icon",10),J(13,"span"),R(14),K()()(),F(15,b0a,4,2,"div",11),K()()()());if(a&2){a=Q(3);var b=P(),c=Q(3);I("onedevHovercardTrigger",a);x();I("ngTemplateOutlet",c);x(9);wh(b.getName());x(4);wh(b.email);
x();G(b.shouldShowLinks()?15:-1)}},d0a=function(a){a&1&&Yg(0)},e0a=function(a){a&1&&D(0,d0a,1,0,"ng-container",3);a&2&&(P(),a=Q(3),I("ngTemplateOutlet",a))},f0a=function(a){a&1&&dh(0)},g0a=function(a){a&1&&(J(0,"xap-dialog-layout")(1,"xap-dialog-layout-content"),dh(2),K()())},h0a=function(a,b){a&1&&M(0,"mat-icon",2);a&2&&I("svgIcon",b)},i0a=function(a){a&1&&(J(0,"b-person-hovercard",4),R(1),K());a&2&&(a=P(),I("email",a.value),x(),T(" ",a.displayText," "))},j0a=function(a){a&1&&(J(0,"b-group-email-card",
4),R(1),K());a&2&&(a=P(),I("email",a.value),x(),T(" ",a.displayText," "))},k0a=function(a,b){a&1&&(J(0,"div",8),M(1,"b-contact-chip",9),K());a&2&&(a=b.$implicit,b=P(3),x(),I("value",a.value)("detailedUserType",a.detailedUserType)("principalType",a.principalType)("accessLevel",b.accessLevel)("displayText",a.displayText))},l0a=function(a){a&1&&(J(0,"div",7),Pg(1,k0a,2,5,"div",8,Og),K());a&2&&(a=P(2),x(),Qg(a.nestedChips))},m0a=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P(2),x(),wh(a.getTooltip()))},
n0a=function(a){a&1&&(J(0,"b-text-with-tooltip",5),F(1,l0a,3,0,"div",7)(2,m0a,2,1,"span"),K());a&2&&(a=P(),I("dialogTabIndex",a.isContainerChip()?-1:0)("displayText",a.displayText),x(),G(a.isContainerChip()?1:2))},o0a=function(a){if(a&1){var b=t();J(0,"div",10);N("click",function(){u(b);var c=P();return w(c.chipRemove.emit())})("keydown.enter",function(){u(b);var c=P();return w(c.chipRemove.emit())});M(1,"mat-icon",11);K()}a&2&&(a=P(),I("matTooltip",Dh("'Remove ",a.displayText,"'")),Lg("aria-label",
"Remove "+a.displayText))},p0a=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))},q0a=function(a,b){a&1&&(J(0,"span",1),R(1),K());a&2&&(I("matTooltip",b),x(),T(" ",b," "))},r0a=function(a){a&1&&(J(0,"b-person-hovercard",1),R(1),K());a&2&&(a=P(),I("email",a.reporter),x(),T(" ",a.reporter," "))},s0a=function(a){a&1&&(J(0,"div")(1,"div",10),R(2," An issue cannot reference itself. "),K()())},t0a=function(a){a&1&&(J(0,"mat-option",
7)(1,"div",11),M(2,"b-spinner",12),K()());a&2&&(x(2),I("large",!0))},u0a=function(a){a&1&&(J(0,"mat-option",8),R(1," No issues found. "),K())},v0a=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:"")}},w0a=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)}},y0a=function(a,b){if(a&1){var c=t();J(0,"mat-option",9)(1,"div",13);F(2,v0a,1,1,"mat-icon",
14);J(3,"strong",15);R(4);K();J(5,"onedev-hovercard",null,1);D(7,w0a,2,2,"b-issue-card",16);K();J(8,"a",17);N("click",function(e){u(c);return w(e.stopPropagation())});M(9,"mat-icon",18);K();J(10,"span",19);R(11);K();M(12,"div",20);U(13,"boldPrefixMatches");K()()}if(a&2){a=b.$implicit;b=Q(6);var d=P();I("value",a);x();Lg("aria-label",a.resourceId+", "+a.displayText+", click ALT RightArrow to open the issue in a new tab.");x();G(a.status?2:-1);x();I("title",Ch(a.resourceId));x();T(" ",a.resourceId,
" ");x(4);I("onedevHovercardTrigger",b)("href",d.getIssueLink(a),hf);x(3);wh(x0a(a));x();I("title",Ch(a.displayText))("innerHTML",Kh(13,12,a.displayText,d.query),gf)}},z0a=function(a,b){a&1&&(J(0,"a",11),R(1),K());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;I("href",Dh("issues/",a.resourceId),hf);x();xh(" ",a.resourceId,"",c===b-1?"":","," ")}},A0a=function(a){a&1&&(J(0,"div",3),Pg(1,z0a,2,4,"a",11,Og),K());a&2&&(a=P(),x(),Qg(a.selectedIssues))},B0a=function(a){a&1&&(J(0,"div",3)(1,"a",12)(2,
"span",13),R(3),K(),J(4,"span"),M(5,"mat-icon",14),K()()());a&2&&(a=P(),x(),I("href",Dh("issues/",a.selectedIssues[0].resourceId),hf),x(2),T(" ",a.selectedIssues[0].displayText," "))},D0a=function(a){if(a&1){var b=t();J(0,"div",6)(1,"div",15);N("click",function(){u(b);var c=P();return w(C0a(c))})("keyup.space",function(){u(b);var c=P();return w(C0a(c))});K()()}a&2&&(a=P(),x(),I("matTooltip",a.isQueryRestricted?"Searching in current component tree":"Click to search in current component tree"),Lg("aria-checked",
a.isQueryRestricted))},E0a=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("Od`"+a);}},F0a=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P(),x(),T("Retain ",a.resource," as long as issue?"))},G0a=function(a){a&1&&(J(0,"span"),R(1,"Apply component retention settings?"),K())},H0a=function(a){a&1&&(J(0,"span")(1,"p"),R(2),K(),J(3,"p")(4,"b"),R(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."),
K(),M(6,"br"),R(7," Before selecting this option, you should make sure that Legal and Privacy have approved this non-standard retention period."),K()());a&2&&(a=P(),x(2),T("Are you sure you want to override any component retention settings, and retain this ",a.resource," as long as issue?"))},I0a=function(a){a&1&&(J(0,"span")(1,"p"),R(2),K()());a&2&&(a=P(),x(2),xh("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."))},
J0a=function(a){if(a&1){var b=t();J(0,"mat-checkbox",8);Ah("ngModelChange",function(c){u(b);var d=P();zh(d.acknowledgeToMatchIssueRetention,c)||(d.acknowledgeToMatchIssueRetention=c);return w(c)});R(1," I acknowledge ");K()}a&2&&(a=P(),yh("ngModel",a.acknowledgeToMatchIssueRetention))},K0a=function(){var a=Math.random;this.initialMaxDelayMs_=500;this.maxDelayMs_=512E3;this.random_=a;this.reset()},L0a=function(){},M0a=function(a){return new Sq(a)},N0a=function(a){a=a instanceof Sq?a:new Sq(a);return a.value===
null||a.value instanceof Tq?a:new Sq(a.value,!0)},O0a=function(a){return{queryParams:a.getQueryParameters(),extraHeaders:a.getHeaders(),withCredentials:a.usesCredentialedRequests()}},S0a=function(a){if(a.oauthTokens){var b=a.oauthTokens;return Rf(b).then(function(c){c=new Kn(c);b.subscribe(c);return new P0a(c)})}return a.apiKey?a.appAuthTokens?Promise.resolve(new Q0a(a.apiKey,a.appAuthTokens)):Promise.resolve(new R0a(a.apiKey,a.authUser)):Promise.reject(Error("Vd"))},T0a=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}},U0a=function(a){return{send:function(b,c,d,e,f,h,k){var q=new Uq(a);q.listen("complete",c);q.listenOnce("ready",function(){q.dispose()});h&&(q.timeoutInterval_=Math.max(0,h));k&&(q.withCredentials_=k);q.send(b,d,e,f);return q}}},V0a=function(a){return new Cf(function(b){var c=Vq(function(){b.next({});
b.complete()},a);return function(){Wq(c)}})},W0a=function(a){return(new Xq).setName(a)},a1a=function(a){var b=new Yq;a=l(a.parts);for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=new X0a;if(d.value===null){d=c;var e=new Y0a;nm(d,13,Zq,e)}else d.value instanceof $q?d.isDecreasing?fm(c,4,Zq,Ib(d.value.toString(),0)):fm(c,2,Zq,Ib(d.value.toString(),0)):typeof d.value==="string"?d.isDecreasing?Rl(c,3,Zq,d.value):Rl(c,1,Zq,d.value):typeof d.value==="number"?d.isDecreasing?$xa(c,9,Zq,d.value):$xa(c,
10,Zq,d.value):d.value instanceof Uint8Array?d.isDecreasing?fm(c,5,Zq,gb(d.value,!1,!0)):fm(c,7,Zq,gb(d.value,!1,!0)):d.value instanceof Z0a?d.isDecreasing?(e=c,d=$0a(d.value),nm(e,11,Zq,d)):(e=c,d=$0a(d.value),nm(e,12,Zq,d)):d.value instanceof Tq&&(c=d.value.rep);b.addParts(c)}return b},f1a=function(a,b){if(a instanceof ar)return b.getPartsList().length>0?null:b1a.apply(ar,p(a.parts));a=Array.of.apply(Array,p(a.root.parts));b=l(b.getPartsList());for(var c=b.next();!c.done;c=b.next())switch(c=c.value,
Ml(c,Zq)){case 4:a.push(N0a(br(c1a(c,4))));break;case 2:a.push(M0a(br(c1a(c,2))));break;case 8:case 10:case 6:case 9:a.push(new Sq(new Tq(c)));break;case 3:a.push(N0a(Vo(c,3,Zq)));break;case 1:a.push(M0a(Vo(c,1,Zq)));break;case 7:var d=void 0;a.push(M0a((d=d1a(c,7))==null?void 0:new Uint8Array(Ic(d)||0)));break;case 5:d=void 0;a.push(N0a((d=d1a(c,5))==null?void 0:new Uint8Array(Ic(d)||0)));break;case 12:c=e1a(im(c,bk,12,Zq));if(c===null)return null;a.push(new Sq(c));break;case 11:c=e1a(im(c,bk,11,
Zq));if(c===null)return null;a.push(N0a(c));break;case 13:a.push(new Sq(null));break;case 0:a.push(new Sq(new Tq(c)));break;default:return null}return b1a.apply(ar,p(a))},cr=function(a){return{firstPartyUri:new Mp("https://"+a+"-signaler-pa.clients6.google.com/punctual"),thirdPartyUri:new Mp("https://"+a+"-signaler-pa.googleapis.com/punctual")}},dr=function(a){return{firstPartyUri:new Mp("https://chat.google.com/punctual/"+a),thirdPartyUri:new Mp("https://chat.google.com/punctual/"+a)}},g1a=function(a){a&
1&&(J(0,"div",6)(1,"div",10),M(2,"mat-icon",11),R(3," Literal Mode "),K(),J(4,"span"),R(5,"No formatting or linkification will be performed.\u00a0"),K(),J(6,"a",12),R(7,"Learn more"),K()())},h1a=function(a){a&1&&(J(0,"div",7)(1,"div",13),R(2," Warning: Mentions are not supported without edit access. "),K()())},i1a=function(a){if(a&1){var b=t();J(0,"input",16,2);N("peoplekitAutocompleteSelectionChange",function(c){u(b);var d=P(3);return w(d.handlePeoplePickerSelection(c))});K()}a&2&&(a=P(3),I("peoplekitAutocompleteConfig",
a.getConfig())("peoplekitSearchSessionOptions",a.sessionOptions))},j1a=function(a){a&1&&D(0,i1a,2,2,"ng-template",14);a&2&&(a=P(2),I("refreshable",a.refresh$))},k1a=function(a){if(a&1){var b=t();J(0,"input",17,2);U(2,"async");N("change",function(){u(b);var c=P(2);return w(c.hiddenInputChange())})("keyup",function(c){u(b);var d=P(2);return w(d.hiddenInputKeyUp(c))});K()}a&2&&(a=P(2),I("value",V(2,1,a.autocompleteUserName$)))},l1a=function(a){a&1&&F(0,j1a,1,1,null,14)(1,k1a,3,3,"input",15);a&2&&(a=
P(),G(a.enablePeoplekitAc?0:1))},m1a=function(a){a&1&&M(0,"div",9,3)},n1a=function(a){a&1&&Yg(0)},o1a=function(a){a&1&&Yg(0)},p1a=function(a){a&1&&(J(0,"p",2),R(1," Editing comments will not permanently remove old ones from database history. "),M(2,"br"),R(3," For deletion of PII or other sensitive content, please "),J(4,"a",10),R(5," file a support request."),K()());a&2&&(a=P(),x(4),I("href",a.contentRemovalRequestLink,hf))},q1a=function(a){a&1&&(J(0,"p",4),R(1),J(2,"a",11),R(3," Learn more "),K()());
a&2&&(a=P(),x(),T(" Your comment contains restricted words: ",Pq(a.bannedWordsChecker),". Review your comment before posting. "))},r1a=function(a){a&1&&M(0,"b-live-preview",6);a&2&&(a=P(),I("comment",a.dataDraft.text)("issueId",a.originalData.issueId)("audience",a.originalData.audience)("formattingMode",a.dataDraft.formattingMode))},s1a=function(a){if(a&1){var b=t();J(0,"section")(1,"div",12)(2,"b-recaptcha",13);N("onUpdate",function(c){u(b);var d=P();return w(d.recaptchaResponse=c)});K()()()}},t1a=
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]}}},u1a=function(a){var b=[],c=new Map;a=l(a);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.displayText!=="")if(c.get(d.resourceId)){var e=c.get(d.resourceId);e.relations=[].concat(p(e.relations),p(d.relations))}else c.set(d.resourceId,d),b.push(d);return b},v1a=function(a,b){a&1&&M(0,"mat-icon",5);a&2&&(I("svgIcon",b.icon)("matTooltip",
b.tooltip),Lg("aria-label",b.tooltip))},w1a=function(a){a&1&&(Wg(0),R(1,"\u2026 >"),Xg())},x1a=function(a){a&1&&(Wg(0),R(1,"\u2026"),Xg())},y1a=function(a){if(a&1){var b=t();J(0,"a",11);N("click",function(){u(b);var c=P(4);return w(c.compactMode$.next(!1))});J(1,"span",12);F(2,w1a,2,0,"ng-container");F(3,x1a,2,0,"ng-container");K()()}a&2&&(a=P().$implicit,x(2),G(a.isSpliced?2:-1),x(),G(a.isTruncated?3:-1))},z1a=function(a){a&1&&R(0);a&2&&(a=P(5),T(" ",a.displayValueOverride," "))},A1a=function(a){a&
1&&(J(0,"a",14),R(1),K());if(a&2){a=P(2).$implicit;var b=Q(5);uh("muted",a.name==a.id);I("routerLinkObj",a.route)("onedevHovercardTrigger",b);x();wh(a.name)}},B1a=function(a){a&1&&F(0,z1a,1,1)(1,A1a,2,5,"a",13);a&2&&(a=P(4),G(a.displayValueOverride?0:1))},C1a=function(a){a&1&&R(0);a&2&&(a=P(5),T(" ",a.displayValueOverride," "))},D1a=function(a){a&1&&(J(0,"span",16),R(1),K());a&2&&(a=P(2).$implicit,uh("muted",a.name==a.id),x(),wh(a.name))},E1a=function(a){a&1&&F(0,C1a,1,1)(1,D1a,2,3,"span",15);a&2&&
(a=P(4),G(a.displayValueOverride?0:1))},F1a=function(a){a&1&&R(0," > ")},G1a=function(a){a&1&&(Wg(0),M(1,"b-component-path-card",17,1),Xg());if(a&2){a=Q(2);var b=P().$implicit;x();I("onedevIsHovercardReady",a.init)("componentId",b.id)}},H1a=function(a,b){a&1&&(F(0,y1a,4,2,"a",9),F(1,B1a,2,1)(2,E1a,2,1),F(3,F1a,1,0),J(4,"onedev-hovercard",null,0),D(6,G1a,3,2,"ng-container",10),K());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;var d=P(3);G(a.isSpliced||a.isTruncated?0:-1);x();G(d.linkifyComponentNames?
1:2);x(2);G(c!==b-1?3:-1)}},J1a=function(a,b){a&1&&(J(0,"span",6),Pg(1,H1a,7,3,null,null,I1a),K());a&2&&(x(),Qg(b))},K1a=function(a){a&1&&(J(0,"span"),R(1,"[Archived]"),K())},L1a=function(a){if(a&1){var b=t();J(0,"button",18);N("click",function(){u(b);var c=P(2);c.editing=!0;c.cdr.markForCheck();return w()});M(1,"mat-icon",19);K()}},M1a=function(a){a&1&&(J(0,"a",8),U(1,"async"),M(2,"mat-icon",20),K());if(a&2){var b;a=P(2);I("routerLinkObj",a.popoutLink((b=V(1,1,a.component$))==null?null:b.componentId))}},
N1a=function(a){a&1&&(J(0,"b-async-data-placeholder",2),U(1,"async"),J(2,"div",4),U(3,"async"),U(4,"async"),F(5,v1a,1,3,"mat-icon",5),U(6,"async"),F(7,J1a,3,0,"span",6),U(8,"async"),F(9,K1a,2,0,"span"),U(10,"async"),F(11,L1a,2,0,"button",7),F(12,M1a,3,3,"a",8),K()());if(a&2){var b,c;a=P();I("isReady",V(1,10,a.isReady$));x(2);uh("public",V(3,12,a.showPublicIndicator$))("partner",V(4,14,a.showPartnerIndicator$));x(3);G((b=V(6,16,a.folder$))?5:-1,b);x(2);G((c=V(8,18,a.componentPath$))?7:-1,c);x(2);G(V(10,
20,a.isArchived$)?9:-1);x(2);G(a.readOnly?-1:11);x();G(a.popoutLink?12:-1)}},P1a=function(a){if(a&1){var b=t();J(0,"b-team-component-picker",21);U(1,"async");N("selectedComponentChange",function(c){u(b);var d=P();return w(O1a(d,c))})("dropdownClosed",function(){u(b);var c=P();return w(O1a(c))});K()}a&2&&(a=P(),I("selectedComponent",V(1,4,a.component$))("isRequired",!0)("shouldFocus",!0)("showOverlayAbove",a.showPickerOverlayAbove))},S1a=function(a){for(var b=l(Q1a),c=b.next();!c.done;c=b.next())if(c=
c.value,c.accessLevel===a)return c.title;return R1a.title},T1a=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P(),I("matTooltip",a.disabledDropdownTooltip))},U1a=function(a,b){if(a&1){var c=t();J(0,"button",10);N("click",function(){var d=u(c).$implicit,e=P();e.selectedDisplay$.next(d);e.updatedAccessLimitLevel.emit(d.accessLevel);return w()});J(1,"div",11);M(2,"mat-icon",12);J(3,"span",13);R(4);K()();J(5,"div",14);R(6);K()()}a&2&&(a=b.$implicit,b=P(),x(2),I("svgIcon",a.icon),x(2),T(" ",a.title," "),x(2),
T(" ",b.implicitAccessEnabled?a.descriptionWithExpandedAccess:a.descriptionNoExpandedAccess," "))},W1a=function(a,b){if(a&1){var c=t();J(0,"mat-checkbox",19);N("click",function(d){u(c);return w(d.stopPropagation())})("change",function(d){var e=u(c).$implicit,f=P(2);e=e.value.user;d=d.source.checked;var h=f.collaboratorGroupsEmailToDetailsMap.get(e.emailAddress).specifiedOnIssue;d?(h||f.addedCollaboratorGroups.add(e),f.removedCollaboratorGroups.delete(e)):(h&&f.removedCollaboratorGroups.add(e),f.addedCollaboratorGroups.delete(e));
var k;V1a(f,(k=f.updatedAccessLimitLevel$.getValue())!=null?k:f.defaultAccessLimitLevel);return w()});R(1);K()}a&2&&(a=b.$implicit,I("id",a.key)("name",a.key)("checked",a.value.specifiedOnIssue),x(),T(" ",a.key," "))},X1a=function(a){a&1&&(J(0,"div")(1,"span",16),R(2,"Add collaborator groups"),K(),M(3,"mat-icon",7),K(),J(4,"div",17),Pg(5,W1a,2,4,"mat-checkbox",18,Og),U(7,"keyvalue"),K());a&2&&(a=P(),x(3),I("matTooltip",Ch(a.COLLABORATOR_GROUPS_TOOLTIP)),x(2),Qg(V(7,2,a.collaboratorGroupsEmailToDetailsMap)))},
Z1a=function(a){if(a&1){var b=t();J(0,"button",20);N("click",function(){u(b);var c=P();return w(c.onPressCancel())});R(1," Cancel ");K();J(2,"button",21);U(3,"async");N("click",function(){u(b);var c=P();return w(c.onPressSave())});R(4," Save ");K()}a&2&&(a=P(),x(2),I("disabled",!Y1a(a,V(3,1,a.hasAccessLimitLevelSelectionChanged$))))},$1a=function(a){if(a&1){var b=t();J(0,"button",22);N("click",function(){u(b);var c=P();return w(c.onPressCancel())});R(1," Close ");K()}},a2a=function(a){if(a&1){var b=
t();J(0,"b-star-toggle",5);U(1,"async");U(2,"async");N("starClicked",function(){u(b);var c=P(2);return w(c.starClicked.emit())});K()}a&2&&(a=P(2),I("starMessage","Star hotlist "+a.hotlist.name)("unStarMessage","Un-star hotlist "+a.hotlist.name)("acceptInput",!V(1,4,Qq(a.isSavingStar,a.hotlist.hotlistId)))("starred",V(2,6,Qq(a.starredHotlists,a.hotlist.hotlistId))))},b2a=function(a){a&1&&M(0,"div",2)},c2a=function(a){if(a&1){var b=t();J(0,"span",0);F(1,a2a,3,8,"b-star-toggle",1)(2,b2a,1,0,"div",2);
J(3,"a",3);N("click",function(c){u(b);return w(c.stopPropagation())})("keydown.enter",function(c){u(b);return w(c.stopPropagation())});M(4,"mat-icon",4);K()()}a&2&&(a=P(),x(),G(a.shouldShowStar(a.hotlist)?1:2),x(2),I("matTooltip",Dh("Open ",a.hotlist.name," in a new tab"))("routerLink",a.ROUTES.viewHotlist.makeHref(a.hotlist.hotlistId)),Lg("aria-label","Open "+a.hotlist.name+" in a new tab"))},d2a=function(a){a&1&&Yg(0)},e2a=function(a){a&1&&D(0,d2a,1,0,"ng-container",7);a&2&&(P(),a=Q(10),I("ngTemplateOutlet",
a))},g2a=function(a){if(a&1){var b=t();J(0,"button",15);N("click",function(){u(b);var c=P(2),d=kj(c.query$.value);c.allHotlistIds.has(d)?(c.selectedHotlistIds.add(d),er(c)):f2a(c,d);return w()});R(1);U(2,"async");J(3,"span",16);R(4,"(add hotlist by ID)");K()()}a&2&&(a=P(2),x(),T(" ",V(2,1,a.query$)," "))},h2a=function(a){if(a&1){var b=t();J(0,"button",17);N("click",function(){u(b);P(2).showCreateNewPane=!0;return w()});R(1);U(2,"async");J(3,"span",16);R(4,"(create new)");K()()}a&2&&(a=P(2),x(),T(" ",
V(2,1,a.query$)," "))},i2a=function(a){a&1&&M(0,"mat-icon",27)},j2a=function(a){a&1&&M(0,"mat-icon",28)},k2a=function(a){a&1&&M(0,"mat-icon",29)},l2a=function(a){a&1&&(J(0,"p",36),R(1),K());a&2&&(a=P(2).$implicit,x(),T(" ",a.description," "))},m2a=function(a){if(a&1){var b=t();J(0,"div");F(1,i2a,1,0,"mat-icon",27)(2,j2a,1,0,"mat-icon",28)(3,k2a,1,0,"mat-icon",29);J(4,"mat-list-item",30);N("focus",function(){u(b);P();var e=Q(1);return w(e.show())})("blur",function(){u(b);P();var e=Q(1);return w(e.hide())});
J(5,"div",31)(6,"mat-checkbox",32);U(7,"async");N("change",function(e){u(b);var f=P().$implicit,h=P(3);return w(h.onCheckboxChange(e,f.hotlistId))});J(8,"div",33)(9,"div",34)(10,"p",35);R(11);K()();F(12,l2a,2,1,"p",36);K()()()()()}if(a&2){var c;a=P().$implicit;var d=P(3);vh(Dh("flex-kids-x align-items-center left-padding ",a.type));x();G(a.type===d.HotlistType.RECOMMENDED?1:a.type===d.HotlistType.USER?2:3);x(3);th("height",a.description?"72px":"auto");x(2);I("value",a.hotlistId.toString())("checked",
d.selectedHotlistIds.has(a.hotlistId))("disabled",((c=V(7,13,a.permissions$))==null?null:c.appender)===!1)("indeterminate",d.partiallySelectedHotlistIds.has(a.hotlistId));Lg("aria-checked",d.selectedHotlistIds.has(a.hotlistId));x(5);T(" ",a.name," ");x();G(a.description?12:-1)}},n2a=function(a){a&1&&(J(0,"p",36),R(1),K());a&2&&(a=P(2).$implicit,x(),T(" ",a.description," "))},o2a=function(a){if(a&1){var b=t();J(0,"mat-list-item",30);N("focus",function(){u(b);P();var e=Q(1);return w(e.show())})("blur",
function(){u(b);P();var e=Q(1);return w(e.hide())});J(1,"div",31)(2,"mat-checkbox",37);U(3,"async");N("click",function(e){u(b);return w(e.stopPropagation())})("change",function(e){u(b);var f=P().$implicit,h=P(3);return w(h.onCheckboxChange(e,f.hotlistId))});J(4,"div",33)(5,"div",34)(6,"label",35);R(7);K()();F(8,n2a,2,1,"p",36);K()()()()}if(a&2){var c;a=P().$implicit;var d=P(3);th("height",a.description?"72px":"auto");x(2);I("value",a.hotlistId.toString())("checked",d.selectedHotlistIds.has(a.hotlistId))("disabled",
((c=V(3,9,a.permissions$))==null?null:c.appender)===!1)("indeterminate",d.partiallySelectedHotlistIds.has(a.hotlistId));Lg("aria-checked",d.selectedHotlistIds.has(a.hotlistId));x(5);T(" ",a.name," ");x();G(a.description?8:-1)}},p2a=function(a,b){a&1&&(J(0,"div",21,4),U(2,"async"),F(3,m2a,13,15,"div",25)(4,o2a,9,11,"mat-list-item",26),K());if(a&2){var c;a=b.$implicit;b=P(3);I("matTooltip",((c=V(2,2,a.permissions$))==null?null:c.appender)===!1?b.NO_ACCESS_MESSAGE:"");x(3);G(b.isInternalSession?3:4)}},
q2a=function(a,b){if(a&1){var c=t();J(0,"hotlist-matlist-option",38);N("starClicked",function(){var d=u(c).$implicit,e=P(3);return w(e.toggleStar(d.hotlistId))});K()}a&2&&(a=b.$implicit,b=P(3),uh("has-description",a.description),I("hotlist",a)("isCompact",!1)("starredHotlists",b.starredHotlists)("isSavingStar",b.isSavingStar))},r2a=function(a){if(a&1){var b=t();J(0,"div",24)(1,"span",16);R(2," The number of hotlists is too large to show at once. ");K();J(3,"button",39);N("click",function(){u(b);var c=
P(3);return w(c.forceShowOverflow$.next(!0))});R(4," Show all anyway ");K()()}},t2a=function(a,b){a&1&&(J(0,"div",18)(1,"mat-list",19)(2,"div",20),Pg(3,p2a,5,4,"div",21,s2a),K()(),J(5,"div",22),Pg(6,q2a,1,6,"hotlist-matlist-option",23,s2a),K()(),F(8,r2a,5,0,"div",24),U(9,"async"));a&2&&(a=P(2),x(3),Qg(b),x(3),Qg(b),x(2),G(V(9,1,a.isOverflowMode$)?8:-1))},u2a=function(a){if(a&1){var b=t();J(0,"header",8)(1,"h2");R(2,"Search for Hotlists from your favorites");K();J(3,"div",9);M(4,"mat-icon",10);J(5,
"input",11,2);N("input",function(){u(b);var d=Q(6);P().query$.next(d.value);return w()});K()()();J(7,"section",12,3);F(9,g2a,5,3,"button",13);U(10,"async");F(11,h2a,5,3,"button",14);U(12,"async");F(13,t2a,10,3);U(14,"async");K()}if(a&2){var c;a=P();x(9);G(V(10,3,a.showLoadById$)?9:-1);x(2);G(V(12,5,a.showCreateNew$)?11:-1);x(2);G((c=V(14,7,a.visibleHotlists$))?13:-1,c)}},v2a=function(a){a&1&&Yg(0)},w2a=function(a){a&1&&D(0,v2a,1,0,"ng-container",7);a&2&&(P(),a=Q(8),I("ngTemplateOutlet",a))},x2a=function(a){if(a&
1){var b=t();J(0,"button",40);N("click",function(){u(b);var c=P();return w(er(c))});R(1);K()}a&2&&(a=P(),I("mat-dialog-close",!0)("matTooltip",a.saveBtnTooltip)("disabled",a.pristine),Lg("aria-label",a.saveBtnTooltip),x(),T(" ",a.saveBtnLabel," "))},A2a=function(a){if(a&1){var b=t();J(0,"button",41);N("click",function(){u(b);var c=P();return w(y2a(c))});R(1," Create ");K()}a&2&&(a=P(),I("disabled",!(z2a(a).length>0)))},B2a=function(a){a&1&&(J(0,"header",8)(1,"h2"),R(2,"Create new hotlist"),K()(),
J(3,"section",42)(4,"div",43)(5,"form",44)(6,"label",45),R(7,"Name"),K(),M(8,"input",46),J(9,"label",47),R(10,"Description"),K(),M(11,"textarea",48),J(12,"p",16),R(13," Note: Access controls can be adjusted after the hotlist is created. "),K()()()());a&2&&(a=P(),x(5),I("formGroup",a.hotlistUnderEdit))},C2a=function(a,b){return a.name.localeCompare(b.name)},D2a=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)},E2a=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)}}},F2a=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},G2a=function(a){if(a&1){var b=t();J(0,"b-edit-field",21);U(1,"async");
N("valueChange",function(f){u(b);var h=P(3),k=P(2);return w(k.setSeverity(h,f!=null?f:k.IssueSeverity.S2))});K()}if(a&2){var c=P().$implicit,d=P();a=bh(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",!V(1,8,e.hasAclToEdit$))("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")}},H2a=function(a){if(a&1){var b=t();J(0,"b-edit-field",22,0);U(2,"async");N("onHotkey",
function(){u(b);var f=Q(1);return w(tq(f,null,!0,!1))})("valueChange",function(f){u(b);var h=P(3),k=P(2);return w(k.setPriority(h,f!=null?f:k.IssuePriority.P2))});K()}if(a&2){var c=P().$implicit,d=P();a=bh(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",!V(2,9,e.hasAclToEdit$))("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:
"")}},I2a=function(a){if(a&1){var b=t();J(0,"triage-hotlists-editor",23);N("hotlistIdsChange",function(c){u(b);var d=P(5);return w(d.hotlistIds=c)})("hotlistIdsMapChange",function(c){u(b);var d=P(5);return w(d.hotlistIdsMap=c)});K()}a&2&&(a=P(5),I("phase",a.phase)("subphase",a.subphase))},J2a=function(a){if(a&1){var b=t();J(0,"triage-custom-fields-editor",24);N("onCustomFieldBulkEdit",function(e){u(b);P(5).customFieldBulkEditOps=e;return w()});K()}if(a&2){P(2);a=bh(0);var c=P(),d=P(2);I("editableIssue",
a)("hasMultipleIssues",c.length>1)("phase",d.phase)("subphase",d.subphase)}},K2a=function(a,b){if(a&1){var c=t();J(0,"button",30);N("click",function(){var e=u(c),f=P(6),h=P(2);return w(h.setAssignee(f,e))})("onHotkey",function(){var e=u(c),f=P(6),h=P(2);return w(h.setAssignee(f,e))});M(1,"mat-icon",31);R(2," Assign to default ");K()}if(a&2){P(5);a=bh(0);var d=P(3);I("disabled",a.assignee===b)("hotkey",d.HOTKEYS.ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE)("matTooltip","Set "+b+" as assignee");Lg("aria-label",
"Set "+b+" as assignee");x();I("svgIcon",a.assignee===b?"done":"add")}},L2a=function(a){a&1&&(F(0,K2a,3,5,"button",29),U(1,"async"));if(a&2){var b;a=P(7);G((b=V(1,1,a.defaultAssigneeForComponent$))?0:-1,b)}},M2a=function(a){if(a&1){var b=t();J(0,"button",32);N("click",function(){u(b);var c=P(5),d=P(2);return w(d.setAssignee(c,d.currentUserEmail))})("onHotkey",function(){u(b);var c=P(5),d=P(2);return w(d.setAssignee(c,d.currentUserEmail))});M(1,"mat-icon",33);R(2," Assign to me ");K()}a&2&&I("matTooltip",
"Assign to me")},N2a=function(a){a&1&&(J(0,"div",27),F(1,L2a,2,3),F(2,M2a,3,1,"button",28),K());if(a&2){P();a=bh(0);P(2);var b=bh(0),c=P(3);x();G(c.showAssignToDefault&&!a?1:-1);x();G(c.showAssignToSelf&&b.assignee!==c.currentUserEmail||a?2:-1)}},O2a=function(a){if(a&1){var b=t();$g(0);J(1,"div",15)(2,"div",25)(3,"b-single-user-control",26,1);N("onHotkey",function(){u(b);var f=Q(4);return w(f.openEditor())})("valueChange",function(f){u(b);var h=P(3),k=P(2);return w(k.setAssignee(h,f.newEmail))})("emailChange",
function(f){u(b);var h=P(3),k=P(2);return w(k.setAssignee(h,f))});K();F(5,N2a,3,2,"div",27);U(6,"async");K()()}if(a&2){var c=P().$implicit,d=P();a=bh(0);var e=P(3);c=ah(d.get(c));x(3);I("name","assignee")("title","Assignee")("hotkey",e.HOTKEYS.CHANGE_ASSIGNEE)("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")("value",a.assignee);x(2);G(V(6,7,e.showAssigneeChips$)?5:-1)}},P2a=function(a){if(a&1){var b=t();J(0,"b-edit-field",34,2);U(2,"async");N("valueChange",function(f){u(b);var h=P(3),k=
P(2);return w(k.setType(h,f!=null?f:k.IssueType.BUG))});K()}if(a&2){var c=P().$implicit,d=P();a=bh(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",!V(2,7,e.hasAclToEdit$))("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")}},Q2a=function(a){if(a&1){var b=t();J(0,"b-edit-field",35,3);U(2,"async");N("onHotkey",function(){u(b);var f=Q(1);return w(tq(f,null,!0,!1))})("valueChange",function(f){u(b);var h=
P(3),k=P(2);return w(k.setStatus(h,f!=null?f:k.IssueStatus.NEW))});K()}if(a&2){var c=P().$implicit,d=P();a=bh(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",!V(2,9,e.hasAclToEdit$))("displayValueOverride",c?e.MULTIPLE_FIELD_VALUES_LABEL:"")}},S2a=function(a){if(a&1){var b=t();J(0,"b-list-field",37);U(1,"async");N("valuesChange",function(d){u(b);
var e=P(4),f=P(2);return w(f.setCodeChanges(e,d.values))});K()}if(a&2){P(3);a=bh(0);var c=P(3);I("readonly",!V(1,6,c.hasAclToEdit$))("defaultLineCount",3)("title","Code Changes")("inputValidator",c.codeChangesValidator)("type",c.ListFieldType.CODE_CHANGES)("values",R2a(a,c.sessionIsExternal))}},T2a=function(a){a&1&&F(0,S2a,2,8,"b-list-field",36);a&2&&(a=P(3),G(a.length<2?0:-1))},U2a=function(a){if(a&1){var b=t();J(0,"div",18)(1,"div",38)(2,"label");R(3,"Component");K()();J(4,"b-component-breadcrumb-chip",
39);N("componentChanged",function(f){u(b);var h=P(3),k=P(2);return w(k.setComponent(h,f))});K()()}if(a&2){var c=P().$implicit,d=P();a=bh(0);var e=P(3);c=d.get(c);x(4);I("issueId",a.issueId)("componentId",c?"":e.componentId)("compactMode",!0)("handleSave",!1)("showPickerOverlayAbove",!0)("displayValueOverride",c?e.MULTIPLE_COMPONENT_SELECTED_LABEL:"")}},X2a=function(a){if(a&1){var b=t();J(0,"div",19)(1,"div")(2,"b-post-comment",40,4);N("commentSubmitted",function(){u(b);var d=P(5);return w(V2a(d))});
K();J(4,"button",10);N("click",function(){u(b);var d=Q(7),e=P(5);return w(V2a(e,d))});R(5,"Remove comment");K()();J(6,"button",10,5);N("click",function(){u(b);var d=Q(3);P(5).showCommentInput=!0;return w(d.commentBox==null?null:W2a(d.commentBox))});R(8,"Add comment");K()()}if(a&2){P(2);a=bh(0);var c=P(3);x();uh("hidden",!c.showCommentInput);x();I("issueId",a.issueId)("showActionsAfterPreview",!1)("showCommentButton",!1);x(4);uh("hidden",c.showCommentInput)}},$2a=function(a){if(a&1){var b=t();J(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),h=f.next();!h.done;h=f.next()){h=h.value;var k=h.collaborators;k.includes(e)||k.push(e);h.setCollaborators(k)}fr(d,c[0]);gr(d,c);return w()})("removeCurrentUser",function(){u(b);var c=P(4),d=P(2);return w(Y2a(d,c))})("onAddUsers",function(c){u(b);for(var d=P(4),e=P(2),f=l(d),h=f.next();!h.done;h=f.next()){h=h.value;var k=sj([].concat(p(h.collaborators),p(c)));
h.setCollaborators(k)}fr(e,d[0]);gr(e,d);return w()})("onRemoveUsers",function(c){u(b);var d=P(4),e=P(2);return w(Z2a(e,d,c))});K()}a&2&&(a=P(6),I("title","Collaborators")("subtitle",a.MULTIPLE_FIELD_VALUES_LABEL)("inputValidator",a.collaboratorUserPrincipalValidator)("isAllowedToEditCollection",V(1,4,a.hasAclToEdit$)))},a3a=function(a){if(a&1){var b=t();J(0,"b-multi-user-control",44);U(1,"async");N("userInclusionToggle",function(){u(b);var d=P(4),e=P(2);return w(e.toggleCollaborators(d))})("valueChange",
function(d){u(b);var e=P(4),f=P(2);return w(f.setCollaborators(e,d))})("toggleAccessLimits",function(){u(b);P(3);var d=bh(0),e=P(3);return w(e.toggleAccessLimits(d.issueId))});K()}if(a&2){P(3);a=bh(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",V(1,14,c.hasAclToEdit$))("iconName","groups_24px")("inputValidator",c.collaboratorUserPrincipalValidator)("checkAccessLimits",!0)}},b3a=function(a){a&1&&F(0,$2a,2,6,"triage-edit-user-buttons",41)(1,a3a,2,16,"b-multi-user-control",42);a&2&&(a=P().$implicit,a=P().get(a),G(a?0:1))},e3a=function(a){if(a&
1){var b=t();J(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),h=f.next();!h.done;h=f.next()){h=h.value;var k=h.cc;k.includes(e)||k.push(e);h.cc=k}hr(d,c[0]);gr(d,c);return w()})("removeCurrentUser",function(){u(b);var c=P(4),d=P(2);return w(c3a(d,c))})("onAddUsers",function(c){u(b);for(var d=P(4),e=P(2),f=l(d),h=f.next();!h.done;h=f.next()){h=h.value;var k=sj([].concat(p(h.cc),p(c)));h.cc=k}hr(e,d[0]);
gr(e,d);return w()})("onRemoveUsers",function(c){u(b);var d=P(4),e=P(2);return w(d3a(e,d,c))});K()}a&2&&(a=P(6),I("title","CC")("subtitle",a.MULTIPLE_FIELD_VALUES_LABEL)("isAllowedToEditCollection",V(1,3,a.hasAclToEdit$)))},g3a=function(a){if(a&1){var b=t();J(0,"b-multi-user-control",48);U(1,"async");N("userInclusionToggle",function(){u(b);var d=P(4),e=P(2);return w(f3a(e,d))})("valueChange",function(d){u(b);var e=P(4),f=P(2);return w(f.setCcs(e,d))});K()}if(a&2){P(3);a=bh(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",V(1,12,c.hasAclToEdit$))("iconName","add_alert_24px")}},h3a=function(a){a&
1&&F(0,e3a,2,5,"triage-edit-user-buttons",45)(1,g3a,2,14,"b-multi-user-control",46);a&2&&(a=P().$implicit,a=P().get(a),G(a?0:1))},i3a=function(a,b){a&1&&M(0,"automatic-change-chip",20);a&2&&(P(2),a=bh(0),I("issueId",a.issueId)("automaticChange",b))},k3a=function(a,b){a&1&&(J(0,"div",7),F(1,G2a,2,10,"b-edit-field",11)(2,H2a,3,11,"b-edit-field",12)(3,I2a,1,2,"triage-hotlists-editor",13)(4,J2a,1,4,"triage-custom-fields-editor",14)(5,O2a,7,9,"div",15)(6,P2a,3,9,"b-edit-field",16)(7,Q2a,3,11,"b-edit-field",
17)(8,T2a,1,1)(9,U2a,5,6,"div",18)(10,X2a,9,7,"div",19)(11,b3a,2,1)(12,h3a,2,1),F(13,i3a,1,2,"automatic-change-chip",20),K());if(a&2){var c;a=b.$implicit;b=P(4);x();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);x(12);G((c=j3a(b,a))?13:-1,c)}},l3a=function(a){if(a&1){var b=t();$g(0);J(1,"div",6);Pg(2,k3a,14,2,"div",7,Og);K();J(4,"div",8)(5,"button",9);U(6,"async");N("click",function(){u(b);var d=P(),e=P(2);return w(e.save(d))});R(7);U(8,"async");K();J(9,"button",10);N("click",function(){u(b);var d=P(3);return w(d.cancelAction.emit())});R(10,"Cancel");K()()}if(a&2){a=P();var c=P(2);ah(a[0]);x(2);Qg(c.fields);x(3);I("disabled",V(6,3,c.isSaving$));x(2);wh(V(8,5,c.isSaving$)?
"Saving":"Save changes")}},m3a=function(a){a&1&&(F(0,l3a,11,7),U(1,"async"));if(a&2){var b;a=P(2);G((b=V(1,1,a.fieldMultipleValueMap$))?0:-1,b)}},n3a=function(a){a&1&&(F(0,m3a,2,3),U(1,"async"));if(a&2){var b;a=P();G((b=V(1,1,a.editableIssues$))?0:-1,b)}},o3a=function(a){a&1&&Yg(0)},p3a=function(a){a&1&&D(0,o3a,1,0,"ng-container",11);a&2&&(P(),a=Q(12),I("ngTemplateOutlet",a))},q3a=function(a){a&1&&Yg(0)},r3a=function(a){a&1&&D(0,q3a,1,0,"ng-container",11);a&2&&(P(),a=Q(14),I("ngTemplateOutlet",a))},
s3a=function(a){a&1&&Yg(0)},t3a=function(a){a&1&&D(0,s3a,1,0,"ng-container",11);a&2&&(P(),a=Q(16),I("ngTemplateOutlet",a))},u3a=function(a){a&1&&Yg(0)},v3a=function(a){a&1&&D(0,u3a,1,0,"ng-container",11);a&2&&(P(),a=Q(32),I("ngTemplateOutlet",a))},w3a=function(a){a&1&&Yg(0)},x3a=function(a){a&1&&D(0,w3a,1,0,"ng-container",11);a&2&&(P(),a=Q(20),I("ngTemplateOutlet",a))},y3a=function(a){a&1&&Yg(0)},z3a=function(a){a&1&&D(0,y3a,1,0,"ng-container",11);a&2&&(P(),a=Q(22),I("ngTemplateOutlet",a))},A3a=function(a){a&
1&&Yg(0)},B3a=function(a){a&1&&D(0,A3a,1,0,"ng-container",11);a&2&&(P(),a=Q(24),I("ngTemplateOutlet",a))},C3a=function(a){a&1&&Yg(0)},D3a=function(a){a&1&&D(0,C3a,1,0,"ng-container",11);a&2&&(P(),a=Q(26),I("ngTemplateOutlet",a))},E3a=function(a){a&1&&Yg(0)},F3a=function(a){a&1&&D(0,E3a,1,0,"ng-container",11);a&2&&(P(),a=Q(28),I("ngTemplateOutlet",a))},G3a=function(a){a&1&&Yg(0)},H3a=function(a){a&1&&D(0,G3a,1,0,"ng-container",11);a&2&&(P(),a=Q(18),I("ngTemplateOutlet",a))},I3a=function(a){a&1&&Yg(0)},
J3a=function(a){a&1&&D(0,I3a,1,0,"ng-container",11);a&2&&(P(),a=Q(30),I("ngTemplateOutlet",a))},K3a=function(a){if(a&1){var b=t();J(0,"div",12)(1,"div",13);R(2,"Move to Needs more info");K();J(3,"verify-fields",14);N("cancelAction",function(){u(b);var c=P();return w(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return w(d.finalizeAction.emit(c))});K()()}a&2&&(a=P(),x(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))},L3a=function(a){if(a&1){var b=t();J(0,"div",12)(1,"div",13);R(2,"Move to Confirmed");K();J(3,"verify-fields",15);N("cancelAction",function(){u(b);var c=P();return w(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return w(d.finalizeAction.emit(c))});K()()}a&2&&(a=P(),x(3),I("fields",a.CONFIRM_ACTION.fieldsToShow)("phase",a.TriagePhase.CONFIRMED))},M3a=function(a){if(a&1){var b=
t();J(0,"div",12)(1,"div",13);R(2,"Move to Pending owner");K();J(3,"verify-fields",15);N("cancelAction",function(){u(b);var c=P();return w(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return w(d.finalizeAction.emit(c))});K()()}a&2&&(a=P(),x(3),I("fields",a.SET_PENDING_OWNER.fieldsToShow)("phase",a.TriagePhase.CONFIRMED))},N3a=function(a){if(a&1){var b=t();J(0,"div",12)(1,"div",13);R(2,"Route");K();J(3,"verify-fields",15);N("cancelAction",function(){u(b);var c=P();return w(c.cancelAction.emit())})("completeAction",
function(c){u(b);var d=P();return w(d.finalizeAction.emit(c))});K()()}a&2&&(a=P(),x(3),I("fields",a.CHANGE_COMPONENT.fieldsToShow)("phase",a.TriagePhase.NEW))},O3a=function(a){if(a&1){var b=t();J(0,"div",12)(1,"div",13);R(2,"Move to In progress");K();J(3,"verify-fields",16);N("cancelAction",function(){u(b);var c=P();return w(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return w(d.finalizeAction.emit(c))});K()()}a&2&&(a=P(),x(3),I("fields",a.SET_IN_PROGRESS.fieldsToShow)("phase",
a.TriagePhase.IN_PROGRESS)("showAssignToSelf",a.SET_IN_PROGRESS.showAssignToSelf))},P3a=function(a){if(a&1){var b=t();J(0,"div",12)(1,"div",13);R(2,"Move to Expected");K();J(3,"verify-fields",16);N("cancelAction",function(){u(b);var c=P();return w(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return w(d.finalizeAction.emit(c))});K()()}a&2&&(a=P(),x(3),I("fields",a.SET_EXPECTED.fieldsToShow)("phase",a.TriagePhase.IN_PROGRESS)("showAssignToSelf",a.SET_EXPECTED.showAssignToSelf))},
Q3a=function(a){if(a&1){var b=t();J(0,"div",12)(1,"div",13);R(2,"Move to Planned");K();J(3,"verify-fields",16);N("cancelAction",function(){u(b);var c=P();return w(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return w(d.finalizeAction.emit(c))});K()()}a&2&&(a=P(),x(3),I("fields",a.SET_PLANNED.fieldsToShow)("phase",a.TriagePhase.IN_PROGRESS)("showAssignToSelf",a.SET_PLANNED.showAssignToSelf))},R3a=function(a){if(a&1){var b=t();J(0,"div",12)(1,"div",13);R(2,"Move to Committed");
K();J(3,"verify-fields",16);N("cancelAction",function(){u(b);var c=P();return w(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return w(d.finalizeAction.emit(c))});K()()}a&2&&(a=P(),x(3),I("fields",a.SET_COMMITTED.fieldsToShow)("phase",a.TriagePhase.IN_PROGRESS)("showAssignToSelf",a.SET_COMMITTED.showAssignToSelf))},S3a=function(a){if(a&1){var b=t();J(0,"div",12)(1,"div",13);R(2,"Move to Fixed");K();J(3,"verify-fields",17);N("cancelAction",function(){u(b);var c=P();return w(c.cancelAction.emit())})("completeAction",
function(c){u(b);var d=P();return w(d.finalizeAction.emit(c))});K()()}a&2&&(a=P(),x(3),I("fields",a.SET_FIXED.fieldsToShow)("phase",a.TriagePhase.FIXED)("automaticChanges",a.SET_FIXED.automaticChanges))},T3a=function(a){if(a&1){var b=t();J(0,"div",12)(1,"div",13);R(2,"Move to New");K();J(3,"verify-fields",17);N("cancelAction",function(){u(b);var c=P();return w(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return w(d.finalizeAction.emit(c))});K()()}a&2&&(a=P(),x(3),I("fields",
a.SET_NEW.fieldsToShow)("phase",a.TriagePhase.NEW)("automaticChanges",a.SET_NEW.automaticChanges))},U3a=function(a){if(a&1){var b=t();J(0,"div",12)(1,"div",13);R(2,"Move to Won't fix");K();J(3,"verify-fields",18);N("cancelAction",function(){u(b);var c=P();return w(c.cancelAction.emit())})("completeAction",function(c){u(b);var d=P();return w(d.finalizeAction.emit(c))});K()()}a&2&&(a=P(),x(3),I("fields",a.SET_WONT_FIX.fieldsToShow)("automaticChanges",a.SET_WONT_FIX.automaticChanges))},W3a=function(a){var b,
c,d,e;a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;a=Ec(a,a[Ta]|0,ir,1,Nc)||ir[Sba]||(ir[Sba]=Tba(ir));return{output:(e=(b=Sj(a,V3a,1,Bj())[0])==null?void 0:(c=b.getContent())==null?void 0:(d=c.getPartsList()[0])==null?void 0:d.getText())!=null?e:""}},X3a=function(a,b){if(a&1){var c=t();J(0,"iframe",6);N("load",function(){u(c);var d=P();return w(d.contentLoaded=!0)});K()}a&2&&(a=P(),uh("loading",!a.contentLoaded),I("src",b,uia))},Y3a=function(a){a&1&&M(0,"mat-spinner",2)},$3a=function(a){return Z3a.some(function(b){return b.test(a)})},
d4a=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&&a4a.includes(d)?d:c&&a4a.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))?aj(b4a,a):aj(c4a,a,d)},g4a=function(a,b,c,d){if(e4a&&f4a===b)return e4a;f4a=b;var e=d4a(a,d);return e4a=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):
new Promise(function(f,h){var k=jr(document,"SCRIPT");jd(k,e);k.onload=function(){b.feedbackV2GlobalObject?f(b.feedbackV2GlobalObject):h(Error("me"))};k.onerror=function(){h(Error("ne`"+e.toString()))};c.body.appendChild(k)})},j4a=function(a,b,c,d){if(h4a&&i4a===b)return h4a;i4a=b;var e=d4a(a,d);return h4a=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(f,h){var k=jr(document,"SCRIPT");jd(k,e);k.onload=function(){b.feedbackV2GlobalObject?f(b.feedbackV2GlobalObject):
h(Error("me"))};k.onerror=function(){h(Error("ne`"+e.toString()))};c.body.appendChild(k)})},k4a=function(a,b,c,d,e){e=e===void 0?!0:e;var f,h,k,q,v;return z(function(A){switch(A.nextAddress){case 1:return f=Date.now(),B(A,g4a(a,c,d,b),2);case 2:h=A.yieldResult;if(!(e||((q=a.initializationData)==null?0:q.useNightlyRelease)||((v=a.initializationData)==null?0:v.isLocalServer))){k=h.initializeFeedbackClient(a,f,b);A.jumpTo(3);break}return B(A,h.initializeFeedbackClientAsync(a,f,b),4);case 4:k=A.yieldResult;
case 3:return k.initiateAloha(),A.return(k)}})},l4a=function(a,b,c,d){var e,f,h;return z(function(k){if(k.nextAddress==1)return e=Date.now(),B(k,j4a(a,c,d.document,b),2);if(k.nextAddress!=3)return f=k.yieldResult,B(k,f.initializeFeedbackClientAsync(a,e,b,d),3);h=k.yieldResult;h.initiateAloha();return k.return(h)})},m4a=function(a,b,c){var d=!0;d=d===void 0?!0:d;var e,f,h,k,q,v,A,E,H,L;return z(function(O){e=c||ea;if((f=b)==null?0:(k=(h=f).getEnableAlohaBinarySplit)==null?0:k.call(h)){q=e;if(q.isFormOpened)throw v=
Error("oe"),v.name="DuplicateFormError",v;q.isFormOpened=!0;a.callbacks=a.callbacks||{};A=a.callbacks.onClose||function(){};a.callbacks.onClose=function(S){q.isFormOpened=!1;A(S)};try{return O.return(l4a(a,b,q,e))}catch(S){throw q.isFormOpened=!1,S;}}else{E=e;if(E.isFormOpened)throw H=Error("oe"),H.name="DuplicateFormError",H;E.isFormOpened=!0;a.callbacks=a.callbacks||{};L=a.callbacks.onClose||function(){};a.callbacks.onClose=function(S){E.isFormOpened=!1;L(S)};try{return O.return(k4a(a,b,E,e.document,
d))}catch(S){throw E.isFormOpened=!1,S;}}Lf(O)})},r4a=function(a,b){return z(function(c){return c.return(new Promise(function(d){var e=n4a(b!=null?b:"")+"/aloha_form_properties?productId="+a;o4a(e,function(f){f=f.target;var h=null;try{h=Lda(p4a,JSON.stringify(f.getResponseJson(")]}'\n")))}catch(k){f=new p4a,h=q4a(),h=pm(h,13,!1),h=pm(h,14,!0),h=pm(h,15,!0),h=pm(h,20,!1),h=X(f,kr,1,h)}d(h)},"GET","",{},2E3,!0)}))})},n4a=function(a){return $3a(a)?a:"https://www.google.com/tools/feedback"},s4a=function(a){return a.toLocaleString("en-US",
{timeZone:"America/Los_Angeles"})+" (US Pacific time)"},t4a=function(a){a&1&&(J(0,"button",6,1),M(2,"mat-icon",7),K());if(a&2){a=P();var b=Q(2);vh(a.buttonSize);I("matTooltip",a.buttonLabel)("matMenuTriggerFor",b);Lg("aria-label",a.buttonLabel);x(2);I("svgIcon",a.buttonIcon)}},u4a=function(a){a&1&&(J(0,"div",5),R(1),K());a&2&&(a=P(),x(),wh(a.header))},v4a=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P(2).$implicit,I("svgIcon",a.icon))},w4a=function(a){a&1&&(J(0,"span",9),R(1),K());a&2&&(a=P(2).$implicit,
x(),wh(a.hintText))},x4a=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P(2).$implicit,I("svgIcon",a.icon))},y4a=function(a){a&1&&(J(0,"span",9),R(1),K());a&2&&(a=P(2).$implicit,x(),wh(a.hintText))},z4a=function(a){if(a&1){var b=t();J(0,"button",12);N("click",function(d){u(b);var e=P().$implicit,f=P(3);return w(f.onAction(d,e))})("mouseup",function(d){u(b);var e=P().$implicit,f=P(3);return w(f.onAction(d,e))});F(1,x4a,1,1,"mat-icon",7);R(2);F(3,y4a,2,1,"span",9);K()}if(a&2){a=P().$implicit;var c=P(2).$implicit;
vh(c.className);I("disabled",a.disabled);Lg("title",a.title);x();G(a.icon?1:-1);x();T(" ",a.label," ");x();G(a.hintText?3:-1)}},A4a=function(a){if(a&1){var b=t();J(0,"button",13);N("click",function(d){u(b);var e=P().$implicit,f=P(3);return w(f.onAction(d,e))})("mouseup",function(d){u(b);var e=P().$implicit,f=P(3);return w(f.onAction(d,e))});J(1,"span",14);M(2,"mat-icon",15);K();R(3);K()}if(a&2){a=P().$implicit;var c=P(2).$implicit;vh(c.className);uh("b-menu-item-checked",a.selected);I("disabled",
a.disabled);Lg("title",a.title);x(3);T(" ",a.label," ")}},B4a=function(a,b){a&1&&(F(0,z4a,4,7,"button",10),F(1,A4a,4,7,"button",11));a&2&&(a=b.$implicit,G(a.type==="action"?0:-1),x(),G(a.type==="select"?1:-1))},C4a=function(a){a&1&&(J(0,"button",8),F(1,v4a,1,1,"mat-icon",7),R(2),F(3,w4a,2,1,"span",9),K(),J(4,"mat-menu",null,2),Pg(6,B4a,2,2,null,null,Ng),K());if(a&2){a=Q(5);var b=P().$implicit;I("matMenuTriggerFor",a);x();G(b.icon?1:-1);x();T(" ",b.label," ");x();G(b.hintText?3:-1);x(3);Qg(b.items)}},
D4a=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P(3).$implicit,I("svgIcon",a.icon))},E4a=function(a){a&1&&(J(0,"span",9),R(1),K());a&2&&(a=P(3).$implicit,x(),wh(a.hintText))},F4a=function(a){if(a&1){var b=t();J(0,"button",12);N("click",function(c){u(b);var d=P(2).$implicit,e=P();return w(e.onAction(c,d))})("mouseup",function(c){u(b);var d=P(2).$implicit,e=P();return w(e.onAction(c,d))});F(1,D4a,1,1,"mat-icon",7);R(2);F(3,E4a,2,1,"span",9);K()}a&2&&(a=P(2).$implicit,vh(a.className),I("disabled",a.disabled),
Lg("title",a.title),x(),G(a.icon?1:-1),x(),T(" ",a.label," "),x(),G(a.hintText?3:-1))},G4a=function(a){if(a&1){var b=t();J(0,"button",13);N("click",function(c){u(b);var d=P(2).$implicit,e=P();return w(e.onAction(c,d))})("mouseup",function(c){u(b);var d=P(2).$implicit,e=P();return w(e.onAction(c,d))});J(1,"span",14);M(2,"mat-icon",15);K();R(3);K()}a&2&&(a=P(2).$implicit,vh(a.className),uh("b-menu-item-checked",a.selected),I("disabled",a.disabled),Lg("title",a.title)("aria-label",a.label+" results per page"),
x(3),T(" ",a.label," "))},H4a=function(a){a&1&&(F(0,F4a,4,7,"button",10),F(1,G4a,4,8,"button",11));a&2&&(a=P().$implicit,G(a.type==="action"?0:-1),x(),G(a.type==="select"?1:-1))},I4a=function(a,b){a&1&&(F(0,C4a,8,4),F(1,H4a,2,2));a&2&&(a=b.$implicit,G(a.type==="submenu"?0:-1),x(),G(a.type!=="submenu"?1:-1))},J4a=function(a){var b=a.userIsExternal;a=a.issueIsExternal;return b&&a},K4a=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},L4a=function(a,b){a&1&&(J(0,"div",17)(1,"h4",34),R(2,"Summary"),K(),J(3,"p",35),R(4),K()());a&2&&(x(4),wh(b))},M4a=function(a){if(a&1){var b=t();J(0,"th",36)(1,"mat-checkbox",37);U(2,"async");U(3,"async");N("change",function(c){u(b);var d=P();return w(d.toggleAll(c))});K()()}a&2&&(a=P(),x(),I("checked",V(2,2,a.areAllChecked$))("indeterminate",!V(3,4,a.areAllChecked$)&&a.checkedIssueIds.size>
0))},N4a=function(a,b){if(a&1){var c=t();J(0,"td",38)(1,"mat-checkbox",39);U(2,"async");N("change",function(d){var e=u(c).$implicit,f=P(),h;((h=d==null?void 0:d.checked)!=null?h:!f.checkedIssueIds.has(e.id))?f.checkedIssueIds.add(e.id):f.checkedIssueIds.delete(e.id);return w()});K()()}a&2&&(a=b.$implicit,b=P(),x(),I("checked",V(2,1,Qq(b.checkedIssueIds,a.id))))},O4a=function(a){a&1&&(J(0,"th",36),R(1," Title "),K())},P4a=function(a,b){a&1&&(J(0,"td",38),M(1,"b-issue-title-cell",40),U(2,"async"),K());
a&2&&(a=b.$implicit,x(),I("issue",V(2,2,a.issue$))("enableHovercard",!0))},Q4a=function(a){a&1&&(J(0,"th",36),R(1," Phase "),K())},R4a=function(a){a&1&&(J(0,"span",41),R(1),K());if(a&2){a=P();P(2);x();var b;b=((b=a.snapshot[0])==null?void 0:b.status)==="DUPLICATE"?"Duplicate":(b=El(a))?lr.get(b):"";wh(b)}},S4a=function(a){a&1&&F(0,R4a,2,1,"span",41);a&2&&(P(2),G(0))},T4a=function(a,b){a&1&&(J(0,"td",38),F(1,S4a,1,1),U(2,"async"),K());if(a&2){var c;a=b.$implicit;x();G((c=V(2,1,a.issue$))?1:-1,c)}},
U4a=function(a){a&1&&(J(0,"th",42),R(1," Modified "),K())},V4a=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)}},W4a=function(a){a&1&&F(0,V4a,1,3,"b-formatted-date-time",44);a&2&&(P(2),G(0))},X4a=function(a,b){a&1&&(J(0,"td",43),F(1,W4a,1,1),U(2,"async"),K());if(a&2){var c;a=b.$implicit;x();G((c=V(2,1,a.issue$))?1:-1,c)}},Y4a=function(a){a&
1&&M(0,"th",36)},Z4a=function(a,b){if(a&1){var c=t();J(0,"td",38)(1,"b-actions-menu",45);N("click",function(d){u(c);return w(d.stopPropagation())});K()()}a&2&&(a=b.$implicit,b=P(),x(),I("menuItems",b.getMenuItems(a)))},$4a=function(a){a&1&&M(0,"tr",46)},a5a=function(a,b){a&1&&(M(0,"tr",47),U(1,"async"));a&2&&(a=b.$implicit,b=P(),uh("closed",b.isClosed(V(1,2,a.issue$))))},b5a=function(a,b){a&1&&(J(0,"a",32),R(1," View as search results "),K());a&2&&I("routerLink",b.path)("queryParams",b.params)},c5a=
function(a){if(a&1){var b=t();J(0,"secondary-footer",49);N("cancelAction",function(){u(b);var c=P(2);return w(c.cancelAction())})("finalizeAction",function(c){u(b);var d=P(2);return w(d.finalizeSecondaryAction(c))});K()}a&2&&(a=P(2),I("selectedTriageAction",a.selectedTriageAction))},d5a=function(a){if(a&1){var b=t();J(0,"triage-action-selector",50);N("onSelect",function(d){u(b);var e=P(2);return w(e.openSecondaryActionFooter(d.key))});K();J(1,"button",51);U(2,"async");U(3,"async");N("click",function(){u(b);
var d=P(2);return w(d.openDupeDialog())});$g(4);U(5,"async");R(6);K()}if(a&2){a=P();var c=P();I("phase",a);x();I("disabled",!V(2,3,c.hasAclToEdit$)||!V(3,5,c.checkedIssueIds.size$));a=V(5,7,c.checkedIssueIds.size$)||0;x(5);T(" Mark ",a===1?"1 issue":a>1?a+" issues":""," as duplicate ")}},e5a=function(a){a&1&&F(0,c5a,1,1,"secondary-footer",48)(1,d5a,7,9);a&2&&(a=P(),G(a.displaySecondaryFooter?0:1))},f5a=function(a){a&1&&(J(0,"div",5),M(1,"b-spinner"),K())},g5a=function(a){a&1&&M(0,"code",16);a&2&&
(a=P(2).$implicit,P(2),I("innerHtml",hd(a.formattingModeDiff),gf))},h5a=function(a){a&1&&(J(0,"code",17),R(1),K());a&2&&(a=P(2).$implicit,x(),T(" ",a.formattingMode," "))},i5a=function(a){a&1&&(J(0,"p",15),R(1," Formatting: "),F(2,g5a,1,1,"code",16)(3,h5a,2,1,"code",17),K());a&2&&(a=P(3),x(2),G(a.diffView?2:3))},j5a=function(a){if(a&1){var b=t();J(0,"div")(1,"span",18)(2,"b-person-hovercard",19);U(3,"omitObfuscatedEmail");R(4);U(5,"appendDomain");K()();J(6,"a",20);N("click",function(c){u(b);var d=
P().$implicit,e=P(2);d=d.version;c.stopPropagation();c=Fq(e.issueId)+("#comment"+e.commentNumber+"version"+d);e.location.replaceState(c);return w()});R(7);K()()}a&2&&(a=P().$implicit,P(2),x(2),I("email",V(3,7,zj(a.lastEditorUser))),x(2),T(" <",V(5,9,zj(a.lastEditorUser)),"> "),x(2),Lg("aria-label",Dh("Comment version ",a.version)),I("id",Dh("bv2-edit-issue-comment-",a.version)),x(),T(" #",a.version))},k5a=function(a){a&1&&(J(0,"div",21),R(1),K());a&2&&(a=P(2).$implicit,x(),wh(a.preview))},l5a=function(a){a&
1&&(J(0,"div",22),R(1,"Comment deleted."),K())},m5a=function(a){a&1&&(J(0,"div",23),R(1,"Comment history restricted."),K())},n5a=function(a){a&1&&(F(0,k5a,2,1,"div",21),F(1,l5a,2,0,"div",22),F(2,m5a,2,0,"div",23));a&2&&(a=P().$implicit,G(a.restricted||a.deleted?-1:0),x(),G(!a.restricted&&a.deleted?1:-1),x(),G(a.restricted?2:-1))},o5a=function(a){a&1&&(J(0,"div",24),R(1,"Comment deleted."),K())},p5a=function(a){a&1&&(M(0,"div",26),U(1,"async"));if(a&2){a=P(2).$implicit;var b=P(2);uh("codefont",V(1,
3,b.codefont.codefont$));I("innerHtml",a.unlinkifiedComment,gf)}},q5a=function(a){a&1&&(M(0,"div",26),U(1,"async"));if(a&2){a=P(2).$implicit;var b=P(2);uh("codefont",V(1,3,b.codefont.codefont$));I("innerHtml",hd(a.diff),gf)}},r5a=function(a){a&1&&(J(0,"div",23),R(1," This comment is not available due to present or past restrictions on the comment. "),K())},s5a=function(a){a&1&&(F(0,o5a,2,0,"div",24),F(1,p5a,2,5,"div",25),F(2,q5a,2,5,"div",25),F(3,r5a,2,0,"div",23));if(a&2){a=P().$implicit;var b=P(2);
G(!a.restricted&&a.deleted?0:-1);x();G(b.diffView||a.restricted||a.deleted?-1:1);x();G(!b.diffView||a.restricted||a.deleted?-1:2);x();G(a.restricted?3:-1)}},t5a=function(a,b){if(a&1){var c=t();J(0,"li",9)(1,"div",10);M(2,"b-user-image",11);K();J(3,"div",12);N("click",function(){var d=u(c).$implicit;return w(d.open=!d.open)});M(4,"b-user-display",13)(5,"b-formatted-date-time",14);F(6,i5a,4,1,"p",15);F(7,j5a,8,11,"div")(8,n5a,3,3);K();F(9,s5a,4,4);K()}a&2&&(a=b.$implicit,P(2),uh("comment-version-open",
a.open),x(2),I("email",zj(a.lastEditorUser)),x(2),I("model",a.lastEditorUser),x(),I("timestamp",a.lastModified),x(),G(a.deleted?-1:6),x(),G(a.open?7:8),x(2),G(a.open?9:-1))},u5a=function(a){a&1&&(J(0,"ul",6),Pg(1,t5a,10,8,"li",8,Ng),K());a&2&&(a=P(),x(),Qg(a.history))},x5a=function(a,b){var c=new v5a;a=mr(c,a,b);w5a(c,a);c=a.map(function(d){var e=d[0];d=d[1];switch(e){case -1:return $i("span",{"class":"diff-removed"},d);case 1:return $i("span",{"class":"diff-added"},d);case 0:return $i("span",{"class":void 0},
d);default:throw Error("qe`"+e);}});return Yi(c)},y5a=function(a){var b;return((b=a.entityStatus)==null?void 0:b.status)==="DELETED"},z5a=function(a){a&1&&(J(0,"div",2),R(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. "),J(2,"a",12),R(3," Learn more "),K()());a&2&&(a=P(2),x(2),I("href",a.getRestrictedAccessHelpLink(),hf))},B5a=function(a){a&1&&(Wg(0),F(1,z5a,4,1,"div",2),Xg());a&2&&
(a=P(),x(),G(A5a(a)?1:-1))},C5a=function(a){a&1&&(J(0,"div",2)(1,"span",13),R(2," You do not have access to view this attachment. "),K()())},D5a=function(a){a&1&&M(0,"mat-spinner",8)},E5a=function(){this.blockSize=-1},nr=function(a,b){this.blockSize=-1;this.blockSize=64;this.chunk_=ea.Uint8Array?new Uint8Array(this.blockSize):Array(this.blockSize);this.total_=this.inChunk_=0;this.hash_=[];this.numHashBlocks_=a;this.initHashBlocks_=b;this.w_=ea.Int32Array?new Int32Array(64):Array(64);F5a===void 0&&
(ea.Int32Array?F5a=new Int32Array(G5a):F5a=G5a);this.reset()},I5a=function(){nr.call(this,8,H5a)},J5a=function(a,b){b=b===void 0?!0:b;var c;return z(function(d){if(d.nextAddress==1)if(b&&((c=window.crypto)==null?0:c.subtle))d=B(d,crypto.subtle.digest("SHA-256",a),3);else{var e=d.return;var f=new I5a;f.update(new Uint8Array(a));f=(new Uint8Array(f.digest())).buffer;d=e.call(d,f)}else d=d.return(d.yieldResult);return d})},N5a=function(a){var b=a.useSubtleCrypto===void 0?!0:a.useSubtleCrypto;var c=a.parts;
var d,e,f,h;return z(function(k){if(k.nextAddress==1){if(c.length===0)throw Error("ve");d=[];for(e=0;e<c.length;e++)f=c[e],typeof f==="string"?d.push(K5a.encode(f).buffer):d.push(f),e<c.length-1&&d.push(L5a);h=M5a.apply(null,p(d));return B(k,J5a(h,b),2)}return k.return(k.yieldResult)})},O5a=function(){var a=new Uint8Array(10);crypto.getRandomValues(a);return a},P5a=function(a){return a.reduce(function(b,c){return BigInt(256)*b+BigInt(c)},BigInt(0)).toString(36)},M5a=function(){for(var a=ge.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},Q5a=function(a){var b=a.product;var c=a.trustedOrigin;var d=a.salt;var e=a.useSubtleCrypto===void 0?!0:a.useSubtleCrypto;var f,h,k;return z(function(q){if(q.nextAddress==1)return f=d?d:new ArrayBuffer(0),B(q,N5a({useSubtleCrypto:e,parts:[b,f,c]}),2);h=q.yieldResult;k=new Uint8Array(h);return q.return(P5a(k).padStart(50,
"0").slice(0,50))})},R5a=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},S5a=function(){var a=window.origin;return typeof a==="string"&&(a.startsWith("https://")||a.startsWith("http://")||a.startsWith("chrome-extension://"))},T5a=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P(),uh("muted",a.isGreyedOut),
x(),T(" ",a.displayName))},U5a=function(a){if(a&1){var b=t();J(0,"a",2);N("click",function(c){u(b);var d=P();return w(d.handleClick(c))});R(1);K()}a&2&&(a=P(),I("href",a.linkUrl,hf)("rel",a.EXTERNAL_LINK_REL),x(),T(" ",a.displayName))},V5a=function(a){a&1&&(J(0,"span",3),R(1),K());a&2&&(a=P(),Lg("aria-label",a.expandableTabsTitle),x(),wh(a.expandableTabsTitle))},W5a=function(a){a&1&&M(0,"mat-icon",8)},Y5a=function(a){a&1&&Yg(0,9);if(a&2){a=P().$implicit;P();var b=Q(13);I("ngTemplateOutlet",b)("ngTemplateOutletContext",
Hh(2,X5a,a))}},Z5a=function(){},$5a=function(a){a&1&&D(0,Z5a,0,0,"ng-template")},a6a=function(a){a&1&&D(0,$5a,1,0,null,10);a&2&&(a=P(2).$implicit,I("ngTemplateOutlet",a.tabIconTemplate))},b6a=function(a){a&1&&(F(0,a6a,1,1),Yg(1,9));if(a&2){a=P().$implicit;var b=P(),c=Q(13);G(b.showIcons&&a.tabIconTemplate?0:-1);x();I("ngTemplateOutlet",c)("ngTemplateOutletContext",Hh(3,X5a,a))}},d6a=function(a,b){if(a&1){var c=t();J(0,"button",7);U(1,"async");U(2,"async");U(3,"async");N("click",function(){var d=u(c).$implicit,
e=P();return w(c6a(e,d.key))});F(4,W5a,1,0,"mat-icon",8);U(5,"async");F(6,Y5a,1,4,"ng-container",9);U(7,"async");Mg(8,b6a,2,5);K()}a&2&&(a=b.$implicit,b=P(),uh("expanded",!!V(1,9,Qq(b.internalExpandedTabs,a.key))),Lg("aria-controls",Dh("expandable-tabs-",a.key,"-content"))("aria-label",a.ariaLabel)("aria-expanded",!!V(2,11,Qq(b.internalExpandedTabs,a.key)))("aria-selected",!!V(3,13,Qq(b.internalExpandedTabs,a.key))),x(4),G(b.showIcons&&V(5,15,Qq(b.internalExpandedTabs,a.key))?4:-1),x(2),G(V(7,17,
Qq(b.internalExpandedTabs,a.key))?6:8))},e6a=function(a,b){if(a&1){var c=t();J(0,"button",12);N("click",function(){u(c);var d=P(2);return w(d.toggleAll())});R(1);K()}a&2&&(a=P(2),uh("expandable-tabs-hide-all",b.allTabsExpanded)("expandable-tabs-show-all",!b.allTabsExpanded),Lg("aria-label",(b.allTabsExpanded?"Hide all":"Show all")+" "+a.ariaLabel),x(),T(" ",b.allTabsExpanded?"Hide all":"Show all"," "))},g6a=function(a){a&1&&(F(0,e6a,2,6,"button",11),U(1,"async"));if(a&2){var b;a=P();G((b=Hh(3,f6a,
V(1,1,a.allTabsExpanded$)))?0:-1,b)}},h6a=function(a){if(a&1){var b=t();J(0,"button",13);N("click",function(){u(b);var c=P();return w(c.hideAll())});R(1," Hide ");K();J(2,"button",14);N("click",function(){u(b);P().showAllClicked.emit(void 0);return w()});R(3," Show all ");M(4,"mat-icon",15);K()}a&2&&(a=P(),Lg("aria-label","Hide "+a.ariaLabel),x(2),Lg("aria-label","Show all "+a.ariaLabel))},i6a=function(){},j6a=function(a){a&1&&D(0,i6a,0,0,"ng-template")},k6a=function(a){a&1&&D(0,j6a,1,0,null,10);
a&2&&(a=P(3).$implicit,I("ngTemplateOutlet",a.tabIconTemplate))},l6a=function(a){a&1&&(J(0,"h4"),F(1,k6a,1,1),Yg(2,9),K());if(a&2){a=P(2).$implicit;var b=P(),c=Q(13);x();G(b.showIcons&&a.tabIconTemplate?1:-1);x();I("ngTemplateOutlet",c)("ngTemplateOutletContext",Hh(3,X5a,a))}},m6a=function(a){a&1&&M(0,"span",18)},n6a=function(a){a&1&&M(0,"span",18)},o6a=function(){},p6a=function(a){a&1&&D(0,o6a,0,0,"ng-template")},q6a=function(a){a&1&&D(0,p6a,1,0,null,10);a&2&&(a=P(2).$implicit,I("ngTemplateOutlet",
a.tabContentTemplate))},s6a=function(a){a&1&&(J(0,"div",17),F(1,l6a,3,5,"h4"),U(2,"async"),Mg(3,m6a,1,0,"span",18),D(4,n6a,1,0,"ng-template",null,1,Lh),F(6,q6a,1,1),K());if(a&2){a=P().$implicit;var b=P();vh(Dh("expandable-tab-content ",a.key));I("id",Dh("expandable-tabs-",a.key,"-content"));x();var c;G(((c=V(2,7,b.visibleExpandedTabs$))!=null?c:Gh(9,r6a)).length>1?1:3);x(5);G(a.tabContentTemplate?6:-1)}},t6a=function(a,b){a&1&&(F(0,s6a,7,10,"div",16),U(1,"async"));a&2&&(a=b.$implicit,b=P(),G(V(1,
1,Qq(b.internalExpandedTabs,a.key))?0:-1))},u6a=function(){},v6a=function(a){a&1&&D(0,u6a,0,0,"ng-template")},w6a=function(a){a&1&&D(0,v6a,1,0,null,10);a&2&&(a=P().tab,I("ngTemplateOutlet",a.tabHeaderTemplate))},x6a=function(a){a&1&&R(0);a&2&&(a=P().tab,T(" ",a.key," "))},y6a=function(a,b){a&1&&F(0,w6a,1,1)(1,x6a,1,1);a&2&&G(b.tab.tabHeaderTemplate?0:1)},z6a=function(a){a&1&&(J(0,"mat-icon",9),R(1),K());a&2&&(a=P(2),x(),wh(a.actionBtnIcon))},A6a=function(a){if(a&1){var b=t();J(0,"button",6);N("click",
function(){u(b);var c=P();return w(c.action.emit())});J(1,"span",7);R(2);D(3,z6a,2,1,"mat-icon",8);K()()}a&2&&(a=P(),x(2),T(" ",a.actionBtnText," "),x(),I("ngIf",a.actionBtnIcon))},B6a=function(a){if(a&1){var b=t();J(0,"onedev-feature-tooltip-body",1);N("action",function(){u(b);var c=P();return w(c.action.emit())})("dismiss",function(){u(b);var c=P();c.hideFeatureTooltip();c.dismiss.emit();return w()});dh(1);K()}a&2&&(a=P(),I("actionBtnText",a.actionBtnText)("actionBtnIcon",a.actionBtnIcon)("color",
a.color)("pointerPosition",a.pointerPosition)("widthOffset",a.widthOffset))},D6a=function(a){a&1&&(J(0,"onedev-feature-tooltip-controller")(1,"onedev-feature-tooltip",4)(2,"p",5),R(3,"Attachment analysis"),K(),R(4," See agent-generated attachment analysis alongside your files. "),K()());a&2&&(a=P(),x(),I("customPositions",Ih(2,C6a,a.TOOLTIP_POSITIONS.BOTTOM_LEFT,a.TOOLTIP_POSITIONS.TOP_LEFT))("tooltipId",a.ATTACHMENT_ENRICHMENTS_FEATURE_TOOLTIP_ID))},F6a=function(a){a&1&&(R(0),U(1,"async"));if(a&
2){a=P().$implicit;var b=P(),c;T(" ",(c=a.customDisplayName)!=null?c:V(1,1,E6a(b,a.category))," ")}},G6a=function(a){a&1&&(J(0,"span",25),M(1,"b-actions-menu",28),K());a&2&&(P(),a=bh(25),x(),I("menuItems",a)("buttonLabel","Enrichment actions")("matTooltip","Enrichment actions"))},H6a=function(a){a&1&&M(0,"b-spinner")},I6a=function(a){a&1&&M(0,"b-markdown-format-presenter",29);a&2&&(P(2),a=bh(30),I("content",a.formattedContent.markdownFormat))},J6a=function(a){a&1&&M(0,"b-literal-format-presenter",
29);a&2&&(P(2),a=bh(30),I("content",a.formattedContent.literalFormat))},K6a=function(a){a&1&&M(0,"b-plain-format-presenter",29);a&2&&(P(2),a=bh(30),I("content",a.formattedContent.plainFormat))},L6a=function(a){a&1&&(F(0,I6a,1,1,"b-markdown-format-presenter",29),F(1,J6a,1,1,"b-literal-format-presenter",29),F(2,K6a,1,1,"b-plain-format-presenter",29));a&2&&(P(),a=bh(30),G(a.formattedContent.markdownFormat?0:-1),x(),G(a.formattedContent.literalFormat?1:-1),x(),G(a.formattedContent.plainFormat?2:-1))},
N6a=function(a){if(a&1){var b=t();J(0,"table",8)(1,"tr",9)(2,"td",10);M(3,"b-user-display",11)(4,"mat-icon",12);J(5,"onedev-hovercard",null,0)(7,"div",13)(8,"div",14)(9,"span",15);R(10);U(11,"async");M(12,"br")(13,"br");R(14);U(15,"async");K()()()()();J(16,"td",16)(17,"span",17);M(18,"b-formatted-date-time",18);K();J(19,"button",19);N("click",function(){u(b);var e=P().$implicit,f=P();return w(f.copyContent(e))});M(20,"mat-icon",20);K();J(21,"button",21);N("click",function(){u(b);var e=P().$implicit,
f=P();return w(f.trackThumbsUp(e))});M(22,"mat-icon",22);K();J(23,"button",23);N("click",function(){u(b);var e=P().$implicit,f=P();return w(f.trackThumbsDown(e))});M(24,"mat-icon",24);K();$g(25);F(26,G6a,2,3,"span",25);K()();J(27,"tr",26)(28,"td",27);F(29,H6a,1,0,"b-spinner");$g(30);F(31,L6a,3,3);K()()()}if(a&2){var c=Q(6);a=P().$implicit;var d=P();x(3);I("model",a.author);x();I("onedevHovercardTrigger",c)("onedevHovercardActive",!0)("onedevHovercardConfig",d.CATEGORY_INFO_HOVERCARD_CONFIG);x(6);
T(" ",V(11,16,E6a(d,a.category))," ");x(4);T(" ",V(15,18,M6a(d,a.category))," ");x(4);I("timestamp",a.timestamp);x(3);I("disabled",d.hasReacted(a));x();uh("has-reacted-icon",d.thumbsUpClicked(a));x();I("disabled",d.hasReacted(a));x();uh("has-reacted-icon",d.thumbsDownClicked(a));x();c=ah(d.categoryToActionMenuItems.get(a.category));x();G(c&&c.length>0?26:-1);x(3);G(d.isLoading(a.category)?29:-1);x();c=ah(d.enrichmentCategoryToContent.get(a.category));x();G(c&&!d.isLoading(a.category)?31:-1)}},O6a=
function(a,b){a&1&&(J(0,"expandable-tab",3),D(1,F6a,2,3,"ng-template",6)(2,N6a,32,22,"ng-template",7),K());a&2&&(a=b.$implicit,b=P(),I("key",a.category),Kg("ariaLabel","Toggle "+a.category+" attachment enrichment category for attachment id "+b.attachmentId))},P6a=function(a){return a.issueId+"_"+a.attachmentId+"_"+a.category},S6a=function(a){a&1&&(J(0,"span"),R(1),J(2,"b"),R(3),K(),R(4," on "),J(5,"b"),R(6),U(7,"date"),K(),R(8,". "),K());a&2&&(a=P(4),x(),T(" Currently, the ",a.contentType," is scheduled for deletion in "),
x(2),wh(Q6a(R6a(a).getTime(),!0)),x(3),wh(Kh(7,3,R6a(a),"longDate")))},T6a=function(a){a&1&&(R(0," The retention has "),J(1,"b"),R(2,"expired"),K(),R(3),J(4,"b"),R(5),U(6,"date"),K(),R(7,". "));a&2&&(a=P(4),x(3),T(" and the ",a.contentType," was scheduled for deletion on "),x(2),wh(Kh(6,2,R6a(a),"longDate")))},U6a=function(a){a&1&&(J(0,"span")(1,"b"),R(2,"Retention:"),K(),R(3),J(4,"b"),R(5),K(),R(6," from the last modification of the issue. "),F(7,S6a,9,6,"span")(8,T6a,8,5),K());a&2&&(a=P(3),x(3),
T(" This ",a.contentType," has a retention period of "),x(2),wh(a.getRetentionPeriod()),x(2),G(R6a(a).getTime()<(new jj).getTime()?8:7))},V6a=function(a){a&1&&(J(0,"b"),R(1,"Retention:"),K(),R(2));a&2&&(a=P(3),x(2),T(" This ",a.contentType," has an indefinite retention period. "))},W6a=function(a){a&1&&(R(0),J(1,"b"),R(2,"overridden"),K(),R(3," retention period set to match the issue retention period. "));a&2&&(a=P(3),T(" The ",a.contentType," has an "))},X6a=function(a){a&1&&(J(0,"p"),F(1,U6a,9,
3,"span")(2,V6a,3,1),F(3,W6a,4,1),K());a&2&&(a=P(2),x(),G(a.retentionState&&!a.retentionState.scheduledDeletionTime?2:1),x(2),G(a.retention===a.retentionModel.INDEFINITE?3:-1))},Y6a=function(a){a&1&&(J(0,"div",5)(1,"p")(2,"b"),R(3,"Restricted Access:"),K(),R(4),J(5,"a",6),R(6," Learn More "),K()(),F(7,X6a,4,2,"p"),K());a&2&&(a=P(),x(4),T(" This ",a.contentType," is only available to users with the appropriate permissions. "),x(),I("rel",a.EXTERNAL_LINK_REL),Lg("href",a.documentationLinks.getRestrictedAccessHelpLink(),
hf),x(2),G(a.retentionState?7:-1))},Z6a=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)})},a7a=function(a){var b=jr(document,"IFRAME");if(!b.sandbox)throw Error("Ee");b.sandbox.value="allow-scripts";b.sandbox.supports&&b.sandbox.add&&b.sandbox.supports("allow-downloads")&&b.sandbox.add("allow-downloads");if($6a==""){var c=$da('<!DOCTYPE html><body><input type="hidden" id="nonce" value="'+
Xi(a)+'" /><script nonce="'+Xi(Yda(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=Xc("data:text/html;charset=UTF-8;base64,"+btoa(c.toString()));b.srcdoc=hd(c)}else{c=new Map([["nonce",a]]);var d=Yc($6a).toString();var e=d.split(/[?#]/),f=/[?]/.test(d)?"?"+e[1]:"";a=e[0];d=/[#]/.test(d)?"#"+(f?e[2]:e[1]):"";a=Cra(a,f,d,c)}Xda(b,a);b.style.cssText="border: 0; height: 0; left: 0; position: absolute; top: 0; width: 0;";b.setAttribute("aria-hidden","true");return b},b7a=function(){return new Promise(function(a){setTimeout(a,500)})},c7a=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"))},d7a=function(a){a&1&&(J(0,"span",7),M(1,"b-actions-menu",13),K());a&2&&(a=P(),x(),I("menuItems",a.actionMenuItems)("buttonLabel","Attachment actions")("matTooltip","Attachment actions"))},g7a=function(a){if(a&1){var b=t();J(0,"span")(1,"b-conditional-link",14);N("customHandler",function(){u(b);var c=P();return w(c.viewAttachment())});K()()}a&2&&(a=P(),
vh(Dh("bv2-issue-attachment-link ",e7a(a))),x(),I("isGreyedOut",!a.hasViewAccess)("displayName","View")("linkUrl",f7a(a,!1))("linkEnabled",!0)("useCustomHandler",!0))},i7a=function(a){if(a&1){var b=t();J(0,"span")(1,"b-conditional-link",14);N("customHandler",function(){u(b);var c=P();return w(h7a(c))});K()();J(2,"span",15)(3,"button",16);N("click",function(){u(b);var c=P(),d;if((d=c.attachment)==null||!d.attachmentId)throw Error("Fe");d=or(c.trackerHelpers,c.issueId)+"#attachment"+c.attachment.attachmentId;
c.clipboard.copy(d);c.snackBar.open("Link to attachment copied to clipboard","",{duration:2E3});return w()});M(4,"b-icon",17);K()()}a&2&&(a=P(),vh(Dh("bv2-issue-attachment-link ",e7a(a))),x(),I("isGreyedOut",!a.hasViewAccess)("displayName","Download")("linkUrl",f7a(a,!0))("linkEnabled",!0)("useCustomHandler",!0))},j7a=function(a){a&1&&(J(0,"span",11)(1,"a",18),M(2,"mat-icon",19),K()());a&2&&(a=P(),x(),I("href",a.documentationLinks.getRestrictedAccessHelpLink(),hf)("disableRipple",!0),x(),I("svgIcon",
"help-outline"))},k7a=function(a){a&1&&(J(0,"div",20),R(1," You do not have access to this restricted attachment. "),J(2,"a",21),R(3,"Learn more"),K()());a&2&&(a=P(),x(2),I("href",a.documentationLinks.getRestrictedAccessHelpLink(),hf))},l7a=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))},m7a=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)}},n7a=function(a,b){a&1&&F(0,m7a,1,3,"b-attachment-enrichments",22);a&2&&(a=P(),b=a.isActive()&&a.hasViewAccess&&b&&b.length>0,G(b?0:-1))},q7a=function(a){return{eligibilityState:o7a[pk(a,1,void 0,Nc)],runMetadata:tk(a,pr,2,Nc)?p7a(W(a,pr,2,Nc)):void 0}},p7a=function(a){return{runId:Rc(a,1,void 0,Nc),issueId:String(a.getIssueId()),startTimestamp:ak(W(a,bk,3,Nc))}},v7a=
function(a){var b=a.hasMetadata()?p7a(a.getMetadata()):void 0;if(a.hasResults()){a=a.getResults();if(a.hasSummary()){var c=a.getSummary();c={problemIdentificationSection:tk(c,qr,1,Nc)?r7a(W(c,qr,1,Nc)):void 0,solutionSection:tk(c,qr,2,Nc)?r7a(W(c,qr,2,Nc)):void 0,codeChangeSection:tk(c,qr,3,Nc)?r7a(W(c,qr,3,Nc)):void 0}}else c=void 0;if(tk(a,s7a,2,Nc)){var d=W(a,s7a,2,Nc);var e=Rc(d,1,void 0,Nc);d=Sj(d,rr,2,Bj(),Nc);e={prompt:e,steps:d.map(t7a)}}else e=void 0;tk(a,u7a,3,Nc)?(d=W(a,u7a,3,Nc),d={buildInvocationId:Rc(d,
1,void 0,Nc),testSpongeInvocationId:Rc(d,2,void 0,Nc)}):d=void 0;a={summary:c,trajectory:e,validation:d,oclNumber:wk(a,4,Nc)?String(xk(a,4,void 0,Nc)):void 0}}else a=void 0;return{metadata:b,results:a}},r7a=function(a){return{entries:[].concat(p(a.getEntriesList()))}},t7a=function(a){var b=a.getText();a=Sj(a,sr,2,Bj(),Nc);return{text:b,functionCalls:a.map(w7a)}},w7a=function(a){return{name:a.getName(),arguments:Object.fromEntries(tc(a,2,Wb,Nc).entries()),outputs:Object.fromEntries(tc(a,3,Wb,Nc).entries())}},
x7a=function(a,b){return Math.min(a,b)},y7a=function(a,b){return Math.pow(2,a)*b},z7a=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,h=a.backoffDelay===void 0?y7a:a.backoffDelay;return function(k){return Yf(function(){var q=0;
return k.pipe(wla(function(v){return v.pipe(jg(function(A){var E=q++;return Jka(function(){return E<c&&e(A)},bg(x7a(h(E,b),d)),Of(A))}))}),zg(function(){f&&(q=0)}))})}},B7a=function(a){return{issueId:Number(a.getIssueId()),responseId:a.getResponseId(),response:a.getResponse(),issueCategory:A7a[a.getIssueCategory()]}},C7a=function(a){return{issueId:Number(a.getIssueId()),issueCategory:A7a[a.getIssueCategory()]}},E7a=function(a,b){if(a&1){var c=t();J(0,"div",4)(1,"div",6);R(2);K();J(3,"div",7)(4,"button",
8);N("click",function(){u(c);var d=P(2);return w(d.openHelpMeFixSidebar())});R(5," View more suggestions ");K();J(6,"button",9);N("click",function(){u(c);var d=P(2);return w(D7a(d))});R(7," Dismiss ");K()()()}a&2&&(x(2),T(" ",b," "))},F7a=function(a){a&1&&M(0,"b-spinner",5)},G7a=function(a){a&1&&(J(0,"div",0)(1,"header",1),M(2,"mat-icon",2),J(3,"h4",3),R(4,"Help Me Fix"),K()(),F(5,E7a,8,1,"div",4),U(6,"async"),Mg(7,F7a,1,0,"b-spinner",5),K());if(a&2){var b;a=P();x(5);G((b=V(6,1,a.issueHelpMeFixResponseNoHeaders$))?
5:7,b)}},H7a=function(a){var b=RegExp("^#+ .*$"),c;return((c=a.split("\n"))!=null?c:[]).filter(function(d){return!b.test(d)}).join("\n")},I7a=function(a){if(a&1){var b=t();J(0,"button",1);N("click",function(){u(b);var c=P();return w(c.openHelpMeFixSidebar())});M(1,"mat-icon",2);R(2," Help me fix ");K()}},K7a=function(a){if(a&1){var b=t();J(0,"button",17,1);N("click",function(){u(b);var c=P(2);return w(J7a(c))});R(2," Edit ");K()}},L7a=function(a,b){a&1&&(M(0,"b-user-display",18),J(1,"onedev-hovercard",
null,2),M(3,"b-issue-person-card",19),U(4,"async"),K(),R(5," created issue "));if(a&2){a=Q(2);var c=P(2);I("onedevHovercardTrigger",a)("model",b);x(3);var d;I("email",(d=V(4,3,c.originalAuthorEmail$))!=null?d:"")}},M7a=function(a,b){a&1&&(R(0," on behalf of "),M(1,"b-user-display-name",20));a&2&&(x(),I("email",b)("showEmail",!1))},N7a=function(a){a&1&&(F(0,M7a,2,2),U(1,"async"));if(a&2){var b;a=P(2);G((b=V(1,1,a.onBehalfOfEmail$))?0:-1,b)}},O7a=function(a,b){if(a&1){var c=t();J(0,"a",21);N("click",
function(d){var e=u(c);P(2).issueReferenceResolver.visit({issueId:e,elementId:"comment1",event:d});return w()});R(1);K()}a&2&&(a=P(),P(),I("routerLinkObj",KOa(b,{comment:1})),Lg("aria-label","Comment number"+a.commentNumber),x(),T(" #",a.commentNumber))},P7a=function(a,b){a&1&&(R(0," by "),M(1,"b-user-display",18),J(2,"onedev-hovercard",null,3),M(4,"b-issue-person-card",19),K());if(a&2){a=Q(3);x();I("onedevHovercardTrigger",a)("model",b);x(3);var c;I("email",(c=b.emailAddress)!=null?c:"")}},Q7a=function(a){a&
1&&(J(0,"span",12),U(1,"async"),R(2," \u2022 Edited "),F(3,P7a,5,3),U(4,"async"),K());if(a&2){var b;a=P(2);I("matTooltip",V(1,2,a.editedTooltipText$));x(3);G((b=V(4,4,a.lastNonCreatorCommentEditorUser$))?3:-1,b)}},R7a=function(a){a&1&&(J(0,"p",16),R(1," Description has been deleted. "),K())},S7a=function(a){if(a&1){var b=t();J(0,"b-restricted-comment-placeholder",23);U(1,"async");N("onConfirm",function(){u(b);var c=P(),d=P(3),e=P();return w(e.loadRestrictedComment(c,d))});K()}a&2&&(a=P(5),I("disabled",
!V(1,1,a.mayReadPii$)))},T7a=function(a){a&1&&(F(0,S7a,2,3,"b-restricted-comment-placeholder",22),U(1,"async"));a&2&&(a=P(4),G(V(1,1,a.shouldShowRestrictedPlaceholder$)?0:-1))},U7a=function(a){a&1&&(F(0,T7a,2,3),U(1,"async"));if(a&2){var b;a=P(3);G((b=V(1,1,a.id$))?0:-1,b)}},V7a=function(a,b){a&1&&(M(0,"b-note-container",26),U(1,"async"),U(2,"async"));if(a&2){a=P();var c=P(4),d;I("issueId",a)("issueAccessLevel",V(1,5,c.accessLevel$))("note",b)("formattingMode",c.formattingMode)("canEditComment",(d=
V(2,7,c.canEditComment$))!=null?d:!1)}},W7a=function(a){a&1&&(F(0,V7a,3,9,"b-note-container",26),U(1,"async"),U(2,"async"));if(a&2){var b;a=P(4);G((b=V(1,1,a.hasDescription$)&&V(2,3,a.firstNote$))?0:-1,b)}},X7a=function(a){a&1&&R(0," Add one. ")},Y7a=function(a){a&1&&(J(0,"p",25),R(1," No description yet. "),F(2,X7a,1,0),U(3,"async"),K());a&2&&(a=P(4),x(2),G(V(3,1,a.canEditComment$)?2:-1))},Z7a=function(a){a&1&&(M(0,"help-me-fix-preview",24),U(1,"async"),F(2,W7a,3,5),U(3,"async"),F(4,Y7a,4,3,"p",
25),U(5,"async"));if(a&2){var b;a=P(3);I("issueId",V(1,3,a.id$));x(2);G((b=V(3,5,a.id$))?2:-1,b);x(2);G(V(5,7,a.hasDescription$)?-1:4)}},$7a=function(a){a&1&&(F(0,U7a,2,3),U(1,"async"),Mg(2,Z7a,6,9));a&2&&(a=P(2),G(V(1,1,a.isRedacted$)?0:2))},a8a=function(a,b){a&1&&(M(0,"b-attachment-viewer",29),U(1,"async"));if(a&2){a=P().$implicit;var c=P(4),d;I("issueId",b)("attachment",a)("attachmentUploader",(d=V(1,3,c.originalAuthorEmail$))!=null?d:"")}},b8a=function(a,b){a&1&&(J(0,"div",28),F(1,a8a,2,5,"b-attachment-viewer",
29),U(2,"async"),K());if(a&2){var c;a=b.$implicit;b=P(4);I("id",Dh("attachment",a.attachmentId));x();G((c=V(2,3,b.id$))?1:-1,c)}},c8a=function(a){a&1&&(J(0,"div",27),Pg(1,b8a,3,5,"div",28,Og),K());a&2&&(a=P(),x(),Qg(a))},d8a=function(a,b){a&1&&F(0,c8a,3,0,"div",27);a&2&&G(b.length?0:-1)},f8a=function(a,b){a&1&&(J(0,"div",4),M(1,"mat-icon",5),J(2,"div",6)(3,"div",7)(4,"div",8)(5,"h4",9),R(6,"Description"),K(),F(7,K7a,3,0,"button",10),U(8,"async"),F(9,L7a,6,5),U(10,"async"),F(11,N7a,2,3),U(12,"async"),
F(13,O7a,2,3,"a",11),U(14,"async"),F(15,Q7a,5,6,"span",12),U(16,"async"),K(),J(17,"div"),M(18,"help-me-fix-preview-button",13)(19,"b-formatted-date-time",14)(20,"b-actions-menu",15,0),U(22,"async"),K()(),F(23,R7a,2,0,"p",16),U(24,"async"),Mg(25,$7a,3,3),F(26,d8a,1,1),U(27,"async"),K()());if(a&2){var c,d,e;a=P();x(7);G(V(8,10,a.canEditComment$)?7:-1);x(2);G((c=V(10,12,a.originalAuthor$))?9:-1,c);x(2);G(V(12,14,a.isAuthorNotReporter$)?11:-1);x(2);G((d=b.commentNumber&&V(14,16,a.id$))?13:-1,d);x(2);
G(V(16,18,a.isShowCommentHistoryActionInMenu$)?15:-1);x(4);I("timestamp",b.modifiedDate);x();var f;I("buttonLabel","Description actions")("menuItems",(f=V(22,20,a.commentActionMenuItems$))!=null?f:Gh(26,e8a));x(3);G(V(24,22,a.isDeleted$)?23:25);x(3);G((e=V(27,24,a.attachments$))?26:-1,e)}},g8a=function(a){a&1&&M(0,"b-spinner")},h8a=function(a){a&1&&(Wg(0),R(1," reacted"),Xg())},i8a=function(a){a&1&&(Wg(0),R(1,", "),M(2,"br"),Xg())},j8a=function(a,b){a&1&&(J(0,"div"),Wg(1),R(2),Xg(),F(3,h8a,2,0,"ng-container")(4,
i8a,3,0,"ng-container"),K());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;x(2);T(" ",a);x();G(c===b-1?3:4)}},k8a=function(a){a&1&&(Wg(0),R(1),Xg());a&2&&(a=P(2),x(),T(" by ",wj(a.event.lastCommentEditorUser)))},l8a=function(a){a&1&&(Wg(0),R(1,"Message last modified"),Xg(),F(2,k8a,2,1,"ng-container"),Wg(3),R(4," on "),M(5,"b-formatted-date-time",0),Xg());a&2&&(a=P(),x(2),G(a.event.version===0&&a.event.lastCommentEditorUser?2:-1),x(3),I("timestamp",a.event.commentLastModifiedAtDate))},m8a=function(a){a&
1&&M(0,"b-user-email",0);a&2&&(a=P().$implicit,I("email",a.text)("withProfile",!0))},n8a=function(a){a&1&&(J(0,"b-issue-reference-widget",1),R(1),K());if(a&2){a=P().$implicit;var b=P();I("href",Dq.viewIssue.makeHref(a.text))("issueId",b.getIssueId(a));x();wh(a.text)}},o8a=function(a){a&1&&(Wg(0),R(1),Xg());a&2&&(a=P().$implicit,x(),wh(a.text))},p8a=function(a,b){a&1&&F(0,m8a,1,2,"b-user-email",0)(1,n8a,2,3,"b-issue-reference-widget",1)(2,o8a,2,1,"ng-container");if(a&2){var c;G((c=b.$implicit.tag)===
"user"?0:c==="bug"?1:2)}},tr=function(a){var b;a=a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel;return a==="EXTERNAL_PARTNER"||a==="EXTERNAL_PUBLIC"},q8a=function(a){var b;return(a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel)==="EXTERNAL_PARTNER"},ur=function(a){var b;return(a==null?void 0:(b=a.accessLimit)==null?void 0:b.accessLevel)==="EXTERNAL_PUBLIC"},r8a=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""}},s8a=function(a){a&1&&(Wg(0),M(1,"b-component-card",4,1),Xg());if(a&2){a=Q(2);var b=P();x();I("onedevIsHovercardReady",a.init)("componentId",b.id)}},t8a=function(a){a&1&&(J(0,"span"),R(1),K());if(a&2){a=P(5);x();var b;wh((b=a.effortSpecName)!=null?b:"Estimated Effort")}},u8a=function(a){a&1&&(J(0,"span"),R(1,"Estimated Effort (disabled)"),
K())},v8a=function(a){a&1&&(J(0,"label"),F(1,t8a,2,1,"span")(2,u8a,2,0,"span"),R(3," :\u200b "),K());a&2&&(a=P(4),x(),G(a.effortEnabled?1:2))},w8a=function(a){a&1&&(J(0,"label"),R(1),K());a&2&&(a=P(3).$implicit,x(),T("",a.displayName,":\u200b"))},x8a=function(a){a&1&&(J(0,"span"),M(1,"b-user-display-name",7),K());a&2&&(a=P(),x(),I("email",a)("showEmail",!0))},y8a=function(a){a&1&&M(0,"plain-component-path",5);a&2&&(a=P(4).$implicit,I("id",a.oldValue))},z8a=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)}},A8a=function(a){a&1&&(J(0,"span"),R(1,"[Issue creation date]"),K())},B8a=function(a){a&1&&(J(0,"span"),F(1,z8a,1,1,"b-formatted-date-time",8),F(2,A8a,2,0,"span"),K());a&2&&(a=P(),x(),G(a!=="<none>"?1:-1),x(),G(a==="<none>"?2:-1))},C8a=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)}},D8a=function(a){a&1&&(J(0,"span"),R(1,"[Unset]"),K())},E8a=function(a){a&1&&(J(0,"span"),F(1,
C8a,1,1,"b-formatted-date-time",8),F(2,D8a,2,0,"span"),K());a&2&&(a=P(),x(),G(a!=="<none>"?1:-1),x(),G(a==="<none>"?2:-1))},F8a=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P(),P(4),x(),wh(S1a(a)))},G8a=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P(),x(),wh(a))},H8a=function(a){a&1&&(F(0,x8a,2,2,"span"),F(1,y8a,1,1,"plain-component-path",5),F(2,B8a,3,2,"span"),F(3,E8a,3,2,"span"),F(4,F8a,2,1,"span"),F(5,G8a,2,1,"span"),Wg(6),R(7,"\u00a0"),Xg(),M(8,"span",6),Wg(9),R(10,"\u00a0"),Xg());a&2&&
(a=P(3).$implicit,G(a.isUser?0:-1),x(),G(a.name==="component"?1:-1),x(),G(a.name=="sloStartTime"?2:-1),x(),G(a.name=="sloEndTime"?3:-1),x(),G(a.name==="access_limit"?4:-1),x(),G(a.isUser||a.name==="component"||a.name==="sloStartTime"||a.name==="sloEndTime"||a.name==="access_limit"?-1:5))},I8a=function(a){a&1&&M(0,"b-user-display-name",7);a&2&&(a=P(),I("email",a)("showEmail",!0))},J8a=function(a){a&1&&(J(0,"span"),M(1,"plain-component-path",5),K());a&2&&(a=P(4).$implicit,x(),I("id",a.newValue))},K8a=
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)}},L8a=function(a){a&1&&(J(0,"span"),R(1,"[Issue creation date]"),K())},M8a=function(a){a&1&&(J(0,"span"),F(1,K8a,1,1,"b-formatted-date-time",8),F(2,L8a,2,0,"span"),K());a&2&&(a=P(),x(),G(a!=="<none>"?1:-1),x(),G(a==="<none>"?2:-1))},N8a=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)}},O8a=function(a){a&1&&(J(0,"span"),R(1,"[Unset]"),
K())},P8a=function(a){a&1&&(J(0,"span"),F(1,N8a,1,1,"b-formatted-date-time",8),F(2,O8a,2,0,"span"),K());a&2&&(a=P(),x(),G(a!=="<none>"?1:-1),x(),G(a==="<none>"?2:-1))},Q8a=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P(),P(4),x(),wh(S1a(a)))},R8a=function(a){a&1&&(J(0,"span"),R(1),K());if(a&2){a=P();var b=P(3).$implicit;uh("bv2-diff-newvalue-nextline",b.oldValue&&b.name=="title");x();wh(a)}},S8a=function(a){a&1&&(F(0,I8a,1,2,"b-user-display-name",7),F(1,J8a,2,1,"span"),F(2,M8a,3,2,"span"),F(3,
P8a,3,2,"span"),F(4,Q8a,2,1,"span"),F(5,R8a,2,3,"span",9));a&2&&(a=P(3).$implicit,G(a.isUser?0:-1),x(),G(a.name==="component"?1:-1),x(),G(a.name==="sloStartTime"?2:-1),x(),G(a.name==="sloEndTime"?3:-1),x(),G(a.name==="access_limit"?4:-1),x(),G(a.isUser||a.name=="component"||a.name=="sloStartTime"||a.name=="sloEndTime"||a.name=="access_limit"?-1:5))},T8a=function(a){a&1&&(J(0,"div",4),F(1,v8a,4,1,"label")(2,w8a,2,1,"label"),F(3,H8a,11,6),F(4,S8a,6,6),K());if(a&2){var b,c;a=P(2).$implicit;x();G(a.name===
"effort"?1:2);x(2);G((b=a.oldValue)?3:-1,b);x();G((c=a.newValue)?4:-1,c)}},U8a=function(a){a&1&&(J(0,"span"),R(1,", "),K())},V8a=function(a,b){a&1&&(J(0,"span"),M(1,"b-user-display-name",7),F(2,U8a,2,0,"span"),K());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;x();I("email",a)("showEmail",!0);x();G(c!==b-1?2:-1)}},W8a=function(a){a&1&&(J(0,"span"),Pg(1,V8a,3,3,"span",null,Og),K());a&2&&(a=P(4).$implicit,x(),Qg(a.added))},X8a=function(a){a&1&&(J(0,"span"),R(1,", "),K())},Y8a=function(a,b){a&1&&(J(0,
"span")(1,"span"),R(2),K(),F(3,X8a,2,0,"span"),K());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;x(2);wh(a);x();G(c!==b-1?3:-1)}},Z8a=function(a){a&1&&(J(0,"span"),Pg(1,Y8a,4,2,"span",null,Og),K());a&2&&(a=P(4).$implicit,x(),Qg(a.added))},$8a=function(a){a&1&&(J(0,"div")(1,"label"),R(2),K(),F(3,W8a,3,0,"span")(4,Z8a,3,0,"span"),K());a&2&&(a=P(3).$implicit,x(2),T("+",a.displayName,":\u200b"),x(),G(a.isUser?3:4))},a9a=function(a){a&1&&(J(0,"span"),R(1,", "),K())},b9a=function(a,b){a&1&&(J(0,"span"),
M(1,"b-user-display-name",7),F(2,a9a,2,0,"span"),K());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;x();I("email",a)("showEmail",!0);x();G(c!==b-1?2:-1)}},c9a=function(a){a&1&&(J(0,"span"),Pg(1,b9a,3,3,"span",null,Og),K());a&2&&(a=P(4).$implicit,x(),Qg(a.removed))},d9a=function(a){a&1&&(J(0,"span"),R(1,", "),K())},e9a=function(a,b){a&1&&(J(0,"span")(1,"span"),R(2),K(),F(3,d9a,2,0,"span"),K());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;x(2);wh(a);x();G(c!==b-1?3:-1)}},f9a=function(a){a&1&&(J(0,
"span"),Pg(1,e9a,4,2,"span",null,Og),K());a&2&&(a=P(4).$implicit,x(),Qg(a.removed))},g9a=function(a){a&1&&(J(0,"div")(1,"label"),R(2),K(),F(3,c9a,3,0,"span")(4,f9a,3,0,"span"),K());a&2&&(a=P(3).$implicit,x(2),T("-",a.displayName,":\u200b"),x(),G(a.isUser?3:4))},h9a=function(a){a&1&&(J(0,"div",4),F(1,$8a,5,2,"div"),F(2,g9a,5,2,"div"),K());if(a&2){a=P(2).$implicit;var b=P();x();G(a.added&&a.added.length&&b.isStringArray(a.added)?1:-1);x();G(a.removed&&a.removed.length&&b.isStringArray(a.removed)?2:
-1)}},i9a=function(a){a&1&&Yg(0)},k9a=function(a,b){a&1&&(J(0,"span"),D(1,i9a,1,0,"ng-container",10),K());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;var d=P(4).$implicit;P();var e=Q(4);x();I("ngTemplateOutlet",e)("ngTemplateOutletContext",una(j9a,d,a,c===b-1))}},l9a=function(a){a&1&&(J(0,"div")(1,"label"),R(2),K(),Pg(3,k9a,2,6,"span",null,Og),K());a&2&&(a=P(3).$implicit,x(2),T("+",a.displayName,":\u200b"),x(),Qg(a.added))},m9a=function(a){a&1&&Yg(0)},n9a=function(a,b){a&1&&(J(0,"span"),D(1,m9a,
1,0,"ng-container",10),K());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;var d=P(4).$implicit;P();var e=Q(4);x();I("ngTemplateOutlet",e)("ngTemplateOutletContext",una(j9a,d,a,c===b-1))}},o9a=function(a){a&1&&(J(0,"div")(1,"label"),R(2),K(),Pg(3,n9a,2,6,"span",null,Og),K());a&2&&(a=P(3).$implicit,x(2),T("-",a.displayName,":\u200b"),x(),Qg(a.removed))},p9a=function(a){a&1&&(J(0,"div",4),F(1,l9a,5,1,"div"),F(2,o9a,5,1,"div"),K());if(a&2){a=P(2).$implicit;var b=P();x();G(a.added&&a.added.length&&b.isLinkedItemArray(a.added)?
1:-1);x();G(a.removed&&a.removed.length&&b.isLinkedItemArray(a.removed)?2:-1)}},q9a=function(a){a&1&&M(0,"b-formatted-date-time",8);a&2&&(a=P(),I("timestamp",a))},r9a=function(a){a&1&&(J(0,"span"),R(1," - "),K())},s9a=function(a,b){a&1&&(J(0,"span"),M(1,"b-formatted-date-time",8),F(2,r9a,2,0,"span"),K());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;x();I("timestamp",a);x();G(c!==b-1?2:-1)}},t9a=function(a){a&1&&(J(0,"span"),Pg(1,s9a,3,2,"span",null,Og),K());a&2&&(a=P(4).$implicit,x(),Qg(a.oldValue.split(", ")))},
u9a=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P(),x(),wh(a))},x9a=function(a){a&1&&(F(0,q9a,1,1,"b-formatted-date-time",8),F(1,t9a,3,0,"span"),F(2,u9a,2,1,"span"),Wg(3),R(4,"\u00a0"),Xg(),M(5,"span",6),Wg(6),R(7,"\u00a0"),Xg());if(a&2){a=P(3).$implicit;var b=P();G(v9a(b,a,"oldValue")?0:-1);x();G(w9a(b,a,"oldValue")?1:-1);x();G(v9a(b,a,"oldValue")||w9a(b,a,"oldValue")?-1:2)}},y9a=function(a){a&1&&M(0,"b-formatted-date-time",8);a&2&&(a=P(),I("timestamp",a))},z9a=function(a){a&1&&(J(0,"span"),
R(1," - "),K())},A9a=function(a,b){a&1&&(J(0,"span"),M(1,"b-formatted-date-time",8),F(2,z9a,2,0,"span"),K());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;x();I("timestamp",a);x();G(c!==b-1?2:-1)}},B9a=function(a){a&1&&(J(0,"span"),Pg(1,A9a,3,2,"span",null,Og),K());a&2&&(a=P(4).$implicit,x(),Qg(a.newValue.split(", ")))},C9a=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P(),x(),wh(a))},D9a=function(a){a&1&&(F(0,y9a,1,1,"b-formatted-date-time",8),F(1,B9a,3,0,"span"),F(2,C9a,2,1,"span"));if(a&2){a=
P(3).$implicit;var b=P();G(v9a(b,a,"newValue")?0:-1);x();G(w9a(b,a,"newValue")?1:-1);x();G(v9a(b,a,"newValue")||w9a(b,a,"newValue")?-1:2)}},E9a=function(a){a&1&&(J(0,"div",4)(1,"label"),R(2),K(),F(3,x9a,8,3),F(4,D9a,3,3),K());if(a&2){var b,c;a=P(2).$implicit;var d=P();x();Lg("title",d.customFieldName(a));x();T("",d.customFieldName(a),":\u200b");x();G((b=a.oldValue)?3:-1,b);x();G((c=a.newValue)?4:-1,c)}},F9a=function(a){a&1&&(J(0,"span",11),R(1,"Updated"),K())},G9a=function(a){a&1&&(J(0,"span"),R(1,
"Deleted"),K())},H9a=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P(),x(),T("Edited (unknown status '",a.status,"')"))},I9a=function(a,b){a&1&&F(0,F9a,2,0,"span",11)(1,G9a,2,0,"span")(2,H9a,2,1,"span");if(a&2){var c;G((c=b.status)==="ACTIVE"?0:c==="DELETED"?1:2)}},J9a=function(a){a&1&&(J(0,"div",4)(1,"label"),R(2),K(),F(3,I9a,3,1),K());if(a&2){var b;a=P(2).$implicit;x(2);T("",a.displayName,":\u200b");x();G((b=a.statusUpdateDiff==null?null:a.statusUpdateDiff.entityStatus)?3:-1,b)}},K9a=function(a){a&
1&&(J(0,"div",4)(1,"label"),R(2),K(),J(3,"pre",12),R(4),U(5,"json"),K()());a&2&&(a=P(2).$implicit,x(2),T("",a.displayName,":\u200b"),x(2),wh(V(5,2,a)))},L9a=function(a){a&1&&(M(0,"b-formatted-date-time",3),F(1,T8a,5,3,"div",4)(2,h9a,3,2,"div",4)(3,p9a,3,2,"div",4)(4,E9a,5,4,"div",4)(5,J9a,4,2,"div",4)(6,K9a,6,4,"div",4));if(a&2){a=P().$implicit;var b=P();I("timestamp",a.timestamp);x();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)}},M9a=function(a,b){a&1&&(J(0,"div",2),F(1,L9a,7,2),K());a&2&&(a=b.$implicit,b=P(),x(),G(((a==null?void 0:a.name)==="sloStartTime"||(a==null?void 0:a.name)==="sloEndTime"?b.activeSession.isInternalSession():1)?1:-1))},N9a=function(a){a&1&&(J(0,"b-issue-reference-widget",13),R(1),K());if(a&2){a=P();var b=P().change;I("href",b.href)("issueId",a);x();wh(a)}},O9a=function(a){a&
1&&M(0,"hotlist-link",5);a&2&&(a=P(),I("id",a))},P9a=function(a){a&1&&(J(0,"a",14),R(1),K());if(a&2){a=P();var b=P().change;I("href",b.href,hf);x();wh(a)}},Q9a=function(a){a&1&&(J(0,"span"),R(1,", "),K())},R9a=function(a){a&1&&(F(0,N9a,2,3,"b-issue-reference-widget",13)(1,O9a,1,1,"hotlist-link",5)(2,P9a,2,2,"a",14),F(3,Q9a,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);x(3);G(b?-1:3)}},S9a=function(a,b){a&1&&F(0,R9a,4,2);if(a&2){var c;G((c=
b.change.value)?0:-1,c)}},T9a=function(a,b){a&1&&(M(0,"b-user-membership-chip",9),U(1,"async"),U(2,"async"));if(a&2){a=P(2);var c;I("user",a.event.userPerformingActionUser)("email",b)("teamId",(c=V(1,4,a.teamId$))!=null?c:"");Lg("aria-label",V(2,6,a.ariaLabelHeading$))}},U9a=function(a){a&1&&(M(0,"b-user-display",10),U(1,"async"));a&2&&(a=P(2),I("model",a.event.userPerformingActionUser),Lg("aria-label",V(1,2,a.ariaLabelHeading$)))},V9a=function(a){a&1&&Yg(0)},W9a=function(a){a&1&&(J(0,"span",33),
D(1,V9a,1,0,"ng-container",34),K(),J(2,"onedev-hovercard",null,1),M(4,"b-issue-person-card",35),K());if(a&2){a=Q(3);P();var b=Q(9),c=P();I("onedevHovercardTrigger",a);x();I("ngTemplateOutlet",b);x(3);I("email",zj(c.event.userPerformingActionUser))}},X9a=function(a){a&1&&(J(0,"span",11),R(1),K());a&2&&(a=P(2),x(),T(" <",wj(a.event.userPerformingActionUser),"> "))},Y9a=function(a){a&1&&(J(0,"span",11),R(1),K());a&2&&(a=P(2),x(),T(" <",wj(a.event.userPerformingActionUser),"> "))},Z9a=function(a){if(a&
1){var b=t();J(0,"span")(1,"a",36);N("click",function(c){u(b);var d=P(2);return w(d.scrollCommentIntoView(c,d.event.commentNumber))});R(2);K()()}a&2&&(a=P(2),x(),I("routerLinkObj",a.getCommentNumberLink(a.event.commentNumber)),Lg("aria-label","Comment number"+a.event.commentNumber),x(),T(" #",a.event.commentNumber))},a$a=function(a){if(a&1){var b=t();J(0,"button",37);N("click",function(){u(b);var c=P(2);return w($9a(c.issueCommentDialogsService,c.issueId,c.deobfuscatedEvent||c.event))});K()}},b$a=
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)}},d$a=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=V(2,2,a.commentActionMenuItems$))!=null?b:Gh(4,c$a))}},e$a=function(a){a&1&&(J(0,"div",18),M(1,"b-tagged-text",38),K());a&2&&(a=P(2),x(),I("texts",
a.event.taggedSummary))},f$a=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=V(1,4,c.preEventDiffs$))!=null?d:Gh(10,c$a))("customFieldMap",a.customFieldMap)("effortSpecName",(b=V(2,6,c.effortSpec$))==null?null:b.name)("effortEnabled",!!V(3,8,c.isEffortEnabled$))}},g$a=function(a){a&1&&(J(0,"div",22),R(1," Comment has been deleted. "),K())},h$a=function(a){if(a&1){var b=t();J(0,"b-restricted-comment-placeholder",
39);U(1,"async");N("onConfirm",function(){u(b);var c=P(2);return w(c.loadRestrictedComment())});K()}a&2&&(a=P(2),I("disabled",!V(1,1,a.mayReadPii$)))},i$a=function(a){a&1&&(M(0,"b-note-container",25),U(1,"async"),U(2,"async"));if(a&2){a=P(2);var b,c;I("issueId",a.issueId)("issueAccessLevel",a.issueAccessLevel)("note",a.deobfuscatedEvent||a.event)("formattingMode",(b=V(1,5,a.formattingMode$))!=null?b:a.FormattingMode.PLAIN)("canEditComment",(c=V(2,7,a.canEditComment$))!=null?c:!1)}},j$a=function(a){if(a&
1){var b=t();M(0,"b-summarized-note-container",40);U(1,"async");J(2,"button",41);N("click",function(){u(b);var d=P(2);d.wasSummarized=!0;d.isSummarized=!d.isSummarized;return w()});M(3,"mat-icon",42);R(4,"Expand details");K()}if(a&2){a=P(2);var c;I("issueId",a.issueId)("issueAccessLevel",a.issueAccessLevel)("note",a.deobfuscatedEvent||a.event)("summaryType",a.getSummaryType())("formattingMode",(c=V(1,5,a.formattingMode$))!=null?c:a.FormattingMode.PLAIN)}},k$a=function(a){if(a&1){var b=t();J(0,"button",
41);N("click",function(){u(b);var c=P(2);c.wasSummarized=!0;c.isSummarized=!c.isSummarized;return w()});M(1,"mat-icon",43);R(2,"Collapse details");K()}},l$a=function(a){a&1&&M(0,"b-formatted-date-time",29);a&2&&(a=P(2),I("timestamp",a.event.modifiedDate))},m$a=function(a){a&1&&M(0,"mat-icon",45)},n$a=function(a){a&1&&M(0,"mat-icon",46)},o$a=function(a,b){a&1&&(J(0,"span"),R(1),K());a&2&&(x(),wh(b))},p$a=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))},t$a=function(a){if(a&1){var b=t();J(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 w(q$a(e))});F(7,m$a,1,0,"mat-icon",45)(8,n$a,1,0,"mat-icon",46);F(9,o$a,2,1,"span");U(10,"async");K();J(11,"onedev-hovercard",null,4);F(13,p$a,1,3,"b-comment-reaction-responders-card",47);U(14,"async");K()()}if(a&2){var c;
a=Q(12);var d=P(2);x();uh("no-upvote-reactions",V(3,11,d.noUpvoteReactions$));Kg("ariaLabel",r$a(d,d.ReactionType.UPVOTE))("aria-disabled",!V(4,13,d.hasAclToUpvoteReact$)||d.commentReactionIsSaving);I("disabled",!V(5,15,d.hasAclToUpvoteReact$)||d.commentReactionIsSaving)("onedevHovercardTrigger",a)("onedevHovercardConfig",d.commentReactionsHovercardConfig)("onedevHovercardActive",!!V(6,17,d.showCommentReactionHovercard$));x(6);G(s$a(d,d.ReactionType.UPVOTE)?7:8);x(2);G((c=V(10,19,d.upvoteReactionCountDisplayString$))?
9:-1,c);x(4);G(V(14,21,d.noUpvoteReactions$)?-1:13)}},u$a=function(a){if(a&1){var b=t();J(0,"a",49);N("click",function(){u(b);var c=P(3);return w(c.showCommentHistoryDialog(c.event.commentNumber))});R(1," Show History ");K()}},v$a=function(a){a&1&&(J(0,"div",31),M(1,"b-comment-edit-timestamp-message",48),F(2,u$a,2,0,"a"),K());a&2&&(a=P(2),x(),I("event",a.event),x(),G(a.commentHistoryEnabled?2:-1))},w$a=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=V(1,4,c.postEventDiffs$))!=null?d:Gh(10,c$a))("customFieldMap",a.customFieldMap)("effortSpecName",(b=V(2,6,c.effortSpec$))==null?null:b.name)("effortEnabled",!!V(3,8,c.isEffortEnabled$))}},x$a=function(a,b){a&1&&(J(0,"div",50),M(1,"b-attachment-viewer",51),K());a&2&&(a=b.$implicit,b=P(3),I("id",Dh("attachment",a.attachmentId)),x(),I("issueId",b.issueId)("attachment",a)("attachmentUploader",zj(b.event.userPerformingActionUser)))},y$a=function(a){a&1&&(J(0,"div",
32),Pg(1,x$a,2,5,"div",50,Og),K());a&2&&(a=P(2),x(),Qg(a.event.attachments))},A$a=function(a){a&1&&(J(0,"div",5),M(1,"b-user-image",6),K(),J(2,"div",7)(3,"h4",8),F(4,T9a,3,8,"b-user-membership-chip",9)(5,U9a,2,4,"b-user-display",10),F(6,W9a,5,3)(7,X9a,2,1,"span",11),D(8,Y9a,2,1,"ng-template",null,0,Lh),F(10,Z9a,3,3,"span"),F(11,a$a,1,0,"button",12),U(12,"async"),J(13,"span",13),F(14,b$a,1,3,"b-restricted-chip",14),M(15,"b-formatted-date-time",15),F(16,d$a,3,5,"b-actions-menu",16),K()(),M(17,"div",
17),F(18,e$a,2,1,"div",18),F(19,f$a,4,11,"b-issue-event-details",19),U(20,"async"),M(21,"div",17),J(22,"div",20)(23,"div",21),F(24,g$a,2,0,"div",22),F(25,h$a,2,3,"b-restricted-comment-placeholder",23),J(26,"div",24),F(27,i$a,3,9,"b-note-container",25),F(28,j$a,5,7),F(29,k$a,3,0,"button",26),K(),J(30,"div",27)(31,"div",28),F(32,l$a,1,1,"b-formatted-date-time",29),U(33,"async"),K(),F(34,t$a,15,23,"div",30),K()(),F(35,v$a,3,2,"div",31),K(),F(36,w$a,4,11,"b-issue-event-details",19),U(37,"async"),M(38,
"div",17),F(39,y$a,3,0,"div",32),M(40,"div",17),K());if(a&2){var b;a=P();x();I("email",zj(a.event.userPerformingActionUser));x(3);G((b=a.enableTeamAnnotations&&zj(a.event.userPerformingActionUser))?4:5,b);x(2);G(a.isNonObfuscatedEmail(zj(a.event.userPerformingActionUser))?6:7);x(4);G(a.isCommentEvent(a.event)?10:-1);x();G(V(12,20,a.canEditComment$)&&!vr(a)?11:-1);x(3);G(a.isRestricted()?14:-1);x();I("timestamp",a.event.modifiedDate);x();G(a.isCommentEvent(a.event)?16:-1);x(2);G(a.event.taggedSummary&&
a.event.taggedSummary.length?18:-1);x();G(V(20,22,a.showFullHistoryFromFiltering$)==="FULL_HISTORY"?19:-1);x(5);G(a.isDeleted()?24:-1);x();G(vr(a)&&!a.isDeleted()?25:-1);x(2);G(!z$a(a)||vr(a)||a.isDeleted()||a.isSummarized?-1:27);x();G(z$a(a)&&!vr(a)&&!a.isDeleted()&&a.isSummarized?28:-1);x();G(a.wasSummarized&&!a.isSummarized?29:-1);x(3);G(V(33,24,a.isShowingCommentTimestamp$)?32:-1);x(2);var c;b=a.ReactionType.UPVOTE;var d,e=!a.issuePermissionService.hasAclToComment()&&((c=a.event.commentReactions)==
null?void 0:(d=c.get(b))==null?void 0:d.count)===0;c=a.isInternalSession&&a.commentReactionsEnabled&&z$a(a)&&!a.isDeleted()&&!vr(a)&&!e;G(c?34:-1);x();G(a.isCommentEvent(a.event)&&(a.event.commentVersion||0)>0&&!vr(a)?35:-1);x();G(V(37,26,a.showFullHistoryFromFiltering$)==="FULL_HISTORY"?36:-1);x(3);G(a.event.attachments.length?39:-1)}},B$a=function(a){a&1&&(J(0,"aside",0),M(1,"b-spinner"),K())},C$a=function(a){a&1&&R(0);if(a&2){var b;a=P(2).$index;var c=P();T(" ",(b=c.foldedCommentsCounts.get(a))==
null?null:b.commentFoldedCount," updates ")}},D$a=function(a){a&1&&R(0);if(a&2){var b;a=P(2).$index;var c=P();T(" ",(b=c.foldedCommentsCounts.get(a))==null?null:b.commentFoldedCount," update ")}},E$a=function(a){if(a&1){var b=t();J(0,"div",2)(1,"button",4);N("click",function(){u(b);var f=P().$index,h=P(),k,q,v=(q=(k=h.foldedCommentsCounts.get(f))==null?void 0:k.eventFoldedCount)!=null?q:0;for(k=0;k<v&&((ul(h.internalEvents[f-k])||Tva(h.internalEvents[f-k]))&&h.eventDisplayMode.set(f-k,"full"),f-k!==
0);k++);h.foldedCommentsCounts.delete(f);return w()});F(2,C$a,1,1)(3,D$a,1,1);K();M(4,"div",5);K()}if(a&2){var c;a=P().$index;var d=P();x(2);var e;G(((e=(c=d.foldedCommentsCounts.get(a))==null?null:c.commentFoldedCount)!=null?e:1)>1?2:3)}},F$a=function(a){a&1&&(J(0,"div",3),M(1,"b-history-event",6),K());if(a&2){var b=P();a=b.$implicit;b=b.$index;var c=P();x();I("issueId",c.internalIssueId)("issueAccessLevel",c.issueAccessLevel)("event",a)("isSummarized",c.eventDisplayMode.get(b)===c.eventDisplayModes.SUMMARIZED)}},
H$a=function(a,b){a&1&&(F(0,E$a,5,1,"div",2),F(1,F$a,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);x();G(b.internalIssueId&&G$a(b.eventDisplayMode.get(a))?1:-1)}},I$a=function(a){a&1&&(J(0,"aside",0),M(1,"b-spinner"),K())},J$a=function(a){return!(!Eva(a.userPerformingAction)||!a.isMajorEvent)},L$a=function(a){if(a&1){var b=t();J(0,"div",0);M(1,"mat-icon",1);J(2,"button",
2);N("click",function(){u(b);var c=P(3);c.llmIssueSummaryService.trackEvent("click","issueDetailsPage");K$a(c.llmIssueSummaryService);return w()});R(3," Summarize ");K()()}},M$a=function(a,b){a&1&&F(0,L$a,4,0,"div",0);a&2&&(a=P(2),G(b===a.BUTTON?0:-1))},N$a=function(a){a&1&&(F(0,M$a,1,1),U(1,"async"));if(a&2){var b;a=P();G((b=V(1,1,a.stage$))?0:-1,b)}},O$a=function(a,b){a&1&&(J(0,"mat-option",5)(1,"div",8),R(2),K(),J(3,"div",9),R(4),K()());a&2&&(a=b.$implicit,I("value",a),x(2),wh(a.name),x(2),wh(a.description))},
T$a=function(a){switch(a){case "FULL_HISTORY":return P$a;case "ALL_COMMENTS":return Q$a;case "HUMAN_ONLY":return R$a;case "TEAM_AND_ASSIGNEE":return S$a;default:return Q$a}},U$a=function(a){if(a&1){var b=t();J(0,"button",6);N("click",function(){u(b);var c=P(2);return w(c.removeHotlist.emit())});M(1,"mat-icon",7);K()}a&2&&(a=P(2),uh("invisible",a.disabled),Lg("aria-disabled",a.disabled)("aria-label","Remove the hotlist "+a.hotlist.name))},V$a=function(a){a&1&&(J(0,"span",1)(1,"span",2)(2,"a",3),R(3),
K()(),F(4,U$a,2,4,"button",4),K(),J(5,"onedev-hovercard",null,0),M(7,"b-hotlist-card",5),K());if(a&2){a=Q(6);var b=P();uh("muted",b.disabled);I("onedevHovercardTrigger",a)("onedevHovercardActive",b.showHovercard);x(2);I("href",b.ROUTES.viewHotlist.makeHref(b.hotlist.hotlistId),hf);Lg("aria-label",b.getAriaLabel(b.hotlist));x();wh(b.hotlist.name);x();G(b.removable?4:-1);x(3);I("hotlist",b.hotlist)}},X$a=function(a){if(a&1){var b=t();J(0,"span",1)(1,"div")(2,"button",2);N("click",function(){u(b);var d=
P();return w(d.addHotlist(d.hotlist.hotlistId))});M(3,"mat-icon",3);K();M(4,"mat-icon",4);K();J(5,"span",5)(6,"a",6);R(7);K()()();J(8,"onedev-hovercard",null,0)(10,"b-hotlist-recommendation-card",7);N("onAccept",function(d){u(b);var e=P();return w(e.addHotlist(d))})("onDismiss",function(){u(b);var d=P();return w(W$a(d))});K()()}if(a&2){a=Q(9);var c=P();th("padding-right","10px");I("onedevHovercardTrigger",a)("onedevHovercardActive",c.showHovercard)("onedevHovercardConfig",c.hovercardConfig);x(2);
Lg("aria-label","Add the suggested hotlist "+c.hotlist.name);x(4);I("href",c.ROUTES.viewHotlist.makeHref(c.hotlist.hotlistId),hf);Lg("aria-label",c.getAriaLabel(c.hotlist));x();wh(c.hotlist.name);x(3);I("hotlist",c.hotlist)}},Z$a=function(a,b){if(a&1){var c=t();J(0,"b-hotlist-chip-smart",4);N("removeHotlist",function(){var d=u(c).$implicit,e=P(2);return w(Y$a(e,d))});K()}a&2&&I("id",b.$implicit)},$$a=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",V(1,3,b.issueId$)))},bab=function(a,b){a&1&&Pg(0,$$a,2,5,"b-hotlist-recommendation-chip",5,aab);a&2&&Qg(b)},cab=function(a){a&1&&(F(0,bab,2,0),U(1,"async"));if(a&2){var b;a=P(2);G((b=V(1,1,a.recommendations$))?0:-1,b)}},dab=function(a){if(a&1){var b=t();J(0,"div",0);dh(1);J(2,"button",1);U(3,"async");N("onHotkey",function(){u(b);var c=P();return w(c.openHotlistModal())})("click",function(){u(b);var c=
P();return w(c.openHotlistModal())});M(4,"mat-icon",2);R(5);U(6,"async");K();Pg(7,Z$a,1,1,"b-hotlist-chip-smart",3,Og);U(9,"async");F(10,cab,2,3);K()}a&2&&(a=P(),x(2),uh("icon-only",!V(3,5,a.textOfHotlistBtn$)),I("hotkey",a.HOTKEYS.OPEN_HOTLIST_PICKER),x(3),T(" ",V(6,7,a.textOfHotlistBtn$)," "),x(2),Qg(V(9,9,a.hotlistIds$)),x(3),G(a.isInternalSession?10:-1))},fab=function(a){if(a&1){var b=t();J(0,"mat-form-field",7);U(1,"async");J(2,"input",8,0);N("keyup",function(c){u(b);var d=P();return w(eab(d,
c))})("blur",function(){u(b);var c=P();return w(c.onInputBlur())});K()()}a&2&&(a=P(),th("width",a.editModeWidth,"px"),uh("banned-words-warning",V(1,5,a.bannedWordsChecker.showWarning$)),x(2),I("value",a.titlePlain))},gab=function(a){a&1&&(J(0,"h3",4,1),R(2),K());a&2&&(a=P(),Lg("title",a.isLongTitle?a.titlePlain:""),x(2),T(" ",a.titleTruncated," "))},iab=function(a){if(a&1){var b=t();J(0,"button",9);N("click",function(){u(b);var c=P();return w(c.isEditMode?eab(c):hab(c))});M(1,"mat-icon",10);K()}a&
2&&(a=P(),I("disabled",a.disabled||a.isSaving))},jab=function(a){a&1&&(J(0,"p",6),R(1),J(2,"a",11),R(3," Learn more "),K()());a&2&&(a=P(),x(),T(" ",Pq(a.bannedWordsChecker)," is restricted. Press 'Esc' to cancel or 'Enter' to skip check and save title. "))},kab=function(a){if(a&1){var b=t();J(0,"mat-checkbox",10);N("change",function(c){u(b);var d=P().$implicit,e=P();d.enabled=c.checked;e.detectChanges();return w()});K()}a&2&&(a=P().$implicit,Kg("aria-label",Dh("Enable column '",a.name,"'")),I("checked",
a.enabled))},nab=function(a,b){if(a&1){var c=t();J(0,"li",2);N("keydown",function(e){var f=u(c).$index,h=P();return w(h.onKeyDown(e,f))})("focus",function(){var e=u(c).$index,f=P();return w(f.onFocus(e))});F(1,kab,1,3,"mat-checkbox",3);M(2,"mat-icon",4);J(3,"span");R(4);K();J(5,"div",5)(6,"button",6);N("click",function(){var e=u(c).$index,f=P();return w(lab(f,e))});M(7,"mat-icon",7);K();J(8,"button",8);N("click",function(){var e=u(c).$index,f=P();return w(mab(f,e))});M(9,"mat-icon",9);K()()()}if(a&
2){a=b.$implicit;b=b.$index;var d=P();Lg("aria-label",a.name)("aria-grabbed",b===d.grabbedIndex);x();G(d.allowRemoval?1:-1);x(3);wh(a.name);x(2);uh("invisible",b===0);x(2);uh("invisible",b===d.items.length-1)}},oab=function(a){a&1&&M(0,"mat-icon",1)},pab=function(a){a&1&&(J(0,"span",2),U(1,"date"),R(2),K());a&2&&(a=P(2),I("title",Dh("Start Date: ",Kh(1,4,a.startDate,"longDate"))),x(2),xh(" ",a.startDateShortStr," ",a.JOINING_ARROW," "))},qab=function(a){a&1&&(J(0,"span",3),U(1,"date"),R(2),K());a&
2&&(a=P(2),I("title",Dh("End Date: ",Kh(1,3,a.endDate,"longDate"))),x(2),T(" ",a.endDateShortStr," "))},rab=function(a){a&1&&(J(0,"span",4),R(1,"?"),K())},sab=function(a){a&1&&(J(0,"div",0),F(1,oab,1,0,"mat-icon",1),F(2,pab,3,7,"span",2),F(3,qab,3,6,"span",3)(4,rab,2,0,"span",4),K());a&2&&(a=P(),x(),G(a.showIcon?1:-1),x(),G(a.startDate?2:-1),x(),G(a.endDate?3:4))},tab=function(a,b){b=b===void 0?[]:b;return"http://cl/search/cl:("+[].concat(p(a),p(b.map(function(c){return String(c.changelistNumber)}))).join("|")+
")"},uab=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(" ")},vab=function(a){return"hotlist-"+a},wab=function(a){return"savedsearch-"+a},xr=function(a){if(a!=null){if(xab.includes(a))return a;var b=a.match(/\bhotlists?\b/)?wr(a):void 0;if(b)return"hotlist";
b=a.match(/\bsavedsearch(?:es|)\b/)?wr(a):void 0;if(b)return"savedsearch";b=/\bb\/\d+\b/;b=a.match(/\bissues?\b/)||a.match(b)?wr(a):void 0;b||(a=a.trim(),b=a.length<3?!1:!!a.match(/^\d+$/));if(b)return"issue"}},yab=function(a){switch(xr(a)){case "hotlist":return"Hotlist";case "savedsearch":return"Saved Search";case "issue":return"Issue"}},wr=function(a){if(a!=null)return a.split(/[^\d]+/).filter(Boolean).pop()},zab=function(a){var b=wr(a);if(b!=null)switch(xr(a)){case "hotlist":return"/hotlists/"+
b;case "savedsearch":return"/savedsearches/"+b;default:return"/issues/"+b}},Aab=function(a){var b=wr(a);if(b!=null&&xr(a)==="issue")return"/issues?q="+encodeURIComponent("id:"+b+" OR parentid:"+b+"+")},Bab=function(a){for(var b={},c={},d=l(a),e=d.next();!e.done;e=d.next())e=e.value,c[e.issueId]=e;d=a.slice();d.sort(function(q,v){var A,E;return(((A=v.descendantCount)!=null?A:0)-((E=q.descendantCount)!=null?E:0))*-1});d=l(d);for(e=d.next();!e.done;e=d.next()){var f=e.value,h=void 0;e=(h=b[f.issueId])!=
null?h:0;h=void 0;f=l((h=f.parentIssueIds)!=null?h:[]);for(h=f.next();!h.done;h=f.next())if(h=c[h.value],h!=null){var k=void 0;b[h.issueId]=(k=b[h.issueId])!=null?k:0;b[h.issueId]+=1+e}}return a.map(function(q){var v,A=(v=b[q.issueId])!=null?v:0;return[[A,q.openDescendantCount+A*10],q]})},Cab=function(a,b){a=a.results;if(a.length<(b===void 0?50:b))return[];a=Bab(a);a.sort(function(f,h){f=l(f);f=l(f.next().value);f.next();f=f.next().value;h=l(h);h=l(h.next().value);h.next();return h.next().value-f});
b=a.filter(function(f){f=l(f);return l(f.next().value).next().value>0}).map(function(f){f=l(f);f.next();return f.next().value}).filter(function(f){return f.descendantCount>=2}).filter(vwa);var c={};a=l(a);for(var d=a.next();!d.done;d=a.next()){var e=l(d.value);d=e.next().value;e=e.next().value;c[e.issueId]=d}return b.map(function(f){var h,k;return{title:(h=f.snapshot)==null?void 0:(k=h[0])==null?void 0:k.title,ref:f.issueId,suggestionRationale:f.descendantCount+" descendants and "+c[f.issueId][0]+
" recent personal touchpoints."}})},Dab=function(a){if(a&1){var b=t();J(0,"div",1);N("click",function(){u(b);var c=P();return w(c.useXofYLabel=!c.useXofYLabel)});M(1,"div",2);J(2,"span");R(3);U(4,"number");K();J(5,"span");R(6);K()()}a&2&&(a=P(),I("title",Eh("",a.closed," of ",a.total," issues closed in this work area")),x(),Lg("style",a.makePie(a.closed/a.total),tia),x(),uh("display-none",a.useXofYLabel),x(),T("",Kh(4,11,a.closed/a.total*100,"1.0-0"),"% complete"),x(2),uh("display-none",!a.useXofYLabel),
x(),xh("",a.closed," of ",a.total," closed"))},Eab=function(a,b,c){var d=c[b];return d==null?!1:[].concat(p(a)).map(function(e){return yr[e]}).every(function(e){return e==null?!0:e.check(d,b,c)})},Fab=function(a){return!!yr[a]},Gab=function(a){a&1&&(Sg(0,"div",2),Ge(),Sg(1,"svg",3),Ug(2,"path",4),Tg()())},Hab=function(a){a&1&&M(0,"th",26)},Iab=function(a){a&1&&M(0,"td",27)},Kab=function(a){if(a&1){var b=t();J(0,"th",26)(1,"button",28);N("click",function(){u(b);var c=P(2);return w(Jab(c))});M(2,"mat-icon",
29);K()()}},Lab=function(a){a&1&&M(0,"td",27)},Mab=function(a){a&1&&(J(0,"th",26),R(1," ID "),K())},Nab=function(a){a&1&&M(0,"b-issue-id-cell",31);a&2&&(a=P().$implicit,I("id",a.issueIds[0]))},Oab=function(a,b){a&1&&(J(0,"td",30),F(1,Nab,1,1,"b-issue-id-cell",31),K());a&2&&(a=b.$implicit,x(),G(a.issueIds.length===1?1:-1))},Qab=function(a){if(a&1){var b=t();J(0,"th",26)(1,"mat-checkbox",32);N("change",function(d){u(b);var e=P(),f=P();return w(d?f.toggleAllRows(e):null)});K()()}if(a&2){a=P();var c=
P();x();I("checked",c.selection.selected.length>0&&Pab(c,a))("indeterminate",c.selection.selected.length>0&&!Pab(c,a))}},Rab=function(a,b){if(a&1){var c=t();J(0,"td",30)(1,"mat-checkbox",33);N("click",function(d){u(c);return w(d.stopPropagation())})("change",function(){var d=u(c).$implicit,e=P(2);e.selection.toggle(d.issueIds[0]);e.selectedIssuesChange.emit(e.selection);return w()});K()()}a&2&&(a=b.$implicit,b=P(2),x(),I("checked",b.selection.isSelected(a.issueIds[0])),Lg("aria-label","Select issue "+
a.issueIds[0])("aria-checked",b.selection.isSelected(a.issueIds[0])))},Sab=function(a){if(a&1){var b=t();J(0,"th",26)(1,"mat-checkbox",32);N("change",function(d){u(b);var e=P(),f=P();return w(d?f.toggleAllRows(e):null)});K()()}if(a&2){a=P();var c=P();x();I("checked",c.selection.selected.length>0&&Pab(c,a))("indeterminate",c.selection.selected.length>0&&!Pab(c,a))}},Uab=function(a){a&1&&M(0,"td",30)},Vab=function(a){a&1&&(J(0,"th",26),R(1),K());a&2&&(a=P(2),x(),T(" ",a.getDisplayName(a.IssueFieldType.TITLE),
" "))},Wab=function(a,b){if(a&1){var c=t();J(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 h=P(2);return w(h.issueNavigated.emit(f))});K()()}if(a&2){var d;a=b.$implicit;b=P(2);x();uh("bold",b.showReadStatus&&b.isUnread(V(2,9,a.issue$)));var e;I("anchorTarget",Ch((b.options.navigationOptions==null?0:b.options.navigationOptions.alwaysOpenNewTab)?"_blank":"_self"))("issue",V(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=V(4,13,b.trendingChipsById$))==null?null:d[a.issueIds[0]]:void 0)}},Xab=function(a){a&1&&(J(0,"th",26),R(1),K());a&2&&(a=P(2),x(),T(" ",a.getDisplayName(a.IssueFieldType.TITLE)," "))},Yab=function(a,b){a&1&&(J(0,"td",30)(1,"b"),R(2),U(3,"async"),K()());a&2&&(a=b.$implicit,
x(2),xh("",V(3,2,a.summaryTitle$)," (",a.issueIds.length,")"))},Zab=function(a){a&1&&(J(0,"th",35),R(1),K());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.TYPE),x(),T(" ",a.getDisplayName(a.IssueFieldType.TYPE)," "))},$ab=function(a,b){a&1&&(J(0,"td",30),M(1,"b-issue-type-cell",36),U(2,"async"),K());a&2&&(a=b.$implicit,x(),I("issue",V(2,1,a.issue$)))},abb=function(){},bbb=function(a){a&1&&R(0);a&2&&(a=P(3),T(" ",a.getDisplayName(a.IssueFieldType.ASSIGNEE)," "))},cbb=function(a){a&1&&(J(0,"th",
35),F(1,abb,0,0)(2,bbb,1,1),K());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.ASSIGNEE),x(),G((a.options.modes==null?null:a.options.modes.assignee)==="avatar-if-open"?1:2))},dbb=function(a,b){a&1&&M(0,"b-user-image",37);a&2&&I("email",b)},ebb=function(a){a&1&&F(0,dbb,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)}},fbb=function(a,b){a&1&&F(0,ebb,1,1);a&2&&(a=P(4),G(a.isOpen(b)?0:-1))},gbb=function(a){a&1&&(F(0,fbb,1,1),U(1,"async"));if(a&2){var b;a=
P().$implicit;G((b=V(1,1,a.issue$))?0:-1,b)}},hbb=function(a){a&1&&(M(0,"b-issue-assignee-cell",36),U(1,"async"));a&2&&(a=P().$implicit,I("issue",V(1,1,a.issue$)))},ibb=function(a){a&1&&(J(0,"td",30),F(1,gbb,2,3)(2,hbb,2,3,"b-issue-assignee-cell",36),K());a&2&&(a=P(2),x(),G((a.options.modes==null?null:a.options.modes.assignee)==="avatar-if-open"?1:2))},jbb=function(a){a&1&&(J(0,"th",35),R(1),K());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.REPORTER),x(),T(" ",a.getDisplayName(a.IssueFieldType.REPORTER),
" "))},kbb=function(a,b){a&1&&(J(0,"td",30),M(1,"b-issue-reporter-cell",36),U(2,"async"),K());a&2&&(a=b.$implicit,x(),I("issue",V(2,1,a.issue$)))},lbb=function(a){a&1&&(J(0,"th",38),R(1),K());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.PRIORITY),x(),T(" ",a.getDisplayName(a.IssueFieldType.PRIORITY)," "))},mbb=function(a){a&1&&M(0,"b-issue-priority-display",39);a&2&&(P(),a=bh(1),I("issuePriority",a==null?null:a.snapshot==null?null:a.snapshot[0]==null?null:a.snapshot[0].priority))},nbb=function(a,
b){a&1&&(J(0,"td",30),$g(1),U(2,"async"),F(3,mbb,1,1,"b-issue-priority-display",39),K());a&2&&(a=b.$implicit,P(2),x(),ah(V(2,1,a.issue$)),x(2),G(3))},obb=function(a){a&1&&M(0,"th",40)},pbb=function(a){a&1&&(J(0,"td",30),M(1,"mat-icon",41),K())},qbb=function(a){a&1&&(J(0,"th",35),R(1),K());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.STATUS),x(),T(" ",a.getDisplayName(a.IssueFieldType.STATUS)," "))},rbb=function(a,b){a&1&&(J(0,"td",30),M(1,"b-issue-status-cell",36),U(2,"async"),K());a&2&&(a=b.$implicit,
x(),I("issue",V(2,1,a.issue$)))},sbb=function(a){a&1&&(J(0,"th",26),R(1),K());a&2&&(a=P(2),x(),T(" ",a.getDisplayName(a.IssueFieldType.TEAM)," "))},tbb=function(a,b){a&1&&(J(0,"td",30),M(1,"b-issue-team-cell",36),U(2,"async"),K());a&2&&(a=b.$implicit,x(),I("issue",V(2,1,a.issue$)))},ubb=function(a){a&1&&(J(0,"th",26),R(1),K());a&2&&(a=P(2),x(),T(" ",a.getDisplayName(a.IssueFieldType.DUPLICATE_COUNT)," "))},vbb=function(a){a&1&&R(0);if(a&2){a=P();var b;T(" ",(b=a.snapshot[0].duplicateIssueId==null?
null:a.snapshot[0].duplicateIssueId.length)!=null?b:0," ")}},wbb=function(a){a&1&&F(0,vbb,1,1);a&2&&(P(3),G(0))},xbb=function(a,b){a&1&&(J(0,"td",30),F(1,wbb,1,1),U(2,"async"),K());if(a&2){var c;a=b.$implicit;x();G((c=V(2,1,a.issue$))?1:-1,c)}},ybb=function(a){a&1&&(J(0,"th",26),R(1),K());a&2&&(a=P(2),x(),T(" ",a.getDisplayName(a.IssueFieldType.VOTE_COUNT)," "))},zbb=function(a){a&1&&(J(0,"span",42),R(1),K());a&2&&(a=P(),I("title",Dh("",a.aggregatedData==null?null:a.aggregatedData.voteCount," votes")),
x(),T(" ",a.aggregatedData==null?null:a.aggregatedData.voteCount," "))},Abb=function(a){a&1&&F(0,zbb,2,3,"span",42);a&2&&(P(3),G(0))},Bbb=function(a,b){a&1&&(J(0,"td",30),F(1,Abb,1,1),U(2,"async"),K());if(a&2){var c;a=b.$implicit;x();G((c=V(2,1,a.issue$))?1:-1,c)}},Cbb=function(a){a&1&&(J(0,"th",26),R(1),K());a&2&&(a=P(2),x(),T(" ",a.getDisplayName(a.IssueFieldType.SEVEN_DAY_VIEW_COUNT)," "))},Dbb=function(a){a&1&&(J(0,"span",42),R(1),K());a&2&&(a=P(),I("title",Dh("",a.userActivityStats==null?null:
a.userActivityStats.sevenDayViewCount," views in last 7 days")),x(),T(" ",a.userActivityStats==null?null:a.userActivityStats.sevenDayViewCount," "))},Ebb=function(a){a&1&&F(0,Dbb,2,3,"span",42);a&2&&(P(3),G(0))},Fbb=function(a,b){a&1&&(J(0,"td",30),F(1,Ebb,1,1),U(2,"async"),K());if(a&2){var c;a=b.$implicit;x();G((c=V(2,1,a.issue$))?1:-1,c)}},Gbb=function(a){a&1&&(J(0,"th",43),R(1),K());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.CREATED_TIME),x(),T(" ",a.getDisplayName(a.IssueFieldType.CREATED_TIME),
" "))},Hbb=function(a,b){a&1&&(J(0,"td",30),M(1,"b-issue-created-time-cell",44),U(2,"async"),K());if(a&2){a=b.$implicit;b=P(2);x();var c;I("issue",V(2,2,a.issue$))("mode",(c=b.options.modes==null?null:b.options.modes.createdTime)!=null?c:b.DEFAULT_DATETIME_MODE)}},Ibb=function(a){a&1&&(J(0,"th",43),R(1),K());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.MODIFIED_TIME),x(),T(" ",a.getDisplayName(a.IssueFieldType.MODIFIED_TIME)," "))},Jbb=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)}},Kbb=function(a,b){a&1&&(J(0,"td",30),$g(1),U(2,"async"),F(3,Jbb,1,3,"b-formatted-date-time",45),K());if(a&2){var c;a=b.$implicit;P(2);a=V(2,1,a.issue$);x(3);G((c=a==null?null:a.aggregatedData==null?null:a.aggregatedData.modifiedTimeMicros)?3:-1,c)}},Lbb=function(a){a&1&&(J(0,"th",46),R(1),K());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.RELATIVE_MODIFIED_TIME),
x(),T(" ",a.getDisplayName(a.IssueFieldType.RELATIVE_MODIFIED_TIME)," "))},Mbb=function(a,b){a&1&&M(0,"b-formatted-date-time",45);a&2&&I("timestamp",b/1E3)("mode","relativepasttiny")("paddingLeftPx",4)},Nbb=function(a,b){a&1&&(J(0,"td",47),$g(1),U(2,"async"),F(3,Mbb,1,3,"b-formatted-date-time",45),K());if(a&2){var c;a=b.$implicit;P(2);a=V(2,1,a.issue$);x(3);G((c=a==null?null:a.aggregatedData==null?null:a.aggregatedData.modifiedTimeMicros)?3:-1,c)}},Obb=function(a){a&1&&(J(0,"th",48),R(1),K());a&2&&
(a=P(2),x(),T(" ",a.getDisplayName(a.IssueFieldType.TRIAGER)," "))},Pbb=function(a){a&1&&M(0,"b-issue-triager-cell",36);a&2&&(a=P(),I("issue",a))},Qbb=function(a){a&1&&F(0,Pbb,1,1,"b-issue-triager-cell",36);a&2&&(P(3),G(0))},Rbb=function(a,b){a&1&&(J(0,"td",47),F(1,Qbb,1,1),U(2,"async"),K());if(a&2){var c;a=b.$implicit;x();G((c=V(2,1,a.issue$))?1:-1,c)}},Sbb=function(a){a&1&&(J(0,"th",26),R(1),K());a&2&&(a=P(2),x(),wh(a.getDisplayName(a.IssueFieldType.ALERTS)))},Tbb=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)}},Ubb=function(a){a&1&&F(0,Tbb,1,2,"b-issue-alerts-cell",50);a&2&&(P(4),G(0))},Vbb=function(a){a&1&&(F(0,Ubb,1,1),U(1,"async"));if(a&2){var b;a=P().$implicit;G((b=V(1,1,a.issue$))?0:-1,b)}},Wbb=function(a){a&1&&M(0,"b-signal-chip",49)},Xbb=function(a,b){a&1&&(J(0,"td",47),F(1,Vbb,2,3)(2,Wbb,1,0,"b-signal-chip",49),K());a&2&&(a=b.$implicit,x(),G(a.issueIds.length===1?1:2))},Ybb=function(a){a&1&&(J(0,"th",51),R(1),K());a&2&&(a=P(2),I("mat-sort-header",
a.IssueFieldType.TIMEFRAME),x(),T(" ",a.getDisplayName(a.IssueFieldType.TIMEFRAME)," "))},Zbb=function(a,b){a&1&&(J(0,"td",30),M(1,"issue-timeframe",52),U(2,"async"),K());a&2&&(a=b.$implicit,x(),I("issue",V(2,2,a.issue$))("showIcon",!1))},$bb=function(a){a&1&&(J(0,"th",43),R(1),K());a&2&&(a=P(2),I("mat-sort-header",a.IssueFieldType.PROGRESS),x(),T(" ",a.getDisplayName(a.IssueFieldType.PROGRESS)," "))},acb=function(a,b){a&1&&(J(0,"td",30),M(1,"progress-pie",36),U(2,"async"),K());a&2&&(a=b.$implicit,
x(),I("issue",V(2,1,a.issue$)))},bcb=function(a){a&1&&M(0,"th",26)},ccb=function(a,b){if(a&1){var c=t();J(0,"td",30)(1,"b-actions-menu",53);N("click",function(f){u(c);return w(f.stopPropagation())});K()()}if(a&2){a=b.$implicit;b=P(2);x();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]))}},
dcb=function(a){a&1&&(J(0,"th",26),R(1),K());a&2&&(a=P(2),x(),T(" ",a.getDisplayName(a.IssueFieldType.COMPONENT_PATH)," "))},ecb=function(a,b){a&1&&(J(0,"td",30),M(1,"b-issue-component-name-cell",36),U(2,"async"),K());a&2&&(a=b.$implicit,x(),I("issue",V(2,1,a.issue$)))},fcb=function(a){a&1&&(J(0,"th",26),R(1),K());a&2&&(a=P(2),x(),T(" ",a.getDisplayName(a.IssueFieldType.ENRICHMENT_CATEGORIES)," "))},gcb=function(a,b){a&1&&(J(0,"td",30),M(1,"b-enrichment-categories-cell",54),K());a&2&&(a=b.$implicit,
b=P(2),x(),I("enrichmentCategoryNames",b.enrichmentCategoriesFunction(a.issueIds[0])))},hcb=function(a){a&1&&(J(0,"th",26)(1,"span"),R(2),K()());if(a&2){a=P().$implicit;var b=P(2);x(2);T(" ",b.getCustomFieldName(a)," ")}},icb=function(a){a&1&&(J(0,"span"),R(1),K());if(a&2){a=P();var b=P(2).$implicit,c=P(2);x();T(" ",c.getCustomFieldValue(a,b)," ")}},jcb=function(a){a&1&&F(0,icb,2,1,"span");a&2&&(P(4),G(0))},kcb=function(a,b){a&1&&(J(0,"td",30),F(1,jcb,1,1),U(2,"async"),K());if(a&2){var c;a=b.$implicit;
x();G((c=V(2,1,a.issue$))?1:-1,c)}},lcb=function(a,b){a&1&&(Wg(0,8),D(1,hcb,3,1,"th",5)(2,kcb,3,3,"td",9),Xg());a&2&&(a=b.$implicit,b=P(2),I("matColumnDef",Eh("",b.IssueFieldType.CUSTOM_FIELD,"-",a)))},mcb=function(a){a&1&&M(0,"tr",55)},ocb=function(a,b){if(a&1){var c=t();J(0,"tr",56,0);U(2,"async");N("click",function(d){u(c);var e=Q(1),f=P(2);return w(ncb(f,d,e))})("mouseup",function(d){u(c);var e=Q(1),f=P(2);return w(ncb(f,d,e))})("focusin",function(){var d=u(c).$implicit,e=P(2);return w(e.focusManager==
null?null:Rq(e.focusManager,d))})("keydown",function(d){var e=u(c).$implicit,f=P(2);return w(f.onRowKeydown(e,d))});K()}a&2&&(a=b.$implicit,b=P(2),uh("closed",b.options.deEmphasizeClosedIssues&&b.isClosed(V(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))},pcb=function(a,
b){if(a&1){var c=t();J(0,"tr",56,0);N("click",function(d){u(c);var e=Q(1),f=P(2);return w(ncb(f,d,e))})("mouseup",function(d){u(c);var e=Q(1),f=P(2);return w(ncb(f,d,e))})("focusin",function(){var d=u(c).$implicit,e=P(2);return w(e.focusManager==null?null:Rq(e.focusManager,d))})("keydown",function(d){var e=u(c).$implicit,f=P(2);return w(f.onRowKeydown(e,d))});K()}a&2&&(a=b.$implicit,b=P(2),uh("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))},rcb=function(a,b){if(a&1){var c=t();J(0,"table",3);U(1,"async");U(2,"async");N("matSortChange",function(h){u(c);var k=P();return w(k.onSortChange(h))});Wg(3,4);D(4,Hab,1,0,"th",5)(5,Iab,1,0,"td",6);Xg();Wg(6,7);D(7,Kab,3,0,"th",5)(8,Lab,1,0,"td",6);Xg();Wg(9,8);D(10,Mab,2,0,"th",5)(11,Oab,2,1,"td",9);Xg();Wg(12,10);D(13,Qab,2,2,"th",5)(14,
Rab,2,3,"td",9);Xg();Wg(15,11);D(16,Sab,2,2,"th",5)(17,Uab,1,0,"td",9);Xg();Wg(18,8);D(19,Vab,2,1,"th",5)(20,Wab,5,15,"td",9);Xg();Wg(21,12);D(22,Xab,2,1,"th",5)(23,Yab,4,4,"td",9);Xg();Wg(24,8);D(25,Zab,2,2,"th",13)(26,$ab,3,3,"td",9);Xg();Wg(27,8);D(28,cbb,3,2,"th",13)(29,ibb,3,1,"td",9);Xg();Wg(30,8);D(31,jbb,2,2,"th",13)(32,kbb,3,3,"td",9);Xg();Wg(33,8);D(34,lbb,2,2,"th",14)(35,nbb,4,4,"td",9);Xg();Wg(36,15);D(37,obb,1,0,"th",16)(38,pbb,2,0,"td",9);Xg();Wg(39,8);D(40,qbb,2,2,"th",13)(41,rbb,3,
3,"td",9);Xg();Wg(42,8);D(43,sbb,2,1,"th",5)(44,tbb,3,3,"td",9);Xg();Wg(45,8);D(46,ubb,2,1,"th",5)(47,xbb,3,3,"td",9);Xg();Wg(48,8);D(49,ybb,2,1,"th",5)(50,Bbb,3,3,"td",9);Xg();Wg(51,8);D(52,Cbb,2,1,"th",5)(53,Fbb,3,3,"td",9);Xg();Wg(54,8);D(55,Gbb,2,2,"th",17)(56,Hbb,3,4,"td",9);Xg();Wg(57,8);D(58,Ibb,2,2,"th",17)(59,Kbb,4,3,"td",9);Xg();Wg(60,8);D(61,Lbb,2,2,"th",18)(62,Nbb,4,3,"td",19);Xg();Wg(63,8);D(64,Obb,2,1,"th",20)(65,Rbb,3,3,"td",19);Xg();Wg(66,8);D(67,Sbb,2,1,"th",5)(68,Xbb,3,1,"td",19);
Xg();Wg(69,8);D(70,Ybb,2,2,"th",21)(71,Zbb,3,4,"td",9);Xg();Wg(72,8);D(73,$bb,2,2,"th",17)(74,acb,3,3,"td",9);Xg();Wg(75,22);D(76,bcb,1,0,"th",5)(77,ccb,2,3,"td",9);Xg();Wg(78,8);D(79,dcb,2,1,"th",5)(80,ecb,3,3,"td",9);Xg();Wg(81,8);D(82,fcb,2,1,"th",5)(83,gcb,2,1,"td",9);Xg();Pg(84,lcb,3,3,"ng-container",8,Og);D(86,mcb,1,0,"tr",23)(87,ocb,3,7,"tr",24)(88,pcb,2,3,"tr",25);K()}if(a&2){var d,e;a=P();uh("hide-header",a.options.hideColumnHeaders);var f;I("dataSource",b)("trackBy",a.trackBy)("matSortDisabled",
a.options.sortMode===a.SortMode.DISABLED)("matSortActive",(f=(d=V(1,32,a.activeSort$))==null?null:d.column)!=null?f:"")("matSortDirection",a.toMatSortDirection((e=V(2,34,a.activeSort$))==null?null:e.direction));x(9);I("matColumnDef",a.IssueFieldType.ISSUE_ID);x(9);I("matColumnDef",a.IssueFieldType.TITLE);x(6);I("matColumnDef",a.IssueFieldType.TYPE);x(3);I("matColumnDef",a.IssueFieldType.ASSIGNEE);x(3);I("matColumnDef",a.IssueFieldType.REPORTER);x(3);I("matColumnDef",a.IssueFieldType.PRIORITY);x(6);
I("matColumnDef",a.IssueFieldType.STATUS);x(3);I("matColumnDef",a.IssueFieldType.TEAM);x(3);I("matColumnDef",a.IssueFieldType.DUPLICATE_COUNT);x(3);I("matColumnDef",a.IssueFieldType.VOTE_COUNT);x(3);I("matColumnDef",a.IssueFieldType.SEVEN_DAY_VIEW_COUNT);x(3);I("matColumnDef",a.IssueFieldType.CREATED_TIME);x(3);I("matColumnDef",a.IssueFieldType.MODIFIED_TIME);x(3);I("matColumnDef",a.IssueFieldType.RELATIVE_MODIFIED_TIME);x(3);I("matColumnDef",a.IssueFieldType.TRIAGER);x(3);I("matColumnDef",a.IssueFieldType.ALERTS);
x(3);I("matColumnDef",a.IssueFieldType.TIMEFRAME);x(3);I("matColumnDef",a.IssueFieldType.PROGRESS);x(6);I("matColumnDef",a.IssueFieldType.COMPONENT_PATH);x(3);I("matColumnDef",a.IssueFieldType.ENRICHMENT_CATEGORIES);x(3);Qg(a.customFieldIds);x(2);I("matHeaderRowDef",a.tableColumns);x();I("matRowDefColumns",a.tableColumns)("matRowDefWhen",a.isSingleIssue);x();I("matRowDefColumns",qcb(a))("matRowDefWhen",a.isMultiIssue)}},scb=function(a){if(a&1){var b=t();J(0,"button",58);N("click",function(){u(b);
var c=P(5);return w(c.rowLimit$.next(void 0))});R(1," Show more ");K()}},tcb=function(a){a&1&&F(0,scb,2,0,"button",57);if(a&2){a=P();var b=P();G(a.length<b?0:-1)}},ucb=function(a){if(a&1){var b=t();J(0,"button",58);N("click",function(){u(b);var c=P(5);return w(c.rowLimit$.next(c.options.rowLimit))});R(1," Show less ");K()}},vcb=function(a){a&1&&F(0,ucb,2,0,"button",57);if(a&2){a=P();var b=P(3);G(a.length>b.options.rowLimit?0:-1)}},wcb=function(a){a&1&&(F(0,tcb,1,1),U(1,"async"),Mg(2,vcb,1,1));if(a&
2){var b;a=P(3);G((b=V(1,1,a.rowLimit$))?0:2,b)}},xcb=function(a){a&1&&(F(0,wcb,3,3),U(1,"async"));if(a&2){var b;a=P(2);G((b=V(1,1,a.rows$))?0:-1,b)}},ycb=function(a){a&1&&(J(0,"div",2),F(1,xcb,2,3),U(2,"async"),K());if(a&2){var b;a=P();x();G((b=V(2,1,a.rowCountAfterFilters$))?1:-1,b)}},zcb=function(a,b){return a===b?!0:a&&b?Isa(a.issueIds,b.issueIds):!1},Acb=function(a){var b;return(b=a==null?void 0:a.join(";"))!=null?b:""},yl=function(a){return hp(a.issue$)},Bcb=function(a,b){if(!b)return a;switch(b.column){case "STATUS":return gwa()(a,
b.direction);case "ASSIGNEE":return hwa()(a,b.direction);case "REPORTER":return jwa()(a,b.direction);case "TYPE":return iwa()(a,b.direction);case "CREATED_TIME":return kwa(yl)(a,b.direction);case "MODIFIED_TIME":case "RELATIVE_MODIFIED_TIME":return lwa(yl)(a,b.direction);case "PRIORITY":return qwa(yl)(a,b.direction);case "PROGRESS":return rwa()(a,b.direction);default:return console.warn("b-issues-table sort by '"+b.column+"' not implemented"),a}},Ccb=function(a,b){var c=a.views24h;var d=a.views7d;
a=a.views30d;if(tl(c[b],c))return{title:"Trending 24h",tooltip:c[b]+" Views in 24 hours",cssClass:"cyan"};if(tl(d[b],d))return{title:"Trending 7d",tooltip:d[b]+" Views in 7 days",cssClass:"purple"};if(tl(a[b],a))return{title:"Trending 30d",tooltip:a[b]+" Views in the last 30 days",cssClass:"blue"}},Ecb=function(a,b){if(a&1){var c=t();J(0,"b-issues-table",1);N("issueNavigated",function(d){u(c);var e=P();return w(Dcb(e,d,e.EnrichmentFeedbackType.GO_TO_ISSUE))});K()}a&2&&(a=P(),I("issueIds",b.issueIds)("tableColumns",
b.tableColumns)("options",a.tableOptions)("enrichmentCategoriesFunction",b.categoriesFunction)("menuItemFactory",a.menuItemFactory))},Fcb=function(a){a&1&&(J(0,"div"),M(1,"b-spinner"),K())},Lcb=function(a){var b=Gcb(a.resource);if(!b)return[];var c=[],d=0;switch(a.type){case "ISSUE_DEDUPLICATION":var e=Gcb(a.recommendation);if(!e)break;c.push({issueId:b,actionKey:d++,fieldName:"duplicateOfIssueId",value:e,actionType:"ADD"});break;case "HOTLIST":e=Hcb(a.recommendation);if(!e)break;c.push({issueId:b,
actionKey:d++,fieldName:"hotlists",value:e,actionType:"ADD"});break;case "NEEDS_INFO":case "COMPONENT_ROUTING":if((e=a.content)==null?0:e.issueModification)e=Icb(a.content.issueModification),c.push.apply(c,p(e.map(function(H){return Object.assign({},{issueId:b,actionKey:d++},H)})));break;case "ISSUE_DEDUPLICATION_BATCH":var f,h;e=(f=a.content)==null?void 0:(h=f.issueDeduplicationBatch)==null?void 0:h.recommendedCanonicalIssue;if(!e||!e.issueId)break;var k,q,v;f=l((v=(k=a.content)==null?void 0:(q=
k.issueDeduplicationBatch)==null?void 0:q.entries)!=null?v:[]);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 A=Jcb[a.type],E=Kcb[a.type];return c.map(function(H){A.has(H.fieldName)&&(H.allowEdit=!0);E.has(H.fieldName)&&(H.allowExclude=!0);return H})},Icb=function(a){var b=[];b.push.apply(b,p(Mcb(a.addState,
a.addMask,!0)));b.push.apply(b,p(Mcb(a.removeState,a.removeMask,!1)));a.comment&&b.push({fieldName:"comment",value:a.comment.unlinkifiedComment,formattingMode:a.comment.formattingMode});return b},Mcb=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:zj((f=a)==null?void 0:f.assigneeUser),actionType:c?"ADD":"REMOVE"});break;case "attachments":break;case "blockedByIssueId":var h=f=void 0;d.push({fieldName:e,
value:(f=a)==null?void 0:(h=f.blockedByIssueId)==null?void 0:h.join(","),actionType:c?"ADD":"REMOVE"});break;case "blockingIssueId":h=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(h=f.blockingIssueId)==null?void 0:h.join(","),actionType:c?"ADD":"REMOVE"});break;case "ccs":h=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(h=f.ccUsers)==null?void 0:h.map(zj).join(","),actionType:c?"ADD":"REMOVE"});break;case "changelists":h=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(h=f.changelist)==
null?void 0:h.join(","),actionType:c?"ADD":"REMOVE"});break;case "collaborators":h=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(h=f.collaboratorsUsers)==null?void 0:h.map(zj).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),h=f.next();!h.done;h=f.next())d.push({fieldName:e,
customFieldValue:h.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":h=f=void 0;d.push({fieldName:e,value:((f=a)==null?void 0:(h=f.effort)==null?void 0:h.estimate)||void 0,actionType:c?"ADD":"REMOVE"});
break;case "foundInVersion":h=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(h=f.foundInVersion)==null?void 0:h.join(","),actionType:c?"ADD":"REMOVE"});break;case "gerritChanges":h=f=void 0;d.push({fieldName:e,gerritChangeValue:(h=(f=a)==null?void 0:f.gerritChanges)!=null?h:void 0,actionType:c?"ADD":"REMOVE"});break;case "hotlists":h=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(h=f.hotlistId)==null?void 0:h.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&&(h=f=void 0,d.push({fieldName:e,value:(h=(f=a)==null?void 0:f.priority)!=null?h:void 0,actionType:"ADD"}));break;case "readState":break;
case "reporter":c&&(f=void 0,d.push({fieldName:e,value:zj((f=a)==null?void 0:f.reporterUser),actionType:"ADD"}));break;case "severity":c&&(h=f=void 0,d.push({fieldName:e,value:(h=(f=a)==null?void 0:f.severity)!=null?h:void 0,actionType:"ADD"}));break;case "sloEndTime":h=f=void 0;d.push({fieldName:e,value:((f=a)==null?0:(h=f.sloEndTime)==null?0:h.seconds)?String(a.sloEndTime.seconds):void 0,actionType:c?"ADD":"REMOVE"});break;case "sloSnoozeType":h=f=void 0;d.push({fieldName:e,value:(h=(f=a)==null?
void 0:f.sloSnoozeType)!=null?h:void 0,actionType:c?"ADD":"REMOVE"});break;case "sloStartTime":h=f=void 0;d.push({fieldName:e,value:((f=a)==null?0:(h=f.sloStartTime)==null?0:h.seconds)?String(a.sloStartTime.seconds):void 0,actionType:c?"ADD":"REMOVE"});break;case "staffing":h=f=void 0;d.push({fieldName:e,staffingValue:(h=(f=a)==null?void 0:f.staffing)!=null?h:void 0,actionType:c?"ADD":"REMOVE"});break;case "status":c&&(h=f=void 0,d.push({fieldName:e,value:(h=(f=a)==null?void 0:f.status)!=null?h:void 0,
actionType:"ADD"}));break;case "targetedToVersion":h=f=void 0;d.push({fieldName:e,value:(f=a)==null?void 0:(h=f.targetedToVersion)==null?void 0:h.join(","),actionType:c?"ADD":"REMOVE"});break;case "title":c&&(h=f=void 0,d.push({fieldName:e,value:(h=(f=a)==null?void 0:f.title)!=null?h:"",actionType:"ADD"}));break;case "type":c&&(h=f=void 0,d.push({fieldName:e,value:(h=(f=a)==null?void 0:f.type)!=null?h:void 0,actionType:"ADD"}));break;case "verifiedInVersion":h=f=void 0;d.push({fieldName:e,value:(f=
a)==null?void 0:(h=f.verifiedInVersion)==null?void 0:h.join(","),actionType:c?"ADD":"REMOVE"});break;case "verifier":f=void 0;d.push({fieldName:e,value:((f=a)==null?0:f.verifierUser)?zj(a.verifierUser):void 0,actionType:c?"ADD":"REMOVE"});break;default:pb(e)}return d},Ncb=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,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}},Qcb=function(a){var b={addMask:[],removeMask:[],addState:Ncb(),removeState:Ncb()};a=l(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,
Ocb(c))if(c.actionType==="REMOVE")Pcb(c,b.removeState),b.removeMask.push(c.fieldName);else{if(c.actionType!=="ADD"&&c.actionType!=="ACTION_TYPE_UNSPECIFIED"&&c.actionType)throw Error("Je");Pcb(c,b.addState);b.addMask.push(c.fieldName)}return b},Pcb=function(a,b){switch(a.fieldName){case "assignee":b.assigneeUser=Dj(a.value);break;case "attachments":break;case "blockedByIssueId":var c,d;b.blockedByIssueId=(d=(c=a.value)==null?void 0:c.split(",").filter(Qj))!=null?d:[];break;case "blockingIssueId":var e,
f;b.blockingIssueId=(f=(e=a.value)==null?void 0:e.split(",").filter(Qj))!=null?f:[];break;case "ccs":var h,k;b.ccUsers=(k=(h=a.value)==null?void 0:h.split(",").map(Dj).filter(Qj))!=null?k:[];break;case "changelists":var q,v;b.changelist=(v=(q=a.value)==null?void 0:q.split(",").filter(Qj))!=null?v:[];break;case "collaborators":var A,E;b.collaboratorsUsers=(E=(A=a.value)==null?void 0:A.split(",").map(Dj).filter(Qj))!=null?E:[];break;case "comment":break;case "componentId":b.componentId=a.value||null;
break;case "customField":var H;b.customField=(H=b.customField)!=null?H:[];a.customFieldValue&&b.customField.push(a.customFieldValue);break;case "deletionReason":var L;b.deletionReason=(L=a.value)!=null?L:null;break;case "duplicateOfIssueId":b.duplicateOfIssueId=a.value||null;break;case "effortEstimate":var O;b.effort=(O=b.effort)!=null?O:{estimate:void 0};b.effort.estimate=a.value||void 0;break;case "foundInVersion":var S,aa;b.foundInVersion=(aa=(S=a.value)==null?void 0:S.split(",").filter(Qj))!=
null?aa:[];break;case "gerritChanges":var ka;b.gerritChanges=(ka=a.gerritChangeValue)!=null?ka:[];break;case "hotlists":var na,za;b.hotlistId=(za=(na=a.value)==null?void 0:na.split(",").map(Number).filter(Qj))!=null?za:[];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 Na;b.priority=(Na=a.value)!=null?Na:null;break;case "readState":break;case "reporter":b.reporterUser=
Dj(a.value);break;case "severity":var Pa;b.severity=(Pa=a.value)!=null?Pa:null;break;case "sloEndTime":b.sloEndTime=a.value?Eta(Number(a.value)*1E3):null;break;case "sloSnoozeType":var hb;b.sloSnoozeType=(hb=a.value)!=null?hb:null;break;case "sloStartTime":b.sloStartTime=a.value?Eta(Number(a.value)*1E3):null;break;case "staffing":var ua;b.staffing=(ua=a.staffingValue)!=null?ua:null;break;case "status":var Ha;b.status=(Ha=a.value)!=null?Ha:null;break;case "targetedToVersion":var Ia,tb;b.targetedToVersion=
(tb=(Ia=a.value)==null?void 0:Ia.split(",").filter(Qj))!=null?tb:[];break;case "title":b.title=a.value||"";break;case "type":var rb;b.type=(rb=a.value)!=null?rb:null;break;case "verifiedInVersion":var dc,bc;b.verifiedInVersion=(bc=(dc=a.value)==null?void 0:dc.split(",").filter(Qj))!=null?bc:[];break;case "verifier":b.verifierUser=Dj(a.value);break;default:pb(a.fieldName)}},Ocb=function(a){var b=a.value!=null&&a.value!==""||a.customFieldValue!=null||a.staffingValue!=null||a.formattingMode!=null||a.gerritChangeValue!=
null;return Rcb.has(a.fieldName)&&(a.actionType==="REMOVE"||!b)||a.actionType==="ADD"&&!b||Scb.has(a.fieldName)&&!b?!1:!0},Tcb=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";default:return a.type.toLowerCase()+"-recommendation"}},Ucb=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)}},Vcb=function(a){a&1&&(J(0,"span",11),R(1,"CURRENT ISSUE"),K())},Wcb=function(a,b){a&1&&R(0);a&2&&xh(" ",b.length," comment",b.length===1?"":"s"," ")},Xcb=function(a,b){a&1&&R(0);a&2&&xh(" \u00b7 ",b.length," dupe",b.length===1?"":"s"," ")},Ycb=function(a,b){a&1&&(J(0,"div",5),M(1,"div",6)(2,"b-issue-id-cell",7),J(3,"a",8)(4,"span",9),R(5),K()(),J(6,"onedev-hovercard",null,0),D(8,Ucb,2,2,"b-issue-card",10),K(),F(9,Vcb,2,0,"span",11),J(10,
"div",12),F(11,Wcb,1,2),U(12,"async"),F(13,Xcb,1,2),U(14,"async"),R(15),K()());if(a&2){var c,d;a=Q(7);var e=P(),f=P();x(2);I("id",e);x();I("href",f.getIssueLink(e),hf);x();I("onedevHovercardTrigger",a);x();wh(b.snapshot[0].title);x(4);G(e===f.currentIssue.issueId?9:-1);x(2);G((c=V(12,9,f.canonicalComments$))?11:-1,c);x(2);G((d=V(14,11,f.canonicalDuplicates$))?13:-1,d);b=(b==null?null:b.aggregatedData==null?null:b.aggregatedData.voteCount)||0;x(2);xh(" \u00b7 ",b>9999?"9999+":b," vote",b===1?"":"s",
" ")}},Zcb=function(a,b){a&1&&(F(0,Ycb,16,13,"div",5),U(1,"async"));if(a&2){var c;a=P();G((c=V(1,1,a.issue$(b)))?0:-1,c)}},$cb=function(a){a&1&&(J(0,"span",15),R(1," \u2b90 "),K())},adb=function(a){a&1&&M(0,"span",17)},bdb=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)}},cdb=function(a){a&1&&(J(0,"span",11),R(1,"CURRENT ISSUE"),K())},fdb=function(a,b){if(a&1){var c=t();J(0,"div",14);F(1,$cb,2,0,"span",15);J(2,"div",16);F(3,
adb,1,0,"span",17);M(4,"mat-icon",18);K();M(5,"b-issue-id-cell",7);J(6,"a",19)(7,"span",20);R(8);K()();J(9,"onedev-hovercard",null,2);D(11,bdb,2,2,"b-issue-card",10);K();F(12,cdb,2,0,"span",11);J(13,"div",21)(14,"button",22);N("click",function(){var f=u(c),h=P(2);return w(ddb(h,f))});M(15,"mat-icon",23);K();J(16,"button",24);N("click",function(){var f=u(c),h=P(2);return w(edb(h,f.issueId))});M(17,"mat-icon",25);K()()()}if(a&2){a=Q(10);var d=P().$index,e=P();x();G(d===0?1:-1);x(2);G(d!==0?3:-1);x(2);
I("id",b.issueId);x();I("href",e.getIssueLink(b.issueId),hf);x();I("onedevHovercardTrigger",a);x();wh(b.snapshot[0].title);x(4);G(b.issueId===e.currentIssue.issueId?12:-1);x(2);Lg("aria-label","Make "+b.snapshot[0].title+" the canonical issue");x(2);I("disabled",e.draftActions.length<2);Lg("aria-label","Remove "+b.snapshot[0].title)}},gdb=function(a,b){a&1&&(F(0,fdb,18,10,"div",14),U(1,"async"));if(a&2){var c;a=b.$implicit;b=P();G((c=V(1,1,b.issue$(a.issueId)))?0:-1,c)}},hdb=function(a){if(a&1){var b=
t();J(0,"div")(1,"button",26);N("click",function(){u(b);P().showExpansionOption=!1;return w()});J(2,"span");R(3);K()()()}a&2&&(a=P(),x(),Lg("aria-label","View "+a.hiddenActionCount+" more issues"),x(2),T("View ",a.hiddenActionCount," more"))},idb=function(a){a&1&&Yg(0)},ldb=function(a){if(a&1){var b=t();J(0,"div",1);N("keydown",function(c){u(b);var d=P();return w(d.processKeydown(c))});J(1,"div",2);D(2,idb,1,0,"ng-container",3);K();J(3,"div",4)(4,"button",5);N("click",function(){u(b);var c=P();return w(jdb(c))});
R(5,"Save");K();J(6,"button",6);N("click",function(){u(b);var c=P();return w(kdb(c))});R(7,"Cancel");K()()()}a&2&&(a=P(),I("cdkTrapFocusAutoCapture",!0),x(2),I("ngTemplateOutlet",a.editorTemplate),x(2),I("disabled",a.saveDisabled()))},mdb=function(a){if(a&1){var b=t();J(0,"input",4,2);N("peoplekitAutocompleteSelectionChange",function(c){u(b);var d=P();return w(d.selectAutocomplete(c))});Ah("ngModelChange",function(c){u(b);var d=P();zh(d.inputValue,c)||(d.inputValue=c);return w(c)});K()}a&2&&(a=P(),
I("peoplekitAutocompleteConfig",a.mergedAutocompleteConfig)("peoplekitSearchSessionOptions",a.sessionOptions),yh("ngModel",a.inputValue))},ndb=function(a){a&1&&R(0);a&2&&(a=P(),T(" ",a.displayValueOverride," "))},odb=function(a){a&1&&Yg(0)},qdb=function(a){a&1&&D(0,odb,1,0,"ng-container",4);a&2&&(a=P(),I("ngTemplateOutlet",a.selectedUserTemplate)("ngTemplateOutletContext",Hh(2,pdb,a.email)))},rdb=function(a){a&1&&R(0);a&2&&(a=P(),T(" ",a.email," "))},sdb=function(a){a&1&&(Ge(),J(0,"svg",5),M(1,"path",
6),K())},tdb=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)}},udb=function(a,b){a&1&&F(0,tdb,1,4,"b-user-membership-chip",3);a&2&&G(b.$implicit?0:-1)},vdb=function(a,b){return this.groupTrackBy(b)},wdb=function(a){a&1&&M(0,"b-user-picker",12);if(a&2){P(2);a=bh(3);P(2);var b=bh(2),c=P();I("user",a)("teamId",c.getTeamId(b))("disabled",!0)}},xdb=function(a){a&1&&(J(0,"span",13),R(1,
"<none>"),K())},ydb=function(a){a&1&&(F(0,wdb,1,3,"b-user-picker",12)(1,xdb,2,0,"span",13),J(2,"mat-icon",14),R(3," -> "),K());a&2&&(P(),a=bh(3),G(a?0:1))},zdb=function(a){a&1&&(J(0,"span",10),R(1,"Reporter"),K())},Bdb=function(a){if(a&1){var b=t();J(0,"button",15);N("click",function(){u(b);P();var f=Q(6);return w(f.openPopOver())});M(1,"mat-icon",16);K();Yg(2,17)}if(a&2){a=P(3).$implicit;var c=bh(1),d=P(),e=Q(4);I("disabled",d.excludedActions.has(c.actionKey));x(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",
Hh(3,Adb,a))}},Ddb=function(a){if(a&1){var b=t();J(0,"span",7);R(1,"Assignee");K();J(2,"div",8);$g(3);F(4,ydb,4,1);J(5,"b-user-picker",9,1);N("emailChange",function(h){u(b);P(2);var k=bh(1),q=P();return w(Cdb(q,k,h))});K();F(7,zdb,2,0,"span",10);K();J(8,"div",11);F(9,Bdb,3,5);K()}if(a&2){P(2);a=bh(1);var c=bh(2),d=P();x(3);var e=ah(d.getAssignee(c)),f=e&&!a.value&&a.actionType===d.ActionType.REMOVE;x();G(f||a.value&&(e==null?null:e.emailAddress)!=a.value?4:-1);x();I("user",f?void 0:a.value?d.emailToUser(a.value):
e)("displayValueOverride",f?"<none>":"")("teamId",d.getTeamId(c))("disabled",!a.allowEdit||d.excludedActions.has(a.actionKey));x(2);G(a.value===d.userToString(d.getReporter(c))?7:-1);x(2);G(a.allowEdit?9:-1)}},Edb=function(a){a&1&&(M(0,"b-edit-field",19),J(1,"mat-icon",14),R(2," -> "),K());if(a&2){P(3);a=bh(2);var b=P(),c;I("type",b.FieldType.ENUM)("value",(c=b.getPriority(a))!=null?c:null)("choices",b.priorityChoices)("readonly",!0)}},Gdb=function(a){if(a&1){var b=t();J(0,"button",20);N("click",
function(f){u(b);P();var h=Q(5);return w(tq(h,f,!0,!0))});M(1,"mat-icon",16);K();Yg(2,17)}if(a&2){a=P(3).$implicit;var c=bh(1),d=P(),e=Q(4);I("disabled",d.excludedActions.has(c.actionKey));x(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Hh(3,Fdb,a))}},Hdb=function(a){if(a&1){var b=t();J(0,"span",7);R(1,"Priority");K();J(2,"div",8);F(3,Edb,3,4);J(4,"b-edit-field",18,2);N("valueChange",function(h){u(b);P(2);var k=bh(1),q=P();return w(Cdb(q,k,h!=null?h:q.IssuePriority.P2))});K()();J(6,"div",11);
F(7,Gdb,3,5);K()}if(a&2){P(2);a=bh(1);var c=bh(2),d=P();c=d.getPriority(c);x(3);G(a.value&&c!==a.value?3:-1);x();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);x(3);G(a.allowEdit?7:-1)}},Kdb=function(a){if(a&1){var b=t();J(0,"button",22);N("click",function(){u(b);P(3);var f=bh(1),h=bh(2),k=P();return w(Idb(k,f,h))});M(1,"mat-icon",16);K();Yg(2,17)}if(a&2){a=P(3).$implicit;var c=bh(1),d=P(),e=Q(4);I("disabled",
d.excludedActions.has(c.actionKey));x(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Hh(3,Jdb,a))}},Ldb=function(a){a&1&&(J(0,"span",7),R(1,"Comment"),K(),J(2,"div",8),M(3,"b-live-preview",21),U(4,"async"),K(),J(5,"div",11),F(6,Kdb,3,5),K());if(a&2){P(2);a=bh(1);var b=P();x(3);var c,d;I("comment",a.value)("issueId",a.issueId)("audience",(c=V(4,5,b.formattingAudience$))!=null?c:void 0)("formattingMode",(d=a.formattingMode)!=null?d:b.FormattingMode.PLAIN);x(3);G(a.allowEdit?6:-1)}},Mdb=function(a){a&
1&&(M(0,"b-component-breadcrumb-chip",24),J(1,"mat-icon",14),R(2," -> "),K());if(a&2){P(3);a=bh(1);var b=bh(2),c=P();I("issueId",a.issueId)("componentId",c.getComponentId(b))("compactMode",!0)("readOnly",!0)}},Odb=function(a){if(a&1){var b=t();J(0,"button",25);N("click",function(){u(b);P();var f=Q(5);f.editing=!0;f.cdr.markForCheck();return w()});M(1,"mat-icon",16);K();Yg(2,17)}if(a&2){a=P(3).$implicit;var c=bh(1),d=P(),e=Q(4);I("disabled",d.excludedActions.has(c.actionKey));x(2);I("ngTemplateOutlet",
e)("ngTemplateOutletContext",Hh(3,Ndb,a))}},Pdb=function(a){if(a&1){var b=t();J(0,"span",7);R(1,"Component");K();J(2,"div",8);F(3,Mdb,3,4);J(4,"b-component-breadcrumb-chip",23,3);N("componentChanged",function(d){u(b);P(2);var e=bh(1),f=P();return w(Cdb(f,e,d))});K()();J(6,"div",11);F(7,Odb,3,5);K()}if(a&2){P(2);a=bh(1);var c=bh(2);c=P().getComponentId(c);x(3);G(c!==a.value?3:-1);x();I("issueId",a.issueId)("componentId",a.value)("compactMode",!0)("handleSave",!1)("showPickerOverlayAbove",!1)("readOnly",
!0);x(3);G(a.allowEdit?7:-1)}},Qdb=function(a){a&1&&(J(0,"mat-icon",27),R(1," + "),K(),M(2,"b-hotlist-chip",28));a&2&&(P(2),a=bh(1),x(2),I("hotlist",a)("removable",!1))},Rdb=function(a){a&1&&F(0,Qdb,3,2);a&2&&(P(),a=bh(1),G(a?0:-1))},Sdb=function(a){a&1&&(J(0,"mat-icon",29),R(1," - "),K(),M(2,"b-hotlist-chip",28));a&2&&(P(),a=bh(1),x(2),I("hotlist",a)("removable",!1))},Tdb=function(a,b){a&1&&(J(0,"div",26),$g(1),U(2,"async"),F(3,Rdb,1,1)(4,Sdb,3,2),K());if(a&2){a=b.$implicit;b=P().$implicit;P(3);
var c=bh(2),d=P();x();ah(V(2,1,d.hotlist$(a)));x(2);G(b.actionType!==d.ActionType.ADD||d.hasHotlist(c,a)?b.actionType===d.ActionType.REMOVE&&d.hasHotlist(c,a)?4:-1:3)}},Udb=function(a,b){a&1&&Pg(0,Tdb,5,4,"div",26,Og);a&2&&(a=b.$implicit,b=P(4),Qg(b.split(a.value)))},Wdb=function(a){if(a&1){var b=t();J(0,"button",30);N("click",function(){u(b);var f=P(3).$implicit,h=P();return w(h.openHotlistPicker(f))});M(1,"mat-icon",16);K();Yg(2,17)}if(a&2){a=P(3).$implicit;var c=bh(1),d=P(),e=Q(4);I("disabled",
d.excludedActions.has(c.actionKey));x(2);I("ngTemplateOutlet",e)("ngTemplateOutletContext",Hh(3,Vdb,a))}},Ydb=function(a){a&1&&(J(0,"span",7),R(1,"Hotlist"),K(),J(2,"div",8),Pg(3,Udb,2,0,null,null,Xdb),K(),J(5,"div",11),F(6,Wdb,3,5),K());if(a&2){a=P(2).$implicit;var b=bh(1);x(3);Qg(a);x(3);G(b.allowEdit?6:-1)}},Zdb=function(a){a&1&&(J(0,"mat-icon",31),R(1," + "),K(),M(2,"b-user-picker",12));if(a&2){a=P().$implicit;P(4);var b=bh(2),c=P();x(2);I("user",c.emailToUser(a)||void 0)("teamId",c.getTeamId(b))("disabled",
!0)}},$db=function(a){a&1&&(J(0,"mat-icon",32),R(1," - "),K(),M(2,"b-user-picker",12));if(a&2){a=P().$implicit;P(4);var b=bh(2),c=P();x(2);I("user",c.emailToUser(a)||void 0)("teamId",c.getTeamId(b))("disabled",!0)}},beb=function(a,b){a&1&&(J(0,"div",26),F(1,Zdb,3,3)(2,$db,3,3),K());if(a&2){a=b.$implicit;b=P().$implicit;P(3);var c=bh(2),d=P();x();G(b.actionType!==d.ActionType.ADD||aeb(c,a)?b.actionType===d.ActionType.REMOVE&&aeb(c,a)?2:-1:1)}},ceb=function(a,b){a&1&&Pg(0,beb,3,1,"div",26,Og);a&2&&
(a=b.$implicit,b=P(4),Qg(b.split(a.value)))},eeb=function(a){a&1&&(J(0,"span",7),R(1,"CCs"),K(),J(2,"div",8),Pg(3,ceb,2,0,null,null,Xdb),K(),J(5,"div",11),Yg(6,17),K());if(a&2){a=P(2).$implicit;P();var b=Q(4);x(3);Qg(a);x(3);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Hh(2,deb,a))}},feb=function(a){a&1&&F(0,Ddb,10,8)(1,Hdb,8,6)(2,Ldb,7,7)(3,Pdb,8,8)(4,Ydb,7,1)(5,eeb,7,4);if(a&2){var b;P();a=bh(1);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:-1)}},geb=function(a,b){a&1&&(J(0,"div",6),$g(1)(2),U(3,"async"),F(4,feb,6,1),K());a&2&&(b=b.$implicit,a=P(),uh("excluded",a.excludedActions.has(b[0].actionKey)),x(),b=ah(b[0]),x(),a=ah(V(3,4,a.issue$(b.issueId))),x(2),G(a?4:-1))},heb=function(a){if(a&1){var b=t();J(0,"button",35);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 w()});M(1,"mat-icon",36);K()}a&2&&(a=P(2).fieldName,I("matTooltip",Dh("Include ",a)),Lg("aria-label","Include "+a))},ieb=function(a){if(a&1){var b=t();J(0,"button",37);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 w()});M(1,"mat-icon",38);K()}a&2&&(a=P(2).fieldName,I("matTooltip",Dh("Exclude ",a)),Lg("aria-label","Exclude "+a))},jeb=function(a){a&
1&&F(0,heb,2,3,"button",33)(1,ieb,2,3,"button",34);if(a&2){P();a=bh(0);var b=P();G(b.excludedActions.has(a.actionKey)?0:1)}},keb=function(a,b){a&1&&($g(0),F(1,jeb,2,1));a&2&&(a=ah(b.group[0]),x(),G(a.allowExclude?1:-1))},leb=function(a,b){a=oj(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 hj(c)},neb=function(a,b){if(a&1){var c=t();J(0,"b-dedupe-actions-component",11);U(1,"async");
N("actionsToAccept",function(e){u(c);var f=P(2);return w(f.updateActionsToAccept(e))});K()}if(a&2){a=P(2);var d;I("currentIssue",b)("actions",(d=V(1,2,a.actions$))!=null?d:Gh(4,meb))}},oeb=function(a){a&1&&(F(0,neb,2,5,"b-dedupe-actions-component",10),U(1,"async"));if(a&2){var b;a=P();G((b=V(1,1,a.currentIssue$))?0:-1,b)}},peb=function(a){if(a&1){var b=t();J(0,"b-issue-actions-component",12);U(1,"async");N("actionsToAccept",function(d){u(b);var e=P();return w(e.updateActionsToAccept(d))});K()}if(a&
2){a=P();var c;I("actions",(c=V(1,1,a.actions$))!=null?c:Gh(3,meb))}},qeb=function(a){a&1&&M(0,"b-formatted-comment-presenter",14);a&2&&(a=P(2),I("formattedComment",a.recommendation.rationale.formattedText)("canEditComment",!1))},reb=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P(2),x(),wh(a.recommendation.rationale.text))},seb=function(a){a&1&&(M(0,"mat-divider"),J(1,"div",13)(2,"b"),R(3,"Rationale: "),K(),F(4,qeb,1,2,"b-formatted-comment-presenter",14)(5,reb,2,1,"span"),K());a&2&&(a=P(),x(4),
G(a.recommendation.rationale.formattedText?4:5))},teb=function(a){a&1&&M(0,"b-spinner",8)},ueb=function(a){if(a&1){var b=t();J(0,"div",9)(1,"button",15);N("click",function(){u(b);var c=P(),d=bh(16);return w(c.openLink(d))});M(2,"mat-icon",16);K()()}},veb=function(a){a&1&&M(0,"div",2)},web=function(a){a&1&&(Wg(0),dh(1),Xg())},xeb=function(a){a&1&&(Ge(),J(0,"svg",1),M(1,"path",2),K());a&2&&(a=P(),I("matTooltip",a.warning))},yeb=function(a){if(a&1){var b=t();J(0,"b-edit-field",3,0);U(2,"async");U(3,
"async");N("valueChange",function(d){u(b);var e=Q(1),f=P();f.valueChange.emit({editField:e,newEmail:d!=null?d:""});f.cdr.markForCheck();return w()});K()}if(a&2){a=P();var c;I("name",a.name)("title",a.title)("type",a.FieldType.TEXT)("value",a.value)("user",a.user)("isUser",!0)("readonly",!V(2,11,a.hasAclToEdit$))("disabled",!!a.isSaving)("showAvailability",!0)("teamId",(c=V(3,13,a.teamId$))!=null?c:"")("displayValueOverride",a.displayValueOverride)}},zeb=function(a){if(a&1){var b=t();J(0,"onedev-edit-field")(1,
"onedev-field-label");R(2);K();J(3,"onedev-field-value",4)(4,"b-user-picker",5,1);U(6,"async");U(7,"async");N("emailChange",function(f){u(b);var h=P();h.emailChange.emit(f);h.cdr.markForCheck();return w()});K()()()}if(a&2){a=P();x(2);wh(a.title);x();I("thinking",!!a.isSaving);x();var c,d,e;I("anchor",(c=a.anchor)!=null?c:a.elementRef.nativeElement)("user",(d=a.user)!=null?d:a.emailToUser(a.value))("teamId",(e=V(6,7,a.teamId$))!=null?e:"")("disabled",!V(7,9,a.hasAclToEdit$))("displayValueOverride",
a.displayValueOverride)}},Aeb=function(a){a&1&&(J(0,"div",4),dh(1,1),K());a&2&&(a=P(),I("id",Dh("expansion-panel-content-",a.instance)),Lg("aria-labelledby","expansion-panel-header-"+a.instance))},Beb=function(a,b){a&1&&(J(0,"div")(1,"span",16),R(2,"Phase:\u00a0"),K(),J(3,"span",17),R(4),K()());a&2&&(x(4),wh(b))},Ceb=function(a,b){a&1&&(J(0,"div")(1,"span",16),R(2,"Subphase:\u00a0"),K(),J(3,"span",17),R(4),K()());a&2&&(x(4),wh(b))},Deb=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)}},Eeb=function(a,b){a&1&&(J(0,"span",18),R(1),K(),J(2,"onedev-hovercard",null,0),D(4,Deb,2,2,"b-issue-card",19),K());a&2&&(a=Q(3),I("onedevHovercardTrigger",a),x(),T("Duplicate of ",b))},Geb=function(a,b){if(a&1){var c=t();J(0,"span",16);R(1,"Triager:\u00a0");K();M(2,"b-user-image",22);J(3,"b-single-user-control",23,3);U(5,"async");N("valueChange",function(f){u(c);var h=P(3);return w(Feb(h,f.newEmail))})("emailChange",function(f){u(c);var h=P(3);
return w(Feb(h,f))});K();J(6,"button",24);N("click",function(f){u(c);Q(4).openEditor();return w(f.stopPropagation())});M(7,"mat-icon",25);K()}if(a&2){P();a=Q(1);var d=P(2);x(2);I("email",b);x();var e;I("name","triager")("anchor",a)("title","Triager")("value",b)("user",(e=V(5,6,d.triager$))!=null?e:void 0)}},Heb=function(a){if(a&1){var b=t();J(0,"button",26);N("click",function(){u(b);var c=P(3);return w(c.claim())});R(1," Claim ");K()}},Ieb=function(a){a&1&&(J(0,"div",10,2),F(2,Geb,8,8),U(3,"async"),
Mg(4,Heb,2,0,"button",21),K());if(a&2){var b;a=P(2);x(2);G((b=V(3,1,a.triagerEmail$))?2:4,b)}},Jeb=function(a,b){a&1&&(J(0,"span",45),R(1,"Reporter:"),K(),M(2,"b-user-image",22)(3,"b-user-display",51),J(4,"onedev-hovercard",null,5),M(6,"b-issue-person-card",52),K());if(a&2){a=Q(5);var c=P();x(2);I("email",b);x();I("onedevHovercardTrigger",a)("model",c);x(3);I("email",b)}},Keb=function(a){a&1&&(F(0,Jeb,7,4),U(1,"async"));if(a&2){var b;a=P(3);G((b=V(1,1,a.reporterEmail$))?0:-1,b)}},Leb=function(a){if(a&
1){var b=t();J(0,"b-event-stream-header",53);N("click",function(c){u(b);return w(c.stopPropagation())});K()}},Meb=function(a,b){a&1&&(J(0,"b-expansion-panel",36),Wg(1,37),J(2,"div",42),M(3,"mat-icon",54),J(4,"h4",44),R(5,"Deduplicate"),K()(),Xg(),M(6,"b-recommendation",55),K());a&2&&(I("expanded",!0),x(6),I("recommendation",b))},Oeb=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",Gh(4,Neb))("limit",c.MAX_SIMILAR_ISSUES)}},
Peb=function(a,b){a&1&&F(0,Oeb,1,5,"suggested-similar-issues",56);a&2&&G(b.length?0:-1)},Qeb=function(a,b){if(a&1){var c=t();J(0,"secondary-footer",58);N("cancelAction",function(){u(c);var d=P(4);return w(d.cancelAction())})("finalizeAction",function(d){u(c);var e=P(4);return w(e.finalizeSecondaryAction(d))});K()}a&2&&(a=P(4),I("needsInfoAutomaticChanges",b)("selectedTriageAction",a.selectedTriageAction))},Reb=function(a){a&1&&(F(0,Qeb,1,2,"secondary-footer",57),U(1,"async"));if(a&2){var b;a=P(3);
G((b=V(1,1,a.needsInfoAutomaticChanges$))?0:-1,b)}},Seb=function(a,b){if(a&1){var c=t();J(0,"button",61);U(1,"async");N("click",function(){var d=u(c).$implicit,e=P(4),f=P();return w(f.openSecondaryActionFooter(d.key,e))});R(2);K()}a&2&&(a=b.$implicit,b=P(5),I("disabled",!V(1,2,b.hasAclToEdit$)),x(2),T(" ",a.displayAs," "))},Ueb=function(a,b){if(a&1){var c=t();J(0,"triage-action-selector",59);N("onSelect",function(d){u(c);var e=P(3),f=P();return w(f.openSecondaryActionFooter(d.key,e))});K();Pg(1,Seb,
3,4,"button",60,Teb)}a&2&&(a=P(4),I("phase",b),x(),Qg(a.PHASE_TO_ACTIONS.get(b)))},Veb=function(a){a&1&&(F(0,Ueb,3,1),U(1,"async"));if(a&2){var b;a=P(3);G((b=V(1,1,a.issuePhase$))?0:-1,b)}},Web=function(a,b){a&1&&(J(0,"div",27)(1,"div",28),M(2,"issue-title",29),U(3,"async"),J(4,"div",30)(5,"div")(6,"span",31),R(7),U(8,"enumToHuman"),K()(),J(9,"div")(10,"span",32),M(11,"b-issue-priority-display",33),K()(),M(12,"mat-divider",34)(13,"b-issue-hotlists",35),K()(),J(14,"b-expansion-panel",36),Wg(15,37),
J(16,"div",38),M(17,"mat-icon",39),J(18,"h4",40),R(19,"Description"),K(),F(20,Keb,2,3),U(21,"async"),K(),Xg(),M(22,"b-issue-description",41),K(),J(23,"b-expansion-panel",36,4),Wg(25,37),J(26,"div",42),M(27,"mat-icon",43),J(28,"h4",44),R(29),U(30,"async"),K(),F(31,Leb,1,0,"b-event-stream-header",45),U(32,"async"),K(),Xg(),M(33,"b-event-stream",46),U(34,"async"),U(35,"async"),U(36,"async"),U(37,"async"),K(),F(38,Meb,7,2,"b-expansion-panel",36),U(39,"async"),J(40,"b-expansion-panel",36),Wg(41,37),J(42,
"div",42),M(43,"mat-icon",47),J(44,"h4",48),R(45),U(46,"async"),K(),M(47,"mat-icon",49),U(48,"async"),K(),Xg(),F(49,Peb,1,1),U(50,"async"),K()(),J(51,"div",50),F(52,Reb,2,3)(53,Veb,2,3),K());if(a&2){var c,d,e,f,h,k;a=Q(24);var q=P(),v=P();x(2);I("title",b.snapshot[0].title)("issueId",q)("componentId",b.snapshot[0].componentId)("hasAclToEdit",V(3,26,v.hasAclToEdit$));x(5);wh(V(8,28,b.snapshot[0].type));x(4);I("issuePriority",b.snapshot[0].priority);x();I("vertical",!0);x();I("issueId",q);x();I("expanded",
!0);x(6);G((c=V(21,30,v.reporterUser$))?20:-1,c);x(2);I("id",q);x();I("expanded",!0);x(6);T("Comments (",(d=V(30,32,v.comments$))==null?null:d.length,")");x(2);G(a.expanded&&((e=V(32,34,v.comments$))==null?0:e.length)?31:-1);x(2);I("issueId",q)("events",V(34,36,v.events$))("issueAccessLevel",V(35,38,v.accessLevel$))("showFullHistory",V(36,40,v.preferences.showFullHistory$));Lg("data-will-inline-screenshots",V(37,42,v.enableInlineScreenshots$)?!0:null);x(5);G((f=V(39,44,v.dedupeRecommendation$))?38:
-1,f);x(2);I("expanded",!0);x(5);T(" Similar issues (",(h=V(46,46,v.similarIssueIds$))==null?null:h.length,") ");x(2);var A;I("matTooltip",Dh("Similar issues found in query: ",(A=V(48,48,v.triageScope$))!=null?A:""));x(2);G((k=V(50,50,v.similarIssueIds$))?49:-1,k);x(3);G(v.displaySecondaryFooter?52:53)}},Xeb=function(a,b){if(a&1){var c=t();J(0,"div",6)(1,"div",7)(2,"div",8);M(3,"b-issue-id-picker",9);F(4,Beb,5,1,"div");U(5,"async");F(6,Ceb,5,1,"div");U(7,"async");F(8,Eeb,5,2);U(9,"async");F(10,Ieb,
5,3,"div",10);U(11,"async");K();J(12,"div",11)(13,"a",12);M(14,"mat-icon",13);K();J(15,"button",14);N("click",function(){u(c);var k=P();return w(k.triageService.closeSidebar())});M(16,"mat-icon",15);K()()();F(17,Web,54,52);U(18,"async");K()}if(a&2){var d,e,f,h;a=P();x(3);I("issueId",b)("showCopyOptions",!1);x();G((d=V(5,9,a.issuePhaseDisplay$))?4:-1,d);x(2);G((e=V(7,11,a.issueSubphaseDisplay$))?6:-1,e);x(2);G((f=V(9,13,a.canonicalIssueId$))?8:-1,f);x(2);G(V(11,15,a.issuePhase$)===a.TriagePhase.NEW?
10:-1);x(3);I("href",Dh("/issues/",b),hf);x(4);G((h=V(18,17,a.issue$))?17:-1,h)}},Zeb=function(a,b){if(a&1){var c=t();$g(0);U(1,"async");$g(2);U(3,"async");J(4,"button",1);N("click",function(){var e=u(c),f=bh(0),h=P();return w(Yeb(h,e,f))});R(5);K()}if(a&2){a=P();ah(V(1,3,a.hasUserClaimedIssues$));var d=V(3,6,a.buttonText$);x(4);Kg("ariaLabel",d+" "+b.length+" issues");I("disabled",a.isSaving);x();wh(d)}},$eb=function(a,b){a&1&&(J(0,"div",2)(1,"span",8),R(2,"Phase:\u00a0"),K(),J(3,"span",9),R(4),
K()());a&2&&(x(4),wh(b))},afb=function(a,b){a&1&&(J(0,"span",10),R(1),K());a&2&&(a=b.$implicit,x(),wh(a))},bfb=function(a){a&1&&(J(0,"div")(1,"span",8),R(2,"Subphase:\u00a0"),K(),Pg(3,afb,2,1,"span",10,Og),K());a&2&&(a=P(),x(3),Qg(a))},cfb=function(a,b){a&1&&F(0,bfb,5,0,"div");a&2&&G(b.length?0:-1)},dfb=function(a){if(a&1){var b=t();J(0,"secondary-footer",12);N("cancelAction",function(){u(b);var c=P(3);return w(c.cancelAction())})("finalizeAction",function(c){u(b);var d=P(3);return w(d.finalizeSecondaryAction(c))});
K()}a&2&&(a=P(3),I("selectedTriageAction",a.selectedTriageAction))},efb=function(a,b){if(a&1){var c=t();J(0,"button",15);U(1,"async");N("click",function(){var d=u(c).$implicit,e=P(3),f=P();return w(f.openSecondaryActionFooter(d.key,e))});R(2);K()}a&2&&(a=b.$implicit,b=P(4),I("disabled",!V(1,2,b.hasAclToEdit$)),x(2),T(" ",a.displayAs," "))},ffb=function(a){a&1&&M(0,"claim-issues-button")},hfb=function(a){if(a&1){var b=t();J(0,"triage-action-selector",13);N("onSelect",function(d){u(b);var e=P(2),f=
P();return w(f.openSecondaryActionFooter(d.key,e))});K();Pg(1,efb,3,4,"button",14,gfb);F(3,ffb,1,0,"claim-issues-button")}if(a&2){a=P();var c=P(2);I("phase",a);x();Qg(c.PHASE_TO_ACTIONS.get(a));x(2);G(a===c.TriagePhase.NEW?3:-1)}},ifb=function(a){a&1&&F(0,dfb,1,1,"secondary-footer",11)(1,hfb,4,2);a&2&&(a=P(2),G(a.displaySecondaryFooter?0:1))},jfb=function(a){a&1&&(F(0,ifb,2,1),U(1,"async"));if(a&2){var b;a=P();G((b=V(1,1,a.issuePhase$))?0:-1,b)}},kfb=function(a){a&1&&M(0,"b-formatted-date-time",2);
a&2&&(a=P(),I("date",a.value))},lfb=function(a){a&1&&(Wg(0),R(1,"---"),Xg())},mfb=function(a,b){if(a&1){var c=t();J(0,"div",4)(1,"mat-checkbox",8);N("change",function(){var d=u(c).$implicit,e=P();return w(e.changeSelection(d))})("click",function(d){u(c);return w(d.stopPropagation())});R(2);K()()}a&2&&(a=b.$implicit,b=P(),I("title",b.getDisplayString(a)),x(),I("checked",!!b.valueMap.get(a))("indeterminate",b.valueMap.get(a)===null),x(),T(" ",b.getDisplayString(a)," "))},ofb=function(a){if(a&1){var b=
t();J(0,"input",9,1);N("keydown",function(c){u(b);var d=P();c.key==="Enter"&&(nfb(d)&&d.addValue(),c.preventDefault());return w()})("click",function(c){u(b);return w(c.stopPropagation())});Ah("ngModelChange",function(c){u(b);var d=P();zh(d.filterValue,c)||(d.filterValue=c);return w(c)});K()}a&2&&(a=P(),I("type",a.type==="REPEATED_NUMERIC"?"number":"text"),yh("ngModel",a.filterValue),I("placeholder",a.type==="REPEATED_ENUM"?"Filter values":"Add or filter values"))},pfb=function(a){a&1&&M(0,"mat-divider")},
qfb=function(a){if(a&1){var b=t();J(0,"div",10);N("click",function(c){u(b);var d=P();c.stopPropagation();return w(d.addValue())});R(1," Add ");K()}},rfb=function(a){if(a&1){var b=t();J(0,"div")(1,"b-date-time-input",11);Ah("valueChange",function(c){u(b);var d=P();zh(d.currentSelectedDate,c)||(d.currentSelectedDate=c);return w(c)});K();J(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 w()});R(3," Add ");K()()}a&2&&(a=P(),x(),yh("value",a.currentSelectedDate))},sfb=function(a){if(a&1){var b=t();J(0,"div",6);Ge();J(1,"svg",7);M(2,"path",8);K();He();J(3,"input",9,0);N("input",function(){u(b);var c=Q(4),d=P();return w(d.filterText$.next(c.value))});K()()}},tfb=function(a){a&1&&Yg(0)},vfb=function(a){if(a&1){var b=t();J(0,"div",12);N("click",function(){u(b);var d=P(2);return w(d.select(d.emptyOptionValue))});D(1,tfb,1,0,"ng-container",
13);K()}if(a&2){P();a=Q(4);var c=P();I("option",c.emptyOptionValue);Lg("aria-selected",c.isSelected(c.emptyOptionValue));x();I("ngTemplateOutlet",a)("ngTemplateOutletContext",Hh(4,ufb,c.emptyOptionValue))}},wfb=function(a){a&1&&Yg(0)},xfb=function(a){if(a&1){var b=t();J(0,"div",12);N("click",function(){u(b);var e=P().$implicit,f=P(2);return w(f.select(e))});D(1,wfb,1,0,"ng-container",13);K()}if(a&2){a=P().$implicit;P();var c=Q(4),d=P();I("option",a);Lg("aria-selected",d.isSelected(a));x();I("ngTemplateOutlet",
c)("ngTemplateOutletContext",Hh(4,ufb,a))}},yfb=function(a,b){a&1&&(Wg(0),D(1,xfb,2,6,"div",10),Xg());a&2&&(a=b.$implicit,x(),I("ngIf",a))},zfb=function(a){a&1&&(Wg(0),R(1),Xg());a&2&&(a=P(2).$implicit,x(),T(" ",a," "))},Afb=function(a){a&1&&(J(0,"span",15),R(1,"--"),K())},Bfb=function(a){a&1&&(Wg(0),D(1,zfb,2,1,"ng-container",14)(2,Afb,2,0,"ng-template",null,3,Lh),Xg());if(a&2){a=Q(3);var b=P().$implicit;x();I("ngIf",b!=null)("ngIfElse",a)}},Cfb=function(a){a&1&&Yg(0)},Dfb=function(a){a&1&&D(0,Cfb,
1,0,"ng-container",13);if(a&2){a=P().$implicit;var b=P(2);I("ngTemplateOutlet",b.optionTemplate)("ngTemplateOutletContext",Hh(2,ufb,a))}},Efb=function(a){a&1&&D(0,Bfb,4,2,"ng-container",14)(1,Dfb,1,4,"ng-template",null,2,Lh);if(a&2){a=Q(2);var b=P(2);I("ngIf",!b.optionTemplate)("ngIfElse",a)}},Ffb=function(a,b){a&1&&(Wg(0),D(1,vfb,2,6,"div",10)(2,yfb,2,1,"ng-container",11)(3,Efb,3,2,"ng-template",null,1,Lh),Xg());a&2&&(a=b.ngIf,b=P(),x(),I("ngIf",b.includeEmptyOption),x(),I("ngForOf",a))},Gfb=function(a){a&
1&&Yg(0)},Ifb=function(a){a&1&&(Wg(0),D(1,Gfb,1,0,"ng-container",11),Xg());a&2&&(a=P(),x(),I("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Hh(2,Hfb,a.value)))},Jfb=function(a){a&1&&Yg(0)},Kfb=function(a){a&1&&(Wg(0),D(1,Jfb,1,0,"ng-container",11),Xg());a&2&&(a=P(2),x(),I("ngTemplateOutlet",a.optionTemplate)("ngTemplateOutletContext",Hh(2,Hfb,a.value)))},Lfb=function(a){a&1&&D(0,Kfb,2,4,"ng-container",7);if(a&2){a=P();var b=Q(8);I("ngIf",a.optionTemplate)("ngIfElse",b)}},Mfb=function(a){a&
1&&(Wg(0),R(1),Xg());a&2&&(a=P(2),x(),T(" ",a.value," "))},Nfb=function(a){a&1&&(J(0,"span",12),R(1,"--"),K())},Ofb=function(a){a&1&&D(0,Mfb,2,1,"ng-container",7)(1,Nfb,2,0,"ng-template",null,4,Lh);if(a&2){a=Q(2);var b=P();I("ngIf",b.value!=null)("ngIfElse",a)}},Pfb=function(a){a&1&&(Ge(),J(0,"svg",13),M(1,"path",14),K())},Qfb=function(a){a&1&&(J(0,"div"),R(1," The selected issues have no custom fields in common. "),K())},Rfb=function(a){a&1&&(J(0,"span"),R(1,"*"),K())},Tfb=function(a){if(a&1){var b=
t();J(0,"input",10);Ah("ngModelChange",function(c){u(b);var d=P(2).$implicit;zh(d.textValue,c)||(d.textValue=c);return w(c)});K()}a&2&&(a=P(2).$implicit,P(),yh("ngModel",a.textValue),Lg("aria-labelledby",Sfb(a)))},Ufb=function(a){if(a&1){var b=t();J(0,"input",11);Ah("ngModelChange",function(c){u(b);var d=P(2).$implicit;zh(d.numericValue,c)||(d.numericValue=c);return w(c)});K()}a&2&&(a=P(2).$implicit,P(),yh("ngModel",a.numericValue),Lg("aria-labelledby",Sfb(a)))},Wfb=function(a){if(a&1){var b=t();
J(0,"div")(1,"b-date-time-input",12);N("valueChange",function(e){u(b);var f=P(2).$implicit;P();return w(f.dateValue=e?Swa(e):void 0)});K()()}if(a&2){a=P(2).$implicit;var c=P();x();var d;I("value",(d=Vfb(a.dateValue))!=null?d:void 0)("required",c.isCustomFieldRequired(a))("customAriaLabelledBy",Sfb(a))("customFormId","bv2-custom-field-"+a.customFieldId)}},Yfb=function(a){if(a&1){var b=t();J(0,"onedev-single-select",13);Ah("valueChange",function(d){u(b);var e=P(2).$implicit;zh(e.enumValue,d)||(e.enumValue=
d);return w(d)});K()}if(a&2){a=P(2).$implicit;P();yh("value",a.enumValue);var c;I("options",(c=a.allowedValue)!=null?c:Gh(3,Xfb))("labelledById",Sfb(a))}},$fb=function(a){if(a&1){var b=t();J(0,"b-bulk-repeated-field-picker",14);N("onSave",function(e){u(b);var f=P(2).$implicit,h=P();return w(Zfb(h,f.customFieldId,e))});K()}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:Gh(3,Xfb))}},agb=function(a){a&1&&F(0,Tfb,1,2,"input",6)(1,Ufb,1,2,"input",7)(2,Wfb,2,4,"div")(3,Yfb,1,4,"onedev-single-select",8)(4,$fb,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)}},bgb=function(a){if(a&1){var b=t();J(0,"span");R(1," Multiple values ");K();J(2,"a",15);N("click",function(){u(b);var c=P().$implicit,d=P();return w(d.clearCustomFieldValue(c))});R(3,"X");K()}},cgb=
function(a,b){a&1&&(J(0,"div",1)(1,"div",4)(2,"label",5),R(3),F(4,Rfb,2,0,"span"),K()(),F(5,agb,5,1)(6,bgb,4,0),K());a&2&&(a=b.$implicit,P(),x(2),I("matTooltip",(a.description||"")+" [ID: "+a.customFieldId+"]"),Lg("id",Sfb(a)),x(),T(" ",a.name," "),x(),G(a.required?4:-1),x(),G(a.hasMultipleValues?6:5))},egb=function(a){if(a&1){var b=t();J(0,"b-list-field",2);N("valuesChange",function(d){u(b);var e=P(2);return w(e.save.emit(d.values))});K()}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",dgb(c))("displayValuesOverride",a.displayValues)("enumChoices",a.choices)("listFieldDisabled",c.disabled)}},igb=function(a){if(a&1){var b=t();J(0,"b-edit-field",3);N("valueChange",function(e){u(b);var f=P(2);return w(f.save.emit(e))});K()}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",fgb(c))("displayValueOverride",c.getDisplayValue())("choices",(d=a.choices)!=null?d:Gh(12,ggb))("showEnumTitle",!0)("disabled",c.disabled)("customFieldId",c.field.customFieldId)}},jgb=function(a,b){a&1&&F(0,egb,1,10,"b-list-field",0)(1,igb,1,13,"b-edit-field",1);a&2&&G(b.isRepeated()?0:1)},mgb=function(a,b){var c=new kgb;lgb(c,a,b);return c},lgb=function(a,b,c){var d=Ba(b.snapshot),e=b.aggregatedData,f=b.userActivityStats;var h=b&&b.accessLimit?
b.accessLimit.accessLevel:void 0;a.accessLevel=h;a.id=b.issueId;a.issueId=b.issueId;a.trackerId=b.trackerId;d.componentId&&(a.componentId=d.componentId);c&&c.componentPathInfo&&c.componentPathInfo.componentPathName?a.componentPath=c.componentPathInfo:a.componentPath=[String(d.componentId)];d.type&&(a.type=d.type);if(d.status){a.status=d.status;var k;a.isClosed=!((k=wl.get(d.status))==null?0:k.open)||b.isArchived}a.priority=d.priority.substr(1);a.severity=d.severity.substr(1);a.reporter=wj(d.reporterUser);
a.assignee=wj(d.assigneeUser);a.assigneeEmail=zj(d.assigneeUser);a.verifier=wj(d.verifierUser);a.verifierEmail=zj(d.verifierUser);a.cc=xj(d.ccUsers);a.collaborator=xj(d.collaboratorsUsers);a.changelist=d.changelist;a.postmortem=d.postmortems;a.hotlistId=d.hotlistId;a.blockingIssueId=d.blockingIssueId;a.blockedByIssueId=d.blockedByIssueId;a.teamId=e&&e.teamId?e.teamId:0;a.createdTime=e?Math.round(e.createdTimeMicros/1E3):0;a.modifiedTime=e?Math.round(e.modifiedTimeMicros/1E3):0;a.resolvedTime=e&&e.resolvedTimeMicros?
Math.round(e.resolvedTimeMicros/1E3):null;a.verifiedTime=e&&e.verifiedTimeMicros?Math.round(e.verifiedTimeMicros/1E3):null;a.majorModifiedTime=b.majorModifiedTimeMicros?Math.round(b.majorModifiedTimeMicros/1E3):0;a.archived=b.isArchived;a.lastViewedTime=b.userData&&b.userData.lastViewedTimeMicros?Math.round(b.userData.lastViewedTimeMicros/1E3):null;a.title=d.title;a.foundInVersion=d.foundInVersion;a.targetedToVersion=d.targetedToVersion;a.verifiedInVersion=d.verifiedInVersion;d.inProd&&(a.inProd=
d.inProd);a.duplicateOfIssueId=d.duplicateOfIssueId;a.starred=b.userData&&b.userData.starred?b.userData.starred:!1;a.voteCount=e?e.voteCount:0;a.duplicateCount=d.duplicateIssueId?d.duplicateIssueId.length:0;a.ccCount=d.ccUsers?d.ccUsers.length:0;a.collaboratorCount=d.collaboratorsUsers?d.collaboratorsUsers.length:0;var q;a.lastModifier=wj((q=b.aggregatedData)==null?void 0:q.lastModifier);a.customFieldMap={};a.customFieldNameToIdMap={};a.customFieldValueMap={};if(c&&c.componentPathInfo&&c.componentPathInfo.allCustomField)for(c=
l(c.componentPathInfo.allCustomField),h=c.next();!h.done;h=c.next())h=h.value,a.customFieldMap[String(h.customFieldId)]=h,a.customFieldNameToIdMap[h.name.toLowerCase()]=h.customFieldId;if(d.customField)for(c=l(d.customField),h=c.next();!h.done;h=c.next())h=h.value,a.customFieldValueMap[String(h.customFieldId)]=h;a.retentionState=e?e.retentionState:void 0;a.sloId=e?""+e.sloId:"";a.sloStatus=e?e.sloStatus||null:null;a.sloStartTime=d.sloStartTime;a.sloEndTime=d.sloEndTime;a.isRead=!!a.lastViewedTime&&
a.lastViewedTime>=a.majorModifiedTime;d.effort&&(a.effort=d.effort);a.issueAccessLevel=d.issueAccessLimitLevel;a.descendantCount=b.descendantCount;a.openDescendantCount=b.openDescendantCount;a.oneDayViewCount=f?f.oneDayViewCount:0;a.sevenDayViewCount=f?f.sevenDayViewCount:0;a.thirtyDayViewCount=f?f.thirtyDayViewCount:0;a.escalationOwner=wj(b.escalationOwner)},ogb=function(a){if(a&1){var b=t();J(0,"div",0)(1,"div",1)(2,"div",2)(3,"label");R(4," Custom fields ");K()();J(5,"button",3);N("click",function(){var c=
u(b),d=P(2);return w(ngb(d,c))});R(6,"Edit custom fields");K()()()}},pgb=function(a){a&1&&(F(0,ogb,7,0,"div",0),U(1,"async"));if(a&2){var b;a=P();G((b=V(1,1,a.updatedIssueRows$))?0:-1,b)}},qgb=function(a,b){if(a&1){var c=t();J(0,"b-custom-field-editor",5);N("save",function(d){var e=u(c).$implicit,f=P(2);return w(f.updateCustomField(e.customFieldId,d))});K()}a&2&&(a=b.$implicit,b=P(2),I("issue",b.editableIssue)("field",a))},rgb=function(a){a&1&&(Pg(0,qgb,1,2,"b-custom-field-editor",4,Og),U(2,"async"));
a&2&&(a=P(),Qg(V(2,0,a.customFields$)))},sgb=function(a,b){b&&(b.helpText!=null&&(a.helpText=b.helpText),b.helpTextWithSelections!=null&&(a.helpTextWithSelections=b.helpTextWithSelections),b.shouldAutofocus!=null&&(a.shouldAutofocus=b.shouldAutofocus),b.autocompleteGroupingType!=null&&a.setAutocompleteGroupingType(b.autocompleteGroupingType),b.autocompleteHeader!=null&&a.setAutocompleteHeader(b.autocompleteHeader),b.autocompleteMaxResultsBeforeScroll!=null&&a.setAutocompleteMaxResultsBeforeScroll(b.autocompleteMaxResultsBeforeScroll),
b.density!=null&&a.setDensity(b.density),b.theme!=null&&a.setTheme(b.theme),b.showSuggestions!=null&&a.setShowSuggestions(b.showSuggestions))},vgb=function(a){if(a&1){var b=t();J(0,"div",2,0);N("peoplekitSearchBarSelectionChange",function(c){u(b);P().emailsChange.emit(tgb(c));return w()})("peoplekitSearchBarEnterKeyDown",function(){u(b);var c=P();return w(c.searchBarEnterKeyDown.emit())});K()}a&2&&(a=P(),uh("highlight-input",a.shouldHighlight),I("peoplekitSearchBarConfig",ugb(a.autocompleteConfigService,
[].concat(p(a.lastSelectedEmails))))("peoplekitSearchSessionOptions",a.sessionOptions),Lg("aria-label",a.ariaLabel))},wgb=function(a){a&1&&M(0,"input",3);a&2&&(a=P(),Lg("aria-label",Eh("",a.actionName," to ",a.title)),I("bContactAutocomplete","MULTI"))},xgb=function(a){if(a&1){var b=t();J(0,"b-peoplekit-searchbar",10,1);N("emailsChange",function(c){u(b);var d=P();return w(d.emailsChange(c))})("searchBarEnterKeyDown",function(){u(b);var c=P(),d=Q(1),e=Q(2);return w(c.textPopupSubmit(d,e))});K()}a&
2&&(a=P(),Lg("aria-label",Eh("",a.actionName," to ",a.title)))},ygb=function(a){a&1&&(J(0,"mat-error"),R(1),K());a&2&&(a=P(),Lg("aria-label",Eh("",a.title," error: ",a.invalidMessage)),x(),T(" ",a.invalidMessage," "))},zgb=function(a){if(a&1){var b=t();J(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 w(d.handleAddItems(c))})("onCancel",function(){u(b);var c=P();return w(c.closeAddPopup())});K()()()}a&2&&(a=P(),x(2),
I("actionName","addition")("inputValidator",a.inputValidator)("isAllowedToEditCollection",a.isAllowedToEditCollection)("title",a.title))},Cgb=function(a){if(a&1){var b=t();J(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"b-person-lookup-form",11);N("onAddItems",function(c){u(b);var d=P();Agb(c,d.onRemoveUsers);Bgb(d);return w()})("onCancel",function(){u(b);var c=P();return w(Bgb(c))});K()()()}a&2&&(a=P(),x(2),I("actionName","remove")("inputValidator",a.inputValidator)("isAllowedToEditCollection",
a.isAllowedToEditCollection)("title",a.title))},Dgb=function(a,b){if(a&1){var c=t();J(0,"b-hotlist-chip-smart",7);N("removeHotlist",function(){var d=u(c).$implicit,e=P(3);return w(e.removeHotlists([d]))});K()}a&2&&I("id",b.$implicit)},Egb=function(a){a&1&&Pg(0,Dgb,1,1,"b-hotlist-chip-smart",6,Og);a&2&&(a=P(2),Qg(a.hotlistIdSet))},Fgb=function(a){a&1&&(J(0,"div",5),R(1,"Multiple hotlists selected"),K())},Hgb=function(a){if(a&1){var b=t();J(0,"b-hotlist-recommendation-chip",9);U(1,"async");N("onAccept",
function(){u(b);var d=P().$implicit,e=P(3);return w(Ggb(e,d))});K()}if(a&2){a=P().$implicit;var c=P(3);I("hotlist",a.content==null?null:a.content.recommendedHotlist)("recommendationId",a.name)("issueId",V(1,4,c.issueId$))("updateHotlistsInstantly",!1)}},Igb=function(a,b){a&1&&F(0,Hgb,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)}},Kgb=function(a,b){a&1&&Pg(0,Igb,1,1,null,null,Jgb);a&2&&Qg(b)},Mgb=function(a){if(a&1){var b=t();J(0,"div",0)(1,"div",1)(2,"label");R(3,"Hotlists");K()();J(4,"div",2)(5,"button",3);N("click",function(){u(b);var d=P();return w(Lgb(d))});M(6,"mat-icon",4);R(7," Add ");K();F(8,Egb,2,0)(9,Fgb,2,0,"div",5);F(10,Kgb,2,0);U(11,"async");K()()}if(a&2){var c;a=P();x(8);G(a.areAllHotlistsEqual?8:9);x(2);G((c=V(11,2,a.recommendations$))?10:-1,c)}},Ngb=function(a){if(a&1){var b=t();J(0,"input",2,0);
U(2,"async");U(3,"async");N("peoplekitAutocompleteSelectionChange",function(c){u(b);var d=P(2);return w(d.parent.handlePeoplePickerSelection(c))});K()}a&2&&(a=P(2),th("top",V(2,6,a.autocompleteTop$)+"px")("left",V(3,8,a.autocompleteLeft$)+"px"),I("peoplekitAutocompleteConfig",a.getConfig())("peoplekitSearchSessionOptions",a.sessionOptions))},Ogb=function(a){a&1&&D(0,Ngb,4,10,"ng-template",1);a&2&&(a=P(),I("refreshable",a.refresh$))},Sgb=function(a){if(a&1){var b=t();J(0,"input",3);N("ngModelChange",
function(c){u(b);var d=P(2);return w(d.emailChange.emit(c))})("peoplekitAutocompleteSelectionChange",function(c){u(b);var d=P(2);return w(Pgb(d,c))})("focusin",function(){u(b);var c=P(2);return w(Qgb(c))})("focusout",function(c){u(b);var d=P(2);return w(Rgb(d,c))});K()}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),Lg("name",a.name)("aria-label",
a.ariaLabel)("cdkFocusInitial",a.cdkFocusInitial||null))},Tgb=function(a){if(a&1){var b=t();J(0,"input",4);N("ngModelChange",function(c){u(b);var d=P(2);return w(d.emailChange.emit(c))})("peoplekitAutocompleteSelectionChange",function(c){u(b);var d=P(2);return w(Pgb(d,c))})("focusin",function(){u(b);var c=P(2);return w(Qgb(c))})("focusout",function(c){u(b);var d=P(2);return w(Rgb(d,c))});K()}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),Lg("name",a.name)("aria-label",a.ariaLabel)("cdkFocusInitial",a.cdkFocusInitial||null))},Ugb=function(a){a&1&&F(0,Sgb,1,10,"input",1)(1,Tgb,1,10,"input",2);a&2&&(a=P(),G(a.asMatInput?0:1))},zr=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},Ar=function(a,b){for(var c in a)if(c.toLowerCase()===
b.toLowerCase())return a[c]},Vgb=function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase()){delete a[c];break}},Xgb=function(a){a=ej(a);for(var b=0;b<Wgb.length;++b){var c=Wgb[b],d=Ar(a,c);d&&(a["X-Goog-Upload-Header-"+c]=d,Vgb(a,c))}return a},Ygb=function(a){a=ej(a);Vgb(a,"X-Goog-Upload-Status");return a},$gb=function(a){if(a&1){var b=t();J(0,"button",3);N("fileSelected",function(c){u(b);var d=P();return w(Zgb(d,c))});M(1,"mat-icon",4);K()}a&2&&(a=P(),I("selectorType",a.SelectorType.MULTIPLE_FILE_SELECTION)("disableAutoUpload",
!0)("disabled",a.disabled))},ahb=function(a){if(a&1){var b=t();J(0,"button",5);N("fileSelected",function(c){u(b);var d=P();return w(Zgb(d,c))});M(1,"mat-icon",4);R(2," Add attachments ");K()}a&2&&(a=P(),I("selectorType",a.SelectorType.MULTIPLE_FILE_SELECTION)("disableAutoUpload",!0)("disabled",a.disabled))},bhb=function(a){a&1&&(J(0,"span"),R(1),U(2,"humanFileSize"),U(3,"humanFileSize"),K());if(a&2){a=P().$implicit;x();var b;xh(" ",V(2,2,a.transferredBytes)," of ",V(3,4,(b=a.size)!=null?b:0)," ")}},
chb=function(a){a&1&&(J(0,"span",7),R(1),K());a&2&&(a=P().$implicit,x(),T(" ",a.errorMessage," "))},dhb=function(a){a&1&&(J(0,"span",7),R(1),U(2,"humanFileSize"),K());if(a&2){a=P().$implicit;x();var b;T(" ",V(2,1,(b=a.size)!=null?b:0)," ")}},ehb=function(a,b){if(a&1){var c=t();J(0,"div",2)(1,"div",3);M(2,"mat-icon",4);J(3,"span",5);R(4);K();J(5,"span",6);F(6,bhb,4,6,"span");F(7,chb,2,1,"span",7);F(8,dhb,3,3,"span",7);K()();J(9,"button",8);N("click",function(){var d=u(c).$implicit,e=P(2);return w(e.cancel(d))});
K()()}a&2&&(a=b.$implicit,b=P(2),uh("attachment-error",a.state===b.uploadStates.ERROR),x(3),I("matTooltip",a.name),x(),wh(a.name),x(2),G(a.state===b.uploadStates.UPLOADING?6:-1),x(),G(a.state===b.uploadStates.ERROR?7:-1),x(),G(a.state===b.uploadStates.COMPLETE?8:-1),x(),I("matTooltip",a.state===b.uploadStates.UPLOADING?"Cancel upload":"Remove attachment"),Lg("aria-label","Remove attachment"+a.name))},fhb=function(a){a&1&&(J(0,"div",0),Pg(1,ehb,10,9,"div",1,Og),K());a&2&&(a=P(),x(),Qg(a.uploads))},
Cr=function(a){Br.call(this,a||"all")},hhb=function(a){ghb.call(this,a)},ihb=function(a){this.action=a;this.wfv=!1},jhb=function(a,b){ihb.call(this,"set-drive-options");this.appId=a;this.appOrigin=b},khb=function(a){ihb.call(this,"visibility");this.visible=a},lhb=function(a){a=a&&a.getWindow()||window;return a.gadgets&&a.gadgets.rpc},nhb=function(a,b){var c=b&&b.getWindow()||window;if(lhb(b))a();else if(mhb)mhb.push(a);else var d=mhb=[a],e=c.setInterval(function(){if(lhb(b)){c.clearInterval(e);for(var f=
0;f<d.length;f++)d[f]();mhb=null}},100)},ohb=function(a,b,c){Dr.call(this,a,b,c)},rhb=function(a,b){var c=new phb(a);Er(b,c);var d={passive:!1};b.listen(c,"mousewheel",function(e){return void qhb(a,e)},d).listen(a,"scroll",function(e){return void qhb(a,e)},d)},qhb=function(a,b){var c;a:{for(c=b.target;c;){if(c.nodeType==1){var d=Fr(c,"overflowY");if(d=="auto"||d=="scroll")break a}c=c.parentNode}c=null}if(!c||!shb(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()},Lr=function(a,b,c,d,e,f,h,k,q){k=k===void 0?!1:k;q=q===void 0?!1:q;Dr.call(this,void 0,void 0,void 0);Dr.call(this,f?f+" picker modal-dialog":"picker modal-dialog",!0,c);thb(a,"protocol");this.iframeManager_=new uhb;this.targetId_=vhb();this.rpcToken_=vhb();a=Gr(a);Hr(a,"hostId");c=Hr(a,"parent");this.useGapi_=!q&&!0||(c==null?void 0:c.includes("onepick.corp.google.com"));k&&Ir(a,"fv2","true");this.setUrl(a.toString());
this.preferredDialogWidth_=d;this.preferredDialogHeight_=e;d!==void 0||e!==void 0?d=!0:(d=Hr(Gr(a.toString()),"hostId"),whb||(whb=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),d=!whb.has(d));this.autoSizeDialog_=d;this.gadgetsDomHelper_=h||this.getDomHelper();b&&(h=this.gadgetsDomHelper_,b=Hr(Gr(this.url_),"grugl")=="true"?xhb:yhb,lhb(h)||(h=h||Gp(document),d=h.createElement("SCRIPT"),jd(d,
b),d.type="text/javascript",h.document_.body.appendChild(d)));a=a.toString();b=null;h=a.indexOf("/picker?");h>-1?b=a.substring(0,h+8-1):ha(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()):Zda(this.buttonEl_,Jr),Kr(this.buttonEl_,!!this.buttons_))},zhb=function(a){if(a&1){var b=t();J(0,"div",0);M(1,"mat-icon",1);J(2,"div",2);R(3," Comment and vote +1 on this issue to increase visibility ");
K();J(4,"div",3)(5,"button",4);N("click",function(c){u(b);var d=P();return w(d.onClick(c))});R(6,"Comment and vote +1");K()()()}a&2&&(x(),I("matTooltip","The +1 button is located in the top right corner of the issue details page"))},Ahb=function(a){if(a&1){var b=t();J(0,"b-plus-one-comment-callout",7);N("onSubmitComment",function(c){u(b);P().onSubmit.emit(c);return w()});K()}a&2&&(a=P(),I("isPlusOneText",a.comment.value.trim()==="+1"))},Bhb=function(a){if(a&1){var b=t();J(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 w()})("onCloneBlob",function(c){u(b);var d=P(2);return w(d.addUpload(c))});K()}a&2&&(a=P(2),I("disabled",a.attachmentsDisabled))},Chb=function(a){if(a&1){var b=t();J(0,"button",14);N("click",function(){u(b);var c=P(3);return w(c.onRestrict.emit())});M(1,"mat-icon",15);K()}a&2&&(a=P(3),I("disabled",
a.attachmentsDisabled))},Dhb=function(a){if(a&1){var b=t();J(0,"button",16);N("click",function(){u(b);var c=P(3);return w(c.onRestrict.emit())});M(1,"mat-icon",15);R(2);K()}a&2&&(a=P(3),x(2),T(" ",a.getRestrictedLabel()," "))},Ehb=function(a){a&1&&(J(0,"div",10),F(1,Chb,2,1,"button",12)(2,Dhb,3,1,"button",13),K());a&2&&(a=P(2),x(),G(a.isRestricted()?2:1))},Fhb=function(a){if(a&1){var b=t();J(0,"div",6);dh(1,2,[1,"goog-inline-block"]);J(2,"b-attachment-selector",8);N("onSelect",function(c){u(b);var d=
P();return w(d.uploadFile(c))});K();F(3,Bhb,1,1,"b-drive-attachment",9);F(4,Ehb,3,1,"div",10);K()}a&2&&(a=P(),x(2),I("disabled",a.attachmentsDisabled),x(),G(a.currentTracker?-1:3),x(),G(a.showRestrictionOptions?4:-1))},Ghb=function(a){a&1&&(J(0,"div"),M(1,"b-live-preview",17),K());a&2&&(a=P(),x(),I("comment",a.comment.value)("issueId",a.issueId)("audience",a.audience)("formattingMode",a.comment.formattingMode))},Hhb=function(a){a&1&&(J(0,"p",6),R(1),J(2,"a",14),R(3," Learn more "),K()());a&2&&(a=
P(4),x(),T(" Your comment contains restricted words: ",Pq(a.bannedWordsChecker),". Review your comment before posting. "))},Ihb=function(a){if(a&1){var b=t();J(0,"div",7)(1,"b-recaptcha",15);N("onUpdate",function(c){u(b);var d=P(4);return w(d.recaptchaResponse$.next(c))});K()()}},Jhb=function(a){a&1&&Yg(0)},Khb=function(a){a&1&&D(0,Jhb,1,0,"ng-container",16);a&2&&(P(4),a=Q(3),I("ngTemplateOutlet",a))},Mhb=function(a){if(a&1){var b=t();J(0,"span")(1,"mat-checkbox",17);U(2,"async");U(3,"async");N("change",
function(){u(b);var c=P(4);return w(Lhb(c))});R(4," CC Me ");K()()}a&2&&(a=P(4),x(),I("checked",!!V(2,2,a.autoCcOnComment$))("disabled",!!V(3,4,a.isCurrentUserCCd$)))},Nhb=function(a){a&1&&(J(0,"mat-checkbox",18),R(1," CC Me "),K());a&2&&I("checked",!0)("disabled",!0)},Ohb=function(a){a&1&&(J(0,"span",10),F(1,Nhb,2,2,"mat-checkbox",18),U(2,"async"),K());a&2&&(a=P(4),x(),G(V(2,1,a.isCurrentUserCCd$)?1:-1))},Phb=function(a){if(a&1){var b=t();J(0,"b-markdown-toggle",19);N("change",function(c){u(b);var d=
P();return w(d.formattingMode=c)});K()}a&2&&(a=P(),I("initialValue",a.formattingMode))},Qhb=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",V(1,3,a.issueAccessLimitLevel$)))},Rhb=function(a,b){if(a&1){var c=t();J(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 v=Q(1);return w(W2a(v,"editpage-hotkey"))})("onChange",
function(){u(c);var v=P(3);return w(v.saveCommentDraft())})("onFocusEvent",function(){u(c);var v=P(3);return w(v.wasFocused=!0)})("onSubmit",function(v){u(c);var A=P(3);return w(A.submitCommentBox(v))})("onRestrict",function(){u(c);var v=P(3);return w(v.showNewContentJudgementDialog())})("onPlusOneTextEntered",function(v){u(c);var A=P(3);return w(A.isPlusOneText$.next(v))});F(8,Hhb,4,1,"p",6);U(9,"async");F(10,Ihb,2,0,"div",7);U(11,"async");J(12,"div",8);F(13,Khb,1,1,"ng-container");J(14,"div",9);
dh(15);F(16,Mhb,5,6,"span");U(17,"async");U(18,"async");F(19,Ohb,3,3,"span",10);U(20,"async");U(21,"async");F(22,Phb,1,1,"b-markdown-toggle",11);U(23,"async");F(24,Qhb,2,5,"b-access-limits-chip",12);U(25,"async");K();M(26,"b-issue-visibility-chip",13);K()()}if(a&2){a=P(2);var d=P(),e,f,h,k,q;I("hotkey",d.HOTKEYS.FOCUS_COMMENT_BOX)("supportsPreview",!0)("issueId",a.issueId)("comment",b)("placeholder",(e=V(2,19,d.commentPlaceholderText$))!=null?e:void 0)("judgementForNewContent",(f=V(3,21,d.judgementForNewContent$))!=
null?f:void 0)("audience",(h=V(4,23,d.audience$))!=null?h:void 0)("disabled",V(5,25,d.commentBoxEnabled$)===!1)("isPlusOneCalloutEnabled",(k=V(6,27,d.isPlusOneCalloutEnabled$))!=null?k:!1)("warn",(q=V(7,29,d.bannedWordsChecker.showWarning$))!=null?q:!1)("isLiteralModeSupported",!0);x(8);G(V(9,31,d.bannedWordsChecker.showWarning$)?8:-1);x(2);G(V(11,33,d.showRecaptcha$)?10:-1);x(3);G(d.showActionsAfterPreview?-1:13);x(3);G(!V(17,35,d.isCurrentUserCCd$)&&V(18,37,d.hasAclToEdit$)?16:-1);x(3);G(V(20,39,
d.isCurrentUserCCd$)||!V(21,41,d.hasAclToEdit$)?19:-1);x(3);G(V(23,43,d.hasAclToComment$)?22:-1);x(2);G(V(25,45,d.isAccessLimited$)?24:-1);x(2);I("issueId",d.issueId)}},Shb=function(a){a&1&&Yg(0)},Thb=function(a){a&1&&D(0,Shb,1,0,"ng-container",16);a&2&&(P(3),a=Q(3),I("ngTemplateOutlet",a))},Uhb=function(a){a&1&&(J(0,"h3",2),R(1,"Add comment"),K(),J(2,"div",3),U(3,"async"),F(4,Rhb,27,47,"b-comment-box",4),U(5,"async"),K(),F(6,Thb,1,1,"ng-container"));if(a&2){var b;a=P(2);x(2);uh("empty",V(3,6,a.empty$))("never-focused",
!a.wasFocused);x(2);G((b=V(5,8,a.comment$))?4:-1,b);x(2);G(a.showActionsAfterPreview?6:-1)}},Vhb=function(a,b){a&1&&F(0,Uhb,7,10);a&2&&G(b.isDeleted?-1:0)},Whb=function(a){if(a&1){var b=t();J(0,"b-button",21);U(1,"async");U(2,"async");U(3,"async");N("onAction",function(d){u(b);var e=P(2);return w(e.submitCommentBox(d))})("click",function(d){u(b);var e=P(2);return w(e.submitCommentBox(d))});R(4);U(5,"async");K()}if(a&2){a=P(2);var c;I("format",(c=V(1,4,a.commentButtonStyle$))!=null?c:"fill")("disabled",
V(2,6,a.commentButtonEnabled$)===!1)("color",V(3,8,a.bannedWordsChecker.showWarning$)?"warn":"primary");x(4);T(" ",V(5,10,a.bannedWordsChecker.showWarning$)?"Comment Anyway":"Comment"," ")}},Xhb=function(a){a&1&&F(0,Whb,6,12,"b-button",20);a&2&&(a=P(),G(a.showCommentButton?0:-1))},Yhb=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P(3),x(),T(" ",a.removeSelfActionDescription," "))},Zhb=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P(3),x(),T(" ",a.includeSelfActionDescription," "))},$hb=function(a){if(a&
1){var b=t();J(0,"div",20);N("click",function(){u(b);var c=P(2);return w(c.userInclusionToggle.emit())})("keydown.enter",function(c){u(b);P(2).userInclusionToggle.emit();c.stopPropagation();c.preventDefault();return w()})("keydown.space",function(c){u(b);P(2).userInclusionToggle.emit();c.stopPropagation();c.preventDefault();return w()});F(1,Yhb,2,1,"span");F(2,Zhb,2,1,"span");K()}a&2&&(a=P(2),uh("disabled",!!a.isSaving),I("matTooltip",a.isCurrentUserInCollection?a.removeSelfActionLongDescription:
a.includeSelfActionLongDescription),Lg("aria-disabled",!!a.isSaving)("aria-label",a.isCurrentUserInCollection?a.removeSelfActionLongDescription:a.includeSelfActionLongDescription),x(),G(a.isCurrentUserInCollection?1:-1),x(),G(!a.isCurrentUserInCollection&&a.isAllowedToEditCollection?2:-1))},aib=function(a){a&1&&(J(0,"div",18),F(1,$hb,3,7,"div",19),K());a&2&&(a=P(),x(),G(a.isCurrentUserInCollection||!a.isCurrentUserInCollection&&a.isAllowedToEditCollection?1:-1))},bib=function(a){if(a&1){var b=t();
J(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 w(d.handleAddItems(c))})("onCancel",function(){u(b);var c=P();return w(c.closeAddPopup(!0))});K()()()}a&2&&(a=P(),x(2),I("actionName","addition")("inputValidator",a.inputValidator)("isAllowedToEditCollection",a.isAllowedToEditCollection)("title",a.title))},cib=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=V(1,5,b.teamId$))!=null?c:"")("enableSmallChip",!0)("enableGroupIcon",!0)}},dib=function(a){a&1&&M(0,"b-icon",24)},eib=function(a){a&1&&(J(0,"b-person-hovercard",25),R(1),K());a&2&&(a=P().$implicit,I("email",a),x(),T(" ",a," "))},fib=function(a){if(a&1){var b=t();J(0,"button",27);U(1,"async");N("click",function(){u(b);var c=P(2);return w(c.toggleAccessLimits.emit())});M(2,"b-icon",28);U(3,"async");K()}a&2&&(a=P(2),I("disabled",!V(1,3,a.hasAclToAdmin$)),x(2),uh("disabled-icon",
!V(3,5,a.hasAclToAdmin$)))},gib=function(a){if(a&1){var b=t();J(0,"button",30,4);N("click",function(){u(b);var d=P(2).$index,e=P();return w(e.removeItem(d))});K()}if(a&2){a=P(2).$implicit;var c=P();Lg("aria-label",Eh("Remove ",a," from ",c.title));I("matTooltip","Remove item")}},hib=function(a){a&1&&F(0,gib,2,4,"button",29);a&2&&(a=P(2),G(a.isAllowedToEditCollection?0:-1))},iib=function(a,b){a&1&&(J(0,"div",10)(1,"div",22),F(2,cib,2,7,"b-user-membership-chip",23),F(3,dib,1,0,"b-icon",24),U(4,"async"),
F(5,eib,2,2,"b-person-hovercard",25),K(),F(6,fib,4,7,"button",26),U(7,"async"),Mg(8,hib,1,1),K());if(a&2){var c,d;a=b.$implicit;b=P();x(2);G(b.enableTeamAnnotations?2:-1);x();G(!b.enableTeamAnnotations&&((c=V(4,4,b.groups$))==null?0:c.has(a))?3:-1);x(2);G(b.enableTeamAnnotations?-1:5);x();G(b.toggleAccessLimits.observed&&((d=V(7,6,b.groups$))==null?0:d.has(a))?6:8)}},jib=function(a){a&1&&(J(0,"button",12),R(1,"Add "),K());if(a&2){a=P();var b=Q(3);Lg("aria-label",Dh("Add item to ",a.title));I("dialogLabel",
Dh("Add item to ",a.title))("matTooltip",Dh("Add item to ",a.title))("xapInlineDialogClick",b)("overlayPositions",a.overlayPosition)}},kib=function(a){a&1&&Yg(0)},lib=function(a,b){return{originX:a,originY:b}},mib=function(a,b){return{overlayX:a,overlayY:b}},oib=function(a){a&1&&Yg(0,9);if(a&2){a=P(2);P();var b=Q(5);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Hh(2,nib,a))}},pib=function(a){a&1&&(J(0,"div",5),M(1,"mat-icon",6),J(2,"div",7),Yg(3,8),F(4,oib,1,4,"ng-container",9),K()());if(a&2){a=
P(2);var b=Q(3);x(3);I("ngTemplateOutlet",b);x();G(a.isIssueSummaryExpanded?4:-1)}},qib=function(a,b){a&1&&F(0,pib,5,2,"div",5);a&2&&(a=P(),G(b===a.GENERATING||b===a.SUMMARY_VISIBLE?0:-1))},rib=function(a){a&1&&(J(0,"div"),R(1," AI-generated summaries may contain inaccurate or offensive information that doesn't represent Google's views. Buganizer and other AI API usage does not store or log the issue's contents for any training purposes. "),K())},sib=function(a){a&1&&M(0,"mat-icon",15)},tib=function(a){a&
1&&M(0,"mat-icon",16)},uib=function(a){if(a&1){var b=t();J(0,"span",10)(1,"h4",11);R(2," AI-generated summary ");J(3,"xap-bubble",12)(4,"xap-icon-trigger");M(5,"mat-icon",13);K();D(6,rib,2,0,"ng-template",null,4,Lh);K()();J(8,"button",14);N("click",function(){u(b);var d=P();return w(d.isIssueSummaryExpanded=!d.isIssueSummaryExpanded)});F(9,sib,1,0,"mat-icon",15)(10,tib,1,0,"mat-icon",16);K()()}if(a&2){a=Q(7);var c=P();x(3);I("panelTemplate",a);x(5);Lg("aria-expanded",c.isIssueSummaryExpanded);x();
G(c.isIssueSummaryExpanded?9:10)}},vib=function(a){a&1&&M(0,"b-spinner")},xib=function(a,b){a&1&&Yg(0,9);a&2&&(P(3),a=Q(9),I("ngTemplateOutlet",a)("ngTemplateOutletContext",Hh(2,wib,b)))},yib=function(a){a&1&&(F(0,xib,1,4,"ng-container",9),U(1,"async"));if(a&2){var b;a=P(2);G((b=V(1,1,a.summary$))?0:-1,b)}},zib=function(a,b){a&1&&F(0,vib,1,0,"b-spinner")(1,yib,2,3);a&2&&(a=b.stage,b=P(),G(a===b.GENERATING?0:a===b.SUMMARY_VISIBLE?1:-1))},Aib=function(a){a&1&&M(0,"b-markdown-format-presenter",17);a&
2&&(a=P().summary,I("content",a.formattedSummary))},Bib=function(a){a&1&&(J(0,"div",18),R(1),K());a&2&&(a=P().summary,x(),T(" ",a.summary," "))},Cib=function(a,b){a&1&&F(0,Aib,1,1,"b-markdown-format-presenter",17)(1,Bib,2,1,"div",18);a&2&&G(b.summary.formattedSummary?0:1)},Dib=function(a){if(a&1){var b=t();Yg(0,9);J(1,"div",19);M(2,"span",20);J(3,"div",21)(4,"button",22);N("click",function(){u(b);var e=P().summary,f=P();return w(f.copySummary(e))});M(5,"mat-icon",23);K();J(6,"button",24);N("click",
function(){u(b);var e=P().summary,f=P();return w(f.openFeedbackDialog(e))});M(7,"mat-icon",25);K();J(8,"button",26);N("click",function(){u(b);var e=P().summary,f=P();return w(f.trackThumbsUp(e))});M(9,"mat-icon",27);K();J(10,"button",28);N("click",function(){u(b);var e=P().summary,f=P();return w(f.trackThumbsDown(e))});M(11,"mat-icon",29);K()()()}if(a&2){a=P().summary;var c=P(),d=Q(7);I("ngTemplateOutlet",d)("ngTemplateOutletContext",Hh(8,wib,a));x(8);I("disabled",c.hasReacted);x();uh("has-reacted-icon",
c.thumbsUpClicked);x();I("disabled",c.hasReacted);x();uh("has-reacted-icon",c.thumbsDownClicked)}},Eib=function(a){if(a&1){var b=t();J(0,"div",19)(1,"div",30);R(2," Issue can not be summarized for now. ");K();J(3,"div",21)(4,"button",31);N("click",function(){u(b);var c=P().summary,d=P();return w(d.openFeedbackDialog(c))});M(5,"mat-icon",32);K()()()}},Fib=function(a,b){a&1&&F(0,Dib,12,10)(1,Eib,6,0,"div",19);a&2&&G(b.summary.summary?0:1)},Gib=function(a,b){a&1&&M(0,"b-user-image",0);a&2&&I("email",
b.$implicit)},Hib=function(a,b){if(a&1){var c=t();J(0,"button",2);N("click",function(){u(c);var d=P(2);return w(d.limit+=d.LIMIT_INCREMENT)});R(1);K()}a&2&&(I("title",Dh("",b," more participant(s). Click to show.")),x(),T("",b," more"))},Iib=function(a){a&1&&F(0,Hib,2,3,"button",1);if(a&2){var b;a=P();G((b=a.emails.length-a.limit)?0:-1,b)}},Kib=function(a){a&1&&(J(0,"a",3),R(1),K());a&2&&(a=P(2),I("href",a.makeCritiqueUrl(Gh(2,Jib),a.pending),hf),x(),T("(",a.pending.length," pending)"))},Lib=function(a,
b){a&1&&(J(0,"div",0),M(1,"img",1),R(2," \u00a0 "),J(3,"a",2),R(4),K(),R(5," \u00a0 "),F(6,Kib,2,3,"a",3),K());a&2&&(a=P(),x(3),I("href",a.makeCritiqueUrl(a.submitted,a.pending),hf),x(),T("",b," CLs"),x(2),G(a.pending.length>0?6:-1))},Mib=function(a){a&1&&(J(0,"a",2),R(1),K());a&2&&(a=P(2),I("routerLink",a.searchPageUrl),x(),T(" ",a.count," Issues "))},Nib=function(a){a&1&&F(0,Mib,2,2,"a",2);a&2&&(a=P(),G(a.count!=null?0:-1))},Oib=function(a){a&1&&R(0);a&2&&(a=P(),T(" ",a.count," Issues "))},Pib=
function(){},Qib=function(a){a&1&&(Sg(0,"span",1),Ge(),Sg(1,"svg",2),Ug(2,"path",3),Tg()())},Rib=function(a){a&1&&(J(0,"div",0),M(1,"img",2),K());a&2&&(a=P(2),x(),I("src",a.SPACE_EMPTY_STATE,hf))},Sib=function(a,b){a&1&&(J(0,"mat-panel-title"),R(1),K());a&2&&(a=P().$index,x(),T(" ",b[a]," "))},Tib=function(a){a&1&&M(0,"mat-panel-title",3)},Uib=function(a,b){a&1&&(J(0,"mat-expansion-panel")(1,"mat-expansion-panel-header"),F(2,Sib,2,1,"mat-panel-title"),U(3,"async"),Mg(4,Tib,1,0,"mat-panel-title",3),
J(5,"mat-panel-description"),R(6),K()(),M(7,"b-issues-table",4),K());if(a&2){var c;a=b.$implicit;b=P(3);x(2);G((c=V(3,5,b.titles$))?2:4,c);x(4);T("",a.length," issues");x();I("issueIds",a)("tableColumns",b.tableColumns)("options",b.tableOptions)}},Vib=function(a){a&1&&(J(0,"div",1),Pg(1,Uib,8,7,"mat-expansion-panel",null,Og),K());a&2&&(a=P(),x(),Qg(a))},Wib=function(a,b){a&1&&F(0,Rib,2,1,"div",0)(1,Vib,3,0,"div",1);a&2&&G(b.length===0?0:1)},Xib=function(a){a&1&&(J(0,"div",2,1)(2,"div",5)(3,"span",
6),R(4),K()()());a&2&&(a=P(),x(4),wh(a.valueIndicatorText))},Yib=function(a,b){a&1&&M(0,"div");if(a&2){a=b.$implicit;b=b.$index;var c=P(3);vh(a===0?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive");th("transform",c._calcTickMarkTransform(b))}},Zib=function(a){a&1&&Pg(0,Yib,1,4,"div",8,Ng);a&2&&(a=P(2),Qg(a._tickMarks))},$ib=function(a){a&1&&(J(0,"div",6,1),F(2,Zib,2,0),K());a&2&&(a=P(),x(2),G(a._cachedWidth?2:-1))},ajb=function(a){a&1&&M(0,"mat-slider-visual-thumb",7);a&2&&(a=P(),
I("discrete",a.discrete)("thumbPosition",1)("valueIndicatorText",a.startValueIndicatorText))},bjb=function(a){a&1&&(J(0,"span"),R(1,"All Components"),K())},cjb=function(a){a&1&&(J(0,"span"),R(1,"Selected Components"),K())},djb=function(a,b){if(a&1){var c=t();J(0,"button",19);N("click",function(d){var e=u(c).$implicit;P().onCheckboxChange(e);return w(d.stopPropagation())});J(1,"mat-checkbox",27);R(2);K()()}a&2&&(a=b.$implicit,b=P(),x(),I("checked",b.selectComponents$.has(a)),x(),T(" ",a.name," "))},
ejb=function(a,b){if(a&1){var c=t();J(0,"button",19);N("click",function(){var d=u(c).$implicit;P().selectedDateRangeFilter$.next(d);return w()});R(1);K()}a&2&&(a=b.$implicit,x(),T(" ",a.displayAs," "))},fjb=function(a,b){if(a&1){var c=t();J(0,"div",6)(1,"a",7);R(2);U(3,"async");K();J(4,"button",8);N("click",function(){var e=u(c),f=P(),h=P();Mr(h.router,Dq.viewTriage.makeHref(f,e,Nr[h.phase$.value]));return w()});R(5," View issues ");M(6,"mat-icon",9);K()()}if(a&2){a=P();var d=P();x();I("href",d.ROUTES.viewTriage.makeHref(a,
b,d.phaseToUrlSlug[d.phase$.value]),hf);x();T(" ",V(3,2,d.heading$)," ")}},gjb=function(a){a&1&&(F(0,fjb,7,4,"div",6),U(1,"async"));if(a&2){var b;a=P();G((b=V(1,1,a.triageId$))?0:-1,b)}},hjb=function(a,b){a&1&&R(0);a&2&&(a=P(),xh(" ",b.length,"",b.length===a.FETCH_SIZE?"+":""," "))},ijb=function(a){a&1&&R(0," ... ")},jjb=function(a,b){a&1&&M(0,"i",11);if(a&2){a=b.$implicit;b=b.$index;var c=P(2);a=Dh("height: ",a*100,"%;");Zma(Xma,Yma,a,!1);I("title",Eh("Modified ",b," days ago: ",c[b]," Issues"))}},
kjb=function(a,b){a&1&&Pg(0,jjb,1,6,"i",10,Ng);a&2&&Qg(b)},ljb=function(a){a&1&&(F(0,kjb,2,0),U(1,"async"));if(a&2){var b;a=P();G((b=V(1,1,a.ratioDaysOld$))?0:-1,b)}},njb=function(a){return(mjb-a/1E3)/864E5},qjb=function(a){var b=a.match(/\(.*\)/);if(a.match(/'.*'/)||a.match(/".*"/)||b)return{complexSyntax:!0};a=a.split(/\s+/).filter(Boolean);b=a.filter(ojb).length;var c=a.filter(function(d){return!ojb(d)}).filter(pjb).length;return{filters:b,text:a.length-b-c,resourceIds:c}},pjb=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:rjb(a)},ojb=function(a){return!!a.match(/\w:\w/g)},sjb=function(a,b){a&1&&(J(0,"span",5),R(1),K());a&2&&(I("title",b.description),x(),wh(b.name))},tjb=function(a){a&1&&(J(0,"code",6),R(1),U(2,"async"),K());a&2&&(a=P(),x(),wh(V(2,1,a.id$)))},ujb=function(a,b){a&1&&(J(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),K());if(a&2){a=P();var c=P();x();I("phase",c.TriagePhase.NEW)("teamId",a)("triageId",b);x();I("phase",c.TriagePhase.CONFIRMED)("teamId",a)("triageId",b);x();I("phase",c.TriagePhase.IN_PROGRESS)("teamId",a)("triageId",b);x();I("phase",c.TriagePhase.FIXED)("teamId",a)("triageId",b);x();I("phase",c.TriagePhase.WONT_FIX)("teamId",a)("triageId",b)}},vjb=function(a){a&1&&(F(0,ujb,6,15,"div",7),U(1,"async"));if(a&2){var b;a=P();G((b=V(1,1,a.triageId$))?0:-1,b)}},wjb=function(a){if(!a.unlinkifiedComment)return Xj("Can't getClMetadata from an event with no unlinkifiedComment",
a),{};if(swa(a))if(Al(a)){var b=a.unlinkifiedComment;var c=b.trim().split("\n");if(a.formattingMode==="MARKDOWN"){var d,e;var f=(e=(d=c[5])==null?void 0:d.trim())!=null?e:"";var h;c=(h=b.match(/^Link: &nbsp;&nbsp;&nbsp;&nbsp; (.+)/m))==null?void 0:h[1];var k;var q=(k=b.match(/^Author: .* \\<(.+)\\>/m))==null?void 0:k[1]}else{var v,A;f=(A=(v=c[7])==null?void 0:v.trim())!=null?A:"";var E,H;c=(H=(E=c[c.length-1])==null?void 0:E.trim())!=null?H:"";var L;q=(L=b.match(/^Author: .* <(.+)>/m))==null?void 0:
L[1]}f||Xj("failed to parse a title from GitWatcher comment, which is unexpected.",b);c||Xj("failed to parse a link from GitWatcher comment, which is unexpected.",b);q?q=q.endsWith("@google.com")?q.split("@")[0]:q:Xj("failed to parse an author from GitWatcher comment, which is unexpected.",b);b={author:q,title:f,link:c,reviewer:void 0,delta:void 0}}else b={};else{k=a.unlinkifiedComment;h=k.trim().split("\n");var O,S;L=(S=(O=h[0])==null?void 0:O.trim())!=null?S:"";var aa;h=(aa=h[2])==null?void 0:aa.trim();
E=(q=L.match(/^Change\s+(\d+)/))==null?void 0:q[1];E==null&&Xj("failed to parse an id from Critique comment, which is unexpected.",k);L=(c=L.match(/^Change.*by (\S+)@/))==null?void 0:c[1];L==null&&Xj("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:Mj(E),author:L,title:h,reviewer:c,delta:Mj(f),link:"cl/"+E}}return b},xjb=function(a){var b;return(b=wjb(a).id)!=null?
b:0},yjb=function(a){var b;return(b=wjb(a).link)!=null?b:""},zjb=function(a){return[].concat(p(a.preDiffs),p(a.postDiffs)).map(function(b){return"Changed "+(b.displayName||b.name)+" "+(b.newValue?"to "+b.newValue:"")}).join("\n")},Bjb=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(zl(a)||Al(a)){if(a=wjb(a).author)return a.includes("@")?a:a+"@google.com"}else if(f===
"product-feedback-gathering@prod.google.com")return Ajb(a,"reporter")||f;return f},Cjb=function(a,b){var c,d,e;return(e=[].concat(p((c=a.preDiffs)!=null?c:[]),p((d=a.postDiffs)!=null?d:[])).find(function(f){return f.name===b}))==null?void 0:e.oldValue},Ajb=function(a,b){var c,d,e;return(e=[].concat(p((c=a.preDiffs)!=null?c:[]),p((d=a.postDiffs)!=null?d:[])).find(function(f){return f.name===b}))==null?void 0:e.newValue},Djb=function(a){if(a==null)return"default";if(ul(a)&&a.commentNumber===1)return"create";
if(zl(a)||Al(a))return"changelist";var b,c=(b=a.preDiffs)!=null?b:[],d;b=(d=a.postDiffs)!=null?d:[];c=new Set([].concat(p(c),p(b)).map(function(f){return f.name}));if(c.has("statusUpdate"))return"statusUpdate";if(c.has("assignee")){var e;c=(e=a.userPerformingActionUser)==null?void 0:e.emailAddress;e=Ajb(a,"assignee");a=Cjb(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":ul(a)?
"comment":c.has("component")?"component":"default"},Ejb=function(a){a&1&&(R(0," created "),J(1,"b-issue-reference-widget",1),R(2),K(),M(3,"b-formatted-date-time",2));a&2&&(a=P(),x(),I("href",Fq(a.event.issueId))("issueId",a.event.issueId),x(),T("b/",a.event.issueId),x(),I("timestamp",a.event.modifiedDate))},Fjb=function(a){a&1&&M(0,"changelist-link-plain",3);a&2&&(a=P(2),I("id",a.getChangelistNumber(a.event)))},Gjb=function(a){a&1&&(J(0,"a",4),R(1),K());a&2&&(a=P(2),I("href",a.getLink(a.event),hf),
x(),wh(a.getLink(a.event)))},Hjb=function(a,b){a&1&&(R(0," \u2014 "),J(1,"span",5),R(2),K());a&2&&(x(),I("title",b),x(),wh(b))},Ijb=function(a){a&1&&(R(0," submitted "),F(1,Fjb,1,1,"changelist-link-plain",3),F(2,Gjb,2,2,"a",4),M(3,"b-formatted-date-time",2),F(4,Hjb,3,2));if(a&2){var b;a=P();x();G(a.isCritiqueComment(a.event)?1:-1);x();G(a.isFullGerritComment(a.event)?2:-1);x();I("timestamp",a.event.modifiedDate);x();G((b=a.getClMetadata(a.event).title)?4:-1,b)}},Jjb=function(a){a&1&&(R(0," commented on "),
J(1,"b-issue-reference-widget",1),R(2),K(),M(3,"b-formatted-date-time",2));a&2&&(a=P(),x(),I("href",Fq(a.event.issueId))("issueId",a.event.issueId),x(),T("b/",a.event.issueId),x(),I("timestamp",a.event.modifiedDate))},Kjb=function(a){a&1&&(R(0," set priority "),M(1,"b-issue-priority-display",6),R(2," on "),J(3,"b-issue-reference-widget",1),R(4),K(),M(5,"b-formatted-date-time",2));a&2&&(a=P(),x(),I("issuePriority",a.toIssuePriority(a.getNewDiffValue(a.event,"priority"))),x(2),I("href",Fq(a.event.issueId))("issueId",
a.event.issueId),x(),T("b/",a.event.issueId),x(),I("timestamp",a.event.modifiedDate))},Ljb=function(a,b){a&1&&(R(0," set status "),J(1,"span"),R(2),K(),R(3," on "));a&2&&(a=P(2),x(),vh(Dh("chippy xs status-",a.STATUS_CODE_FROM_DISPLAY_STRING[b])),x(),T(" ",b," "))},Mjb=function(a){a&1&&(F(0,Ljb,4,4),J(1,"b-issue-reference-widget",1),R(2),K(),M(3,"b-formatted-date-time",2));if(a&2){var b;a=P();G((b=a.getNewDiffValue(a.event,"status"))?0:-1,b);x();I("href",Fq(a.event.issueId))("issueId",a.event.issueId);
x();T("b/",a.event.issueId);x();I("timestamp",a.event.modifiedDate)}},Njb=function(a,b){a&1&&(R(0," \u2014 "),J(1,"span",7),R(2),K());a&2&&(x(),I("title",b),x(),wh(b))},Ojb=function(a){a&1&&(R(0," set status update on "),J(1,"b-issue-reference-widget",1),R(2),K(),M(3,"b-formatted-date-time",2),F(4,Njb,3,2));if(a&2){var b;a=P();x();I("href",Fq(a.event.issueId))("issueId",a.event.issueId);x();T("b/",a.event.issueId);x();I("timestamp",a.event.modifiedDate);x();G((b=a.event.statusUpdate==null?null:a.event.statusUpdate.updateText)?
4:-1,b)}},Pjb=function(a){a&1&&(R(0," assigned "),J(1,"b-issue-reference-widget",1),R(2),K(),R(3," to "),M(4,"b-user-email",0)(5,"b-formatted-date-time",2));if(a&2){a=P();x();I("href",Fq(a.event.issueId))("issueId",a.event.issueId);x();T("b/",a.event.issueId);x(2);var b;I("ldapOnly",!0)("email",(b=a.getNewDiffValue(a.event,"assignee"))!=null?b:"");x();I("timestamp",a.event.modifiedDate)}},Qjb=function(a){a&1&&(R(0," self-assigned "),J(1,"b-issue-reference-widget",1),R(2),K(),M(3,"b-formatted-date-time",
2));a&2&&(a=P(),x(),I("href",Fq(a.event.issueId))("issueId",a.event.issueId),x(),T("b/",a.event.issueId),x(),I("timestamp",a.event.modifiedDate))},Rjb=function(a){a&1&&(R(0," unassigned self from "),J(1,"b-issue-reference-widget",1),R(2),K(),M(3,"b-formatted-date-time",2));a&2&&(a=P(),x(),I("href",Fq(a.event.issueId))("issueId",a.event.issueId),x(),T("b/",a.event.issueId),x(),I("timestamp",a.event.modifiedDate))},Sjb=function(a){a&1&&(R(0," unassigned "),M(1,"b-user-email",0),R(2," from "),J(3,"b-issue-reference-widget",
1),R(4),K(),M(5,"b-formatted-date-time",2));if(a&2){a=P();x();var b;I("ldapOnly",!0)("email",(b=a.getPreviousDiffValue(a.event,"assignee"))!=null?b:"");x(2);I("href",Fq(a.event.issueId))("issueId",a.event.issueId);x();T("b/",a.event.issueId);x();I("timestamp",a.event.modifiedDate)}},Tjb=function(a){a&1&&(R(0," moved "),J(1,"b-issue-reference-widget",1),R(2),K(),R(3," to another component "),M(4,"b-formatted-date-time",2));a&2&&(a=P(),x(),I("href",Fq(a.event.issueId))("issueId",a.event.issueId),x(),
T("b/",a.event.issueId),x(2),I("timestamp",a.event.modifiedDate))},Ujb=function(a){a&1&&(J(0,"span",8),R(1," updated "),K(),J(2,"b-issue-reference-widget",1),R(3),K(),M(4,"b-formatted-date-time",2));a&2&&(a=P(),I("title",a.shorthandAllDiffs(a.event)),x(2),I("href",Fq(a.event.issueId))("issueId",a.event.issueId),x(),T("b/",a.event.issueId),x(),I("timestamp",a.event.modifiedDate))},Vjb=function(a,b){a&1&&(R(0," \u2014 "),J(1,"span",9),R(2),K());a&2&&(x(),I("title",b),x(),wh(b))},Wjb=function(a){a&1&&
F(0,Vjb,3,2);if(a&2){var b;a=P();G((b=a.getComment())?0:-1,b)}},Xjb=function(a,b){a&1&&(R(0," \u2014 "),J(1,"span",10),R(2),K());a&2&&(x(),I("title",b),x(),wh(b))},Yjb=function(a){a&1&&F(0,Xjb,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)}},Zjb=function(a,b){a&1&&M(0,"recent-event-row",4);a&2&&I("event",b.$implicit)},$jb=function(a,b){a&1&&(J(0,"p",3),R(1),K(),Pg(2,Zjb,1,1,"recent-event-row",4,Og));if(a&2){a=
P();var c=P(3);x();T("Last 24 hours ",c.printStats(a["<24h"]));x();Qg(b)}},akb=function(a,b){a&1&&M(0,"recent-event-row",4);a&2&&I("event",b.$implicit)},bkb=function(a,b){a&1&&(J(0,"p",5),R(1),K(),Pg(2,akb,1,1,"recent-event-row",4,Og));if(a&2){a=P();var c=P(3);x();T("1-7 days ago ",c.printStats(a["24h-7d"]));x();Qg(b)}},ckb=function(a,b){a&1&&M(0,"recent-event-row",4);a&2&&I("event",b.$implicit)},dkb=function(a,b){a&1&&(J(0,"p",5),R(1),K(),Pg(2,ckb,1,1,"recent-event-row",4,Og));if(a&2){a=P();var c=
P(3);x();T("1-4 weeks ago ",c.printStats(a["7d-30d"]));x();Qg(b)}},ekb=function(a,b){a&1&&M(0,"recent-event-row",4);a&2&&I("event",b.$implicit)},fkb=function(a,b){a&1&&(J(0,"p",5),R(1),K(),Pg(2,ekb,1,1,"recent-event-row",4,Og));if(a&2){a=P();var c=P(3);x();T(">30 days ago ",c.printStats(a[">30d"]));x();Qg(b)}},gkb=function(a){if(a&1){var b=t();J(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 w()});
R(1);K()}a&2&&(a=P(4),x(),T(" ",a.numDisplayed$.value>a.defaultNumEvents?"Show less":"Show more"," "))},hkb=function(a){a&1&&(F(0,$jb,4,1),F(1,bkb,4,1),F(2,dkb,4,1),F(3,fkb,4,1),F(4,gkb,2,1,"button",2),U(5,"async"));if(a&2){var b,c,d,e,f;a=P();var h=P(2);G((b=a["<24h"])?0:-1,b);x();G((c=a["24h-7d"])?1:-1,c);x();G((d=a["7d-30d"])?2:-1,d);x();G((e=a[">30d"])?3:-1,e);x();var k;G(((k=(f=V(5,5,h.events$))==null?null:f.length)!=null?k:0)>h.defaultNumEvents?4:-1)}},ikb=function(a){a&1&&(F(0,hkb,6,7),U(1,
"async"));if(a&2){var b;a=P(2);G((b=V(1,1,a.bucketedEventStats$))?0:-1,b)}},jkb=function(a){a&1&&(J(0,"div",0),R(1," Recent activity "),M(2,"input",1),K(),F(3,ikb,2,3),U(4,"async"));if(a&2){var b;a=P();x(2);I("formControl",a.quickFilter);x();G((b=V(4,2,a.bucketedEvents$))?3:-1,b)}},kkb=function(a){return function(b){var c;if(a){var d="";if(zl(b)||Al(b)){var e=wjb(b);d="submitted "+e.link+" "+e.title}e="b/"+b.issueId;var f=Bjb(b),h=Djb(b),k=zjb(b);b=b==null||zl(b)||Al(b)?"":((c=b.unlinkifiedComment)!=
null?c:"").slice(0,999);c=[e,f,h,d,k,b].join(" ").toLowerCase().includes(a.toLowerCase())}else c=!0;return c}},lkb=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(Qj);return a.length===0?"":"\u2014 "+a.join(", ")},mkb=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},nkb=function(a,b){var c;a=(c=b[a])!=null?c:[];var d={n:a.length,pptCounts:{}};a.forEach(function(e){var f=Djb(e),h=Bjb(e);if(f!=="changelist"?e.isCommentEvent:e.unlinkifiedComment){var k;d.comment=((k=d.comment)!=null?k:0)+1;var q;d.pptCounts[h]=((q=d.pptCounts[h])!=null?q:0)+1}if(f==="changelist"){var v;d.clCount=((v=d.clCount)!=null?v:0)+1;var A;d.pptCounts[h]=((A=d.pptCounts[h])!=null?A:0)+1}else if(f==="create"){var E;d.created=((E=d.created)!=null?
E:0)+1;var H;d.pptCounts[h]=((H=d.pptCounts[h])!=null?H:0)+1}else if(f==="status"&&Ajb(e,"status")==="Fixed"){var L;d.fixed=((L=d.fixed)!=null?L:0)+1}});return d},okb=function(a){a&1&&(J(0,"p",11),R(1),K());a&2&&(a=P().$implicit,x(),wh(a.description))},pkb=function(a,b){a&1&&(J(0,"mat-list-option",8)(1,"div",9)(2,"label",10),R(3),K()(),F(4,okb,2,1,"p",11),K());a&2&&(a=b.$implicit,b=P(2),th("height","auto"),I("selected",b.selectedIds.has(a.searchId))("value",a.searchId),x(3),wh(a.name),x(),G(a.description?
4:-1))},skb=function(a,b){if(a&1){var c=t();J(0,"mat-selection-list",6);N("selectionChange",function(d){u(c);var e=P();return w(qkb(e,d))});Pg(1,pkb,5,6,"mat-list-option",7,rkb);K()}a&2&&(x(),Qg(b))},tkb=function(a,b){a&1&&M(0,"avatar-bunch",4);a&2&&I("emails",b)},ukb=function(a,b){a&1&&(J(0,"a",6),R(1," View in TaskFlow "),M(2,"mat-icon",7),K());a&2&&I("href",b,hf)},vkb=function(a,b){a&1&&M(0,"progress-pie",1);a&2&&I("closed",b.closed)("total",b.total)},xkb=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=V(1,2,a.pendingCls$))!=null?c:Gh(4,wkb))}},ykb=function(a){a&1&&M(0,"gerrit-changes-count",4);a&2&&(a=P(),I("changes",a))},zkb=function(a,b){a&1&&F(0,ykb,1,1,"gerrit-changes-count",4);a&2&&G(b&&b.length>0?0:-1)},Akb=function(a){a&1&&M(0,"avatar-bunch",5);a&2&&(a=P(),I("emails",a))},Bkb=function(a,b){a&1&&F(0,Akb,1,1,"avatar-bunch",5);a&2&&G(b.length>0?0:-1)},Ckb=function(a){return a},Dkb=function(a){a==="UNKNOWN_SOURCE"&&
console.error("an UNKNOWN TaskSources snuck in");return a},Ekb=function(a,b){return b.buganizerSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},Fkb=function(a,b){return a?b.buganizerSignals.filter(function(c){return a.get(c)!==!1}):b.buganizerSignals},Gkb=function(a,b){return b.changelistSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},Hkb=function(a,b){return a?b.changelistSignals.filter(function(c){return a.get(c)!==!1}):b.changelistSignals},Ikb=function(a,
b){return b.driveSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},Jkb=function(a,b){return a?b.driveSignals.filter(function(c){return a.get(c)!==!1}):b.driveSignals},Kkb=function(a,b){return b.gerritSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},Lkb=function(a,b){return a?b.gerritSignals.filter(function(c){return a.get(c)!==!1}):b.gerritSignals},Mkb=function(a,b){return a?b.googleTasksSignals.filter(function(c){return a.get(c)!==!1}):b.googleTasksSignals},
Nkb=function(a,b){return a?b.irmSignals.filter(function(c){return a.get(c)!==!1}):b.irmSignals},Okb=function(a,b){return b.googleTasksSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},Pkb=function(a,b){return b.irmSignals.reduce(function(c,d){return c.set(d,a.includes(d))},new Map)},Qkb=function(a){a&1&&(J(0,"div",2),R(1),K());if(a&2){a=P();uh("muted",!a.isNumeric(a.countDisplay)||a.isDisabled());x();var b;wh((b=a.countDisplay)!=null?b:"\u00a0")}},Rkb=function(a){a&1&&(J(0,"div",
0),M(1,"qif-stat",1),U(2,"async"),M(3,"qif-stat",1),U(4,"async"),K());a&2&&(a=P(),x(),I("key",a.QuickFilterKey.OPEN)("prefKey",a.id)("metadata",V(2,6,a.metadata$)),x(2),I("key",a.QuickFilterKey.BROAD_IN_PROGRESS)("prefKey",a.id)("metadata",V(4,8,a.metadata$)))},Skb=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))},Tkb=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:pb(a)}},Vkb=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=Ukb(b),f=b.nextElementSibling&&Ukb(b.nextElementSibling),h=b.previousElementSibling&&Ukb(b.previousElementSibling);if(a==="top"){var k;if(((k=b.previousElementSibling)==null?0:k.classList.contains("dragging"))&&h===e)return d=
"none",c();d="before";return c()}if(a==="bottom"){if(f!=null&&e<f){var q;if((q=b.nextElementSibling)==null?0:q.classList.contains("dragging"))return d="none",c();b=b.nextElementSibling;d="before";return c()}var v;if(((v=b.nextElementSibling)==null?0:v.classList.contains("dragging"))&&e===f)return d="none",c();d="after";return c()}d="current";return c()},Ukb=function(a){return Number(a.dataset.level)},Wkb=function(a){var b;return Or((b=a.dataset.ancestorchain)!=null?b:"")},Xkb=function(a){a&1&&M(0,
"th",25)},Ykb=function(a){if(a&1){var b=t();J(0,"td",26,0);N("click",function(c){var d=u(b).$implicit,e=Q(1),f=P();e.focus();Rq(f.focusManager,d);return w(c.stopPropagation())});K()}},Zkb=function(a){a&1&&M(0,"th",25)},$kb=function(a){if(a&1){var b=t();J(0,"td",27,1);N("click",function(c){var d=u(b).$implicit,e=Q(1),f=P();e.focus();Rq(f.focusManager,d);return w(c.stopPropagation())})("dragstart",function(c){u(b);var d=P();return w(d.handleDragStart(c))});M(2,"mat-icon",28);K()}},alb=function(a){a&
1&&(J(0,"th",25),R(1," Id "),K())},blb=function(a,b){a&1&&(J(0,"td",29),M(1,"b-issue-id-cell",30),K());a&2&&(a=b.$implicit,x(),I("id",a.id))},clb=function(a){a&1&&(J(0,"th",25),R(1," Id "),K())},dlb=function(a){a&1&&(J(0,"td",29),R(1,"--"),K())},elb=function(a){a&1&&(J(0,"th",25),R(1," Title "),K())},flb=function(a,b){if(a&1){var c=t();J(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 w(e.toggleExpansion(d))})("onSaveOutput",
function(){var d=u(c).$implicit;return w(d.isEditMode=!1)})("onCancelOutput",function(){var d=u(c).$implicit;return w(d.isEditMode=!1)});K()()}a&2&&(a=b.$implicit,x(),I("isEditMode",a.isEditMode)("issue",V(2,5,a.issue$))("expandable",V(3,7,a.hasChildren$))("expanded",!!a.expandedCount)("level",a.level))},glb=function(a){a&1&&(J(0,"th",25),R(1," Type "),K())},hlb=function(a,b){a&1&&(J(0,"td",29),M(1,"b-issue-type-cell",32),U(2,"async"),K());a&2&&(a=b.$implicit,x(),I("issue",V(2,1,a.issue$)))},ilb=
function(){},jlb=function(a){a&1&&R(0," Assignee ")},klb=function(a){a&1&&(J(0,"th",25),F(1,ilb,0,0)(2,jlb,1,0),K());a&2&&(a=P(),x(),G((a.options.modes==null?null:a.options.modes.assignee)==="avatar-if-open"?1:2))},llb=function(a,b){a&1&&M(0,"b-user-image",33);a&2&&I("email",b)},mlb=function(a){a&1&&F(0,llb,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)}},nlb=function(a,b){a&1&&F(0,mlb,1,1);a&2&&(a=P(3),G(a.isOpen(b)?0:-1))},olb=function(a){a&1&&(F(0,nlb,
1,1),U(1,"async"));if(a&2){var b;a=P().$implicit;G((b=V(1,1,a.issue$))?0:-1,b)}},plb=function(a){a&1&&(M(0,"b-issue-assignee-cell",32),U(1,"async"));a&2&&(a=P().$implicit,I("issue",V(1,1,a.issue$)))},qlb=function(a){a&1&&(J(0,"td",29),F(1,olb,2,3)(2,plb,2,3,"b-issue-assignee-cell",32),K());a&2&&(a=P(),x(),G((a.options.modes==null?null:a.options.modes.assignee)==="avatar-if-open"?1:2))},rlb=function(a){a&1&&(J(0,"th",25),R(1," Status "),K())},slb=function(a,b){a&1&&(J(0,"td",29),M(1,"b-issue-status-cell",
34),U(2,"async"),K());a&2&&(a=b.$implicit,x(),I("issue",V(2,2,a.issue$))("showPendingFix",!0))},tlb=function(a){a&1&&(J(0,"th",25),R(1," Team "),K())},ulb=function(a,b){a&1&&(J(0,"td",29),M(1,"b-issue-team-cell",32),U(2,"async"),K());a&2&&(a=b.$implicit,x(),I("issue",V(2,1,a.issue$)))},vlb=function(a){a&1&&M(0,"th",25)},xlb=function(a,b){if(a&1){var c=t();J(0,"td",29)(1,"b-actions-menu",35);U(2,"async");N("click",function(e){u(c);return w(e.stopPropagation())});K()()}if(a&2){a=b.$implicit;b=P();x();
var d;I("menuItems",(d=V(2,1,b.getMenuItems(a)))!=null?d:Gh(3,wlb))}},ylb=function(a){a&1&&M(0,"th",25)},Alb=function(a){if(a&1){var b=t();J(0,"b-actions-menu",35);N("click",function(d){u(b);return w(d.stopPropagation())});K()}if(a&2){a=P().$implicit;var c=P();I("menuItems",zlb(c,a))}},Blb=function(a){a&1&&M(0,"b-spinner")},Clb=function(a){a&1&&M(0,"b-spinner")},Dlb=function(a,b){a&1&&(J(0,"td",36),F(1,Alb,1,1,"b-actions-menu",37)(2,Blb,1,0,"b-spinner"),D(3,Clb,1,0,"ng-template",null,2,Lh),K());a&
2&&(a=b.$implicit,x(),G(a.saving?2:1))},Flb=function(a,b){if(a&1){var c=t();J(0,"td",29)(1,"b-async-data-placeholder",38);U(2,"async");J(3,"b-button",39);N("onAction",function(){var d=u(c).$implicit,e=P();return w(Elb(e,d))});J(4,"span",40);R(5);K()()()()}a&2&&(a=b.$implicit,b=P(),th("padding-left",a.level*24+b.TITLE_FIXED_OFFSET_PX,"px"),Lg("colspan",b.tableColumns.length),x(),I("isReady",!!V(2,5,a.parentIssue$)),x(4),T("Display ",a.truncatedSiblingCount," more"))},Glb=function(a){a&1&&(J(0,"th",
25),R(1," Title "),K())},Ilb=function(a,b){if(a&1){var c=t();J(0,"td",29)(1,"div",41)(2,"b-text-input-cell",42);Ah("valueChange",function(d){var e=u(c).$implicit;zh(e.title,d)||(e.title=d);return w(d)});N("commit",function(){var d=u(c).$implicit,e=P();return w(e.saveDraft(d))});K();J(3,"b-button",43);N("onAction",function(){var d=u(c).$implicit,e=P();return w(e.saveDraft(d))});R(4," Create ");K();J(5,"b-button",44);N("onAction",function(){var d=u(c).$implicit,e=P();return w(Hlb(e,d))});R(6," Cancel ");
K()()()}a&2&&(a=b.$implicit,b=P(),th("padding-left",(a.level+1)*24+b.EDITABLE_TITLE_OFFSET_PX,"px"),x(2),yh("value",a.title),I("readonly",a.saving),x(),I("disabled",!a.title||a.saving),x(2),I("disabled",a.saving))},Jlb=function(a){a&1&&M(0,"tr",18)},Klb=function(a){a&1&&D(0,Jlb,1,0,"tr",45);a&2&&(a=P(),I("matHeaderRowDef",a.tableColumns))},Mlb=function(a,b){if(a&1){var c=t();J(0,"tr",46);U(1,"async");U(2,"async");N("click",function(d){var e=u(c).$implicit,f=P();return w(f.navigateToIssue(d,e))})("mouseup",
function(d){var e=u(c).$implicit,f=P();return w(f.navigateToIssue(d,e))})("focusin",function(){var d=u(c).$implicit,e=P();return w(Rq(e.focusManager,d))})("keydown",function(d){var e=u(c).$implicit,f=P();return w(f.onRowKeydown(e,d))});K()}a&2&&(a=b.$implicit,b=P(),uh("selected",V(1,8,Llb(b.selectionModel,a.ancestorChain)))("closed",b.isClosed(V(2,10,a.issue$))),I("row",a),Lg("data-level",a.level)("data-type",a.type)("data-ancestorchain",a.ancestorChain.hash()))},Nlb=function(a,b){if(a&1){var c=t();
J(0,"tr",47);N("focusin",function(){var d=u(c).$implicit,e=P();return w(Rq(e.focusManager,d))})("keydown",function(d){var e=u(c).$implicit,f=P();return w(f.onRowKeydown(e,d))});K()}a&2&&(a=b.$implicit,I("row",a),Lg("data-level",a.level)("data-type",a.type)("data-ancestorchain",a.ancestorChain.hash()))},Olb=function(a,b){if(a&1){var c=t();J(0,"tr",48);N("keydown",function(d){var e=u(c).$implicit,f=P();return w(f.onRowKeydown(e,d))})("keydown.escape",function(){var d=u(c).$implicit,e=P();return w(Hlb(e,
d))})("keydown.backspace",function(d){var e=u(c).$implicit,f=P();return w(e.title||d.repeat||Hlb(f,e))})("focusin",function(){var d=u(c).$implicit,e=P();return w(Rq(e.focusManager,d))});K()}a&2&&(a=b.$implicit,I("row",a),Lg("data-type",a.type))},Plb=function(a,b){if(a&&a.length)return a.map(b)},Qlb=function(a){var b=a.getFilename();var c=Fj(a,2,Bj(Cj));return{filename:b,lineNumber:c,changeNumber:Uc(a.getChangeNumber())}},Slb=function(a){var b=Rc(a,1);a=Sj(a,Rlb,2,Bj(Cj));return{packageName:b,fileMentionSet:Plb(a,
Qlb)}},Ulb=function(a){var b=Ej(a,1,void 0,Nc),c=kk(a,2,void 0,Nc);a=Sj(a,Tlb,3,Bj(Cj),Nc);return{totalMentions:b,truncated:c,packageMentionSet:Plb(a,Slb)}},Wlb=function(a){var b=Vlb(a.open);a=Vlb(a.total);return b===a?"("+b+")":"("+b+"/"+a+")"},Vlb=function(a){var b=a.count;a=a.exact;return b===0||a?""+b:b+"+"},Xlb=function(a){return"("+Vlb(a)+")"},Pr=function(a){return{count:a>99?99:a,exact:a>99?!1:!0}},Ylb=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:pb(b)}},Zlb=function(a){a&1&&Yg(0)},$lb=function(a){a&1&&D(0,Zlb,1,0,"ng-container",6);a&2&&(P(),a=Q(14),I("ngTemplateOutlet",a))},amb=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))},bmb=function(a){a&
1&&(F(0,amb,1,6,"b-issues-table",7),U(1,"async"));if(a&2){var b;a=P();G((b=V(1,1,a.blockerIds$))?0:-1,b)}},cmb=function(a){a&1&&Yg(0)},dmb=function(a){a&1&&(J(0,"div")(1,"span",5),R(2,"This issue is not blocked "),J(3,"span",8),R(4,"\ud83c\udf89"),K()(),D(5,cmb,1,0,"ng-container",6),K());a&2&&(P(),a=Q(14),x(5),I("ngTemplateOutlet",a))},emb=function(a,b){if(a&1){var c=t();J(0,"p",5);R(1);J(2,"button",9);N("click",function(){u(c);var d=P();return w(d.shouldResetFilters.next())});R(3,"Show all");K()()}a&
2&&(x(),xh(" Filtering ",b," issue",b===1?"":"s",". "))},gmb=function(a){if(a&1){var b=t();J(0,"b-button",10);U(1,"async");N("onAction",function(){u(b);var c=P();return w(fmb(c))});R(2," Add blocker ");K()}a&2&&(a=P(),I("disabled",!V(1,1,a.canEdit$)))},hmb=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))},imb=
function(a,b){a&1&&(J(0,"span",8),R(1),K());a&2&&(I("title",Dh("",b," applied filter(s)")),x(),wh(b))},jmb=function(a){a&1&&(F(0,imb,2,3,"span",8),U(1,"async"));if(a&2){var b;a=P();G((b=V(1,1,a.internalSelectedOptions.size$))?0:-1,b)}},kmb=function(a){a&1&&(J(0,"h1",6),R(1),K());a&2&&(a=P(),x(),wh(a.overlayTitle))},lmb=function(a){a&1&&(J(0,"h1"),R(1),K());a&2&&(a=P().$implicit,x(),wh(a.title))},mmb=function(a){a&1&&(J(0,"p"),R(1),K());a&2&&(a=P().$implicit,x(),wh(a.description))},nmb=function(a,
b){if(a&1){var c=t();J(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 w()});K();J(4,"div");F(5,lmb,2,1,"h1");F(6,mmb,2,1,"p");K()()()}a&2&&(a=b.$implicit,b=P(),x(2),I("checked",V(3,3,Qq(b.internalSelectedOptions,a.key))),x(3),G(a.title?5:-1),x(),G(a.description?6:-1))},omb=function(a){if(a&1){var b=
t();M(0,"mat-divider");J(1,"div",11)(2,"button",12);N("click",function(){u(b);var c=P(),d=Q(1);return w(c.cancel(d))});R(3);K();J(4,"button",13);N("click",function(){u(b);var c=P(),d=Q(1);return w(c.confirm(d))});R(5);K()()}a&2&&(a=P(),x(3),wh(a.cancelButtonLabel),x(2),wh(a.confirmButtonLabel))},pmb=function(a){a&1&&M(0,"b-spinner")},qmb=function(a){a&1&&Yg(0)},rmb=function(a){a&1&&D(0,qmb,1,0,"ng-container",23);a&2&&(P(2),a=Q(12),I("ngTemplateOutlet",a))},smb=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",V(1,3,b.parentIds$))("filters",V(2,5,b.issueFilters.value$))}},tmb=function(a){a&1&&Yg(0)},umb=function(a){a&1&&(J(0,"div")(1,"span",24),R(2,"This issue has no parents"),K(),D(3,tmb,1,0,"ng-container",23),K());a&2&&(P(2),a=Q(12),x(3),I("ngTemplateOutlet",a))},vmb=function(a){a&1&&Yg(0)},xmb=function(a){a&1&&(D(0,vmb,1,0,"ng-container",25),U(1,"async"));if(a&2){a=P(2);var b=Q(10);I("ngTemplateOutlet",b)("ngTemplateOutletContext",
Hh(4,wmb,V(1,2,a.parentsTable==null?null:a.parentsTable.hiddenRowCount$)))}},ymb=function(a){a&1&&Yg(0)},zmb=function(a){a&1&&D(0,ymb,1,0,"ng-container",23);a&2&&(P(2),a=Q(14),I("ngTemplateOutlet",a))},Amb=function(a){a&1&&(J(0,"div",20)(1,"section",26)(2,"div",27),R(3," Progress: "),K(),J(4,"div",27),R(5),U(6,"async"),U(7,"number"),U(8,"async"),U(9,"number"),K(),J(10,"div",28),U(11,"async"),J(12,"div",29),M(13,"div",30),U(14,"async"),J(15,"onedev-hovercard",null,3)(17,"div",31)(18,"div",32),R(19),
U(20,"async"),K()()()()(),M(21,"mat-icon",33),J(22,"onedev-hovercard",null,4)(24,"div",31)(25,"div",34)(26,"p"),R(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. "),K()()()()()());if(a&2){a=Q(16);var b=Q(23),c=P(2);x(5);xh(" ",Kh(7,11,V(6,9,c.totalDaysComplete$),"1.0-2")," of ",Kh(9,16,V(8,14,c.totalDaysCount$),"1.0-2"),
" days complete ");x(5);Lg("aria-label",Dh("",V(11,19,c.totalDaysDisplayPercent$)," Percentage of effort completed"));x(2);I("onedevHovercardTrigger",a);x();th("width",V(14,21,c.totalDaysDisplayPercent$),"%");x(6);T(" ",V(20,23,c.progressHovercardContent$)," ");x(2);I("onedevHovercardTrigger",b)}},Bmb=function(a){a&1&&M(0,"rollups-project",21);a&2&&(a=P(),I("id",a))},gnb=function(a){a&1&&Yg(0)},hnb=function(a){a&1&&(D(0,gnb,1,0,"ng-container",25),U(1,"async"));if(a&2){a=P(2);var b=Q(10);I("ngTemplateOutlet",
b)("ngTemplateOutletContext",Hh(4,wmb,V(1,2,a.relationsTable==null?null:a.relationsTable.hiddenRowCount$)))}},inb=function(a){a&1&&Yg(0)},jnb=function(a){a&1&&(J(0,"span",24),R(1,"This issue has no children"),K(),D(2,inb,1,0,"ng-container",23));a&2&&(P(3),a=Q(14),x(2),I("ngTemplateOutlet",a))},knb=function(a){a&1&&(J(0,"p",35)(1,"a",36),R(2," View as search results "),K()());if(a&2){a=P(2);var b=P();x();I("href",b.makeIlpUrlForParentIssue(a),hf)}},lnb=function(a){a&1&&(F(0,jnb,3,1),U(1,"async"),U(2,
"async"),Mg(3,knb,3,1,"p",35));if(a&2){var b;a=P(2);G(V(1,1,a.unarchivedChildIssueCount$)===0&&(((b=V(2,3,a.relationsTable==null?null:a.relationsTable.rows$))==null?null:b.length)||0)===0?0:3)}},mnb=function(a,b){if(a&1){var c=t();J(0,"div",9)(1,"section",10)(2,"div",11)(3,"h4",12)(4,"div",13);M(5,"mat-icon",14);K();R(6);U(7,"async");K();F(8,rmb,1,1,"ng-container");U(9,"async");K();F(10,smb,3,7,"b-parents-table",15);U(11,"async");Mg(12,umb,4,1,"div");F(13,xmb,2,6,"ng-container");U(14,"async");K();
J(15,"section")(16,"b-blockers-table",16);U(17,"async");N("shouldResetFilters",function(){u(c);var f=P();return w(f.shouldResetFilters())});K()();J(18,"section")(19,"div",17)(20,"h4",12)(21,"div",18);M(22,"mat-icon",19);K();R(23);U(24,"async");K();F(25,zmb,1,1,"ng-container");U(26,"async");U(27,"async");K();F(28,Amb,28,25,"div",20);U(29,"async");U(30,"async");F(31,Bmb,1,1,"rollups-project",21);M(32,"b-issue-relations-table",22);U(33,"async");U(34,"async");U(35,"async");F(36,hnb,2,6,"ng-container");
U(37,"async");F(38,lnb,4,5);U(39,"async");K()()}if(a&2){var d,e;a=P();x(6);T(" Parents ",V(7,17,a.counts.countParentsDisplay$)," ");x(2);G(V(9,19,a.parentsCount$)?8:-1);x(2);G(V(11,21,a.parentsCount$)?10:12);x(3);G(V(14,23,a.issueFilters.value$)?13:-1);x(3);I("filters",V(17,25,a.issueFilters.value$));x(7);T(" Child issues ",V(24,27,a.counts.countChildrenDisplay$)," ");x(2);G(V(26,29,a.unarchivedChildIssueCount$)||(((d=V(27,31,a.relationsTable==null?null:a.relationsTable.rows$))==null?null:d.length)||
0)>0?25:-1);x(3);G(a.isTotalEstimatesEnabled&&V(29,33,a.unarchivedChildIssueCount$)&&V(30,35,a.totalDaysCount$)?28:-1);x(3);G(a.isInternalSession&&a.enableRollupStatsUi?31:-1);x();uh("hidden",!((e=V(33,37,a.relationsTable==null?null:a.relationsTable.rows$))==null?0:e.length)&&!V(34,39,a.relationsTable==null?null:a.relationsTable.hiddenRowCount$));I("saveExpansionAtKey",Dh("project-expansion-",b))("rootIssueId",b)("filters",V(35,41,a.issueFilters.value$));x(4);G(V(37,43,a.issueFilters.value$)?36:-1);
x(2);G(V(39,45,a.unarchivedChildIssueCount$)!==null?38:-1)}},nnb=function(a){if(a&1){var b=t();J(0,"p",24);R(1);J(2,"button",37);N("click",function(){u(b);var c=P(2);return w(c.issueFilters.reset([]))});R(3,"Show all");K()()}a&2&&(a=P().filteredCount,x(),xh(" Filtering ",a," issue",a===1?"":"s",". "))},onb=function(a,b){a&1&&F(0,nnb,4,2,"p",24);a&2&&G(b.filteredCount?0:-1)},qnb=function(a){if(a&1){var b=t();J(0,"b-button",38);U(1,"async");N("onAction",function(){u(b);var c=P();return w(pnb(c))});
R(2," Add parent ");K()}a&2&&(a=P(),I("disabled",!V(1,1,a.canEdit$)))},rnb=function(a){if(a&1){var b=t();J(0,"b-button",41);U(1,"async");N("onAction",function(){u(b);var c=P(2);return w(c.createChild())});R(2," Create new child ");K()}a&2&&(a=P(2),I("disabled",!V(1,1,a.canEdit$)))},snb=function(a){if(a&1){var b=t();F(0,rnb,3,3,"b-button",39);J(1,"b-button",40);U(2,"async");N("onAction",function(){u(b);var c=P();return w(c.addChild())});R(3," Add existing child ");K()}a&2&&(a=P(),G(a.isNonPublicSession?
0:-1),x(),I("disabled",!V(2,2,a.canEdit$)))},tnb=function(a,b){return Uf([a,b]).pipe(C(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}))},unb=function(a){return a===1?a+" day":a+" days"},vnb=function(a){a&1&&(M(0,"one-work-area-list",0),U(1,"async"));a&2&&(a=P(2),I("searchString",V(1,5,a.issueFilter$))("prefKey",a.entityReference)("reference",a.entityReference)("onlyShowTableWhenFiltered",a.onlyShowTableWhenFiltered)("entityType",a.entityType))},
wnb=function(a){a&1&&M(0,"rollups-project",2)(1,"stat-cards-project",2);a&2&&(a=P(2),I("id",a),x(),I("id",a))},ynb=function(a){if(a&1){var b=t();J(0,"aside",4)(1,"p",5);R(2,"This issue has no children.");K();J(3,"button",6);N("click",function(){u(b);var c;(c=P(5).relationsTable)==null||xnb(c);return w()});R(4," Create new child ");K();J(5,"button",7);N("click",function(){u(b);var c;(c=P(5).relationsTable)==null||c.addExistingChild();return w()});R(6," Add existing ");K()()}},znb=function(a,b){a&1&&
(F(0,ynb,7,0,"aside",4),U(1,"async"));if(a&2){var c;a=P(4);G(b.descendantCount===0&&(((c=V(1,1,a.relationsTable==null?null:a.relationsTable.rows$))==null?null:c.length)||0)===0?0:-1)}},Anb=function(a){a&1&&(M(0,"b-issue-relations-table",3),F(1,znb,2,3),U(2,"async"));if(a&2){var b;a=P(2);var c=P();I("saveExpansionAtKey",Dh("project-expansion-",a))("rootIssueId",a)("filters",c.getFilters())("tableColumns",c.TREE_COLUMNS)("options",c.TREE_OPTIONS)("defaultExpansionLevel",0);x();G((b=V(2,8,c.issue$))?
1:-1,b)}},Bnb=function(a){a&1&&(F(0,wnb,2,2),F(1,Anb,3,10));a&2&&(a=P(2),G(a.isInternalSession?0:-1),x(),G(a.showTable()?1:-1))},Cnb=function(a){a&1&&R(0);a&2&&(a=P(2),T(" Unhandled entity type: ",a.entityType," "))},Dnb=function(a){a&1&&(M(0,"recent-events",1),U(1,"async"));a&2&&(a=P(2),I("query",V(1,2,a.issueFilter$))("numEvents",a.numRecentActivityEvents))},Enb=function(a){a&1&&(F(0,vnb,2,7,"one-work-area-list",0)(1,Bnb,2,2)(2,Cnb,1,1),F(3,Dnb,2,4,"recent-events",1));a&2&&(a=P(),G(a.entityType===
"hotlist"||a.entityType==="savedsearch"?0:a.entityType==="issue"?1:2),x(3),G(a.hideRecentActivity?-1:3))},Fnb=function(a){return{filter:a!=null?a:void 0,pageSize:500,sort:"modified_time:desc"}},Gnb=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",V(1,5,a.issueQuery$)),x(2),I("prefKey",a.prefKey)("query",V(3,7,a.issueQuery$))("entityType",a.entityType))},Hnb=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))},Inb=function(a){a&1&&(F(0,Hnb,1,5,"b-issues-table",2),U(1,"async"));if(a&2){var b;a=P();G((b=V(1,1,a.issueIds$))?0:-1,b)}},Jnb=function(a){a&1&&(J(0,"button",9),M(1,"mat-icon",13),R(2," Add "),K());a&2&&(P(),a=Q(9),I("matMenuTriggerFor",a))},Knb=function(a){a&1&&M(0,"b-tracker-chip-smart",17);a&2&&(a=P(2).$implicit,I("trackerId",
a.trackerId)("compactMode",!0))},Lnb=function(a){a&1&&(J(0,"a",28),M(1,"mat-icon",29),R(2," View Issue "),K(),J(3,"a",30),M(4,"mat-icon",29),R(5," View as search results "),K());if(a&2){a=P(2).$implicit;var b=P(2);I("routerLink",b.makeBuganizerUrl(a.workAreaUrl));x(3);I("href",b.makeIlpUrlForParentIssue(a.workAreaUrl),hf)}},Mnb=function(a){a&1&&(J(0,"a",21),M(1,"mat-icon",29),R(2),K());if(a&2){a=P(2).$implicit;var b=P(2);I("routerLink",b.makeBuganizerUrl(a.workAreaUrl));x(2);T(" View ",b.getEntityTypeName(a.workAreaUrl),
" ")}},Nnb=function(a,b){if(a&1){var c=t();J(0,"button",10);N("click",function(){var d=u(c),e=P(4);e.clipboard.copy(d);Kq(e.butterBar,"ID copied",2E3);return w()});M(1,"mat-icon",31);R(2);K()}a&2&&(x(2),T(" Copy ID: ",b," "))},Pnb=function(a){if(a&1){var b=t();F(0,Knb,1,2,"b-tracker-chip-smart",17);R(1);J(2,"button",18);N("click",function(k){u(b);return w(k.stopPropagation())});M(3,"mat-icon",19);K();J(4,"mat-menu",20,1);F(6,Lnb,6,2)(7,Mnb,3,2,"a",21);F(8,Nnb,3,1,"button",22);M(9,"mat-divider");J(10,
"button",23);N("click",function(){u(b);var k=P().$implicit,q=P(2);return w(Onb(q.prefsService,k.workAreaUrl,-1))});M(11,"mat-icon",24);R(12," Move Left ");K();J(13,"button",23);N("click",function(){u(b);var k=P().$implicit,q=P(2);return w(Onb(q.prefsService,k.workAreaUrl,1))});M(14,"mat-icon",25);R(15," Move Right ");K();J(16,"button",26);N("click",function(){u(b);var k=P().$implicit,q=P(2).prefsService,v=k.workAreaUrl;if(v!=null){var A;k=((A=q.prefs.workAreaUrls)!=null?A:[]).slice();A=k.indexOf(v);
A<0||(k.splice(A,1),Qr(q,{workAreaUrls:k}))}return w()});M(17,"mat-icon",27);R(18," Remove ");K()()}if(a&2){var c;a=Q(5);var d=P(),e=d.$implicit,f=d.$index;d=d.$count;var h=P(2);G(h.currentTrackerId&&h.currentTrackerId!==e.trackerId&&h.inferEntityType(e.workAreaUrl)==="issue"?0:-1);x();T(" ",h.titles[e.workAreaUrl]||e.workAreaUrl," ");x();I("matMenuTriggerFor",a);x(4);G(h.inferEntityType(e.workAreaUrl)==="issue"?6:7);x(2);G((c=h.extractLastDigits(e.workAreaUrl))?8:-1,c);x(2);I("disabled",f===0);x(3);
I("disabled",f===d-1);x(3);I("title",Dh("Hide the work area '",e.workAreaUrl,"' from this section"))}},Qnb=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)}},Rnb=function(a){a&1&&(J(0,"mat-tab"),D(1,Pnb,19,9,"ng-template",15)(2,Qnb,1,2,"ng-template",16),K())},Unb=function(a){if(a&1){var b=t();J(0,"mat-tab-group",14);N("selectedIndexChange",function(c){u(b);var d=P();return w(Snb(d.prefsService,d.SECTION_SLUG,
c))});Pg(1,Rnb,3,0,"mat-tab",null,Tnb);U(3,"async");K()}a&2&&(a=P(),I("selectedIndex",a.INITIAL_TAB_INDEX),x(),Qg(V(3,1,a.refsForTemplate$)))},Vnb=function(a){a&1&&M(0,"b-issue-card",44);a&2&&(a=P().$implicit,I("issueId",a.ref))},Xnb=function(a,b){if(a&1){var c=t();J(0,"li",41);N("click",function(){var d=u(c).$implicit,e=P(3);return w(Wnb(e,d.ref))});J(1,"p",42);R(2);K();J(3,"p",43);R(4);K();J(5,"onedev-hovercard",null,2);F(7,Vnb,1,1,"b-issue-card",44);K()()}a&2&&(a=b.$implicit,b=Q(6),I("title",Dh("Click to add\n\rWhy this? ",
a.suggestionRationale)),x(2),wh(a.title),x(),I("onedevHovercardTrigger",b),x(),T("b/",a.ref),x(3),G(a.ref?7:-1))},Ynb=function(a){a&1&&(J(0,"div",35)(1,"h4"),R(2,"Suggestions:"),K(),J(3,"ol",39),Pg(4,Xnb,8,6,"li",40,Og),K()());a&2&&(a=P(2),x(4),Qg(a.suggestions))},Znb=function(a){a&1&&(J(0,"section",12)(1,"div",33),M(2,"img",34),F(3,Ynb,6,0,"div",35),K(),J(4,"p",36),R(5," Use work areas to closely monitor a hotlist, saved search, or a parent/child project issue. "),K(),J(6,"button",37),M(7,"mat-icon",
38),R(8," Add work area "),K()());if(a&2){a=P();var b=Q(9);x(2);I("src",a.EMPTY_STATE_IMG,hf);x();G(a.suggestions.length>0?3:-1);x(3);I("matMenuTriggerFor",b)}},$nb=function(a){if(a&1){var b=t();J(0,"div",1);N("click",function(){u(b);var c=P();return w(c._onBackdropClicked())});K()}a&2&&(a=P(),uh("mat-drawer-shown",a._isShowingBackdrop()))},aob=function(a){a&1&&(J(0,"mat-drawer-content"),dh(1,2),K())},bob=function(){return!1},cob=function(a){if(a&1){var b=t();J(0,"div",1);N("click",function(){u(b);
var c=P();return w(c._onBackdropClicked())});K()}a&2&&(a=P(),uh("mat-drawer-shown",a._isShowingBackdrop()))},dob=function(a){a&1&&(J(0,"mat-sidenav-content"),dh(1,2),K())},eob=function(a,b){if(a&1){var c=t();J(0,"button",9);N("click",function(){var d=u(c).$implicit,e=P(2);return w(e.pageSizeChange.emit(d))});J(1,"span",10);M(2,"mat-icon",11);K();R(3);K()}a&2&&(a=b.$implicit,b=P(2),uh("b-menu-item-checked",a===b.pageSize),Lg("aria-checked",a===b.pageSize),x(3),T(" ",a," "))},fob=function(a){a&1&&(J(0,
"button",5),M(1,"mat-icon",6),K(),J(2,"mat-menu",null,0)(4,"div",7),R(5,"Results per page:"),K(),Pg(6,eob,4,4,"button",8,Og),K());if(a&2){a=Q(3);var b=P();I("matMenuTriggerFor",a);x(6);Qg(b.pageSizeOptions)}},gob=function(a){a&1&&(J(0,"span"),R(1," - "),J(2,"strong"),R(3),K()());a&2&&(a=P(),x(3),wh(a.endIndex))},hob=function(a,b){a&1&&(J(0,"span",27),R(1),K());a&2&&(x(),T("",b," "))},iob=function(a){a&1&&(F(0,hob,2,1,"span",27),U(1,"async"),R(2," \u00a0/\u00a0 "));if(a&2){var b;a=P();G((b=V(1,1,a.attentionCount$))?
0:-1,b)}},job=function(a,b){a&1&&(J(0,"div",9)(1,"h2",7),R(2),K(),J(3,"span",26),F(4,iob,3,3),U(5,"async"),J(6,"span"),R(7),U(8,"async"),K()()());if(a&2){var c;x(2);wh(b.displayName);x(2);G((c=V(5,3,b.attentionCount$))?4:-1,c);x(3);wh(V(8,5,b.totalCount$))}},lob=function(a,b){if(a&1){var c=t();J(0,"button",13);N("click",function(){var d=u(c).$implicit,e=P();return w(kob(e,d))});R(1);K()}a&2&&(a=b.$implicit,b=P(),x(),T(" ",b.SUBPHASE_TO_DISPLAY_NAME[a]," "))},mob=function(a){a&1&&M(0,"mat-progress-bar",
21)},nob=function(a){a&1&&R(0);a&2&&(a=P().$implicit,T(" (",a.count,") "))},oob=function(a,b){a&1&&(J(0,"mat-chip-option",30),U(1,"async"),J(2,"span",31),R(3),F(4,nob,1,1),K()());a&2&&(a=b.$implicit,b=P(4),I("value",a.key)("selected",V(1,5,Qq(b.selectedFilterKeys,a.key))),x(2),I("matTooltip",a.tooltip),x(),T(" ",a.displayAs," "),x(),G(a.showCount?4:-1))},qob=function(a){if(a&1){var b=t();J(0,"mat-chip-listbox",29);N("change",function(c){u(b);P(3).selectedFilterKeys.reset(c.value.filter(Qj));return w()});
Pg(1,oob,5,7,"mat-chip-option",30,pob);K()}a&2&&(a=P(),I("multiple",!0),x(),Qg(a))},rob=function(a,b){a&1&&F(0,qob,3,1,"mat-chip-listbox",28);a&2&&G(b.length?0:-1)},sob=function(a){a&1&&(F(0,rob,1,1),U(1,"async"));if(a&2){var b;a=P();G((b=V(1,1,a.availableFiltersInCurrentPhase$))?0:-1,b)}},tob=function(a){a&1&&Yg(0)},vob=function(a,b){a&1&&D(0,tob,1,0,"ng-container",32);if(a&2){a=P();var c=Q(53);I("ngTemplateOutlet",c)("ngTemplateOutletContext",Ih(2,uob,b,a.teamId))}},wob=function(a){if(a&1){var b=
t();J(0,"selection-triage-sidebar",33);N("refreshTable",function(){u(b);var c=P(3);return w(c.refreshTable())});K()}},xob=function(a){if(a&1){var b=t();J(0,"issue-triage-sidebar",33);N("refreshTable",function(){u(b);var c=P(4);return w(c.refreshTable())});K()}},yob=function(a){if(a&1){var b=t();J(0,"cluster-triage-sidebar",33);N("refreshTable",function(){u(b);var c=P(4);return w(c.refreshTable())});K()}},zob=function(a){a&1&&F(0,xob,1,0,"issue-triage-sidebar")(1,yob,1,0,"cluster-triage-sidebar");
a&2&&(a=P(),G(a.length===1?0:a.length>1?1:-1))},Aob=function(a){a&1&&F(0,wob,1,0,"selection-triage-sidebar")(1,zob,2,1);a&2&&(a=P(2),G(a.triageService.mode===a.TriageServiceMode.SELECTION?0:a.triageService.mode===a.TriageServiceMode.ACTIVATION?1:-1))},Bob=function(a){a&1&&(F(0,Aob,2,1),U(1,"async"));if(a&2){var b;a=P();G((b=V(1,1,a.triageService.currentIssueIds$))?0:-1,b)}},Fob=function(a){if(a&1){var b=t();J(0,"b-issues-table",36);U(1,"async");U(2,"async");U(3,"async");N("activeIssueChange",function(k){u(b);
var q=P(2);return w(Cob(q,k))})("rowClick",function(k){u(b);var q=P(2);return w(Cob(q,k))})("selectedIssuesChange",function(k){u(b);var q=P(2);q.selectedIssues=k;k=q.selectedIssues.selected;q.triageService.setIssueIds(k);k.length?(q.triageService.setMode(1),q.triageService.openSidebar()):(q.triageService.setMode(0),q.triageService.closeSidebar());return w()})("sortChange",function(k){u(b);var q=P(2);return w(q.onSortChange(k))})("columnsChange",function(k){u(b);var q=P(2);return w(q.onColumnsChange(k))});
K()}if(a&2){var c=P();a=c.issueIds;c=c.teamId;var d=P(),e,f,h;I("issueIds",a)("tableColumns",(e=V(1,7,d.tableColumns$))!=null?e:Gh(13,Dob))("editableColumns",!0)("options",(f=V(2,9,d.tableOptions$))!=null?f:Gh(14,Eob))("teamId",c)("showReadStatus",!0)("alerts",(h=V(3,11,d.issueAlertsForCurrentPhase$))!=null?h:Gh(15,Dob))}},Gob=function(a){a&1&&(J(0,"div",35),M(1,"img",37),R(2," All clean! There are no issues in this phase. "),K());a&2&&(a=P(2),x(),I("src",a.EMPTY_STATE_IMG,hf))},Hob=function(a,b){a&
1&&F(0,Fob,4,16,"b-issues-table",34)(1,Gob,3,1,"div",35);a&2&&G(b.issueIds.length?0:1)},Iob=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 pxa(a,b).filter(function(e){return!d||d.check(e)||c.some(function(f){return nxa(e,f)})?!0:!1})},Kob=function(a,b,c,d){return c?function(){switch(c.column){case "CREATED_TIME":return kwa(Esa)(a,c.direction);case "RELATIVE_MODIFIED_TIME":return lwa(Esa)(a,c.direction);case "PRIORITY":return qwa(Esa)(a,
c.direction);case "TRIAGER":return nwa()(a,c.direction);default:return console.warn("b-triage-phase sort by '"+c.column+"' not implemented"),a}}().map(function(e){return e.issueId}):Job(a,b,d)},Job=function(a,b,c){var d=Lob.get(c),e=new Map(a.map(function(f){return[f.issueId,d.findIndex(function(h){return nxa(f,h)})]}));c=a.filter(function(f){return e.get(f.issueId)!==-1}).map(function(f){return f.issueId}).sort(function(f,h){return e.get(f)-e.get(h)});return rj([].concat(p(b),p(c),p(a.map(function(f){return f.issueId}))),
function(f){return Array.isArray(f)?f.join(";"):f})},Mob=function(a){a&1&&(J(0,"span",8),R(1," > "),K())},Pob=function(a,b){if(a&1){var c=t();J(0,"span")(1,"a",7);N("click",function(e){var f=u(c).$implicit,h=P(2);f=new Nob(f.pathIds,f.pathNames);h.onTeamSelect.emit(f);e.stopPropagation();e.preventDefault();Oob(h.autocompleteTrigger);return w()});R(2);K();F(3,Mob,2,0,"span",8);K()}if(a&2){a=b.$implicit;var d=b.$index;b=b.$count;x();I("matTooltip",a.pathNameText);x();wh(a.name);x();G(d!==b-1?3:-1)}},
Qob=function(a,b){a&1&&(J(0,"mat-option",5)(1,"div"),Pg(2,Pob,4,3,"span",null,Og),K(),J(4,"span",6),R(5),U(6,"slice"),K()());a&2&&(a=b.$implicit,I("value",a),x(2),Qg(a.teamPath),x(2),I("matTooltip",a.description),x(),T("",wna(6,3,a.description,100)," "))},Rob=function(a){a&1&&R(0," Search results ")},Sob=function(a){a&1&&R(0," Recommended ")},Tob=function(a){a&1&&(J(0,"th",18)(1,"span",19),R(2,"Starred"),K()())},Uob=function(a,b){if(a&1){var c=t();J(0,"td",20)(1,"b-star-toggle",21);N("starClicked",
function(){var e=u(c).$implicit,f=P(2),h=P();return w(h.toggleStar(e.triageId,e.teamId,f))});K()()}if(a&2){a=b.$implicit;b=P(2);var d=P();x();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")}},Vob=function(a){a&1&&(J(0,"th",18),R(1,"Name"),K())},Wob=function(a,b){a&1&&(J(0,"td",22)(1,"a",23),R(2),K()());a&2&&(a=b.$implicit,b=P(3),x(),I("href",b.getTriageLink(a.triageId,
a.teamId),hf),x(),T(" ",a.triageName||a.teamName+" triage"," "))},Xob=function(a){a&1&&(J(0,"th",18),R(1,"Team"),K())},Yob=function(a,b){a&1&&(J(0,"td",24),R(1),K());a&2&&(a=b.$implicit,x(),T(" ",a.teamName," "))},Zob=function(a){a&1&&(J(0,"th",18),R(1,"Scope"),K())},$ob=function(a,b){a&1&&(J(0,"td",25),R(1),K());a&2&&(a=b.$implicit,x(),T(" ",a.scope," "))},apb=function(a){a&1&&M(0,"tr",26)},bpb=function(a){a&1&&M(0,"tr",27)},cpb=function(a,b){a&1&&(J(0,"table",6),Wg(1,7),D(2,Tob,3,0,"th",8)(3,Uob,
2,4,"td",9),Xg(),Wg(4,10),D(5,Vob,2,0,"th",8)(6,Wob,3,2,"td",11),Xg(),Wg(7,12),D(8,Xob,2,0,"th",8)(9,Yob,2,1,"td",13),Xg(),Wg(10,14),D(11,Zob,2,0,"th",8)(12,$ob,2,1,"td",15),Xg(),D(13,apb,1,0,"tr",16)(14,bpb,1,0,"tr",17),K());a&2&&(a=P(2),I("dataSource",b)("fixedLayout",!0),x(13),I("matHeaderRowDef",a.tableColumns),x(),I("matRowDefColumns",a.tableColumns))},dpb=function(a){a&1&&M(0,"b-spinner")},epb=function(a){a&1&&(F(0,cpb,15,4,"table",6),U(1,"async"),Mg(2,dpb,1,0,"b-spinner"));if(a&2){var b;a=
P();G((b=V(1,1,a.triageRows$))?0:2,b)}},fpb=function(a){a&1&&(J(0,"button",9)(1,"span"),R(2,"Edit"),K(),M(3,"b-icon",14),K());if(a&2){a=P();var b=Q(7);I("disabled",a.isAnonymous)("matMenuTriggerFor",b)}},gpb=function(a){a&1&&(J(0,"button",9)(1,"span"),R(2,"Link"),K(),M(3,"b-icon",14),K());if(a&2){a=P();var b=Q(74);I("disabled",a.isAnonymous)("matMenuTriggerFor",b)}},hpb=function(a){a&1&&(J(0,"button",9)(1,"span"),R(2,"CC"),K(),M(3,"b-icon",14),K());if(a&2){a=P();var b=Q(90);I("disabled",a.isAnonymous)("matMenuTriggerFor",
b)}},ipb=function(a){if(a&1){var b=t();J(0,"button",11);N("click",function(){u(b);var c=P();return w(c.bulkEdit("ESTIMATED_EFFORT"))});R(1,"Estimated Effort");K()}},jpb=function(a,b){if(a&1){var c=t();J(0,"button",11);N("click",function(){var d=u(c).$implicit,e=P();return w(e.quickBulkEdit("PRIORITY",d))});R(1);K()}a&2&&(a=b.$implicit,x(),T(" ",a," "))},kpb=function(a,b){if(a&1){var c=t();J(0,"button",11);N("click",function(){var d=u(c).$implicit,e=P();return w(e.quickBulkEdit("SEVERITY",d))});R(1);
K()}a&2&&(a=b.$implicit,x(),T(" ",a," "))},lpb=function(a,b){if(a&1){var c=t();J(0,"button",11);N("click",function(){var d=u(c).$implicit,e=P();return w(e.quickBulkEdit("STATUS",d))});R(1);K()}a&2&&(a=b.$implicit,b=P(),x(),T(" ",b.STATUS_JS_FULL_TEXT.get(a)," "))},mpb=function(a){a&1&&M(0,"mat-divider")},npb=function(a){a&1&&M(0,"mat-icon",16);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},opb=function(a,b){if(a&1){var c=t();F(0,mpb,1,0,"mat-divider");J(1,"button",15);N("click",function(){var f=u(c).$implicit,
h=P();return w(h.quickBulkEdit("TYPE",f.value))});F(2,npb,1,1,"mat-icon",16);R(3);K()}if(a&2){a=b.$implicit;b=b.$index;P();var d=bh(58);G(b>0&&d[b].group!=d[b-1].group?0:-1);x();var e;I("matTooltip",(e=a.altText)!=null?e:"");x();G(a.icon?2:-1);x();T(" ",a.displayText," ")}},ppb=function(a){if(a&1){var b=t();J(0,"button",4);N("click",function(){u(b);var c=P(2);return w(c.exportCsvClicked.emit())});R(1,"Export issues to CSV ");K()}},qpb=function(a){if(a&1){var b=t();J(0,"button",4);N("click",function(){u(b);
var c=P(2);return w(c.flagAsSpamClicked.emit())});R(1,"Flag issues as spam ");K()}},rpb=function(a){a&1&&(J(0,"button",1)(1,"span"),R(2,"More"),K(),M(3,"b-icon",2),K(),J(4,"mat-menu",null,0),F(6,ppb,2,0,"button",3),F(7,qpb,2,0,"button",3),K());if(a&2){a=Q(5);var b=P();I("disabled",b.isAnonymous)("matMenuTriggerFor",a);x(6);G(b.showExportCsv?6:-1);x();G(b.showFlagIssuesAsSpam?7:-1)}},spb=function(a){a&1&&R(0," Network connection has been interrupted. ")},tpb=function(a){a&1&&R(0," Network connection has been interrupted or login credentials may have expired. ")},
vpb=function(a){if(a&1){var b=t();J(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=$c("/refreshSso")?"/refreshSso":cd(typeof"/refreshSso".href!="undefined"?"/refreshSso".href:"/refreshSso");var f=self.crossOriginIsolated!==void 0,h="strict-origin-when-cross-origin";window.Request&&(h=(new Request("/")).referrerPolicy);var k=
d.noreferrer;if(f&&k&&h==="unsafe-url")throw Error("Ze");h=k&&!f;k=d.target||"/refreshSso".target;var q=[],v=[],A=!1;for(H in d){var E=d[H];switch(H){case "width":case "height":case "top":case "left":q.push(H+"="+E);break;case "target":break;case "noopener":case "noreferrer":E?v.push(H):(A=!0,v.push(H+"=false"));break;case "attributionsrc":q.push(H+(E?"="+E:""));break;default:q.push(H+"="+(E?1:0))}}var H=k!==void 0&&!["_blank","_self","_top","_parent",""].includes(k);H=va()&&H;upb&&f&&q.length===
0&&v.length>0&&!H&&!A?(v.length===2&&(v=["noreferrer"]),id(c,e,k,v[0])):(f=q.join(","),ya()&&c.navigator&&c.navigator.standalone&&k&&k!="_self"?(f=jr(document,"A"),Wda(f,e),f.target=k,h&&(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)):h?(c=id(c,"",k,f),d=ad(e),c&&(c.opener=null,d===""&&(d="javascript:''"),d=$da('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+
Rr(d)+'">'),(c=c.document)&&c.write&&(c.write(hd(d)),c.close()))):((c=id(c,e,k,f))&&d.noopener&&(c.opener=null),c&&d.noreferrer&&(c.opener=null)));return w()});R(1," Log in again ");K()}},wpb=function(a){a&1&&(J(0,"b-callout",0)(1,"b-callout-body"),F(2,spb,1,0)(3,tpb,1,0),K(),J(4,"b-callout-actions"),F(5,vpb,2,0,"button",1),K()());a&2&&(a=P(),I("messageType","error"),x(2),G(a.isAnonymous?2:3),x(3),G(a.isAnonymous?-1:5))},xpb=function(a){a&1&&(J(0,"a",0),R(1," Hiring! "),K())},ypb=function(a,b){a&
1&&(J(0,"tr")(1,"td",4),R(2),K(),J(3,"td"),R(4,":"),K(),J(5,"td",5),R(6),K()());a&2&&(a=b.$implicit,x(2),wh(a.displayAs),x(4),wh(a.description))},zpb=function(a,b){a&1&&(J(0,"thead")(1,"tr"),M(2,"th",2),J(3,"th",3),R(4),K()(),Pg(5,ypb,7,2,"tr",null,Og),K());a&2&&(a=b.$implicit,x(4),wh(a.title),x(),Qg(a.hotkeys))},Apb=function(a){a=a===void 0?!1:a;var b=AHa(),c=b.total,d=b.redundancyRatio;Fo("after-60s","xhr","redundant",b.redundant);Fo("after-60s","xhr","total",c);Fo("after-60s","xhr","redundancyRatio",
d);a&&(console.table(zHa()),console.log(b))},Tr=function(a){a==="duplicateOfIssueId"&&(a="canonicalIssueId");var b=Number(a);isNaN(b)?a=new Sr({type:String(a).replace(/([A-Z])/g,"_$1").toUpperCase()}):b===0?a=null:(a={customFieldId:b},a=new Sr({type:"CUSTOM_FIELD",customFieldId:a.customFieldId,customFieldName:a.name}));return a},Bpb=function(a){a=Ur(a);if(ja(a))return null;var b=a.split(":");if(b.length!==2||ja(b[1]))return null;a=b[1].toLowerCase()==="asc"?"ASCENDING":"DESCENDING";return(b=Tr(b[0]))&&
a?new Vr(b,a):null},Wr=function(a,b){b=b===void 0?ll():b;var c,d=(c=b.tracker)==null?void 0:c.name;b=b.config.appName;d=d||b;return a?a+" - "+d:d},Cpb=function(a){a&1&&M(0,"bug-screensaver")},Dpb=function(a){a&1&&(M(0,"img",3),J(1,"span",4),R(2),K(),R(3," Powered by Google "),J(4,"span",1),R(5,"|"),K());a&2&&(a=P(2),I("src",a.trackerLogo,hf),x(2),T("",a.trackerName," Issue Tracker"))},Epb=function(a){a&1&&(J(0,"div")(1,"span",1),R(2,"|"),K(),J(3,"a",5),R(4,"Code of Conduct"),K()());a&2&&(a=P(2),x(3),
I("href",a.trackerCoc,hf))},Fpb=function(a){a&1&&(J(0,"footer"),F(1,Dpb,6,2),J(2,"a",0),R(3,"Privacy"),K(),J(4,"span",1),R(5,"|"),K(),J(6,"a",2),R(7,"Terms"),K(),F(8,Epb,5,1,"div"),K());a&2&&(a=P(),x(),G(a.currentTracker?1:-1),x(7),G(a.trackerCoc?8:-1))},Gpb=function(a,b){if(a&1){var c=t();J(0,"b-fab-segmented",1);N("clickMain",function(e){u(c);var f=P(2);return w(f.trackClick(e))})("clickSegment",function(e){u(c);var f=P(2);return w(f.trackClick(e))});K()}if(a&2){a=P();var d=P();I("label",b)("icon",
d.buttonIcon)("href",d.createIssuePath)("segments",a)}},Hpb=function(a){a&1&&(F(0,Gpb,1,4,"b-fab-segmented",0),U(1,"async"));if(a&2){var b;a=P();G((b=V(1,1,a.buttonLabel$))?0:-1,b)}},Ipb=function(a){a&1&&Yg(0)},Jpb=function(a){a&1&&Yg(0)},Kpb=function(a){a&1&&D(0,Jpb,1,0,"ng-container",1);a&2&&(a=P(),I("ngTemplateOutlet",a.content))},Lpb=function(a){a&1&&(J(0,"ul",5)(1,"li")(2,"a",6),M(3,"mat-icon",7),R(4," Triage "),K()()());a&2&&(a=P(2),x(),uh("selected",a.location.path().startsWith(Dq.triageSettings.makeHref())),
x(),I("href",a.ROUTES.triageSettings.makeHref(),hf))},Mpb=function(a){if(a&1){var b=t();J(0,"button",13);N("click",function(){u(b);var c=P(4);return w(c.goToTriageSettingsPage())});R(1," Configure triage ");K()}},Npb=function(a){if(a&1){var b=t();R(0," Triage ");J(1,"span",9);R(2,"New");K();J(3,"button",10);N("click",function(c){u(b);return w(c.stopPropagation())});M(4,"mat-icon",11);K();J(5,"mat-menu",null,2);D(7,Mpb,2,0,"ng-template",12);K()}a&2&&(a=Q(6),x(3),I("matMenuTriggerFor",a))},Opb=function(a){a&
1&&(J(0,"div",17)(1,"span",18),R(2),U(3,"async"),K()());a&2&&(a=P().$implicit,x(2),wh(V(3,1,a.displayName$)))},Ppb=function(a,b){a&1&&(J(0,"span",26),R(1),K());a&2&&(x(),T(" ",b," "))},Qpb=function(a,b){if(a&1){var c=t();J(0,"a",25);N("click",function(f){var h=u(c),k=P(8);return w(k.onAnchorClick(h,f))});J(1,"span");R(2);K();F(3,Ppb,2,1,"span",26);U(4,"async");K()}if(a&2){var d;a=P().$implicit;var e=P();I("href",b,hf);x(2);T(" ",e.phase(a).displayName," ");x();G((d=V(4,3,e.phase(a).attentionCount$))?
3:-1,d)}},Rpb=function(a,b){a&1&&(J(0,"li",24),F(1,Qpb,5,5,"a",22),K());if(a&2){var c;a=b.$implicit;b=P();var d=P(2).$implicit,e=P(4);uh("selected-indented",e.isTriageUrlFor(d.teamId,a,d.triageId));I("title",b.phase(a).displayName);x();G((c=e.ROUTES.viewTriage.makeHref(d.teamId,d.triageId,e.phaseToUrlSlug[a]))?1:-1,c)}},Spb=function(a){a&1&&(J(0,"ul",19),Pg(1,Rpb,2,4,"li",20,Og),M(3,"mat-divider"),J(4,"li",21)(5,"a",22)(6,"span"),R(7," Issue Themes "),M(8,"mat-icon",23),K()()()());if(a&2){a=P(2).$implicit;
var b=P(4);x();Qg(b.ALL_PHASES);x(3);uh("selected-indented",b.location.path().endsWith("issue-themes"));x();I("href",b.ROUTES.viewIssueThemes.makeHref(a.teamId,a.triageId),hf)}},Tpb=function(a){a&1&&F(0,Spb,9,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)}},Vpb=function(a,b){if(a&1){var c=t();J(0,"li",15);U(1,"async");J(2,"sidebar-zippy",16);U(3,"async");N("onExpand",function(){var h=u(c).$implicit;P(4).bLocation.setUrl(Dq.viewTriage.makeHref(h.teamId,
h.triageId));return w()});D(4,Opb,4,3,"ng-template",null,3,Lh)(6,Tpb,1,1,"ng-template",null,4,Lh);K()()}if(a&2){a=b.$implicit;b=Q(5);var d=Q(7),e=P(4);I("title",V(1,4,a.displayName$));x(2);var f;I("header",b)("content",d)("expanded",(f=V(3,6,Upb(e,a.teamId,a.triageId)))!=null?f:!1)}},Wpb=function(a){a&1&&(J(0,"ul",14),Pg(1,Vpb,8,8,"li",15,Og),K());a&2&&(a=P(2),x(),Qg(a))},Xpb=function(a){a&1&&(M(0,"hr"),J(1,"sidebar-zippy",8),D(2,Npb,8,1,"ng-template",null,0,Lh)(4,Wpb,3,0,"ng-template",null,1,Lh),
K());if(a&2){a=Q(3);var b=Q(5);x();I("header",a)("content",b)}},Ypb=function(a,b){a&1&&F(0,Lpb,5,3,"ul",5)(1,Xpb,6,2);a&2&&G(b.length===0?0:1)},Zpb=function(a){a&1&&R(0," Archived ")},$pb=function(a){if(a&1){var b=t();J(0,"button",15);N("click",function(c){u(b);return w(c.stopPropagation())});M(1,"mat-icon",16);K()}a&2&&(P(),a=Q(5),I("matMenuTriggerFor",a))},aqb=function(a){if(a&1){var b=t();J(0,"button",17);N("click",function(){u(b);var c=P(3).$implicit;return w(c.unstar())});R(1," Unstar ");K()}},
bqb=function(a){if(a&1){var b=t();J(0,"button",17);N("click",function(){u(b);var c=P(3).$implicit;return w(c.unarchive())});R(1," Unarchive ");K()}},cqb=function(a){if(a&1){var b=t();J(0,"button",17);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return w(d.handleBookmarkGroupOpen(c.id))});R(1," Open ");K();J(2,"button",17);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return w(d.handleBookmarkGroupDashboard(c.id))});R(3," Dashboard ");K();J(4,"button",17);N("click",function(){u(b);
var c=P(2).$implicit,d=P(3);return w(d.openEditBookmarkGroup(c.id))});R(5," Settings ");K();F(6,aqb,2,0,"button",18);F(7,bqb,2,0,"button",18)}a&2&&(a=P(2).$implicit,x(6),G(a.isUnstarable()?6:-1),x(),G(a.isEditable()?7:-1))},dqb=function(a){a&1&&(J(0,"div",11)(1,"span",12),R(2),K(),F(3,$pb,2,1,"button",13),J(4,"mat-menu",null,4),D(6,cqb,8,2,"ng-template",14),K()());a&2&&(a=P().$implicit,Lg("id",Dh("bv2-user-archived-bookmarkgroup-item-",a.id)),x(2),wh(a.name),x(),G(a?3:-1))},eqb=function(a,b){if(a&
1){var c=t();J(0,"li",21)(1,"a",22);N("click",function(d){var e=u(c).$implicit,f=P(5);return w(f.onAnchorClick(e.href,d))});J(2,"span",12);R(3);K()()()}a&2&&(a=b.$implicit,b=P(2).$implicit,uh("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item",a.type=="HOTLIST")("bv2-bookmark-group-saved-search-item",a.type=="SAVED_SEARCH"),Lg("id",kna(b.id,a.type,a.id)),I("title",a.name),x(),I("href",a.href,hf),x(2),T(" ",a.name," "))},fqb=function(a){a&1&&(J(0,"ul",19),Pg(1,eqb,4,13,"li",20,Og),
K());a&2&&(a=P().$implicit,x(),Qg(a.items))},gqb=function(a,b){a&1&&(J(0,"li",8)(1,"sidebar-zippy",10),D(2,dqb,7,4,"ng-template",null,2,Lh)(4,fqb,3,0,"ng-template",null,3,Lh),K()());if(a&2){a=b.$implicit;b=Q(3);var c=Q(5);I("title",a.name);x();I("header",b)("content",c)}},hqb=function(a){a&1&&(J(0,"button",25),M(1,"mat-icon",16),K());a&2&&(P(),a=Q(6),I("matMenuTriggerFor",a))},iqb=function(a){if(a&1){var b=t();J(0,"button",17);N("click",function(){u(b);var c=P(2).$implicit;return w(c.unstar())});
R(1," Unstar ");K()}},jqb=function(a){if(a&1){var b=t();J(0,"button",17);N("click",function(){u(b);var c=P(2).$implicit;return w(c.unarchive())});R(1," Unarchive ");K()}},kqb=function(a){if(a&1){var b=t();J(0,"button",17);N("click",function(){u(b);var c=P().$implicit,d=P(3);return w(d.openEditHotlist(c.id))});R(1," Settings ");K();F(2,iqb,2,0,"button",18);F(3,jqb,2,0,"button",18)}a&2&&(a=P().$implicit,x(2),G(a.isUnstarable()?2:-1),x(),G(a.isEditable()?3:-1))},lqb=function(a,b){if(a&1){var c=t();J(0,
"li",23)(1,"a",24);N("click",function(d){var e=u(c).$implicit,f=P(3);return w(f.onAnchorClick(e.href,d))});J(2,"span",12);R(3);K()();F(4,hqb,2,1,"button",25);J(5,"mat-menu",null,5);D(7,kqb,4,2,"ng-template",14);K()()}a&2&&(a=b.$implicit,uh("selected",a.isSelected()),I("id",Dh("bv2-user-hotlists-archived-hotlist-item-",a.id))("title",a.name),x(),I("href",a.href,hf),x(2),wh(a.name),x(),G(a?4:-1))},mqb=function(a){a&1&&(J(0,"ul",7),Pg(1,gqb,6,3,"li",8,Og),Pg(3,lqb,8,8,"li",9,Og),K());a&2&&(a=P(2),x(),
Qg(a.bookmarkGroups),x(2),Qg(a.hotlists))},nqb=function(a){a&1&&(J(0,"div"),M(1,"hr"),J(2,"sidebar-zippy",6),D(3,Zpb,1,0,"ng-template",null,0,Lh)(5,mqb,5,0,"ng-template",null,1,Lh),K()());if(a&2){a=Q(4);var b=Q(6);x(2);I("header",a)("content",b)}},oqb=function(a){a&1&&M(0,"b-spinner")},pqb=function(a){if(a&1){var b=t();J(0,"b-star-toggle",13);N("starClicked",function(){u(b);var c=P().$implicit,d=P();return w(d.toggleStar(c))});K()}a&2&&(a=P().$implicit,I("starMessage","Star this item")("unStarMessage",
"Un-star this item")("starred",a.isStarred))},qqb=function(a){a&1&&M(0,"b-hotlist-card",10);a&2&&(a=P().$implicit,I("hotlist",a))},rqb=function(a){a&1&&M(0,"b-bookmark-group-card",11);a&2&&(a=P().$implicit,I("bookmarkGroup",a))},sqb=function(a,b){a&1&&(J(0,"mat-option",6)(1,"div",8),F(2,pqb,1,3,"b-star-toggle",9),J(3,"onedev-hovercard",null,2),F(5,qqb,1,1,"b-hotlist-card",10)(6,rqb,1,1,"b-bookmark-group-card",11),K(),J(7,"span",12),R(8),K()()());if(a&2){a=b.$implicit;b=Q(4);var c=P();I("value",a);
x();uh("bv2-bookmark-group",c.showHotlists&&a.isGroup);x();G(c.shouldShowStar(a)?2:-1);x(3);G(a.isGroup?6:5);x(2);I("onedevHovercardTrigger",b);x();wh(a.name)}},tqb=function(a){if(a&1){var b=t();J(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 w()});K()()()}a&2&&(a=P(),x(2),I("showGroups",a.showGroups)("showHotlists",a.showHotlists)("allowStarring",a.allowStarring)("focusOnInit",
!0))},uqb=function(a){if(a&1){var b=t();J(0,"span");R(1,"Bookmark groups");K();J(2,"b-hotlist-search-popup",8);N("itemSelect",function(c){u(b);var d=P();c.isGroup&&d.handleBookmarkGroupOpen(c.bookmarkGroupId);return w()})("click",function(c){u(b);return w(c.stopPropagation())});K()}a&2&&(x(2),I("showHotlists",!1))},vqb=function(a){if(a&1){var b=t();J(0,"button",16);N("click",function(c){u(b);return w(c.stopPropagation())});M(1,"mat-icon",17);K()}a&2&&(P(),a=Q(5),I("matMenuTriggerFor",a))},wqb=function(a){if(a&
1){var b=t();J(0,"button",18);N("click",function(){u(b);var c=P(3).$implicit;return w(c.unstar())});R(1," Unstar ");K()}},xqb=function(a){if(a&1){var b=t();J(0,"button",18);N("click",function(){u(b);var c=P(3).$implicit;return w(c.archive())});R(1," Archive ");K()}},yqb=function(a){if(a&1){var b=t();J(0,"button",18);N("click",function(){u(b);var c=P(3).$implicit;return w(c.setAsPreferredHomepage())});R(1," Set as homepage ");K()}},zqb=function(a){if(a&1){var b=t();J(0,"button",18);N("click",function(){u(b);
var c=P(2).$implicit,d=P(3);return w(d.handleBookmarkGroupOpen(c.id))});R(1," Open ");K();J(2,"button",18);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return w(d.handleBookmarkGroupDashboard(c.id))});R(3," Dashboard ");K();J(4,"button",18);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return w(d.editBookmarkGroup(c.id))});R(5," Settings ");K();F(6,wqb,2,0,"button",19);F(7,xqb,2,0,"button",19);F(8,yqb,2,0,"button",19)}a&2&&(a=P(2).$implicit,x(6),G(a.isUnstarable()?6:-1),x(),G(a.isEditable()?
7:-1),x(),G(a.isPreferredHomepage()?-1:8))},Aqb=function(a){a&1&&(J(0,"div",12)(1,"span",13),R(2),K(),F(3,vqb,2,1,"button",14),J(4,"mat-menu",null,4),D(6,zqb,9,3,"ng-template",15),K()());a&2&&(a=P().$implicit,Lg("id",Dh("bv2-user-bookmarkgroup-item-",a.id)),x(2),wh(a.name),x(),G(a?3:-1))},Bqb=function(a){a&1&&(J(0,"button",24),M(1,"mat-icon",17),K());a&2&&(P(),a=Q(6),I("matMenuTriggerFor",a))},Cqb=function(a){if(a&1){var b=t();J(0,"button",18);N("click",function(){u(b);var c=P(2).$implicit;return w(c.unstar())});
R(1," Unstar ");K()}},Dqb=function(a){if(a&1){var b=t();J(0,"button",18);N("click",function(){u(b);var c=P(2).$implicit;return w(c.setAsPreferredHomepage())});R(1," Set as homepage ");K()}},Eqb=function(a){if(a&1){var b=t();J(0,"button",18);N("click",function(){u(b);var c=P().$implicit,d=P(5);c.type==="HOTLIST"?d.location.setUrl(Dq.editHotlist.makeHref(c.id)):d.location.setUrl(d.paths.editSavedSearch(c.id));return w()});R(1," Settings ");K();F(2,Cqb,2,0,"button",19);F(3,Dqb,2,0,"button",19)}a&2&&
(a=P().$implicit,x(2),G(a.isUnstarable()?2:-1),x(),G(a.isPreferredHomepage()?-1:3))},Fqb=function(a,b){if(a&1){var c=t();J(0,"li",22)(1,"a",23);N("click",function(d){var e=u(c).$implicit,f=P(5);return w(f.onAnchorClick(e.href,d))});J(2,"span",13);R(3);K()();F(4,Bqb,2,1,"button",24);J(5,"mat-menu",null,5);D(7,Eqb,4,2,"ng-template",15);K()()}a&2&&(a=b.$implicit,b=P(2).$implicit,uh("selected-indented",a.isSelected())("bv2-bookmark-group-hotlist-item",a.type=="HOTLIST")("bv2-bookmark-group-saved-search-item",
a.type=="SAVED_SEARCH"),Lg("id",kna(b.id,a.type,a.id)),I("title",a.getDisplayName()),x(),I("href",a.href,hf),x(2),T(" ",a.getDisplayName()," "),x(),G(b?4:-1))},Gqb=function(a){a&1&&(J(0,"ul",20),Pg(1,Fqb,8,14,"li",21,Og),K());a&2&&(a=P().$implicit,x(),Qg(a.items))},Hqb=function(a,b){a&1&&(J(0,"li",10)(1,"sidebar-zippy",11),D(2,Aqb,7,4,"ng-template",null,2,Lh)(4,Gqb,3,0,"ng-template",null,3,Lh),K()());if(a&2){a=b.$implicit;b=Q(3);var c=Q(5);I("title",a.name);x();I("header",b)("content",c)("expanded",
!1)}},Iqb=function(a){a&1&&(J(0,"ul",9),Pg(1,Hqb,6,4,"li",10,Og),K());a&2&&(a=P(2),x(),Qg(a.bookmarkGroups))},Jqb=function(a){a&1&&F(0,Iqb,3,0,"ul",9);a&2&&(a=P(),G(a.bookmarkGroups?0:-1))},Kqb=function(a){if(a&1){var b=t();J(0,"span");R(1,"Hotlists");K();J(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 w()})("click",function(c){u(b);return w(c.stopPropagation())});K()}a&2&&(x(2),I("showGroups",
!1))},Lqb=function(a){a&1&&(J(0,"button",11),M(1,"mat-icon",13),K());a&2&&(P(),a=Q(6),I("matMenuTriggerFor",a))},Mqb=function(a){if(a&1){var b=t();J(0,"button",15);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return w(d.addToMissionControl(c.id))});M(1,"mat-icon",17);R(2," Add to 'Home' screen ");K()}},Nqb=function(a){if(a&1){var b=t();J(0,"button",15);N("click",function(){u(b);var c=P(2).$implicit;return w(c.setAsPreferredHomepage())});M(1,"mat-icon",18);R(2," Set as homepage ");K()}},Oqb=
function(a){if(a&1){var b=t();J(0,"button",15);N("click",function(){u(b);var c=P(2).$implicit;return w(c.unstar())});M(1,"mat-icon",19);R(2," Unstar ");K()}},Pqb=function(a){if(a&1){var b=t();F(0,Mqb,3,0,"button",14);F(1,Nqb,3,0,"button",14);J(2,"button",15);N("click",function(){u(b);var d=P().$implicit,e=P(3);return w(e.openEditHotlist(d.id))});M(3,"mat-icon",16);R(4," Settings ");K();F(5,Oqb,3,0,"button",14)}if(a&2){a=P().$implicit;var c=P(3);G(c.ENABLE_MISSION_CONTROL?0:-1);x();G(a.isPreferredHomepage()?
-1:1);x(4);G(a.isUnstarable()?5:-1)}},Qqb=function(a,b){if(a&1){var c=t();J(0,"li",8)(1,"a",9);N("click",function(d){var e=u(c).$implicit,f=P(3);return w(f.onAnchorClick(e.href,d))});J(2,"span",10);R(3);K()();F(4,Lqb,2,1,"button",11);J(5,"mat-menu",null,2);D(7,Pqb,6,3,"ng-template",12);K()()}a&2&&(a=b.$implicit,uh("selected",a.isSelected()),I("id",Dh("bv2-user-hotlists-hotlist-item-",a.id))("title",a.name),x(),I("href",a.href,hf),x(2),wh(a.name),x(),G(a?4:-1))},Rqb=function(a){a&1&&(J(0,"ul",6),Pg(1,
Qqb,8,8,"li",7,Og),K());a&2&&(a=P(2),x(),Qg(a.hotlists))},Sqb=function(a){a&1&&F(0,Rqb,3,0,"ul",6);a&2&&(a=P(),G(a.hotlists?0:-1))},Tqb=function(a){a&1&&(J(0,"span"),R(1,"Saved searches"),K())},Uqb=function(a){if(a&1){var b=t();J(0,"button",14);N("click",function(){u(b);var c=P(2).$implicit,d=P(3);return w(d.addToMissionControl(c.id))});M(1,"mat-icon",17);R(2," Add to 'Home' screen ");K()}},Vqb=function(a){if(a&1){var b=t();J(0,"button",14);N("click",function(){u(b);var c=P(2).$implicit;return w(c.setAsPreferredHomepage())});
M(1,"mat-icon",18);R(2," Set as homepage ");K()}},Xqb=function(a){if(a&1){var b=t();F(0,Uqb,3,0,"button",13);F(1,Vqb,3,0,"button",13);J(2,"button",14);N("click",function(){u(b);var d=P().$implicit,e=P(3);return w(e.openEditSavedSearch(d.id))});M(3,"mat-icon",15);R(4," Settings ");K();J(5,"button",14);N("click",function(){u(b);var d=P().$implicit,e=P(3);return w(Wqb(e,d))});M(6,"mat-icon",16);R(7," Delete ");K()}if(a&2){a=P().$implicit;var c=P(3);G(c.ENABLE_MISSION_CONTROL?0:-1);x();G(a.isPreferredHomepage()?
-1:1)}},Yqb=function(a,b){if(a&1){var c=t();J(0,"li",7)(1,"a",8);N("click",function(d){var e=u(c).$implicit,f=P(3);return w(f.onAnchorClick(e.href,d))});J(2,"span",9);R(3);K()();J(4,"button",10);M(5,"mat-icon",11);K();J(6,"mat-menu",null,2);D(8,Xqb,8,2,"ng-template",12);K()()}a&2&&(a=b.$implicit,b=Q(7),uh("selected",a.isSelected()),Lg("id",Dh("bv2-saved-searches-search-item-",a.id)),I("title",a.name),x(),I("href",a.href,hf),x(2),wh(a.name),x(),I("matMenuTriggerFor",b))},Zqb=function(a){a&1&&(J(0,
"ul",5),Pg(1,Yqb,9,8,"li",6,Og),K());a&2&&(a=P(2),x(),Qg(a.searches))},$qb=function(a){a&1&&F(0,Zqb,3,0,"ul",5);a&2&&(a=P(),G(a.searches?0:-1))},arb=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")},brb=function(a){a&1&&M(0,"mat-icon",24)},crb=function(a){a&1&&(J(0,"button",25),M(1,"mat-icon",26),K());a&2&&(P(),a=Q(10),I("matMenuTriggerFor",a))},erb=function(a){if(a&1){var b=t();J(0,"button",
27);N("click",function(){u(b);var c=P(2);drb(c,"MISSION_CONTROL");return w()});R(1," Set as homepage ");K()}},frb=function(a){if(a&1){var b=t();J(0,"li",22)(1,"a",8);N("click",function(d){u(b);var e=P();e.onAnchorClick(e.missionControlPath,d);return w()});F(2,arb,1,3,"mat-icon",23);U(3,"async");U(4,"async");Mg(5,brb,1,0,"mat-icon",24);R(6," Home ");K();F(7,crb,2,1,"button",25);U(8,"async");J(9,"mat-menu",null,1);D(11,erb,2,0,"ng-template",11);K()()}if(a&2){var c;a=P();uh("selected",!!a.location.path().match(/^\/home\b/));
x();I("href",a.missionControlPath,hf);x();G((c=!V(3,5,a.hideBadgeInNav$)&&V(4,7,a.missionControlTaskCount$))?2:5,c);x(5);G(V(8,9,a.isHomepageMissionControl$)?-1:7)}},grb=function(a){a&1&&(J(0,"button",10),M(1,"mat-icon",26),K());a&2&&(P(),a=Q(13),I("matMenuTriggerFor",a))},hrb=function(a){if(a&1){var b=t();J(0,"button",27);N("click",function(){u(b);var c=P();drb(c,"ASSIGNED_TO_ME");return w()});R(1," Set as homepage ");K()}},irb=function(a){a&1&&M(0,"nav-sidebar-triage")},jrb=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},krb=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)},mrb=function(a,b,c){b=b===void 0?"#ccc":
b;c=c===void 0?400:c;lrb++;var d=156;d+=(lrb-1)*12;return function(e){e=e===void 0?b:e;var f,h=(f=document.getElementById(a))!=null?f:jrb(a,d);krb(h,e,c)}},yrb=function(a,b,c){c=c===void 0?[]:c;var d=d===void 0?{}:d;if(b==null)return"(undefined)";var e=b.snapshot[0],f,h=(f=c[0])!=null?f:b.description;c=c.slice(1);c.sort(function(k,q){return q.modifiedDate-k.modifiedDate});return["## "+e.title,"ID: http://b/"+b.issueId,"Priority: "+e.priority,"Status: "+e.status,"Modified: "+uq(b.majorModifiedTimeMicros/
1E3/1E3),nrb(b),orb(b),prb(b,d),qrb(b),rrb(b),srb(b),trb(b),urb(b),vrb(a,h),wrb(b),xrb(a,c)].filter(Boolean).join("\n").trim()+"\n\n---\n\n"},prb=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(", ")},xrb=function(a,b){if(b.length!==0){var c=b.map(function(d){a:{if(d!=null){var e=zrb(a,d);e=Arb(e);if(e!=null){var f,h=(f=d.lastCommentEditorUser)==null?void 0:f.emailAddress;d=uq(d.modifiedDate/1E3);d=
h+": "+e+" ("+d+")";break a}}d=void 0}return d}).filter(Boolean).join("\n\n");return"\n### Comments ("+b.length+")\n"+c}},Arb=function(a,b){b=b===void 0?300:b;if(a!=null)return a=a.replaceAll(/\n/g," "),a=VKa(a,b)},zrb=function(a,b){var c=b.unlinkifiedComment;b=b.formattedComment;if(c)return c;if(b&&a)return Bva(b)},vrb=function(a,b){if(b!=null&&(a=zrb(a,b),a=Arb(a,600),a!=null))return"\n### Description\n"+a},srb=function(a){a=a.descendantCount;if(!(a<=0))return"Descendant count: "+a},qrb=function(a){var b;
a=((b=l(a.snapshot).next().value.blockingIssueId)!=null?b:[]).length;if(!(a<=0))return"Blocking "+a+" issue(s)"},rrb=function(a){var b;a=((b=l(a.snapshot).next().value.blockedByIssueId)!=null?b:[]).length;if(!(a<=0))return"Blocked by "+a+" issue(s)"},nrb=function(a){var b;return(a=((b=l(a.snapshot).next().value.assigneeUser)!=null?b:{}).emailAddress)?"Assignee: "+a:void 0},orb=function(a){var b;return(a=((b=l(a.snapshot).next().value.reporterUser)!=null?b:{}).emailAddress)?"Reporter: "+a:void 0},
trb=function(a){var b,c;a=(c=(b=a.aggregatedData)==null?void 0:b.voteCount)!=null?c:0;if(!(a<=0))return"Upvotes: "+a},wrb=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=uq((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+")"}},urb=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},Brb=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():"")},Crb=function(a){a&1&&(J(0,"div",0),M(1,"router-outlet"),K())},Drb=function(a){a&1&&(J(0,"div",0),M(1,"app-root-body"),K())},Frb=function(a){if(a&1){var b=t();J(0,"a",8);N("keydown.enter",function(){u(b);var c=P(2);return w(Erb(c))})("keydown.space",function(){u(b);var c=P(2);return w(Erb(c))})("click",function(){u(b);var c=
P(2);return w(Erb(c))});R(1," Dismiss");K()}},Grb=function(a){a&1&&(J(0,"div",1)(1,"div",5),M(2,"span",6),F(3,Frb,2,0,"a",7),K()());a&2&&(a=P(),x(2),I("innerHtml",a.announcement.message,gf),x(),G(a.announcement.dismissible?3:-1))},Irb=function(a){if(a&1){var b=t();J(0,"b-resizable-sidebar",9,0);N("widthChanged",function(c){u(b);var d=P();return w(Hrb(d,c))});M(2,"b-sidebar");K()}a&2&&(a=P(),I("size",a.sidebarWidth))},Jrb=function(a){switch(a){case "COMFORTABLE":return"d-comfort";case "COZY":return"d-cozy";
case "COMPACT":return"d-compact";default:return"d-comfort"}},Krb=function(a){return new Set(a.map(function(b){return ksa(b)}))},Xr=function(a,b,c){return a.has(b)?c:""},Lrb=function(a,b,c){return a.has(b)?c:[]},Yr=function(a,b,c){return{fieldName:a,diffType:"SINGLE_VALUE",diff:{oldValue:b,newValue:c}}},Orb=function(a){if(!a)return"";var b=Mrb.get(a.retentionSelection),c=a.retentionPeriodDays,d="Issue Retention: "+b;b=d;c&&(b=d+(", Days: "+c));d=Nrb.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},Qrb=function(a){if(!a)return"";var b=a.inherit,c=Prb.get(a.source),d=a.comment;a="Inherit: "+b+", Source: "+c+", ID: "+a.id;return d?a+(", Justification: "+d):a},Rrb=function(a){return a?"Inherit: "+a.inherit+", ID: "+a.id:""},Srb=function(a,b){a&1&&(J(0,"mat-option",17),R(1),K());a&2&&(a=b.$implicit,I("value",a),x(),T(" ",a," "))},Trb=function(a){if(a&1){var b=t();
J(0,"mat-form-field",14)(1,"mat-select",16,0);N("selectionChange",function(c){u(b);var d=P(2);return w(d._changePageSize(c.value))});Pg(3,Srb,2,2,"mat-option",17,Og);K();J(5,"div",18);N("click",function(){u(b);var c=Q(2);return w(c.open())});K()()}a&2&&(a=P(2),I("appearance",a._formFieldAppearance)("color",a.color),x(),I("value",a.pageSize)("disabled",a.disabled),Kg("aria-labelledby",a._pageSizeLabelId),I("panelClass",a.selectConfig.panelClass||"")("disableOptionCentering",a.selectConfig.disableOptionCentering),
x(2),Qg(a._displayedPageSizeOptions))},Urb=function(a){a&1&&(J(0,"div",15),R(1),K());a&2&&(a=P(2),x(),wh(a.pageSize))},Vrb=function(a){a&1&&(J(0,"div",3)(1,"div",13),R(2),K(),F(3,Trb,6,7,"mat-form-field",14),F(4,Urb,2,1,"div",15),K());a&2&&(a=P(),x(),Lg("id",a._pageSizeLabelId),x(),T(" ",a._intl.itemsPerPageLabel," "),x(),G(a._displayedPageSizeOptions.length>1?3:-1),x(),G(a._displayedPageSizeOptions.length<=1?4:-1))},Wrb=function(a){if(a&1){var b=t();J(0,"button",19);N("click",function(){u(b);var c=
P();return w(c._buttonClicked(0,c._previousButtonsDisabled()))});Ge();J(1,"svg",8);M(2,"path",20);K()()}a&2&&(a=P(),I("matTooltip",a._intl.firstPageLabel)("matTooltipDisabled",a._previousButtonsDisabled())("disabled",a._previousButtonsDisabled())("tabindex",a._previousButtonsDisabled()?-1:null),Lg("aria-label",a._intl.firstPageLabel))},Xrb=function(a){if(a&1){var b=t();J(0,"button",21);N("click",function(){u(b);var c=P();return w(c._buttonClicked((c.pageSize?Math.ceil(c.length/c.pageSize):0)-1,c._nextButtonsDisabled()))});
Ge();J(1,"svg",8);M(2,"path",22);K()()}a&2&&(a=P(),I("matTooltip",a._intl.lastPageLabel)("matTooltipDisabled",a._nextButtonsDisabled())("disabled",a._nextButtonsDisabled())("tabindex",a._nextButtonsDisabled()?-1:null),Lg("aria-label",a._intl.lastPageLabel))},Yrb=function(a){if(a&1){var b=t();J(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 w()});K()}a&2&&(a=P(),I("length",a.children.length)("pageSize",a.pageSize)("pageSizeOptions",
a.pageSizeOptions))},Zrb=function(a,b){if(a&1){var c=t();J(0,"li")(1,"a",4);N("click",function(){var e=u(c).$implicit,f=P();return w(f.onVisit.emit(e))});R(2);K();J(3,"onedev-hovercard",null,0);M(5,"b-component-card",5);K()()}if(a&2){a=b.$implicit;b=Q(4);var d=P();x();I("onedevHovercardTrigger",b)("href",d.ROUTES.editComponent.makeHref(a.componentId),hf);x();T(" ",a.name," ");x(3);I("componentId",a.componentId)}},$rb=function(a){if(a&1){var b=t();J(0,"button",6);N("click",function(){u(b);var c=P();
return w(c.onClickCopyIssueShortLinks.emit())});R(1);K()}a&2&&(a=P(),x(),T(" Copy '",a.shortLinkPrefix,"'' links "))},asb=function(a){if(a&1){var b=t();J(0,"div",2)(1,"button",3);N("click",function(){u(b);var c=P();return w(c.action())});R(2);K()()}a&2&&(a=P(),x(2),wh(a.data.action))},bsb=function(){},csb=function(a){if(a&1){var b=t();J(0,"a",17);N("click",function(){u(b);var c=P().$implicit;return w(c.showChildren=!1)});M(1,"mat-icon",18);K()}},dsb=function(a){if(a&1){var b=t();J(0,"a",19);N("click",
function(){u(b);var c=P().$implicit,d=P();return w(d.showChildren(c))});M(1,"mat-icon",20);K()}},esb=function(a){a&1&&(J(0,"span"),R(1,"[Archived]"),K())},gsb=function(a){a&1&&(J(0,"a",10),R(1," (Recent Issues) "),K());if(a&2){a=P().$implicit;var b=P();I("href",b.paths.listIssues(Hh(1,fsb,"status:open componentid:"+a.componentId)),hf)}},hsb=function(a){a&1&&(J(0,"a",15),R(1," Create issue "),K());if(a&2){a=P().$implicit;var b=P();I("href",b.paths.createIssue()+"?component="+a.componentId,hf)}},isb=
function(a){a&1&&(J(0,"div",21),R(1," No child components found. "),K())},jsb=function(a){a&1&&(J(0,"div",22),M(1,"b-spinner"),K())},ksb=function(a){if(a&1){var b=t();J(0,"component-subtree-list",24);N("childClosed",function(d){u(b);var e=P(3);return w(e.onSubtreeChildClosed(d))});K()}if(a&2){a=P(2).$implicit;var c=P();I("components",a.children)("parentComponent",a)("rootController",c.rootController)("includeArchived",c.includeArchived)}},lsb=function(a){a&1&&(J(0,"div",16),F(1,isb,2,0,"div",21),
F(2,jsb,2,0,"div",22),F(3,ksb,1,4,"component-subtree-list",23),K());a&2&&(a=P().$implicit,x(),G(a.noChildren?1:-1),x(),G(a.noChildren||a.children?-1:2),x(),G(a.children?3:-1))},msb=function(a,b){if(a&1){var c=t();J(0,"li",2);N("click",function(d){var e=u(c).$implicit,f=P();return w(f.setSelected(e.componentId,d))});J(1,"div",3);M(2,"div",4);J(3,"div",5);F(4,csb,2,0,"a",6)(5,dsb,2,0,"a",7);K();J(6,"div",8)(7,"div")(8,"a",9);R(9);K();F(10,esb,2,0,"span")(11,gsb,2,3,"a",10);M(12,"b-component-access-level-indicator",
11)(13,"b-tracker-chip-smart",12);K();J(14,"div",13);R(15);K()();J(16,"div",14);F(17,hsb,2,1,"a",15);K()();F(18,lsb,4,3,"div",16);K()}a&2&&(a=b.$implicit,b=P(),I("id",Dh("component-",a.componentId)),x(4),G(a.showChildren?4:5),x(4),I("href",b.ROUTES.editComponent.makeHref(a.componentId),hf),x(),T(" ",a.name," "),x(),G(a.archived?10:11),x(2),I("accessLevel",a.accessLimit==null?null:a.accessLimit.accessLevel),x(),I("trackerId",a.trackerId),x(2),wh(a.description),x(2),G(a.archived?-1:17),x(),G(a.showChildren?
18:-1))},nsb=function(a){if(a&1){var b=t();J(0,"a",17);N("click",function(){u(b);var c=P().$implicit;return w(c.showChildren=!1)});M(1,"mat-icon",18);K()}},osb=function(a){if(a&1){var b=t();J(0,"a",19);N("click",function(){u(b);var c=P().$implicit,d=P();return w(d.showChildren(c))});M(1,"mat-icon",20);K()}},psb=function(a){a&1&&(J(0,"span"),R(1,"[Archived]"),K())},rsb=function(a){a&1&&(J(0,"a",10),R(1," (Recent Issues) "),K());if(a&2){a=P().$implicit;var b=P();I("href",b.paths.listIssues(Hh(1,qsb,
"status:open componentid:"+a.componentId)),hf)}},ssb=function(a){a&1&&(J(0,"a",15),R(1," Create issue "),K());if(a&2){a=P().$implicit;var b=P();I("href",b.paths.createIssue()+"?component="+a.componentId,hf)}},tsb=function(a){a&1&&(J(0,"div",21),R(1," No child components found. "),K())},usb=function(a){a&1&&(J(0,"div",22),M(1,"b-spinner"),K())},vsb=function(a){if(a&1){var b=t();J(0,"component-subtree-list",24);N("childClosed",function(d){u(b);var e=P(3);return w(e.onSubtreeChildClosed(d))});K()}if(a&
2){a=P(2).$implicit;var c=P();I("components",a.children)("parentComponent",a)("rootController",c.rootController)("includeArchived",c.includeArchived)}},wsb=function(a){a&1&&(J(0,"div",16),F(1,tsb,2,0,"div",21),F(2,usb,2,0,"div",22),F(3,vsb,1,4,"component-subtree-list",23),K());a&2&&(a=P().$implicit,x(),G(a.noChildren?1:-1),x(),G(a.noChildren||a.children?-1:2),x(),G(a.children?3:-1))},xsb=function(a,b){if(a&1){var c=t();J(0,"li",2);N("click",function(d){var e=u(c).$implicit,f=P();return w(f.setSelected(e.componentId,
d))});J(1,"div",3);M(2,"div",4);J(3,"div",5);F(4,nsb,2,0,"a",6)(5,osb,2,0,"a",7);K();J(6,"div",8)(7,"div")(8,"a",9);R(9);K();F(10,psb,2,0,"span")(11,rsb,2,3,"a",10);M(12,"b-component-access-level-indicator",11)(13,"b-tracker-chip-smart",12);K();J(14,"div",13);R(15);K()();J(16,"div",14);F(17,ssb,2,1,"a",15);K()();F(18,wsb,4,3,"div",16);K()}a&2&&(a=b.$implicit,b=P(),I("id","component-"+a.componentId),x(4),G(a.showChildren?4:5),x(4),I("href",b.ROUTES.editComponent.makeHref(a.componentId),hf),x(),T(" ",
a.name," "),x(),G(a.archived?10:11),x(2),I("accessLevel",a.accessLimit==null?null:a.accessLimit.accessLevel),x(),I("trackerId",a.trackerId),x(2),wh(a.description),x(2),G(a.archived?-1:17),x(),G(a.showChildren?18:-1))},ysb=function(a){a&1&&(J(0,"div"),R(1," Loading custom fields... "),K())},zsb=function(a){a&1&&(J(0,"div"),R(1),K());a&2&&(a=P(2),x(),T(" There are no custom fields in component ",a.selectedComponent.name,". "))},Asb=function(a,b){a&1&&(J(0,"mat-option",6),R(1),K());a&2&&(a=b.$implicit,
I("value",a),x(),T(" ",a.name," "))},Bsb=function(a){if(a&1){var b=t();J(0,"div")(1,"mat-form-field",4)(2,"mat-label");R(3,"Custom field");K();J(4,"mat-select",5);N("selectionChange",function(c){u(b);var d=P(2);return w(d.fieldSelected.emit(c.value))});Pg(5,Asb,2,2,"mat-option",6,Og);K()()()}a&2&&(a=P(2),x(5),Qg(a.customFields))},Csb=function(a){a&1&&(J(0,"div",3),F(1,ysb,2,0,"div"),F(2,zsb,2,1,"div"),F(3,Bsb,7,0,"div"),K());a&2&&(a=P(),x(),G(a.customFields==null?1:-1),x(),G(a.customFields&&!a.customFields.length?
2:-1),x(),G((a.customFields==null?0:a.customFields.length)?3:-1))},Dsb=function(a){a&1&&Yg(0)},Esb=function(){},Fsb=function(a){a&1&&(Wg(0),R(1),Xg());a&2&&(a=P().value,x(),wh(a.textValue))},Gsb=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))}},Hsb=function(a){a&1&&(Wg(0),R(1),Xg());a&2&&(a=P().value,x(),wh(a.enumValue))},Isb=function(a){a&1&&(Wg(0),R(1),Xg());a&2&&(a=P().value,x(),wh(a.numericValue))},Jsb=function(a,b){a&1&&(Wg(0),R(1),
Xg());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;x();xh("",a,"",c===b-1?"":", ")}},Ksb=function(a){a&1&&Pg(0,Jsb,2,2,"ng-container",null,Og);a&2&&(a=P().value,Qg(a.repeatedTextValue.values))},Lsb=function(a,b){a&1&&(Wg(0),M(1,"b-formatted-date-time",4),R(2),Xg());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;var d=P(3);x();I("date",d.toDate(a));x();wh(c===b-1?"":", ")}},Msb=function(a){a&1&&Pg(0,Lsb,3,2,"ng-container",null,Og);a&2&&(a=P().value,Qg(a.repeatedDateValue.values))},Nsb=function(a,
b){a&1&&(Wg(0),R(1),Xg());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;x();xh("",a,"",c===b-1?"":", ")}},Osb=function(a){a&1&&Pg(0,Nsb,2,2,"ng-container",null,Og);a&2&&(a=P().value,Qg(a.repeatedEnumValue.values))},Psb=function(a,b){a&1&&(Wg(0),R(1),Xg());if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;x();xh("",a,"",c===b-1?"":", ")}},Qsb=function(a){a&1&&Pg(0,Psb,2,2,"ng-container",null,Og);a&2&&(a=P().value,Qg(a.repeatedNumericValue.values))},Rsb=function(a,b){a&1&&(F(0,Fsb,2,1,"ng-container"),
F(1,Gsb,1,1,"b-formatted-date-time",4),F(2,Hsb,2,1,"ng-container"),F(3,Isb,2,1,"ng-container"),F(4,Ksb,2,0),F(5,Msb,2,0),F(6,Osb,2,0),F(7,Qsb,2,0));a&2&&(a=b.value,b=P(),G(a.textValue!=null?0:-1),x(),G(b.isNonemptyJsonDateValue(a.dateValue)?1:-1),x(),G(a.enumValue!=null?2:-1),x(),G(a.numericValue!=null?3:-1),x(),G(a.repeatedTextValue!=null?4:-1),x(),G(a.repeatedDateValue!=null?5:-1),x(),G(a.repeatedEnumValue!=null?6:-1),x(),G(a.repeatedNumericValue!=null?7:-1))},Ssb=function(a){a&1&&(J(0,"div")(1,
"p"),R(2),K()());a&2&&(a=P(),x(2),xh(" Checking if you have permissions to mark these issues as spam. Checked ",a.issuesChecked," of ",a.issuesToFlag.length,"... "))},Tsb=function(a,b){a&1&&(J(0,"li"),R(1),K());a&2&&(a=b.$implicit,x(),xh(" ",a.issueId," - ",a.title," "))},Usb=function(a){a&1&&(J(0,"div")(1,"p"),R(2),K(),J(3,"ul"),Pg(4,Tsb,2,2,"li",null,Og),K()());a&2&&(a=P(),x(2),T(" You do not have permissions to mark ",a.protectedIssues.length," issues. These will not be flagged as spam. "),x(2),
Qg(a.protectedIssues))},Vsb=function(a){if(a&1){var b=t();J(0,"div",1)(1,"label");R(2);K();J(3,"onedev-single-select",4);Ah("valueChange",function(c){u(b);var d=P();zh(d.currentEnumLabel,c)||(d.currentEnumLabel=c);return w(c)});K()()}a&2&&(a=P(),x(2),T(" ",a.effortSpecName," "),x(),yh("value",a.currentEnumLabel),I("includeEmptyOption",!0)("options",a.allowedLabels))},Wsb=function(a){if(a&1){var b=t();J(0,"mat-dialog-content")(1,"mat-form-field")(2,"mat-label");R(3);K();J(4,"input",5);Ah("ngModelChange",
function(c){u(b);var d=P();zh(d.numericEstimatedEffort,c)||(d.numericEstimatedEffort=c);return w(c)});N("keypress",function(c){u(b);var d=P();return w(/^(\d*\.)?\d*$/.test(d.numericEstimatedEffort+c.key))});K()()()}a&2&&(a=P(),x(3),T(" ",a.effortSpecName," "),x(),yh("ngModel",a.numericEstimatedEffort))},btb=function(a,b){if(a&1){var c=t();J(0,"div",20,4);N("click",function(){var e=u(c).$implicit,f=P(2);Xsb(f,e)||Ysb(f,e);return w()});J(2,"mat-pseudo-checkbox",21);N("click",function(e){var f=u(c).$implicit,
h=P(2);e.stopPropagation();return w(Zsb(h,f))});K();J(3,"span");R(4);K()()}if(a&2){a=b.$implicit;b=b.$index;var d=P(2);th("display",d.shouldShowHotlist[a.hotlistId]?"block":"none");uh("focused",b===d.focusedRowIndex);I("title",Ch(a.name));Lg("id","hotlist-item-"+a.hotlistId)("aria-checked",$sb(d.selectedHotlistMap[a.hotlistId]))("aria-disabled",Xsb(d,a));x(2);I("state",atb(d.selectedHotlistMap[a.hotlistId]))("disabled",Xsb(d,a));x(2);T(" ",a.name," ")}},ctb=function(a){a&1&&(J(0,"span"),R(1),K());
a&2&&(a=P(2),x(),T(" (",a.filterText,")"))},dtb=function(a){if(a&1){var b=t();J(0,"div",22,5);N("click",function(){u(b);var c=P(2);return w(c.loadHotlist())})("keydown.enter",function(){u(b);var c=P(2);return w(c.loadHotlist())});R(2,"Load hotlist from id ");J(3,"span");R(4);K()()}a&2&&(a=P(2),uh("focused",a.focusedRowIndex===a.choices.length+1),Lg("aria-label","Load hotlist from"+a.filterText),x(4),T("(",a.filterText,")"))},ftb=function(a){if(a&1){var b=t();J(0,"div",23,6);N("click",function(){u(b);
var c=P(2);return w(etb(c))})("keydown.enter",function(){u(b);var c=P(2);return w(etb(c))});R(2,"Apply");K()}a&2&&(a=P(2),uh("focused",a.focusedRowIndex===a.choices.length+2))},gtb=function(a){if(a&1){var b=t();J(0,"div",11)(1,"div",15,2);Pg(3,btb,5,12,"div",16,Og);K()();M(5,"mat-divider");J(6,"div",17,3);N("click",function(){u(b);var c=P();return w(c.createHotlist())})("keydown.enter",function(){u(b);var c=P();return w(c.createHotlist())});R(8,"Create new hotlist ");F(9,ctb,2,1,"span");K();F(10,
dtb,5,4,"div",18);F(11,ftb,3,2,"div",19)}a&2&&(a=P(),x(3),Qg(a.choices),x(3),uh("focused",a.focusedRowIndex===a.choices.length),I("disabled",!a.canCreate),Lg("aria-label","Create new hotlist"+a.filterText),x(3),G(a.filterText?9:-1),x(),G(a.canLoad?10:-1),x(),G(a.pendingChanges?11:-1))},htb=function(a){a&1&&(J(0,"li")(1,"a",1),R(2),K(),M(3,"b-issue-visibility-chip",2),K());a&2&&(a=P().$implicit,x(),I("href",Dh("issues/",a.issueId),hf),x(),T("b/",a.issueId),x(),I("issueId",a.issueId))},itb=function(a,
b){a&1&&F(0,htb,4,4,"li");a&2&&G(b.$implicit.type==="issue"?0:-1)},jtb=function(a){a&1&&(J(0,"li"),R(1),M(2,"b-component-access-level-indicator",3),K());a&2&&(a=P().$implicit,x(),T(" ",a.path," "),x(),I("accessLevel",a.accessLevel))},ktb=function(a,b){a&1&&F(0,jtb,3,2,"li");a&2&&G(b.$implicit.type==="component"?0:-1)},ltb=function(a){a&1&&(J(0,"div",0)(1,"div")(2,"strong"),R(3,"You are editing issues in components that may have external viewers:"),K()(),J(4,"ul"),Pg(5,itb,1,1,null,null,Ng),K(),R(7,
" within: "),J(8,"ul"),Pg(9,ktb,1,1,null,null,Ng),K()());a&2&&(a=P(),x(5),Qg(a.externalWarnings),x(4),Qg(a.externalWarnings))},ntb=function(a,b){if(a&1){var c=t();J(0,"button",12);N("click",function(){var d=u(c).$implicit,e=P(3);return w(mtb(e.issueEditBuilder,d))});R(1);K()}a&2&&(a=b.$implicit,b=P(3),I("disabled",b.issueEditBuilder.issueState==a),x(),T(" ",a.displayValue," "))},otb=function(a){if(a&1){var b=t();J(0,"div",19)(1,"span");R(2,"Multiple");K();J(3,"a",22);N("click",function(){u(b);var c=
P(4);return w(c.issueEditBuilder.clearAssignee())});R(4,"X");K()()}},ptb=function(a){if(a&1){var b=t();J(0,"div",19)(1,"span");R(2,"Possibly multiple");K();J(3,"a",22);N("click",function(){u(b);var c=P(4);return w(c.issueEditBuilder.clearAssignee())});R(4,"X");K()()}},qtb=function(a){if(a&1){var b=t();J(0,"b-peoplekit-single",25);N("emailChange",function(c){u(b);var d=P(5);return w(d.setAssignee(c))})("keydown.control.enter",function(){u(b);var c=P(5);return w(Zr(c))})("keydown.meta.enter",function(){u(b);
var c=P(5);return w(Zr(c))});K()}a&2&&(a=P(5),I("cdkFocusInitial",a.focus===a.FocusableField.ASSIGNEE)("email",a.issueEditBuilder.commonAssignee))},rtb=function(a){if(a&1){var b=t();J(0,"input",26);N("ngModelChange",function(c){u(b);var d=P(5);return w(d.setAssignee(c))})("keydown.control.enter",function(){u(b);var c=P(5);return w(Zr(c))})("keydown.meta.enter",function(){u(b);var c=P(5);return w(Zr(c))});K()}a&2&&(a=P(5),I("ngModel",a.issueEditBuilder.commonAssignee)("bContactAutocomplete","SINGLE"),
Lg("cdkFocusInitial",a.focus===a.FocusableField.ASSIGNEE||null))},stb=function(a){a&1&&(J(0,"div"),F(1,qtb,1,2,"b-peoplekit-single",23)(2,rtb,1,3,"input",24),K());a&2&&(a=P(4),x(),G(a.enablePeoplekitAc?1:2))},utb=function(a){if(a&1){var b=t();J(0,"div",19)(1,"span");R(2);K();J(3,"a",27);N("click",function(){u(b);var c=P(4);return w(c.issueEditBuilder.clearVerifier())});R(4,"X");K()()}a&2&&(a=P(4),uh("bv2-invalid-multiple-user-chip",!ttb(a.issueEditBuilder)),x(2),T(" Multiple ",ttb(a.issueEditBuilder)?
"":"(some unset)"," "))},vtb=function(a){if(a&1){var b=t();J(0,"div",19)(1,"span");R(2);K();J(3,"a",27);N("click",function(){u(b);var c=P(4);return w(c.issueEditBuilder.clearVerifier())});R(4,"X");K()()}a&2&&(a=P(4),uh("bv2-invalid-multiple-user-chip",!ttb(a.issueEditBuilder)),x(2),T(" Possibly multiple ",ttb(a.issueEditBuilder)?"":"(some unset)"," "))},wtb=function(a){if(a&1){var b=t();J(0,"b-peoplekit-single",30);N("emailChange",function(c){u(b);var d=P(5);return w(d.issueEditBuilder.commonVerifier=
c)})("keydown.control.enter",function(){u(b);var c=P(5);return w(Zr(c))})("keydown.meta.enter",function(){u(b);var c=P(5);return w(Zr(c))});K()}a&2&&(a=P(5),I("cdkFocusInitial",a.focus===a.FocusableField.VERIFIER)("email",a.issueEditBuilder.commonVerifier)("required",(a.issueEditBuilder.issueState==null?null:a.issueEditBuilder.issueState.status)=="VERIFIED"))},xtb=function(a){if(a&1){var b=t();J(0,"input",31);Ah("ngModelChange",function(c){u(b);var d=P(5);zh(d.issueEditBuilder.commonVerifier,c)||
(d.issueEditBuilder.commonVerifier=c);return w(c)});N("keydown.control.enter",function(){u(b);var c=P(5);return w(Zr(c))})("keydown.meta.enter",function(){u(b);var c=P(5);return w(Zr(c))});K()}a&2&&(a=P(5),yh("ngModel",a.issueEditBuilder.commonVerifier),I("required",(a.issueEditBuilder.issueState==null?null:a.issueEditBuilder.issueState.status)=="VERIFIED")("bContactAutocomplete","SINGLE"),Lg("cdkFocusInitial",a.focus===a.FocusableField.VERIFIER||null))},ytb=function(a){a&1&&(J(0,"div"),F(1,wtb,1,
3,"b-peoplekit-single",28)(2,xtb,1,4,"input",29),K());a&2&&(a=P(4),x(),G(a.enablePeoplekitAc?1:2))},ztb=function(a){a&1&&(J(0,"div")(1,"div",14)(2,"label",18),R(3," Assignee "),K(),J(4,"div"),F(5,otb,5,0,"div",19)(6,ptb,5,0,"div",19)(7,stb,3,1,"div"),K()(),J(8,"div",14)(9,"label",20),R(10," Verifier "),K(),J(11,"div"),F(12,utb,5,3,"div",21)(13,vtb,5,3,"div",21)(14,ytb,3,1,"div"),K()()());if(a&2){var b,c;a=P(3);x(5);G((b=a.issueEditBuilder.selectedAssigneesStatus)==="MULTIPLE"?5:b==="POSSIBLY_MULTIPLE"?
6:7);x(7);G((c=a.issueEditBuilder.selectedVerifiersStatus)==="MULTIPLE"?12:c==="POSSIBLY_MULTIPLE"?13:14)}},Atb=function(a){if(a&1){var b=t();J(0,"div",14)(1,"label",32);R(2," Issue ID ");K();J(3,"input",33);N("ngModelChange",function(c){u(b);var d=P(3).issueEditBuilder;c=bLa(c);return w(d.commonDuplicateOf=c.length===1?c[0]:"")})("keydown.control.enter",function(){u(b);var c=P(3);return w(Zr(c))})("keydown.meta.enter",function(){u(b);var c=P(3);return w(Zr(c))});K()()}a&2&&(a=P(3),x(3),I("ngModel",
a.issueEditBuilder.commonDuplicateOf),Lg("cdkFocusInitial",a.focus===a.FocusableField.DUPE_ID||null))},Btb=function(a){if(a&1){var b=t();J(0,"div",5)(1,"button",10)(2,"span");R(3);K();M(4,"b-icon",11);K();J(5,"mat-menu",null,2)(7,"button",12);N("click",function(){u(b);var d=P(2);return w(d.issueEditBuilder.issueState=void 0)});R(8,"No change ");K();Pg(9,ntb,2,2,"button",13,Og);K();J(11,"div");F(12,ztb,15,2,"div")(13,Atb,4,2,"div",14);K();J(14,"div")(15,"b-comment-box",15);N("onSubmit",function(){u(b);
var d;(d=P(2).matDialogRef)==null||d.close(!0);return w()});K()();M(16,"div",16)(17,"b-external-warnings",17);K()}if(a&2){a=Q(6);var c=P(2);x();I("matMenuTriggerFor",a);x(2);wh(c.issueEditBuilder.issueState?c.issueEditBuilder.issueState.displayValue:"No change");x(4);I("disabled",!c.issueEditBuilder.issueState);x(2);Qg(c.issueStates);x(3);G((!c.issueEditBuilder.issueState||c.issueEditBuilder.issueState.status!=="DUPLICATE")===!0?12:13);x(3);I("comment",c.comment)("showToolbar",!1)("isLiteralModeSupported",
!0);x(2);I("externalWarnings",c.externalWarnings)}},Ctb=function(a){if(a&1){var b=t();J(0,"div",6)(1,"b-recaptcha",34);N("onUpdate",function(c){u(b);var d=P(2);return w(d.issueEditBuilder.recaptchaResponse=c)});K()()}},Etb=function(a){a&1&&(J(0,"form",null,1)(2,"h1",3),R(3,"Change issue status"),K(),J(4,"div",4)(5,"span"),R(6,"Enter updated issue status information below"),K(),F(7,Btb,18,8,"div",5),K(),F(8,Ctb,2,0,"div",6),J(9,"div",7)(10,"button",8),R(11," Cancel "),K(),J(12,"button",9),R(13," Save "),
K()()());a&2&&(a=P(),x(7),G(a.issueEditBuilder?7:-1),x(),G(a.issueEditBuilder&&a.enableRecaptcha?8:-1),x(2),I("mat-dialog-close",!1),x(2),I("mat-dialog-close",!0)("disabled",!Dtb(a)))},Ftb=function(a){if(a&1){var b=t();J(0,"b-peoplekit-single",7);Ah("emailChange",function(c){u(b);var d=P();zh(d.reporter,c)||(d.reporter=c);return w(c)});K()}a&2&&(a=P(),I("asMatInput",!0),yh("email",a.reporter))},Gtb=function(a){if(a&1){var b=t();J(0,"input",8);Ah("ngModelChange",function(c){u(b);var d=P();zh(d.reporter,
c)||(d.reporter=c);return w(c)});N("autocompleteActive",function(c){u(b);var d=P();return w(d.autocompleteActive=c)});K()}a&2&&(a=P(),I("bContactAutocomplete","SINGLE"),yh("ngModel",a.reporter))},Itb=function(a){if(a&1){var b=t();J(0,"b-app-bar-bulk-edit-menus",6);U(1,"async");N("onBulkEdit",function(d){u(b);var e=P();return w(e.bulkEdit(d))})("onQuickBulkEdit",function(d){u(b);var e=P();return w(e.quickBulkEdit(d))})("onBulkEditIssueRelation",function(d){u(b);var e=P();return w(e.bulkEditIssueRelation(d))})("onBulkMarkIssueRead",
function(){u(b);var d=P();return w(d.bulkMarkIssueRead())});K()}if(a&2){a=P();var c;I("readStatePrompt",Htb(a))("enableBulkEstimatedEffortOption",(c=V(1,2,a.enableBulkEstimatedEffortOption$))!=null?c:!1)}},Mtb=function(a){if(a&1){var b=t();J(0,"b-copy-issue-id-button",7);N("onClickCopyIssueIds",function(){u(b);var c=P();return w(Jtb(c.copyIssueIdService,$r(c)))})("onClickCopyIssueShortLinks",function(){u(b);var c=P();return w(Ktb(c.copyIssueIdService,$r(c)))})("onClickCopyAsIssueSearch",function(){u(b);
var c=P();return w(Ltb(c.copyIssueIdService,$r(c)))});K()}a&2&&(a=P(),I("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",a.activeSession.isInternalSession()))},Ntb=function(a){if(a&1){var b=t();J(0,"div",3)(1,"b-hotlist-picker",8);N("onApply",function(c){u(b);var d=P();return w(d.handleHotlistPickerSave(c))})("onCreate",function(c){u(b);var d=P();return w(d.onCreateHotlist.emit(c))})("onLoad",function(c){u(b);var d=P();return w(d.onLoadHotlist.emit(c))});K()()}a&
2&&(a=P(),x(),I("selectedHotlistIds",a.hotlistIdMatrix)("choices",a.hotlistChoices))},Ptb=function(a){if(a&1){var b=t();J(0,"b-comment-box",15);Ah("commentChange",function(c){u(b);var d=P(2);zh(d.comment,c)||(d.comment=c);return w(c)});N("onSubmit",function(){u(b);var c=P(2);return w(Otb(c))});K()}a&2&&(a=P(2),yh("comment",a.comment),I("showToolbar",!1)("isLiteralModeSupported",!0))},Qtb=function(a){if(a&1){var b=t();J(0,"div",12)(1,"b-recaptcha",16);N("onUpdate",function(c){u(b);var d=P(2);return w(d.recaptchaResponse=
c)});K()()}},Rtb=function(a){a&1&&(J(0,"h1",9),R(1,"Add comment"),K(),J(2,"mat-dialog-content"),F(3,Ptb,1,3,"b-comment-box",10),M(4,"b-external-warnings",11),K(),F(5,Qtb,2,0,"div",12),J(6,"mat-dialog-actions")(7,"button",13),R(8," Cancel "),K(),J(9,"button",14),R(10," Save "),K()());a&2&&(a=P(),x(3),G(a.comment?3:-1),x(),I("externalWarnings",a.externalWarnings),x(),G(a.enableRecaptcha?5:-1),x(2),I("mat-dialog-close",!1),x(2),I("disabled",a.enableRecaptcha&&a.recaptchaResponse==="")("mat-dialog-close",
!0))},Stb=function(a){a&1&&M(0,"tr",16)},Ttb=function(a){a&1&&M(0,"tr",17)},Utb=function(a){a&1&&(J(0,"th",18),R(1,"User"),K())},Vtb=function(a,b){a&1&&(J(0,"div",20),M(1,"b-user-image",21)(2,"b-user-display-name",22),K());a&2&&(x(),I("email",b),x(),I("email",b)("hovercardFocusEnabled",!0)("availabilityChipEnabled",!1))},Wtb=function(a,b){a&1&&(J(0,"td",19),F(1,Vtb,3,4,"div",20),K());if(a&2){var c;a=b.$implicit;x();G((c=a[0].user.user.emailAddress)?1:-1,c)}},Xtb=function(a){a&1&&(J(0,"th",18)(1,"span",
23),R(2," Role "),M(3,"b-icon",24),K()());a&2&&(P(),a=bh(10),x(3),I("matTooltip",a),Lg("aria-label",a))},Ytb=function(a,b){a&1&&(J(0,"mat-option",26),R(1),K());a&2&&(a=b.$implicit,I("value",a.value),x(),wh(a.displayText))},bub=function(a,b){if(a&1){var c=t();J(0,"td",19)(1,"mat-select",25);N("selectionChange",function(d){var e=u(c).$implicit,f=P();return w(Ztb(f,e[0],d.value))});J(2,"mat-select-trigger");R(3);K();Pg(4,Ytb,2,2,"mat-option",26,$tb);U(6,"async");K()()}a&2&&(a=b.$implicit,b=P(),x(),I("disabled",
!b.isAllowedToEdit)("value",a[0].user.role),x(2),T(" ",aub(a[0])," "),x(),Qg(V(6,3,b.roleOptions$)))},cub=function(a){a&1&&(J(0,"th",18)(1,"span",27),R(2," Lead "),M(3,"b-icon",24),K()());a&2&&(P(),a=bh(14),x(3),I("matTooltip",a),Lg("aria-label",a))},eub=function(a,b){if(a&1){var c=t();J(0,"td",19)(1,"mat-checkbox",28);N("change",function(e){var f=u(c).$implicit,h=P();return w(dub(h,f[0],e.checked))});K()()}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.";x();Kg("aria-label",Ch(d));I("checked",a[0].user.isLead)("disabled",!b.isAllowedToEdit)}},fub=function(a){a&1&&(J(0,"th",18)(1,"span",29),R(2," Involvement "),M(3,"b-icon",24),K()());a&2&&(P(),a=bh(18),x(3),I("matTooltip",a),Lg("aria-label",a))},gub=function(a,b){a&1&&(J(0,"mat-option",26),R(1),K());a&2&&(a=b.$implicit,I("value",a.value),x(),wh(a.displayText))},hub=function(a){a&1&&(J(0,"mat-option",26),R(1,"Percentage"),K());a&2&&(a=P(2),I("value",a.Involvement.INVOLVEMENT_UNSPECIFIED))},
jub=function(a,b){if(a&1){var c=t();J(0,"td",19)(1,"mat-select",30);N("selectionChange",function(d){var e=u(c).$implicit,f=P();return w(iub(f,e,e[0],d.value))});Pg(2,gub,2,2,"mat-option",26,$tb);F(4,hub,2,1,"mat-option",26);K()()}a&2&&(a=b.$implicit,b=P(),x(),I("disabled",!b.isAllowedToEdit)("value",a[0].allocation.involvement),x(),Qg(b.involvementOptions),x(2),G(b.staffingEnhancementsEnabled?4:-1))},kub=function(a){a&1&&(J(0,"th",18)(1,"span",31),R(2," Involvement "),M(3,"b-icon",24),K()());a&2&&
(P(),a=bh(22),x(3),I("matTooltip",a),Lg("aria-label",a))},nub=function(a){if(a&1){var b=t();J(0,"button",33,0);N("click",function(){u(b);var d=P().$implicit,e=P();return w(lub(e,d[0]))});R(2);M(3,"mat-icon",34);K()}if(a&2){a=P().$implicit;var c=P();I("disabled",!c.isAllowedToEdit);x(2);T(" ",mub(a[0])," ")}},oub=function(a,b){a&1&&(J(0,"mat-option",26),R(1),K());a&2&&(a=b.$implicit,I("value",a.displayText),x(),wh(a.displayText))},qub=function(a){if(a&1){var b=t();J(0,"input",35,1);Ah("ngModelChange",
function(d){u(b);var e=P(2);zh(e.allocationFromInputPlain,d)||(e.allocationFromInputPlain=d);return w(d)});N("keydown",function(d){u(b);var e=P().$implicit,f=P();return w(as(f,e,d))})("input",function(){u(b);var d=P(2);return w(d.allocationInputChanges$.next(d.allocationFromInputPlain||""))})("blur",function(d){u(b);var e=P().$implicit,f=P();d.relatedTarget&&as(f,e);return w()});K();J(2,"mat-autocomplete",36,2);N("optionSelected",function(d){u(b);var e=P().$implicit,f=P();f.allocationFromInputPlain=
Cl[d.option.value];as(f,e);return w()});Pg(4,oub,2,2,"mat-option",26,pub);K()}if(a&2){a=Q(3);var c=P(2);I("matAutocomplete",a);yh("ngModel",c.allocationFromInputPlain);I("disabled",!c.isAllowedToEdit);x(4);Qg(c.involvementOptions)}},rub=function(a,b){a&1&&(J(0,"td",19),F(1,nub,4,2,"button",32)(2,qub,6,3),K());a&2&&(a=b.$implicit,b=P(),x(),G(b.allocationUnderEdit===a[0]?2:1))},sub=function(a){a&1&&(J(0,"th",18),R(1),M(2,"b-icon",24),K());if(a&2){var b=P();a=b.$implicit;b=b.$index;var c=bh(1);vh(Dh("timebound-allocation ",
b%2===1?"blue":""));x();T(" ",a.displayText," ");x();I("matTooltip",c);Lg("aria-label",c)}},tub=function(a){if(a&1){var b=t();J(0,"button",42,0);N("click",function(){u(b);P(2);var d=bh(1),e=P(2);return w(lub(e,d))});R(2);M(3,"mat-icon",34);K()}if(a&2){P(2);a=bh(1);var c=P(2);I("disabled",!c.isAllowedToEdit);x(2);T(" ",mub(a)," ")}},uub=function(a,b){a&1&&(J(0,"mat-option",26),R(1),K());a&2&&(a=b.$implicit,I("value",a.displayText),x(),wh(a.displayText))},wub=function(a){if(a&1){var b=t();J(0,"input",
43,1);Ah("ngModelChange",function(d){u(b);var e=P(4);zh(e.allocationFromInputPlain,d)||(e.allocationFromInputPlain=d);return w(d)});N("keydown",function(d){u(b);var e=P(2).$implicit,f=P(2);return w(as(f,e,d))})("keyup",function(){u(b);var d=P(4);return w(vub(d))})("blur",function(d){u(b);var e=P(2).$implicit,f=P(2);d.relatedTarget&&as(f,e);return w()});K();J(2,"mat-autocomplete",36,2);N("optionSelected",function(d){u(b);var e=P(2).$implicit,f=P(2);f.allocationFromInputPlain=Cl[d.option.value];as(f,
e);return w()});Pg(4,uub,2,2,"mat-option",26,pub);K()}if(a&2){a=Q(3);var c=P(4);I("matAutocomplete",a);yh("ngModel",c.allocationFromInputPlain);I("disabled",!c.isAllowedToEdit);x(4);Qg(c.involvementOptions)}},xub=function(a){a&1&&F(0,tub,4,2,"button",41)(1,wub,6,3);if(a&2){P();a=bh(1);var b=P(2);G(b.allocationUnderEdit===a?1:0)}},yub=function(a,b){a&1&&(J(0,"mat-option",26),R(1),K());a&2&&(a=b.$implicit,I("value",a.value),x(),wh(a.displayText))},zub=function(a){if(a&1){var b=t();J(0,"mat-select",
30);N("selectionChange",function(d){u(b);var e=P().$implicit,f=bh(1),h=P(2);return w(iub(h,e,f,d.value))});Pg(1,yub,2,2,"mat-option",26,$tb);J(3,"mat-option",26);R(4,"Percentage");K()()}if(a&2){P();a=bh(1);var c=P(2);I("disabled",!c.isAllowedToEdit)("value",a.allocation==null?null:a.allocation.involvement);x();Qg(c.involvementOptions);x(2);I("value",c.Involvement.INVOLVEMENT_UNSPECIFIED)}},Aub=function(a,b){a&1&&(J(0,"td",39),$g(1),F(2,xub,2,1)(3,zub,5,3,"mat-select",40),K());if(a&2){a=b.$implicit;
b=P();var c=b.$implicit;vh(Dh("timebound-allocation ",b.$index%2===1?"blue":""));x();ah(c.extractPlannedAllocation(a));x();G(c.displayInvolvementAsPercentage?2:3)}},Bub=function(a,b){a&1&&(Wg(0,14),$g(1),D(2,sub,3,6,"th",37)(3,Aub,4,5,"td",38),Xg());a&2&&(a=b.$implicit,I("matColumnDef",a.columnDef),x(),ah("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."))},
Cub=function(a){a&1&&(J(0,"th",18),R(1,"Delete"),K())},Eub=function(a){if(a&1){var b=t();J(0,"td",19)(1,"button",44);N("click",function(){var c=u(b).$implicit,d=P();return w(Dub(d,c[0]))});M(2,"mat-icon",45);K()()}a&2&&(a=P(),x(),I("disabled",!a.isAllowedToEdit))},Fub=function(a,b){a&1&&(J(0,"span",5)(1,"mat-option",11)(2,"span",12),R(3),K()()());a&2&&(a=b.$implicit,I("matTooltip","The "+a.displayText+" role has already been allocated.")("matTooltipDisabled",!a.disabled),x(),I("value",a.value)("disabled",
a.disabled),x(2),T(" ",a.displayText," "))},Gub=function(a){a&1&&(J(0,"mat-error"),R(1," Must be an integer between 1 and 300,000. "),K())},Hub=function(a){a&1&&(J(0,"b-callout",2)(1,"b-callout-body"),R(2," You do not have edit access "),K()())},Jub=function(a,b){if(a&1){var c=t();J(0,"b-placeholder-chip",15);N("editPlaceholder",function(){var e=u(c).$implicit,f=P(),h=bh(6);return w(Iub(f,h,e.role))})("removePlaceholder",function(){var e=u(c).$implicit,f=P();return w(f.removePlaceholder(e))});K()}if(a&
2){a=b.$implicit;b=P();var d=bh(2);I("placeholder",a)("isAllowedToEdit",b.isAllowedToEdit&&!d)}},Kub=function(a){var b=a.assigneeUser===a.currentUserEmail,c=a.verifierUser===a.currentUserEmail,d,e=!((d=a.collaboratorsUsers)==null||!d.some(function(h){return h===a.currentUserEmail})),f;d=!((f=a.ccUsers)==null||!f.some(function(h){return h===a.currentUserEmail}));return!b&&!c&&!e&&!d},Lub=function(a){a&1&&(J(0,"span"),R(1,"Cancel"),K())},Mub=function(a){a&1&&(J(0,"span"),R(1,"Edit"),K())},Tub=function(a){if(a&
1){var b=t();J(0,"td")(1,"div")(2,"div",16);R(3);K();J(4,"div",17)(5,"a",18);R(6);K()()()();J(7,"td",12)(8,"mat-radio-button",19);N("change",function(d){u(b);var e=P(2);return w(Nub(e,d.value))});K()();J(9,"td",12)(10,"b-button",20);N("onAction",function(){u(b);var d=P().$implicit,e=P();return w(Oub(e,d))});F(11,Lub,2,0,"span")(12,Mub,2,0,"span");K()();J(13,"td",12)(14,"b-button",21);N("onAction",function(){u(b);var d=P().$implicit,e=P();return w(Pub(e,d))});R(15," Delete ");K()()}if(a&2){a=P().$implicit;
var c=P();x(2);uh("selected",Qub(c,a));x();T(" ",a.name," ");x(2);I("href",Rub(c,a),hf);Lg("aria-label",a.name+"- Click to create a new issue");x();T(" ",Rub(c,a)," ");x(2);I("id",Dh("template-default-radio-",a.index))("checked",c.defaultIndex===a.index);Kg("aria-label","Make template "+a.name+" as default template");I("value",a.index);x(2);I("bAriaLabel",Qub(c,a)?"Cancel editing "+a.name:"Edit "+a.name);x();G(Qub(c,a)?11:12);x(3);I("bAriaLabel","Delete "+a.name)("disabled",!Sub(c,a))}},Uub=function(a){a&
1&&(J(0,"h2",23),R(1," Create Template "),K())},Vub=function(a){a&1&&(J(0,"h2",23),R(1),K());a&2&&(a=P(2).$implicit,x(),xh(' Edit template "',a.name,'" ',a.editableTemplate.isDirty()?"(changed)":""," "))},Wub=function(a){if(a&1){var b=t();J(0,"div",24)(1,"b-slide-toggle",77);N("modelChange",function(){u(b);var c=P(2).$implicit.editableTemplate;c.inheritable=!c.inheritable;bs(c);return w()});K();J(2,"span",25)(3,"label",78);R(4,"Inherited by all child components");K();M(5,"mat-icon",79);K()()}a&2&&
(a=P(2).$implicit,x(),I("model",a.editableTemplate.inheritable))},Xub=function(a,b){a&1&&(J(0,"mat-option",84),R(1),K());a&2&&(a=b.$implicit,I("value",Ch(a)),x(),T(" ",a," "))},Yub=function(a){if(a&1){var b=t();J(0,"div",35)(1,"div",25)(2,"label",80);R(3,"Collaborator Groups");K();M(4,"mat-icon",81);K();J(5,"mat-form-field",82)(6,"mat-select",83);Ah("ngModelChange",function(d){u(b);var e=P(2).$implicit;zh(e.editableTemplate.collaboratorGroups,d)||(e.editableTemplate.collaboratorGroups=d);return w(d)});
N("ngModelChange",function(){u(b);var d=P(2).$implicit;return w(bs(d.editableTemplate))});J(7,"mat-select-trigger");R(8);K();Pg(9,Xub,2,3,"mat-option",84,Og);K()()()}if(a&2){a=P(2).$implicit;var c=P();x(4);I("matTooltip",Ch(c.COLLABORATOR_GROUPS_TOOLTIP));x(2);yh("ngModel",a.editableTemplate.collaboratorGroups);x(2);T(" ",a.editableTemplate.getCollaboratorGroupsString()," ");x();Qg(c.trackerCollaboratorGroups)}},$ub=function(a,b){if(a&1){var c=t();J(0,"button",85);N("click",function(){var e=u(c).$implicit,
f=P(2).$implicit,h=P();f.issueType=e.value;return w(Zub(h))});R(1);K()}if(a&2){a=b.$implicit;b=P(2).$implicit;var d;I("disabled",b.issueType===a.value)("matTooltip",(d=a.altText)!=null?d:"");x();T(" ",a.displayText," ")}},avb=function(a,b){if(a&1){var c=t();J(0,"button",86);N("click",function(){var d=u(c).$implicit,e=P(2).$implicit;e.editableTemplate.priority=d.value;return w(bs(e.editableTemplate))});R(1);K()}a&2&&(a=b.$implicit,b=P(2).$implicit,I("disabled",b.editableTemplate.priority===a.value),
x(),T(" ",a.displayText," "))},bvb=function(a,b){if(a&1){var c=t();J(0,"button",86);N("click",function(){var d=u(c).$implicit,e=P(2).$implicit;e.editableTemplate.severity=d.value;return w(bs(e.editableTemplate))});R(1);K()}a&2&&(a=b.$implicit,b=P(2).$implicit,I("disabled",b.editableTemplate.severity===a.value),x(),T(" ",a.displayText," "))},cvb=function(a,b){if(a&1){var c=t();J(0,"div",52)(1,"b-hotlist-chip",87);N("removeHotlist",function(){var d=u(c).$implicit,e=P(3);return w(e.removeHotlist(d.hotlistId))});
K()()}a&2&&(a=b.$implicit,x(),I("hotlist",a))},dvb=function(a){if(a&1){var b=t();J(0,"input",88);Ah("ngModelChange",function(c){u(b);var d=P(2).$implicit;zh(d.editableTemplate.assignee,c)||(d.editableTemplate.assignee=c);return w(c)});N("ngModelChange",function(){u(b);var c=P(2).$implicit;return w(bs(c.editableTemplate))});K()}a&2&&(a=P(2).$implicit,I("bContactAutocomplete","SINGLE"),yh("ngModel",a.editableTemplate.assignee))},evb=function(a){if(a&1){var b=t();J(0,"b-peoplekit-single",89);N("emailChange",
function(c){u(b);var d=P(2).$implicit,e=P();return w(e.handleAutocompleteSelection(c,d,"assignee"))});K()}a&2&&(a=P(2).$implicit,Kg("ariaLabel","The user assigned to this issue"),I("email",a.editableTemplate.assignee))},fvb=function(a){if(a&1){var b=t();J(0,"input",90);Ah("ngModelChange",function(c){u(b);var d=P(2).$implicit;zh(d.editableTemplate.verifier,c)||(d.editableTemplate.verifier=c);return w(c)});N("ngModelChange",function(){u(b);var c=P(2).$implicit;return w(bs(c.editableTemplate))});K()}a&
2&&(a=P(2).$implicit,I("bContactAutocomplete","SINGLE"),yh("ngModel",a.editableTemplate.verifier))},gvb=function(a){if(a&1){var b=t();J(0,"b-peoplekit-single",91);N("emailChange",function(c){u(b);var d=P(2).$implicit,e=P();return w(e.handleAutocompleteSelection(c,d,"verifier"))});K()}a&2&&(a=P(2).$implicit,Kg("ariaLabel","The user who will verify this issue"),I("email",a.editableTemplate.verifier))},hvb=function(a){if(a&1){var b=t();J(0,"div",25)(1,"label",92);R(2,"Collaborators");K();M(3,"mat-icon",
93);K();J(4,"b-peoplekit-searchbar",94,5);N("emailsChange",function(c){u(b);var d=P(2).$implicit,e=P();d.editableTemplate&&!Isa(d.editableTemplate.collaborators,c)&&(d.editableTemplate.collaborators=c,bs(d.editableTemplate),e.cdr.markForCheck());return w()});K()}a&2&&(a=P(2).$implicit,x(4),Kg("ariaLabel","Addition to Collaborators"),I("emails",a.editableTemplate.collaborators))},jvb=function(a){if(a&1){var b=t();J(0,"div",25)(1,"label",95);R(2,"Collaborators");K();M(3,"mat-icon",93);K();J(4,"input",
96);N("ngModelChange",function(c){u(b);var d=P(2).$implicit;return w(ivb(d.editableTemplate,c))});K()}a&2&&(a=P(2).$implicit,x(4),I("bContactAutocomplete","MULTI")("ngModel",a.editableTemplate.collaborators.join(", ")))},kvb=function(a){if(a&1){var b=t();J(0,"div",25)(1,"label",97);R(2,"CC");K()();J(3,"b-peoplekit-searchbar",98,6);N("emailsChange",function(c){u(b);var d=P(2).$implicit,e=P();d.editableTemplate&&!Isa(d.editableTemplate.cc,c)&&(d.editableTemplate.cc=c,bs(d.editableTemplate),e.cdr.markForCheck());
return w()});K()}a&2&&(a=P(2).$implicit,x(3),Kg("ariaLabel","Addition to CCs"),I("emails",a.editableTemplate.cc))},mvb=function(a){if(a&1){var b=t();J(0,"div",25)(1,"label",99);R(2,"CC");K()();J(3,"input",100);N("ngModelChange",function(c){u(b);var d=P(2).$implicit;return w(lvb(d.editableTemplate,c))});K()}a&2&&(a=P(2).$implicit,x(3),I("bContactAutocomplete","MULTI")("ngModel",a.editableTemplate.cc.join(", ")))},nvb=function(a){a&1&&(J(0,"h3"),R(1,"Custom issue fields"),K())},ovb=function(a){if(a&
1){var b=t();J(0,"input",107);Ah("ngModelChange",function(d){u(b);var e=P().$implicit,f=P(2).$implicit;zh(f.editableTemplate.customFieldValues[e.id].textValue,d)||(f.editableTemplate.customFieldValues[e.id].textValue=d);return w(d)});N("ngModelChange",function(){u(b);var d=P(3).$implicit;return w(bs(d.editableTemplate))});K()}if(a&2){a=P().$implicit;var c=P(2).$implicit;Lg("id",Dh("template-cf-",a.id));yh("ngModel",c.editableTemplate.customFieldValues[a.id].textValue)}},pvb=function(a){if(a&1){var b=
t();J(0,"input",108);Ah("ngModelChange",function(d){u(b);var e=P().$implicit,f=P(2).$implicit;zh(f.editableTemplate.customFieldValues[e.id].numericValue,d)||(f.editableTemplate.customFieldValues[e.id].numericValue=d);return w(d)});N("ngModelChange",function(){u(b);var d=P(3).$implicit;return w(bs(d.editableTemplate))});K()}if(a&2){a=P().$implicit;var c=P(2).$implicit;Lg("id",Dh("template-cf-",a.id));yh("ngModel",c.editableTemplate.customFieldValues[a.id].numericValue)}},rvb=function(a){if(a&1){var b=
t();J(0,"b-edit-field",109);N("valueChange",function(h){u(b);var k=P().$implicit,q=P(2).$implicit,v=P();return w(v.setCustomField(q,k.id,h))});K()}if(a&2){a=P().$implicit;var c=P(2).$implicit,d=P();Lg("id",Dh("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:Gh(7,qvb))}},svb=function(a){if(a&1){var b=
t();J(0,"bv2-input-date-picker",110);N("boundValueChange",function(e){u(b);var f=P().$implicit,h=P(2).$implicit,k=P();return w(h.editableTemplate.customFieldValues[f.id].dateValue=k.getDateValue(e))})("boundValueChange",function(){u(b);var e=P(3).$implicit;return w(bs(e.editableTemplate))});K()}if(a&2){a=P().$implicit;var c=P(2).$implicit;Lg("id",Dh("template-cf-",a.id));var d;I("boundValue",(d=c.editableTemplate.customFieldValues[a.id].dateValue)!=null?d:void 0)}},uvb=function(a){if(a&1){var b=t();
J(0,"b-list-field",111);N("valuesChange",function(e){u(b);var f=P().$implicit,h=P(2).$implicit,k=P();return w(k.setCustomField(h,f.id,e.values))});K()}if(a&2){a=P().$implicit;var c=P(2).$implicit,d=P();Lg("id",Dh("template-cf-",a.id));I("defaultLineCount",2)("type",d.getListFieldType(a.type))("values",tvb(c.editableTemplate.customFieldValues[a.id]))("enumChoices",a.enumFields)("truncate",!0)}},vvb=function(a,b){a&1&&(J(0,"div")(1,"div",25)(2,"label",101),R(3),K()(),J(4,"div"),F(5,ovb,1,3,"input",
102)(6,pvb,1,3,"input",103)(7,rvb,1,8,"b-edit-field",104)(8,svb,1,3,"bv2-input-date-picker",105)(9,uvb,1,7,"b-list-field",106),K()());if(a&2){var c;a=b.$implicit;vh(Dh("cell-",a.cellType));x(2);I("for",Dh("template-cf-",a.id));x();xh("",a.name," (id=",a.id,")");x(2);G((c=a.type)==="TEXT"?5:c==="NUMERIC"?6:c==="ENUM"?7:c==="DATE"?8:9)}},zvb=function(a){if(a&1){var b=t();J(0,"td",15)(1,"div",22);F(2,Uub,2,0,"h2",23)(3,Vub,2,2,"h2",23);J(4,"div",24)(5,"div",25)(6,"label",26);R(7,"Template Name");K()();
J(8,"input",27);Ah("ngModelChange",function(h){u(b);var k=P().$implicit;zh(k.editableTemplate.name,h)||(k.editableTemplate.name=h);return w(h)});N("ngModelChange",function(){u(b);var h=P().$implicit;return w(bs(h.editableTemplate))});K()();F(9,Wub,6,1,"div",24);J(10,"div",24)(11,"div",25)(12,"label",28);R(13,"Description of Template");K()();J(14,"input",29);Ah("ngModelChange",function(h){u(b);var k=P().$implicit;zh(k.editableTemplate.description,h)||(k.editableTemplate.description=h);return w(h)});
N("ngModelChange",function(){u(b);var h=P().$implicit;return w(bs(h.editableTemplate))});K()();J(15,"div",30)(16,"h3");R(17," Standard issue fields ");K();J(18,"div",31)(19,"div",32)(20,"div",25)(21,"label",33);R(22,"Issue Access Level");K()();J(23,"b-issue-access-limits-dropdown",34);N("updatedAccessLimitLevel",function(h){u(b);var k=P().$implicit;return w(k.editableTemplate.onAccessLimitLevelSelected(h))});K()();F(24,Yub,11,4,"div",35);K();J(25,"div",24)(26,"div",25)(27,"label",36);R(28,"Title");
K()();J(29,"input",37);Ah("ngModelChange",function(h){u(b);var k=P().$implicit;zh(k.editableTemplate.title,h)||(k.editableTemplate.title=h);return w(h)});N("ngModelChange",function(){u(b);var h=P().$implicit;return w(bs(h.editableTemplate))});K()();J(30,"div",38)(31,"div",25)(32,"label",39);R(33,"Type");K()();J(34,"button",40)(35,"span");R(36);K();M(37,"b-icon",41);K();J(38,"mat-menu",42,2);Pg(40,$ub,2,3,"button",43,Og);K()();J(42,"div",38)(43,"div",25)(44,"label",44);R(45,"Priority");K()();J(46,
"button",45)(47,"span");R(48);K();M(49,"b-icon",41);K();J(50,"mat-menu",42,3);Pg(52,avb,2,2,"button",46,Og);K()();J(54,"div",38)(55,"div",25)(56,"label",47);R(57,"Severity");K()();J(58,"button",48)(59,"span");R(60);K();M(61,"b-icon",41);K();J(62,"mat-menu",42,4);Pg(64,bvb,2,2,"button",46,Og);K()();J(66,"div",49)(67,"div",25)(68,"label",50);R(69,"Default Hotlists");K()();J(70,"b-hotlist-picker",51);N("onApply",function(h){u(b);var k=P(2);return w(k.handleHotlistPickerSave(h))})("onCreate",function(h){u(b);
var k=P(2);return w(k.createHotlist(h))})("onLoad",function(h){u(b);var k=P(2);return w(k.loadHotlist(h))});K();Pg(71,cvb,2,1,"div",52,Og);K();M(73,"div",53);J(74,"div",54)(75,"div",25)(76,"label",55);R(77,"Assignee");K()();F(78,dvb,1,2,"input",56)(79,evb,1,2,"b-peoplekit-single",57);K();J(80,"div",54)(81,"div",25)(82,"label",58);R(83,"Verifier");K()();F(84,fvb,1,2,"input",59)(85,gvb,1,2,"b-peoplekit-single",60);K();J(86,"div",24);F(87,hvb,6,2)(88,jvb,5,2);K();J(89,"div",24);F(90,kvb,5,2)(91,mvb,
4,2);K();J(92,"div",24)(93,"div",25)(94,"label",61);R(95,"Initial Comment");K()();J(96,"textarea",62);Ah("ngModelChange",function(h){u(b);var k=P().$implicit;zh(k.editableTemplate.comment,h)||(k.editableTemplate.comment=h);return w(h)});N("ngModelChange",function(){u(b);var h=P().$implicit;return w(bs(h.editableTemplate))});R(97,"                  ");K();J(98,"b-markdown-toggle",63);N("change",function(h){u(b);var k=P().$implicit;return w(k.editableTemplate.setFormattingMode(h))});K()();J(99,"div",
24)(100,"div",25)(101,"label",64);R(102,"In Prod");K()();J(103,"b-slide-toggle",65);N("modelChange",function(){u(b);var h=P().$implicit.editableTemplate;h.inProd=!h.inProd;bs(h);return w()});K()();$g(104);U(105,"staffingSummary");J(106,"div",66)(107,"div",25)(108,"label",67);R(109,"Staffing");K();M(110,"mat-icon",68);K();J(111,"button",69);N("click",function(){u(b);var h=P(2);return w(h.editStaffing())});J(112,"span",70);R(113);K();M(114,"div",71);K()()();J(115,"div",72);F(116,nvb,2,0,"h3");Pg(117,
vvb,10,8,"div",73,Og);K();J(119,"div",74)(120,"b-button",75);N("onAction",function(){u(b);var h=P(2);return w(wvb(h))});R(121," Save ");K();J(122,"b-button",76);N("onAction",function(){u(b);var h=P(2);return w(xvb(h))});R(123," Cancel ");K()()()()}if(a&2){var c=Q(39),d=Q(51),e=Q(63);a=P().$implicit;var f=P();x(2);G(a.editableTemplate.new?2:3);x(6);yh("ngModel",a.editableTemplate.name);x();G(f.enableTemplateInheritance?9:-1);x(5);yh("ngModel",a.editableTemplate.description);x(9);I("disabled",!1)("defaultAccessLimitLevel",
a.editableTemplate.issueAccessLimitLevel)("implicitAccessEnabled",f.implicitAccessEnabled);x();G(f.trackerCollaboratorGroups.length?24:-1);x(5);yh("ngModel",a.editableTemplate.title);x(5);I("matMenuTriggerFor",c);x(2);wh(yvb(a.issueType));x(2);I("overlapTrigger",!0);x(2);Qg(f.issueTypeChoices);x(6);I("matMenuTriggerFor",d);x(2);wh(a.editableTemplate.priority);x(2);I("overlapTrigger",!0);x(2);Qg(f.priorityChoices);x(6);I("matMenuTriggerFor",e);x(2);wh(a.editableTemplate.severity);x(2);I("overlapTrigger",
!0);x(2);Qg(f.severityChoices);x(6);I("selectedHotlistIds",f.selectedHotlistIds)("choices",f.hotlists);x();Qg(f.selectedHotlists);x(7);G(f.enablePeoplekitAc?79:78);x(6);G(f.enablePeoplekitAc?85:84);x(3);G(f.enablePeoplekitAc?87:88);x(3);G(f.enablePeoplekitAc?90:91);x(6);yh("ngModel",a.editableTemplate.comment);x(2);I("initialValue",a.editableTemplate.formattingMode);x(5);I("model",a.editableTemplate.inProd);c=V(105,31,a.editableTemplate.staffing==null?null:a.editableTemplate.staffing.plannedAllocations);
x(8);Lg("aria-label","Staffing: "+c);x(2);T(" ",c," ");x(3);G(f.customFieldRows.length>0?116:-1);x();Qg(f.customFieldRows);x(3);I("disabled",!a.editableTemplate.isDirty())}},Avb=function(a,b){a&1&&(J(0,"tr"),F(1,Tub,16,15)(2,zvb,124,33,"td",15),K());a&2&&(a=b.$implicit,x(),G(a.editableTemplate?2:1))},Bvb=function(a){a&1&&(J(0,"tr")(1,"td",15)(2,"div",112)(3,"strong"),R(4,"Templates inherited from parent components"),K()()()())},Cvb=function(a){a&1&&(Wg(0),M(1,"b-component-card",118,8),Xg());if(a&
2){a=Q(2);var b=P().$implicit;x();I("onedevIsHovercardReady",a.init)("componentId",b.componentId)}},Dvb=function(a,b){if(a&1){var c=t();J(0,"tr")(1,"td")(2,"div")(3,"div",16);R(4);K();J(5,"div",17)(6,"a",18);R(7);K()()()();J(8,"td",12)(9,"mat-radio-button",19);N("change",function(e){u(c);var f=P(2);return w(Nub(f,e.value))});K()();J(10,"td",113)(11,"div",114)(12,"div",115);R(13,"Inherited From");K();J(14,"a",116);R(15);K();J(16,"onedev-hovercard",null,7);D(18,Cvb,3,2,"ng-container",117);K()()()()}if(a&
2){a=b.$implicit;b=Q(17);var d=P(2);x(3);uh("selected",Qub(d,a));x();T(" ",a.name," ");x(2);I("href",Rub(d,a),hf);Lg("aria-label",a.name+"- Click to create a new issue");x();T(" ",Rub(d,a)," ");x(2);I("id",Dh("template-default-radio-",a.index))("checked",d.defaultIndex===a.index);Kg("aria-label","Make template "+a.name+" as default template");I("value",a.index);x(5);I("onedevHovercardTrigger",b)("href",d.ROUTES.editComponentTemplates.makeHref(a.componentId),hf);Lg("aria-label","Inherited from "+d.componentIdsToPaths[a.componentId]);
x();T(" ",d.componentIdsToPaths[a.componentId]," ")}},Evb=function(a,b){a&1&&(F(0,Bvb,5,0,"tr"),Pg(1,Dvb,19,15,"tr",null,Og));a&2&&(G(b.length?0:-1),x(),Qg(b))},Fvb=function(a,b){a&1&&(J(0,"div",119),R(1),K(),J(2,"div",120)(3,"button",121),R(4," Cancel "),K(),J(5,"button",122),R(6," Confirm "),K()());a&2&&(a=b.$implicit,x(),T(' Are you sure you want to delete the template "',a.name,'"? '),x(2),I("mat-dialog-close",!1),x(2),I("mat-dialog-close",!0))},Gvb=function(a,b){a&1&&(J(0,"div",119),R(1),K(),
J(2,"div",120)(3,"button",123),R(4," Cancel "),K(),J(5,"button",123),R(6," Don't Save "),K(),J(7,"button",124),R(8," Save "),K()());a&2&&(a=b.$implicit,x(),T(' Do you want to save changes to template "',a.name,'" before closing? '),x(2),I("mat-dialog-close",void 0),x(2),I("mat-dialog-close",!1),x(2),I("mat-dialog-close",!0))},Hvb=function(a){a&1&&(J(0,"div"),R(1),K(),J(2,"div"),R(3),K());a&2&&(a=P(),x(),T(" Policy: ",a.rawObjectiveDisplayText," (business) "),x(2),T("Effective: ",a.objectiveDisplayText,
" (calendar)"))},Ivb=function(a){a&1&&(J(0,"div"),R(1),K());a&2&&(a=P(),x(),T("Policy: ",a.rawObjectiveDisplayText," (calendar)"))},Jvb=function(a){a&1&&(J(0,"div"),M(1,"b-slo-time-indicator",0),K());a&2&&(a=P(),x(),I("sloStartTime",a.sloStartTime)("sloEndTime",a.sloEndTime)("sloBounds",a.assignmentSlo)("includeObjective",!0))},Kvb=function(a){a&1&&(J(0,"div"),M(1,"b-slo-time-indicator",1),K());a&2&&(a=P(),x(),I("sloStartTime",a.sloStartTime)("sloEndTime",a.sloEndTime)("sloBounds",a.responseSlo)("includeObjective",
!0))},Lvb=function(a){a&1&&(J(0,"div"),M(1,"b-slo-time-indicator",2),K());a&2&&(a=P(),x(),I("sloStartTime",a.sloStartTime)("sloEndTime",a.sloEndTime)("sloBounds",a.closureSlo)("includeObjective",!0))},Mvb=function(a){a&1&&(J(0,"div",5),M(1,"b-slo-status-summary",7),K());a&2&&(a=P(),x(),I("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric",a.onlyShowMetric))},Nvb=function(a){a&1&&R(0," No applicable SLO rules ")},Ovb=function(a){a&1&&R(0," No SLO set on issue component ")},Pvb=
function(a){a&1&&(J(0,"div",6),F(1,Nvb,1,0)(2,Ovb,1,0),K());a&2&&(a=P(),x(),G(a.editSloLink?1:2))},Qvb=function(a){if(a&1){var b=t();J(0,"a",9);N("click",function(){u(b);var c=P(2);return w(c.trackOpenSlo())});R(1);K()}a&2&&(a=P(2),I("href",a.editSloLink,hf),x(),T(" ",a.sloName," "))},Rvb=function(a){a&1&&(J(0,"span"),R(1," (private) "),K())},Svb=function(a){a&1&&(J(0,"span"),R(1," SLO definition: "),F(2,Qvb,2,2,"a",8)(3,Rvb,2,0,"span"),K());a&2&&(a=P(),x(2),G(a.sloName?2:3))},Vvb=function(a){if(a.type===
"CUSTOM_FIELD")return new cs({name:a.customFieldId?String(a.customFieldId):a.customFieldName||"",label:a.customFieldName||"",fullLabel:a.customFieldName||"",isCustomField:!0,sortable:a.customFieldId!==void 0,tooltip:""});a=ksa(a.type);a==="canonicalIssueId"&&(a="duplicateOfIssueId");return Tvb.includes(a)?Uvb(a):null},Xvb=function(a){return Wvb(a.map(Vvb).filter(function(b){return!!b}))},Yvb=function(a){return a.map(function(b){b.isCustomField?b={type:"CUSTOM_FIELD",customFieldId:kj(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})},Wvb=function(a){return rj(a,function(b){return b.name})},Uvb=function(a){var b={name:a,label:a.toUpperCase()},c=Zvb[a];c?Object.assign(b,c):Tvb.includes(a)||(b.isCustomField=!0);b.fullLabel=b.fullLabel||b.label.charAt(0).toUpperCase()+b.label.slice(1).toLowerCase();return new cs(b)},$vb=function(a,b){a&1&&M(0,"col");a&2&&
vh(Dh("",b.$implicit.name,"-col"))},awb=function(a){a&1&&Yg(0)},cwb=function(a,b){a&1&&D(0,awb,1,0,"ng-container",7);a&2&&(a=b.$implicit,b=P(),I("ngTemplateOutlet",b.headerCellTemplates[a.name]||b.defaultHeaderCellTemplate)("ngTemplateOutletContext",Hh(2,bwb,a)))},dwb=function(a){a&1&&Yg(0)},fwb=function(a,b){a&1&&D(0,dwb,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",una(ewb,d,a,c))}},hwb=function(a,
b){if(a&1){var c=t();J(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 w()})("focus",function(){var e=u(c).$index,f=P(2);f.focusedRowIndex!==e&&(f.focusedRowIndex=e,f.focusedRowIndexChange.emit(e));return w()});Pg(2,fwb,1,6,"ng-container",null,gwb);K()}if(a&2){a=b.$implicit;b=b.$index;var d=P(2);uh("selected",a.selected)("unread",!d.readUnreadOptOut&&!a.isRead&&!a.isClosed)("closed",a.isClosed)("grid-focus",
d.focusedRowIndex===b);Lg("data-row-id",a.id)("data-is-read",a.isRead)("aria-label",d.renderRowLabel(a,b)+(a.selected?", row starred":""));x(2);Qg(d.columns)}},jwb=function(a){a&1&&Pg(0,hwb,4,11,"tr",8,iwb);a&2&&(a=P(),Qg(a.list))},kwb=function(a,b){a&1&&(J(0,"th"),M(1,"pop-grid-default-th",10),K());a&2&&(a=b.column,x(),I("column",a))},lwb=function(a,b){a&1&&(J(0,"td"),M(1,"pop-grid-default-cell",11),K());a&2&&(a=b.row,b=b.column,x(),I("row",a)("column",b))},mwb=function(a){if(a&1){var b=t();J(0,
"b-sortable-header",3);N("sortChanged",function(c){u(b);var d=P();d.grid&&d.grid.sortChange.emit(c);return w()});K()}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||""))},nwb=function(a){a&1&&(J(0,"span",4),R(1),K());a&2&&(a=P(2),x(),T("column-",a.column.name))},owb=function(a){a&1&&(J(0,"div",2),F(1,nwb,2,1,"span",4),R(2),K());a&2&&(a=P(),Lg("aria-label",
a.column.label),x(),G(a.column.label?-1:1),x(),T(" ",a.column.label," "))},pwb=function(a){if(a&1){var b=t();J(0,"div",13,3);N("menuOpened",function(){u(b);var d=P();return w(d.menuOpen=!0)})("menuClosed",function(){u(b);var d=P();return w(d.menuOpen=!1)})("keydown.enter",function(d){u(b);Q(1).openMenu();d.preventDefault();return w(d.stopPropagation())})("keydown.space",function(){u(b);var d=Q(1);return w(d.openMenu())});K()}if(a&2){a=P();var c=Q(5);uh("columnpicker-button-active",a.menuOpen);Lg("aria-label",
Dh("",a.column.fullLabel," column configuration"));I("matMenuTriggerFor",c)}},swb=function(a,b){if(a&1){var c=t();J(0,"button",14);N("click",function(){var d=u(c).$implicit,e=P();return w(qwb(e,d.name))});M(1,"b-icon",15);J(2,"span",16);R(3);K()()}a&2&&(a=b.$implicit,b=P(),uh("b-menu-item-checked",rwb(a.name).get(b.listViewPrefs)),x(3),T(" ",a.menuItem," "))},twb=function(a){a&1&&M(0,"mat-divider")},uwb=function(a){if(a&1){var b=t();J(0,"button",19);N("click",function(){u(b);var c=P().$implicit,d=
P().before,e=P();return w(e.add(c,d))})("keydown.enter",function(c){u(b);var d=P().$implicit,e=P().before;P().add(d,e);c.preventDefault();return w(c.stopPropagation())});R(1);K()}a&2&&(a=P().$implicit,I("matTooltip",a.tooltip),x(),T(" ",a.fullLabel," "))},wwb=function(a){a&1&&(J(0,"button",11)(1,"span"),R(2),K()());if(a&2){a=P().$implicit;var b=P().before;P();var c=Q(19);I("matMenuTriggerFor",c)("matMenuTriggerData",Ih(3,vwb,a.columns,b));x(2);wh(a.label)}},xwb=function(a,b){a&1&&F(0,uwb,2,2,"button",
18)(1,wwb,3,6,"button",11);a&2&&(a=b.$implicit,b=P(2),G(b.isIssueGridColumn(a)?0:1))},zwb=function(a){if(a&1){var b=t();J(0,"button",17);N("click",function(){var c=u(b).before,d=P();return w(ywb(d,c))});R(1," Custom Field ");K();M(2,"mat-divider");Pg(3,xwb,2,1,null,null,Og)}a&2&&(a=P(),x(3),Qg(a.currentAvailableItems))},Awb=function(a,b){if(a&1){var c=t();J(0,"button",21);N("click",function(){var d=u(c).$implicit,e=P().before,f=P();return w(f.add(d,e))})("keydown.enter",function(d){var e=u(c).$implicit,
f=P().before;P().add(e,f);d.preventDefault();return w(d.stopPropagation())});R(1);K()}a&2&&(a=b.$implicit,x(),T(" ",a.fullLabel," "))},Bwb=function(a,b){a&1&&Pg(0,Awb,2,1,"button",20,Og);a&2&&Qg(b.columns)},rwb=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("cf`"+a);}},Cwb=function(a){a&1&&
(J(0,"p",5),R(1),K());a&2&&(a=P(),x(),T(" * Status update must be less than ",a.CHAR_LIMIT," characters. "))},Dwb=function(a){a&1&&(J(0,"p",6),R(1),J(2,"a",12),R(3," Learn more "),K()());a&2&&(a=P(),x(),T(" Your status update contains restricted words: ",Pq(a.bannedWordsChecker),". Review your status update before posting. "))},Ewb=function(a){a&1&&(J(0,"div",8),M(1,"b-live-preview",13),K());a&2&&(a=P(),x(),I("comment",a.newStatusUpdate.updateText)("issueId",a.origStatusUpdate.issueId)("formattingMode",
a.newStatusUpdate.formattingMode)("audience",a.formattingAudience))},Fwb=function(a,b){b.stack&&(a.stack+="\n"+b.stack);return a},Kwb=function(a){var b=Gwb(a,"Content-Type");if(!b)return null;b=b.toLowerCase();if(b.startsWith("application/json"))return b.startsWith("application/json+protobuf")?new Hwb:new Iwb;if(b.startsWith("application/x-protobuf")){a=Gwb(a,"Content-Transfer-Encoding");if(!a)return new ds;if(a.toLowerCase()=="base64")return new Jwb}return null},Mwb=function(a){return function(b){b=
W(b,Lwb,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(h){h=h.getWorkspaceId();var k=d==null?void 0:d.get(h),q;return{workspaceId:Uc(h),workspaceName:(q=k==null?void 0:k.getName())!=null?q:"",issueId:a}})}},Nwb=function(a){a&1&&Yg(0)},Pwb=function(a){a&1&&(Wg(0),D(1,Nwb,1,0,"ng-container",8),Xg());a&2&&(a=P(),x(),I("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",
Hh(2,Owb,a.value)))},Qwb=function(a){a&1&&R(0);a&2&&(a=P(),wh(a.value!=null?a.value:"--"))},Rwb=function(a){a&1&&(Ge(),J(0,"svg",9),M(1,"path",10),K())},Swb=function(a){a&1&&M(0,"input",11);a&2&&(a=P(),I("required",a.required())("formControl",a.editingValue),Lg("aria-labelledby",a.labelledById))},Twb=function(a){return a!=null?Number(a):void 0},Uwb=function(a){a&1&&M(0,"mat-icon",4);a&2&&(P(),a=Q(5),I("onedevHovercardTrigger",a))},Vwb=function(a){if(a&1){var b=t();J(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 w()});K()}if(a&2){a=P(2);var c=Q(2);I("value",a.selectedNumericEstimate)("valueTemplate",c)("disabled",a.disabled)("displayEditIcon",!a.disabled)}},Wwb=function(a){a&1&&R(0);a&2&&(a=P().$implicit,T(" ",a.label," "))},Xwb=function(a){a&1&&R(0," -- ")},Ywb=function(a,b){a&1&&F(0,Wwb,1,1)(1,Xwb,1,0);a&2&&G(b.$implicit?0:1)},$wb=function(a){if(a&1){var b=t();J(0,
"onedev-single-select",11);N("valueChange",function(e){u(b);var f=P(2);return w(f.selectOption(e))});K();D(1,Ywb,2,1,"ng-template",null,2,Lh)}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:Gh(6,Zwb))("includeEmptyOption",!0)("optionTemplate",a)("disabled",c.disabled)("displayArrowIcon",!c.disabled)}},axb=function(a){a&1&&R(0);a&2&&(a=P(2),T(" ",a.effort==null?null:a.effort.estimate," "))},bxb=function(a){a&
1&&(J(0,"onedev-edit-field")(1,"onedev-field-label",3),R(2),F(3,Uwb,1,1,"mat-icon",4),K(),J(4,"onedev-hovercard",null,1)(6,"div",5)(7,"div",6),R(8," This estimate was made under a different configuration and needs to be updated. "),J(9,"a",7),R(10,"Learn more"),K()()()(),J(11,"onedev-field-value",8),F(12,Vwb,1,4,"onedev-numeric-field",9)(13,$wb,3,7)(14,axb,1,1),K()());if(a&2){var b;a=P();x();I("thinking",a.thinking);x();T(" ",a.fieldName," ");x();G(a.isCompatibleValue?-1:3);x(8);I("thinking",a.thinking);
x();G((b=a.fieldType)==="NUMERIC"?12:b==="DROPDOWN"?13:14)}},cxb=function(a){a&1&&R(0);a&2&&(a=P(2),T(" ",a.effort==null?null:a.effort.estimate," "))},dxb=function(a){a&1&&R(0);a&2&&(a=P().$implicit,T(" ",a!=null?a:"--"," "))},exb=function(a,b){a&1&&F(0,cxb,1,1)(1,dxb,1,1);a&2&&(a=b.$implicit,b=P(),G(b.isNaN(a)?0:1))},fxb=function(a){a&1&&R(0," -- ")},gxb=function(a){a&1&&(J(0,"div",12),R(1),K(),J(2,"div",13),R(3),K());a&2&&(a=P(),x(),wh(a.staffingUserSummary),x(2),wh(a.staffingPlaceholderSummary))},
hxb=function(a){a&1&&M(0,"mat-icon",4)},ixb=function(a){a&1&&M(0,"mat-icon",11)},jxb=function(a){a&1&&M(0,"mat-icon",12)},kxb=function(a){a&1&&(J(0,"span"),M(1,"b-formatted-date-time",22),K());a&2&&(a=P(2),x(),I("timestamp",a.sloStartTime))},lxb=function(a){a&1&&(J(0,"span"),M(1,"b-formatted-date-time",22),J(2,"span"),R(3," (default)"),K()());a&2&&(a=P(2),x(),I("timestamp",a.issueCreationTimestamp/1E3))},mxb=function(a){if(a&1){var b=t();J(0,"slo-edit-date-time-picker",23);N("closePicker",function(){u(b);
var c=P(2);return w(c.isSloStartEditTimePickerOpen=!1)})("sloEditCommit",function(c){u(b);var d=P(2);return w(d.updateSloStartTime(c))});K()}a&2&&(a=P(2),I("sloStatus",a.sloStatus)("sloEditTime",a.sloStartTime)("noneButtonEnabled",a.hasSloStartTime))},nxb=function(a){if(a&1){var b=t();J(0,"div",14)(1,"a",18);R(2," Start Date: ");K();J(3,"div",19)(4,"a",20,0);N("keydown.enter",function(){u(b);var d=P();d.isSloStartEditTimePickerOpen=!d.isSloStartEditTimePickerOpen;return w()})("keydown.space",function(){u(b);
var d=P();d.isSloStartEditTimePickerOpen=!d.isSloStartEditTimePickerOpen;return w()})("click",function(){u(b);var d=P();d.isSloStartEditTimePickerOpen=!d.isSloStartEditTimePickerOpen;return w()});F(6,kxb,2,1,"span")(7,lxb,4,1,"span");K();D(8,mxb,1,3,"ng-template",21);K()()}if(a&2){a=Q(5);var c=P();x(6);G(c.hasSloStartTime?6:7);x(2);I("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",c.isSloStartEditTimePickerOpen)}},oxb=function(a){a&1&&(J(0,"span"),R(1," Set closure SLO "),K())},pxb=function(a){a&
1&&(J(0,"span"),M(1,"b-formatted-date-time",22),K());a&2&&(a=P(2),x(),I("timestamp",a.sloEndTime))},qxb=function(a){a&1&&(J(0,"span"),M(1,"b-formatted-date-time",22),J(2,"span"),R(3," (default)"),K()());a&2&&(a=P(2),x(),I("timestamp",a.closureSloTarget*1E3))},rxb=function(a){if(a&1){var b=t();J(0,"slo-edit-date-time-picker",23);N("closePicker",function(){u(b);var c=P(2);return w(c.isSloEndEditTimePickerOpen=!1)})("sloEditCommit",function(c){u(b);var d=P(2);return w(d.updateSloEndTime(c))});K()}a&
2&&(a=P(2),I("sloStatus",a.sloStatus)("sloEditTime",a.sloEndTime)("noneButtonEnabled",a.hasSloEndTime))},sxb=function(a){if(a&1){var b=t();J(0,"div",15)(1,"a",18);R(2," End Date: ");K();J(3,"div",19)(4,"a",24,0);N("click",function(){u(b);var d=P();d.isSloEndEditTimePickerOpen=!d.isSloEndEditTimePickerOpen;return w()})("keydown.enter",function(){u(b);var d=P();d.isSloEndEditTimePickerOpen=!d.isSloEndEditTimePickerOpen;return w()})("keydown.space",function(){u(b);var d=P();d.isSloEndEditTimePickerOpen=
!d.isSloEndEditTimePickerOpen;return w()});F(6,oxb,2,0,"span");F(7,pxb,2,1,"span");F(8,qxb,4,1,"span");K();D(9,rxb,1,3,"ng-template",21);K()()}if(a&2){a=Q(5);var c=P();x(6);G(c.hasClosureSlo?-1:6);x();G(c.hasClosureSlo&&c.hasSloEndTime?7:-1);x();G(c.hasClosureSlo&&!c.hasSloEndTime?8:-1);x();I("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",c.isSloEndEditTimePickerOpen)}},txb=function(a){a&1&&M(0,"b-user-membership-chip",28);a&2&&(a=P(2),I("user",a.escalationOwner)("email",a.userToDisplayString(a.escalationOwner))("enableSmallChip",
!0))},uxb=function(a){a&1&&R(0," None ")},vxb=function(a){a&1&&(J(0,"div",16)(1,"span",25),R(2," Owner: "),K(),J(3,"onedev-hovercard",null,1)(5,"div",26),R(6," Escalation owner for SLO accounting and other purposes. "),J(7,"a",27),R(8,"Learn more."),K()()(),J(9,"div",19),F(10,txb,1,3,"b-user-membership-chip",28)(11,uxb,1,0),K()());if(a&2){a=Q(4);var b=P();x();I("onedevHovercardTrigger",a);x(9);G(b.escalationOwner?10:11)}},wxb=function(a,b){if(a&1){var c=t();J(0,"a",30);N("click",function(){u(c);var d=
P(2);return w(d.trackOpenSlo())});R(1);K()}a&2&&(a=P(2),Lg("href",a.editSloLink,hf),x(),T(" ",b.name," "))},xxb=function(a){a&1&&(J(0,"div",17),R(1," SLO definition: "),F(2,wxb,2,2,"a",29),U(3,"async"),K());if(a&2){var b;a=P();x(2);G((b=V(3,1,a.slo$))?2:-1,b)}},yxb=function(a){if(a&1){var b=t();J(0,"div",17)(1,"a",31);N("click",function(){u(b);P();Fo("component","open","fromIssueSloBox");return w()});R(2,"Select an SLO");K()()}a&2&&(a=P(),x(),Lg("href",a.componentSloLink,hf))},zxb=function(a){return a&&
a.teamId!=="0"?a.deleted?"DELETED":"VALID":"MISSING"},Axb=function(a){a&1&&Yg(0)},Bxb=function(a){if(a&1){var b=t();J(0,"div",3);R(1," Select a team from the suggestions below, or edit in ");J(2,"a",6);N("click",function(){u(b);var d=P();return w(d.trackClick("viewTeamAssociationOnComponent"))});R(3,"component settings");K();R(4,". ");J(5,"mat-radio-group",7);Ah("ngModelChange",function(d){u(b);var e=P();zh(e.teamAction,d)||(e.teamAction=d);return w(d)});J(6,"p")(7,"mat-radio-button",8);R(8," Don't make any changes ");
K()();J(9,"p")(10,"mat-radio-button",9);R(11," Map component to selected team ");K()()();D(12,Axb,1,0,"ng-container",10);K()}if(a&2){a=P();var c=Q(5);x(2);I("href",a.componentSetting,hf);x(3);yh("ngModel",a.teamAction);x(7);I("ngTemplateOutlet",c)}},Cxb=function(a){a&1&&Yg(0)},Dxb=function(a){a&1&&(J(0,"div",3),R(1," Assigned team no longer exists, select a different team from the suggestions below, or edit/opt out of team mapping in "),J(2,"a",11),R(3,"component settings"),K(),R(4,". "),D(5,Cxb,
1,0,"ng-container",10),K());if(a&2){a=P();var b=Q(5);x(2);I("href",a.componentSetting,hf);x(3);I("ngTemplateOutlet",b)}},Exb=function(a){a&1&&(J(0,"span",16),R(1),K());a&2&&(a=P().$implicit,x(),wh(a.teamPath))},Fxb=function(a){a&1&&R(0," -- ")},Gxb=function(a,b){a&1&&F(0,Exb,2,1,"span",16)(1,Fxb,1,0);a&2&&G(b.$implicit?0:1)},Hxb=function(a){if(a&1){var b=t();J(0,"div",12)(1,"onedev-single-select",13);Ah("valueChange",function(d){u(b);var e=P(2);zh(e.selectedTeam,d)||(e.selectedTeam=d);return w(d)});
N("valueChange",function(d){u(b);var e=P(2);return w(e.selectOption(d))});K();D(2,Gxb,2,1,"ng-template",null,1,Lh);J(4,"a",14);N("click",function(){u(b);var d=P(2);return w(d.trackClick("viewTeamInMoma"))});M(5,"mat-icon",15);K()()}if(a&2){a=Q(3);var c=P(2);x();I("disabled",c.teamAction==="NONE");yh("value",c.selectedTeam);I("options",c.teamOptions)("includeEmptyOption",!1)("optionTemplate",a);x(3);Lg("href",c.getMomaTeamLink(),hf)}},Ixb=function(a){a&1&&F(0,Hxb,6,6,"div",12);a&2&&(a=P(),G(a.teamOptions.length>
0?0:-1))},Jxb=function(a){if(a&1){var b=t();J(0,"b-callout-actions")(1,"b-button",1);N("click",function(){u(b);var c=P();return w(c.openDialog())});R(2);K()()}a&2&&(a=P(),x(2),wh(a.buttonName))},Kxb=function(a){a&1&&Yg(0)},Lxb=function(a){a&1&&D(0,Kxb,1,0,"ng-container",47);a&2&&(P(),a=Q(96),I("ngTemplateOutlet",a))},Nxb=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",Hh(8,Mxb,b))("showInternalOnlyFieldBadge",
!V(1,6,a.issueIsOnInternalComponent$)))},Oxb=function(a){a&1&&(F(0,Nxb,2,10,"b-list-field",48),U(1,"async"));if(a&2){var b;a=P(2);G((b=V(1,1,a.teamHovercardInputs$))?0:-1,b)}},Qxb=function(a){if(a&1){var b=t();J(0,"div",49)(1,"b-team-warning",50);U(2,"async");U(3,"async");N("updateTeam",function(){u(b);var h=P(3);h.issueFullFridge.poke(h.issueId);return w()});K()()}if(a&2){var c;a=P();var d=P(),e=P();x();var f;I("warningType",a)("componentId",d.componentId||void 0)("parentComponentId",((c=V(2,4,e.component$))==
null?null:c.parentComponentId)||void 0)("teamSuggestions",(f=V(3,6,e.teamSuggestions$))!=null?f:Gh(8,Pxb))}},Rxb=function(a){a&1&&(F(0,Qxb,4,9,"div",49),U(1,"async"));a&2&&(a=P(2),G(V(1,1,a.shouldDisplayTeamSuggestions$)?0:-1))},Sxb=function(a){a&1&&Yg(0)},Txb=function(a){a&1&&D(0,Sxb,1,0,"ng-container",47);a&2&&(P(),a=Q(98),I("ngTemplateOutlet",a))},Uxb=function(a,b){if(a&1){var c=t();J(0,"div",51);M(1,"div",52);J(2,"span",53);U(3,"async");U(4,"async");N("click",function(){var d=u(c),e=P(3);return w(es(e,
d))})("keydown.enter",function(d){var e=u(c);es(P(3),e);d.stopPropagation();return w(d.preventDefault())})("keydown.space",function(d){var e=u(c);es(P(3),e);d.stopPropagation();return w(d.preventDefault())});R(5);K()()}a&2&&(a=P(3),x(2),uh("disabled",!!V(3,6,a.isSaving$(a.IssueFieldName.STATUS))),I("matTooltip",b.description||""),Lg("aria-disabled",!!V(4,8,a.isSaving$(a.IssueFieldName.STATUS)))("aria-label",b.displayText||null),x(3),T(" ",b.displayText," "))},Vxb=function(a){a&1&&(F(0,Uxb,6,10,"div",
51),U(1,"async"));if(a&2){var b;a=P(2);G((b=V(1,1,a.issueStatusQuickAction$))?0:-1,b)}},Wxb=function(a){a&1&&(J(0,"div",24),M(1,"b-edit-field",54,15),U(3,"async"),J(4,"div",51),M(5,"div",52),J(6,"a",55),U(7,"async"),R(8," Open triage "),K()()());a&2&&(a=P(2),x(),I("name","phase")("title","Triage phase")("type",a.FieldType.ENUM)("value",V(3,8,a.triagePhase$))("choices",a.phaseChoices)("showHotkeyHint",!1)("disabled",!0),x(5),I("href",V(7,10,a.triagePhaseUrl$),hf))},Xxb=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",V(2,2,b.canonicalIssueId$))}},Zxb=function(a){if(a&1){var b=t();J(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 w(Yxb(f.editIssueService,f.issueId,e))});K()}if(a&2){a=P(2);var c,d;I("effort",(c=V(1,3,a.effort$))!=null?c:void 0)("effortSpec",(d=V(2,5,a.effortSpec$))!=null?d:void 0)("disabled",!V(3,7,a.hasAclToEdit$))}},$xb=function(a){a&
1&&(J(0,"div"),R(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. "),J(2,"a",61),R(3,"Learn more"),K()());a&2&&(a=P(3),x(2),I("href",zq(a.documentationLinks)+"#expanded-access",hf))},ayb=function(a){a&1&&(J(0,"div",38)(1,"span",58),R(2,"Expanded Access"),K(),J(3,"xap-bubble",59)(4,"xap-icon-trigger"),M(5,"mat-icon",60),K(),D(6,$xb,4,1,"ng-template",null,17,Lh),K()());a&2&&(a=Q(7),x(3),
I("panelTemplate",a))},byb=function(a){a&1&&(J(0,"span",65),U(1,"async"),R(2),K());if(a&2){a=P();var b=P(3);uh("disabled",!!V(1,3,b.isSaving$(b.IssueFieldName.ASSIGNEE)));x(2);T(" ",a.displayText," ")}},cyb=function(a,b){if(a&1){var c=t();J(0,"div",63);U(1,"async");N("onHotkey",function(){var d=u(c),e=P(3);return w(es(e,d))})("click",function(){var d=u(c),e=P(3);return w(es(e,d))})("keydown.enter",function(d){var e=u(c);es(P(3),e);d.stopPropagation();return w(d.preventDefault())})("keydown.space",
function(d){var e=u(c);es(P(3),e);d.stopPropagation();return w(d.preventDefault())});M(2,"div",52);F(3,byb,3,5,"span",64);U(4,"async");K()}a&2&&(a=P(3),I("hotkey",a.HOTKEYS.ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE)("matTooltip",b.description),Lg("aria-disabled",!!V(1,5,a.isSaving$(a.IssueFieldName.ASSIGNEE)))("aria-label",b.description),x(3),G(V(4,7,a.hasAclToEdit$)?3:-1))},dyb=function(a){a&1&&(F(0,cyb,5,9,"div",62),U(1,"async"));if(a&2){var b;a=P(2);G((b=V(1,1,a.issueAssigneeQuickAction$))?0:-1,b)}},eyb=
function(a){a&1&&Yg(0)},fyb=function(a){a&1&&D(0,eyb,1,0,"ng-container",47);a&2&&(P(),a=Q(100),I("ngTemplateOutlet",a))},gyb=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")}},hyb=function(a,b){a&1&&(F(0,gyb,1,6,"b-list-field",44),U(1,"async"));a&2&&(a=P(2),G(V(1,1,a.shouldDisplayWtdmUi$)&&b.length?0:-1))},
iyb=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)")}},kyb=function(a,b){a&1&&(J(0,"div"),Yg(1,66),K());a&2&&(a=b.$implicit,P(),b=Q(112),x(),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Hh(2,jyb,a)))},lyb=function(a){a&1&&Yg(0)},myb=function(a){a&1&&D(0,lyb,1,0,"ng-container",47);a&2&&(P(),
a=Q(110),I("ngTemplateOutlet",a))},nyb=function(a){a&1&&M(0,"hr",45)},oyb=function(a){a&1&&Yg(0)},pyb=function(a){a&1&&D(0,oyb,1,0,"ng-container",47);a&2&&(P(2),a=Q(96),I("ngTemplateOutlet",a))},qyb=function(a){a&1&&Yg(0)},ryb=function(a){a&1&&D(0,qyb,1,0,"ng-container",47);a&2&&(P(2),a=Q(98),I("ngTemplateOutlet",a))},syb=function(a){a&1&&Yg(0)},tyb=function(a){a&1&&D(0,syb,1,0,"ng-container",47);a&2&&(P(2),a=Q(100),I("ngTemplateOutlet",a))},uyb=function(a,b){a&1&&(J(0,"div"),Yg(1,66),K());a&2&&(a=
b.$implicit,P(2),b=Q(112),x(),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Hh(2,jyb,a)))},vyb=function(a){a&1&&Yg(0)},wyb=function(a){a&1&&D(0,vyb,1,0,"ng-container",47);a&2&&(P(2),a=Q(110),I("ngTemplateOutlet",a))},xyb=function(a){a&1&&(J(0,"collapsible-panel",46),U(1,"async"),F(2,pyb,1,1,"ng-container"),U(3,"async"),F(4,ryb,1,1,"ng-container"),U(5,"async"),F(6,tyb,1,1,"ng-container"),U(7,"async"),Pg(8,uyb,2,4,"div",null,t()[15][8].trackCustomField,!0),U(10,"async"),F(11,wyb,1,1,"ng-container"),
U(12,"async"),K());if(a&2){a=P(2);var b;I("titleWhenCollapsed",(b=V(1,6,a.showHiddenFieldsLabel$))!=null?b:"")("titleWhenExpanded","Hide additional fields");x(2);G(a.showSloStatus&&!V(3,8,a.isSloStatusPrimary$)?2:-1);x(2);G(V(5,10,a.isSeverityPrimary$)?-1:4);x(2);G(a.showCodeChanges&&!V(7,12,a.isChangelistPrimary$)?6:-1);x(2);Qg(V(10,14,a.hiddenCustomFields$));x(3);G(V(12,16,a.isForgottenFourPrimary$)?-1:11)}},yyb=function(a){if(a&1){var b=t();J(0,"b-issue-slo-box",68);U(1,"async");U(2,"async");U(3,
"async");U(4,"async");U(5,"async");N("onSloStartTimeChange",function(h){u(b);var k=P(3);return w(k.editIssueService.updateSloStartTime(k.issueId,h.date))})("onSloEndTimeChange",function(h){u(b);var k=P(3);return w(k.editIssueService.updateSloEndTime(k.issueId,h.date))});K()}if(a&2){a=P(2);var c=P(),d,e,f;I("sloStatus",(d=V(1,9,c.sloStatus$))!=null?d:void 0)("sloStartTime",a.sloStartTime)("sloEndTime",a.sloEndTime)("sloId",(e=V(2,11,c.sloId$))!=null?e:void 0)("componentId",a.componentId||void 0)("isEditable",
!!V(3,13,c.hasAclToEdit$))("issueCreationTimestamp",(f=V(4,15,c.createdTimeMicros$))!=null?f:0)("showInternalOnlyFieldBadge",!V(5,17,c.issueIsOnInternalComponent$))("escalationOwner",a.escalationOwner)}},zyb=function(a){a&1&&D(0,yyb,6,19,"ng-template",67);a&2&&(a=P(2),I("refreshable",a.refreshMonitor.getObservable()))},Byb=function(a){if(a&1){var b=t();J(0,"b-edit-field",69);U(1,"async");U(2,"async");N("valueChange",function(d){u(b);var e=P(2);return w(Ayb(e.editIssueService,e.issueId,d!=null?d:""))});
K()}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",!V(1,8,c.hasAclToEdit$))("disabled",!!V(2,10,c.isSaving$(c.IssueFieldName.SEVERITY)))}},Eyb=function(a){if(a&1){var b=t();J(0,"b-list-field",70);U(1,"async");U(2,"async");N("valuesChange",function(h){u(b);var k=P(2),q=[],v=[];h=l(h.values);for(var A=h.next();!A.done;A=
h.next()){A=A.value;var E=Hl(A);E?q.push(E):v.push(A)}Cyb(k.editIssueService,k.issueId,v);Dyb(k.editIssueService,k.issueId,q);return w()});K();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",!V(1,15,f.hasAclToEdit$))("defaultLineCount",3)("title","Code Changes")("inputValidator",f.codeChangesValidator)("type",f.ListFieldType.CODE_CHANGES)("values",R2a(a,f.sessionIsExternal))("listFieldDisabled",!!V(2,17,f.isSaving$(f.IssueFieldName.CHANGELISTS)));
x(3);uh("bv2-issue-metadata-error",(c=V(4,19,f.pendingCodeChanges$))==null?null:c.hasError);I("readonly",!0)("defaultLineCount",3)("title","Pending Code Changes")("type",f.ListFieldType.CODE_CHANGES)("values",((d=V(5,21,f.pendingCodeChanges$))==null?null:d.changes)||Gh(25,Pxb))("tooltip",((e=V(6,23,f.pendingCodeChanges$))==null?0:e.hasError)?"Error fetching pending changelists":"Pending code changes (auto-populated)")}},Gyb=function(a){if(a&1){var b=t();J(0,"b-edit-field",71);U(1,"csv");U(2,"async");
U(3,"async");N("valueChange",function(d){u(b);var e=P(2);return w(Fyb(e.editIssueService,e.issueId,d!=null?d:""))});K()}if(a&2){a=P();var c=P();I("name","foundInVersion")("title","Found In")("type",c.FieldType.TEXT)("multiline",!0)("tooltip","Set the version(s) of the product affected by this issue (comma-separated list)")("value",V(1,8,a.foundInVersion))("readonly",!V(2,10,c.hasAclToEdit$))("disabled",!!V(3,12,c.isSaving$(c.IssueFieldName.FOUND_IN_VERSION)))}},Iyb=function(a){if(a&1){var b=t();J(0,
"b-edit-field",72);U(1,"csv");U(2,"async");U(3,"async");N("valueChange",function(d){u(b);var e=P(2);return w(Hyb(e.editIssueService,e.issueId,d!=null?d:""))});K()}if(a&2){a=P();var c=P();I("name","targetedToVersion")("title","Targeted To")("type",c.FieldType.TEXT)("multiline",!0)("tooltip","Set the version(s) of the product in which the issue should be fixed (comma-separated list)")("value",V(1,8,a.targetedToVersion))("readonly",!V(2,10,c.hasAclToEdit$))("disabled",!!V(3,12,c.isSaving$(c.IssueFieldName.TARGETED_TO_VERSION)))}},
Kyb=function(a){if(a&1){var b=t();J(0,"b-edit-field",71);U(1,"csv");U(2,"async");U(3,"async");N("valueChange",function(d){u(b);var e=P(2);return w(Jyb(e.editIssueService,e.issueId,d!=null?d:""))});K()}if(a&2){a=P();var c=P();I("name","verifiedInVersion")("title","Verified In")("type",c.FieldType.TEXT)("multiline",!0)("tooltip","Set the version(s) of the product in which the issue fix was verified (comma-separated list)")("value",V(1,8,a.verifiedInVersion))("readonly",!V(2,10,c.hasAclToEdit$))("disabled",
!!V(3,12,c.isSaving$(c.IssueFieldName.VERIFIED_IN_VERSION)))}},Myb=function(a){if(a&1){var b=t();J(0,"b-edit-field",73);U(1,"async");U(2,"async");N("valueChange",function(d){u(b);var e=P(2);return w(Lyb(e.editIssueService,e.issueId,d!=null?d:!1))});K()}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",!V(1,7,c.hasAclToEdit$))("disabled",!!V(2,9,c.isSaving$(c.IssueFieldName.IN_PROD)))}},
Nyb=function(a){a&1&&Yg(0)},Oyb=function(a){a&1&&Yg(0)},Pyb=function(a){a&1&&Yg(0)},Qyb=function(a){a&1&&Yg(0)},Ryb=function(a){a&1&&(J(0,"div",20),D(1,Nyb,1,0,"ng-container",47)(2,Oyb,1,0,"ng-container",47)(3,Pyb,1,0,"ng-container",47)(4,Qyb,1,0,"ng-container",47),K());if(a&2){P();a=Q(102);var b=Q(104),c=Q(106),d=Q(108);x();I("ngTemplateOutlet",a);x();I("ngTemplateOutlet",b);x();I("ngTemplateOutlet",c);x();I("ngTemplateOutlet",d)}},Tyb=function(a,b){if(a&1){var c=t();J(0,"b-custom-field-editor",
74);U(1,"async");U(2,"async");N("save",function(e){var f=u(c).$implicit,h=P(2);return w(h.editIssueService.updateCustomField(h.issueId,f.customFieldId,e))});K()}if(a&2){a=b.$implicit;b=P();var d=P();I("issue",b)("field",a)("readonly",!V(1,4,d.hasAclToEdit$))("disabled",!!V(2,6,d.isSaving$(Hh(8,Syb,a.customFieldId))))}},fzb=function(a,b){if(a&1){var c=t();F(0,Lxb,1,1,"ng-container");U(1,"async");F(2,Oxb,2,3);F(3,Rxb,2,3);U(4,"async");J(5,"b-single-user-control",18);U(6,"async");N("valueChange",function(H){u(c);
var L=P();return w(Uyb(L,H))})("emailChange",function(H){u(c);var L=P();return w(Vyb(L.editIssueService,L.issueId,H))});K();J(7,"b-edit-field",19,0);U(9,"async");U(10,"async");N("valueChange",function(H){u(c);var L=Q(8),O=P();return w(Wyb(O,L,H!=null?H:""))});K();J(11,"div",20)(12,"b-edit-field",21,1);U(14,"async");U(15,"async");N("onHotkey",function(){u(c);var H=Q(13);return w(tq(H,null,!0,!1))})("valueChange",function(H){u(c);var L=P();return w(Xyb(L.editIssueService,L.issueId,H!=null?H:""))});
K();F(16,Txb,1,1,"ng-container");U(17,"async");K();J(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 H=Q(20);return w(tq(H,null,!0,!1))})("valueChange",function(H){u(c);var L=P();return w(Yyb(L,H!=null?H:""))});K();F(25,Vxb,2,3);U(26,"async");K();F(27,Wxb,9,12,"div",24);U(28,"async");J(29,"onedev-hovercard",null,3);D(31,Xxb,3,4,"b-issue-card",25);K();F(32,Zxb,4,9,"b-estimated-effort-row",26);U(33,"async");U(34,"async");
J(35,"div",27)(36,"div",28)(37,"div",29)(38,"label");R(39,"Access");K()();J(40,"div",30)(41,"span",31);R(42);U(43,"async");K();J(44,"div",32);U(45,"async");U(46,"async");N("click",function(){u(c);var H=P();return w(H.toggleAccessLimits())})("keydown.enter",function(H){u(c);var L=P();return w(L.toggleAccessLimitsWithKeystroke(H))})("keydown.space",function(H){u(c);var L=P();return w(L.toggleAccessLimitsWithKeystroke(H))});J(47,"span");R(48);U(49,"async");K()()()();J(50,"onedev-hovercard",null,4)(52,
"div",33)(53,"div",34)(54,"span",35);R(55," Issue access level can only be set by Issue admins and it enables issue-level access control. ");J(56,"a",36);R(57,"Learn more");K()()()()()();J(58,"div",37);U(59,"async");F(60,ayb,8,1,"div",38);U(61,"async");J(62,"b-single-user-control",39,5);U(64,"async");N("onHotkey",function(){u(c);var H=Q(63);return w(H.openEditor())})("valueChange",function(H){u(c);var L=P();return w(Zyb(L,H))})("emailChange",function(H){u(c);var L=P();return w($yb(L.editIssueService,
L.issueId,H))});K();F(65,dyb,2,3);U(66,"async");J(67,"b-single-user-control",40);U(68,"async");N("valueChange",function(H){u(c);var L=P();return w(azb(L,H))})("emailChange",function(H){u(c);var L=P();return w(bzb(L.editIssueService,L.issueId,H))});K();Wg(69);J(70,"b-multi-user-control",41);U(71,"async");U(72,"async");U(73,"async");N("userInclusionToggle",function(){u(c);var H=P();return w(H.toggleCollaborators())})("valueChange",function(H){u(c);var L=P();return w(czb(L,H))})("toggleAccessLimits",
function(){u(c);var H=P();return w(H.toggleAccessLimits())});K();J(74,"b-multi-user-control",42);U(75,"async");U(76,"async");U(77,"async");N("userInclusionToggle",function(){u(c);var H=P();return w(dzb(H))})("valueChange",function(H){u(c);var L=P();return w(ezb(L,H))});K();Xg();K();F(78,fyb,1,1,"ng-container");U(79,"async");F(80,hyb,2,3);U(81,"async");M(82,"b-staffing-row",43);U(83,"async");U(84,"async");F(85,iyb,1,6,"b-list-field",44);Pg(86,kyb,2,4,"div",null,t()[15][8].trackCustomField,!0);U(88,
"async");F(89,myb,1,1,"ng-container");U(90,"async");F(91,nyb,1,0,"hr",45);U(92,"async");F(93,xyb,13,18,"collapsible-panel",46);U(94,"async");D(95,zyb,1,1,"ng-template",null,6,Lh)(97,Byb,3,12,"ng-template",null,7,Lh)(99,Eyb,7,26,"ng-template",null,8,Lh)(101,Gyb,4,14,"ng-template",null,9,Lh)(103,Iyb,4,14,"ng-template",null,10,Lh)(105,Kyb,4,14,"ng-template",null,11,Lh)(107,Myb,3,11,"ng-template",null,12,Lh)(109,Ryb,5,4,"ng-template",null,13,Lh)(111,Tyb,3,10,"ng-template",null,14,Lh)}if(a&2){var d,e;
a=Q(30);var f=Q(51),h=P();G(h.showSloStatus&&V(1,98,h.isSloStatusPrimary$)?0:-1);x(2);G(h.sessionIsInternal?2:-1);x();G((d=V(4,100,h.teamWarningType$))?3:-1,d);x(2);var k;I("name","reporter")("title","Reporter")("value",b.reporter)("user",(k=b.reporterUser)!=null?k:void 0)("isSaving",V(6,102,h.isSaving$(h.IssueFieldName.REPORTER)));x(2);I("name","type")("title","Type")("type",h.FieldType.ENUM)("value",b.type)("choices",h.typeChoices)("readonly",!V(9,104,h.hasAclToEdit$))("disabled",!!V(10,106,h.isSaving$(h.IssueFieldName.TYPE)));
x(5);I("name","priority")("title","Priority")("type",h.FieldType.ENUM)("tooltip","Set priority, which reflects how soon the issue should be fixed")("value",b.priority)("choices",h.priorityChoices)("hotkey",h.HOTKEYS.OPEN_ISSUE_PRIORITY_MENU)("readonly",!V(14,108,h.hasAclToEdit$))("disabled",!!V(15,110,h.isSaving$(h.IssueFieldName.PRIORITY)))("showHotkeyHint",!0);x(4);G(V(17,112,h.isSeverityPrimary$)?16:-1);x(3);var q;I("name","status")("title","Status")("type",h.FieldType.ENUM)("value",b.status)("choices",
(q=V(21,114,h.statusChoices$))!=null?q:Gh(176,Pxb))("showHotkeyHint",!0)("hotkey",h.HOTKEYS.OPEN_ISSUE_STATUS_MENU)("readonly",!V(22,116,h.hasAclToEdit$))("disabled",!!V(23,118,h.isSaving$(h.IssueFieldName.STATUS)))("onedevHovercardActive",!!V(24,120,h.canonicalIssueId$))("onedevHovercardTrigger",a);x(6);G(V(26,122,h.hasAclToEdit$)?25:-1);x(2);G(V(28,124,h.showTriagePhaseRow$)?27:-1);x(5);G(V(33,126,h.isEffortEnabled$)&&V(34,128,h.shouldDisplayEffort$)?32:-1);x(4);I("onedevHovercardTrigger",f)("onedevHovercardActive",
!0)("onedevHovercardConfig",h.ACCESS_LIMITS_HOVERCARD_CONFIG);x(6);wh(h.getAccessLimitLevelDisplay(V(43,130,h.accessLimitLevel$)));x(2);I("matTooltip",V(45,132,h.hasAclToAdmin$)?"Manage issue level access limits(Press Alt + Right arrow for more information)":"View issue level access limits(Press Alt + Right arrow for more information)");Lg("aria-label",V(46,134,h.hasAclToAdmin$)?"Edit":"View");x(4);T(" ",V(49,136,h.hasAclToAdmin$)?"Edit":"View"," ");x(8);I("href",h.documentationLinks.getIssueAccessLimit(),
hf);x(2);uh("implicit-access-box",V(59,138,h.isImplicitAccessEnabled$));x(2);G(V(61,140,h.isImplicitAccessEnabled$)?60:-1);x(2);var v;I("name","assignee")("title","Assignee")("hotkey",h.HOTKEYS.CHANGE_ASSIGNEE)("value",b.assignee)("user",(v=b.assigneeUser)!=null?v:void 0)("isSaving",V(64,142,h.isSaving$(h.IssueFieldName.ASSIGNEE)));x(3);G(h.defaultAssigneeQuickActionEnabled&&V(66,144,h.hasAclToEdit$)?65:-1);x(2);var A;I("name","verifier")("title","Verifier")("value",b.verifier)("user",(A=b.verifierUser)!=
null?A:void 0)("isSaving",V(68,146,h.isSaving$(h.IssueFieldName.VERIFIER)));x(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",V(71,148,
h.isSaving$(h.IssueFieldName.COLLABORATORS)))("isCurrentUserInCollection",V(72,150,h.isCurrentUserCollaborator$))("isAllowedToEditCollection",V(73,152,h.hasAclToEdit$))("iconName","groups_24px")("inputValidator",h.collaboratorUserPrincipalValidator)("checkAccessLimits",!0);x(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",V(75,154,h.isSaving$(h.IssueFieldName.CCS)))("isCurrentUserInCollection",V(76,156,h.isCurrentUserCCd$))("isAllowedToEditCollection",V(77,158,h.isAllowedToEditCC$))("iconName","add_alert_24px");x(4);G(h.showCodeChanges&&V(79,160,h.isChangelistPrimary$)?78:-1);x(2);G((e=V(81,162,h.workspaces$))?80:-1,e);x(2);var E;I("staffing",(E=V(83,164,h.staffing$))!=null?E:void 0)("issueId",h.issueId)("isAllowedToEdit",
V(84,166,h.hasAclToEdit$));x(3);G(!h.sessionIsExternal&&(b.postmortems==null?0:b.postmortems.length)?85:-1);x();Qg(V(88,168,h.visibleCustomFields$));x(3);G(V(90,170,h.isForgottenFourPrimary$)?89:-1);x(2);G(V(92,172,h.hasHiddenFields$)?91:-1);x(2);G(V(94,174,h.hasHiddenFields$)?93:-1)}},gzb=function(a,b){if(a&1){var c=t();J(0,"a",18);N("click",function(){u(c);P().analytics.trackEvent("issueSidebar","navigate","issueDetailsPage");return w()});J(1,"span",19);R(2,"Navigate to issue ");K();R(3);K();J(4,
"button",20);N("click",function(){var d=u(c),e=P();return w(e.copyIssueId(d))});M(5,"mat-icon",21);K()}a&2&&(I("href",Dh("/issues/",b),hf),x(3),T(" ",b," "))},hzb=function(a,b){if(a&1){var c=t();J(0,"b-app-vote-button",22);N("onVote",function(d){u(c);var e=P();return w(e.upvoted(d))});K()}a&2&&I("issueId",b.issueId)("upvoted",!(b.userData==null||!b.userData.voted))("voteCount",(b.aggregatedData==null?null:b.aggregatedData.voteCount)||0)},jzb=function(a){if(a&1){var b=t();J(0,"span");R(1);K();J(2,
"button",24);N("click",function(){u(b);var c=P(2);return w(izb(c))});M(3,"mat-icon",25);K()}a&2&&(a=P(),Lg("title",a.snapshot[0].title),x(),T(" ",a.snapshot[0].title," "))},lzb=function(a){if(a&1){var b=t();J(0,"button",31);N("click",function(){u(b);var c=P(3);return w(kzb(c))});R(1,"Cancel");K()}},mzb=function(a){a&1&&R(0," Update title ")},nzb=function(a){a&1&&Yg(0)},ozb=function(a){a&1&&D(0,nzb,1,0,"ng-container",32);a&2&&(P(3),a=Q(23),I("ngTemplateOutlet",a))},pzb=function(a){if(a&1){var b=t();
J(0,"mat-form-field",26)(1,"textarea",27);Ah("ngModelChange",function(c){u(b);var d=P(2);zh(d.draftTitle,c)||(d.draftTitle=c);return w(c)});K()();J(2,"div",28);F(3,lzb,2,0,"button",29);J(4,"button",30);N("click",function(){u(b);var c=P(2);return w(c.saveTitle())});F(5,mzb,1,0)(6,ozb,1,1,"ng-container");K()()}a&2&&(a=P(2),x(),I("cdkTextareaAutosize",!0)("cdkAutosizeMinRows",1),yh("ngModel",a.draftTitle),I("bFocus",!0),x(2),G(a.isSavingTitle?-1:3),x(),I("disabled",a.isSavingTitle),x(),G(a.isSavingTitle?
6:5))},qzb=function(a){a&1&&(J(0,"div",15)(1,"div",23),F(2,jzb,4,2),F(3,pzb,7,7),K()());a&2&&(a=P(),x(2),G(a.editTitleMode?-1:2),x(),G(a.editTitleMode?3:-1))},rzb=function(a){a&1&&(J(0,"xap-dialog-layout")(1,"xap-dialog-layout-content")(2,"div"),R(3," AI-generated summaries may contain inaccurate or offensive information that does not represent Google's views. Buganizer and other AI API usage does not store or log the issue's contents for any training purposes. "),K()()())},szb=function(a){if(a&1){var b=
t();J(0,"button",54);N("click",function(){u(b);var c=P(5);return w(c.generateIssueSummary())});R(1," Generate ");K()}},tzb=function(a){a&1&&M(0,"mat-icon",44)},uzb=function(a){a&1&&M(0,"mat-icon",45)},vzb=function(a){if(a&1){var b=t();J(0,"button",55);N("click",function(){u(b);var c=P(5);return w(c.isIssueSummaryExpanded=!c.isIssueSummaryExpanded)});F(1,tzb,1,0,"mat-icon",44);F(2,uzb,1,0,"mat-icon",45);K()}a&2&&(a=P(5),Lg("aria-expanded",a.isIssueSummaryExpanded),x(),G(a.isIssueSummaryExpanded?-1:
1),x(),G(a.isIssueSummaryExpanded?2:-1))},wzb=function(a){a&1&&Yg(0,56);a&2&&(P(6),a=Q(23),I("ngTemplateOutlet",a))},xzb=function(a){a&1&&M(0,"b-markdown-format-presenter",57);a&2&&(a=P(),I("content",a.formattedSummary))},yzb=function(a){a&1&&(J(0,"div"),R(1),K());a&2&&(a=P(),x(),T(" ",a.summary," "))},zzb=function(a,b){if(a&1){var c=t();F(0,xzb,1,1,"b-markdown-format-presenter",57)(1,yzb,2,1,"div");J(2,"div",58)(3,"button",59);N("click",function(){var d=u(c),e=P(7);return w(e.copySummary(d))});M(4,
"mat-icon",60);K();J(5,"button",61);N("click",function(){var d=u(c),e=P(7);return w(e.openFeedbackDialog(d))});M(6,"mat-icon",62);K();J(7,"button",63);N("click",function(){var d=u(c),e=P(7);return w(e.trackThumbsUp(d))});M(8,"mat-icon",64);K();J(9,"button",65);N("click",function(){var d=u(c),e=P(7);return w(e.trackThumbsDown(d))});M(10,"mat-icon",66);K()()}a&2&&(a=P(7),G(b.formattedSummary?0:1),x(7),I("disabled",a.hasRatedSummary),x(),uh("has-reacted-icon",a.summaryThumbsUp),x(),I("disabled",a.hasRatedSummary),
x(),uh("has-reacted-icon",a.summaryThumbsDown))},Azb=function(a){a&1&&(F(0,zzb,11,7),U(1,"async"));if(a&2){var b;a=P(6);G((b=V(1,1,a.issueSummary$))?0:-1,b)}},Bzb=function(a){a&1&&(J(0,"div",53),F(1,wzb,1,1,"ng-container",56)(2,Azb,2,3),K());if(a&2){a=P(2);var b=P(3);x();G(a===b.GENERATING?1:a===b.SUMMARY_VISIBLE?2:-1)}},Czb=function(a){a&1&&(J(0,"div",47)(1,"div",34)(2,"div",35),M(3,"mat-icon",48),J(4,"span"),R(5,"AI-GENERATED SUMMARY"),K(),J(6,"button",49),M(7,"mat-icon",50),K(),D(8,rzb,4,0,"ng-template",
null,2,Lh),K(),F(10,szb,2,0,"button",51),F(11,vzb,3,3,"button",52),K(),F(12,Bzb,3,1,"div",53),K());if(a&2){a=Q(9);var b=P(),c=P(3);x(6);I("xapInlineDialog",a)("dialogTabIndex",0);x(4);G(b===c.BUTTON?10:-1);x();G(b===c.SUMMARY_VISIBLE?11:-1);x();G(c.isIssueSummaryExpanded?12:-1)}},Dzb=function(a,b){a&1&&F(0,Czb,13,5,"div",47);a&2&&(a=P(3),G(b!==a.HIDDEN?0:-1))},Ezb=function(a){a&1&&(F(0,Dzb,1,1),U(1,"async"));if(a&2){var b;a=P(2);G((b=V(1,1,a.stage$))?0:-1,b)}},Fzb=function(a){a&1&&(J(0,"span"),R(1,
" No update yet "),K())},Gzb=function(a){if(a&1){var b=t();J(0,"button",67);N("click",function(){u(b);var c=P(2);return w(c.editStatusUpdate())});M(1,"mat-icon",25);K()}},Hzb=function(a){a&1&&M(0,"mat-icon",44)},Izb=function(a){a&1&&M(0,"mat-icon",45)},Jzb=function(a){if(a&1){var b=t();J(0,"button",68);N("click",function(){u(b);var c=P(2);return w(c.isStatusUpdateExpanded=!c.isStatusUpdateExpanded)});F(1,Hzb,1,0,"mat-icon",44);F(2,Izb,1,0,"mat-icon",45);K()}a&2&&(a=P(2),Lg("aria-expanded",a.isStatusUpdateExpanded),
x(),G(a.isStatusUpdateExpanded?-1:1),x(),G(a.isStatusUpdateExpanded?2:-1))},Kzb=function(a,b){a&1&&(M(0,"b-note-container",70),U(1,"async"));if(a&2){a=P();var c=P(),d=P(2),e;I("issueId",b)("note",c)("issueAccessLevel",V(1,4,d.accessLevel$))("formattingMode",(e=a.formattingMode)!=null?e:d.FormattingMode.PLAIN)}},Lzb=function(a){a&1&&(J(0,"div",69),F(1,Kzb,2,6,"b-note-container",70),U(2,"async"),K());if(a&2){var b;a=P();var c=P(2);x();G((b=a.unlinkifiedComment!==""&&V(2,1,c.issueId$))?1:-1,b)}},Mzb=
function(a){a&1&&(F(0,Lzb,3,3,"div",69),U(1,"async"));if(a&2){var b;a=P(2);G((b=V(1,1,a.statusUpdate$))?0:-1,b)}},Nzb=function(a){a&1&&(J(0,"span"),R(1," No description yet "),K())},Pzb=function(a){if(a&1){var b=t();J(0,"button",74);N("click",function(){u(b);var c=P(3);return w(Ozb(c))});M(1,"mat-icon",25);K()}},Qzb=function(a){a&1&&M(0,"mat-icon",44)},Rzb=function(a){a&1&&M(0,"mat-icon",45)},Szb=function(a){if(a&1){var b=t();J(0,"button",75);N("click",function(){u(b);var c=P(3);return w(c.isDescriptionExpanded=
!c.isDescriptionExpanded)});F(1,Qzb,1,0,"mat-icon",44);F(2,Rzb,1,0,"mat-icon",45);K()}a&2&&(a=P(3),Lg("aria-expanded",a.isDescriptionExpanded),x(),G(a.isDescriptionExpanded?-1:1),x(),G(a.isDescriptionExpanded?2:-1))},Tzb=function(a,b){a&1&&(M(0,"b-note-container",70),U(1,"async"));if(a&2){a=P();var c=P(2),d=P(2),e;I("issueId",b)("note",a)("issueAccessLevel",V(1,4,d.accessLevel$))("formattingMode",(e=c[0].formattingMode)!=null?e:d.FormattingMode.PLAIN)}},Uzb=function(a){if(a&1){var b=t();J(0,"div",
77)(1,"a",78);N("click",function(){u(b);var c=P(5);c.analytics.trackEvent("issueSidebar","showMoreDescription");c.showFullDescription=!0;return w()});R(2," Show more ");K()()}},Vzb=function(a){a&1&&(J(0,"div",76),F(1,Tzb,2,6,"b-note-container",70),U(2,"async"),U(3,"async"),K(),F(4,Uzb,3,0,"div",77));if(a&2){var b;a=P(4);uh("full-height",a.showFullDescription);x();G((b=V(2,4,a.hasDescription$)&&V(3,6,a.issueId$))?1:-1,b);x(3);G(!a.showFullDescription&&a.descriptionHasMore?4:-1)}},Wzb=function(a){a&
1&&(J(0,"div",73,3),F(2,Vzb,5,8),U(3,"async"),U(4,"async"),K());if(a&2){var b;a=P(3);x(2);G((b=V(3,1,a.hasDescription$)&&V(4,3,a.firstNote$))?2:-1,b)}},Xzb=function(a){a&1&&(J(0,"div",40)(1,"div",34)(2,"div",35)(3,"span"),R(4,"DESCRIPTION"),K()(),J(5,"div",37),F(6,Nzb,2,0,"span"),U(7,"async"),F(8,Pzb,2,0,"button",71),U(9,"async"),U(10,"async"),F(11,Szb,3,3,"button",72),U(12,"async"),K()(),F(13,Wzb,5,5,"div",73),K());a&2&&(a=P(2),x(6),G(V(7,4,a.hasDescription$)?-1:6),x(2),G(!a.isDescriptionExpanded&&
V(9,6,a.hasDescription$)||!V(10,8,a.userCanEditDescription$)?-1:8),x(3),G(V(12,10,a.hasDescription$)?11:-1),x(2),G(a.isDescriptionExpanded?13:-1))},Yzb=function(a){a&1&&Yg(0)},Zzb=function(a){a&1&&D(0,Yzb,1,0,"ng-container",32);a&2&&(P(2),a=Q(23),I("ngTemplateOutlet",a))},$zb=function(a){a&1&&M(0,"mat-icon",44)},aAb=function(a){a&1&&M(0,"mat-icon",45)},bAb=function(a){a&1&&(J(0,"div",46),M(1,"edit-issue-metadata",79),K());a&2&&(a=P(),x(),I("issueId",a.issueId))},cAb=function(a){if(a&1){var b=t();
J(0,"div",17);F(1,Ezb,2,3);J(2,"div",33)(3,"div",34)(4,"div",35);M(5,"mat-icon",36);J(6,"span");R(7," STATUS UPDATE ");K()();J(8,"div",37);F(9,Fzb,2,0,"span");U(10,"async");F(11,Gzb,2,0,"button",38);U(12,"async");U(13,"async");F(14,Jzb,3,3,"button",39);U(15,"async");K()();F(16,Mzb,2,3);U(17,"async");K();F(18,Xzb,14,12,"div",40);U(19,"async");Mg(20,Zzb,1,1,"ng-container");J(21,"div",41)(22,"div",34)(23,"div",35);M(24,"mat-icon",42);J(25,"span");R(26,"FIELDS");K()();J(27,"button",43);N("click",function(){u(b);
var e=P();return w(e.isFieldsExpanded=!e.isFieldsExpanded)});F(28,$zb,1,0,"mat-icon",44);F(29,aAb,1,0,"mat-icon",45);K()();F(30,bAb,2,1,"div",46);K()()}if(a&2){var c,d;a=P();x();G(a.enableIssueSummarizationNoButton?1:-1);x(8);G(V(10,10,a.hasStatusUpdate$)?-1:9);x(2);G(!a.isStatusUpdateExpanded&&V(12,12,a.hasStatusUpdate$)||!V(13,14,a.userCanEditStatusUpdate$)?-1:11);x(3);G(V(15,16,a.hasStatusUpdate$)?14:-1);x(2);G((c=a.isStatusUpdateExpanded&&V(17,18,a.statusUpdateNote$))?16:-1,c);x(2);G((d=V(19,
20,a.events$))?18:20,d);x(9);Lg("aria-expanded",a.isFieldsExpanded);x();G(a.isFieldsExpanded?-1:28);x();G(a.isFieldsExpanded?29:-1);x();G(a.isFieldsExpanded?30:-1)}},dAb=function(a){a&1&&Yg(0)},eAb=function(a){a&1&&D(0,dAb,1,0,"ng-container",32);a&2&&(P(),a=Q(23),I("ngTemplateOutlet",a))},fAb=function(a){a&1&&(J(0,"div",80),M(1,"b-spinner"),K())},gAb=function(a){a&1&&(R(0," This issue has not been modified since "),M(1,"b-formatted-date-time",1),R(2," and is scheduled for deletion on "),J(3,"strong"),
M(4,"b-formatted-date-time",1),K(),R(5,". "));a&2&&(a=P(2),x(),I("mode","date")("timestamp",a.modifiedTime)("paddingLeftPx",0),x(3),I("mode","date")("timestamp",a.retentionExpireTime)("paddingLeftPx",0))},hAb=function(a){a&1&&R(0," This issue is retained indefinitely. ")},iAb=function(a){a&1&&(F(0,gAb,6,6)(1,hAb,1,0),J(2,"a",0),R(3,"Learn more"),K());a&2&&(a=P(),G(a.retentionState.retentionPeriod?0:1),x(2),I("href",a.documentationLink,hf))},jAb=function(a){a&1&&(J(0,"b-base-chip",0)(1,"div",1),M(2,
"retention-text",2),K(),J(3,"div",3),M(4,"retention-help-text",4),K()());a&2&&(a=P(),I("compactMode",a.compactMode)("labelClass",a.dangerZone?"danger":"expiring")("labelOnlyMode",a.labelOnlyMode),x(2),I("retentionState",a.retentionState)("compactMode",a.compactMode),x(2),I("retentionState",a.retentionState)("modifiedTime",a.modifiedTime))},kAb=function(a){var b=b===void 0?new Date:b;var c=a.retentionPeriod;return b.getTime()>=ql(a.scheduledDeletionTime)-Math.max(12096E5,.2*(c?c.seconds*1E3+(c.nanos||
0)/1E6:0))},nAb=function(a){if(a&1){var b=t();J(0,"issue-sidebar",10);N("closeSidebar",function(){u(b);var d=P(2);return w(d.isIssueSidebarOpen=!1)})("navigateToNextIssue",function(){u(b);var d=P(2);return w(lAb(d))})("navigateToPreviousIssue",function(){u(b);var d=P(2);return w(mAb(d))});K()}if(a&2){var c;a=P(2);I("issueId",(c=a.getFocusedIssue())==null?null:c.issueId)}},oAb=function(a){a&1&&Yg(0)},pAb=function(a){if(a&1){var b=t();J(0,"mat-sidenav-container",6,2)(2,"mat-sidenav",7);N("openedChange",
function(d){u(b);P().anayltics.trackEvent("issueSidebar",d?"open":"close");return w()});F(3,nAb,1,1,"issue-sidebar",8);K();J(4,"mat-sidenav-content");D(5,oAb,1,0,"ng-container",9);K()()}if(a&2){a=P();var c=Q(4);uh("sidebar-enabled",a.isIssueSidebarEnabled);x(2);I("opened",a.isIssueSidebarOpen)("disableClose",!0);x();G(a.isIssueSidebarOpen?3:-1);x(2);I("ngTemplateOutlet",c)}},qAb=function(a){a&1&&Yg(0)},rAb=function(a){a&1&&D(0,qAb,1,0,"ng-container",9);a&2&&(P(),a=Q(4),I("ngTemplateOutlet",a))},sAb=
function(a,b){a&1&&M(0,"th",32);a&2&&Lg("data-stable-column-name",b.column.name)},tAb=function(a,b){a&1&&M(0,"th",33);a&2&&Lg("data-stable-column-name",b.column.name)},xAb=function(a){if(a&1){var b=t();J(0,"mat-pseudo-checkbox",36);N("click",function(c){u(b);var d=P(3);c.stopPropagation();return w(uAb(d))})("keydown.enter",function(c){u(b);var d=P(3);c.stopPropagation();return w(uAb(d))})("keydown.space",function(c){u(b);var d=P(3);c.stopPropagation();return w(uAb(d))});K()}a&2&&(a=P(3),I("state",
vAb(a)),Lg("aria-checked",wAb(a)))},yAb=function(a,b){a&1&&(J(0,"th",34),F(1,xAb,1,2,"mat-pseudo-checkbox",35),K());a&2&&(a=b.column,b=P(2),Lg("data-stable-column-name",a.name),x(),G(b.isIssueGridColumn(a)?1:-1))},zAb=function(a,b){a&1&&M(0,"th");a&2&&Lg("data-stable-column-name",b.column.name)},AAb=function(a){a&1&&M(0,"pop-grid-default-th",37);a&2&&(a=P().column,I("column",a))},BAb=function(a,b){a&1&&(J(0,"th"),F(1,AAb,1,1,"pop-grid-default-th",37),K());a&2&&(a=b.column,b=P(2),Lg("data-stable-column-name",
a.name),x(),G(b.isIssueGridColumn(a)?1:-1))},CAb=function(a){if(a&1){var b=t();J(0,"b-column-picker",39);N("selectedColumnsChange",function(d){u(b);var e=P(4);e.columns=d;e.columnsChange.emit(d);e.cdr.detectChanges();return w()});K()}if(a&2){a=P(2).column;var c=P(2);I("column",a)("availableColumns",c.availableColumns)("selectedColumns",c.columns)}},DAb=function(a){a&1&&M(0,"pop-grid-default-th",37);a&2&&(a=P(2).column,I("column",a))},EAb=function(a){a&1&&F(0,CAb,1,3,"b-column-picker",38)(1,DAb,1,
1,"pop-grid-default-th",37);a&2&&(a=P(3),G(a.enableColumnSaving?0:1))},FAb=function(a,b){a&1&&(J(0,"th"),F(1,EAb,2,1),K());a&2&&(a=b.column,b=P(2),Lg("data-stable-column-name",a.name),x(),G(b.isIssueGridColumn(a)?1:-1))},GAb=function(a){a&1&&M(0,"td",32)},HAb=function(a){a&1&&M(0,"td",40)},IAb=function(a){if(a&1){var b=t();J(0,"mat-pseudo-checkbox",42);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 h=d+1;var k=f.lastCheckedIndex+1}else h=f.lastCheckedIndex,k=d;h=l(f.searchResults.issues.slice(h,k));for(k=h.next();!k.done;k=h.next())k.value.selected=!c;fs(f)}e.selected=!e.selected;f.lastCheckedIndex=d;fs(f);return w()});K()}a&2&&(a=P().row,I("state",a.selected?"checked":"unchecked"),Lg("aria-label","Select issue "+a.issueId)("aria-checked",a.selected))},JAb=function(a){a&1&&(J(0,"td",34),F(1,IAb,1,3,"mat-pseudo-checkbox",41),K());a&2&&(P(2),x(),G(1))},KAb=function(a){if(a&
1){var b=t();J(0,"b-star-toggle",45);N("starClicked",function(){u(b);var d=P().row,e=P(2);return w(e.toggleStar(d))});K()}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")}},LAb=function(a){a&1&&(J(0,"td",43),F(1,KAb,1,4,"b-star-toggle",44),K());a&2&&(P(2),x(),G(1))},MAb=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P().row,Lg("title",a.position),x(),T(" ",a.position," "))},NAb=function(a){a&
1&&(J(0,"td"),F(1,MAb,2,2,"span"),K());a&2&&(P(2),x(),G(1))},OAb=function(a){if(a&1){var b=t();J(0,"b-issue-id-picker",49);N("click",function(c){u(b);return w(c.stopPropagation())});K()}a&2&&(a=P(2).row,I("issueId",a.issueId)("showCopyOptions",!1),Lg("title",a.title))},PAb=function(a){a&1&&(J(0,"a",48),R(1),K());a&2&&(a=P(2).row,P(2),I("href",Fq(a.issueId),hf),Lg("title",a.title),x(),T(" ",a.issueId," "))},QAb=function(a){a&1&&F(0,OAb,1,3,"b-issue-id-picker",47)(1,PAb,2,3,"a",48);a&2&&(a=P(3),G((a.listViewPrefs==
null?null:a.listViewPrefs.modeForField==null?null:a.listViewPrefs.modeForField.id)==="copy"?0:1))},RAb=function(a){a&1&&(J(0,"td",46),F(1,QAb,2,1),K());a&2&&(P(2),x(),G(1))},SAb=function(a){a&1&&M(0,"archived-issue-indicator")},TAb=function(a){a&1&&M(0,"mat-icon",58)},UAb=function(a,b){a&1&&M(0,"b-hotlist-chip-smart",60);a&2&&I("id",b.$implicit)("removable",!1)},VAb=function(a){a&1&&(J(0,"div",59),Pg(1,UAb,1,2,"b-hotlist-chip-smart",60,Og),K());a&2&&(a=P(2).row,x(),Qg(a.hotlistId))},WAb=function(a){a&
1&&(J(0,"div",52),F(1,SAb,1,0,"archived-issue-indicator"),M(2,"b-issue-visibility-chip",53)(3,"b-tracker-chip-smart",54)(4,"b-retention-chip",55),J(5,"div",56)(6,"a",57),R(7),F(8,TAb,1,0,"mat-icon",58),K()(),F(9,VAb,3,0,"div",59),K());if(a&2){a=P().row;var b=P(2);uh("bv2-grid-cell-flex-wrap",b.listViewPrefs&&b.listViewPrefs.wrapTitles);x();G(a.archived?1:-1);x();I("issueId",a.issueId)("compactMode",!0);x();I("trackerId",a.trackerId)("compactMode",!0);x();I("retentionState",a.retentionState)("showOnlyInDangerZone",
!0)("compactMode",!0)("modifiedTime",a.modifiedTime);x(2);I("href",Fq(a.issueId),hf);Lg("title",a.title);x();T(" ",a.title," ");x();G(b.isIssueSidebarEnabled?8:-1);x();G(b.listViewPrefs&&b.listViewPrefs.showHotlists?9:-1)}},XAb=function(a){a&1&&(J(0,"td",50),F(1,WAb,10,16,"div",51),K());a&2&&(a=P(2),uh("bv2-grid-cell-variable-height",a.listViewPrefs&&a.listViewPrefs.wrapTitles),x(),G(1))},YAb=function(a){a&1&&(J(0,"div",63),R(1),K());a&2&&(a=P().row,P(2),uh("low",Number(a.priority)>=2)("high",Number(a.priority)<
2)("p0",Number(a.priority)===0),x(),T(" P",a.priority," "))},ZAb=function(a){a&1&&(J(0,"td",61),F(1,YAb,2,7,"div",62),K());a&2&&(P(2),x(),G(1))},$Ab=function(a){a&1&&(J(0,"div",63),R(1),K());a&2&&(a=P().row,P(2),uh("low",Number(a.severity)>=2)("high",Number(a.severity)<2)("p0",Number(a.severity)===0),x(),T(" S",a.severity," "))},aBb=function(a){a&1&&(J(0,"td",64),F(1,$Ab,2,7,"div",62),K());a&2&&(P(2),x(),G(1))},bBb=function(a){a&1&&M(0,"mat-icon",67);if(a&2){a=P();var b=P(4),c;I("svgIcon",(c=b.ISSUE_STATUS_JS_ICON_NAME.get(a))!=
null?c:"")}},cBb=function(a){a&1&&R(0);if(a&2){a=P();var b=P(4),c;T(" ",(c=b.STATUS_JS_TERSE.get(a))!=null?c:""," ")}},dBb=function(a){a&1&&(J(0,"span"),R(1),K());if(a&2){a=P();var b=P(4);vh(Dh("chippy status-",a," margin-left-auto"));x();var c;T(" ",(c=b.STATUS_JS_TERSE.get(a))!=null?c:""," ")}},eBb=function(a,b){a&1&&(J(0,"span",66),F(1,bBb,1,1,"mat-icon",67)(2,cBb,1,1)(3,dBb,2,4,"span",68),K());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:"");x();G((c=a.listViewPrefs==null?null:a.listViewPrefs.fieldStatus==null?null:a.listViewPrefs.fieldStatus.mode)==="icon"?1:c==="plain"?2:3)}},fBb=function(a){a&1&&F(0,eBb,4,2,"span",66);if(a&2){var b;a=P().row;G((b=a.status)?0:-1,b)}},gBb=function(a){a&1&&(J(0,"td",65),F(1,fBb,1,1),K());a&2&&(P(2),x(),G(1))},hBb=function(a){a&1&&(R(0),U(1,"enumToHuman"));a&2&&(a=P().row,T(" ",V(1,1,a.type)," "))},iBb=function(a){a&1&&(J(0,"td",69),F(1,hBb,2,
3),K());a&2&&(P(2),x(),G(1))},jBb=function(a){a&1&&(J(0,"b-person-hovercard",71),U(1,"omitObfuscatedEmail"),R(2),K());a&2&&(a=P(2).row,I("email",V(1,2,a.reporter)),x(2),T(" ",a.reporter," "))},kBb=function(a){a&1&&(J(0,"span"),R(1,"--"),K())},lBb=function(a){a&1&&(F(0,jBb,3,4,"b-person-hovercard",71),U(1,"omitObfuscatedEmail"),F(2,kBb,2,0,"span"));a&2&&(a=P().row,G(V(1,2,a.reporter)?0:-1),x(2),G(a.reporter?-1:2))},mBb=function(a){a&1&&(J(0,"td",70),F(1,lBb,3,4),K());a&2&&(P(2),x(),G(1))},nBb=function(a){a&
1&&(J(0,"b-person-hovercard",71),U(1,"omitObfuscatedEmail"),R(2),K());a&2&&(a=P(2).row,I("email",V(1,2,a.assignee)),x(2),T(" ",a.assignee," "))},oBb=function(a){a&1&&(J(0,"span"),R(1,"--"),K())},pBb=function(a){a&1&&(F(0,nBb,3,4,"b-person-hovercard",71),U(1,"omitObfuscatedEmail"),F(2,oBb,2,0,"span"));a&2&&(a=P().row,G(V(1,2,a.assignee)?0:-1),x(2),G(a.assignee?-1:2))},qBb=function(a){a&1&&(J(0,"td",70),F(1,pBb,3,4),K());a&2&&(P(2),x(),G(1))},rBb=function(a){a&1&&(J(0,"b-person-hovercard",71),U(1,"omitObfuscatedEmail"),
R(2),K());a&2&&(a=P(2).row,I("email",V(1,2,a.verifier)),x(2),T(" ",a.verifier," "))},sBb=function(a){a&1&&(J(0,"span"),R(1,"--"),K())},tBb=function(a){a&1&&(F(0,rBb,3,4,"b-person-hovercard",71),U(1,"omitObfuscatedEmail"),F(2,sBb,2,0,"span"));a&2&&(a=P().row,G(V(1,2,a.verifier)?0:-1),x(2),G(a.verifier?-1:2))},uBb=function(a){a&1&&(J(0,"td",70),F(1,tBb,3,4),K());a&2&&(P(2),x(),G(1))},vBb=function(a){a&1&&(J(0,"span"),U(1,"arrayToHuman"),R(2),U(3,"arrayToHuman"),K());a&2&&(a=P().row,Lg("title",V(1,2,
a.cc)),x(2),T(" ",V(3,4,a.cc)," "))},wBb=function(a){a&1&&(J(0,"td",70),F(1,vBb,4,6,"span"),K());a&2&&(P(2),x(),G(1))},xBb=function(a){a&1&&(J(0,"span"),U(1,"arrayToHuman"),R(2),U(3,"arrayToHuman"),K());a&2&&(a=P().row,Lg("title",V(1,2,a.changelist)),x(2),T(" ",V(3,4,a.changelist)," "))},yBb=function(a){a&1&&(J(0,"td",70),F(1,xBb,4,6,"span"),K());a&2&&(P(2),x(),G(1))},zBb=function(a){a&1&&(J(0,"span"),U(1,"arrayToHuman"),R(2),U(3,"arrayToHuman"),K());a&2&&(a=P().row,Lg("title",V(1,2,a.postmortem)),
x(2),T(" ",V(3,4,a.postmortem)," "))},ABb=function(a){a&1&&(J(0,"td",70),F(1,zBb,4,6,"span"),K());a&2&&(P(2),x(),G(1))},BBb=function(a){a&1&&Yg(0)},CBb=function(a){a&1&&(J(0,"span"),R(1,", "),K())},EBb=function(a,b){a&1&&(D(0,BBb,1,0,"ng-container",72),F(1,CBb,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",Hh(3,DBb,a));x();G(c!==b-1?1:-1)}},FBb=function(a){a&1&&Pg(0,EBb,2,5,null,null,Og);a&2&&(a=P().row,Qg(a.blockingIssueId))},
GBb=function(a){a&1&&(J(0,"td",70),F(1,FBb,2,0),K());a&2&&(P(2),x(),G(1))},HBb=function(a){a&1&&Yg(0)},IBb=function(a){a&1&&(J(0,"span"),R(1,", "),K())},JBb=function(a,b){a&1&&(D(0,HBb,1,0,"ng-container",72),F(1,IBb,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",Hh(3,DBb,a));x();G(c!==b-1?1:-1)}},KBb=function(a){a&1&&Pg(0,JBb,2,5,null,null,Og);a&2&&(a=P().row,Qg(a.blockedByIssueId))},LBb=function(a){a&1&&(J(0,"td",70),
F(1,KBb,2,0),K());a&2&&(P(2),x(),G(1))},MBb=function(a){a&1&&Yg(0)},NBb=function(a){a&1&&D(0,MBb,1,0,"ng-container",72);if(a&2){a=P(2).row;P(2);var b=Q(6);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Hh(2,DBb,a.duplicateOfIssueId))}},OBb=function(a){a&1&&F(0,NBb,1,4,"ng-container");a&2&&(a=P().row,G(a.duplicateOfIssueId?0:-1))},PBb=function(a){a&1&&(J(0,"td",70),F(1,OBb,1,1),K());a&2&&(P(2),x(),G(1))},QBb=function(a){a&1&&M(0,"b-formatted-date-time",74);a&2&&(a=P().row,I("timestamp",a.createdTime))},
RBb=function(a){a&1&&(J(0,"td",73),F(1,QBb,1,1,"b-formatted-date-time",74),K());a&2&&(P(2),x(),G(1))},SBb=function(a){a&1&&M(0,"b-formatted-date-time",74);a&2&&(a=P().row,I("timestamp",a.modifiedTime))},TBb=function(a){a&1&&(J(0,"td",73),F(1,SBb,1,1,"b-formatted-date-time",74),K());a&2&&(P(2),x(),G(1))},UBb=function(a){a&1&&M(0,"b-formatted-date-time",74);a&2&&(a=P().row,I("timestamp",a.resolvedTime))},VBb=function(a){a&1&&(J(0,"td",73),F(1,UBb,1,1,"b-formatted-date-time",74),K());a&2&&(P(2),x(),
G(1))},WBb=function(a){a&1&&M(0,"b-formatted-date-time",74);a&2&&(a=P().row,I("timestamp",a.verifiedTime))},XBb=function(a){a&1&&(J(0,"td",73),F(1,WBb,1,1,"b-formatted-date-time",74),K());a&2&&(P(2),x(),G(1))},YBb=function(a){a&1&&(J(0,"span"),U(1,"arrayToHuman"),R(2),U(3,"arrayToHuman"),K());a&2&&(a=P().row,Lg("title",V(1,2,a.foundInVersion)),x(2),T(" ",V(3,4,a.foundInVersion)," "))},ZBb=function(a){a&1&&(J(0,"td",70),F(1,YBb,4,6,"span"),K());a&2&&(P(2),x(),G(1))},$Bb=function(a){a&1&&(J(0,"span"),
U(1,"arrayToHuman"),R(2),U(3,"arrayToHuman"),K());a&2&&(a=P().row,Lg("title",V(1,2,a.targetedToVersion)),x(2),T(" ",V(3,4,a.targetedToVersion)," "))},aCb=function(a){a&1&&(J(0,"td",70),F(1,$Bb,4,6,"span"),K());a&2&&(P(2),x(),G(1))},bCb=function(a){a&1&&(J(0,"span"),U(1,"arrayToHuman"),R(2),U(3,"arrayToHuman"),K());a&2&&(a=P().row,Lg("title",V(1,2,a.verifiedInVersion)),x(2),T(" ",V(3,4,a.verifiedInVersion)," "))},cCb=function(a){a&1&&(J(0,"td",70),F(1,bCb,4,6,"span"),K());a&2&&(P(2),x(),G(1))},dCb=
function(a){a&1&&(R(0),U(1,"yesNo"));a&2&&(a=P().row,T(" ",V(1,1,a.inProd)," "))},eCb=function(a){a&1&&(J(0,"td",70),F(1,dCb,2,3),K());a&2&&(P(2),x(),G(1))},fCb=function(a){a&1&&(R(0),U(1,"yesNo"));a&2&&(a=P().row,T(" ",V(1,1,a.archived)," "))},gCb=function(a){a&1&&(J(0,"td",70),F(1,fCb,2,3),K());a&2&&(P(2),x(),G(1))},hCb=function(a){a&1&&(J(0,"div",52)(1,"div",56)(2,"span"),R(3),K()()());if(a&2){a=P().row;var b=P(2);x(2);Lg("title",b.getComponentPath(a.componentPath));x();wh(b.getComponentPath(a.componentPath))}},
iCb=function(a){a&1&&(J(0,"td",75),F(1,hCb,4,2,"div",52),K());if(a&2){var b=P(2);a=uh("bv2-grid-cell-variable-height",b.listViewPrefs&&b.listViewPrefs.wrapComponents);var c;b=!((c=b.listViewPrefs)==null||!c.rtlComponentPath);a("rtl-component-path",b);x();G(1)}},jCb=function(a){a&1&&(J(0,"slo-status-card",77),M(1,"b-aggregated-slo-status-indicator",78),K());a&2&&(a=P(2).row,I("sloId",a.sloId)("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime),x(),I("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime))},
kCb=function(a){a&1&&F(0,jCb,2,5,"slo-status-card",77);a&2&&(a=P().row,G(a.sloStatus?0:-1))},lCb=function(a){a&1&&(J(0,"td",76),F(1,kCb,1,1),K());a&2&&(P(2),x(),G(1))},mCb=function(a){a&1&&(J(0,"slo-status-card",79),M(1,"b-slo-time-indicator",80),K());a&2&&(a=P(2).row,I("sloId",a.sloId)("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric","RESPONSE"),x(),I("sloBounds",a.sloStatus.responseBounds))},nCb=function(a){a&1&&F(0,mCb,2,5,"slo-status-card",79);a&2&&(a=P().row,G(a.sloStatus?
0:-1))},oCb=function(a){a&1&&(J(0,"td",76),F(1,nCb,1,1),K());a&2&&(P(2),x(),G(1))},pCb=function(a){a&1&&(J(0,"slo-status-card",79),M(1,"b-slo-time-indicator",80),K());a&2&&(a=P(2).row,I("sloId",a.sloId)("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric","ASSIGNMENT"),x(),I("sloBounds",a.sloStatus.assignmentBounds))},qCb=function(a){a&1&&F(0,pCb,2,5,"slo-status-card",79);a&2&&(a=P().row,G(a.sloStatus?0:-1))},rCb=function(a){a&1&&(J(0,"td",76),F(1,qCb,1,1),K());a&2&&(P(2),x(),
G(1))},sCb=function(a){a&1&&(J(0,"slo-status-card",79),M(1,"b-slo-time-indicator",80),K());a&2&&(a=P(2).row,I("sloId",a.sloId)("sloStatus",a.sloStatus)("sloStartTime",a.sloStartTime)("onlyShowMetric","CLOSURE"),x(),I("sloBounds",a.sloStatus.closureBounds))},tCb=function(a){a&1&&F(0,sCb,2,5,"slo-status-card",79);a&2&&(a=P().row,G(a.sloStatus?0:-1))},uCb=function(a){a&1&&(J(0,"td",76),F(1,tCb,1,1),K());a&2&&(P(2),x(),G(1))},vCb=function(a,b){a&1&&M(0,"b-formatted-date-time",81);a&2&&(P(4),I("timestamp",
b.seconds*1E3))},wCb=function(a){a&1&&F(0,vCb,1,1,"b-formatted-date-time",81);if(a&2){var b;a=P().row;G((b=a.retentionState==null?null:a.retentionState.scheduledDeletionTime)?0:-1,b)}},xCb=function(a){a&1&&(J(0,"td",70),F(1,wCb,1,1),K());a&2&&(P(2),x(),G(1))},yCb=function(a){a&1&&M(0,"div",82)},zCb=function(a){a&1&&(J(0,"div"),M(1,"b-team-display",83),K());a&2&&(a=P(2).row,x(),I("teamId",a.teamId.toString())("componentId",a.componentId)("anchorLinkEnabled",!1))},ACb=function(a){a&1&&F(0,yCb,1,0,"div",
82)(1,zCb,2,3,"div");a&2&&(a=P(3),G(a.isLoadingTeams?0:1))},BCb=function(a){a&1&&(J(0,"td",70),F(1,ACb,2,1),K());a&2&&(P(2),x(),G(1))},CCb=function(a){a&1&&R(0);a&2&&(a=P().row,T(" ",a.effort==null?null:a.effort.estimate," "))},DCb=function(a){a&1&&(J(0,"td",70),F(1,CCb,1,1),K());a&2&&(P(2),x(),G(1))},ECb=function(a){a&1&&R(0);if(a&2){a=P().row;var b=P(2);T(" ",b.isTotalEstimatesEnabled?(a.effort==null?null:a.effort.totalOpen)||"":""," ")}},FCb=function(a){a&1&&(J(0,"td",70),F(1,ECb,1,1),K());a&2&&
(P(2),x(),G(1))},GCb=function(a){a&1&&R(0);if(a&2){a=P().row;var b=P(2);T(" ",b.isTotalEstimatesEnabled?(a.effort==null?null:a.effort.totalComplete)||"":""," ")}},HCb=function(a){a&1&&(J(0,"td",70),F(1,GCb,1,1),K());a&2&&(P(2),x(),G(1))},ICb=function(a){a&1&&R(0);if(a&2){a=P().row;var b=P(2);T(" ",b.GET_ISSUE_ACCESS_LEVEL_TITLE(a.issueAccessLevel)," ")}},JCb=function(a){a&1&&(J(0,"td",76),F(1,ICb,1,1),K());a&2&&(P(2),x(),G(1))},KCb=function(a){a&1&&R(0);a&2&&(a=P().row,T(" ",a.descendantCount," "))},
LCb=function(a){a&1&&(J(0,"td",70),F(1,KCb,1,1),K());a&2&&(P(2),x(),G(1))},MCb=function(a){a&1&&R(0);a&2&&(a=P().row,T(" ",a.openDescendantCount," "))},NCb=function(a){a&1&&(J(0,"td",70),F(1,MCb,1,1),K());a&2&&(P(2),x(),G(1))},OCb=function(a){a&1&&R(0);a&2&&(a=P().row,T(" ",a.oneDayViewCount," "))},PCb=function(a){a&1&&(J(0,"td",70),F(1,OCb,1,1),K());a&2&&(a=P(2),x(),G(a.enableAddViewCountColumnsOnIlp?1:-1))},QCb=function(a){a&1&&R(0);a&2&&(a=P().row,T(" ",a.sevenDayViewCount," "))},RCb=function(a){a&
1&&(J(0,"td",70),F(1,QCb,1,1),K());a&2&&(P(2),x(),G(1))},SCb=function(a){a&1&&R(0);a&2&&(a=P().row,T(" ",a.thirtyDayViewCount," "))},TCb=function(a){a&1&&(J(0,"td",70),F(1,SCb,1,1),K());a&2&&(P(2),x(),G(1))},UCb=function(a){a&1&&R(0);a&2&&(a=P().row,T(" ",a.voteCount&&a.voteCount>0?a.voteCount:""," "))},VCb=function(a){a&1&&(J(0,"td",70),F(1,UCb,1,1),K());a&2&&(P(2),x(),G(1))},WCb=function(a){a&1&&R(0);a&2&&(a=P().row,T(" ",a.position," "))},XCb=function(a){a&1&&(J(0,"td",70),F(1,WCb,1,1),K());a&
2&&(P(2),x(),G(1))},YCb=function(a){a&1&&(J(0,"b-person-hovercard",71),U(1,"omitObfuscatedEmail"),R(2),K());a&2&&(a=P(2).row,I("email",V(1,2,a.escalationOwner)),x(2),T(" ",a.escalationOwner," "))},ZCb=function(a){a&1&&(J(0,"span"),R(1,"--"),K())},$Cb=function(a){a&1&&(F(0,YCb,3,4,"b-person-hovercard",71),U(1,"omitObfuscatedEmail"),F(2,ZCb,2,0,"span"));a&2&&(a=P().row,G(V(1,2,a.escalationOwner)?0:-1),x(2),G(a.escalationOwner?-1:2))},aDb=function(a){a&1&&(J(0,"td",70),F(1,$Cb,3,4),K());a&2&&(P(2),x(),
G(1))},cDb=function(a){if(a&1){var b=t();J(0,"pop-grid",11);N("columnsChange",function(c){u(b);var d=P();d.columns=c;d.columnsChange.emit(c);d.cdr.detectChanges();return w()})("focusedRowIndexChange",function(c){u(b);var d=P();d.focusedRowIndex=c;return w(d.focusedRowIndexChange.emit(d.focusedRowIndex))})("sortChange",function(c){u(b);var d=P();return w(d.sortChange.emit(c))})("rowClick",function(c){u(b);var d=P(),e=c.event.target,f,h=(f=e==null?void 0:e.closest(".title-cell"))!=null?f:!1,k;e=(k=
e==null?void 0:e.closest(".issue-id-cell"))!=null?k:!1;h||e||kn(c.event)||!d.isIssueSidebarEnabled?d.rowClick.emit(c):(d.isIssueSidebarOpen=!0,d.cdr.detectChanges());return w()});D(1,sAb,1,1,"th",12)(2,tAb,1,1,"th",13)(3,yAb,2,2,"th",14)(4,zAb,1,1,"th",15)(5,BAb,2,2,"th",15)(6,FAb,2,2,"th",16)(7,GAb,1,0,"td",17)(8,HAb,1,0,"td",18)(9,JAb,2,1,"td",19)(10,LAb,2,1,"td",20)(11,NAb,2,1,"td",21)(12,RAb,2,1,"td",22)(13,XAb,2,3,"td",23)(14,ZAb,2,1,"td",24)(15,aBb,2,1,"td",25)(16,gBb,2,1,"td",26)(17,iBb,2,
1,"td",27)(18,mBb,2,1,"td",28)(19,qBb,2,1,"td",28)(20,uBb,2,1,"td",28)(21,wBb,2,1,"td",28)(22,yBb,2,1,"td",28)(23,ABb,2,1,"td",28)(24,GBb,2,1,"td",28)(25,LBb,2,1,"td",28)(26,PBb,2,1,"td",28)(27,RBb,2,1,"td",29)(28,TBb,2,1,"td",29)(29,VBb,2,1,"td",29)(30,XBb,2,1,"td",29)(31,ZBb,2,1,"td",28)(32,aCb,2,1,"td",28)(33,cCb,2,1,"td",28)(34,eCb,2,1,"td",28)(35,gCb,2,1,"td",28)(36,iCb,2,5,"td",30)(37,lCb,2,1,"td",31)(38,oCb,2,1,"td",31)(39,rCb,2,1,"td",31)(40,uCb,2,1,"td",31)(41,xCb,2,1,"td",28)(42,BCb,2,1,
"td",28)(43,DCb,2,1,"td",28)(44,FCb,2,1,"td",28)(45,HCb,2,1,"td",28)(46,JCb,2,1,"td",31)(47,LCb,2,1,"td",28)(48,NCb,2,1,"td",28)(49,PCb,2,1,"td",28)(50,RCb,2,1,"td",28)(51,TCb,2,1,"td",28)(52,VCb,2,1,"td",28)(53,XCb,2,1,"td",28)(54,aDb,2,1,"td",28);K()}a&2&&(a=P(),uh("sidebar-open",a.isIssueSidebarOpen),I("list",(a.searchResults==null?null:a.searchResults.issues)||Gh(61,bDb))("columns",a.columns)("focusedRowIndex",a.focusedRowIndex)("scrollContainer",".bv2-view")("sort",a.sort)("rowLabelRenderer",
a.issueDescription),x(),I("forHeaderCell","focused"),x(),I("forHeaderCell","draghandle"),x(),I("forHeaderCell","selected"),x(),I("forHeaderCell","starred"),x(),I("forHeaderCell","position"),x(2),I("forViewCell","focused"),x(),I("forViewCell","draghandle"),x(),I("forViewCell","selected"),x(),I("forViewCell","starred"),x(),I("forViewCell","position"),x(),I("forViewCell","issueId"),x(),I("forViewCell","title"),x(),I("forViewCell","priority"),x(),I("forViewCell","severity"),x(),I("forViewCell","status"),
x(),I("forViewCell","type"),x(),I("forViewCell","reporter"),x(),I("forViewCell","assignee"),x(),I("forViewCell","verifier"),x(),I("forViewCell","cc"),x(),I("forViewCell","changelist"),x(),I("forViewCell","postmortem"),x(),I("forViewCell","blockingIssueId"),x(),I("forViewCell","blockedByIssueId"),x(),I("forViewCell","duplicateOfIssueId"),x(),I("forViewCell","createdTime"),x(),I("forViewCell","modifiedTime"),x(),I("forViewCell","resolvedTime"),x(),I("forViewCell","verifiedTime"),x(),I("forViewCell",
"foundInVersion"),x(),I("forViewCell","targetedToVersion"),x(),I("forViewCell","verifiedInVersion"),x(),I("forViewCell","inProd"),x(),I("forViewCell","archived"),x(),I("forViewCell","componentPath"),x(),I("forViewCell","minSlo"),x(),I("forViewCell","responseSlo"),x(),I("forViewCell","assignmentSlo"),x(),I("forViewCell","closureSlo"),x(),I("forViewCell","deletionTime"),x(),I("forViewCell","team"),x(),I("forViewCell","estimate"),x(),I("forViewCell","estimateTotalOpen"),x(),I("forViewCell","estimateTotalComplete"),
x(),I("forViewCell","accessLevel"),x(),I("forViewCell","descendantCount"),x(),I("forViewCell","openDescendantCount"),x(),I("forViewCell","oneDayViewCount"),x(),I("forViewCell","sevenDayViewCount"),x(),I("forViewCell","thirtyDayViewCount"),x(),I("forViewCell","voteCount"),x(),I("forViewCell","position"),x(),I("forViewCell","escalationOwner"))},dDb=function(a){a&1&&M(0,"b-issue-card",86,4);if(a&2){a=Q(1);var b=P().id;I("onedevIsHovercardReady",a.init)("issueId",b)}},eDb=function(a,b){a&1&&(J(0,"onedev-hovercard",
null,3),D(2,dDb,2,2,"b-issue-card",84),K(),J(3,"span",85),R(4),K());a&2&&(a=b.id,b=Q(1),x(3),I("onedevHovercardTrigger",b),x(),wh(a))},fDb=function(a){if(a&1){var b=t();J(0,"b-app-bar-bulk-edit-menus",9);U(1,"async");N("onBulkEdit",function(d){u(b);var e=P();return w(e.bulkEdit(d))})("onQuickBulkEdit",function(d){u(b);var e=P();return w(e.quickBulkEdit(d))})("onBulkEditIssueRelation",function(d){u(b);var e=P();return w(e.bulkEditIssueRelation(d))})("onBulkMarkIssueRead",function(){u(b);var d=P();
return w(d.bulkMarkIssueRead())});K()}if(a&2){a=P();var c;I("enableBulkEstimatedEffortOption",(c=V(1,2,a.enableBulkEstimatedEffortOption$))!=null?c:!1)("readStatePrompt",Htb(a))}},gDb=function(a){if(a&1){var b=t();J(0,"b-copy-issue-id-button",10);N("onClickCopyIssueIds",function(){u(b);var c=P();return w(Jtb(c.copyIssueIdService,$r(c)))})("onClickCopyIssueShortLinks",function(){u(b);var c=P();return w(Ktb(c.copyIssueIdService,$r(c)))})("onClickCopyAsIssueSearch",function(){u(b);var c=P();return w(Ltb(c.copyIssueIdService,
$r(c)))});K()}a&2&&(a=P(),I("shortLinkPrefix",a.copyIssueIdService.shortLinkPrefix)("shouldShowCopyIssueShortLinks",a.activeSession.isInternalSession()))},hDb=function(a){if(a&1){var b=t();J(0,"div",5)(1,"b-hotlist-picker",11);N("onApply",function(c){u(b);var d=P();return w(d.handleHotlistPickerSave(c))})("onCreate",function(c){u(b);var d=P();return w(d.onCreateHotlist.emit(c))})("onLoad",function(c){u(b);var d=P();return w(d.onLoadHotlist.emit(c))});K()()}a&2&&(a=P(),x(),I("selectedHotlistIds",a.hotlistIdMatrix)("choices",
a.hotlistChoices))},iDb=function(a){if(a&1){var b=t();J(0,"hotlist-add-issue-btn",13);N("issueAddedToHotlist",function(){u(b);var c=P(2);return w(c.refresh())});K()}a&2&&(a=P(2),I("hotlistId",a.currentHotlistId))},jDb=function(a){a&1&&M(0,"hotlist-archive-btn",12);a&2&&(a=P(2),I("hotlistId",a.currentHotlistId))},kDb=function(a){a&1&&(F(0,iDb,1,1,"hotlist-add-issue-btn",12),F(1,jDb,1,1,"hotlist-archive-btn",12));a&2&&(a=P(),G(a.enableBulkEditUi?0:-1),x(),G(a.isHotlistAdmin?1:-1))},lDb=function(a){a&
1&&(J(0,"span",16),R(1,"Reporting"),K())},mDb=function(a){if(a&1){var b=t();J(0,"b-button",14);N("onAction",function(){u(b);var c=P();return w(c.openInEstado())});M(1,"b-icon",15);F(2,lDb,2,0,"span",16);K()}a&2&&(a=P(),I("size",a.hasSelectedIssues()?"large":"medium")("format",a.hasSelectedIssues()?"icon":"flat"),x(2),G(a.hasSelectedIssues()?-1:2))},nDb=function(a){if(a&1){var b=t();J(0,"b-comment-box",23);Ah("commentChange",function(c){u(b);var d=P(2);zh(d.comment,c)||(d.comment=c);return w(c)});
N("onSubmit",function(){u(b);var c=P(2);return w(Otb(c))});K()}a&2&&(a=P(2),yh("comment",a.comment),I("showToolbar",!1)("isLiteralModeSupported",!0))},oDb=function(a){if(a&1){var b=t();J(0,"div",20)(1,"b-recaptcha",24);N("onUpdate",function(c){u(b);var d=P(2);return w(d.recaptchaResponse=c)});K()()}},pDb=function(a){a&1&&(J(0,"h1",17),R(1,"Add comment"),K(),J(2,"mat-dialog-content"),F(3,nDb,1,3,"b-comment-box",18),M(4,"b-external-warnings",19),K(),F(5,oDb,2,0,"div",20),J(6,"mat-dialog-actions")(7,
"button",21),R(8," Cancel "),K(),J(9,"button",22),R(10," Save "),K()());a&2&&(a=P(),x(3),G(a.comment?3:-1),x(),I("externalWarnings",a.externalWarnings),x(),G(a.enableRecaptcha?5:-1),x(2),I("mat-dialog-close",!1),x(2),I("disabled",a.enableRecaptcha&&a.recaptchaResponse==="")("mat-dialog-close",!0))},qDb=function(a){if(a&1){var b=t();J(0,"div",6)(1,"button",7);N("click",function(){u(b);var c=P();return w(c.onPressSave())});R(2," Save ");K();J(3,"button",8);N("click",function(){u(b);var c=P();return w(c.onPressRevert())});
R(4," Revert changes ");K()()}a&2&&(a=P(),x(),I("disabled",a.hasNoChanges()||a.hotlistAccessPolicyFridge.isSaving()||a.isInvalid())("matTooltip",a.isInvalid()?"Invalid form data":a.hasNoChanges()?"No changes":"Save these changes"),x(2),I("disabled",a.hasNoChanges()||a.hotlistAccessPolicyFridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Go back to the last saved state"))},rDb=function(a){if(a&1){var b=t();J(0,"div",6)(1,"button",7);N("click",function(){u(b);var d=P();return w(d.save())});
R(2," Save ");K();J(3,"button",8);N("click",function(){u(b);var d=P();return w(d.revert())});R(4," Revert changes ");K();M(5,"hotlist-archive-btn",9);U(6,"async");K()}if(a&2){a=P();x();I("disabled",a.hasNoChanges()||a.fridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Save these changes");x(2);I("disabled",a.hasNoChanges()||a.fridge.isSaving())("matTooltip",a.hasNoChanges()?"No changes":"Go back to the last saved state");x(2);var c;I("hotlistId",(c=V(6,5,a.id$))!=null?c:void 0)}},sDb=
function(a,b){a&1&&R(0);a&2&&T(" ",b.name," ")},tDb=function(a){a&1&&(J(0,"strong",2),R(1,"(archived)"),K())},uDb=function(a){a&1&&M(0,"b-spinner")},vDb=function(a){a&1&&(M(0,"hotlist-add-issue-btn",4),U(1,"async"));if(a&2){a=P();var b;I("hotlistId",(b=V(1,1,a.id$))!=null?b:void 0)}},wDb=function(a){a&1&&(J(0,"p",6),R(1," This hotlist cannot be edited because you are not an administrator of it. "),K())},xDb=function(a){a&1&&(M(0,"b-edit-hotlist-toolbar",0),J(1,"div",1),M(2,"b-edit-hotlist-header",
0),J(3,"mat-tab-group",2)(4,"mat-tab",3),M(5,"b-edit-hotlist-basic",4),U(6,"async"),K(),J(7,"mat-tab",5),M(8,"b-edit-hotlist-acl",4),U(9,"async"),K()(),F(10,wDb,2,0,"p",6),U(11,"async"),K());a&2&&(a=P(),I("hotlistId",a.id),x(2),I("hotlistId",a.id),x(),I("selectedIndex",a.tabIndex),x(2),I("hotlistId",a.id)("isReadOnly",V(6,8,a.isAdmin$)===!1),x(3),I("hotlistId",a.id)("isReadOnly",V(9,10,a.isAdmin$)===!1),x(2),G(V(11,12,a.isAdmin$)===!1?10:-1))},yDb=function(a,b){a&1&&(M(0,"empty-toolbar"),J(1,"div",
7)(2,"h2"),R(3,"Error"),K(),J(4,"p"),R(5),K()());a&2&&(x(5),wh(b))},zDb=function(a){a&1&&(J(0,"b-callout",0)(1,"b-callout-body"),R(2),K()());a&2&&(a=P(),x(2),wh(a.error))},ADb=function(a){a&1&&(Wg(0),R(1,", "),Xg())},BDb=function(a,b){a&1&&(R(0),F(1,ADb,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)," ");x();G(c!==b-1?1:-1)}},CDb=function(a,b){if(a&1){var c=t();J(0,"tr",7);N("click",function(){var e=u(c).$implicit,f=P();return w(f.editHotlist(e))})("focus",
function(){var e=u(c).$index,f=P();return w(f.setFocusOnIndex(e))});M(1,"td",2);J(2,"td",8)(3,"a",9);N("click",function(e){u(c);return w(e.stopPropagation())});R(4);K()();J(5,"td",10);R(6);K();J(7,"td",11);Pg(8,BDb,2,2,null,null,Og);K();J(10,"td",12);R(11);K()()}if(a&2){a=b.$implicit;b=b.$index;var d=P();uh("grid-focus",d.isFocused(b));Lg("aria-selected",d.isFocused(b))("aria-label",d.renderRowLabel(b));x(3);I("href",Dq.editHotlist.makeHref(a.hotlistId),hf);x();T(" ",a.name," ");x(2);T(" ",a.description,
" ");x(2);Qg(a.adminUsers);x(3);T(" ",a.hotlistId," ")}},DDb=function(a){if(a&1){var b=t();J(0,"button",9);N("click",function(){u(b);var c=P(2);return w(c.appEvents.dashboardPanels.moveToTop.next(c.panelId))});R(1," Move to top ");K()}},EDb=function(a){if(a&1){var b=t();J(0,"button",10);N("click",function(){u(b);var c=P(2);return w(c.appEvents.dashboardPanels.moveUp.next(c.panelId))});R(1," Move up ");K()}},FDb=function(a){if(a&1){var b=t();J(0,"button",11);N("click",function(){u(b);var c=P(2);return w(c.appEvents.dashboardPanels.moveDown.next(c.panelId))});
R(1," Move down ");K()}},GDb=function(a){if(a&1){var b=t();J(0,"button",12);N("click",function(){u(b);var c=P(2);return w(c.appEvents.dashboardPanels.moveToBottom.next(c.panelId))});R(1," Move to bottom ");K()}},HDb=function(a){if(a&1){var b=t();F(0,DDb,2,0,"button",4);F(1,EDb,2,0,"button",5);F(2,FDb,2,0,"button",6);F(3,GDb,2,0,"button",7);J(4,"button",8);N("click",function(){u(b);var c=P();return w(c.removePanel())});R(5," Remove ");K()}a&2&&(a=P(),G(a.first?-1:0),x(),G(a.first?-1:1),x(),G(a.last?
-1:2),x(),G(a.last?-1:3))},IDb=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P(),Lg("title",a.getValue()),x(),T(" ",a.getValue()," "))},JDb=function(a){a&1&&M(0,"b-custom-field-value-display",0);a&2&&(a=P(),I("customFieldValue",a.getCustomFieldValue()))},KDb=function(a){a&1&&M(0,"edit-issue-metadata",4);a&2&&(a=P(),I("issueId",a.issueId))},LDb=function(a){a&1&&M(0,"b-actions-menu",1);a&2&&(a=P(),I("menuItems",a.menuItems))},MDb=function(a){a&1&&(J(0,"span",2)(1,"strong"),R(2),K(),R(3,"\u00a0of\u00a0"),
J(4,"strong"),R(5),K()());a&2&&(a=P(),x(2),xh("",a.searchResults.startIndex,"\u00a0-\u00a0",a.searchResults.endIndex),x(3),wh(a.searchResults.totalText))},NDb=function(a){a&1&&(J(0,"div"),R(1," Hotlist not found. "),K())},ODb=function(a){a&1&&(J(0,"div"),R(1," Loading details... "),K())},PDb=function(a){a&1&&M(0,"b-panel-controls",5);a&2&&(a=P(2),I("panelId",a.panel.panelId))},QDb=function(a){a&1&&(J(0,"span",9),R(1," \u00a0(changed) "),K())},RDb=function(a){a&1&&(J(0,"div"),F(1,PDb,1,1,"b-panel-controls",
5),J(2,"span",6),R(3," Hotlist: "),J(4,"a",7)(5,"span",8),R(6),K()()(),F(7,QDb,2,0,"span",9),K());a&2&&(a=P(),x(),G(a.isDashboardEditable?1:-1),x(3),I("href",a.ROUTES.viewHotlist.makeHref(a.hotlistId),hf),x(),I("matTooltip",Ch(a.resource.description)),x(),wh(a.resource.name),x(),G(a.hasParamChanges()?7:-1))},SDb=function(a){if(a&1){var b=t();J(0,"div",3)(1,"button",10);N("click",function(){u(b);var c=P();return w(c.save())});R(2,"Save ");K();J(3,"button",11);N("click",function(){u(b);var c=P();return w(c.discardChanges())});
R(4," Discard changes ");K()()}},TDb=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P(3),x(),T("Searching for ",a.searchParams.query," ..."))},UDb=function(a){a&1&&(J(0,"div",12),M(1,"b-spinner",15),F(2,TDb,2,1,"span"),K());a&2&&(a=P(2),x(),I("large",!1),x(),G(a.searchParams&&a.searchParams.query?2:-1))},VDb=function(a){a&1&&(J(0,"div",13),R(1," No issues in hotlist. "),K())},XDb=function(a){if(a&1){var b=t();J(0,"div",14)(1,"b-issues-grid",16);N("init",function(c){u(b);var d=P(2);return w(WDb(d,
c))});Ah("focusedRowIndexChange",function(c){u(b);var d=P(2);zh(d.focusedRowIndex,c)||(d.focusedRowIndex=c);return w(c)})("columnsChange",function(c){u(b);var d=P(2);zh(d.issueColumns,c)||(d.issueColumns=c);return w(c)});N("sortChange",function(c){u(b);var d=P(2);return w(d.setSort(c.field,c.direction))})("onRowDragDrop",function(c){u(b);var d=P(2);return w(d.repositionIssue(c.srcIndex,c.destIndex))})("rowClick",function(c){u(b);var d=P(2);return w(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",
function(){u(b);var c=P(2);return w(c.goToPage(c.page+1))})("onPrevPage",function(){u(b);var c=P(2);return w(c.goToPage(c.page-1))});K()()}a&2&&(a=P(2),x(),I("searchResults",a.searchResults),yh("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns),I("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},YDb=function(a){a&1&&(J(0,"div"),F(1,UDb,3,2,"div",12),F(2,VDb,2,0,"div",13),F(3,XDb,2,5,"div",14),K());a&2&&(a=P(),x(),G(a.isLoading?1:-1),x(),G(a.isLoading||(a.searchResults==
null?0:a.searchResults.issues==null?0:a.searchResults.issues.length)?-1:2),x(),G(!a.isLoading&&(a.searchResults==null?0:a.searchResults.issues==null?0:a.searchResults.issues.length)?3:-1))},ZDb=function(a){a&1&&(J(0,"div"),R(1," Saved search not found. "),K())},$Db=function(a){a&1&&(J(0,"div"),R(1," Loading details... "),K())},aEb=function(a){a&1&&M(0,"b-panel-controls",5);a&2&&(a=P(2),I("panelId",a.panel.panelId))},bEb=function(a){a&1&&(J(0,"span",8),R(1," \u00a0(changed) "),K())},cEb=function(a){a&
1&&(J(0,"div",3),F(1,aEb,1,1,"b-panel-controls",5),J(2,"span",3),R(3," Saved search: "),J(4,"a",6)(5,"span",7),R(6),K()()(),F(7,bEb,2,0,"span",8),K());a&2&&(a=P(),x(),G(a.isDashboardEditable?1:-1),x(3),I("href",a.paths.viewSavedSearch(a.savedSearchId),hf),x(),I("matTooltip",Ch(a.resource.description)),x(),wh(a.resource.name),x(),G(a.hasParamChanges()?7:-1))},dEb=function(a,b){a&1&&(J(0,"span"),R(1),K());a&2&&(x(),T("Searching for ",b,"..."))},eEb=function(a){a&1&&(J(0,"div",9),M(1,"b-spinner",12),
F(2,dEb,2,1,"span"),K());if(a&2){var b;a=P(2);x();I("large",!1);x();G((b=a.searchParams==null?null:a.searchParams.query)?2:-1,b)}},fEb=function(a){a&1&&(J(0,"div",10),R(1," No issues in saved search. "),K())},gEb=function(a){if(a&1){var b=t();J(0,"div",11)(1,"b-issues-grid",13);N("init",function(c){u(b);var d=P(2);return w(WDb(d,c))});Ah("focusedRowIndexChange",function(c){u(b);var d=P(2);zh(d.focusedRowIndex,c)||(d.focusedRowIndex=c);return w(c)});N("columnsChange",function(c){u(b);var d=P(2);return w(d.columnsChange(c))})("sortChange",
function(c){u(b);var d=P(2);return w(d.setSort(c.field,c.direction))})("rowClick",function(c){u(b);var d=P(2);return w(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){u(b);var c=P(2);return w(c.goToPage(c.page+1))})("onPrevPage",function(){u(b);var c=P(2);return w(c.goToPage(c.page-1))});K()()}a&2&&(a=P(2),x(),I("searchResults",a.searchResults),yh("focusedRowIndex",a.focusedRowIndex),I("columns",a.issueColumns)("enableColumnSaving",a.isColumnSaveEnabled)("sort",a.getSort()))},hEb=function(a){a&
1&&(J(0,"div"),F(1,eEb,3,2,"div",9),F(2,fEb,2,0,"div",10),F(3,gEb,2,5,"div",11),K());a&2&&(a=P(),x(),G(a.isLoading?1:-1),x(),G(!a.isLoading&&a.searchResults&&a.searchResults.issues.length===0?2:-1),x(),G(!a.isLoading&&a.searchResults&&a.searchResults.issues.length!==0?3:-1))},iEb=function(a,b){a&1&&(J(0,"span",2)(1,"a",3),R(2),K()());a&2&&(a=b.$implicit,x(),I("routerLink",Dh("/teams/",a.id,"/edit"))("preserveFragment",!0),x(),wh(a.name))},jEb=function(a){a&1&&(J(0,"p")(1,"span",5),R(2,"NOTE:"),K(),
R(3),J(4,"a",6),R(5,"Learn more"),K()());a&2&&(a=P(),x(3),T(" ",a.data.noteText," "),x(),I("href",a.getDisablingFieldsHelpLink(),hf))},kEb=function(a){a&1&&M(0,"span",25)(1,"b-icon",26);a&2&&(a=P(),I("innerHTML",a.menuLabel,gf))},lEb=function(a){a&1&&(J(0,"div",27),R(1," This includes emails about major updates and: "),J(2,"ul",28)(3,"li"),R(4,"All title, hotlist, and status changes."),K(),J(5,"li"),R(6,"Blocking, Blocked By, or Duplicate changes."),K(),J(7,"li"),R(8,"Changes to Reporter, Verifier, and CCs."),
K(),J(9,"li"),R(10,"Changes to Type, Found In, Targeted To, Verified In, and In Prod. "),K(),J(11,"li"),R(12,"Changes to custom fields marked as minor."),K()()())},mEb=function(a){a&1&&(J(0,"div",29),R(1," This includes emails about: "),J(2,"ul",28)(3,"li"),R(4,"New comments."),K(),J(5,"li"),R(6,"New status updates."),K(),J(7,"li"),R(8,"Priority or Severity changes."),K(),J(9,"li"),R(10,"Assignee changes."),K(),J(11,"li"),R(12,"Component changes."),K(),J(13,"li"),R(14,"Issue closure or reopening."),
K(),J(15,"li"),R(16,"Changes to custom fields marked as major."),K()()())},nEb=function(a,b){a&1&&(J(0,"mat-option",5),R(1),K());a&2&&(a=b.$implicit,I("value",a),x(),T(" ",a.name," "))},oEb=function(a){a&1&&(J(0,"span",3),R(1," (must be between 30 days and 20 years) "),K())},qEb=function(a){if(a&1){var b=t();J(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);gs(d);return w()});K();J(2,"div",
13);R(3);K()()}a&2&&(a=P(),x(),I("disabled",a.issueRetentionDisabled)("durationDays",a.model.retentionPeriodDays),x(2),T(" Issues will be marked for deletion when they have not been modified for ",pEb(a.model.retentionPeriodDays),". "))},rEb=function(a){a&1&&(J(0,"div",5)(1,"p"),R(2,"Please note this extended retention is not appropriate in many circumstances. Before selecting this option, you should make sure "),J(3,"b"),R(4,"one or more"),K(),R(5," of the following is true:"),K(),J(6,"ol")(7,"li"),
R(8,"There is no personal data, user data, or any other forms of sensitive data being stored."),K(),J(9,"li"),R(10,"You have a process in place to manually delete this data within an approved period of time."),K(),J(11,"li"),R(12,"Legal and Privacy have approved this non-standard retention period."),K()()())},sEb=function(a){a&1&&(J(0,"div",7)(1,"p"),R(2,"Please note indefinite retention is not appropriate in many circumstances. Before selecting this option, you should make sure "),J(3,"b"),R(4,"one or more"),
K(),R(5," of the following is true:"),K(),J(6,"ol")(7,"li"),R(8,"There is no personal data, user data, or any other forms of sensitive data being stored."),K(),J(9,"li"),R(10,"You have a process in place to manually delete this data within an approved period of time."),K(),J(11,"li"),R(12,"Legal and Privacy have approved this non-standard retention period."),K()()())},tEb=function(a){a&1&&(J(0,"span",3),R(1," (Issue Retention is shorter than default Restricted Retention) "),K())},vEb=function(a){a&
1&&(J(0,"span",3),R(1),K());a&2&&(a=P(),x(),T(" ",uEb(a)," "))},wEb=function(a){a&1&&(J(0,"div",18)(1,"p"),R(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."),K()())},zEb=function(a){if(a&1){var b=t();J(0,"div",4)(1,"div")(2,"span",14);R(3,"Restricted retention:");
K();J(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);gs(d);return w()});K()();J(5,"div",16)(6,"p");R(7);K()();J(8,"div")(9,"span",14);R(10,"Restricted+ retention:");K();J(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);gs(d);return w()});K()();J(12,"div",16)(13,"p");R(14);K()();F(15,wEb,3,0,"div",
18);K()}a&2&&(a=P(),x(4),I("disabled",!xEb(a))("durationDays",a.model.piiRetentionPeriodDays),x(3),T(" Restricted comments and attachments will be marked for deletion when the containing issue has not been modified for ",pEb(a.model.piiRetentionPeriodDays),". "),x(4),I("disabled",!xEb(a))("durationDays",a.model.spiiRetentionPeriodDays),x(3),T(" Restricted+ comments and attachments will be marked for deletion when the containing issue has not been modified for ",pEb(a.model.spiiRetentionPeriodDays),
". "),x(),G(a.model.piiRetentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&yEb(a)?15:-1))},AEb=function(a){a&1&&(J(0,"div",11)(1,"p"),R(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."),K()())},BEb=function(a,b,c){a=hs(a.slice(b),c,"[()|]","[()|,\\s]");
a.idx+=b;return a},hs=function(a,b,c,d){var e=CEb(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}},CEb=function(a,b){b=new RegExp(b,"gi");for(var c,d=null;(c=b.exec(a))!=null;)d=c,d.index=b.lastIndex;return d},is=function(a,b){return(b===void 0?0:b)?a.search(/^\d+\+?$/)>-1:a.search(/^\d+$/)>-1},DEb=function(a){return a.charAt(0)==="-"?{negated:!0,token:a.slice(1)}:{negated:!1,token:a}},js=function(a,b,c,d){c=c===
void 0?!1:c;d=d===void 0?!1:d;var e=b.val.toLowerCase();a=a.filter(function(q){q=q.name.toLowerCase();return q!==e||d?c?q.startsWith(e):la(q,e):!1});b=b.idx;for(var f=b+e.length,h=l(a),k=h.next();!k.done;k=h.next())k=k.value.completionCfg,k.startIdx=b,k.endIdx=f,k.matchingString=e;return a},ks=function(a){var b=a.name;var c=a.label;var d=a.type;var e=a.enableShadowPlaceholder;var f=a.id;var h;return{trackId:((h=a.trackIdPrefix)!=null?h:d)+":"+b,name:b,id:f!=null?f:b,label:c,completionCfg:{enableShadowPlaceholder:e!=
null?e:!0,completionValue:f!=null?f:b,type:d}}},GEb=function(a,b){if(a&1){var c=t();J(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;EEb(f);FEb(f);f.optionsChange.emit(f.options);return w()});J(2,"mat-checkbox",10);N("change",function(d){var e=u(c).$implicit,f=P();e.value.value=d.checked;EEb(f);FEb(f);f.optionsChange.emit(f.options);return w()})("click",function(d){u(c);
return w(d.stopPropagation())});R(3);K()()()}a&2&&(a=b.$implicit,Lg("aria-checked",a.value.value),x(2),I("checked",a.value.value),x(),T(" ",a.value.displayString," "))},HEb=function(a){a&1&&(J(0,"div",8),R(1),K());a&2&&(a=P(),x(),T(" ",a.errorString," "))},IEb=function(a){a&1&&(J(0,"span",2),R(1),K());a&2&&(a=P(2),x(),xh(" ",a.objectiveBusinessDays," day",a.objectiveBusinessDays!=1?"s":""," "))},JEb=function(a){a&1&&(J(0,"span"),R(1,", "),K())},LEb=function(a){a&1&&(J(0,"span"),F(1,JEb,2,0,"span"),
J(2,"span"),R(3),K()());a&2&&(a=P(2),x(),G(a.objectiveBusinessDays?1:-1),x(2),xh("",a.intervalString," ",KEb(a,a.intervalUnit)))},MEb=function(a){a&1&&(J(0,"span",0),F(1,IEb,2,2,"span",2),F(2,LEb,4,3,"span"),K());a&2&&(a=P(),x(),G(a.objectiveBusinessDays?1:-1),x(),G(a.intervalString&&a.intervalString!="0"?2:-1))},OEb=function(a){if(a&1){var b=t();J(0,"span",3)(1,"input",4);Ah("ngModelChange",function(c){u(b);var d=P(2);zh(d.businessDayString,c)||(d.businessDayString=c);return w(c)});N("ngModelChange",
function(){u(b);var c=P(2);return w(NEb(c))});K();J(2,"span",7);R(3,"days,");K()()}a&2&&(a=P(2),x(),uh("ng-invalid",!!a.errorString),yh("ngModel",a.businessDayString))},PEb=function(a,b){a&1&&(J(0,"mat-option",6),R(1),K());a&2&&(a=b.$implicit,b=P(2),I("value",a),x(),T(" ",KEb(b,a)," "))},WEb=function(a){if(a&1){var b=t();J(0,"span",1);F(1,OEb,4,3,"span",3);J(2,"span",3)(3,"input",4);Ah("ngModelChange",function(c){u(b);var d=P();zh(d.intervalString,c)||(d.intervalString=c);return w(c)});N("ngModelChange",
function(){u(b);var c=P();return w(NEb(c))});K();J(4,"mat-select",5);Ah("ngModelChange",function(c){u(b);var d=P();zh(d.intervalUnit,c)||(d.intervalUnit=c);return w(c)});N("selectionChange",function(){u(b);var c=P();QEb(c);REb(c);return w()});Pg(5,PEb,2,2,"mat-option",6,Og);K()()()}a&2&&(a=P(),x(),G(SEb(a)?1:-1),x(2),uh("invalid",!!a.errorString),yh("ngModel",a.intervalString),x(),yh("ngModel",a.intervalUnit),x(),Qg(SEb(a)?[TEb,UEb]:[TEb,UEb,VEb]))},YEb=function(a){if(a&1){var b=t();J(0,"b-icon",
22);N("click",function(){u(b);var c=P(2);return w(XEb(c,0))});K()}a&2&&I("name","add")("size","small")},$Eb=function(a){if(a&1){var b=t();J(0,"span",5)(1,"span",18)(2,"span",19);F(3,YEb,1,2,"b-icon",20);K();J(4,"span",19)(5,"b-icon",21);N("click",function(c){u(b);var d=P();return w(ZEb(d,c))});K()()()()}a&2&&(a=P(),x(3),G(a.canPerformActions?3:-1),x(2),I("name","delete")("size","small"))},aFb=function(a){a&1&&M(0,"td",26)},bFb=function(a){a&1&&M(0,"td",27)},cFb=function(a){if(a&1){var b=t();J(0,"td",
28)(1,"slo-element-property-picker",42);Ah("optionsChange",function(c){u(b);var d=P().$implicit;zh(d.typePickerValues,c)||(d.typePickerValues=c);return w(c)});K()()}a&2&&(a=P().$implicit,x(),I("selectAllText","Any type")("validator",a.validateTypePicker),yh("options",a.typePickerValues))},dFb=function(a){a&1&&(J(0,"div"),R(1),K());a&2&&(a=P(2).$implicit,x(),T("ERROR: ",a.parseResult.error))},eFb=function(a,b){a&1&&(J(0,"span",44)(1,"span",45),R(2),K()());a&2&&(a=b.$implicit,x(2),wh(a))},gFb=function(a){a&
1&&(J(0,"span",43),Pg(1,eFb,3,1,"span",44,Og),K());if(a&2){a=P(2).$implicit;x();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(fFb(a.controllerReference,d));a=b}Qg(a)}},hFb=function(a){a&1&&(J(0,"td",29),F(1,dFb,2,1,"div")(2,gFb,3,0,"span",43),K());a&2&&(a=P().$implicit,x(),G(a.parseResult.error?1:2))},iFb=function(a){if(a&1){var b=t();J(0,
"td",30)(1,"slo-element-property-picker",46);Ah("optionsChange",function(c){u(b);var d=P().$implicit;zh(d.priorityPickerValues,c)||(d.priorityPickerValues=c);return w(c)});K()()}a&2&&(a=P().$implicit,x(),I("selectAllText","Any priority")("validator",a.validatePriorityPicker),yh("options",a.priorityPickerValues))},jFb=function(a){a&1&&(J(0,"div"),R(1),K());a&2&&(a=P(2).$implicit,x(),T("ERROR: ",a.parseResult.error))},kFb=function(a,b){a&1&&(J(0,"span",44)(1,"span",45),R(2),K()());a&2&&(a=b.$implicit,
x(2),wh(a))},mFb=function(a){a&1&&(J(0,"span",43),Pg(1,kFb,3,1,"span",44,Og),K());if(a&2){a=P(2).$implicit;x();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(lFb(a.controllerReference,d));a=b}Qg(a)}},nFb=function(a){a&1&&(J(0,"td",31),F(1,jFb,2,1,"div")(2,mFb,3,0,"span",43),K());a&2&&(a=P().$implicit,x(),G(a.parseResult.error?
1:2))},oFb=function(a){if(a&1){var b=t();J(0,"td",32)(1,"slo-element-property-picker",47);Ah("optionsChange",function(d){u(b);var e=P().$implicit;zh(e.postmortemPickerValues,d)||(e.postmortemPickerValues=d);return w(d)});K()()}if(a&2){a=P().$implicit;var c=P(2);x();I("selectAllText",c.postmortemAllSummaryValue)("validator",a.validatePostmortemPicker);yh("options",a.postmortemPickerValues)}},pFb=function(a){a&1&&(J(0,"div"),R(1),K());a&2&&(a=P(2).$implicit,x(),T("ERROR: ",a.parseResult.error))},qFb=
function(a,b){a&1&&(J(0,"span",44)(1,"span",45),R(2),K()());a&2&&(a=b.$implicit,x(2),wh(a))},rFb=function(a){a&1&&(J(0,"span",43),Pg(1,qFb,3,1,"span",44,Og),K());if(a&2){a=P(2).$implicit;x();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])];Qg(a)}},sFb=function(a){a&1&&(J(0,"td",33),F(1,pFb,2,1,"div")(2,rFb,3,0,"span",43),K());a&2&&(a=P().$implicit,
x(),G(a.parseResult.error?1:2))},uFb=function(a,b){a&1&&(J(0,"mat-option",50),R(1),K());a&2&&(a=b.$implicit,P(4),I("value",a),x(),T(" ",tFb(a)," "))},vFb=function(a){if(a&1){var b=t();J(0,"td",34)(1,"mat-form-field",48)(2,"mat-select",49);Ah("ngModelChange",function(d){u(b);var e=P().$implicit;zh(e.selectedMetric,d)||(e.selectedMetric=d);return w(d)});Pg(3,uFb,2,2,"mat-option",50,Og);K()()()}if(a&2){a=P().$implicit;var c=P(2);x(2);yh("ngModel",a.selectedMetric);I("customValidators",a.metricValidators);
x();Qg(c.metricChoices)}},wFb=function(a){a&1&&(J(0,"td",35),R(1),K());a&2&&(a=P().$implicit,P(2),x(),T(" ",tFb(a.sloElement.metric)," "))},xFb=function(a){if(a&1){var b=t();J(0,"td",36)(1,"slo-objective-selector",51);Ah("objectiveDurationChange",function(c){u(b);var d=P().$implicit;zh(d.selectedObjectiveDuration,c)||(d.selectedObjectiveDuration=c);return w(c)})("objectiveBusinessDaysChange",function(c){u(b);var d=P().$implicit;zh(d.selectedObjectiveBusinessDays,c)||(d.selectedObjectiveBusinessDays=
c);return w(c)});K()()}a&2&&(a=P().$implicit,x(),I("dayType",a.selectedDayType),yh("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",a.selectedObjectiveBusinessDays),I("validator",a.validateObjective)("isDisabled",!1))},yFb=function(a){if(a&1){var b=t();J(0,"td",37)(1,"slo-objective-selector",52);Ah("objectiveDurationChange",function(c){u(b);var d=P().$implicit;zh(d.selectedObjectiveDuration,c)||(d.selectedObjectiveDuration=c);return w(c)})("objectiveBusinessDaysChange",function(c){u(b);
var d=P().$implicit;zh(d.selectedObjectiveBusinessDays,c)||(d.selectedObjectiveBusinessDays=c);return w(c)});K()()}a&2&&(a=P().$implicit,x(),I("dayType",a.selectedDayType),yh("objectiveDuration",a.selectedObjectiveDuration)("objectiveBusinessDays",a.selectedObjectiveBusinessDays),I("isDisabled",!a.isEditingInternal))},AFb=function(a,b){a&1&&(J(0,"mat-option",50),R(1),K());a&2&&(a=b.$implicit,P(4),I("value",a),x(),T(" ",zFb.get(a||"CALENDAR")," "))},BFb=function(a){if(a&1){var b=t();J(0,"td",38)(1,
"mat-form-field",48)(2,"mat-select",53);Ah("ngModelChange",function(d){u(b);var e=P().$implicit;zh(e.selectedDayType,d)||(e.selectedDayType=d);return w(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 w()});Pg(3,AFb,2,2,"mat-option",50,Og);K()()()}if(a&2){a=P().$implicit;var c=P(2);x(2);yh("ngModel",a.selectedDayType);x();Qg(c.dayTypes)}},CFb=function(a){a&1&&(J(0,"td",39),R(1),K());a&2&&(a=P().$implicit,P(2),x(),T(" ",zFb.get(a.sloElement.dayType||"CALENDAR")," "))},GFb=function(a){if(a&1){var b=t();J(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())DFb(c.openRow.typePickerValues)&&
DFb(c.openRow.priorityPickerValues)&&DFb(c.openRow.postmortemPickerValues)?c.confirmationDialogService.open({title:"SLO validation error",content:Xi("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}):EFb(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:Xi('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 w()});K()();J(4,"span",19)(5,"b-icon",55);N("click",function(){u(b);var c=P().$implicit,d=P(2);return w(FFb(d,c))});K()()()()}a&2&&(x(3),
I("name","done")("size","small"),x(2),I("name","delete")("size","small"))},IFb=function(a){if(a&1){var b=t();J(0,"b-icon",63);N("click",function(c){u(b);var d=P(2).$implicit,e=P(2);return w(HFb(e,d,c))});K()}a&2&&I("name","edit")("size","small")},JFb=function(a){a&1&&M(0,"b-icon",57);a&2&&(P(),a=Q(8),I("name","more-settings-vertical")("size","small")("matMenuTriggerFor",a))},LFb=function(a){if(a&1){var b=t();J(0,"button",64);N("click",function(){u(b);var c=P(2).$implicit,d=P(2);return w(KFb(d,c,1))});
R(1," Move row down ");K()}},MFb=function(a){if(a&1){var b=t();J(0,"button",65);N("click",function(){u(b);var c=P(2).$implicit,d=P(2);return w(KFb(d,c,-1))});R(1," Move row up ");K()}},OFb=function(a){if(a&1){var b=t();J(0,"td",41)(1,"span",18)(2,"span",19);F(3,IFb,1,2,"b-icon",56);K();J(4,"span",19)(5,"span");F(6,JFb,1,3,"b-icon",57);K();J(7,"mat-menu",null,0);F(9,LFb,2,0,"button",58);F(10,MFb,2,0,"button",59);J(11,"button",60);N("click",function(){u(b);var d=P().$implicit,e=P(2);XEb(e,e.collection.indexOf(d)+
1);return w()});R(12," Add row below ");K();J(13,"button",61);N("click",function(){u(b);var d=P().$implicit,e=P(2);XEb(e,e.collection.indexOf(d)+-1+1);return w()});R(14," Add row above ");K();J(15,"button",62);N("click",function(){u(b);var d=P().$implicit,e=P(2);return w(FFb(e,d))});R(16," Remove ");K()()()()()}if(a&2){a=P().$implicit;var c=P(2);x(3);G(a.canEdit?3:-1);x(3);G(a.canEdit?6:-1);x(3);G(NFb(c,a,1).valid?9:-1);x();G(NFb(c,a,-1).valid?10:-1)}},PFb=function(a,b){a&1&&(J(0,"tr",25),F(1,aFb,
1,0,"td",26)(2,bFb,1,0,"td",27),F(3,cFb,2,3,"td",28)(4,hFb,3,1,"td",29),F(5,iFb,2,3,"td",30)(6,nFb,3,1,"td",31),F(7,oFb,2,3,"td",32)(8,sFb,3,1,"td",33),F(9,vFb,5,2,"td",34)(10,wFb,2,1,"td",35),F(11,xFb,2,5,"td",36)(12,yFb,2,4,"td",37),F(13,BFb,5,1,"td",38)(14,CFb,2,1,"td",39),F(15,GFb,6,4,"td",40)(16,OFb,17,4,"td",41),K());a&2&&(a=b.$implicit,b=P(2),uh("draggable",!b.isDisabled&&b.openRow==null),x(),G(a.isEditingInternal?1:2),x(2),G(a.isEditingInternal?3:4),x(2),G(a.isEditingInternal?5:6),x(2),G(a.isEditingInternal?
7:8),x(2),G(a.isEditingInternal?9:10),x(2),G(a.isEditingInternal?11:12),x(2),G(a.isEditingInternal?13:14),x(2),G(a.isEditingInternal?15:16))},QFb=function(a){if(a&1){var b=t();J(0,"tbody",23);N("cdkDropListDropped",function(c){u(b);var d=P();return w(d.onDrop(c))});Pg(1,PFb,17,10,"tr",24,Og);K()}a&2&&(a=P(),I("cdkDropListData",a.collection)("cdkDropListDisabled",a.isDisabled||a.openRow!=null),x(),Qg(a.collection))},RFb=function(a){a&1&&(J(0,"div",17),R(1," There are currently no rules for this SLO "),
K())},SFb=function(a,b){if(a&1){var c=t();J(0,"tr",7);N("click",function(){var e=u(c).$implicit,f=P();return w(f.editSlo(e))})("focus",function(){var e=u(c).$index,f=P();return w(f.setFocusOnIndex(e))});M(1,"td",2);J(2,"td",8)(3,"a",9);R(4);K()();J(5,"td",10);R(6);K()()}if(a&2){a=b.$implicit;b=b.$index;var d=P();uh("grid-focus",d.isFocused(b));Lg("aria-selected",d.isFocused(b))("aria-label",d.renderRowLabel(b));x(3);I("href",Dq.editSlo.makeHref(a.sloId),hf);x();T(" ",a.name," ");x(2);T(" ",a.description,
" ")}},TFb=function(a){if(a)return(Array.isArray(a)?a.map(function(b){return kj(b)}):[kj(a)]).filter(function(b){return!isNaN(b)})},UFb=function(a,b){if(b&&!Array.isArray(b))return a.find(function(c){return!ia(c,b)})},VFb=function(a,b){typeof a==="string"&&(a=a.trim())&&b(Dj(a))},WFb=function(a,b){if(!a)return[];a=l(typeof a==="string"?a.split(","):a);for(var c=a.next();!c.done;c=a.next())VFb(c.value,function(d){return b.push(d)});return bsa(b)},XFb=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("kf");}},YFb=function(a){a&1&&(J(0,"a",1),R(1),U(2,"async"),K());if(a&2){var b;a=P();I("href",a.manageComponentLink,hf);x();wh((b=V(2,2,a.component$))==null?null:b.name)}},ZFb=function(a){a&1&&(J(0,"output"),R(1),K());a&2&&(a=P(),x(),wh(a.componentId))},$Fb=function(a){a&1&&Yg(0)},aGb=function(a){a&1&&D(0,$Fb,1,0,"ng-container",4);a&2&&(P(),a=Q(6),I("ngTemplateOutlet",a))},bGb=function(a){a&1&&
Yg(0)},cGb=function(a){a&1&&D(0,bGb,1,0,"ng-container",4);a&2&&(P(),a=Q(8),I("ngTemplateOutlet",a))},dGb=function(a){a&1&&(J(0,"li")(1,"label"),R(2,"Component"),K(),M(3,"b-async-component",8),K());a&2&&(a=P(2),x(3),I("componentId",a.issueComponentId))},eGb=function(a){a&1&&(J(0,"li")(1,"label"),R(2,"Team"),K(),M(3,"b-team-display",9),K());a&2&&(a=P(2),x(3),I("teamId",a.issueTeamId))},fGb=function(a){a&1&&(J(0,"ol",5)(1,"li")(2,"label"),R(3,"ID"),K(),J(4,"output"),R(5),K()(),J(6,"li")(7,"label"),R(8,
"Type"),K(),J(9,"output"),R(10),K()(),J(11,"li")(12,"label"),R(13,"Priority"),K(),M(14,"b-issue-priority-display",6),K(),J(15,"li")(16,"label"),R(17,"Severity"),K(),J(18,"output"),R(19),K()(),J(20,"li")(21,"label"),R(22,"Status"),K(),J(23,"output"),R(24),K()(),J(25,"li")(26,"label"),R(27,"Last modified"),K(),J(28,"output"),R(29),U(30,"date"),K()(),J(31,"li")(32,"label"),R(33,"Issue access limit"),K(),J(34,"output"),R(35),J(36,"a",7),R(37,"Learn more"),K()()(),F(38,dGb,4,1,"li"),F(39,eGb,4,1,"li"),
K());a&2&&(a=P(),x(5),wh(a.issueId),x(5),wh(a.issueType),x(4),I("issuePriority",a.issuePriority),x(5),wh(a.issueSeverity),x(5),wh(a.issueStatus),x(5),wh(Kh(30,10,a.issueLastModified,"medium")),x(6),T("",a.accessLimitLevel," "),x(),I("href",a.documentationLinks.getIssueAccessLimit(),hf),x(2),G(a.issueComponentId?38:-1),x(),G(a.issueTeamId?39:-1))},gGb=function(a){a&1&&(Wg(0),R(1,"Signing in..."),Xg(),M(2,"b-spinner"))},hGb=function(a){a&1&&(Wg(0),R(1,"Sign in"),Xg())},iGb=function(a){if(a&1){var b=
t();J(0,"button",11);N("click",function(){u(b);var c=P(2);c.signInProgressing=!0;c.loginRedirector.redirect();return w()});F(1,gGb,3,0)(2,hGb,2,0,"ng-container");K()}a&2&&(a=P(2),x(),G(a.signInProgressing?1:2))},jGb=function(a){a&1&&(J(0,"h3"),R(1,"Access to this issue may be resolved by signing in."),K(),F(2,iGb,3,1,"button",10));a&2&&(a=P(),x(2),G(a.enableSignInAnonymousAccessDenied?2:-1))},kGb=function(a){return a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'")?a.toLowerCase().substr(1,
a.length-2):a.toLowerCase()},lGb=function(a){a.label||(a=hj(a),a.label={customFieldId:void 0,field:"_TEXT_"});return a},nGb=function(a){return{type:mGb[a.getType()],value:a.getValue()}},pGb=function(a){var b,c=oGb[a.getType()],d=((b=a.getValuesList())!=null?b:[]).map(pGb);a=Sj(a,qGb,3,Bj());return{type:c,values:d,simpleValues:(a!=null?a:[]).map(nGb)}},uGb=function(a){var b,c=rGb[a.getType()],d=((b=a.getValuesList())!=null?b:[]).map(pGb);b=kk(a,3);if(a.hasLabel()){var e=a.getLabel();e={field:sGb[e.getField()],
customFieldId:Number(e.getCustomFieldId_asString())}}else e=void 0;return{type:c,values:d,negated:b,label:e,operator:tGb[pk(a,5)]}},zGb=function(a){switch(a.getKindCase()){case 2:var b=im(a,vGb,2,wGb,Nc);return{syntaxErrorResponse:{syntaxError:Rc(b,1,void 0,Nc)},queryBuilderResponse:void 0};case 1:return a=im(a,ls,1,wGb,Nc),{syntaxErrorResponse:void 0,queryBuilderResponse:{type:xGb[a.getType()],expressions:((b=Sj(a,yGb,2,Bj(),Nc))!=null?b:[]).map(uGb)}};default:return{syntaxErrorResponse:void 0,queryBuilderResponse:void 0}}},
AGb=function(a,b){a&1&&(J(0,"mat-option",4)(1,"div",5),R(2),K()());a&2&&(a=b.$implicit,I("value",a),x(2),T(" ",a.name," "))},BGb=function(a,b){a&1&&(J(0,"mat-option",11),R(1),K());a&2&&(a=b.$implicit,I("value",a.key),x(),T(" ",a.value," "))},CGb=function(a){if(a&1){var b=t();J(0,"mat-form-field",4)(1,"mat-select",10);Ah("ngModelChange",function(c){u(b);var d=P(2);zh(d.expressionType,c)||(d.expressionType=c);return w(c)});Pg(2,BGb,2,2,"mat-option",11,Og);U(4,"keyvalue");K()()}a&2&&(a=P(2),x(),yh("ngModel",
a.expressionType),x(),Qg(V(4,1,a.globalTypeLabels)))},DGb=function(a,b){a&1&&(J(0,"mat-option",11),R(1),K());a&2&&(a=b.$implicit,I("value",a[0]),x(),T(" ",a[1]," "))},EGb=function(a,b){a&1&&(J(0,"mat-option",11),R(1),K());if(a&2){a=b.$implicit;b=P(2).$implicit;var c=P(2);I("value",a);x();T(" ",c.getTypeLabel(b,a)," ")}},FGb=function(a){if(a&1){var b=t();J(0,"mat-form-field",4)(1,"mat-select",18);Ah("ngModelChange",function(c){u(b);var d=P().$implicit;zh(d.type,c)||(d.type=c);return w(c)});Pg(2,EGb,
2,2,"mat-option",11,Og);K()()}a&2&&(a=P().$implicit,x(),yh("ngModel",a.type),x(),Qg(a.getLegalTypes()))},HGb=function(a){if(a&1){var b=t();J(0,"div",26);N("click",function(){u(b);var c=P(2).$implicit,d=P(5);return w(GGb(d,c))});J(1,"span",27);R(2);K()()}a&2&&(a=P(2).$implicit,P(5),I("title",a.value),x(2),T(" ",a.value.replace(/"/g,"")," "))},IGb=function(a){if(a&1){var b=t();J(0,"div",24)(1,"b-custom-repeated-enum-picker",28);N("onValueChange",function(e){u(b);var f=P(7);f.chipUnderEdit.value='"'+
e+'"';ms(f);return w()});K()()}if(a&2){a=P(2).$implicit;var c=P(3).$implicit,d=P(2);x();I("showPlaceholder",!0)("customFieldTitle",d.getCustomFieldName(c))("currentInputValue",a.value.replace(/"/g,""))("allowedValues",c.getOptions())}},JGb=function(a){if(a&1){var b=t();J(0,"div",22);F(1,HGb,3,2,"div",23);F(2,IGb,2,4,"div",24);J(3,"button",25);N("click",function(){u(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return w(ns(f,e,d))});K()()}if(a&2){a=P().$implicit;var c=P(5);x();G(c.chipUnderEdit===
a?-1:1);x();G(c.chipUnderEdit===a?2:-1)}},KGb=function(a,b){a&1&&F(0,JGb,4,2,"div",22);a&2&&(a=b.$implicit,b=P(5),G(b.chipUnderEdit===a||a.value?0:-1))},LGb=function(a){if(a&1){var b=t();J(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,d=P(2);return w(os(d,c))});R(1);K()}a&2&&(a=P(3).$implicit,x(),T(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},MGb=function(a){a&1&&(J(0,"div",19),Pg(1,KGb,1,1,null,null,Og),F(3,LGb,2,1,"button",21),K());a&2&&(a=P(2).$implicit,x(),Qg(a.values),
x(2),G(a.type?3:-1))},NGb=function(a,b){if(a&1){var c=t();J(0,"div",30)(1,"mat-checkbox",31);N("change",function(d){var e=u(c).$implicit,f=P(3).$implicit;return w(f.enumValues[e.id]=d.checked)});R(2);K()()}a&2&&(a=b.$implicit,b=P(3).$implicit,x(),I("checked",b.enumValues[a.id])("matTooltip",a.tooltip),x(),T(" ",a.label||a.id," "))},OGb=function(a){a&1&&(J(0,"div",20),Pg(1,NGb,3,3,"div",30,Og),K());a&2&&(a=P(2).$implicit,x(),Qg(a.getOptions()))},PGb=function(a){if(a&1){var b=t();J(0,"input",34);Ah("ngModelChange",
function(d){u(b);var e=P(4).$implicit;zh(e.csv,d)||(e.csv=d);return w(d)});K()}if(a&2){a=P(4).$implicit;var c=P(2);yh("ngModel",a.csv);I("candidateDenylist",c.candidateEmailAutocompleteDenylist)}},QGb=function(a){if(a&1){var b=t();J(0,"input",35);Ah("ngModelChange",function(c){u(b);var d=P(4).$implicit;zh(d.csv,c)||(d.csv=c);return w(c)});K()}a&2&&(a=P(4).$implicit,yh("ngModel",a.csv),I("bContactAutocomplete","MULTI"))},RGb=function(a){a&1&&(J(0,"div"),F(1,PGb,1,2,"input",32)(2,QGb,1,2,"input",33),
K());a&2&&(a=P(5),x(),G(a.enablePeoplekitAc?1:2))},SGb=function(a){if(a&1){var b=t();J(0,"div")(1,"input",36);Ah("ngModelChange",function(c){u(b);var d=P(3).$implicit;zh(d.csv,c)||(d.csv=c);return w(c)});K()()}a&2&&(a=P(3).$implicit,x(),yh("ngModel",a.csv))},TGb=function(a){if(a&1){var b=t();J(0,"div")(1,"input",37);Ah("ngModelChange",function(c){u(b);var d=P(3).$implicit;zh(d.csv,c)||(d.csv=c);return w(c)});K()()}a&2&&(a=P(3).$implicit,x(),yh("ngModel",a.csv))},UGb=function(a){if(a&1){var b=t();
J(0,"div")(1,"input",38);Ah("ngModelChange",function(c){u(b);var d=P(3).$implicit;zh(d.csv,c)||(d.csv=c);return w(c)});K()()}a&2&&(a=P(3).$implicit,x(),yh("ngModel",a.csv))},VGb=function(a){a&1&&(J(0,"div"),F(1,RGb,3,1,"div"),F(2,SGb,2,1,"div"),F(3,TGb,2,1,"div"),F(4,UGb,2,1,"div"),K());a&2&&(a=P(2).$implicit,x(),G(a.getWidgetType()=="user"?1:-1),x(),G(a.getWidgetType()=="csv"?2:-1),x(),G(a.getWidgetType()=="id"?3:-1),x(),G(a.getWidgetType()=="number"?4:-1))},WGb=function(a,b){if(a&1){var c=t();J(0,
"div",39)(1,"div",24)(2,"input",38);Ah("ngModelChange",function(d){var e=u(c).$implicit;zh(e.value,d)||(e.value=d);return w(d)});K()();J(3,"button",40);N("click",function(){var d=u(c).$implicit,e=P(3).$implicit,f=P(2);return w(ns(f,e,d))});K()()}a&2&&(a=b.$implicit,x(2),yh("ngModel",a.value))},XGb=function(a){if(a&1){var b=t();J(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,d=P(2);return w(os(d,c))});R(1);K()}a&2&&(a=P(3).$implicit,x(),T(" + ",a.type=="OR"||a.type=="NOR"?"OR":"AND",
" "))},YGb=function(a){a&1&&(J(0,"div",19),Pg(1,WGb,4,1,"div",39,Og),F(3,XGb,2,1,"button",21),K());a&2&&(a=P(2).$implicit,x(),Qg(a.values),x(2),G(a.type?3:-1))},$Gb=function(a){if(a&1){var b=t();J(0,"div",26);N("click",function(){u(b);var d=P(2).$implicit,e=P(5);return w(ZGb(e,d))});J(1,"span",27);R(2);K()()}if(a&2){a=P(2).$implicit;var c=P(5);I("title",c.getComponentPath(c.components[a.value]));x(2);T(" ",c.getComponentPath(c.components[a.value])," ")}},aHb=function(a){if(a&1){var b=t();J(0,"div",
24)(1,"b-team-component-picker",44);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;ms(d);return w()});K()()}a&2&&(a=P(7),x(),I("selectedComponent",a.componentUnderEdit)("placeholder","Choose Component")("isRequired",!0))},bHb=function(a){if(a&1){var b=t();J(0,"div",41);F(1,$Gb,3,2,"div",
23);F(2,aHb,2,3,"div",24);J(3,"button",42);N("click",function(){u(b);var d=P().$implicit;P(5);d.includeSubs=!d.includeSubs;return w()});M(4,"mat-icon",43);K();J(5,"button",25);N("click",function(){u(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return w(ns(f,e,d))});K()()}if(a&2){a=P().$implicit;var c=P(5);x();G(c.chipUnderEdit===a?-1:1);x();G(c.chipUnderEdit===a?2:-1);x();I("title",a.includeSubs?"Subcomponents are included":"Subcomponents are not included");Lg("aria-checked",a.includeSubs);x();
I("svgIcon",a.includeSubs?"child-components-24px":"child-components-hide-24px")}},cHb=function(a,b){a&1&&F(0,bHb,6,5,"div",41);a&2&&(a=b.$implicit,b=P(5),G(b.chipUnderEdit===a||a.value?0:-1))},dHb=function(a){if(a&1){var b=t();J(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,d=P(2);return w(os(d,c))});R(1);K()}a&2&&(a=P(3).$implicit,x(),T(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},eHb=function(a){a&1&&(J(0,"div",19),Pg(1,cHb,1,1,null,null,Og),F(3,dHb,2,1,"button",21),K());
a&2&&(a=P(2).$implicit,x(),Qg(a.values),x(2),G(a.type?3:-1))},gHb=function(a){if(a&1){var b=t();J(0,"div",26);N("click",function(){u(b);var d=P(2).$implicit,e=P(5);return w(fHb(e,d))});J(1,"span",27);R(2);K()()}if(a&2){a=P(2).$implicit;var c=P(5);I("title",c.trackers[a.value]==null?null:c.trackers[a.value].name);x(2);T(" ",c.trackers[a.value]==null?null:c.trackers[a.value].name," ")}},hHb=function(a){if(a&1){var b=t();J(0,"div",24)(1,"b-tracker-picker",46);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;ms(d);return w()});K()()}a&2&&(a=P(7),x(),I("selectedTracker",a.trackerUnderEdit))},iHb=function(a){if(a&1){var b=t();J(0,"div",45);F(1,gHb,3,2,"div",23);F(2,hHb,2,1,"div",24);J(3,"button",25);N("click",function(){u(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return w(ns(f,e,d))});K()()}if(a&
2){a=P().$implicit;var c=P(5);x();G(c.chipUnderEdit===a?-1:1);x();G(c.chipUnderEdit===a?2:-1)}},jHb=function(a,b){a&1&&F(0,iHb,4,2,"div",45);a&2&&(a=b.$implicit,b=P(5),G(b.chipUnderEdit===a||a.value?0:-1))},kHb=function(a){if(a&1){var b=t();J(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,d=P(2);return w(os(d,c))});R(1);K()}a&2&&(a=P(3).$implicit,x(),T(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},lHb=function(a){a&1&&(J(0,"div",19),Pg(1,jHb,1,1,null,null,Og),F(3,kHb,2,1,"button",
21),K());a&2&&(a=P(2).$implicit,x(),Qg(a.values),x(2),G(a.type?3:-1))},nHb=function(a){if(a&1){var b=t();J(0,"div",26);U(1,"teamPath");N("click",function(){u(b);var d=P(2).$implicit,e=P(6);return w(mHb(e,d))});J(2,"span",27);R(3);U(4,"teamPath");K()()}if(a&2){a=P(2).$implicit;var c=P(6);I("title",V(1,2,c.teams[a.value]));x(3);T(" ",V(4,4,c.teams[a.value])," ")}},pHb=function(a){if(a&1){var b=t();J(0,"div",24)(1,"b-team-picker",49);N("onTeamSelect",function(c){u(b);var d=P(8);return w(oHb(d,c))});
K()()}a&2&&(a=P(8),x(),I("teamSelected",a.teamUnderEdit))},qHb=function(a){if(a&1){var b=t();J(0,"div",47);F(1,nHb,5,6,"div",23);F(2,pHb,2,1,"div",24);J(3,"button",48);N("click",function(){u(b);var d=P().$implicit;P(6);d.includeSubs=!d.includeSubs;return w()});M(4,"mat-icon",43);K();J(5,"button",25);N("click",function(){u(b);var d=P().$implicit,e=P(4).$implicit,f=P(2);return w(ns(f,e,d))});K()()}if(a&2){a=P().$implicit;var c=P(6);x();G(c.chipUnderEdit===a?-1:1);x();G(c.chipUnderEdit===a?2:-1);x();
I("title",a.includeSubs?"Subteams are included":"Subteams are not included");Lg("aria-checked",a.includeSubs);x();I("svgIcon",a.includeSubs?"child-teams-24px":"child-teams-hide-24px")}},rHb=function(a,b){a&1&&F(0,qHb,6,5,"div",47);a&2&&(a=b.$implicit,b=P(6),G(b.chipUnderEdit===a||a.value?0:-1))},sHb=function(a){if(a&1){var b=t();J(0,"button",29);N("click",function(){u(b);var c=P(4).$implicit,d=P(2);return w(os(d,c))});R(1);K()}a&2&&(a=P(4).$implicit,x(),T(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND",
" "))},tHb=function(a){a&1&&(Pg(0,rHb,1,1,null,null,Og),F(2,sHb,2,1,"button",21));a&2&&(a=P(3).$implicit,Qg(a.values),x(2),G(a.type?2:-1))},uHb=function(a){a&1&&(J(0,"div",19),F(1,tHb,3,1),K());a&2&&(a=P(4),x(),G(a.sessionIsInternal?1:-1))},wHb=function(a){if(a&1){var b=t();J(0,"div")(1,"bv2-input-date-picker",50);N("boundValueChange",function(d){u(b);P(3).$implicit.dateFrom=vHb(d);return w()});K();R(2," and ");J(3,"bv2-input-date-picker",50);N("boundValueChange",function(d){u(b);P(3).$implicit.dateTo=
vHb(d);return w()});K()()}if(a&2){a=P(3).$implicit;var c=P(2);x();I("boundValue",c.getDateValue(a.dateFrom))("isRequired",!0);x(2);I("boundValue",c.getDateValue(a.dateTo))("isRequired",!0)}},xHb=function(a){if(a&1){var b=t();J(0,"div");R(1," the last ");J(2,"input",51);Ah("ngModelChange",function(c){u(b);var d=P(3).$implicit;zh(d.duration,c)||(d.duration=c);return w(c)});K();R(3," days. ");K()}a&2&&(a=P(3).$implicit,x(2),yh("ngModel",a.duration))},yHb=function(a){if(a&1){var b=t();J(0,"div")(1,"bv2-input-date-picker",
50);N("boundValueChange",function(d){u(b);P(3).$implicit.dateFrom=vHb(d);return w()});K()()}if(a&2){a=P(3).$implicit;var c=P(2);x();I("boundValue",c.getDateValue(a.dateFrom))("isRequired",!0)}},zHb=function(a){a&1&&(J(0,"div"),F(1,wHb,4,4,"div"),F(2,xHb,4,1,"div"),F(3,yHb,2,2,"div"),K());a&2&&(a=P(2).$implicit,x(),G(a.type=="RANGE"||a.type=="NRANGE"?1:-1),x(),G(a.type=="DURATION"||a.type=="NDURATION"?2:-1),x(),G(a.type=="LE"||a.type=="LT"||a.type=="GE"||a.type=="GT"||a.type=="OR"?3:-1))},AHb=function(a){if(a&
1){var b=t();J(0,"div",26);N("click",function(){u(b);var d=P(2).$implicit,e=P(5);return w(ps(e,d))});J(1,"span",27);R(2);K()()}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);x(2);T(" ",(c.hotlists[a.value]==null?null:c.hotlists[a.value].name)||a.value," ")}},BHb=function(a,b){a&1&&(J(0,"mat-option",11),R(1),K());a&2&&(a=b.$implicit,I("value",a.hotlistId),x(),T(" ",a.name," "))},CHb=function(a){if(a&1){var b=t();J(0,"mat-form-field",
53)(1,"mat-select",54);Ah("ngModelChange",function(d){u(b);var e=P(2).$implicit;zh(e.value,d)||(e.value=d);return w(d)});N("selectionChange",function(){u(b);var d=P(7);return w(ms(d))});Pg(2,BHb,2,2,"mat-option",11,Og);K()()}if(a&2){a=P(2).$implicit;var c=P(5);x();yh("ngModel",a.value);x();Qg(c.userHotlists)}},DHb=function(a){if(a&1){var b=t();J(0,"div",52);F(1,AHb,3,2,"div",23);F(2,CHb,4,1,"mat-form-field",53);J(3,"button",25);N("click",function(){u(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);
return w(ns(f,e,d))});K()()}if(a&2){a=P().$implicit;var c=P(5);x();G(c.chipUnderEdit===a?-1:1);x();G(c.chipUnderEdit===a?2:-1)}},EHb=function(a,b){a&1&&F(0,DHb,4,2,"div",52);a&2&&(a=b.$implicit,b=P(5),G(b.chipUnderEdit===a||a.value?0:-1))},FHb=function(a){if(a&1){var b=t();J(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,d=P(2);return w(os(d,c))});R(1);K()}a&2&&(a=P(3).$implicit,x(),T(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},GHb=function(a){a&1&&(J(0,"div",19),Pg(1,EHb,
1,1,null,null,Og),F(3,FHb,2,1,"button",21),K());a&2&&(a=P(2).$implicit,x(),Qg(a.values),x(2),G(a.type?3:-1))},HHb=function(a){if(a&1){var b=t();J(0,"div",26);N("click",function(){u(b);var d=P(2).$implicit,e=P(5);return w(ps(e,d))});J(1,"span",27);R(2);K()()}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);x(2);T(" ",(c.savedSearches[a.value]==null?null:c.savedSearches[a.value].name)||a.value," ")}},IHb=function(a,b){a&1&&(J(0,
"mat-option",11),R(1),K());a&2&&(a=b.$implicit,I("value",a.searchId),x(),T(" ",a.name," "))},JHb=function(a){if(a&1){var b=t();J(0,"mat-form-field",53)(1,"mat-select",55);Ah("ngModelChange",function(d){u(b);var e=P(2).$implicit;zh(e.value,d)||(e.value=d);return w(d)});N("selectionChange",function(){u(b);var d=P(7);return w(ms(d))});Pg(2,IHb,2,2,"mat-option",11,Og);K()()}if(a&2){a=P(2).$implicit;var c=P(5);x();yh("ngModel",a.value);x();Qg(c.userSavedSearches)}},KHb=function(a){if(a&1){var b=t();J(0,
"div",52);F(1,HHb,3,2,"div",23);F(2,JHb,4,1,"mat-form-field",53);J(3,"button",25);N("click",function(){u(b);var d=P().$implicit,e=P(3).$implicit,f=P(2);return w(ns(f,e,d))});K()()}if(a&2){a=P().$implicit;var c=P(5);x();G(c.chipUnderEdit===a?-1:1);x();G(c.chipUnderEdit===a?2:-1)}},LHb=function(a,b){a&1&&F(0,KHb,4,2,"div",52);a&2&&(a=b.$implicit,b=P(5),G(b.chipUnderEdit===a||a.value?0:-1))},MHb=function(a){if(a&1){var b=t();J(0,"button",29);N("click",function(){u(b);var c=P(3).$implicit,d=P(2);return w(os(d,
c))});R(1);K()}a&2&&(a=P(3).$implicit,x(),T(" + ",a.type=="OR"||a.type=="NAND"?"OR":"AND"," "))},NHb=function(a){a&1&&(J(0,"div",19),Pg(1,LHb,1,1,null,null,Og),F(3,MHb,2,1,"button",21),K());a&2&&(a=P(2).$implicit,x(),Qg(a.values),x(2),G(a.type?3:-1))},OHb=function(a){a&1&&(J(0,"div",14),F(1,MGb,4,1,"div",19),F(2,OGb,3,0,"div",20),F(3,VGb,5,4,"div"),F(4,YGb,4,1,"div",19),F(5,eHb,4,1,"div",19),F(6,lHb,4,1,"div",19),F(7,uHb,2,1,"div",19),F(8,zHb,4,3,"div"),F(9,GHb,4,1,"div",19),F(10,NHb,4,1,"div",19),
K());if(a&2){a=P().$implicit;var b=P(2);x();G(a.getWidgetType()==="repeated-enum"?1:-1);x();G(a.getWidgetType()==="enum"?2:-1);x();G(a instanceof qs?3:-1);x();G(a.getWidgetType()=="text"?4:-1);x();G(a.getWidgetType()=="component"?5:-1);x();G(b.isTrackerSearchEnabled&&a.getWidgetType()=="tracker"?6:-1);x();G(a.getWidgetType()=="team"?7:-1);x();G(a.getWidgetType()==="date"?8:-1);x();G(a.getWidgetType()=="hotlist"?9:-1);x();G(a.getWidgetType()=="savedsearch"?10:-1)}},PHb=function(a){a&1&&(J(0,"div",
15),R(1),K());if(a&2){a=P().$implicit;var b=P(2);x();T(" ",b.getCustomFieldName(a)," ")}},SHb=function(a){if(a&1){var b=t();J(0,"div",16)(1,"b-custom-field-picker",56);N("fieldSelected",function(c){u(b);var d=P().$index,e=P(2),f=c.customFieldId;e.customFields[f]=c;e.expressions[d]=QHb(e.searchRuleFactory,"CUSTOM_FIELD",e.customFields[f]);RHb(e,e.expressions[d]);return w()});K()()}},UHb=function(a,b){if(a&1){var c=t();J(0,"div",5)(1,"div",12)(2,"mat-form-field",4)(3,"mat-select",13);Ah("ngModelChange",
function(d){var e=u(c).$implicit;zh(e.label.field,d)||(e.label.field=d);return w(d)});N("selectionChange",function(){var d=u(c).$index,e=P(2);return w(THb(e,d))});Pg(4,DGb,2,2,"mat-option",11,Og);K()();F(6,FGb,4,1,"mat-form-field",4);K();F(7,OHb,11,10,"div",14);F(8,PHb,2,1,"div",15);F(9,SHb,2,0,"div",16);J(10,"button",17);N("click",function(){var d=u(c).$implicit,e=P(2);return w(e.removeExpression(d))});K()()}a&2&&(a=b.$implicit,b=P(2),x(3),yh("ngModel",a.label.field),x(),Qg(b.availableLabels),x(2),
G(a.isPendingCustomField?-1:6),x(),G(a.isPendingCustomField?-1:7),x(),G(a.label.customFieldId?8:-1),x(),G(a.isPendingCustomField?9:-1))},VHb=function(a,b){if(a&1){var c=t();J(0,"button",57);N("click",function(){var d=u(c).$implicit,e=P(2);e.expressions.push({label:{field:d[0]}});THb(e,e.expressions.length-1);return w()});R(1);K()}a&2&&(a=b.$implicit,x(),T(" ",a[1]," "))},WHb=function(a){a&1&&(J(0,"div",1)(1,"div",2)(2,"span",3),R(3,"Advanced search query builder"),K(),F(4,CGb,5,3,"mat-form-field",
4),K(),Pg(5,UHb,11,5,"div",5,Ng),J(7,"div",6)(8,"button",7),R(9),K(),J(10,"mat-menu",8,0),Pg(12,VHb,2,1,"button",9,Og),K()()());if(a&2){a=Q(11);var b=P();x(4);G(b.expressions.length?4:-1);x();Qg(b.expressions);x(3);I("matMenuTriggerFor",a);x();T(" ",b.expressionType," ... ");x(3);Qg(b.availableLabels)}},YHb=function(a){if(a&1){var b=t();J(0,"button",2);N("click",function(){u(b);var c=P();return w(XHb(c))});R(1);K()}a&2&&(a=P(),x(),T(" ",a.buttonLabel," "))},ZHb=function(a){if(a&1){var b=t();J(0,"button",
3);N("click",function(){u(b);var c=P();return w(XHb(c))});M(1,"mat-icon",4);R(2);K()}a&2&&(a=P(),I("matTooltip","Open release notes"),x(),I("svgIcon",a.alertMode?"release-notes-alert":"release-notes-default"),x(),T(" ",a.buttonLabel," "))},$Hb=function(a){a&1&&M(0,"div",0)},aIb=function(a){a&1&&M(0,"div",1)},bIb=function(a){if(a&1){var b=t();J(0,"button",9);N("click",function(c){u(b);var d=P();return w(d.manageSlos(c))});R(1,"Manage SLOs");K()}},cIb=function(a){a&1&&(J(0,"a",11),R(1,"Early Access "),
M(2,"b-feature-stage-label",12),K())},dIb=function(a){a&1&&M(0,"mat-divider")(1,"b-whats-new-button",13);a&2&&(x(),I("menuMode",!0))},eIb=function(a){a&1&&M(0,"b-whats-new-button",0);a&2&&(a=P(),I("alertMode",a.majorReleaseNotesUpdated))},fIb=function(a){if(a&1){var b=t();J(0,"button",4);N("click",function(){u(b);var c=P();return w(c.openFeedbackDialog())});M(1,"mat-icon",5);K()}},gIb=function(a){if(a&1){var b=t();J(0,"button",5);N("click",function(){u(b);var c=P();return w(c.clickMenu.emit())});
M(1,"mat-icon",6);K()}},jIb=function(a,b){a&1&&(J(0,"output",7),R(1),K());a&2&&(a=b.$implicit,vh(a.color?Hh(3,hIb,a.color):Gh(5,iIb)),x(),wh(a.name))},kIb=function(a){a&1&&(J(0,"span"),R(1," Currently selected hotlist: "),J(2,"strong"),R(3),K()());a&2&&(a=P(3),x(3),wh(a.header.hotlist.name))},lIb=function(a){a&1&&R(0," Showing your subscribed hotlists. Start typing a hotlist name or ID to filter. ")},mIb=function(a){a&1&&F(0,kIb,4,1,"span")(1,lIb,1,0);a&2&&(a=P(2),G(a.header.hotlist?0:1))},nIb=function(a){a&
1&&(J(0,"span"),R(1,"Currently selected saved search: "),J(2,"strong"),R(3),K()());a&2&&(a=P(3),x(3),wh(a.header.savedSearch.name))},oIb=function(a){a&1&&R(0," Showing your saved searches. Start typing a saved search name or ID to filter. ")},pIb=function(a){a&1&&F(0,nIb,4,1,"span")(1,oIb,1,0);a&2&&(a=P(2),G(a.header.savedSearch?0:1))},qIb=function(a){a&1&&(J(0,"span"),R(1," and "),J(2,"strong"),R(3,"subcomponents"),K()())},rIb=function(a){a&1&&(J(0,"span"),R(1," Currently selected component: "),
J(2,"strong",3),R(3),K(),M(4,"b-component-access-level-indicator",4)(5,"b-tracker-chip-smart",5),F(6,qIb,4,0,"span"),K());if(a&2){a=P(3);x(3);var b=a.header.component,c=rs(a.trackerHelpers,b.componentPathInfo);wh(c&&c.componentPathName?c.componentPathName.join(" > "):b.name);x();I("accessLevel",a.header.component.accessLimit==null?null:a.header.component.accessLimit.accessLevel);x();I("trackerId",a.header.component.trackerId);x();G(a.header.includeChildren?6:-1)}},sIb=function(a){a&1&&R(0," Start typing a component name or ID to see auto-complete suggestions. ")},
tIb=function(a){a&1&&F(0,rIb,7,4,"span")(1,sIb,1,0);a&2&&(a=P(2),G(a.header.component?0:1))},uIb=function(a){a&1&&(J(0,"span"),R(1," Currently selected tracker: "),J(2,"strong"),R(3),K()());a&2&&(a=P(3),x(3),wh(a.header.tracker.name))},vIb=function(a){a&1&&R(0," Start typing a tracker name or ID to see auto-complete suggestions. ")},wIb=function(a){a&1&&F(0,uIb,4,1,"span")(1,vIb,1,0);a&2&&(a=P(2),G(a.header.tracker?0:1))},xIb=function(a){a&1&&(J(0,"span"),R(1," and "),J(2,"strong"),R(3,"subteams"),
K()())},yIb=function(a){a&1&&(J(0,"span"),R(1," Currently selected team: "),J(2,"strong"),R(3),K(),F(4,xIb,4,0,"span"),K());a&2&&(a=P(3),x(3),wh(a.header.team.name),x(),G(a.header.includeChildren?4:-1))},zIb=function(a){a&1&&R(0," Start typing a team name or ID to see auto-complete suggestions. ")},AIb=function(a){a&1&&F(0,yIb,5,2,"span")(1,zIb,1,0);a&2&&(a=P(2),G(a.header.team?0:1))},BIb=function(a,b){a&1&&(J(0,"span"),R(1," Currently selected custom field: "),J(2,"strong"),R(3),K(),R(4," of type "),
J(5,"strong"),R(6),U(7,"lowercase"),K(),R(8,". "),K());a&2&&(x(3),wh(b.name),x(3),wh(V(7,2,b.type)))},CIb=function(a){a&1&&R(0," Start typing a custom field name or ID to see auto-complete suggestions. ")},DIb=function(a){a&1&&F(0,BIb,9,4,"span")(1,CIb,1,0);if(a&2){var b;a=P(2);G((b=a.header.customField)?0:1,b)}},EIb=function(a){a&1&&(J(0,"div",0),F(1,mIb,2,1),F(2,pIb,2,1),F(3,tIb,2,1),F(4,wIb,2,1),F(5,AIb,2,1),F(6,DIb,2,1),K());a&2&&(a=P(),x(),G(a.header.type==="hotlist"?1:-1),x(),G(a.header.type===
"savedsearch"?2:-1),x(),G(a.header.type==="component"?3:-1),x(),G(a.header.type==="tracker"?4:-1),x(),G(a.header.type==="team"?5:-1),x(),G(a.header.type==="customfield"?6:-1))},FIb=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P().$implicit,x(),xh(" ",a.id,": ",a.name," "))},GIb=function(a){a&1&&(J(0,"span"),R(1),J(2,"span"),R(3),K()());a&2&&(a=P().$implicit,x(),T(" Hotlist ",a.id,": "),x(2),wh(a.name))},HIb=function(a){a&1&&(J(0,"span"),R(1),J(2,"span"),R(3),K(),M(4,"br"),J(5,"span",7),R(6),K()());
a&2&&(a=P().$implicit,x(),T(" Saved search ",a.id,": "),x(2),wh(a.name),x(3),wh(a.query))},IIb=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P().$implicit,x(),T(" ",a.name," "))},JIb=function(a){a&1&&(J(0,"span"),R(1," > "),K())},LIb=function(a,b){if(a&1){var c=t();J(0,"span",9);N("click",function(e){var f=u(c).$implicit;KIb(f);return w(e.stopPropagation())});R(1);K();F(2,JIb,2,0,"span")}if(a&2){a=b.$implicit;var d=b.$index;b=b.$count;I("title",Eh("",a.id,": ",a.name));x();wh(a.name);x();G(d!==
b-1?2:-1)}},MIb=function(a){a&1&&(J(0,"span"),R(1," Component "),J(2,"strong",3),R(3),K(),M(4,"b-component-access-level-indicator",4)(5,"b-tracker-chip-smart",5),J(6,"span",8),Pg(7,LIb,3,5,null,null,Og),K()());a&2&&(a=P().$implicit,x(3),wh(a.id),x(),I("accessLevel",a.accessLimit==null?null:a.accessLimit.accessLevel),x(),I("trackerId",a.trackerId),x(2),Qg(a.componentPath))},NIb=function(a){a&1&&(J(0,"span"),R(1),J(2,"span"),R(3),K()());a&2&&(a=P().$implicit,x(),T(" Tracker ",a.id,": "),x(2),wh(a.name))},
OIb=function(a){a&1&&(J(0,"span"),R(1," > "),K())},PIb=function(a,b){if(a&1){var c=t();J(0,"span",9);N("click",function(e){var f=u(c).$implicit;KIb(f);return w(e.stopPropagation())});R(1);K();F(2,OIb,2,0,"span")}if(a&2){a=b.$implicit;var d=b.$index;b=b.$count;I("title",Eh("",a.id,": ",a.name));x();wh(a.name);x();G(d!==b-1?2:-1)}},QIb=function(a){a&1&&(J(0,"span"),R(1," Team "),J(2,"strong"),R(3),K(),J(4,"span",8),Pg(5,PIb,3,5,null,null,Og),K()());a&2&&(a=P().$implicit,x(3),wh(a.id),x(2),Qg(a.teamPath))},
RIb=function(a){a&1&&(J(0,"span"),R(1," > "),K())},SIb=function(a,b){a&1&&(J(0,"span"),R(1),K(),F(2,RIb,2,0,"span"));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;x();wh(a);x();G(c!==b-1?2:-1)}},TIb=function(a){a&1&&(J(0,"span"),R(1),J(2,"span"),R(3),K(),J(4,"span",10),Pg(5,SIb,3,2,null,null,Og),K()());a&2&&(a=P().$implicit,x(),T(" Custom Field ",a.id,": "),x(2),wh(a.name),x(2),Qg(a.componentPathNames))},UIb=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P().$implicit,x(),xh(" ",a.label,": ",a.name,
" "))},WIb=function(a,b){if(a&1){var c=t();J(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&&VIb(e),f.itemSelected.emit(e));return w()});F(1,FIb,2,2,"span");F(2,GIb,4,2,"span");F(3,HIb,7,3,"span");F(4,IIb,2,1,"span");F(5,MIb,9,3,"span");F(6,NIb,4,2,"span");F(7,QIb,7,1,"span");F(8,TIb,7,2,"span");F(9,UIb,2,2,"span");K()}if(a&2){a=b.$implicit;b=b.$index;var d=P();Lg("id",Dh("b-app-search-option-",b));
I("index",b)("isActive",b>=0&&b<d.items.length?b===d.activeItemIndex:!1);x();G(a.completionCfg.type==="issue"?1:-1);x();G(a.completionCfg.type==="hotlist"?2:-1);x();G(a.completionCfg.type==="savedsearch"?3:-1);x();G(a.completionCfg.type==="atom"?4:-1);x();G(a.completionCfg.type==="component"?5:-1);x();G(a.completionCfg.type==="tracker"?6:-1);x();G(a.completionCfg.type==="team"?7:-1);x();G(a.completionCfg.type==="customField"?8:-1);x();G(d.SPECIAL_ITEM_TYPES.includes(a.completionCfg.type)?-1:9)}},
YIb=function(a){if(a&1){var b=t();J(0,"div",21)(1,"input",22,2);Ah("ngModelChange",function(c){u(b);var d=P();zh(d.searchName,c)||(d.searchName=c);return w(c)});N("keydown.Tab",function(){u(b);var c=P();return w(XIb(c))})("keydown.enter",function(){u(b);var c=P();return w(c.saveSearch())});K();J(3,"button",18);N("click",function(){u(b);var c=P();return w(c.saveSearch())});R(4," Save ");K()()}a&2&&(a=P(),x(),yh("ngModel",a.searchName),x(2),I("disabled",!a.searchName))},ZIb=function(a){a&1&&(J(0,"span",
9),R(1),K());a&2&&(a=P(),uh("muted",a.disabled),x(),wh(a.cardTitle))},$Ib=function(a){a&1&&(J(0,"mat-select-trigger"),M(1,"mat-icon",15),J(2,"span"),R(3),K()());a&2&&(a=P(3),x(),I("svgIcon",a.selectedOption.icon),x(2),wh(a.selectedOption.displayText))},aJb=function(a){a&1&&M(0,"mat-icon",15);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},bJb=function(a,b){a&1&&(J(0,"mat-option",14),F(1,aJb,1,1,"mat-icon",15),R(2),K());a&2&&(a=b.$implicit,I("value",a),x(),G(a.icon?1:-1),x(),T(" ",a.displayText," "))},
cJb=function(a){if(a&1){var b=t();J(0,"mat-form-field",12)(1,"mat-label");R(2," Choose type... ");K();J(3,"mat-select",13);Ah("valueChange",function(c){u(b);var d=P(2);zh(d.selectedOption,c)||(d.selectedOption=c);return w(c)});N("selectionChange",function(c){u(b);P(2).dropdownSelectionChanged.emit(c.value);return w()});F(4,$Ib,4,2,"mat-select-trigger");Pg(5,bJb,3,3,"mat-option",14,Og);K()()}a&2&&(a=P(2),x(3),I("disabled",a.disabled),yh("value",a.selectedOption),x(),G(a.selectedOption&&a.selectedOption.icon?
4:-1),x(),Qg(a.dropdownOptions))},dJb=function(a){if(a&1){var b=t();J(0,"mat-form-field",10)(1,"input",11);N("ngModelChange",function(c){u(b);var d=P();return w(d.cardTitleChange.emit(c))});K()();F(2,cJb,7,3,"mat-form-field",12)}a&2&&(a=P(),x(),uh("muted",a.disabled||!a.selected),I("placeholder",a.placeholderForCardTitle)("disabled",a.disabled||!a.selected)("ngModel",a.cardTitle),Lg("aria-label",a.ariaLabelForCardTitle),x(),G(a.dropdownOptions.length?2:-1))},eJb=function(a){a&1&&M(0,"mat-icon",5)},
fJb=function(a){a&1&&M(0,"mat-icon",6)},gJb=function(a){a&1&&(J(0,"div",7),dh(1),K())},hJb=function(a){a&1&&(J(0,"button",18),M(1,"mat-icon",22),K());a&2&&(a=P(2),I("disabled",a.disabled))},iJb=function(a){a&1&&M(0,"mat-divider",19);a&2&&I("vertical",!0)},jJb=function(a){a&1&&(J(0,"mat-slide-toggle",20),R(1," Required "),K());a&2&&(a=P(2),I("disabled",a.disabled))},kJb=function(a){if(a&1){var b=t();J(0,"mat-slide-toggle",23);N("change",function(c){u(b);var d=P(2);return w(d.isInheritedChange.emit(c))});
R(1," Inherited ");K()}a&2&&(a=P(2),I("checked",a.isInherited)("disabled",a.inheritedDisabled)("matTooltip",a.inheritedDisabledTooltipText)("matTooltipDisabled",!a.inheritedDisabled))},lJb=function(a){if(a&1){var b=t();J(0,"div",8)(1,"button",16);N("click",function(){u(b);var c=P();return w(c.onSave())});R(2," Save ");K();J(3,"button",17);N("click",function(){u(b);var c=P();return w(c.onCancel())});R(4," Cancel ");K();F(5,hJb,2,1,"button",18);F(6,iJb,1,1,"mat-divider",19);F(7,jJb,2,1,"mat-slide-toggle",
20);F(8,kJb,2,4,"mat-slide-toggle",21);K()}a&2&&(a=P(),x(),I("disabled",a.isSaveButtonDisabled),x(2),I("disabled",a.disabled),x(2),G(a.showDeleteButton?5:-1),x(),G(a.showDeleteButton&&a.showRequiredToggle?6:-1),x(),G(a.showRequiredToggle?7:-1),x(),G(a.showInheritedToggle?8:-1))},mJb=function(a,b){a&1&&(J(0,"mat-option",6),R(1),K());a&2&&(a=b.$implicit,I("value",a),x(),wh(a.name))},nJb=function(a){if(a&1){var b=t();J(0,"mat-form-field")(1,"mat-select",5);Ah("valueChange",function(c){u(b);var d=P();
zh(d.selected,c)||(d.selected=c);return w(c)});Pg(2,mJb,2,2,"mat-option",6,Og);K()()}a&2&&(a=P(),x(),yh("value",a.selected),x(),Qg(a.options))},oJb=function(a){a&1&&R(0," All the available shared fields have been activated. ")},pJb=function(a){a&1&&(J(0,"div"),R(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. "),J(2,"a",7),R(3,"Learn more"),K()())},qJb=function(a){return GAa(a.getIt())},rJb=function(a){a&
1&&(J(0,"h3"),R(1),K());a&2&&(a=P(2),x(),T(" Edit Custom Field ",a.editableField.customFieldId," "))},sJb=function(a){a&1&&(J(0,"h3"),R(1," Create Custom Field "),K())},tJb=function(a){a&1&&(J(0,"div",11),R(1),K());a&2&&(a=P(2),x(),T(" ",a.serverError," "))},vJb=function(a,b){a&1&&(J(0,"button",25),R(1),U(2,"enumToHuman"),K());a&2&&(a=b.$implicit,P(),b=Q(33),I("matMenuTriggerFor",b)("matMenuTriggerData",Hh(5,uJb,a)),x(),T(" ",V(2,3,a)," "))},wJb=function(a,b){if(a&1){var c=t();J(0,"button",41);N("click",
function(){var d=u(c).$implicit,e=P().type,f=P(2);return w(f.setType(e,d==="Multiple"))});R(1);K()}a&2&&(a=b.$implicit,x(),T(" ",a," "))},xJb=function(a){a&1&&Pg(0,wJb,2,1,"button",40,Og);a&2&&(a=P(2),Qg(a.secondaryTypes))},zJb=function(a){if(a&1){var b=t();J(0,"td",13)(1,"label",42);R(2," Allowed Values: ");K();J(3,"b-list-field",43);N("valuesChange",function(c){u(b);var d=P(2);return w(yJb(d,c.values))});K()()}a&2&&(a=P(2),x(3),I("defaultLineCount",3)("type",a.ListFieldType.REPEATED_TEXT)("values",
a.editableField.allowedValue||null)("listFieldDisabled",a.isSaving)("preventDuplicates",!0)("isDefaultOrAllowedValues",!0)("truncate",!0))},AJb=function(a){a&1&&(J(0,"label",27),R(1," Default Value: "),K())},DJb=function(a,b){if(a&1){var c=t();J(0,"b-edit-field",44);N("valueChange",function(d){u(c);var e=P(2);BJb(e,d);return w()});K()}a&2&&(a=P(2),I("name","Default")("type",b)("tooltip","Set default value")("value",CJb(a))("choices",a.allowedValues)("showEnumTitle",!0)("disabled",a.isSaving)("truncate",
!0)("clearable",!0))},EJb=function(a){a&1&&(J(0,"label",29),R(1," Default Values: "),K())},FJb=function(a,b){if(a&1){var c=t();J(0,"b-list-field",45);N("valuesChange",function(d){u(c);var e=P(2);BJb(e,d.values);return w()});K()}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))},GJb=function(a,b){if(a&1){var c=t();J(0,"button",46);
N("click",function(){var d=u(c).$implicit,e=P(2);return w(e.setFieldSignificance(d))});R(1);U(2,"enumToHuman");K()}a&2&&(a=b.$implicit,x(),T(" ",V(2,1,a)," "))},HJb=function(a){if(a&1){var b=t();J(0,"div",9);F(1,rJb,2,1,"h3")(2,sJb,2,0,"h3");F(3,tJb,2,1,"div",11);J(4,"form",12)(5,"div",13)(6,"label",14);R(7,"Name:");K();J(8,"input",15);Ah("ngModelChange",function(q){u(b);var v=P();zh(v.editableField.name,q)||(v.editableField.name=q);return w(q)});K()();J(9,"div",13)(10,"label",16);R(11,"Description:");
K();J(12,"textarea",17);Ah("ngModelChange",function(q){u(b);var v=P();zh(v.editableField.description,q)||(v.editableField.description=q);return w(q)});K()();J(13,"table",18)(14,"tr")(15,"td",13)(16,"div",19)(17,"label",20);R(18," Type: ");K();J(19,"onedev-hovercard",null,0)(21,"div",21)(22,"div",22);R(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. ");K()()()();J(24,"button",23);R(25);U(26,"enumToHuman");M(27,
"b-icon",24);K();J(28,"mat-menu",null,1);Pg(30,vJb,3,7,"button",25,Og);K();J(32,"mat-menu",null,2);D(34,xJb,2,0,"ng-template",26);K()();F(35,zJb,4,7,"td",13);J(36,"td",13);F(37,AJb,2,0,"label",27);F(38,DJb,1,9,"b-edit-field",28);F(39,EJb,2,0,"label",29);F(40,FJb,1,8,"b-list-field",30);K();J(41,"td",13)(42,"label",31);R(43," Required: ");K();J(44,"b-edit-field",32);N("valueChange",function(q){u(b);var v=P();return w(v.editableField.required=!!q)});K()();J(45,"td",13)(46,"div",19)(47,"label",33);R(48,
" Field Significance: ");K();J(49,"onedev-hovercard",null,3)(51,"div",34)(52,"div",22);R(53," This affects whether users will receive notifications when changes are made to this field. ");M(54,"br");R(55," See\u00a0 ");J(56,"a",35);R(57,"Email Settings ");K()()()()();J(58,"button",36);R(59);U(60,"enumToHuman");M(61,"b-icon",24);K();J(62,"mat-menu",null,4);Pg(64,GJb,3,3,"button",37,Og);K()()()();J(66,"button",38);N("click",function(){u(b);var q=P();return w(q.save())});R(67," Save ");K();J(68,"button",
39);N("click",function(){u(b);var q=P();return w(q.cancel())});R(69," Cancel ");K()()()}if(a&2){var c,d;a=Q(20);var e=Q(29),f=Q(50),h=Q(63),k=P();x();G(k.editableField.customFieldId?1:2);x(2);G(k.serverError?3:-1);x(5);I("bFocus",k.editableField&&!k.isLoading);yh("ngModel",k.editableField.name);I("disabled",k.isSaving);x(4);yh("ngModel",k.editableField.description);I("disabled",k.isSaving);x(5);I("onedevHovercardTrigger",a);x(7);I("matMenuTriggerFor",e)("disabled",!!k.editableField.customFieldId);
x();T(" ",V(26,25,k.editableField.type)," ");x(5);Qg(k.typeChoices);x(5);G(["REPEATED_ENUM","ENUM"].includes(k.editableField.type)?35:-1);x(2);G(k.isRepeated(k.editableField)?-1:37);x();G((c=k.getSingleEditFieldType(k.editableField))?38:-1,c);x();G(k.isRepeated(k.editableField)?39:-1);x();G((d=k.getListFieldType(k.editableField))?40:-1,d);x(4);I("name","Required")("type",k.FieldType.BOOL)("tooltip","Whether the field is required")("value",k.editableField.required);x(3);I("onedevHovercardTrigger",
f);x(9);I("href",k.documentationLinks.baseDocumentationUrl+"/concepts/settings#email",hf);x(2);I("matMenuTriggerFor",h);x();T(" ",V(60,27,k.editableField.fieldSignificance)," ");x(5);Qg(k.significanceChoices);x(2);I("disabled",!k.hasUnsavedChanges()||!k.editableField.name)}},IJb=function(a){a&1&&(J(0,"div",10),M(1,"b-spinner",47),K());a&2&&(x(),I("large",!0))},JJb=function(a){a&1&&(J(0,"th"),R(1,"Actions"),K())},LJb=function(a){if(a&1){var b=t();J(0,"td",52)(1,"button",53);N("click",function(){u(b);
var c=P().$index,d=P(2);return w(d.editField(c))});R(2,"Edit");K();J(3,"button",53);N("click",function(){u(b);var c=P().$index,d=P(2);return w(KJb(d,c))});R(4,"Delete");K()()}},MJb=function(a,b){a&1&&(J(0,"tr")(1,"td"),R(2),K(),J(3,"td"),R(4),K(),J(5,"td"),R(6),U(7,"enumToHuman"),K(),J(8,"td"),R(9),K(),J(10,"td"),R(11),U(12,"yesNo"),K(),J(13,"td"),M(14,"b-custom-field-value-display",51),K(),J(15,"td"),R(16),U(17,"arrayToHuman"),K(),J(18,"td"),R(19),U(20,"enumToHuman"),K(),F(21,LJb,5,0,"td",52),K());
a&2&&(a=b.$implicit,b=P(2),vh(a.enabledOnIssues?"enabled-field":"disabled-field"),x(2),wh(a.name),x(2),wh(a.customFieldId),x(2),wh(V(7,11,a.type)),x(3),wh(a.description),x(2),wh(V(12,13,a.required)),x(3),I("customFieldValue",a.typedDefaultValue),x(2),wh(V(17,15,a.allowedValue)),x(3),wh(V(20,17,a.fieldSignificance)),x(2),G(b.editMode?21:-1))},NJb=function(a){a&1&&(J(0,"tr")(1,"td",54),R(2," There are no custom fields defined on this component. "),K()())},OJb=function(a){a&1&&(J(0,"tr")(1,"td",55)(2,
"strong"),R(3,"Fields inherited from parent components"),K()()())},PJb=function(a){a&1&&(Wg(0),M(1,"b-component-card",61,6),Xg());if(a&2){a=Q(2);var b=P().$implicit;x();I("onedevIsHovercardReady",a.init)("componentId",b.componentId.toString())}},RJb=function(a){if(a&1){var b=t();J(0,"b-field-state-menu",62,7);N("fieldStateChange",function(d){u(b);var e=P(),f=e.$implicit;e=e.$index;var h=P(3);return w(h.updateCustomFieldState(f,d,e))});K()}if(a&2){a=P().$implicit;var c=P(3);I("fieldName",a.name)("fieldState",
a.stateOnIssues)("enabledOnParent",QJb(c,a.customFieldId))("disabled",!c.editMode)("matTooltip",c.msgFieldStateTip);Lg("aria-label",c.msgFieldStateTip)}},SJb=function(a,b){if(a&1){var c=t();J(0,"tr")(1,"td");R(2);K();J(3,"td");R(4);K();J(5,"td");R(6);U(7,"enumToHuman");K();J(8,"td");R(9);K();J(10,"td");R(11);U(12,"yesNo");K();J(13,"td");M(14,"b-custom-field-value-display",51);K();J(15,"td");R(16);U(17,"arrayToHuman");K();J(18,"td");R(19);U(20,"enumToHuman");K();J(21,"td",52)(22,"div",56)(23,"div",
57);R(24,"Inherited From");K();J(25,"a",58);N("click",function(){u(c);var e=P(3);return w(e.trackClick("parentCustomFields"))});R(26);K();J(27,"onedev-hovercard",null,5);D(29,PJb,3,2,"ng-container",59);K()();F(30,RJb,2,6,"b-field-state-menu",60);K()()}if(a&2){a=b.$implicit;b=Q(28);var d=P(3);vh(a.enabledOnIssues?"enabled-field":"disabled-field");x(2);wh(a.name);x(2);wh(a.customFieldId);x(2);wh(V(7,14,a.type));x(3);wh(a.description);x(2);wh(V(12,16,a.required));x(3);I("customFieldValue",a.typedDefaultValue);
x(2);wh(V(17,18,a.allowedValue));x(3);wh(V(20,20,a.fieldSignificance));x(6);I("onedevHovercardTrigger",b)("href",d.ROUTES.editComponentFields.makeHref(a.componentId),hf);x();T(" ",d.componentIdsToNames[a.componentId]," ");x(4);G(d.editMode&&!d.isFieldConfigurationV2Enabled?30:-1)}},TJb=function(a){a&1&&Pg(0,SJb,31,22,"tr",49,Og);a&2&&(a=P(2),Qg(a.inheritedCustomFields))},UJb=function(a){a&1&&(J(0,"tr")(1,"td",55)(2,"strong"),R(3,"Shared fields"),K()()())},WJb=function(a){if(a&1){var b=t();J(0,"div",
52)(1,"button",64);N("click",function(){u(b);var d=P().$implicit,e=P(3);return w(VJb(e,d.customFieldId))});R(2," Deactivate ");K()()}if(a&2){a=P().$implicit;var c=P(3);x();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.":"")}},XJb=function(a,b){a&1&&(J(0,"tr",
63)(1,"td"),R(2),K(),J(3,"td"),R(4),K(),J(5,"td"),R(6),U(7,"enumToHuman"),K(),J(8,"td"),R(9),K(),J(10,"td"),R(11),U(12,"yesNo"),K(),J(13,"td"),M(14,"b-custom-field-value-display",51),K(),J(15,"td"),R(16),U(17,"arrayToHuman"),K(),J(18,"td"),R(19),U(20,"enumToHuman"),K(),J(21,"td"),F(22,WJb,3,2,"div",52),K()());a&2&&(a=b.$implicit,b=P(3),x(2),wh(a.name),x(2),wh(a.customFieldId),x(2),wh(V(7,9,a.type)),x(3),wh(a.description),x(2),wh(V(12,11,a.required)),x(3),I("customFieldValue",a.typedDefaultValue),
x(2),wh(V(17,13,a.allowedValue)),x(3),wh(V(20,15,a.fieldSignificance)),x(3),G(b.editMode?22:-1))},YJb=function(a){a&1&&Pg(0,XJb,23,17,"tr",63,Og);a&2&&(a=P(2),Qg(a.sharedFields))},ZJb=function(a){a&1&&(J(0,"tfoot")(1,"tr")(2,"td",55),R(3," Custom fields in this table are sorted alphabetically. To see or modify field ordering, go to the "),J(4,"a",65),R(5,"Field Ordering"),K(),R(6," tab."),M(7,"br"),R(8," Before removing custom fields or adding/changing required state, ensure that no automation depends on them. "),
K()()())},bKb=function(a){if(a&1){var b=t();J(0,"div",50)(1,"button",66);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=hj(c.editableField);c.setType("TEXT");c.allowedValues=[];c.serverError=null;return w()});R(2," Add a Custom Field ");K();J(3,"button",67);
N("click",function(){u(b);var c=P(2);return w($Jb(c))});R(4," Activate a Shared Field ");K()()}a&2&&(a=P(2),x(3),I("disabled",aKb(a).length==0))},cKb=function(a){a&1&&(J(0,"div")(1,"table",48)(2,"tr")(3,"th"),R(4,"Name"),K(),J(5,"th"),R(6,"ID"),K(),J(7,"th"),R(8,"Type"),K(),J(9,"th"),R(10,"Description"),K(),J(11,"th"),R(12,"Required?"),K(),J(13,"th"),R(14,"Default Value"),K(),J(15,"th"),R(16,"Allowed Values"),K(),J(17,"th"),R(18,"Field Significance"),K(),F(19,JJb,2,0,"th"),K(),Pg(20,MJb,22,19,"tr",
49,Og),F(22,NJb,3,0,"tr"),F(23,OJb,4,0,"tr"),F(24,TJb,2,0),F(25,UJb,4,0,"tr"),F(26,YJb,2,0),F(27,ZJb,9,0,"tfoot"),K(),F(28,bKb,5,1,"div",50),K());a&2&&(a=P(),x(19),G(a.editMode?19:-1),x(),Qg(a.customFields),x(2),G(a.customFields.length?-1:22),x(),G(a.inheritedCustomFields.length?23:-1),x(),G(a.inheritedCustomFields.length?24:-1),x(),G(a.sharedFields.length?25:-1),x(),G(a.sharedFields.length?26:-1),x(),G(a.customFields.length?27:-1),x(),G(a.editMode?28:-1))},dKb=function(a){if(a&1){var b=t();J(0,"button",
17);N("click",function(){u(b);var c=P().$index,d=P();return w(d.removeAtIndex.emit(c))});M(1,"mat-icon",18);K()}a&2&&(a=P().$implicit,Lg("aria-label","Delete row "+a.label))},eKb=function(a,b){if(a&1){var c=t();J(0,"div",9)(1,"div",11);M(2,"mat-icon",12);J(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 w()});K()()();J(7,"div",3)(8,"mat-form-field",13)(9,"input",15,1);N("change",
function(d){var e=u(c).$index,f=P();return w(f.valueChange(d,e))});K()()();F(11,dKb,2,1,"button",16);K()()}a&2&&(a=b.$implicit,b=P(),x(4),I("appearance","outline"),x(),uh("muted",b.disabled),I("value",a.label)("placeholder",a.label==null?"Dropdown value":"")("disabled",b.disabled),x(3),I("appearance","outline"),x(),uh("muted",b.disabled),I("value",a.value)("placeholder",a.value==null?"Average days":"")("disabled",b.disabled),x(2),G(b.disabled?-1:11))},fKb=function(a){if(a&1){var b=t();J(0,"button",
19);N("click",function(){u(b);var c=P();return w(c.addRow.emit())});R(1," Add row ");K()}},gKb=function(a){a&1&&Yg(0)},hKb=function(a){a&1&&D(0,gKb,1,0,"ng-container",5);a&2&&(P(),a=Q(7),I("ngTemplateOutlet",a))},iKb=function(a){if(a&1){var b=t();J(0,"b-numeric-config",6);Ah("valueChange",function(c){u(b);var d=P();zh(d.numericSpecMultiplier,c)||(d.numericSpecMultiplier=c);return w(c)});K()}a&2&&(a=P(),I("disabled",a.disabled),yh("value",a.numericSpecMultiplier))},jKb=function(){},kKb=function(a){if(a&
1){var b=t();J(0,"div",4)(1,"label",7);R(2,"Aggregation Rule");K();J(3,"a",8);M(4,"mat-icon",9);K();M(5,"br");J(6,"mat-form-field",10)(7,"mat-select",11);Ah("valueChange",function(c){u(b);var d=P();zh(d.selectedAggregationRule,c)||(d.selectedAggregationRule=c);return w(c)});J(8,"mat-select-trigger");R(9);U(10,"aggregationRuleText");K();J(11,"mat-option",12)(12,"div",13);R(13);U(14,"aggregationRuleText");K();J(15,"div",14);R(16,"All parents and children are added to the total");K()();J(17,"mat-option",
12)(18,"div",13);R(19);U(20,"aggregationRuleText");K();J(21,"div",14);R(22,"Take the assigned estimate if larger than total of all immediate children");K()()()()()}a&2&&(a=P(),x(7),yh("value",a.selectedAggregationRule),I("disabled",a.disabled),x(2),T(" ",V(10,7,a.selectedAggregationRule)," "),x(2),I("value",a.aggregationRules.SUM),x(2),wh(V(14,9,a.aggregationRules.SUM)),x(4),I("value",a.aggregationRules.MAX),x(2),wh(V(20,11,a.aggregationRules.MAX)))},lKb=function(a){if(a&1){var b=t();J(0,"b-config-grid",
15);Ah("optionsChange",function(c){u(b);var d=P();zh(d.enumSpecOptions,c)||(d.enumSpecOptions=c);return w(c)});N("addRow",function(){u(b);var c=P();return w(c.addRow())})("removeAtIndex",function(c){u(b);P().enumSpecOptions.splice(c,1);return w()});K()}a&2&&(a=P(),yh("options",a.enumSpecOptions),I("disabled",a.disabled||a.inherit))},mKb=function(a){a&1&&(J(0,"div",4),M(1,"b-team-warning",5),K());a&2&&(a=P(),x(),I("warningType",a)("messageOnly",!0))},nKb=function(a,b){a&1&&F(0,mKb,2,2,"div",4);a&2&&
(a=P(),G(!a.isAdmin||b!=="MISSING"&&b!=="DELETED"?-1:0))},oKb=function(a){if(a&1){var b=t();J(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 w()});R(2," Override the inherited team ");K()()}a&2&&(a=P(),x(),I("disabled",!a.isAdmin)("checked",!a.inherit))},qKb=function(a){if(a&1){var b=t();J(0,
"a",8);N("click",function(){u(b);P(2);Fo("component","navigate","to-internal-team-page");return w()});M(1,"mat-icon",9);K()}a&2&&(a=P(2),I("routerLink",pKb(a)?"/teams/"+a.model.id+"/edit":null)("target",a.anchorTarget))},rKb=function(a){a&1&&F(0,qKb,2,2,"a",7);a&2&&(a=P(),G(pKb(a)?0:-1))},sKb=function(a){if(a&1){var b=t();J(0,"a",11);N("click",function(){u(b);var c=P(2);Fo("component","linkout-moma","team",Number(c.model.id));return w()});M(1,"mat-icon",9);K()}a&2&&(a=P(2),Lg("href",a.getMomaTeamLink(),
hf))},tKb=function(a){a&1&&F(0,sKb,2,1,"a",10);a&2&&(a=P(),G(pKb(a)?0:-1))},uKb=function(a){a&1&&(J(0,"th",14),R(1," Order"),K())},vKb=function(a,b){a&1&&(J(0,"td",15),R(1),K());a&2&&(a=b.index,x(),T(" ",a+1," "))},wKb=function(a){a&1&&(J(0,"th",14),R(1," Name"),K())},xKb=function(a,b){a&1&&(J(0,"td",15),R(1),K());a&2&&(a=b.$implicit,x(),T(" ",a.name," "))},yKb=function(a){a&1&&(J(0,"th",14),R(1," Type"),K())},zKb=function(a,b){a&1&&(J(0,"td",15),R(1),U(2,"toCustomFieldTypeDisplayValue"),K());a&2&&
(a=b.$implicit,x(),T(" ",V(2,1,a.type)," "))},AKb=function(a){a&1&&(J(0,"th",14),R(1," Required"),K())},BKb=function(a,b){a&1&&(J(0,"td",15),R(1),K());a&2&&(a=b.$implicit,x(),T(" ",a.required?"Yes":"No"," "))},CKb=function(a){a&1&&(J(0,"th",14),R(1," ID"),K())},DKb=function(a,b){a&1&&(J(0,"td",15),R(1),K());a&2&&(a=b.$implicit,x(),T(" ",a.customFieldId," "))},EKb=function(a){a&1&&M(0,"tr",16)},FKb=function(a){a&1&&M(0,"tr",17)},GKb=function(a){a&1&&(J(0,"div",12),R(1," There are no custom fields defined on this component. "),
K())},JKb=function(a){if(a&1){var b=t();J(0,"div",13)(1,"div")(2,"button",18);N("click",function(){u(b);var c=P();return w(HKb(c))});R(3," Reorder fields ");K();J(4,"button",18);N("click",function(){u(b);var c=P();return w(IKb(c))});R(5," Reset ordering ");K()()()}a&2&&(a=P(),x(2),I("disabled",a.fields.length===0),x(2),I("disabled",a.fieldOrdering!=="CUSTOMIZED"))},KKb=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P(),x(),a=a.lineNumbers.length,T(" (",a+(a==1?" TODO":" TODOs"),") "))},MKb=function(a,
b){if(a&1){var c=t();J(0,"li",3)(1,"a",4);N("click",function(){u(c);var d=P(2);return w(d.trackClick("lineNumber"))});R(2);K()()}a&2&&(a=b.$implicit,b=P(2),x(),I("href",LKb(b,a),hf),x(),wh(a))},NKb=function(a){a&1&&(J(0,"span"),R(1," ("),J(2,"ul",2),Pg(3,MKb,3,2,"li",3,Og),K(),R(5,") "),K());a&2&&(a=P(),x(3),Qg(a.lineNumbers))},OKb=function(a,b){a&1&&(J(0,"button",6),M(1,"mat-icon",7),K(),J(2,"onedev-hovercard",null,0)(4,"div",8)(5,"div",9)(6,"span",10),R(7),M(8,"br")(9,"br"),R(10),K()()()());if(a&
2){a=Q(3);var c=P();I("onedevHovercardTrigger",a)("onedevHovercardActive",!0)("onedevHovercardConfig",c.CATEGORY_INFO_HOVERCARD_CONFIG);x(7);T(" ",b.displayName," ");x(3);T(" ",b.description," ")}},PKb=function(a){a&1&&M(0,"mat-icon",12)},QKb=function(a){a&1&&M(0,"mat-icon",13)},RKb=function(a){a&1&&M(0,"mat-icon",15)},SKb=function(a){a&1&&M(0,"mat-icon",16)},WKb=function(a,b){if(a&1){var c=t();J(0,"button",11);N("click",function(){u(c);var d=P();return w(TKb(d))});F(1,PKb,1,0,"mat-icon",12)(2,QKb,
1,0,"mat-icon",13);K();J(3,"button",14);N("click",function(){u(c);var d=P();return w(UKb(d))});F(4,RKb,1,0,"mat-icon",15)(5,SKb,1,0,"mat-icon",16);K();J(6,"a",17)(7,"button",18);M(8,"mat-icon",19);K()()}a&2&&(a=P(),I("disabled",a.hasFeedbackBeenGiven(b)),x(),G(VKb(a.insightsActionsService,b,a.enrichment.category).hasThumbsUpped?1:2),x(2),I("disabled",a.hasFeedbackBeenGiven(b)),x(),G(VKb(a.insightsActionsService,b,a.enrichment.category).hasThumbsDowned?4:5))},XKb=function(a){a&1&&M(0,"b-actions-menu",
5);a&2&&(P(),a=bh(8),I("menuItems",a))},YKb=function(a){a&1&&(J(0,"section",1)(1,"div",2),M(2,"img",3),J(3,"p",4),R(4," This issue has no insights "),K(),J(5,"p",5),R(6," Automated tools can provide insights with detailed information about an issue. No insights were found for this issue. "),K()()());a&2&&(a=P(),x(2),I("src",a.ROBOT_SLEEPING,hf))},ZKb=function(a,b){a&1&&M(0,"b-formatted-comment-presenter",11);a&2&&I("formattedComment",b)},$Kb=function(a,b){if(a&1){var c=t();J(0,"mat-expansion-panel",
10,0);N("opened",function(){u(c);var e=Q(1),f=P().$implicit,h=P(2);return w(h.onExpand(f,e))})("closed",function(){u(c);var e=P().$implicit,f=P(2);f.submitEnrichmentFeedback(e.category,"CLOSE");var h=f.onScreenSubscriptions.get(e.category);h&&(h.unsubscribe(),f.onScreenSubscriptions.delete(e.category));return w()});J(2,"mat-expansion-panel-header")(3,"mat-panel-title");R(4);K()();F(5,ZKb,1,1,"b-formatted-comment-presenter",11);J(6,"mat-action-row")(7,"span",12);M(8,"b-formatted-date-time",13);K();
M(9,"insights-actions",14);K()()}if(a&2){var d;a=P().$implicit;I("id",Dh("insight-",a.category))("expanded",!0);x(4);T(" ",b.get(a.category)," ");x();G((d=a.general==null?null:a.general.formattedContent)?5:-1,d);x(3);I("timestamp",a.timestamp);x();I("enrichment",a)}},aLb=function(a){a&1&&(F(0,$Kb,10,7,"mat-expansion-panel",9),U(1,"async"));if(a&2){var b;a=P(2);G((b=V(1,1,a.categoryDisplayNames$))?0:-1,b)}},cLb=function(a){if(a&1){var b=t();J(0,"button",6);N("click",function(){u(b);var c=P().accordion;
c.multi&&c._openCloseAllActions.next(!0);return w()});R(1," Expand all ");K();J(2,"button",7);N("click",function(){u(b);P().accordion.closeAll();return w()});R(3," Collapse all ");K();J(4,"mat-accordion",8);Pg(5,aLb,2,3,null,null,bLb);K()}a&2&&(P(),a=bh(0),x(5),Qg(a))},dLb=function(a){a&1&&(J(0,"a",4),R(1," Create Component "),K());a&2&&(a=P(),I("href",a.createComponentPath,hf))},eLb=function(a){if(a&1){var b=t();J(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(Dq.editComponent.makeHref(d.componentId)));return w()});K()()()}if(a&2){a=P();x(2);var c;I("includeArchived",(c=V(3,4,a.includeArchived$))!=null?c:!1)("placeholder","Choose Component to navigate to that component")("shouldFocus",!0)("isRequired",!1)}},gLb=function(a){if(a&1){var b=t();J(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)&&fLb(e,d,Rf(e.topLevelComponents$));return w()});K()()}if(a&2){a=P();x();var c;I("model",(c=V(2,2,a.includeArchived$))!=null?c:!1)("tooltip",a.includeArchived?"Show archived components.":"Hide archived components.")}},hLb=function(a){a&
1&&(J(0,"div",8),M(1,"b-spinner",13),K())},iLb=function(a){a&1&&(J(0,"p",1),R(1),K());a&2&&(a=P(),x(),wh(a.packageMentionSet.packageName))},jLb=function(a,b){a&1&&(J(0,"li"),M(1,"b-file-mention",2),K());a&2&&(a=b.$implicit,b=P(),x(),I("issueId",b.issueId)("packageName",b.packageMentionSet.packageName)("filename",a.filename)("lineNumbers",a.lineNumber)("changeNumber",a.changeNumber))},kLb=function(a){a&1&&(J(0,"div",4),R(1),K());a&2&&(a=P(),x(),T(" Signed in as ",a.activeSession.getUserEmail()," "))},
lLb=function(a){a&1&&(J(0,"span",3),R(1," Select at least one tracker "),K())},mLb=function(a,b){if(a&1){var c=t();J(0,"div",5)(1,"mat-checkbox",6);N("change",function(d){var e=u(c).$implicit,f=P();return w(f.trackerCheckboxValues[e.trackerId]=d.checked)});R(2);K()()}a&2&&(a=b.$implicit,b=P(),x(),I("checked",b.trackerCheckboxValues[a.trackerId]||!1),x(),T(" ",a.name," "))},nLb=function(a){a&1&&M(0,"b-top-bar-outlet-body")},oLb=function(a){a&1&&(M(0,"b-tracker-search",1),U(1,"async"));a&2&&(a=P(),
I("currentTrackerId",a.currentTracker.trackerId)("availableTrackers",V(1,2,a.availableTrackers$)))},pLb=function(a){a&1&&(J(0,"div",3),M(1,"b-spinner"),J(2,"span"),R(3,"Initializing query builder..."),K()())},qLb=function(a){a&1&&(J(0,"div",6),M(1,"mat-icon",7),J(2,"p"),R(3," The query is too complex to show in the query builder. You can still perform the search or save the search. "),K()())},rLb=function(a){a&1&&(J(0,"div"),R(1," We cannot understand your query because it seems to be incorrect (syntactically). Make sure all parentheses are balanced and all labels have values. "),
K())},sLb=function(a){a&1&&(J(0,"div",4),F(1,qLb,4,0,"div",6),F(2,rLb,2,0,"div"),K());a&2&&(a=P(),x(),G((a.advancedSearchCtrl==null?null:a.advancedSearchCtrl.getState())==="NOT_REPRESENTABLE"?1:-1),x(),G((a.advancedSearchCtrl==null?null:a.advancedSearchCtrl.getState())==="SYNTAX_ERROR"?2:-1))},tLb=function(a){a&1&&(J(0,"div",4),R(1," We encountered a problem while retrieving the interpretation of the search query from the server. Please try again. "),K())},uLb=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))},vLb=function(a){a&1&&(J(0,"span"),R(1),M(2,"span",13),K());a&2&&(a=P(2).$implicit,x(),T(" ",a.diff.oldValue," "))},wLb=function(a){a&1&&(J(0,"span")(1,"label"),R(2),K(),F(3,vLb,3,1,"span"),R(4),K());a&2&&(a=P().$implicit,x(2),T("",a.fieldName,":"),x(),G(a.diff.oldValue?3:-1),x(),T(" ",a.diff.newValue," "))},xLb=function(a,b){a&1&&(J(0,"div")(1,"label"),R(2),K(),
R(3),K());a&2&&(a=b.$implicit,b=P(3).$implicit,x(2),T("-",b.fieldName,":"),x(),T(" ",a," "))},yLb=function(a){a&1&&Pg(0,xLb,4,2,"div",null,Og);a&2&&(a=P(2).$implicit,Qg(a.diff.removed))},zLb=function(a,b){a&1&&(J(0,"div")(1,"label"),R(2),K(),R(3),K());a&2&&(a=b.$implicit,b=P(3).$implicit,x(2),T("+",b.fieldName,":"),x(),T(" ",a," "))},ALb=function(a){a&1&&Pg(0,zLb,4,2,"div",null,Og);a&2&&(a=P(2).$implicit,Qg(a.diff.added))},BLb=function(a){a&1&&(J(0,"div"),F(1,yLb,2,0),F(2,ALb,2,0),K());a&2&&(a=P().$implicit,
x(),G(a.diff.removed?1:-1),x(),G(a.diff.added?2:-1))},CLb=function(a,b){a&1&&(J(0,"div",12),F(1,wLb,5,3,"span"),F(2,BLb,3,2,"div"),K());a&2&&(a=b.$implicit,b=P(2),x(),G(a.diffType==b.DiffType.SINGLE_VALUE?1:-1),x(),G(a.diffType==b.DiffType.COLLECTION?2:-1))},DLb=function(a,b){a&1&&(J(0,"li",2)(1,"div",5),M(2,"b-user-image",6),K(),J(3,"div",7)(4,"h4"),M(5,"b-user-display-name",8),J(6,"span",9),M(7,"b-formatted-date-time",10),K()(),J(8,"div",11),Pg(9,CLb,3,2,"div",12,Og),K()()());a&2&&(a=b.$implicit,
b=P(),x(2),I("email",b.userToDisplay(a.author)),x(3),I("email",b.userToDisplay(a.author)),x(2),I("timestamp",a.timestamp),x(2),Qg(a.diffs))},ELb=function(a){a.stack&&(a.stack=a.stack.replace(/ \[angular\]/g,""))},FLb=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"},GLb=function(a,b){a&1&&(J(0,"mat-option",2),R(1),M(2,"br"),J(3,"span",3),R(4),K()());a&2&&(a=b.$implicit,I("value",a),x(),T(" ",a.title),x(3),wh(a.description))},ILb=function(a,b){a&1&&Yg(0,4);a&2&&(a=b.$implicit,P(),b=Q(3),I("ngTemplateOutlet",b)("ngTemplateOutletContext",Hh(2,HLb,a)))},JLb=function(a){a&1&&Yg(0,4);if(a&2){a=P().question;P();var b=Q(5);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Hh(2,HLb,a))}},KLb=function(a){a&
1&&Yg(0,4);if(a&2){a=P().question;P();var b=Q(7);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Hh(2,HLb,a))}},LLb=function(a){a&1&&Yg(0,4);if(a&2){a=P().question;P();var b=Q(9);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Hh(2,HLb,a))}},MLb=function(a,b){a&1&&F(0,JLb,1,4,"ng-container",4)(1,KLb,1,4,"ng-container",4)(2,LLb,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)}},
OLb=function(a,b){if(a&1){var c=t();M(0,"h4",5);J(1,"mat-form-field",6)(2,"input",7);N("ngModelChange",function(d){var e=u(c).question,f=P();e.response=d;return w(NLb(f))});K()()}a&2&&(a=b.question,I("innerHtml",a.question,gf),x(2),I("ngModel",a.response),Lg("aria-label",a.question))},PLb=function(a,b){if(a&1){var c=t();M(0,"h4",5);J(1,"mat-form-field",8)(2,"textarea",7);N("ngModelChange",function(d){var e=u(c).question,f=P();e.response=d;return w(NLb(f))});R(3,"    ");K()()}a&2&&(a=b.question,I("innerHtml",
a.question,gf),x(2),I("ngModel",a.response),Lg("aria-label",a.question))},RLb=function(a,b){a&1&&(J(0,"mat-option",10),R(1),K());a&2&&(a=b.$implicit,P(2),I("value",a),x(),T(" ",QLb(a)?a.text:a," "))},SLb=function(a){a&1&&Yg(0,4);if(a&2){a=P().question;P();var b=Q(3);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Hh(2,HLb,a.response.child))}},TLb=function(a,b){if(a&1){var c=t();M(0,"h4",5);J(1,"mat-form-field",6)(2,"mat-select",9);N("valueChange",function(d){var e=u(c).question,f=P();e.response=
d;return w(NLb(f))});Pg(3,RLb,2,2,"mat-option",10,Og);K()();F(5,SLb,1,4,"ng-container",4)}a&2&&(a=b.question,P(),I("innerHtml",a.question,gf),x(),Lg("aria-label",a.question),x(),I("value",a.response),x(),Qg(a.options),x(2),G(QLb(a.response)?5:-1))},ULb=function(a){a&1&&dh(0)},WLb=function(a){a&1&&Yg(0,2);a&2&&(a=P(),I("ngTemplateOutlet",a.iconOverrides[a.state])("ngTemplateOutletContext",una(VLb,a.index,a.active,a.optional)))},XLb=function(a){a&1&&(J(0,"span",7),R(1),K());a&2&&(a=P(2),x(),wh(a._getDefaultTextForState(a.state)))},
YLb=function(a){a&1&&(J(0,"span",8),R(1),K());a&2&&(a=P(3),x(),wh(a._intl.completedLabel))},ZLb=function(a){a&1&&(J(0,"span",8),R(1),K());a&2&&(a=P(3),x(),wh(a._intl.editableLabel))},$Lb=function(a){a&1&&(F(0,YLb,2,1,"span",8)(1,ZLb,2,1,"span",8),J(2,"mat-icon",7),R(3),K());a&2&&(a=P(2),G(a.state==="done"?0:a.state==="edit"?1:-1),x(3),wh(a._getDefaultTextForState(a.state)))},aMb=function(a){a&1&&F(0,XLb,2,1,"span",7)(1,$Lb,4,2);a&2&&(a=P(),G(a.state==="number"?0:1))},bMb=function(a,b){a&1&&(J(0,"div",
4),Yg(1,9),K());a&2&&(x(),I("ngTemplateOutlet",b.template))},cMb=function(a){a&1&&(J(0,"div",4),R(1),K());a&2&&(a=P(),x(),wh(a.label))},dMb=function(a){a&1&&(J(0,"div",5),R(1),K());a&2&&(a=P(),x(),wh(a._intl.optionalLabel))},eMb=function(a){a&1&&(J(0,"div",6),R(1),K());a&2&&(a=P(),x(),wh(a.errorMessage))},fMb=function(){},gMb=function(a){a&1&&(dh(0),D(1,fMb,0,0,"ng-template",0));a&2&&(a=P(),x(),I("cdkPortalOutlet",a._portal))},hMb=function(a){a&1&&dh(0)},iMb=function(a){a&1&&M(0,"div",7)},kMb=function(a,
b){a&1&&(Yg(0,6),F(1,iMb,1,0,"div",7));if(a&2){a=b.$implicit;var c=b.$index;b=b.$count;P(2);var d=Q(4);I("ngTemplateOutlet",d)("ngTemplateOutletContext",Hh(3,jMb,a));x();G(c!==b-1?1:-1)}},lMb=function(a,b){a&1&&(J(0,"div",8,1),Yg(2,9),K());if(a&2){a=b.$implicit;b=b.$index;var c=P(2);vh("mat-horizontal-stepper-content-"+c._getAnimationDirection(b));I("id",c._getStepContentId(b));Lg("aria-labelledby",c._getStepLabelId(b))("inert",c.selectedIndex===b?null:"");x(2);I("ngTemplateOutlet",a.content)}},mMb=
function(a){a&1&&(J(0,"div",2)(1,"div",3),Pg(2,kMb,2,5,null,null,Og),K(),J(4,"div",4),Pg(5,lMb,3,6,"div",5,Og),K()());a&2&&(a=P(),x(2),Qg(a.steps),x(3),Qg(a.steps))},nMb=function(a,b){a&1&&(J(0,"div",10),Yg(1,6),J(2,"div",11,1)(4,"div",12)(5,"div",13),Yg(6,9),K()()()());if(a&2){a=b.$implicit;var c=b.$index,d=b.$index;b=b.$count;var e=P(2),f=Q(4);x();I("ngTemplateOutlet",f)("ngTemplateOutletContext",Hh(10,jMb,a));x();uh("mat-stepper-vertical-line",d!==b-1)("mat-vertical-content-container-active",e.selectedIndex===
c);Lg("inert",e.selectedIndex===c?null:"");x(2);I("id",e._getStepContentId(c));Lg("aria-labelledby",e._getStepLabelId(c));x(2);I("ngTemplateOutlet",a.content)}},oMb=function(a){a&1&&Pg(0,nMb,7,12,"div",10,Og);a&2&&(a=P(),Qg(a.steps))},pMb=function(a,b){if(a&1){var c=t();J(0,"mat-step-header",14);N("click",function(){var d=u(c).step;return w(d.select())})("keydown",function(d){u(c);var e=P();return w(e._onKeydown(d))});K()}a&2&&(a=b.step,b=P(),uh("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),Lg("aria-posinset",a.index()+1)("aria-setsize",b.steps.length)("aria-controls",b._getStepContentId(a.index()))("aria-selected",
a.isSelected())("aria-label",a.ariaLabel||null)("aria-labelledby",!a.ariaLabel&&a.ariaLabelledby?a.ariaLabelledby:null)("aria-disabled",a.isNavigable()?null:!0))},qMb=function(a){a&1&&(J(0,"li"),R(1,"I have read "),J(2,"a",57),R(3,"Chrome Security FAQ"),K(),R(4,"."),K(),J(5,"li"),R(6,"I have read "),J(7,"a",58),R(8,"Reporting Security Bugs"),K(),R(9,"."),K(),J(10,"li"),R(11,"I understand reports may be eligible for reward payments under the "),J(12,"a",59),R(13,"Chrome VRP"),K(),R(14,"."),K(),J(15,
"li"),R(16,"I understand issues are normally publicized once a fix has been widely deployed."),K())},sMb=function(a){if(a&1){var b=t();J(0,"h4",5);R(1,"Which of the following best describes the issue that you are reporting?");K();J(2,"wizard-category-select",52);Ah("categoryChange",function(c){u(b);var d=P();zh(d.model.category,c)||(d.model.category=c);return w(c)});K();J(3,"mat-card",53)(4,"mat-card-header");R(5," Ensure quality of issue reports: ");K();J(6,"mat-card-content")(7,"mat-checkbox",54);
Ah("ngModelChange",function(c){u(b);var d=P();zh(d.ackIssueQuality,c)||(d.ackIssueQuality=c);return w(c)});R(8," By checking this box, I'm acknowledging that: ");J(9,"ul")(10,"li");R(11,"I have searched for ");J(12,"a",55);R(13,"existing issues");K();R(14," that already report this problem.");K();F(15,qMb,17,0);K()()()();J(16,"div",36)(17,"button",39);R(18," Next ");M(19,"mat-icon",56);K()()}a&2&&(a=P(),x(2),I("persona",a.model.persona),yh("category",a.model.category),x(5),yh("ngModel",a.ackIssueQuality),
x(5),I("href",a.existingIssuesLink,hf),x(3),G(a.model.persona===a.Persona.VULN_REPORTER?15:-1),x(2),I("disabled",!rMb(a,0)))},uMb=function(a){a&1&&(J(0,"div")(1,"h3"),R(2,"Prefer to file an issue manually?"),K(),J(3,"p"),R(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. "),K(),J(5,"p"),R(6," However, if you are a Chromium contributor and none of the other options apply, you may use the regular issue entry "),
J(7,"a",55),R(8,"form"),K(),R(9,". "),K()());a&2&&(a=P(),x(7),I("href",a.paths.createIssue(Gh(1,tMb)),hf))},vMb=function(a){a&1&&(J(0,"mat-error"),R(1," Summary is required "),K())},wMb=function(a){a&1&&(J(0,"mat-error"),R(1," Steps to reproduce are required "),K())},xMb=function(a){a&1&&(J(0,"mat-error"),R(1," Issue description is required "),K())},yMb=function(a){if(a&1){var b=t();J(0,"wizard-custom-questions",60);N("responses",function(c){u(b);var d=P();return w(d.model.customQuestionResponses=
c)});K()}a&2&&(a=P(),I("category",a.model.category.value))},zMb=function(a){if(a&1){var b=t();J(0,"div",47)(1,"b-recaptcha",61);N("onUpdate",function(c){u(b);var d=P();return w(d.recaptchaResponse=c)});K()()}},AMb=function(){},BMb=function(){},CMb=function(){},DMb=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},FMb=function(a){return a.length?"# Custom Questions\n"+
EMb(a).map(function(b){var c;return"#### "+((c=b.answerPrefix)!=null?c:b.question)+"\n"+b.response}).join("\n\n"):""},EMb=function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,QLb(c.response)?(b.push({type:c.type,question:c.question,response:c.response.text}),b.push.apply(b,p(EMb([c.response.child])))):b.push(c);return b},GMb=function(a){a&1&&(J(0,"a",8),R(1," Create Component "),K())},HMb=function(a){a&1&&(J(0,"p",16),R(1," None found. "),J(2,"a",18),R(3,"Learn More"),K()())},
IMb=function(a){a&1&&(Wg(0),M(1,"b-component-path-card",28,1),Xg());if(a&2){a=Q(2);var b=P().$implicit;x();I("onedevIsHovercardReady",a.init)("componentId",b.componentId)}},JMb=function(a,b){a&1&&(J(0,"li")(1,"a",19)(2,"div",20)(3,"span",21),R(4),M(5,"b-component-access-level-indicator",22)(6,"b-tracker-chip-smart",23),K(),J(7,"p",24),R(8),K()(),J(9,"div",25)(10,"a",26),R(11," Edit "),K(),J(12,"a",26),R(13," Create Issue "),K()()(),J(14,"onedev-hovercard",null,0),D(16,IMb,3,2,"ng-container",27),K()());
if(a&2){a=b.$implicit;b=Q(15);var c=P(2);x();I("routerLinkObj",c.viewIssues(a.componentId));x();I("onedevHovercardTrigger",b);x(2);T(" ",a.name||a.componentId," ");x();I("accessLevel",a.accessLimit==null?null:a.accessLimit.accessLevel)("labelOnlyMode",!0);x();I("trackerId",a.trackerId)("showHovercard",!1);x(2);wh(a.description);x(2);I("routerLinkObj",c.componentSettings(a.componentId));x(2);I("routerLinkObj",c.createIssue(a.componentId))}},KMb=function(a,b){a&1&&(F(0,HMb,4,0,"p",16),J(1,"ol",17),
Pg(2,JMb,17,10,"li",null,Og),K());a&2&&(G(b.length===0?0:-1),x(2),Qg(b))},MMb=function(a){a&1&&(J(0,"a",23),R(1," Learn more "),K());a&2&&(P(),I("href",LMb(),hf))},NMb=function(a){a&1&&(R(0),U(1,"async"));a&2&&(a=P(2),T(" ",V(1,1,a.suggestedTitle$)," "))},OMb=function(a){a&1&&M(0,"b-spinner")},PMb=function(a,b){if(a&1){var c=t();J(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));Kq(f.butterBar,"Thanks for the feedback!",3E3);var h;(h=e.trigger)==null||h.close();return w()});J(1,"span");R(2);K()()}a&2&&(a=b.$implicit,b=P(2),x(2),wh(b.REJECT_REASON_TO_DISPLAY.get(a)))},RMb=function(a){if(a&1){var b=t();J(0,"div",1)(1,"div",2)(2,"div",3)(3,"span",4);R(4,"Suggested title");K();J(5,"div",5)(6,"button",6);N("click",function(){u(b);P().llmSuggestTitleService.suggestTitleRequested.next();return w()});M(7,"mat-icon",7);K();J(8,"button",8);N("click",function(){u(b);
var c=P();return w(c.close())});M(9,"mat-icon",9);K()()();J(10,"div",10);F(11,NMb,2,3);U(12,"async");Mg(13,OMb,1,0,"b-spinner");K();J(14,"div",11)(15,"button",12);U(16,"async");N("click",function(){u(b);var c=P();return w(QMb(c))});R(17," Accept ");K();J(18,"split-button",13,0);U(20,"async");J(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 w()});R(23," Reject ");K();J(24,"div",
15);Pg(25,PMb,3,1,"button",16,Og);K()()()()()}a&2&&(a=P(),x(11),G(V(12,5,a.isGeneratingTitle$)?13:11),x(4),I("disabled",V(16,7,a.isGeneratingTitle$)),x(3),I("size","small")("disabled",!!V(20,9,a.isGeneratingTitle$)),x(3),I("disabled",V(22,11,a.isGeneratingTitle$)),x(4),Qg(a.suggestedTitleRejectionReasons))},SMb=function(a){a&1&&(J(0,"a",3),M(1,"mat-icon",5),K())},TMb=function(a){a&1&&M(0,"b-spinner")},UMb=function(a,b){a&1&&M(0,"b-issues-table",4);a&2&&(a=P(),I("issueIds",b)("tableColumns",a.tableColumns)("options",
a.tableOptions))},VMb=function(a){var b=a.similarIssues;var c=a.scores;return b.filter(function(d,e){return c[e]>=.65})},WMb=function(a){a&1&&Yg(0)},YMb=function(a){a&1&&(Wg(0),D(1,WMb,1,0,"ng-container",9),Xg());a&2&&(a=P(),x(),I("ngTemplateOutlet",a.valueTemplate)("ngTemplateOutletContext",Hh(2,XMb,a.value)))},ZMb=function(a){a&1&&R(0);a&2&&(a=P(),wh(a.value||"--"))},$Mb=function(a){a&1&&(Ge(),J(0,"svg",10),M(1,"path",11),K());a&2&&(a=P(),uh("centered",a.centerEditIcon))},aNb=function(a){a&1&&M(0,
"textarea",15);a&2&&(a=P(3),I("formControl",a.editingValue)("required",a.required())("cdkAutosizeMaxRows",a.multilineMaxLines))},bNb=function(a){a&1&&M(0,"input",16);a&2&&(a=P(3),I("formControl",a.editingValue))},cNb=function(a){a&1&&(Wg(0),J(1,"div",13),D(2,aNb,1,3,"textarea",14)(3,bNb,1,1,"ng-template",null,4,Lh),K(),Xg());if(a&2){a=Q(4);var b=P(2);x(2);I("ngIf",b.allowMultipleLines)("ngIfElse",a)}},dNb=function(a){a&1&&Yg(0)},fNb=function(a){a&1&&(Wg(0),D(1,dNb,1,0,"ng-container",9),Xg());a&2&&
(a=P(2),x(),I("ngTemplateOutlet",a.editorTemplate)("ngTemplateOutletContext",Hh(2,eNb,a.editingValue)))},gNb=function(a){a&1&&D(0,cNb,5,2,"ng-container",12)(1,fNb,2,4,"ng-container",12);a&2&&(a=P(),I("ngIf",!a.editorTemplate),x(),I("ngIf",a.editorTemplate))},hNb=function(a){if(a&1){var b=t();J(0,"b-hotlist-picker",28);N("onApply",function(c){u(b);var d=P();return w(d.handleHotlistPickerSave(c))})("onLoad",function(c){u(b);var d=P();return w(d.loadHotlist(c))})("onCreate",function(c){u(b);var d=P();
return w(d.createHotlist(c))});K()}a&2&&(a=P(),I("selectedHotlistIds",a.selectedHotlistIds)("choices",a.hotlists))},iNb=function(a,b){a&1&&(J(0,"a",13),R(1,"View recent issues"),K());a&2&&(a=P(),I("routerLinkObj",a.recentIssuesInComponent(b)))},mNb=function(a){a&1&&(J(0,"div",29),M(1,"b-icon",30),J(2,"span"),R(3),K(),J(4,"a",31),R(5,"View access settings"),K()());a&2&&(a=P(),uh("partner",jNb(a))("public",kNb(a)),x(),I("name","alert")("size","small"),x(2),T("",lNb(a),"\u00a0"),x(),I("href",a.selectedComponent?
Dq.editComponentAccess.makeHref(a.selectedComponent.componentId):"",hf))},pNb=function(a){a&1&&(J(0,"div",32),R(1),K());a&2&&(a=P(2),x(),T(" Error: The following required field(s) have not been filled: ",nNb(a).concat(oNb(a)).join(", ")," "))},qNb=function(a){a&1&&(J(0,"li"),R(1),K());if(a&2){a=P(3);x();var b=[];a.isBlockedByIssueIdValid||b.push('"Blocked by"');a.isBlockingIssueIdValid||b.push('"Blocking"');a.isParentIssueIdsValid||b.push('"Parents"');wh(b?b.join(" & ")+" must be"+((b.length<=1?" a":
"")+" comma separated list")+((b.length>1?"s":"")+" of issue IDs"):"")}},rNb=function(a){a&1&&(J(0,"li"),R(1),K());a&2&&(a=P(3),x(),T(" Collaborators: you cannot add ",a.invalidCollaboratorsInput.join(", ")," "))},sNb=function(a){a&1&&(J(0,"div",32),R(1," Error: The following field(s) have invalid values: "),J(2,"ul"),F(3,qNb,2,1,"li"),F(4,rNb,2,1,"li"),K()());a&2&&(a=P(2),x(3),G(a.isBlockedByIssueIdValid&&a.isBlockingIssueIdValid&&a.isParentIssueIdsValid?-1:3),x(),G(a.isCollaboratorsValid?-1:4))},
tNb=function(a){a&1&&(J(0,"div",32),R(1," Error: There is at least one upload ongoing. Please cancel or wait for it to be finished. "),K())},vNb=function(a){a&1&&(J(0,"div",18),F(1,pNb,2,1,"div",32),F(2,sNb,5,2,"div",32),F(3,tNb,2,0,"div",32),K());a&2&&(a=P(),x(),G(nNb(a).length!==0||oNb(a).length!==0?1:-1),x(),G(a.isBlockedByIssueIdValid&&a.isBlockingIssueIdValid&&a.isParentIssueIdsValid&&a.isCollaboratorsValid?-1:2),x(),G(uNb(a.comment)?3:-1))},wNb=function(a,b){if(a&1){var c=t();J(0,"div",33)(1,
"b-hotlist-chip",34);N("removeHotlist",function(){var d=u(c).$implicit,e=P(2);return w(e.removeHotlist(d.hotlistId))});K()()}a&2&&(a=b.$implicit,x(),I("hotlist",a))},xNb=function(a){a&1&&(J(0,"div",19),Pg(1,wNb,2,1,"div",33,Og),K());a&2&&(a=P(),x(),Qg(a.selectedHotlists))},yNb=function(a,b){if(a&1){var c=t();J(0,"button",40);N("click",function(){var d=u(c).$implicit;P(2).selectedTemplate=d;return w()});R(1);K()}a&2&&(a=b.$implicit,x(),wh(a.name))},zNb=function(a){if(a&1){var b=t();J(0,"button",40);
N("click",function(){u(b);var c=P(2);c.selectedTemplate=c.availableExistingIssueTemplate;return w()});R(1);K()}a&2&&(a=P(2),x(),wh(a.availableExistingIssueTemplate.name))},ANb=function(a){a&1&&(J(0,"div",26)(1,"div",22)(2,"label",35),R(3,"Template"),K()(),J(4,"button",36),R(5),M(6,"mat-icon",37),K(),J(7,"mat-menu",38,2),Pg(9,yNb,2,1,"button",39,Og),F(11,zNb,2,1,"button",39),K()());if(a&2){a=Q(8);var b=P();x(4);I("matMenuTriggerFor",a);x();var c;T("",(c=b.selectedTemplate==null?null:b.selectedTemplate.name)!=
null?c:""," ");x(2);I("overlapTrigger",!0);x(2);Qg(b.availablePredefinedTemplates);x(2);G(b.availableExistingIssueTemplate?11:-1)}},BNb=function(a){a&1&&(J(0,"div",27)(1,"div",32),R(2," You do not have permission to create issues in this component. "),K()())},CNb=function(a){a&1&&M(0,"llm-suggest-title-button",44);a&2&&(a=P(2),I("description",a.comment))},ENb=function(a){if(a&1){var b=t();J(0,"llm-suggest-title-preview",61);N("suggestionAccepted",function(c){u(b);var d=P(2);d.setTitle(c);return w(DNb(d))});
K()}},FNb=function(a){a&1&&(J(0,"p",45),R(1),J(2,"a",62),R(3," Learn more "),K()());a&2&&(a=P(2),x(),T(" Your title contains restricted words: ",Pq(a.titleBannedWordsChecker),". Review your title before posting. "))},GNb=function(a,b){if(a&1){var c=t();J(0,"button",65);N("click",function(){var d=u(c).$implicit,e=P(3);return w(e.setPriority(d.value))});R(1);K()}a&2&&(a=b.$implicit,x(),wh(a.displayText))},HNb=function(a){if(a&1){var b=t();J(0,"div",26)(1,"div",22)(2,"label",63);R(3,"Priority");K()();
J(4,"button",64);R(5);M(6,"mat-icon",37);K();J(7,"mat-menu",38,3)(9,"button",65);N("click",function(){u(b);var d=P(2);return w(d.setPriority())});R(10,"--");K();Pg(11,GNb,2,1,"button",66,Og);K()()}if(a&2){a=Q(8);var c=P(2);x(4);I("matMenuTriggerFor",a);Lg("aria-label","Priority, required"+(c.issue.priority?", "+c.issue.priority:""));x();T("",c.issue.priority?c.issue.priority:"--"," ");x(2);I("overlapTrigger",!0);x(4);Qg(c.priorityChoices)}},INb=function(a){a&1&&M(0,"mat-divider")},JNb=function(a){a&
1&&M(0,"mat-icon",69);a&2&&(a=P().$implicit,I("svgIcon",a.icon))},KNb=function(a,b){if(a&1){var c=t();F(0,INb,1,0,"mat-divider");J(1,"button",68);N("click",function(){var e=u(c).$implicit,f=P(3);return w(f.setIssueType(e.value))});F(2,JNb,1,1,"mat-icon",69);R(3);K()}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);x();I("matTooltip",a.altText||"");x();G(a.icon?2:-1);x();T(" ",a.displayText," ")}},LNb=function(a){if(a&1){var b=t();
J(0,"div",26)(1,"div",22)(2,"label",67);R(3,"Type");K()();J(4,"button",64);U(5,"enumToHuman");R(6);U(7,"enumToHuman");M(8,"mat-icon",37);K();J(9,"mat-menu",38,4)(11,"button",65);N("click",function(){u(b);var d=P(2);return w(d.setIssueType())});R(12,"--");K();Pg(13,KNb,4,4,null,null,Og);K()()}if(a&2){a=Q(10);var c=P(2);x(4);I("matMenuTriggerFor",a);Lg("aria-label","Type, required"+(c.issue.type?V(5,4,", "+c.issue.type):""));x(2);T("",V(7,6,c.issue.type||"--")," ");x(3);I("overlapTrigger",!0);x(4);
Qg(c.issueTypeChoices)}},MNb=function(a){if(a&1){var b=t();J(0,"div",22)(1,"label",70);R(2,"Assignee");K()();J(3,"div",71)(4,"b-peoplekit-single",72);N("emailChange",function(d){u(b);var e=P(3);return w(e.handleAutocompleteSelection(d,"assignee"))});K()()}if(a&2){a=P(3);x(4);var c;I("email",(c=a.assigneeText)!=null?c:"")}},NNb=function(a){if(a&1){var b=t();J(0,"div",22)(1,"label",73);R(2,"Assignee");K()();J(3,"div",71)(4,"input",74);Ah("ngModelChange",function(c){u(b);var d=P(3);zh(d.assigneeText,
c)||(d.assigneeText=c);return w(c)});K()()}a&2&&(a=P(3),x(4),yh("ngModel",a.assigneeText),I("bContactAutocomplete","SINGLE"))},ONb=function(a){a&1&&(J(0,"div",46),F(1,MNb,5,1)(2,NNb,5,2),K());a&2&&(a=P(2),x(),G(a.enablePeoplekitAc?1:2))},PNb=function(a){a&1&&(J(0,"mat-error"),R(1," Collaborators only accepts individual users. "),K())},QNb=function(a){if(a&1){var b=t();J(0,"div",75)(1,"div",22)(2,"label",76);R(3,"Collaborators");K();M(4,"mat-icon",77);K();J(5,"div",71)(6,"b-peoplekit-searchbar",78,
5);N("emailsChange",function(c){u(b);var d=P(3);d.collaboratorsText=c;ss(d);return w()});K()();F(8,PNb,2,0,"mat-error");K()}a&2&&(a=P(3),x(6),uh("invalid",!a.isCollaboratorsValid),Kg("ariaLabel","Addition to Collaborators"),I("emails",a.collaboratorsText),x(2),G(!a.isCollaboratorsValid&&a.submitRequested?8:-1))},RNb=function(a){a&1&&(J(0,"mat-error"),R(1," Collaborators only accepts individual users. "),K())},TNb=function(a){if(a&1){var b=t();J(0,"div",75)(1,"div",22)(2,"label",79);R(3,"Collaborators");
K();M(4,"mat-icon",77);K();J(5,"div",71)(6,"input",80);N("ngModelChange",function(c){u(b);var d=P(3);return w(d.collaboratorsText=SNb(c))});K()();F(7,RNb,2,0,"mat-error");K()}a&2&&(a=P(3),x(6),uh("invalid",!a.isCollaboratorsValid),I("ngModel",ts(a.collaboratorsText))("bContactAutocomplete","MULTI"),x(),G(!a.isCollaboratorsValid&&a.submitRequested?7:-1))},UNb=function(a){a&1&&F(0,QNb,9,5,"div",75)(1,TNb,8,5,"div",75);a&2&&(a=P(2),G(a.enablePeoplekitAc?0:1))},VNb=function(a){if(a&1){var b=t();J(0,"div",
81)(1,"div",22)(2,"label",82);R(3,"CC");K()();J(4,"div",71)(5,"b-peoplekit-searchbar",83,5);N("emailsChange",function(c){u(b);var d=P(3);d.ccsText=c;ss(d);return w()});K()()()}a&2&&(a=P(3),x(5),Kg("ariaLabel","Addition to CCs"),I("emails",a.ccsText))},WNb=function(a){if(a&1){var b=t();J(0,"div",81)(1,"div",22)(2,"label",84);R(3,"CC");K()();J(4,"div",71)(5,"input",85);N("ngModelChange",function(c){u(b);var d=P(3);return w(d.ccsText=SNb(c))});K()()()}a&2&&(a=P(3),x(5),I("ngModel",ts(a.ccsText))("bContactAutocomplete",
"MULTI"))},XNb=function(a){a&1&&F(0,VNb,7,2,"div",81)(1,WNb,6,2,"div",81);a&2&&(a=P(2),G(a.enablePeoplekitAc?0:1))},YNb=function(a){a&1&&(J(0,"p",50),R(1),J(2,"a",62),R(3," Learn more "),K()());a&2&&(a=P(2),x(),T(" Your description contains restricted words: ",Pq(a.descriptionBannedWordsChecker),". Review your description before posting. "))},ZNb=function(a){a&1&&Yg(0)},$Nb=function(a){a&1&&(J(0,"div",21)(1,"div",22)(2,"label",88),R(3," Collaborator Groups "),K(),M(4,"mat-icon",89),K(),D(5,ZNb,1,
0,"ng-container",90),K());if(a&2){a=P(3);var b=Q(30);x(4);I("matTooltip",Ch(a.COLLABORATOR_GROUPS_TOOLTIP));x();I("ngTemplateOutlet",b)}},aOb=function(a){if(a&1){var b=t();J(0,"div",52)(1,"div",21)(2,"div",22)(3,"label",86);R(4," Issue access level ");K()();J(5,"b-issue-access-limits-dropdown",87);N("updatedAccessLimitLevel",function(c){u(b);var d=P(2);return w(d.onAccessLimitLevelSelected(c))});K()();F(6,$Nb,6,3,"div",21);K()}a&2&&(a=P(2),x(5),I("disabled",!1)("implicitAccessEnabled",a.componentHasExpandedAccessEnabled)("defaultAccessLimitLevel",
a.selectedAccessLimitLevel),x(),G(a.trackerCollaboratorGroups.length>0?6:-1))},bOb=function(a,b){if(a&1){var c=t();J(0,"button",65);N("click",function(){var d=u(c).$implicit,e=P(3);return w(e.issue.severity=e.toIssueSeverity(d.value))});R(1);K()}a&2&&(a=b.$implicit,x(),wh(a.displayText))},cOb=function(a){if(a&1){var b=t();J(0,"div",98)(1,"div",22)(2,"label",115);R(3," Reporter ");K()();J(4,"b-peoplekit-single",116);N("emailChange",function(d){u(b);var e=P(3);return w(e.handleAutocompleteSelection(d,
"reporter"))});K()()}if(a&2){a=P(3);x(4);var c;I("email",(c=a.reporterText)!=null?c:"")}},dOb=function(a){if(a&1){var b=t();J(0,"div",98)(1,"div",22)(2,"label",117);R(3," Reporter ");K()();J(4,"input",118);Ah("ngModelChange",function(c){u(b);var d=P(3);zh(d.reporterText,c)||(d.reporterText=c);return w(c)});K()()}a&2&&(a=P(3),x(4),yh("ngModel",a.reporterText),I("bContactAutocomplete","SINGLE"))},eOb=function(a){if(a&1){var b=t();J(0,"div",98)(1,"div",22)(2,"label",119);R(3," Verifier ");K()();J(4,
"b-peoplekit-single",120);N("emailChange",function(d){u(b);var e=P(3);return w(e.handleAutocompleteSelection(d,"verifier"))});K()()}if(a&2){a=P(3);x(4);var c;I("email",(c=a.verifierText)!=null?c:"")}},fOb=function(a){if(a&1){var b=t();J(0,"div",98)(1,"div",22)(2,"label",121);R(3," Verifier ");K()();J(4,"input",122);Ah("ngModelChange",function(c){u(b);var d=P(3);zh(d.verifierText,c)||(d.verifierText=c);return w(c)});K()()}a&2&&(a=P(3),x(4),yh("ngModel",a.verifierText),I("bContactAutocomplete","SINGLE"))},
gOb=function(a){a&1&&(J(0,"span"),R(1,"*"),K())},hOb=function(a){a&1&&(J(0,"span"),R(1,"*"),K())},iOb=function(a){a&1&&(J(0,"span"),R(1,"*"),K())},kOb=function(a){if(a&1){var b=t();J(0,"div",98)(1,"div",22)(2,"label",123);R(3," Parents ");F(4,iOb,2,0,"span");K()();J(5,"input",124);N("ngModelChange",function(c){u(b);var d=P(3);d.parentIssueIds=jOb(d,c).map(FQa);d.isParentIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(ts(d.parentIssueIds));return w()});K()()}a&2&&(a=P(3),x(4),G(a.isParentIssueIdsValid?
-1:4),x(),I("ngModel",ts(a.parentIssueIds)))},lOb=function(a){a&1&&(J(0,"span"),R(1,"*"),K())},mOb=function(a){if(a&1){var b=t();J(0,"div",98)(1,"div",22)(2,"label",125);R(3," Children ");F(4,lOb,2,0,"span");K()();J(5,"input",126);N("ngModelChange",function(c){u(b);var d=P(3);d.childrenIssueIds=jOb(d,c).map(FQa);d.isChildIssueIdsValid=d.ISSUE_ID_LIST_PATTERN.test(ts(d.childrenIssueIds));return w()});K()()}a&2&&(a=P(3),x(4),G(a.isChildIssueIdsValid?-1:4),x(),I("ngModel",ts(a.childrenIssueIds)))},nOb=
function(a){if(a&1){var b=t();J(0,"div",98)(1,"div",22)(2,"label",86);R(3," Issue access level ");K()();J(4,"b-issue-access-limits-dropdown",127);N("updatedAccessLimitLevel",function(c){u(b);var d=P(3);return w(d.onAccessLimitLevelSelected(c))});K()()}a&2&&(a=P(3),x(4),I("disabled",!1)("defaultAccessLimitLevel",a.selectedAccessLimitLevel)("implicitAccessEnabled",a.componentHasExpandedAccessEnabled))},oOb=function(a){a&1&&Yg(0)},pOb=function(a){a&1&&(J(0,"div",21)(1,"div",22)(2,"label",88),R(3," Collaborator Groups "),
K(),M(4,"mat-icon",89),K(),D(5,oOb,1,0,"ng-container",90),K());if(a&2){a=P(3);var b=Q(30);x(4);I("matTooltip",Ch(a.COLLABORATOR_GROUPS_TOOLTIP));x();I("ngTemplateOutlet",b)}},qOb=function(a){if(a&1){var b=t();J(0,"onedev-text-field",132);N("valueChange",function(d){u(b);var e=P(2).$implicit,f=P(3);return w(f.setCustomFieldValue(e,d))});K()}if(a&2){a=P(2).$implicit;var c=P(3);I("id",Dh("bv2-custom-field-",a.customFieldId))("value",a.textValue)("required",c.isCustomFieldRequired(a))("labelledById",
"bv2-custom-field-"+a.customFieldId+"-label")}},rOb=function(a){if(a&1){var b=t();J(0,"onedev-numeric-field",133);N("valueChange",function(d){u(b);var e=P(2).$implicit,f=P(3);return w(f.setCustomFieldValue(e,d))});K()}if(a&2){a=P(2).$implicit;var c=P(3);I("id",Dh("bv2-custom-field-",a.customFieldId))("value",a.numericValue)("required",c.isCustomFieldRequired(a));Lg("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},sOb=function(a){if(a&1){var b=t();J(0,"div")(1,"bv2-input-date-picker",
134);N("boundValueChange",function(d){u(b);var e=P(2).$implicit,f=P(3);return w(f.setCustomFieldValue(e,d))});K()()}if(a&2){a=P(2).$implicit;var c=P(3);x();I("bv2AriaLabelledby",Ch("bv2-custom-field-"+a.customFieldId+"-label"))("boundValue",a.dateValue)("isRequired",c.isCustomFieldRequired(a))("bv2Id","bv2-custom-field-"+a.customFieldId)}},tOb=function(a){if(a&1){var b=t();J(0,"onedev-single-select",135);N("valueChange",function(d){u(b);var e=P(2).$implicit,f=P(3);return w(f.setCustomFieldValue(e,
d))});K()}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")}},uOb=function(a,b){a&1&&(J(0,"div"),F(1,qOb,1,5,"onedev-text-field",129),F(2,rOb,1,5,"onedev-numeric-field",130),F(3,sOb,2,5,"div"),F(4,tOb,1,4,"onedev-single-select",131),K());a&2&&(a=P(4),x(),G(b===a.FieldType.TEXT?1:-1),x(),G(b===a.FieldType.NUMERIC?2:-1),x(),G(b===a.FieldType.DATE?3:-1),x(),G(b===
a.FieldType.ENUM?4:-1))},vOb=function(a,b){if(a&1){var c=t();J(0,"div")(1,"b-list-field",136);N("valuesChange",function(e){u(c);var f=P().$implicit,h=P(3);return w(h.setCustomFieldValue(f,e.values))});K()()}if(a&2){a=P().$implicit;var d=P(3);x();I("defaultLineCount",2)("type",b)("values",d.getListFieldValues(a))("enumChoices",d.customFieldAllowedValuesMap[a.customFieldId]||null)("truncate",!0)("isRequired",d.isCustomFieldRequired(a));Lg("aria-labelledby","bv2-custom-field-"+a.customFieldId+"-label")}},
wOb=function(a,b){a&1&&(J(0,"div",98)(1,"div",22)(2,"label",128),R(3),K()(),F(4,uOb,5,4,"div"),F(5,vOb,2,7,"div"),K());if(a&2){var c,d;a=b.$implicit;b=P(3);x(2);uh("required",b.isCustomFieldRequired(a));var e=I("id",Dh("bv2-custom-field-",a.customFieldId,"-label")),f=b.customFieldMap[a.customFieldId];e("matTooltip",Ch((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");Lg("aria-label",f);x();T(" ",b.getCustomFieldName(a)," ");x();G((c=b.getSingleEditFieldType(b.customFieldMap[a.customFieldId]))?4:-1,c);x();G((d=b.getListFieldType(b.customFieldMap[a.customFieldId]))?5:-1,d)}},yOb=function(a){if(a&1){var b=t();J(0,"mat-expansion-panel",55)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",91);R(4,"Advanced fields (Required fields marked with");J(5,"span",92);R(6,"*");K();R(7,")");K()()();J(8,"div",93)(9,"div",94)(10,"div",22)(11,
"label",95);R(12," Severity ");K()();J(13,"button",96);R(14);M(15,"b-icon",97);K();J(16,"mat-menu",38,6);Pg(18,bOb,2,1,"button",66,Og);K()();J(20,"div",98)(21,"div",22)(22,"label",99);R(23," Found in ");K()();J(24,"input",100);N("ngModelChange",function(e){u(b);var f=P(2);return w(f.issue.foundInVersion=SNb(e))});K()();J(25,"div",101)(26,"div",22)(27,"label",102);R(28," In prod ");K()();J(29,"mat-slide-toggle",103);Ah("ngModelChange",function(e){u(b);var f=P(2);zh(f.issue.inProd,e)||(f.issue.inProd=
e);return w(e)});K()();M(30,"div",53);J(31,"div",104)(32,"div",22)(33,"label",105);R(34," Staffing ");K()();J(35,"button",106);U(36,"staffingSummary");N("click",function(){u(b);var e=P(2);return w(e.editStaffing())});J(37,"span",107);R(38);U(39,"staffingSummary");K();M(40,"mat-icon",108);K()();M(41,"div",53);F(42,cOb,5,1,"div",98)(43,dOb,5,2,"div",98);F(44,eOb,5,1,"div",98)(45,fOb,5,2,"div",98);J(46,"div",98)(47,"div",22)(48,"label",109);R(49," Targeted to ");K()();J(50,"input",110);N("ngModelChange",
function(e){u(b);var f=P(2);return w(f.issue.targetedToVersion=SNb(e))});K()();M(51,"div",53);J(52,"div",98)(53,"div",22)(54,"label",111);R(55," Blocked by ");F(56,gOb,2,0,"span");K()();J(57,"input",112);N("ngModelChange",function(e){u(b);var f=P(2);f.issue.blockedByIssueId=jOb(f,e);f.isBlockedByIssueIdValid=f.ISSUE_ID_LIST_PATTERN.test(ts(f.issue.blockedByIssueId));return w()});K()();J(58,"div",98)(59,"div",22)(60,"label",113);R(61," Blocking ");F(62,hOb,2,0,"span");K()();J(63,"input",114);N("ngModelChange",
function(e){u(b);var f=P(2);f.issue.blockingIssueId=jOb(f,e);f.isBlockingIssueIdValid=f.ISSUE_ID_LIST_PATTERN.test(ts(f.issue.blockingIssueId));return w()});K()();F(64,kOb,6,2,"div",98);F(65,mOb,6,2,"div",98);M(66,"div",53);F(67,nOb,5,3,"div",98);F(68,pOb,6,3,"div",21);M(69,"div",53);Pg(70,wOb,6,10,"div",98,Og);K()()}if(a&2){a=Q(17);var c=P(2);x(13);I("matMenuTriggerFor",a);Lg("aria-label","Severity"+(c.issue.severity?", "+c.issue.severity:""));x();wh(c.issue.severity);x(2);I("overlapTrigger",!0);
x(2);Qg(c.severityChoices);x(6);I("ngModel",ts(c.originalIssueCopy.foundInVersion));x(5);yh("ngModel",c.issue.inProd);x(6);var d;Lg("aria-label","Staffing: "+V(36,19,(d=c.issue.staffing==null?null:c.issue.staffing.plannedAllocations)!=null?d:Gh(23,xOb)));x(3);T(" ",V(39,21,c.issue.staffing==null?null:c.issue.staffing.plannedAllocations)," ");x(4);G(c.enablePeoplekitAc?42:43);x(2);G(c.enablePeoplekitAc?44:45);x(6);I("ngModel",ts(c.originalIssueCopy.targetedToVersion));x(6);G(c.isBlockedByIssueIdValid?
-1:56);x();I("ngModel",ts(c.issue.blockedByIssueId));x(5);G(c.isBlockingIssueIdValid?-1:62);x();I("ngModel",ts(c.issue.blockingIssueId));x();G(c.sessionIsExternal?-1:64);x();G(c.sessionIsExternal?-1:65);x(2);G(ur(c.selectedComponent)?-1:67);x();G(c.trackerCollaboratorGroups.length>0&&!ur(c.selectedComponent)?68:-1);x(2);Qg(c.issue.customField)}},zOb=function(a,b){a&1&&M(0,"similar-issues",137);a&2&&(a=P(3),I("context",b)("componentId",a.issue.componentId))},AOb=function(a){a&1&&(F(0,zOb,1,2,"similar-issues",
137),U(1,"async"));if(a&2){var b;a=P(2);G((b=V(1,1,a.similarIssuesSearchString$))?0:-1,b)}},BOb=function(a){a&1&&(J(0,"div",29),M(1,"b-icon",30),J(2,"span"),R(3),K(),J(4,"a",31),R(5,"View access settings"),K()());a&2&&(a=P(2),uh("partner",jNb(a))("public",kNb(a)),x(),I("name","alert")("size","small"),x(2),T("",lNb(a),"\u00a0"),x(),I("href",a.selectedComponent?Dq.editComponentAccess.makeHref(a.selectedComponent.componentId):"",hf))},COb=function(a){if(a&1){var b=t();J(0,"div",56)(1,"b-recaptcha",138);
N("onUpdate",function(c){u(b);var d=P(2);return w(d.recaptchaResponse=c)});K()()}},GOb=function(a){if(a&1){var b=t();J(0,"div")(1,"div",20)(2,"div",21)(3,"div",22)(4,"label",41);R(5,"Title");K()();J(6,"div",42)(7,"input",43);U(8,"async");N("ngModelChange",function(e){u(b);var f=P();return w(f.setTitle(e))})("blur",function(){u(b);var e=P();return w(DNb(e))});K();F(9,CNb,1,1,"llm-suggest-title-button",44);K();F(10,ENb,1,0,"llm-suggest-title-preview");F(11,FNb,4,1,"p",45);U(12,"async");K();F(13,HNb,
13,4,"div",26);F(14,LNb,15,8,"div",26);K();Wg(15);J(16,"div",20);F(17,ONb,3,1,"div",46);F(18,UNb,2,1);K();J(19,"div",20);F(20,XNb,2,1);K();Xg();J(21,"div",47)(22,"div",20)(23,"div",21)(24,"div",22)(25,"label",48);R(26,"Description");K()();J(27,"b-comment-box",49);U(28,"async");Ah("commentChange",function(e){u(b);var f=P();zh(f.comment,e)||(f.comment=e);return w(e)});N("onChange",function(){u(b);var e=P();return w(e.saveCommentDraft())})("onSubmit",function(e){u(b);var f=P();return w(DOb(f,e,!e.shiftKey))})("onRestrict",
function(){u(b);var e=P();return w(e.showNewContentJudgementDialog())});F(29,YNb,4,1,"p",50);U(30,"async");J(31,"b-markdown-toggle",51);N("change",function(e){u(b);var f=P();return w(f.comment.formattingMode=e)});K()()()();F(32,aOb,7,4,"div",52);M(33,"div",53);J(34,"div",54);F(35,yOb,72,24,"mat-expansion-panel",55);K();F(36,AOb,2,3);F(37,BOb,6,8,"div",17);F(38,COb,2,0,"div",56);J(39,"div",57)(40,"b-button",58);U(41,"async");U(42,"async");N("onAction",function(e){u(b);var f=P();return w(DOb(f,e,!0))});
R(43);U(44,"async");U(45,"async");K();J(46,"b-button",59);U(47,"async");U(48,"async");N("onAction",function(e){u(b);var f=P();return w(DOb(f,e,!1))});R(49);U(50,"async");U(51,"async");K();J(52,"b-button",60);N("onAction",function(){u(b);var e=P();e.draftStore.$window.sessionStorage.removeItem(mq("0"));EOb(e.reloadService);return w()});R(53," Discard ");K()()()()}if(a&2){a=P();x(7);var c;uh("invalid",(c=V(8,39,a.titleBannedWordsChecker.showWarning$))!=null?c:!1);I("ngModel",a.issue.title)("bFocus",
a.newIssueStarted);x(2);G(a.enableSuggestTitle?9:-1);x();G(a.enableSuggestTitle?10:-1);x();G(V(12,41,a.titleBannedWordsChecker.showWarning$)?11:-1);x(2);G(a.canEditIssuesInComponent?13:-1);x();G(a.canEditIssuesInComponent?14:-1);x(3);G(a.canEditIssuesInComponent?17:-1);x();G(a.canEditIssuesInComponent?18:-1);x(2);G(a.canEditIssuesInComponent?20:-1);x(7);uh("bv2-upload-ongoing",uNb(a.comment));I("supportsPreview",!0);yh("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=V(28,43,a.descriptionBannedWordsChecker.showWarning$))!=null?d:!1)("canEditIssuesInComponent",a.canEditIssuesInComponent)("isLiteralModeSupported",a.isLiteralModeSupported());x(2);G(V(30,45,a.descriptionBannedWordsChecker.showWarning$)?29:-1);x(2);I("initialValue",a.comment.formattingMode);x();G(a.canEditIssuesInComponent&&ur(a.selectedComponent)?32:-1);x(3);
G(a.canEditIssuesInComponent?35:-1);x();G(a.issue.componentId&&!a.submitRequested?36:-1);x();G(jNb(a)||kNb(a)?37:-1);x();G(a.enableRecaptcha?38:-1);x(2);I("disabled",FOb(a))("color",V(41,47,a.titleBannedWordsChecker.showWarning$)||V(42,49,a.descriptionBannedWordsChecker.showWarning$)?"warn":"primary");x(3);T(" ",V(44,51,a.titleBannedWordsChecker.showWarning$)||V(45,53,a.descriptionBannedWordsChecker.showWarning$)?"Create Anyway":"Create"," ");x(3);I("disabled",FOb(a))("color",V(47,55,a.titleBannedWordsChecker.showWarning$)||
V(48,57,a.descriptionBannedWordsChecker.showWarning$)?"warn":"primary");x(3);T(" ",V(50,59,a.titleBannedWordsChecker.showWarning$)||V(51,61,a.descriptionBannedWordsChecker.showWarning$)?"Create Anyway & Start Another":"Create & Start Another"," ");x(3);I("disabled",FOb(a))}},HOb=function(a,b){a&1&&(J(0,"h2",139),R(1,"This component has a default description"),K(),J(2,"mat-dialog-content"),R(3," You have already entered a description, but the component you chose has a default description: "),J(4,"div",
140),R(5),K()(),J(6,"mat-dialog-actions")(7,"button",141),R(8,"Use component description"),K(),J(9,"button",142),R(10,"Keep my description"),K()());a&2&&(a=b.$implicit,x(5),wh(a),x(2),I("mat-dialog-close",!0))},IOb=function(a,b){a&1&&(J(0,"mat-option",145),R(1),K());a&2&&(a=b.$implicit,I("value",Ch(a)),x(),T(" ",a," "))},KOb=function(a){if(a&1){var b=t();J(0,"mat-form-field",143)(1,"mat-select",144);Ah("ngModelChange",function(c){u(b);var d=P();zh(d.collaboratorGroupsText,c)||(d.collaboratorGroupsText=
c);return w(c)});J(2,"mat-select-trigger");R(3);K();Pg(4,IOb,2,3,"mat-option",145,Og);K()()}a&2&&(a=P(),x(),yh("ngModel",a.collaboratorGroupsText),I("ngModelOptions",Gh(3,JOb)),x(2),wh(a.getCollaboratorGroupsString()),x(),Qg(a.trackerCollaboratorGroups))},LOb=function(a,b){b.assigneeText=wj(a.assigneeUser);b.reporterText=wj(a.reporterUser);b.verifierText=wj(a.verifierUser);b.collaboratorsText=xj(a.collaboratorsUsers);b.ccsText=xj(a.ccUsers)},MOb=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=Dj(a.assigneeText));a.reporterText!=null&&(b.reporterUser=Dj(a.reporterText));a.verifierText!=null&&(b.verifierUser=Dj(a.verifierText));a.collaboratorsText&&(c=jta(a.collaboratorsText),c.length?b.collaboratorsUsers=c:b.collaboratorsUsers=void 0);a.ccsText&&(a=jta(a.ccsText),a.length?b.ccUsers=a:b.ccUsers=void 0)},OOb=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=NOb[d];d==="customField"||gj(e,f)||(Array.isArray(e)?a[d]?(e=bsa([].concat(p(e),p(a[d]))),a[d]=e):a[d]=e:e!==""&&(a[d]=e))}},POb=function(a){a=Object.assign({},a);return delete a.hotlistId,a},QOb=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},ROb=function(a){return function(b){var c=oj(b.snapshot.customField,function(k){return k.customFieldId}),
d=[],e,f,h=(f=(e=a.componentPathInfo)==null?void 0:e.allCustomField)!=null?f:[];e=l(h);for(f=e.next();!f.done;f=e.next())f=f.value,h=f.customFieldId,f.enabledOnIssues&&(c.has(h)?d.push(c.get(h)):f.typedDefaultValue?d.push(f.typedDefaultValue):d.push({customFieldId:h}));return Object.assign({},b,{snapshot:Object.assign({},b.snapshot,{customField:d})})}},SOb=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)},TOb=function(a){if(a&1){var b=t();J(0,"b-star-toggle",10);N("starClicked",function(){u(b);var c=P(2);return w(c.toggleStar())});K()}a&2&&(a=P(2),I("starMessage","Star this bookmark group")("unStarMessage","Un-star this bookmark group")("starred",a.isStarred))},UOb=function(a){if(a&1){var b=t();J(0,"div")(1,"div",5);F(2,SOb,1,4,"b-star-toggle",6)(3,TOb,1,3,"b-star-toggle",7);J(4,"span",8);R(5);J(6,
"span")(7,"button",9);N("click",function(){u(b);var c=P();return w(c.editBookmarkGroup())});K()()()()()}a&2&&(a=P(),x(2),G(a.isAdmin?2:3),x(3),T("",a.bookmarkGroup.name," "))},XOb=function(a){if(a&1){var b=t();J(0,"b-saved-search-panel",13);N("focusedRowIndexChange",function(f){u(b);var h=P().$implicit,k=P();return w(VOb(k,h,f))})("selectionChange",function(f){u(b);var h=P(2);return w(WOb(h,f))})("resultsLoaded",function(f){u(b);var h=P(2);return w(h.loadHotlists(f))});K()}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",a.resourceId)("first",d===0)("last",d===c-1)}},YOb=function(a){if(a&1){var b=t();J(0,"b-hotlist-panel",14);N("focusedRowIndexChange",function(f){u(b);var h=P().$implicit,k=P();return w(VOb(k,h,f))})("selectionChange",function(f){u(b);var h=P(2);return w(WOb(h,f))})("resultsLoaded",function(f){u(b);var h=P(2);return w(h.loadHotlists(f))});K()}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",a.resourceId)("first",d===0)("last",d===c-1)}},ZOb=function(a,b){a&1&&(J(0,"div"),F(1,XOb,1,6,"b-saved-search-panel",11)(2,YOb,1,6,"b-hotlist-panel",12),K());if(a&2){var c;a=b.$implicit;x();G((c=a.type)==="SAVED_SEARCH"?1:c==="HOTLIST"?2:-1)}},$Ob=function(a){if(a&1){var b=t();J(0,"button",10);N("click",function(){u(b);var c=P();return w(c.archive())});R(1," Archive bookmark group ");
K()}a&2&&(a=P(),I("disabled",a.hasUnsavedChanges()||a.isSaving()))},aPb=function(a){if(a&1){var b=t();J(0,"button",10);N("click",function(){u(b);var c=P();return w(c.unarchive())});R(1," Unarchive bookmark group ");K()}a&2&&(a=P(),I("disabled",a.hasUnsavedChanges()||a.isSaving()))},bPb=function(a){a&1&&(J(0,"span",12),R(1," (archived) "),K())},dPb=function(a,b){if(a&1){var c=t();J(0,"div")(1,"b-hotlist-chip-smart",44);N("removeHotlist",function(){var d=u(c),e=P(4);return w(cPb(e,d))});K()()}a&2&&
(x(),I("id",b))},fPb=function(a,b){if(a&1){var c=t();J(0,"div",42)(1,"a",45);R(2);K();J(3,"span",46);N("click",function(){var e=u(c),f=P(4);return w(ePb(f,e))})("keydown.enter",function(){var e=u(c),f=P(4);return w(ePb(f,e))})("keydown.space",function(){var e=u(c),f=P(4);return w(ePb(f,e))});R(4," \u00d7 ");K()()}if(a&2){a=P().$implicit;var d=P(3);x();I("href",d.paths.viewSavedSearch(b),hf)("matTooltip","Go to saved search: "+d.getDisplayName(a));x();T(" S: ",d.getDisplayName(a)," ");x();I("matTooltip",
"Remove item: "+d.getDisplayName(a));Lg("aria-label","Remove item: "+d.getDisplayName(a))}},gPb=function(a){a&1&&(J(0,"span",43),R(1,"<None>"),K())},hPb=function(a,b){a&1&&(J(0,"div",33),F(1,dPb,2,1,"div"),F(2,fPb,5,5,"div",42),F(3,gPb,2,0,"span",43),K());if(a&2){var c;a=b.$implicit;b=P(3);x();var d;var e=a.resourceType==="HOTLIST"?(d=a.hotlistId)==null?void 0:d.toString():void 0;G(e?1:-1,e);x();G((c=a.resourceType==="SAVED_SEARCH"?a.savedSearchId:void 0)?2:-1,c);x();G(b.bookmarkGroupUnderEdit.item.length?
-1:3)}},jPb=function(a,b){if(a&1){var c=t();J(0,"button",53);N("click",function(){var d=u(c).$implicit,e=P(5);return w(iPb(e,d))});R(1);K()}a&2&&(a=b.$implicit,x(),T("",a.name," "))},kPb=function(a){a&1&&Pg(0,jPb,2,1,"button",52,Og);a&2&&(a=P(4),Qg(a.savedSearchChoices))},lPb=function(a){a&1&&(J(0,"div",41)(1,"label",47),R(2,"Add from saved searches:"),K(),J(3,"button",48)(4,"span",49),R(5,"Select"),K(),M(6,"mat-icon",50),K(),J(7,"mat-menu",null,2),D(9,kPb,2,0,"ng-template",51),K()());a&2&&(a=Q(8),
x(3),I("matMenuTriggerFor",a))},qPb=function(a){if(a&1){var b=t();J(0,"div",18)(1,"label",31)(2,"span",20);R(3,"Selected items");K()();J(4,"div",32,1);Pg(6,hPb,4,3,"div",33,Og);K()();J(8,"div",34)(9,"div",35)(10,"label",36);R(11,"Add hotlist from favorites:");K();J(12,"b-hotlist-picker",37);N("onApply",function(c){u(b);var d=P(2);return w(mPb(d,c))})("onCreate",function(c){u(b);var d=P(2);return w(nPb(d,c))})("onLoad",function(c){u(b);var d=P(2);return w(oPb(d,c))});K()();J(13,"div",38)(14,"label",
39);R(15,"Add hotlist by query:");K();J(16,"b-hotlist-search",40);N("itemSelect",function(c){u(b);var d=P(2);"hotlistId"in c&&!d.selectedHotlistIds[0].includes(c.hotlistId)&&(pPb(d,c.hotlistId),d.bookmarkGroupUnderEdit.item.push({name:c.name,resourceType:"HOTLIST",hotlistId:c.hotlistId}));return w()});K()();F(17,lPb,10,1,"div",41);K()}a&2&&(a=P(2),x(6),Qg(a.bookmarkGroupUnderEdit.item),x(6),I("selectedHotlistIds",a.selectedHotlistIds)("choices",a.userHotlists)("checkEditAcl",!1),x(4),I("showGroups",
!1)("allowStarring",!1),x(),G(a.savedSearchChoices.length>0?17:-1))},sPb=function(a){a&1&&(J(0,"span"),R(1),J(2,"a",55),R(3),K()());if(a&2){a=P().$implicit;var b=P(3);x();T(" Hotlist ",a.hotlistId,": ");x();I("href",rPb(b,a),hf);x();T(" ",a.name||"(name not available)"," ")}},tPb=function(a){a&1&&(J(0,"span"),R(1),J(2,"a",55),R(3),K()());if(a&2){a=P().$implicit;var b=P(3);x();T(" Saved search ",a.savedSearchId,": ");x();I("href",rPb(b,a),hf);x();T(" ",a.name||"(name not available)"," ")}},uPb=function(a,
b){a&1&&(J(0,"li"),F(1,sPb,4,3,"span"),F(2,tPb,4,3,"span"),K());a&2&&(a=b.$implicit,x(),G(a.resourceType==="HOTLIST"?1:-1),x(),G(a.resourceType==="SAVED_SEARCH"?2:-1))},vPb=function(a){a&1&&(J(0,"div",24)(1,"label")(2,"span",20),R(3,"Items"),K()(),J(4,"div",54)(5,"ul"),Pg(6,uPb,3,2,"li",null,Og),K()()());a&2&&(a=P(2),x(6),Qg(a.bookmarkGroup.item))},wPb=function(a){if(a&1){var b=t();J(0,"div",25)(1,"button",56);N("click",function(){u(b);var c=P(2);return w(c.saveMetadata())});R(2," Update ");K();J(3,
"button",57);N("click",function(){u(b);var c=P(2);return w(c.revertMetadataChanges())});R(4," Revert changes ");K()()}a&2&&(a=P(2),x(),I("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()))},xPb=function(a){if(a&1){var b=t();J(0,"div",25)(1,"button",56);N("click",function(){u(b);var c=P(2);return w(c.saveAccessPolicy())});R(2," Update ");K();J(3,"button",57);N("click",function(){u(b);var c=P(2);return w(c.revertAccessPolicyChanges())});R(4," Revert changes ");K()()}a&2&&(a=P(2),x(),I("disabled",
!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||!a.isAdminsFieldValid||!a.isReaderFieldValid))},APb=function(a){if(a&1){var b=t();J(0,"div",11)(1,"h2");R(2);K();F(3,bPb,2,0,"span",12);J(4,"a",13);R(5," (View Dashboard)");K()();J(6,"mat-tab-group",14);Ah("selectedIndexChange",function(c){u(b);var d=P();zh(d.selectedTabIndex,c)||(d.selectedTabIndex=c);return w(c)});N("selectedIndexChange",function(c){u(b);var d=P();return w(d.tabChange(c))});J(7,"mat-tab",15)(8,"div",16);M(9,"b-error-banner",17);
J(10,"div",18)(11,"label",19)(12,"span",20);R(13,"Name");K()();J(14,"input",21,0);Ah("ngModelChange",function(c){u(b);var d=P();zh(d.bookmarkGroupUnderEdit.name,c)||(d.bookmarkGroupUnderEdit.name=c);return w(c)});K()();J(16,"div",18)(17,"label",22)(18,"span",20);R(19,"Description");K()();J(20,"textarea",23);Ah("ngModelChange",function(c){u(b);var d=P();zh(d.bookmarkGroupUnderEdit.description,c)||(d.bookmarkGroupUnderEdit.description=c);return w(c)});K()();F(21,qPb,18,6)(22,vPb,8,0,"div",24);F(23,
wPb,5,1,"div",25);K()();J(24,"mat-tab",26)(25,"div",16)(26,"div",18)(27,"label")(28,"span",20);R(29,"Admins");K();J(30,"p",27);R(31," Edit access controls, edit name and description, reorder items, add/remove items ");K()();J(32,"b-multi-user-input",28);N("usersChange",function(c){u(b);var d=P();return w(d.accessPolicyUnderEdit.admins=c)})("isValid",function(c){u(b);var d=P();return w(d.isAdminsFieldValid=c)});K()();J(33,"div",18)(34,"label")(35,"span",20);R(36,"View only");K();J(37,"p",27);R(38,
" View the bookmark group ");K();J(39,"b-multi-user-input",29);N("usersChange",function(c){u(b);var d=P();return w(d.accessPolicyUnderEdit.readers=c)})("isValid",function(c){u(b);var d=P();return w(d.isReaderFieldValid=c)});K()()();J(40,"div",18);R(41," See ");J(42,"a",30);R(43,"access control documentation");K();R(44," for an explanation of the settings. ");K();F(45,xPb,5,1,"div",25);K()()()}a&2&&(a=P(),x(2),xh(" Bookmark group ",a.bookmarkGroup.bookmarkGroupId,": ",a.bookmarkGroup.name," "),x(),
G(a.isArchived()?3:-1),x(),I("href",Gq(Dq.viewDashboard.routeDeclarationPath,{id:a.bookmarkGroup.bookmarkGroupId}),hf),x(2),yh("selectedIndex",a.selectedTabIndex),x(3),I("error",a.error),x(),uh("bv2-edit-resource-readonly",a.isEditDisabled()),x(4),yh("ngModel",a.bookmarkGroupUnderEdit.name),I("disabled",a.isEditDisabled()),x(2),uh("bv2-edit-resource-readonly",a.isEditDisabled()),x(4),yh("ngModel",a.bookmarkGroupUnderEdit.description),I("disabled",a.isEditDisabled()),x(),G(a.isAdmin?21:22),x(2),G(a.isAdmin?
23:-1),x(3),uh("bv2-edit-resource-readonly",a.isEditDisabled()),x(6),uh("disabled",a.isEditDisabled()),I("users",a.accessPolicyUnderEdit.admins),x(),uh("bv2-edit-resource-readonly",a.isEditDisabled()),x(6),uh("disabled",a.isEditDisabled()),I("users",a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Hh(33,yPb,Hh(31,zPb,a.accessPolicyUnderEdit.admins))),x(3),I("href",zq(a.documentationLinks)+"#bookmark-groups",hf),x(3),G(a.isAdmin?45:-1))},BPb=function(a){if(a&
1){var b=t();J(0,"button",9);N("click",function(){u(b);var c=P();return w(c.delete())});R(1," Delete saved search ");K()}a&2&&(a=P(),I("disabled",a.hasUnsavedChanges()||a.isSaving()))},CPb=function(a){a&1&&(J(0,"div",8)(1,"h2"),R(2," Saved search not found "),K()())},DPb=function(a){if(a&1){var b=t();J(0,"div",25)(1,"button",32);N("click",function(){u(b);var c=P(2);return w(c.saveMetadata())});R(2," Update ");K();J(3,"button",33);N("click",function(){u(b);var c=P(2);return w(c.revertMetadataChanges())});
R(4," Revert changes ");K()()}a&2&&(a=P(2),x(),I("disabled",!a.hasUnsavedMetadataChanges()||a.isSaving()))},EPb=function(a){if(a&1){var b=t();J(0,"div",25)(1,"button",32);N("click",function(){u(b);var c=P(2);return w(c.saveAccessPolicy())});R(2," Update ");K();J(3,"button",33);N("click",function(){u(b);var c=P(2);return w(c.revertAccessPolicyChanges())});R(4," Revert changes ");K()()}a&2&&(a=P(2),x(),I("disabled",!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||!a.isAdminsFieldValid||!a.isReaderFieldValid))},
HPb=function(a){if(a&1){var b=t();J(0,"div",8)(1,"h2");R(2);K();J(3,"a",10);R(4," (View Issues)");K()();J(5,"mat-tab-group",11);Ah("selectedIndexChange",function(c){u(b);var d=P();zh(d.selectedTabIndex,c)||(d.selectedTabIndex=c);return w(c)});N("selectedIndexChange",function(c){u(b);var d=P();return w(d.tabChange(c))});J(6,"mat-tab",12)(7,"div",13);M(8,"b-error-banner",14);J(9,"div",15)(10,"label",16)(11,"span",17);R(12,"Name");K()();J(13,"input",18,0);Ah("ngModelChange",function(c){u(b);var d=P();
zh(d.savedSearchUnderEdit.name,c)||(d.savedSearchUnderEdit.name=c);return w(c)});K()();J(15,"div",15)(16,"label",19)(17,"span",17);R(18,"Description");K()();J(19,"textarea",20);Ah("ngModelChange",function(c){u(b);var d=P();zh(d.savedSearchUnderEdit.description,c)||(d.savedSearchUnderEdit.description=c);return w(c)});R(20,"            ");K()();J(21,"div",21)(22,"label",22)(23,"span",17);R(24,"Query");K();J(25,"p",23);R(26," To modify query and display preferences, run the saved search and modify its parameters ");
K();J(27,"div",24);R(28);K()()();F(29,DPb,5,1,"div",25);K()();J(30,"mat-tab",26)(31,"div",13)(32,"div",15)(33,"label",27)(34,"span",17);R(35,"Admins");K();J(36,"p",23);R(37," Edit access controls, edit name and description, edit query ");K()();J(38,"b-multi-user-input",28);N("usersChange",function(c){u(b);var d=P();return w(d.accessPolicyUnderEdit.admins=c)})("isValid",function(c){u(b);var d=P();return w(d.isAdminsFieldValid=c)});K()();J(39,"div",15)(40,"label",29)(41,"span",17);R(42,"View and execute search");
K()();J(43,"b-multi-user-input",30);N("usersChange",function(c){u(b);var d=P();return w(d.accessPolicyUnderEdit.readers=c)})("isValid",function(c){u(b);var d=P();return w(d.isReaderFieldValid=c)});K()();J(44,"div",15);R(45," See ");J(46,"a",31);R(47,"access control documentation");K();R(48," for an explanation of the settings. ");K();F(49,EPb,5,1,"div",25);K()()()}a&2&&(a=P(),x(2),xh(" Saved search ",a.savedSearch.searchId,": ",a.savedSearch.name," "),x(),I("href",a.paths.viewSavedSearch(a.savedSearch.searchId),
hf),x(2),yh("selectedIndex",a.selectedTabIndex),x(3),I("error",a.error),x(),uh("bv2-edit-resource-readonly",a.isEditDisabled()),x(4),yh("ngModel",a.savedSearchUnderEdit.name),I("disabled",a.isEditDisabled()),x(2),uh("bv2-edit-resource-readonly",a.isEditDisabled()),x(4),yh("ngModel",a.savedSearchUnderEdit.description),I("disabled",a.isEditDisabled()),x(9),T(" ",a.savedSearch.query," "),x(),G(a.isAdmin?29:-1),x(3),uh("bv2-edit-resource-readonly",a.isEditDisabled()),x(6),uh("disabled",a.isEditDisabled()),
I("users",a.accessPolicyUnderEdit.admins),x(),uh("bv2-edit-resource-readonly",a.isEditDisabled()),x(4),uh("disabled",a.isEditDisabled()),I("users",a.accessPolicyUnderEdit.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Hh(32,FPb,Hh(30,GPb,a.accessPolicyUnderEdit.admins))),x(3),I("href",zq(a.documentationLinks)+"#saved-searches",hf),x(3),G(a.isAdmin?49:-1))},IPb=function(a){a&1&&(J(0,"div",6),M(1,"b-spinner"),K())},JPb=function(a){if(a&1){var b=t();J(0,"div",35)(1,"span",36)(2,
"mat-checkbox",37);N("change",function(c){u(b);var d=P(2);return w(d.alertState.setValue(c.checked))});K()();J(3,"div")(4,"strong",38);R(5,"SLO Notifications");K();J(6,"div",39);R(7," When checked, admins will be notified when any component that would be automatically assigned this SLO overrides their SLO settings. ");K()()()}a&2&&(a=P(2),uh("bv2-edit-resource-readonly",a.isEditDisabled()),x(2),I("checked",a.alertState.getValue())("disabled",a.isEditDisabled()))},KPb=function(a){a&1&&(J(0,"div",20),
R(1," Action is required to keep your SLO definitions in Buganizer and BugScope in sync. "),J(2,"a",40),R(3," Learn more "),K()())},MPb=function(a){if(a&1){var b=t();J(0,"b-button",45);N("onAction",function(){u(b);var c=P(3);return w(LPb(c,!0))});R(1," Archive ");K()}a&2&&(a=P(3),I("disabled",a.hasUnsavedMetadataChanges()||a.isSaving()))},NPb=function(a){if(a&1){var b=t();J(0,"b-button",46);N("onAction",function(){u(b);var c=P(3);return w(LPb(c,!1))});R(1," Unarchive ");K()}a&2&&(a=P(3),I("disabled",
a.hasUnsavedMetadataChanges()||a.isSaving()))},OPb=function(a){if(a&1){var b=t();J(0,"div",24)(1,"b-button",41);N("onAction",function(){u(b);var d=P(2);return w(d.saveMetadata())});R(2," Update ");K();J(3,"b-button",42);N("onAction",function(){u(b);var d=P(2);return w(d.revertMetadataChanges())});R(4," Revert changes ");K();F(5,MPb,2,1,"b-button",43);F(6,NPb,2,1,"b-button",44);K()}if(a&2){P();a=Q(9);var c=P();x();I("disabled",!c.hasUnsavedMetadataChanges()||c.isSaving()||!c.elementPickerIsValid||
!!a.pending||!!a.invalid);x(2);I("disabled",!c.hasUnsavedMetadataChanges()||c.isSaving()||!!a.pending||!!a.invalid);x(2);G(c.slo&&!c.slo.isArchived?5:-1);x();G(c.slo&&c.slo.isArchived?6:-1)}},PPb=function(a){if(a&1){var b=t();J(0,"div",23)(1,"b-button",47);N("onAction",function(){u(b);var c=P(2);return w(c.saveAccessPolicy())});R(2," Update ");K();J(3,"b-button",48);N("onAction",function(){u(b);var c=P(2);return w(c.revertAccessPolicyChanges())});R(4," Revert changes ");K()()}a&2&&(a=P(2),x(),I("disabled",
!a.hasUnsavedAccessPolicyChanges()||a.isSaving()||a.isInvalid()))},SPb=function(a){if(a&1){var b=t();J(0,"div")(1,"div",7)(2,"h2")(3,"span",8);R(4);K()()();J(5,"mat-tab-group",9);Ah("selectedIndexChange",function(c){u(b);var d=P();zh(d.selectedTabIndex,c)||(d.selectedTabIndex=c);return w(c)});N("selectedIndexChange",function(c){u(b);var d=P();return w(d.tabChange(c))});J(6,"mat-tab",10)(7,"div",11)(8,"form",12,0)(10,"div",13)(11,"label",14)(12,"span",15);R(13,"Name");K()();J(14,"input",16);N("ngModelChange",
function(c){u(b);var d=P();return w(d.editableCopy.name=c)});K()();J(15,"div",13)(16,"label",17)(17,"span",15);R(18,"Description");K()();J(19,"textarea",18);N("ngModelChange",function(c){u(b);var d=P();return w(d.editableCopy.description=c)});R(20,"                ");K()();F(21,JPb,8,4,"div",19);K();F(22,KPb,4,0,"div",20);J(23,"div",13)(24,"slo-elements-picker",21);N("onCollectionUpdate",function(c){u(b);var d=P();return w(d.updateCollection(c))})("onValidation",function(c){u(b);var d=P();return w(d.elementPickerIsValid=
c)});K()();J(25,"div",22)(26,"div",23)(27,"div",24)(28,"b-button",25);N("onAction",function(){u(b);var c=P();return w(c.showUpdateHistoryModal())});R(29," View history ");K()()();J(30,"div",23);F(31,OPb,7,4,"div",24);K()()()();J(32,"mat-tab",26)(33,"div",27)(34,"form",28)(35,"div",13)(36,"label",29)(37,"span",15);R(38,"Admins");K();J(39,"p",30);R(40," Edit name, description and metrics ");K()();J(41,"b-multi-user-input",31);N("usersChange",function(c){u(b);var d=P();return w(d.editableAccessPolicy.admins=
c)})("isValid",function(c){u(b);var d=P();return w(d.validity.admins=c)});K()();J(42,"div",13)(43,"label",32)(44,"span",15);R(45,"Readers");K();J(46,"p",30);R(47," View the SLO definition (this is not required to see an issue's SLO status) ");K()();J(48,"b-multi-user-input",33);N("usersChange",function(c){u(b);var d=P();return w(d.editableAccessPolicy.readers=c)})("isValid",function(c){u(b);var d=P();return w(d.validity.readers=c)});K()()();J(49,"div",13);R(50," See ");J(51,"a",34);R(52,"access control documentation");
K();R(53," for an explanation of the settings. ");K();F(54,PPb,5,1,"div",23);K()()()()}a&2&&(a=P(),x(4),xh(" SLO ",a.slo.sloId,": ",a.slo.name," "),x(),yh("selectedIndex",a.selectedTabIndex),x(5),uh("bv2-edit-resource-readonly",a.isEditDisabled()),x(4),I("required",!0)("ngModel",a.editableCopy.name)("disabled",a.isEditDisabled()),x(),uh("bv2-edit-resource-readonly",a.isEditDisabled()),x(4),I("ngModel",a.editableCopy.description)("disabled",a.isEditDisabled()),x(2),G(a.isImportedFromBugScope||a.alertState.getSavedValue()?
21:-1),x(),G(a.isUneditedFromBugScope&&a.isAdmin()?22:-1),x(),uh("bv2-edit-resource-readonly",a.isEditDisabled()),x(),I("isDisabled",a.isEditDisabled())("collection",a.editableCopy.elements),x(7),G(a.isAdmin()?31:-1),x(4),uh("bv2-edit-resource-readonly",a.isEditDisabled()),x(6),I("users",a.editableAccessPolicy.admins),Lg("disabled",a.isEditDisabled()?!0:null),x(),uh("bv2-edit-resource-readonly",a.isEditDisabled()),x(6),I("users",a.editableAccessPolicy.readers)("includeAliases",!0)("includeViewAliases",
!0)("containerChips",Hh(35,QPb,Hh(33,RPb,a.editableAccessPolicy.admins))),Lg("disabled",a.isEditDisabled()?!0:null),x(3),I("href",Dh("",zq(a.documentationLinks),"#slos"),hf),x(3),G(a.isAdmin()?54:-1))},UPb=function(a){if(a&1){var b=t();J(0,"div",2);M(1,"img",3)(2,"img",4);J(3,"p",5);R(4," This issue is not blocking anything \u00a0\ud83e\udd73 ");K();J(5,"p",6);R(6," If this issue blocks other issues, this issue should be resolved before the others. ");J(7,"a",7);R(8,"Learn more");K()();J(9,"button",
8);N("click",function(){u(b);var c=P(2);return w(TPb(c))});R(10," Add ");K()()}a&2&&(a=P(2),x(),I("src",a.TEA_LIGHT,hf),x(),I("src",a.TEA_DARK,hf))},VPb=function(a,b){a&1&&M(0,"b-issues-table",13);a&2&&(a=P(6),I("issueIds",b)("menuItemFactory",a.getMenuItems))},WPb=function(a){a&1&&(F(0,VPb,1,2,"b-issues-table",13),U(1,"async"));if(a&2){var b;a=P(5);G((b=V(1,1,a.blockedAndOpenIds$))?0:-1,b)}},XPb=function(a){a&1&&(J(0,"p",12),R(1,"Not blocking any open issues \ud83e\udd73"),K())},YPb=function(a,b){a&
1&&(J(0,"h4",11),R(1),K(),F(2,WPb,2,3)(3,XPb,2,0,"p",12));a&2&&(x(),T("Open (",b.length,")"),x(),G(b.length>0?2:3))},ZPb=function(a,b){a&1&&M(0,"b-issues-table",13);a&2&&(a=P(6),I("issueIds",b)("menuItemFactory",a.getMenuItems))},$Pb=function(a){a&1&&(J(0,"h4",11),R(1),K(),F(2,ZPb,1,2,"b-issues-table",13),U(3,"async"));if(a&2){var b;a=P();var c=P(4);x();T("Closed (",a.length,")");x();G((b=V(3,2,c.blockedAndClosedIds$))?2:-1,b)}},aQb=function(a,b){a&1&&F(0,$Pb,4,4);a&2&&G(b.length>0?0:-1)},bQb=function(a){a&
1&&(F(0,YPb,4,2),U(1,"async"),F(2,aQb,1,1),U(3,"async"));if(a&2){var b,c;a=P(3);G((b=V(1,2,a.blockedAndOpen$))?0:-1,b);x(2);G((c=V(3,4,a.blockedAndClosed$))?2:-1,c)}},cQb=function(a,b){a&1&&(J(0,"li")(1,"a",15)(2,"span",6),R(3),K(),J(4,"aside",16),M(5,"button",17),K()()());a&2&&(a=b.$implicit,x(),Lg("aria-label",Dh("Issue ",a)),I("routerLink",Dh("/issues/",a)),x(2),T("b/",a))},dQb=function(a){a&1&&(J(0,"h4",11),R(1,"Loading..."),K(),J(2,"ol",14),Pg(3,cQb,6,5,"li",null,Og),K());a&2&&(a=P(2),x(3),Qg(a))},
eQb=function(a,b){a&1&&(J(0,"a",10),R(1," View as search results "),K());a&2&&I("routerLink",b.path)("queryParams",b.params)},fQb=function(a){if(a&1){var b=t();F(0,bQb,4,6);U(1,"async");Mg(2,dQb,5,0);J(3,"aside",9)(4,"button",8);N("click",function(){u(b);var d=P(2);return w(TPb(d))});R(5," Add ");K();F(6,eQb,2,2,"a",10);U(7,"async");K()}if(a&2){var c;a=P(2);G(V(1,2,a.issuesBeingBlocked$)?0:2);x(6);G((c=V(7,4,a.searchUrl$))?6:-1,c)}},gQb=function(a,b){a&1&&F(0,UPb,11,2,"div",2)(1,fQb,8,6);a&2&&G(b.length===
0?0:1)},hQb=function(a){a&1&&(J(0,"aside",1),M(1,"b-spinner"),K())},iQb=function(a){a&1&&(J(0,"h3",10),R(1,"Thinking text:"),K(),J(2,"p",11),R(3),K());a&2&&(a=P().$implicit,x(3),T(" ",a.text," "))},jQb=function(a){a&1&&(J(0,"span",14),R(1),K(),R(2," : "),J(3,"span",15),R(4),K(),R(5,", "));a&2&&(a=P().$implicit,x(),wh(a.key),x(3),T('"',a.value,'"'))},kQb=function(a,b){a&1&&F(0,jQb,6,2);a&2&&G(b.$implicit.value?0:-1)},lQb=function(a){a&1&&(J(0,"p"),R(1," [ "),Pg(2,kQb,1,1,null,null,Og),U(4,"keyvalue"),
R(5," ] "),K());a&2&&(a=P().$implicit,x(2),Qg(V(4,0,a.arguments)))},mQb=function(a){a&1&&(J(0,"p",16)(1,"span",14),R(2),K(),R(3," : "),J(4,"span",15),R(5),K(),R(6,", "),K());a&2&&(a=P().$implicit,x(2),wh(a.key),x(3),T('"',a.value,'"'))},nQb=function(a,b){a&1&&F(0,mQb,7,2,"p",16);a&2&&G(b.$implicit.value?0:-1)},oQb=function(a,b){a&1&&(J(0,"div",12)(1,"p")(2,"span",13),R(3),K(),R(4," was called with: "),K(),F(5,lQb,6,2,"p"),J(6,"p")(7,"span",13),R(8,"Output:"),K()(),Pg(9,nQb,1,1,null,null,Og),U(11,
"keyvalue"),K());a&2&&(a=b.$implicit,x(3),wh(a.name),x(2),G(a.arguments?5:-1),x(4),Qg(V(11,2,a.outputs)))},pQb=function(a){a&1&&Pg(0,oQb,12,4,"div",12,Og);a&2&&(a=P().$implicit,Qg(a.functionCalls))},qQb=function(a,b){a&1&&(J(0,"div",6)(1,"p",9),R(2),K(),F(3,iQb,4,1),F(4,pQb,2,0),K());a&2&&(a=b.$implicit,b=b.$index,x(2),T("Step ",b+1),x(),G(a.text?3:-1),x(),G(a.functionCalls?4:-1))},rQb=function(a,b){a&1&&M(0,"li",4);a&2&&I("innerHTML",b.$implicit,gf)},sQb=function(a){a&1&&(J(0,"div",1),M(1,"mat-icon",
2),J(2,"h2"),R(3,"Problem Identification"),K()(),J(4,"ul",3),Pg(5,rQb,1,1,"li",4,Ng),K());a&2&&(a=P(),x(5),Qg(a.problemIdentificationSummaries))},tQb=function(a,b){a&1&&M(0,"li",4);a&2&&I("innerHTML",b.$implicit,gf)},uQb=function(a){a&1&&(J(0,"div",1),M(1,"mat-icon",2),J(2,"h2"),R(3,"Solution summary"),K()(),J(4,"ul",3),Pg(5,tQb,1,1,"li",4,Ng),K());a&2&&(a=P(),x(5),Qg(a.solutionSummaries))},vQb=function(a,b){a&1&&M(0,"li",4);a&2&&I("innerHTML",b.$implicit,gf)},wQb=function(a){a&1&&(J(0,"div",1),M(1,
"mat-icon",2),J(2,"h2"),R(3,"Code change"),K()(),J(4,"ul",3),Pg(5,vQb,1,1,"li",4,Ng),K());a&2&&(a=P(),x(5),Qg(a.codeChangeSummaries))},xQb=function(a){if(a&1){var b=t();J(0,"button",10);N("click",function(){u(b);var c=P(3),d=P();return w(d.openTailwindInfoDialog(c.trajectory))});R(1," View Details ");K()}},yQb=function(a){a&1&&F(0,xQb,2,0,"button",9);a&2&&(a=P(2),G(a.trajectory.prompt!==""&&a.trajectory.steps.length>0?0:-1))},zQb=function(a){if(a&1){var b=t();J(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 w()});R(1,"Edit in Cider");K();J(2,"button",12);N("click",function(){var c=u(b),d=P(3);return w(d.handleViewInCritique(c))});R(3,"View in Critique");K()}},AQb=function(a,b){a&1&&(J(0,"div",1),M(1,"mat-icon",2),J(2,"h2"),R(3,"Validation passed"),K()(),J(4,"ul",3)(5,"li",5)(6,"a",6),R(7,"View build results."),K()(),J(8,"li",5)(9,
"a",6),R(10,"View test results."),K()()(),M(11,"span",7),J(12,"div",8),F(13,yQb,1,1),F(14,zQb,4,0),K());if(a&2){var c;a=P();x(6);I("href",Dh("https://fusion2.corp.google.com/invocations/",b.buildInvocationId),hf);x(3);I("href",Dh("https://fusion2.corp.google.com/invocations/",b.testSpongeInvocationId),hf);x(4);G(a.trajectory?13:-1);x();G((c=a.runResults==null?null:a.runResults.oclNumber)?14:-1,c)}},BQb=function(a,b){a&1&&(F(0,sQb,7,0),F(1,uQb,7,0),F(2,wQb,7,0),F(3,AQb,15,6));if(a&2){var c;G(b.problemIdentificationSummaries?
0:-1);x();G(b.solutionSummaries?1:-1);x();G(b.codeChangeSummaries?2:-1);x();G((c=b.runResults==null?null:b.runResults.validation)?3:-1,c)}},CQb=function(a){a&1&&M(0,"mat-icon",13)},DQb=function(a){a&1&&M(0,"mat-icon",14)},EQb=function(a){if(a&1){var b=t();J(0,"button",12);N("click",function(){u(b);var c=P();c.isSidebarExpanded=!c.isSidebarExpanded;return w()});F(1,CQb,1,0,"mat-icon",13)(2,DQb,1,0,"mat-icon",14);K()}a&2&&(a=P(),I("matTooltip",a.isSidebarExpanded?"Collapse sidebar":"Expand sidebar"),
x(),G(a.isSidebarExpanded?2:1))},FQb=function(a,b){a&1&&M(0,"b-bug2code-sidebar",15);a&2&&I("issueId",b)},GQb=function(a){a&1&&(F(0,FQb,1,1,"b-bug2code-sidebar",15),U(1,"async"));if(a&2){var b;a=P();G((b=V(1,1,a.issueId$))?0:-1,b)}},HQb=function(a,b){a&1&&M(0,"b-markdown-format-presenter",17);a&2&&I("content",b)},IQb=function(a){a&1&&M(0,"b-spinner")},JQb=function(a){a&1&&(J(0,"div",25),R(1," Want to provide more feedback? "),J(2,"a",28),R(3,"Share your thoughts"),K()())},MQb=function(a){if(a&1){var b=
t();J(0,"div",18)(1,"div",19)(2,"span");R(3);K();J(4,"div",20)(5,"button",21);N("click",function(){u(b);var c=P(2);return w(KQb(c))});M(6,"mat-icon",22);K();J(7,"button",23);N("click",function(){u(b);var c=P(2);return w(LQb(c))});M(8,"mat-icon",24);K()()();F(9,JQb,4,0,"div",25);K();J(10,"div",26)(11,"div");R(12," AI may generate code in the response. Please review ");J(13,"a",27);R(14," go/code-ai-policy ");K();R(15," before using it. ");K()()}a&2&&(a=P(2),x(3),T(" ",a.votedThumbsUp||a.votedThumbsDown?
"Thanks for the feedback!":"Was this helpful?"," "),x(2),uh("voted",a.votedThumbsUp),I("disabled",a.votedThumbsUp||a.votedThumbsDown),x(2),uh("voted",a.votedThumbsDown),I("disabled",a.votedThumbsUp||a.votedThumbsDown),x(2),G(a.votedThumbsUp||a.votedThumbsDown?9:-1))},NQb=function(a){a&1&&(J(0,"div",10)(1,"div",16),F(2,HQb,1,1,"b-markdown-format-presenter",17),U(3,"async"),Mg(4,IQb,1,0,"b-spinner"),K(),F(5,MQb,16,8),U(6,"async"),K());if(a&2){var b;a=P();var c=bh(0);x(2);G((b=V(3,2,a.llmResponseMarkdown$))?
2:4,b);x(3);G(!c&&V(6,4,a.llmResponseMarkdown$)?5:-1)}},OQb=function(a){a&1&&(J(0,"div",11),R(1,"View an issue details to gain AI insights."),K())},PQb=function(a){a&1&&(J(0,"div",1),M(1,"mat-icon",3),J(2,"span",4),R(3),K()());a&2&&(a=P(),x(3),T("",a.length," parent issues"))},QQb=function(a){a&1&&(J(0,"div",1),M(1,"mat-icon",5),J(2,"span",4),R(3),K()());a&2&&(a=P(),x(3),T("Blocked by ",a.length," issues"))},RQb=function(a,b){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P(4),vh(Dh("chippy status-",b," margin-s-left")),
x(),T(" ",a.STATUS_JS_TERSE.get(b)," "))},SQb=function(a){a&1&&(J(0,"a",6)(1,"div",7)(2,"div",8)(3,"div",9),R(4),K(),J(5,"div",10),R(6),K()(),J(7,"div",8)(8,"div",11),R(9),K(),F(10,RQb,2,4,"span",12),K()()());if(a&2){var b,c=P();a=c.$implicit;var d=c.$index;c=c.$count;var e=P(2);I("routerLink",Dh("/issues/",a.issueId));x();uh("border-bottom",d!==c-1);x(3);wh(a.issueId);x(2);wh(a.snapshot[0].title);x(2);vh(e.priorityClass(a.snapshot[0].priority));x();wh(a.snapshot[0].priority);x();G((b=a.snapshot[0].status)?
10:-1,b)}},TQb=function(a,b){a&1&&F(0,SQb,11,10,"a",6);a&2&&G(b.$index<5?0:-1)},VQb=function(a){if(a&1){var b=t();J(0,"div",2)(1,"button",13);N("click",function(){u(b);var c=P(2);return w(UQb(c))});R(2,"View all parent issues");K()()}},WQb=function(a){if(a&1){var b=t();J(0,"div",2)(1,"button",13);N("click",function(){u(b);var c=P(2),d;(d=c.hovercardInstance)==null||d.closeHovercard$.next();Mr(c.router,"/issues/"+c.currentIssueId+"/dependencies");return w()});R(2,"View all blockers");K()()}},YQb=function(a,
b){a&1&&(J(0,"div",0),F(1,PQb,4,1,"div",1),F(2,QQb,4,1,"div",1),J(3,"div"),Pg(4,TQb,1,1,null,null,XQb),F(6,VQb,3,0,"div",2),F(7,WQb,3,0,"div",2),K()());a&2&&(a=P(),x(),G(a.mode===a.ListIssuesHovercardMode.PARENT_ISSUES?1:-1),x(),G(a.mode===a.ListIssuesHovercardMode.BLOCKED_BY_ISSUES?2:-1),x(2),Qg(b),x(2),G(b.length>5&&a.mode===a.ListIssuesHovercardMode.PARENT_ISSUES?6:-1),x(),G(b.length>5&&a.mode===a.ListIssuesHovercardMode.BLOCKED_BY_ISSUES?7:-1))},ZQb=function(a){a&1&&M(0,"mat-icon",4)},$Qb=function(a){a&
1&&(Wg(0),M(1,"b-list-issues-card",6,1),Xg());if(a&2){a=Q(2);P();var b=Q(4),c=P();x();I("onedevIsHovercardReady",a.init)("hovercardInstance",b)("currentIssueId",c.issueId)("issueIds",c.multiParentIssueIds)("mode",c.ListIssuesHovercardMode.PARENT_ISSUES)}},aRb=function(a){a&1&&(J(0,"a",3),R(1),K(),F(2,ZQb,1,0,"mat-icon",4),J(3,"onedev-hovercard",null,0),D(5,$Qb,3,5,"ng-container",5),K());if(a&2){a=Q(4);var b=P();I("title",Dh("",b.multiParentIssueIds.length," parents at this position"))("onedevHovercardTrigger",
a);x();T("",b.multiParentIssueIds.length," Parents\u2026");x();G(b.multiParentIssueIds.length>1?2:-1)}},bRb=function(a,b){a&1&&(J(0,"b-issue-reference-widget",7),R(1),K(),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);x();d.issueIdToTitle.has(c)?(c=d.issueIdToTitle.get(c),c=VKa(c)):c=String(c);wh(c);x();uh("last",a===b-1)}},dRb=function(a,b){if(a&1){var c=t();J(0,"button",1);U(1,"async");N("click",function(){u(c);var d=P();return w(cRb(d))});
R(2);K()}a&2&&(a=P(),I("disabled",a.disabled||a.issueFullFridge.isSaving(a.internalIssueId)||V(1,3,a.canEdit$)===!1)("title",b.isDupe?a.TOOLTIP_UNMARK_DUPE:a.TOOLTIP_MARK_DUPE),x(2),T(" ",b.isDupe?"Unmark Duplicate":"Mark as Duplicate"," "))},eRb=function(a){a&1&&Yg(0)},fRb=function(a){a&1&&D(0,eRb,1,0,"ng-container",4);a&2&&(a=P(),I("ngTemplateOutlet",a.content))},gRb=function(a,b){if(a&1){var c=t();J(0,"button",12);N("click",function(e){var f=u(c).$implicit,h=P(2);return w(h.onAction(f,e))});M(1,
"mat-icon",13);R(2);K()}if(a&2){a=b.$implicit;I("disabled",a.disabled)("title",a.title);Lg("aria-label",a.title);x();var d;I("svgIcon",(d=a.icon)!=null?d:"");x();T(" ",a.label," ")}},hRb=function(a){if(a&1){var b=t();J(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 w()});M(1,"mat-icon",15);R(2," Retention: ");M(3,"retention-text",16);R(4," \u00a0 ");M(5,"help-hover",17);K()}if(a&2){a=P();var c=Q(13);x(3);I("retentionState",
a.retentionState);x(2);I("content",c)}},iRb=function(a){a&1&&M(0,"retention-help-text",18);a&2&&(a=P(2),I("retentionState",a.retentionState)("modifiedTime",a.modifiedTimeMilliseconds))},jRb=function(a){a&1&&F(0,iRb,1,2,"retention-help-text",18);a&2&&(a=P(),G(a.retentionState&&a.modifiedTimeMilliseconds?0:-1))},lRb=function(a,b){if(a&1){var c=t();M(0,"b-app-vote-button",3)(1,"hotlist-picker-btn",4);J(2,"smart-dupe-btn",5,0);N("onHotkey",function(){u(c);var e=Q(3);return w(cRb(e))});K();J(4,"b-notification-menu",
6);N("subscriptionChange",function(e){u(c);var f=P();return w(f.updateSubscription(e))})("showNotificationSettings",function(e){u(c);var f=P();return w(f.showNotificationSettings(e))});K();J(5,"button",7);M(6,"mat-icon",8);K();J(7,"mat-menu",9,1);Pg(9,gRb,3,5,"button",10,kRb);F(11,hRb,6,2,"button",11);K();D(12,jRb,1,1,"ng-template",null,2,Lh)}if(a&2){a=Q(8);var d=P();I("issueId",b.issueId)("voteCount",b.voteCount)("upvoted",b.voted);x();I("issueId",b.issueId);x();I("issueId",b.issueId)("hotkey",d.HOTKEYS.TOGGLE_MARK_AS_DUPLICATE);
x(2);I("subscription",b.notificationSubscription)("issueId",b.issueId)("iconOnly",!0);x();I("matMenuTriggerFor",a);x(4);Qg(b.menuItems);x(2);G(d.retentionEnabled?11:-1)}},mRb=function(){},nRb=function(a){a&1&&(J(0,"output"),R(1),U(2,"async"),K());if(a&2){a=P();var b=P();x();xh(" ",a," of ",V(2,2,b.currentSearchResults.totalText$)," ")}},qRb=function(a,b){if(a&1){var c=t();F(0,nRb,3,4,"output");J(1,"span")(2,"button",0);U(3,"async");N("onHotkey",function(){u(c);var d=P();return w(oRb(d.currentSearchResults))})("click",
function(){u(c);var d=P();return w(oRb(d.currentSearchResults))});M(4,"mat-icon",1);K();J(5,"button",2);U(6,"async");N("onHotkey",function(){u(c);var d=P();return w(pRb(d.currentSearchResults))})("click",function(){u(c);var d=P();return w(pRb(d.currentSearchResults))});M(7,"mat-icon",3);K()()}a&2&&(a=P(),G(b!==-1?0:-1),x(),uh("invisible",b===-1)("zero-width",b===-1),x(),I("hotkey",a.HOTKEYS.GO_TO_PREVIOUS_ISSUE)("disabled",!V(3,9,a.currentSearchResults.hasPreviousIssue$)),x(3),I("hotkey",a.HOTKEYS.GO_TO_NEXT_ISSUE)("disabled",
!V(6,11,a.currentSearchResults.hasNextIssue$)))},rRb=function(a){a&1&&M(0,"b-issue-visibility-chip",1);a&2&&(a=P(2),I("issueId",a.issueId))},sRb=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))},tRb=function(a){a&1&&M(0,"b-retention-chip",3);a&2&&(a=P(2),I("retentionState",a.retentionState)("compactMode",!1)("modifiedTime",a.modifiedTime))},uRb=function(a){a&1&&(J(0,"div",0),F(1,rRb,1,1,"b-issue-visibility-chip",
1),F(2,sRb,1,3,"b-access-limits-chip",2),F(3,tRb,1,3,"b-retention-chip",3),K());a&2&&(a=P(),x(),G(a.hasAccessIndicator?1:-1),x(),G(a.isAccessLimited?2:-1),x(),G(a.isShowingRetention?3:-1))},vRb=function(a,b){a&1&&F(0,uRb,4,3,"div",0);a&2&&G(b.isShowingPublicPartner||b.isShowingRetention||b.isAccessLimited?0:-1)},wRb=function(a){a&1&&(J(0,"div",2),M(1,"mat-icon",4),R(2),U(3,"async"),K());if(a&2){a=P();var b=Q(4);I("onedevHovercardTrigger",b);x(2);T("",V(3,2,a.teamName$)," ")}},xRb=function(a){a&1&&
Yg(0)},yRb=function(a){a&1&&D(0,xRb,1,0,"ng-container",20);a&2&&(P(),a=Q(13),I("ngTemplateOutlet",a))},zRb=function(a){a&1&&(M(0,"b-component-breadcrumb-chip",22),U(1,"async"),J(2,"div",23),M(3,"b-issue-id-picker",24),U(4,"async"),U(5,"async"),U(6,"async"),K());a&2&&(a=P(2),I("componentId",V(1,6,a.componentId$))("issueId",a.issueId),x(3),I("issueId",a.issueId)("componentId",V(4,8,a.componentId$))("issueTitle",V(5,10,a.issueTitle$))("isExternalIssue",!!V(6,12,a.isWithinExternalComponent$)))},ARb=function(a){if(a&
1){var b=t();J(0,"b-team-chip",21);U(1,"async");U(2,"async");N("onTeamLoaded",function(){u(b);var c=P();return w(c.isTeamLoaded=!0)});K();F(3,zRb,7,14)}a&2&&(a=P(),I("componentId",V(1,3,a.componentId$))("teamId",V(2,5,a.teamId$)),x(3),G(a.isTeamLoaded?3:-1))},BRb=function(a,b){a&1&&M(0,"ancestors-breadcrumbs",27);a&2&&(a=P(3),I("ancestors",b)("issueId",a.issueId))},CRb=function(a){a&1&&(M(0,"b-component-breadcrumb-chip",25),U(1,"async"),J(2,"div",26),F(3,BRb,1,2,"ancestors-breadcrumbs",27),U(4,"async"),
M(5,"b-issue-id-picker",28),U(6,"async"),U(7,"async"),U(8,"async"),K());if(a&2){var b;a=P(2);I("componentId",V(1,8,a.componentId$))("compactMode",!0)("issueId",a.issueId);x(3);G((b=V(4,10,a.ancestors$))?3:-1,b);x(2);I("issueId",a.issueId)("componentId",V(6,12,a.componentId$))("issueTitle",V(7,14,a.issueTitle$))("isExternalIssue",!!V(8,16,a.isWithinExternalComponent$))}},DRb=function(a){if(a&1){var b=t();J(0,"b-team-chip",21);U(1,"async");U(2,"async");N("onTeamLoaded",function(){u(b);var c=P();return w(c.isTeamLoaded=
!0)});K();F(3,CRb,9,18)}a&2&&(a=P(),I("componentId",V(1,3,a.componentId$))("teamId",V(2,5,a.teamId$)),x(3),G(a.isTeamLoaded?3:-1))},ERb=function(a,b){a&1&&(J(0,"div",17),M(1,"mat-icon",29),R(2),K());a&2&&(P(),a=Q(36),I("onedevHovercardTrigger",a),x(2),T(" ",b," "))},FRb=function(a){a&1&&(Wg(0),M(1,"b-list-issues-card",30,2),U(3,"async"),Xg());if(a&2){a=Q(2);var b=P(),c=Q(36);x();I("onedevIsHovercardReady",a.init)("hovercardInstance",c)("currentIssueId",b.issueId)("issueIds",V(3,5,b.blockedByids$))("mode",
b.ListIssuesHovercardMode.BLOCKED_BY_ISSUES)}},GRb=function(a){if(a.length!==0)return a.length===1?Dq.viewIssue.makeHref(a[0]):Dq.listIssues.makeHref()},HRb=function(a,b){a&1&&(J(0,"div",0),M(1,"img",1),J(2,"h3"),R(3),K(),J(4,"a",2),U(5,"async"),R(6),K()());a&2&&(a=P(),x(),I("src",b.branding==null?null:b.branding.logoUrl,hf),x(2),T("This issue is a part of the ",b.name," tracker."),x(),I("href",V(5,4,a.trackerRedirectUrl$),hf),x(2),T(" View in ",b.name," Tracker "))},IRb=function(a){a&1&&(J(0,"div")(1,
"ol")(2,"li")(3,"label"),R(4,"Issue ID"),K(),J(5,"output"),R(6),K()(),J(7,"li")(8,"label"),R(9,"Type"),K(),J(10,"output"),R(11),K()(),J(12,"li")(13,"label"),R(14,"Status"),K(),J(15,"output"),R(16),K()()()());a&2&&(a=P(2),x(6),wh(a.issueId),x(5),wh(a.issueType),x(5),wh(a.issueStatus))},JRb=function(a){a&1&&(J(0,"div",0)(1,"div",1),M(2,"img",2),U(3,"async"),M(4,"mat-icon",3)(5,"img",2),U(6,"async"),K(),J(7,"h3",4),R(8),U(9,"async"),K(),F(10,IRb,17,3,"div"),J(11,"div",5)(12,"a",6),U(13,"async"),R(14,
"Continue"),K()()());a&2&&(a=P(),x(2),I("src",V(3,5,a.currentTrackerLogo$),hf),x(3),I("src",V(6,7,a.trackerLogo$),hf),x(3),T(" Redirecting to ",V(9,9,a.trackerName$)," "),x(2),G(a.issue!=null?10:-1),x(2),I("href",V(13,11,a.trackerRedirectUrl$),hf))},KRb=function(a,b){if(a instanceof Element){var c=Mj(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)}}},
LRb=function(a,b){a&1&&(J(0,"h2",6),R(1),K());a&2&&(x(),T("Issue ",b))},MRb=function(a){a&1&&Yg(0,7);a&2&&(P(2),a=Q(5),I("ngTemplateOutlet",a))},NRb=function(a){a&1&&Yg(0,7);a&2&&(P(3),a=Q(11),I("ngTemplateOutlet",a))},PRb=function(a){a&1&&Yg(0,8);if(a&2){a=P(2);P(2);var b=Q(9);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Hh(2,ORb,a.monorailRedirectUrl))}},QRb=function(a){a&1&&F(0,PRb,1,4,"ng-container",8);a&2&&(a=P(),G(a.monorailRedirectUrl?0:-1))},RRb=function(a,b){a&1&&F(0,NRb,1,1,"ng-container",
7)(1,QRb,1,1);if(a&2){var c;G((c=b.status)===403?0:c===404?1:-1)}},SRb=function(a,b){a&1&&(F(0,MRb,1,1,"ng-container",7),F(1,RRb,2,1),U(2,"async"));if(a&2){var c;a=P();G(b.success?0:-1);x();G((c=V(2,2,a.mainIssueLoadError$))?1:-1,c)}},TRb=function(a){a&1&&Yg(0)},URb=function(a){a&1&&M(0,"help-me-fix-sidebar")},VRb=function(a){a&1&&(J(0,"mat-sidenav-container",9)(1,"mat-sidenav-content"),D(2,TRb,1,0,"ng-container",10),K(),J(3,"mat-sidenav",11),U(4,"async"),F(5,URb,1,0,"help-me-fix-sidebar"),U(6,"async"),
K()());if(a&2){a=P(2);var b=Q(7);x(2);I("ngTemplateOutlet",b);x();I("autoFocus",!0)("opened",V(4,5,a.isHelpMeFixSidebarOpen$))("disableClose",!0);x(2);G(V(6,7,a.isHelpMeFixSidebarOpen$)?5:-1)}},WRb=function(a){a&1&&Yg(0)},XRb=function(a){a&1&&D(0,WRb,1,0,"ng-container",10);a&2&&(P(2),a=Q(7),I("ngTemplateOutlet",a))},YRb=function(a){a&1&&(F(0,VRb,7,9,"mat-sidenav-container",9),U(1,"async"),Mg(2,XRb,1,1,"ng-container"));a&2&&(a=P(),G(V(1,1,a.enableHelpMeFixSidebar$)?0:2))},ZRb=function(a){a&1&&(J(0,
"a",23),R(1,"Learn more"),K())},$Rb=function(a){if(a&1){var b=t();J(0,"button",25);N("click",function(){var c=u(b),d=P(4);return w(d.editIssueService.unarchive(c))});R(1," Unarchive ");K()}},aSb=function(a){a&1&&(J(0,"b-callout",15)(1,"b-callout-body"),R(2,"This issue has been archived. "),F(3,ZRb,2,0,"a",23),K(),J(4,"b-callout-actions"),F(5,$Rb,2,0,"button",24),U(6,"async"),K()());if(a&2){var b;a=P(3);I("messageType","caution")("format","app")("iconOverride","archive_24px");x(3);G(a.activeSession.isInternalSession()?
3:-1);x(2);G((b=V(6,5,a.id$))?5:-1,b)}},bSb=function(a){a&1&&(J(0,"a",26),R(1,"Learn more"),K())},cSb=function(a){a&1&&(J(0,"b-callout",16)(1,"b-callout-body"),R(2," This issue is in an archived component. "),F(3,bSb,2,0,"a",26),K()());a&2&&(a=P(3),I("format","app")("iconOverride","archive_24px"),x(3),G(a.activeSession.isInternalSession()?3:-1))},dSb=function(a,b){a&1&&(R(0," Reason: "),J(1,"code"),R(2),K(),R(3,". "));a&2&&(x(2),wh(b))},eSb=function(a){a&1&&(J(0,"a",27),R(1,"Learn more"),K())},gSb=
function(a){if(a&1){var b=t();J(0,"button",29);U(1,"async");U(2,"async");N("click",function(){var d=u(b),e=P(4);return w(fSb(e.editIssueService,d))});R(3," Undelete ");K()}if(a&2){a=P(4);var c;I("matTooltip",(c=V(1,2,a.undeleteButtonTooltip$))!=null?c:"")("disabled",!V(2,4,a.permissions.canUndeleteIssue$))}},hSb=function(a){a&1&&(J(0,"b-callout",17)(1,"b-callout-body"),R(2," This issue has been deleted. "),F(3,dSb,4,1),U(4,"async"),F(5,eSb,2,0,"a",27),K(),J(6,"b-callout-actions"),F(7,gSb,4,6,"button",
28),U(8,"async"),K()());if(a&2){var b,c;a=P(3);x(3);G((b=(b=V(4,3,a.snapshot$))==null?null:b.deletionReason)?3:-1,b);x(2);G(a.activeSession.isInternalSession()?5:-1);x(2);G((c=V(8,5,a.id$))?7:-1,c)}},iSb=function(a){a&1&&(J(0,"a",30),R(1,"Major updates"),K())},jSb=function(a){a&1&&(J(0,"a",31),R(1,"Major edits"),K())},kSb=function(a){a&1&&(J(0,"a",32),R(1,"Learn more"),K())},lSb=function(a){a&1&&(J(0,"b-callout",18)(1,"b-callout-body"),R(2," This issue has been marked as inactive. "),F(3,iSb,2,0,
"a",30)(4,jSb,2,0,"a",31),R(5," will reopen the issue. "),F(6,kSb,2,0,"a",32),K()());a&2&&(a=P(3),I("format","app"),x(3),G(a.activeSession.isInternalSession()?3:4),x(3),G(a.activeSession.isInternalSession()?6:-1))},mSb=function(a,b){a&1&&(J(0,"output",36),R(1),K());a&2&&(x(),T(" ",b," "))},oSb=function(a,b){a&1&&(J(0,"a",35,5),R(2),F(3,mSb,2,1,"output",36),U(4,"async"),K());if(a&2){var c;a=b.$implicit;b=Q(1);I("routerLink",a.link)("active",b.isActive)("routerLinkActiveOptions",Gh(7,nSb));x(2);T(" ",
a.title," ");x();G((c=V(4,5,a.count$))?3:-1,c)}},pSb=function(a,b){a&1&&(J(0,"header",19),M(1,"b-tracker-banner",33),U(2,"async"),U(3,"async"),M(4,"issue-header",22),J(5,"nav",34),Pg(6,oSb,5,8,"a",35,Og),K(),M(8,"mat-tab-nav-panel",null,4),K());if(a&2){a=Q(9);var c=P(3);x();I("issueId",V(2,4,c.id$))("trackerId",V(3,6,c.issueTrackerId$));x(3);I("issueId",b);x();I("tabPanel",a);x();Qg(c.tabs)}},qSb=function(a,b){a&1&&M(0,"issue-metadata-sidebar",22);a&2&&I("issueId",b)},rSb=function(a){a&1&&(J(0,"div",
14),U(1,"async"),F(2,aSb,7,7,"b-callout",15),U(3,"async"),F(4,cSb,4,3,"b-callout",16),U(5,"async"),F(6,hSb,9,7,"b-callout",17),U(7,"async"),F(8,lSb,7,3,"b-callout",18),U(9,"async"),F(10,pSb,10,8,"header",19),U(11,"async"),J(12,"div",20)(13,"article",21),M(14,"router-outlet"),K(),F(15,qSb,1,1,"issue-metadata-sidebar",22),U(16,"async"),K()());if(a&2){var b,c;a=P(2);uh("issue-editor-false",!V(1,8,a.permissions.hasAclToEdit$));x(2);G(V(3,10,a.archived$)?2:-1);x(2);G(V(5,12,a.inArchivedComponent$)?4:-1);
x(2);G(V(7,14,a.deleted$)?6:-1);x(2);G(V(9,16,a.isInactive$)?8:-1);x(2);G((b=V(11,18,a.id$))?10:-1,b);x(5);G((c=V(16,20,a.id$))?15:-1,c)}},sSb=function(a){a&1&&(J(0,"div",13),M(1,"b-tracker-redirect",37),U(2,"async"),K());a&2&&(a=P(2),x(),I("issue",V(2,1,a.issue$)))},tSb=function(a){a&1&&(F(0,rSb,17,22,"div",12),U(1,"async"),Mg(2,sSb,3,3,"div",13));a&2&&(a=P(),G(V(1,1,a.showTrackerRedirect$)?2:0))},uSb=function(a,b){a&1&&(J(0,"h3"),R(1," Redirecting to "),J(2,"a",38),R(3),K()());a&2&&(a=b.monorailRedirectUrl,
x(2),I("href",a,hf),x(),T(" ",a," "))},vSb=function(a){a&1&&(M(0,"b-access-denied-metadata",39),U(1,"async"));a&2&&(a=P(2),I("issueMetadata",V(1,1,a.issueMetadata$)))},wSb=function(a){a&1&&M(0,"b-access-denied-metadata",40)},xSb=function(a){a&1&&(J(0,"div",13),F(1,vSb,2,3,"b-access-denied-metadata",39)(2,wSb,1,0,"b-access-denied-metadata",40),K());a&2&&(a=P(),x(),G(a.activeSession.isInternalSession()?1:2))},ySb=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))},ASb=function(a){if(a&1){var b=t();J(0,"div",2);M(1,"img",3);J(2,"p",4);R(3," This issue has no duplicates ");K();J(4,"p",5);R(5," A duplicate is an issue with similar content. ");K();J(6,"p",5);R(7,' Any issue added here will be closed as a duplicate of this one, making this the "canonical issue". ');J(8,"a",6);R(9,"Learn more");K()();J(10,"button",7);N("click",function(){u(b);var c=P(2);return w(zSb(c))});R(11," Add ");
K()()}a&2&&(a=P(2),x(),I("src",a.ROBOT_SLEEPING,hf))},BSb=function(a,b){a&1&&M(0,"b-duplicates-table",10);a&2&&(a=P(2),I("issueId",b)("duplicateIds",a))},CSb=function(a,b){a&1&&(J(0,"a",12),R(1," View as search results "),K());a&2&&I("routerLink",b.path)("queryParams",b.params)},DSb=function(a){if(a&1){var b=t();J(0,"h4",8);R(1);U(2,"async");J(3,"button",9);N("click",function(){u(b);var e=P(2);return w(zSb(e))});R(4," Add ");K()();F(5,BSb,1,2,"b-duplicates-table",10);U(6,"async");J(7,"aside",11);
F(8,CSb,2,2,"a",12);U(9,"async");K()}if(a&2){var c,d;a=P(2);x();T("Duplicates ",V(2,3,a.counts.countDuplicateDisplay$)," ");x(4);G((c=V(6,5,a.id$))?5:-1,c);x(3);G((d=V(9,7,a.dupeUrl$))?8:-1,d)}},ESb=function(a){a&1&&(F(0,ASb,12,1,"div",2),U(1,"async"),Mg(2,DSb,10,9));a&2&&(a=P(),G(V(1,1,a.showTable$)?2:0))},FSb=function(a){a&1&&(J(0,"aside",1),M(1,"b-spinner"),K())},GSb=function(a){a&1&&Yg(0)},ISb=function(a){a&1&&(J(0,"mat-expansion-panel",7)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),
R(3,"View Steps Taken"),K()(),D(4,GSb,1,0,"ng-container",12),K());if(a&2){a=P();var b=Q(23);x(4);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Hh(2,HSb,a.data.trajectory))}},JSb=function(a){a&1&&(J(0,"h3",19),R(1,"Thinking text:"),K(),J(2,"p",20),R(3),K());a&2&&(a=P().$implicit,x(3),T(" ",a.text," "))},KSb=function(a){a&1&&(J(0,"span",23),R(1),K(),R(2," : "),J(3,"span",24),R(4),K(),R(5,", "));a&2&&(a=P().$implicit,x(),wh(a.key),x(3),T('"',a.value,'"'))},LSb=function(a,b){a&1&&F(0,KSb,6,2);a&2&&
G(b.$implicit.value?0:-1)},MSb=function(a){a&1&&(J(0,"p"),R(1," [ "),Pg(2,LSb,1,1,null,null,Og),U(4,"keyvalue"),R(5," ] "),K());a&2&&(a=P().$implicit,x(2),Qg(V(4,0,a.arguments)))},NSb=function(a){a&1&&(J(0,"p",25)(1,"span",23),R(2),K(),R(3," : "),J(4,"span",24),R(5),K(),R(6,", "),K());a&2&&(a=P().$implicit,x(2),wh(a.key),x(3),T('"',a.value,'"'))},OSb=function(a,b){a&1&&F(0,NSb,7,2,"p",25);a&2&&G(b.$implicit.value?0:-1)},PSb=function(a,b){a&1&&(J(0,"div",21)(1,"p")(2,"span",22),R(3),K(),R(4," was called with: "),
K(),F(5,MSb,6,2,"p"),J(6,"p")(7,"span",22),R(8,"Output:"),K()(),Pg(9,OSb,1,1,null,null,Og),U(11,"keyvalue"),K());a&2&&(a=b.$implicit,x(3),wh(a.name),x(2),G(a.arguments?5:-1),x(4),Qg(V(11,2,a.outputs)))},QSb=function(a){a&1&&Pg(0,PSb,12,4,"div",21,Og);a&2&&(a=P().$implicit,Qg(a.functionCalls))},RSb=function(a,b){a&1&&(J(0,"div",17)(1,"p",18),R(2),K(),F(3,JSb,4,1),F(4,QSb,2,0),K());a&2&&(a=b.$implicit,b=b.$index,x(2),T("Step ",b+1),x(),G(a.text?3:-1),x(),G(a.functionCalls?4:-1))},SSb=function(a,b){a&
1&&(J(0,"div",13)(1,"div",14)(2,"h3",15),R(3,"Prompt:"),K(),J(4,"p",16),R(5),K()(),Pg(6,RSb,5,3,"div",17,Og),K());a&2&&(a=b.data,x(5),T(" ",a.prompt," "),x(),Qg(a.steps))},TSb=function(a){a&1&&M(0,"div",9)},USb=function(a){a&1&&(J(0,"div"),R(1," AI-generated code changes may contain inaccurate or offensive information that doesn't represent Google's views. "),K())},VSb=function(a){a&1&&Yg(0)},WSb=function(a){a&1&&D(0,VSb,1,0,"ng-container",17);a&2&&(P(2),a=Q(5),I("ngTemplateOutlet",a))},XSb=function(a){a&
1&&Yg(0)},YSb=function(a){a&1&&D(0,XSb,1,0,"ng-container",17);a&2&&(P(2),a=Q(7),I("ngTemplateOutlet",a))},ZSb=function(a){a&1&&Yg(0)},$Sb=function(a){a&1&&D(0,ZSb,1,0,"ng-container",18);if(a&2){P(2);a=Q(9);var b=bh(0);I("ngTemplateOutlet",a)("ngTemplateOutletContext",Hh(2,us,b))}},aTb=function(a){a&1&&Yg(0)},bTb=function(a){a&1&&D(0,aTb,1,0,"ng-container",18);if(a&2){P(2);a=Q(9);var b=bh(0);I("ngTemplateOutlet",a)("ngTemplateOutletContext",Hh(2,us,b))}},cTb=function(a){a&1&&Yg(0)},dTb=function(a){a&
1&&D(0,cTb,1,0,"ng-container",18);if(a&2){P(2);a=Q(11);var b=bh(0);I("ngTemplateOutlet",a)("ngTemplateOutletContext",Hh(2,us,b))}},eTb=function(a){a&1&&Yg(0)},fTb=function(a){a&1&&D(0,eTb,1,0,"ng-container",18);if(a&2){P(2);a=Q(11);var b=bh(0);I("ngTemplateOutlet",a)("ngTemplateOutletContext",Hh(2,us,b))}},gTb=function(a){a&1&&(J(0,"div",6)(1,"div",7),M(2,"mat-icon",8),F(3,TSb,1,0,"div",9),K(),J(4,"h4",10),R(5),U(6,"async"),J(7,"xap-bubble",11)(8,"xap-icon-trigger",12),M(9,"mat-icon",13),K(),D(10,
USb,2,0,"ng-template",null,5,Lh),K(),J(12,"a",14),M(13,"mat-icon",15),K()(),J(14,"div",16),F(15,WSb,1,1,"ng-container")(16,YSb,1,1,"ng-container")(17,$Sb,1,4,"ng-container")(18,bTb,1,4,"ng-container")(19,dTb,1,4,"ng-container")(20,fTb,1,4,"ng-container"),K()());if(a&2){a=Q(11);var b=P(),c=bh(0);x(3);G(c===b.LlmSuggestionStatus.GENERATING||c===b.LlmSuggestionStatus.LOADING?3:-1);x(2);T(" ",V(6,4,b.statusMessage$)," ");x(2);I("panelTemplate",a);x(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)}},iTb=function(a){if(a&1){var b=t();J(0,"button",19);N("click",function(){u(b);var c=P();return w(hTb(c))});R(1," Start AI fix ");K();J(2,"button",20);N("click",function(){u(b);var c=P();return w(c.ignore())});R(3," Ignore ");K()}},jTb=function(){},kTb=function(a){a&1&&Yg(0)},lTb=function(a){a&
1&&D(0,kTb,1,0,"ng-container",18);if(a&2){a=P().status;P();var b=Q(13);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Hh(2,us,a))}},mTb=function(a){if(a&1){var b=t();J(0,"button",21);N("click",function(){u(b);var c=P();c.openSidebar();c.analytics.trackEvent("tailwind","display",c.issueId);return w()});R(1," View Summary ");K();J(2,"button",22);N("click",function(){u(b);var c=P();return w(c.handleViewInCritique())});R(3," View in Critique ");K();F(4,lTb,1,4,"ng-container")}a&2&&(a=P(),x(4),G(a.isEarlyAccessEnabled?
4:-1))},nTb=function(a){if(a&1){var b=t();J(0,"button",24);N("click",function(){u(b);var c=P(2);return w(c.openTailwindInfoDialog())});R(1," View details ");K()}},oTb=function(a){a&1&&Yg(0)},qTb=function(a,b){a&1&&(F(0,nTb,2,0,"button",23),D(1,oTb,1,0,"ng-container",18));if(a&2){a=b.status;b=P();var c=Q(13);G(pTb(b)?0:-1);x();I("ngTemplateOutlet",c)("ngTemplateOutletContext",Hh(3,us,a))}},sTb=function(a){if(a&1){var b=t();J(0,"button",26);N("click",function(){u(b);var c=P(2);return w(rTb(c))});R(1,
" Retry ");K()}},tTb=function(a,b){a&1&&F(0,sTb,2,0,"button",25);a&2&&(a=b.status,b=P(),G(a!==b.LlmSuggestionStatus.GENERATION_FAILED_INELIGIBLE?0:-1))},uTb=function(a,b){a&1&&(J(0,"span",9),R(1," of "),J(2,"a",10),R(3),K()());a&2&&(P(2),a=Q(11),x(2),I("routerLink",Dh("/issues/",b))("onedevHovercardTrigger",a),x(),T(" ",b," "))},vTb=function(a,b){a&1&&(J(0,"div")(1,"div",8),U(2,"async"),R(3),K(),F(4,uTb,4,4,"span",9),U(5,"async"),K());if(a&2){var c;a=P();x();vh(Dh("chippy ",V(2,6,a.statusCssClass$)));
var d;I("title",(d=a.STATUS_JS_FULL_TEXT.get(b))!=null?d:"");x(2);var e;T(" ",(e=a.STATUS_JS_TERSE.get(b))!=null?e:""," ");x();G((c=V(5,8,a.canonicalId$))?4:-1,c)}},wTb=function(a,b){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P(),vh(Dh("b-chip squared issue-type-",b)),x(),T(" ",a.issueTypeToDisplay(b)," "))},xTb=function(a,b){a&1&&M(0,"b-issue-hotlists",6);a&2&&I("issueId",b)},yTb=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",
V(2,2,b.canonicalId$))}},zTb=function(a){a&1&&(J(0,"div",0),M(1,"llm-summary"),K())},ATb=function(a){a&1&&R(0);if(a&2){a=P();var b=P().$implicit;T(" ",a.get(b.category)," ")}},BTb=function(a,b){a&1&&M(0,"b-formatted-comment-presenter",12,0);a&2&&(a=P(6),uh("truncated",a.shouldTruncate&&a.isTruncated),I("formattedComment",b))},CTb=function(a){if(a&1){var b=t();J(0,"button",13);N("click",function(){u(b);var c=P(6);c.isTruncated=!c.isTruncated;c.maybeSetupOnScreenDetection();return w()});R(1);K()}a&
2&&(a=P(6),x(),T(" ",a.isTruncated?"Show more":"Show less"," "))},DTb=function(a){a&1&&(F(0,BTb,2,3,"b-formatted-comment-presenter",8),J(1,"div",9),F(2,CTb,2,1,"button",10),M(3,"insights-actions",11),K());if(a&2){var b;a=P(2).$implicit;var c=P(3);G((b=a.general==null?null:a.general.formattedContent)?0:-1,b);x(2);G(c.shouldTruncate?2:-1);x();I("enrichment",a)}},ETb=function(a,b){a&1&&(J(0,"expandable-tab",5),D(1,ATb,1,1,"ng-template",6)(2,DTb,4,3,"ng-template",7),K());if(a&2){a=P().$implicit;var c;
I("key",(c=b.get(a.category))!=null?c:"");Kg("ariaLabel",b.get(a.category))}},FTb=function(a){a&1&&(F(0,ETb,3,2,"expandable-tab",5),U(1,"async"));if(a&2){var b;a=P(3);G((b=V(1,1,a.categoryNameToDisplayName$))?0:-1,b)}},KTb=function(a,b){if(a&1){var c=t();J(0,"expandable-tabs",4);N("expandedTabsChanged",function(e){u(c);var f=P(2);f.manualSelectedTab$.next([].concat(p(e)));GTb(f);HTb(f,e);return w()})("showAllClicked",function(){u(c);var e=P(2);return w(ITb(e))});Pg(1,FTb,2,3,null,null,JTb);U(3,"async");
K()}if(a&2){a=P();var d=P();I("showMultiple",!1)("showIcons",!1)("tabKeys",a)("expandedTabs",b);x();Qg(V(3,4,d.enrichments$))}},LTb=function(a){a&1&&(F(0,KTb,4,6,"expandable-tabs",3),U(1,"async"));if(a&2){var b;a=P();G((b=V(1,1,a.expandedTab$))?0:-1,b)}},MTb=function(a,b){a&1&&M(0,"b-issue-person-card",4);a&2&&I("email",b)},NTb=function(a,b){a&1&&(J(0,"span",3),R(1),U(2,"shortenEmail"),K(),J(3,"onedev-hovercard",null,0),F(5,MTb,1,1,"b-issue-person-card",4),K());if(a&2){var c;a=Q(4);var d=P(2);I("onedevHovercardTrigger",
a);x();T(" ",Kh(2,3,d.userToString(b),30)," ");x(4);G((c=b.emailAddress)?5:-1,c)}},OTb=function(a,b){if(a&1){var c=t();J(0,"a",5);N("click",function(d){var e=u(c),f=P(2);return w(f.scrollCommentIntoView(d,e))});R(1);K()}a&2&&(a=P(2),Lg("aria-label",Dh("Comment number ",b)),I("routerLinkObj",a.getCommentNumberLink(b)),x(),T(" #",b))},PTb=function(a){a&1&&(Wg(0),R(1,","),Xg())},QTb=function(a,b){a&1&&(J(0,"span",1),F(1,NTb,6,6),J(2,"span"),F(3,OTb,2,4,"a",2),F(4,PTb,2,0,"ng-container"),K()());if(a&
2){var c,d;a=b.$implicit;var e=b.$index;b=b.$count;x();G((c=a.userPerformingActionUser)?1:-1,c);x(2);G((d=a.commentNumber)?3:-1,d);x();G(e!==b-1?4:-1)}},RTb=function(a,b){a&1&&(J(0,"div",2)(1,"a",3),U(2,"removePngExtension"),M(3,"b-secure-image-widget",4),K(),M(4,"comments-info",5),K());a&2&&(a=b.$implicit,b=P(3),x(),I("href",Ch(V(2,6,a.src)),hf),x(2),I("showByDefault",!0)("src",a.srcCorp),x(),I("issueId",b.issueId)("comments",a.comments))},TTb=function(a){if(a&1){var b=t();J(0,"button",8);N("click",
function(){u(b);var c=P(2),d=P(2);return w(STb(d,c.length))});R(1," Load more ");K()}},UTb=function(a){if(a&1){var b=t();J(0,"button",9);N("click",function(){u(b);var c=P(4);return w(c.goToResourcesTab())});R(1," See all screenshots ");K()}},VTb=function(a){a&1&&F(0,TTb,2,0,"button",6)(1,UTb,2,0,"button",7);a&2&&(a=P(3),G(a.paginate?0:1))},WTb=function(a,b){a&1&&(J(0,"div",1),Pg(1,RTb,5,8,"div",2,Ng),U(3,"async"),K(),F(4,VTb,2,1));if(a&2){a=P();var c=P();uh("show-all-images",c.paginate);x();Qg(V(3,
3,c.imagesToRender$));x(3);G(a.length!==b.length?4:-1)}},XTb=function(a){a&1&&(F(0,WTb,5,5),U(1,"async"));if(a&2){var b;a=P();G((b=V(1,1,a.imagesToRender$))?0:-1,b)}},YTb=function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=void 0,e=(d=b.get(c.src))!=null?d:[];e.push(c.comment);b.set(c.src,e)}return Array.from(b.entries()).map(function(f){var h=l(f);f=h.next().value;h=h.next().value;return{src:f,comments:sj(h)}})},ZTb=function(a){a&1&&(J(0,"span",1)(1,"span",4),
R(2),K()());a&2&&(a=P(),x(2),T(" ",a.leftText," "))},$Tb=function(a){a&1&&(J(0,"b-external-hyperlink-widget",2),R(1),K());a&2&&(a=P(),I("href",a.redirectedHref)("originalHref",a.originalHref),x(),wh(a.linkText))},aUb=function(a){a&1&&(J(0,"b-issue-reference-widget",5),R(1),K());a&2&&(a=P(2),I("href",a.redirectedHref)("issueId",a.issueId),x(),wh(a.linkText))},bUb=function(a){a&1&&(J(0,"a",6),R(1),K());a&2&&(a=P(2),I("href",Ch(a.redirectedHref),hf),x(),wh(a.linkText))},cUb=function(a){a&1&&F(0,aUb,
2,3,"b-issue-reference-widget",5)(1,bUb,2,3,"a",6);a&2&&(a=P(),G(a.issueId?0:1))},dUb=function(a){a&1&&(J(0,"span",3),R(1),K());a&2&&(a=P(),x(),wh(a.rightText))},eUb=function(a){var b=document.createElement("div");a&&Zda(b,a);return b},fUb=function(a){a&1&&(J(0,"td"),M(1,"b-issue-priority-display",0),K(),J(2,"td",1)(3,"span",2),R(4),K(),M(5,"mentioned-link-with-context",3),K(),J(6,"td"),M(7,"comments-info",4),U(8,"toComments"),K());if(a&2){a=P().$implicit;var b=P(3);x();I("matTooltip",a.hasViewAccess?
"":"Access is denied to this issue")("issuePriority",a.priority);x(2);I("matTooltip",a.hasViewAccess?"":"Access is denied to this issue");x();var c;T(" ",(c=a.title)!=null?c:"--"," ");x();I("sourceComment",a.sourceComments[0].issueEvent)("relatedLink",a.relatedLinks[0]);x(2);I("issueId",b.issueId)("comments",V(8,8,a.sourceComments))}},gUb=function(a,b){a&1&&(J(0,"tr"),F(1,fUb,9,10),K());a&2&&(a=b.$implicit,x(),G(a.sourceComments&&a.relatedLinks?1:-1))},hUb=function(a){if(a&1){var b=t();J(0,"button",
7);N("click",function(){u(b);var c=P(4);c.lastRenderedMentionedIssueIndex$.next(c.lastRenderedMentionedIssueIndex$.value+100);return w()});R(1," Load more ");K()}},iUb=function(a){if(a&1){var b=t();J(0,"button",8);N("click",function(){u(b);var c=P(4);return w(c.goToResourcesTab())});R(1," See all mentioned issues ");K()}},jUb=function(a){a&1&&(J(0,"div"),F(1,hUb,2,0,"button",5)(2,iUb,2,0,"button",6),K());a&2&&(a=P(3),x(),G(a.paginate?1:2))},kUb=function(a,b){a&1&&(J(0,"section")(1,"table"),Pg(2,gUb,
2,1,"tr",null,Og),K(),F(4,jUb,3,1,"div"),K());a&2&&(a=P(),x(2),Qg(a),x(2),G(b.length!==a.length?4:-1))},lUb=function(a){a&1&&(F(0,kUb,5,1,"section"),U(1,"async"));if(a&2){var b;a=P();G((b=V(1,1,a.allMentionedIssues$))?0:-1,b)}},mUb=function(a,b){a&1&&(J(0,"div",0),M(1,"mentioned-link-with-context",1)(2,"comments-info",2),U(3,"toComments"),K());a&2&&(a=b.$implicit,b=P(3),x(),I("sourceComment",a[0].comment)("relatedLink",a[0]),x(),I("issueId",b.issueId)("comments",V(3,4,a)))},nUb=function(a){if(a&1){var b=
t();J(0,"button",5);N("click",function(){u(b);var c=P(4);c.lastRenderedRelatedLinkIndex$.next(c.lastRenderedRelatedLinkIndex$.value+100);return w()});R(1," Load more ");K()}},oUb=function(a){if(a&1){var b=t();J(0,"button",6);N("click",function(){u(b);var c=P(4);return w(c.goToResourcesTab())});R(1," See all related links ");K()}},pUb=function(a){a&1&&(J(0,"div"),F(1,nUb,2,0,"button",3)(2,oUb,2,0,"button",4),K());a&2&&(a=P(3),x(),G(a.paginate?1:2))},rUb=function(a,b){a&1&&(Pg(0,mUb,4,6,"div",0,qUb),
F(2,pUb,3,1,"div"));a&2&&(a=P(),Qg(b),x(2),G(a.length!==b.length?2:-1))},sUb=function(a){a&1&&(F(0,rUb,3,1),U(1,"async"));if(a&2){var b;a=P();G((b=V(1,1,a.linkGroupsToRender$))?0:-1,b)}},uUb=function(a,b){var c=a.filter(function(d){return RKa(d[0])});a=a.filter(function(d){return!RKa(d[0])});return tUb([].concat(p(c),p(a)).slice(0,b),"ASCENDING")},vUb=function(a){a&1&&M(0,"mat-icon",13)},wUb=function(a){a&1&&(R(0),U(1,"async"));if(a&2){a=P(2);var b;T("Screenshots (",(b=V(1,1,a.distinctImageLinksCount$))!=
null?b:0,")")}},zUb=function(a,b){if(a&1){var c=t();J(0,"inline-images-summary",15);U(1,"async");N("click",function(){u(c);var e=P(3);xUb(e.issueSummaryTracking,e.issueId,e.TabKeys.IMAGES);return w()});K()}if(a&2){a=P(3);var d;I("issueId",b)("imageLinks",(d=V(1,2,a.imageLinks$))!=null?d:Gh(4,yUb))}},AUb=function(a){a&1&&(F(0,zUb,2,5,"inline-images-summary",14),U(1,"async"));if(a&2){var b;a=P(2);G((b=V(1,1,a.issueId$))?0:-1,b)}},BUb=function(a){a&1&&M(0,"mat-icon",16)},CUb=function(a){a&1&&(R(0),U(1,
"async"));if(a&2){a=P(2);var b;T("Mentioned issues (",(b=V(1,1,a.distinctIssuesCount$))!=null?b:0,")")}},DUb=function(a,b){if(a&1){var c=t();J(0,"b-mentioned-issues",18);N("click",function(){u(c);var d=P(3);xUb(d.issueSummaryTracking,d.issueId,d.TabKeys.MENTIONED_ISSUES);return w()});K()}a&2&&(a=P(3),I("issueReferences",b)("currentIssueId",a.issueId))},EUb=function(a){a&1&&(F(0,DUb,1,2,"b-mentioned-issues",17),U(1,"async"));if(a&2){var b;a=P(2);G((b=V(1,1,a.issues$))?0:-1,b)}},FUb=function(a){a&1&&
M(0,"mat-icon",19)},GUb=function(a){a&1&&(R(0),U(1,"async"));if(a&2){a=P(2);var b;T("Links (",(b=V(1,1,a.distinctOtherLinksCount$))!=null?b:0,")")}},HUb=function(a){if(a&1){var b=t();J(0,"related-links-widget",20);U(1,"async");N("click",function(){u(b);var d=P(2);xUb(d.issueSummaryTracking,d.issueId,d.TabKeys.LINKS);return w()});K()}if(a&2){a=P(2);var c;I("links",(c=V(1,2,a.otherLinks$))!=null?c:Gh(4,yUb))("issueId",a.issueId)}},IUb=function(a){a&1&&M(0,"mat-icon",21)},JUb=function(a){a&1&&R(0,"Similar issues")},
KUb=function(a,b){if(a&1){var c=t();J(0,"suggested-similar-issues",23);N("click",function(){u(c);var e=P(4);xUb(e.issueSummaryTracking,e.issueId,e.TabKeys.SIMILAR_ISSUES);return w()});K()}if(a&2){a=P();var d=P(3);I("issueId",d.issueId)("similarIssueIds",a)("similarIssuesEnrichments",b)}},LUb=function(a){a&1&&(F(0,KUb,1,3,"suggested-similar-issues",22),U(1,"async"));if(a&2){var b;a=P(3);G((b=V(1,1,a.similarIssuesEnrichments$))?0:-1,b)}},MUb=function(a){a&1&&(F(0,LUb,2,3),U(1,"async"));if(a&2){var b;
a=P(2);G((b=V(1,1,a.similarIssueIds$))?0:-1,b)}},NUb=function(a){a&1&&M(0,"mat-icon",24)},OUb=function(a){a&1&&R(0,"Deduplicate")},PUb=function(a,b){a&1&&M(0,"b-recommendation",25);a&2&&I("recommendation",b)},QUb=function(a){a&1&&(F(0,PUb,1,1,"b-recommendation",25),U(1,"async"));if(a&2){var b;a=P(2);G((b=V(1,1,a.dedupeRecommendation$))?0:-1,b)}},RUb=function(a){a&1&&M(0,"mat-icon",26)},SUb=function(a){a&1&&R(0,"Assign to reporter")},TUb=function(a,b){a&1&&M(0,"b-recommendation",25);a&2&&I("recommendation",
b)},UUb=function(a){a&1&&(F(0,TUb,1,1,"b-recommendation",25),U(1,"async"));if(a&2){var b;a=P(3);G((b=V(1,1,a.assignToReporterRecommendation$))?0:-1,b)}},VUb=function(a){a&1&&(J(0,"expandable-tab",11),D(1,RUb,1,0,"ng-template",4)(2,SUb,1,0,"ng-template",5)(3,UUb,2,3,"ng-template",6),K());a&2&&(a=P(2),I("key",a.TabKeys.ASSIGN_TO_REPORTER))},WUb=function(a){a&1&&M(0,"mat-icon",27)},XUb=function(a){a&1&&R(0,"Reroute")},YUb=function(a,b){a&1&&M(0,"b-recommendation",25);a&2&&I("recommendation",b)},ZUb=
function(a){a&1&&(F(0,YUb,1,1,"b-recommendation",25),U(1,"async"));if(a&2){var b;a=P(3);G((b=V(1,1,a.componentRoutingRecommendation$))?0:-1,b)}},$Ub=function(a){a&1&&(J(0,"expandable-tab",12),D(1,WUb,1,0,"ng-template",4)(2,XUb,1,0,"ng-template",5)(3,ZUb,2,3,"ng-template",6),K());a&2&&(a=P(2),I("key",a.TabKeys.COMPONENT_ROUTING))},bVb=function(a,b){if(a&1){var c=t();J(0,"expandable-tabs",2);N("expandedTabsChanged",function(d){var e=u(c),f=P();return w(f.onTabExpanded$.emit({expandedTabKeys:d,allTabKeys:e}))})("contentShownChanged",
function(d){u(c);var e=P(),f=e.issueSummaryTracking;e=e.issueId;for(var h=l(aVb),k=h.next();!k.done;k=h.next())k=k.value,d.has(k)?(vs(f.issueInteractionsTracking,e,k+"-content-shown"),f.issueInteractionsTracking.getState(e).variations.delete(k+"-content-not-shown")):(vs(f.issueInteractionsTracking,e,k+"-content-not-shown"),f.issueInteractionsTracking.getState(e).variations.delete(k+"-content-shown"));d.size>0?(f.recordImpressionOnce(),vs(f.issueInteractionsTracking,e,"SW-content-shown"),f.issueInteractionsTracking.getState(e).variations.delete("SW-content-not-shown")):
(vs(f.issueInteractionsTracking,e,"SW-content-not-shown"),f.issueInteractionsTracking.getState(e).variations.delete("SW-content-shown"));return w()});J(1,"expandable-tab",3);D(2,vUb,1,0,"ng-template",4)(3,wUb,2,3,"ng-template",5)(4,AUb,2,3,"ng-template",6);K();J(5,"expandable-tab",7);D(6,BUb,1,0,"ng-template",4)(7,CUb,2,3,"ng-template",5)(8,EUb,2,3,"ng-template",6);K();J(9,"expandable-tab",8);D(10,FUb,1,0,"ng-template",4)(11,GUb,2,3,"ng-template",5)(12,HUb,2,5,"ng-template",6);K();J(13,"expandable-tab",
9);D(14,IUb,1,0,"ng-template",4)(15,JUb,1,0,"ng-template",5)(16,MUb,2,3,"ng-template",6);K();J(17,"expandable-tab",10);D(18,NUb,1,0,"ng-template",4)(19,OUb,1,0,"ng-template",5)(20,QUb,2,3,"ng-template",6);K();F(21,VUb,4,1,"expandable-tab",11);F(22,$Ub,4,1,"expandable-tab",12);K()}a&2&&(a=P(),I("tabKeys",b)("expandedTabs",a.initiallyExpandedTabs),x(),I("key",a.TabKeys.IMAGES),x(4),I("key",a.TabKeys.MENTIONED_ISSUES),x(4),I("key",a.TabKeys.LINKS),x(4),I("key",a.TabKeys.SIMILAR_ISSUES),x(4),I("key",
a.TabKeys.DUPES),x(4),G(a.enableNeedsInfoUi?21:-1),x(),G(a.enableComponentRoutingUi?22:-1))},cVb=function(a,b){a&1&&(J(0,"li",3)(1,"div",6),M(2,"b-user-image",7),K(),J(3,"div",8),M(4,"b-user-display",9)(5,"b-formatted-date-time",10),J(6,"p",11),R(7," Formatting: "),J(8,"code",12),R(9),K()(),M(10,"br"),J(11,"span",13)(12,"b-person-hovercard",14),U(13,"omitObfuscatedEmail"),R(14),U(15,"appendDomain"),K()(),R(16),K(),J(17,"pre"),R(18),K()());a&2&&(a=b.$implicit,b=b.$index,x(2),I("email",a.author==null?
null:a.author.emailAddress),x(2),I("model",a.author),x(),I("timestamp",a.updateTime),x(4),T(" ",a.formattingMode," "),x(3),I("email",V(13,8,a.author==null?null:a.author.emailAddress)),x(2),T(" <",V(15,10,a.author==null?null:a.author.emailAddress),"> "),x(2),T(" #",b+1," "),x(2),wh(a.updateText))},dVb=function(a){if(a&1){var b=t();J(0,"button",9);N("click",function(){u(b);var c=P(3);return w(c.editStatusUpdate())});R(1," Edit ");K()}},eVb=function(a){a&1&&(J(0,"header",4)(1,"h4",6),R(2,"Status Update"),
K(),J(3,"p",7),R(4,"No update yet."),K(),F(5,dVb,2,0,"button",8),U(6,"async"),K());a&2&&(a=P(2),x(5),G(V(6,1,a.showEditButton$)?5:-1))},gVb=function(a){if(a&1){var b=t();J(0,"button",18);N("click",function(){u(b);var c=P(4);return w(fVb(c))});R(1," Mark as fresh ");K()}},hVb=function(a){if(a&1){var b=t();J(0,"button",16);N("click",function(){u(b);var c=P(3);return w(c.editStatusUpdate())});R(1," Edit ");K();F(2,gVb,2,0,"button",17);U(3,"async")}a&2&&(a=P(3),x(2),G(V(3,1,a.freshnessIndicator$)===a.Freshness.STALE?
2:-1))},iVb=function(a){a&1&&M(0,"mat-icon",19)},jVb=function(a,b){a&1&&(F(0,iVb,1,0,"mat-icon",19),U(1,"async"),R(2," Updated by "),J(3,"span",20),R(4),U(5,"shortenEmail"),K(),M(6,"b-formatted-date-time",21),J(7,"onedev-hovercard",null,0),M(9,"b-issue-person-card",22),K());if(a&2){a=Q(8);var c=P(3);G(V(1,5,c.freshnessIndicator$)===c.Freshness.FRESH?0:-1);x(3);I("onedevHovercardTrigger",a);x();var d;T(" ",V(5,7,(d=b.author==null?null:b.author.emailAddress)!=null?d:"")," ");x(2);I("timestamp",b.updateTime);
x(3);var e;I("email",(e=b.author==null?null:b.author.emailAddress)!=null?e:"")}},kVb=function(a,b){a&1&&M(0,"b-actions-menu",14);a&2&&I("buttonLabel","Status Update actions")("menuItems",b)},lVb=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",V(1,4,c.accessLevel$))("note",b)("formattingMode",(d=V(2,6,c.formattingMode$))!=null?d:c.FormattingMode.PLAIN)}},mVb=function(a){if(a&1){var b=t();J(0,"button",25);
N("click",function(){u(b);var c=P(4);return w(c.isCollapsed=!1)});R(1," Show More ");K()}},nVb=function(a){a&1&&(J(0,"div",15)(1,"div",null,1),F(3,lVb,3,8,"b-note-container",23),U(4,"async"),K(),F(5,mVb,2,0,"button",24),K());if(a&2){var b;a=P(3);x();uh("collapsed",a.isCollapsed);x(2);G((b=V(4,4,a.statusUpdateAsNote$))?3:-1,b);x(2);G(a.isCollapsed?5:-1)}},oVb=function(a){a&1&&(J(0,"div",5)(1,"header",10)(2,"div",11)(3,"h4",12),R(4,"Status Update"),K(),F(5,hVb,4,3),U(6,"async"),K(),J(7,"div",13),F(8,
jVb,10,9),U(9,"async"),F(10,kVb,1,2,"b-actions-menu",14),U(11,"async"),K()(),F(12,nVb,6,6,"div",15),U(13,"async"),K());if(a&2){var b,c,d;a=P(2);x(5);G(V(6,4,a.showEditButton$)?5:-1);x(3);G((b=V(9,6,a.statusUpdate$))?8:-1,b);x(2);G((c=V(11,8,a.menuItems$))?10:-1,c);x(2);G((d=V(13,10,a.statusUpdate$))?12:-1,d)}},qVb=function(a,b){a&1&&(J(0,"div"),U(1,"async"),M(2,"mat-icon",3),F(3,eVb,7,3,"header",4),F(4,oVb,14,12,"div",5),K());a&2&&(a=P(),vh(Dh("carded margin-s-sides margin-s-bottom bg-main highlighted-left flex-kids-x ",
V(1,9,a.semanticClass$))),uh("display-none",Hh(11,pVb,a.UiState.LOADING).includes(b))("short-height",a.UiState.EMPTY===b),x(3),G(b===a.UiState.EMPTY?3:-1),x(),G(b===a.UiState.NORMAL?4:-1))},rVb=function(a){switch(a){case 1:return"noUpdate";case 2:return"hasUpdate";case 0:return"";default:return""}},sVb=function(a){a&1&&M(0,"llm-suggested-bug-fix",6);a&2&&(a=P(),I("issueId",a))},tVb=function(a,b){a&1&&(M(0,"issue-description-area",5)(1,"b-insights-enrichments",null,0),U(3,"async"),M(4,"status-update",
6),F(5,sVb,1,1,"llm-suggested-bug-fix",6),M(6,"b-issue-description",7));if(a&2){a=Q(2);var c=P();I("id",b);x();uh("hidden",!V(3,6,a.shouldShowInsights$));x(3);I("issueId",b);x();G(c.enableTailwind?5:-1);x();I("id",b)}},uVb=function(a,b){a&1&&(M(0,"issue-summary-card",8,1),U(2,"async"));a&2&&(a=Q(1),uh("hidden",!V(2,3,a.shouldShowSummaryCard$)),I("issueId",b))},vVb=function(a){a&1&&M(0,"issue-event-list",10);a&2&&(a=P(),I("id",a))},wVb=function(a){a&1&&M(0,"issue-event-list",10);a&2&&(a=P(),I("id",
a))},xVb=function(a,b){a&1&&(J(0,"div",9),M(1,"b-event-stream-header"),F(2,vVb,1,1,"issue-event-list",10),M(3,"b-post-comment",6),F(4,wVb,1,1,"issue-event-list",10),K());a&2&&(a=P(),uh("recent-first",a.showRecentEventsFirst),x(2),G(a.showRecentEventsFirst?-1:2),x(),I("issueId",b),x(),G(a.showRecentEventsFirst?4:-1))},yVb=function(a){a&1&&(J(0,"section")(1,"h4"),M(2,"mat-icon",1),R(3),K(),M(4,"inline-images-summary",2)(5,"br")(6,"hr",3),K());if(a&2){a=P(2);var b=P();x(3);T(" Screenshots (",a.length,
") ");x();I("issueId",b.issueId)("imageLinks",a)("paginate",!0)}},zVb=function(a){a&1&&F(0,yVb,7,4,"section");a&2&&(a=P(),G(a.length?0:-1))},AVb=function(a){a&1&&F(0,zVb,1,1);a&2&&(a=P(2),G(a.isInternalSession?0:-1))},BVb=function(a){a&1&&(J(0,"section")(1,"h4"),M(2,"mat-icon",4),R(3),K(),M(4,"b-mentioned-issues",5)(5,"br")(6,"hr",3),K());if(a&2){a=P();var b=P();x(3);T(" Mentioned issues (",a.length,") ");x();I("issueReferences",a)("currentIssueId",b.issueId)("paginate",!0)}},CVb=function(a,b){a&
1&&F(0,BVb,7,4,"section");a&2&&G(b.length?0:-1)},DVb=function(a){a&1&&(J(0,"section")(1,"h4"),M(2,"mat-icon",6),R(3),K(),M(4,"related-links-widget",7),K());if(a&2){a=P();var b=P();x(3);T(" Links (",a.length,") ");x();I("links",a)("issueId",b.issueId)("paginate",!0)}},EVb=function(a,b){a&1&&F(0,DVb,5,4,"section");a&2&&G(b.length?0:-1)},FVb=function(a){a&1&&(F(0,AVb,1,1),U(1,"async"),F(2,CVb,1,1),U(3,"async"),F(4,EVb,1,1),U(5,"async"));if(a&2){var b,c,d;a=P();G((b=V(1,3,a.imageLinks$))?0:-1,b);x(2);
G((c=V(3,5,a.issueReferences$))?2:-1,c);x(2);G((d=V(5,7,a.otherLinks$))?4:-1,d)}},GVb=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))}},HVb=function(a){if(a&1){var b=t();Pg(0,GVb,1,3,"b-package-mentions-listing",2,Og);J(2,"p",3)(3,"a",4);N("click",function(){u(b);var c=P(3);return w(c.trackSqueegeeClick())});R(4,"View in Squeegee");K()()}a&2&&(a=P(),Qg(a.mentions.packageMentionSet),
x(3),I("href",a.link,hf))},IVb=function(a){a&1&&(J(0,"div",1),M(1,"img",5),J(2,"p",6),R(3," This issue has no TODOs "),K(),J(4,"p",7),R(5," Buganizer uses a separate service to look for TODOs in the codebase. It didn't find any. "),J(6,"a",8),R(7,"Learn more"),K()()());a&2&&(a=P(3),x(),I("src",a.ROBOT_SLEEPING,hf))},JVb=function(a,b){a&1&&F(0,HVb,5,1)(1,IVb,8,1,"div",1);a&2&&G(b.mentions&&b.mentions.totalMentions>0?0:1)},KVb=function(a){a&1&&(F(0,JVb,2,1),U(1,"async"));if(a&2){var b;a=P();G((b=V(1,
1,a.codeMentionsState$))?0:-1,b)}},LVb=function(a){a&1&&M(0,"b-spinner",4);a&2&&I("large",!0)},MVb=function(a){a&1&&M(0,"b-hotlist-grid",5);a&2&&(a=P(),I("hotlists",a.hotlists))},NVb=function(a){a&1&&(J(0,"div",6),M(1,"b-spinner"),J(2,"span"),R(3),K()());a&2&&(a=P(),x(3),T(" Searching",a.query?" for "+a.query:"","..."))},OVb=function(a){a&1&&R(0," No issues match your search. ")},PVb=function(a){a&1&&R(0," Use search box to find issues. ")},RVb=function(a){a&1&&(J(0,"a",10),R(1," Click to see all open issues"),
K());a&2&&I("queryParams",Gh(1,QVb))},SVb=function(a){a&1&&(J(0,"a",11),R(1,"Learn more about searching"),K())},TVb=function(a){a&1&&(J(0,"div",7),M(1,"img",9),F(2,OVb,1,0)(3,PVb,1,0),F(4,RVb,2,2,"a",10)(5,SVb,2,0,"a",11),K());a&2&&(a=P(),I("bFocus",!0),x(),I("src",a.SPACE_EMPTY_STATE,hf),x(),G(a.query?2:3),x(2),G(a.currentTracker?4:5))},UVb=function(a){if(a&1){var b=t();J(0,"div",8)(1,"b-issues-grid",12);N("init",function(c){u(b);var d=P();return w(d.resultsGrid=c)});Ah("columnsChange",function(c){u(b);
var d=P();zh(d.issueColumns,c)||(d.issueColumns=c);return w(c)});N("columnsChange",function(){u(b);var c=P();return w(c.onColumnsChange())})("sortChange",function(c){u(b);var d=P();return w(d.setSort(c.field,c.direction))})("rowClick",function(c){u(b);var d=P();return w(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){u(b);var c=P();return w(ws(c,c.page,1))})("onPrevPage",function(){u(b);var c=P();return w(ws(c,c.page,-1))});K()()}a&2&&(a=P(),x(),I("searchResults",a.searchResults)("focusedRowIndex",
a.focusedRowIndex),yh("columns",a.issueColumns),I("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort())("enableSidebar",!0))},VVb=function(a){a&1&&(J(0,"div",3)(1,"h2"),R(2,"Manage SLOs"),K(),J(3,"p",5),R(4,"You have admin rights for all SLOs listed below."),K()())},WVb=function(a){a&1&&M(0,"b-spinner",4);a&2&&I("large",!0)},XVb=function(a){a&1&&M(0,"b-slo-grid",6);a&2&&(a=P(2),I("slos",a.activeSlos))},YVb=function(a){a&1&&(J(0,"div",7),R(1,"You have no Active SLOs"),K())},ZVb=function(a){a&
1&&M(0,"b-slo-grid",6);a&2&&(a=P(3),I("slos",a.archivedSlos))},$Vb=function(a){a&1&&(J(0,"p",12),R(1," You have no archived SLOs. "),K())},aWb=function(a){a&1&&(J(0,"div",11),F(1,ZVb,1,1,"b-slo-grid",6)(2,$Vb,2,0,"p",12),K());a&2&&(a=P(2),x(),G(a.archivedSlos.length?1:2))},bWb=function(a){if(a&1){var b=t();F(0,XVb,1,1,"b-slo-grid",6)(1,YVb,2,0,"div",7);J(2,"button",8);N("click",function(){u(b);var c=P();c.areArchivedSlosExpanded=!c.areArchivedSlosExpanded;return w()});J(3,"h4",9);M(4,"mat-icon",10);
R(5);K()();F(6,aWb,3,1,"div",11)}a&2&&(a=P(),G(a.activeSlos.length?0:1),x(4),uh("rotate-180",a.areArchivedSlosExpanded),I("svgIcon","arrow-dropdown"),x(),T(" Archived SLOs (",a.archivedSlos.length,") "),x(),G(a.areArchivedSlosExpanded?6:-1))},cWb=function(a,b){a&1&&(J(0,"div"),M(1,"mat-checkbox",19),R(2),K());if(a&2){var c=b.$implicit;a=P(2);b=c.key;c=c.value;x();I("formControl",c);x();T(" ",a.issueTypeToDisplay(b)," ")}},eWb=function(a){a&1&&(J(0,"div",5),Pg(1,cWb,3,2,"div",null,dWb),U(3,"keyvalue"),
K());a&2&&(a=P(),x(),Qg(V(3,0,a.issueTypesForms)))},fWb=function(a){a&1&&(J(0,"th",20),R(1," Field ID"),K())},gWb=function(a,b){a&1&&(J(0,"td",21)(1,"strong"),R(2),K()());a&2&&(a=b.$implicit,x(2),wh(a.key))},hWb=function(a){a&1&&(J(0,"th",20),R(1," Name"),K())},iWb=function(a,b){a&1&&(J(0,"td",21),R(1),K());if(a&2){var c;a=b.$implicit;b=P();x();T(" ",(c=b.customFieldsMap.get(a.key))==null?null:c.name," ")}},jWb=function(a){a&1&&(J(0,"th",20),R(1," Description"),K())},kWb=function(a,b){a&1&&(J(0,"td",
21),R(1),K());if(a&2){var c;a=b.$implicit;b=P();x();T(" ",(c=b.customFieldsMap.get(a.key))==null?null:c.description," ")}},lWb=function(a){a&1&&(J(0,"th",20),R(1," Visibility"),K())},mWb=function(a,b){a&1&&(J(0,"td",21)(1,"mat-select",22)(2,"mat-option",23),R(3,"Visible"),K(),J(4,"mat-option",23),R(5,"Hidden"),K()()());a&2&&(a=b.$implicit,x(),I("formControl",a.value),x(),I("value",!0),x(2),I("value",!1))},nWb=function(a){a&1&&M(0,"tr",24)},oWb=function(a){a&1&&M(0,"tr",25)},pWb=function(a,b){a&1&&
(J(0,"td",19)(1,"strong"),R(2),K()());a&2&&(a=b.$implicit,Lg("colspan",4),x(2),wh(a.text))},qWb=function(a){a&1&&(J(0,"th",20),R(1," Name"),K())},rWb=function(a,b){a&1&&(J(0,"td",19),R(1),K());a&2&&(a=b.$implicit,b=P(),Lg("colspan",b.isOwnDefaultRow(0,a)?3:b.isInheritedDefaultRow(0,a)?2:1),x(),T(" ",a.name," "))},sWb=function(a){a&1&&(J(0,"th",20),R(1," Applicable Issue Types"),K())},uWb=function(a,b){a&1&&(J(0,"td",19),R(1),K());a&2&&(a=b.$implicit,b=P(),Lg("colspan",b.isOwnDefaultRow(0,a)||b.isOwnTypedRow(0,
a)?2:1),x(),T(" ",tWb(a.issueTypes)," "))},vWb=function(a){a&1&&(J(0,"th",20),R(1," Inherited From"),K())},wWb=function(a){a&1&&(Wg(0),M(1,"b-component-card",25,3),Xg());if(a&2){a=Q(2);P();var b=bh(1);x();I("onedevIsHovercardReady",a.init)("componentId",b.toString())}},xWb=function(a,b){a&1&&(J(0,"td",19),$g(1),J(2,"div",21)(3,"div",22),R(4,"Inherited From"),K(),J(5,"a",23),R(6),K(),J(7,"onedev-hovercard",null,2),D(9,wWb,3,2,"ng-container",24),K()()());if(a&2){var c=b.$implicit;a=Q(8);b=P();x();c=
ah(c.owningComponentId);var d=b.componentIdsToPaths[c];x(4);I("onedevHovercardTrigger",a)("href",b.ROUTES.editComponentFieldConfigurations.makeHref(c),hf);Lg("aria-label","Inherited from "+d);x();T(" ",d," ")}},yWb=function(a){a&1&&(J(0,"th",20),R(1," Actions"),K())},BWb=function(a){if(a&1){var b=t();J(0,"button",28);N("click",function(){u(b);var c=P().$implicit,d=P();return w(zWb(d,c))});R(1," Edit ");K();J(2,"button",29);N("click",function(){u(b);var c=P().$implicit,d=P();return w(AWb(d,c))});R(3,
" Delete ");K()}a&2&&(a=P(2),I("disabled",!a.isAdmin),x(2),I("disabled",!a.isAdmin))},CWb=function(a){a&1&&(J(0,"button",27),R(1," Create Copy "),K());a&2&&(a=P(2),I("disabled",!a.isAdmin))},DWb=function(a,b){a&1&&(J(0,"td",19)(1,"div",26),F(2,BWb,4,2),F(3,CWb,2,1,"button",27),K()());a&2&&(a=b.$implicit,x(2),G(a.inherited?-1:2),x(),G(a.isDefault?-1:3))},EWb=function(a){a&1&&M(0,"tr",30)},FWb=function(a){a&1&&M(0,"tr",31)},GWb=function(a){a&1&&M(0,"tr",31)},HWb=function(a){a&1&&M(0,"tr",31)},IWb=function(a){a&
1&&M(0,"tr",31)},JWb=function(a){a&1&&M(0,"tr",32)},KWb=function(a,b){a&1&&(J(0,"div",33),R(1),K(),J(2,"div",34)(3,"button",35),R(4," Cancel "),K(),J(5,"button",36),R(6," Confirm "),K()());a&2&&(a=b.$implicit,x(),T(' Are you sure you want to delete the config "',a.name,'"? '),x(2),I("mat-dialog-close",!1),x(2),I("mat-dialog-close",!0))},LWb=function(a,b){a&1&&(J(0,"div",33),R(1),K(),J(2,"div",34)(3,"button",37),R(4," Cancel "),K(),J(5,"button",37),R(6," Don't Save "),K(),J(7,"button",38),R(8," Save "),
K()());a&2&&(a=b.$implicit,x(),T(' Do you want to save changes to configuration "',a.name,'" before closing? '),x(2),I("mat-dialog-close",void 0),x(2),I("mat-dialog-close",!1),x(2),I("mat-dialog-close",!0))},MWb=function(a){a&1&&(J(0,"p"),R(1,"Team inheritance path:"),K(),M(2,"b-team-breadcrumb",0));a&2&&(a=P(),x(2),I("teamPath",a.teamPath))},NWb=function(a){a&1&&(J(0,"p"),R(1,"Component inheritance path:"),K(),M(2,"b-component-breadcrumb",1));a&2&&(a=P(),x(2),I("componentPathInfo",a.componentPath))},
OWb=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},RWb=function(a){return{approximateSize:Uc(xk(a,2)),groupEmail:Rc(a,1),sizeCategory:PWb[pk(a,3)],permissionCategory:QWb[pk(a,5)]}},TWb=function(a){a=Sj(a,SWb,1,Bj(),Nc);return{groupMetadata:(a!=null?a:[]).map(RWb)}},VWb=function(a,b){var c=[];if(!b||!a)return c;for(var d=l(UWb),e=d.next();!e.done;e=d.next()){e=e.value;var f=lj(e.accessor(b)||[],e.accessor(a)||[]);f.length&&c.push({field:e.field,
addedPrincipals:f})}return c},XWb=function(a,b){if(!a.appenders||!b||gj(b.appenders,a.appenders))return!1;a=l(a.appenders||[]);for(var c=a.next();!c.done;c=a.next())if(c=c.value,WWb.has(c)&&!b.appenders.includes(c))return!0;return!1},YWb=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},ZWb=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"},$Wb=function(a){if(a.size===0)return Jr;for(var b=a.size===1?$i("p",{},"The following large group is added: "):$i("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($i("p",{},Zi([$i("b",{},e)," has approximately ",
$i("b",{},f)," Googlers."])))}return Zi([b].concat(p(c)))},aXb=function(a){if(a.size===0)return Jr;var b=a.size===1?$i("p",{},"The following open group is added: "):$i("p",{},"The following open groups are added: "),c=[];a=l(a.keys());for(var d=a.next();!d.done;d=a.next())c.push($i("p",{},$i("b",{},d.value)));return Zi([b].concat(p(c)))},bXb=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},cXb=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},dXb=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},
xs=function(a){var b=a.split(":");a=b[0];return a==="ALIAS"?(b=b[1],{value:b,displayText:usa(b),principalType:a,detailedUserType:null}):{value:b[1],displayText:b[1],principalType:a,detailedUserType:null}},eXb=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))},fXb=function(a,b){a&1&&(J(0,"tr",2)(1,"th",3),R(2),K(),J(3,"td"),Pg(4,eXb,
1,5,"b-contact-chip",4,Og),K()());a&2&&(a=b.$implicit,x(2),wh(a.permission),x(2),Qg(a.principals))},jXb=function(a){var b="minimal";b=b===void 0?"expanded":b;a=gXb(a);a=xsa(a,function(c){c=hXb(c);return iXb(c,b)});return gXb(a)},lXb=function(a){a=gXb(a);a=xsa(a,function(b){b=kXb(b);return hXb(b)});return gXb(a)},iXb=function(a,b){var c=b==="expanded"?mXb:nXb;return new Set([].concat(p(a)).flatMap(function(d){return[].concat(p(c.get(d)))}))},kXb=function(a){return new Set(oXb.filter(function(b){return $ra(a,
nXb.get(b))}))},hXb=function(a){a=iXb(a,"expanded");var b=kXb(a);return new Set([].concat(p(b)).filter(function(c){return[].concat(p(pXb.get(c))).every(function(d){return!b.has(d)})}))},gXb=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},rXb=function(){function a(f,h){c.has(f)||c.set(f,new Set);
var k=c.get(f);k.add(h);var q;h=l((q=b.get(h))!=null?q:[]);for(q=h.next();!q.done;q=h.next())q=q.value,k.has(q)||a(f,q)}var b=qXb,c=new Map,d=[].concat(p(b.values())).flatMap(function(f){return[].concat(p(f))});d=l(new Set([].concat(p(b.keys()),p(d))));for(var e=d.next();!e.done;e=d.next())e=e.value,a(e,e);return c},sXb=function(a){var b=jXb(new Map([["componentAdmin",new Set(a.componentAdmin)],["issueAdmin",new Set(a.issueAdmin)],["issueEditor",new Set(a.editor)],["issueContributor",new Set(a.contributor)],
["componentAdminOnly",new Set(a.componentAdminOnly)],["issueCreator",new Set(a.createIssuesOnly)],["issueAdminOnly",new Set(a.issueAdminOnly)],["issueEditorExisting",new Set(a.editExistingIssuesOnly)],["issueCommenter",new Set(a.commentOnly)],["restrictedPlusViewer",new Set(a.viewRestrictedPlus)],["restrictedViewer",new Set(a.viewRestricted)],["issueViewer",new Set(a.viewer)]])),c=function(d){var e;return[].concat(p((e=b.get(d))!=null?e:[])).sort()};return{componentPermissions:{inheritedAdmins:a.inheritedComponentAdmin,
admins:c("componentAdmin"),appenders:c("componentAppender")},issuesPermissions:{admins:c("issueAdmin"),editors:c("issueEditor"),appenders:c("issueAppender"),readers:c("issueReader"),restrictedReaders:c("issueRestrictedReader"),restrictedPlusReaders:c("issueRestrictedPlusReader")}}},tXb=function(a){var b=a.componentAccessPolicy;a=a.issueAccessPolicy;return sj([].concat(p(b?[].concat(p(b.inheritedAdmins||[]),p(b.admins||[]),p(b.appenders||[])):[]),p(a?[].concat(p(a.admins||[]),p(a.editors||[]),p(a.appenders||
[]),p(a.readers||[]),p(a.restrictedReaders||[]),p(a.restrictedPlusReaders||[])):[]))).sort()},vXb=function(a){function b(e){var f;return[].concat(p((f=d.get(e))!=null?f:[])).sort()}if(!a)return uXb;var c=a.issueAccessPolicy;a=a.componentAccessPolicy;var d=lXb(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}},wXb=function(a,b){var c;(c=!b)||(c=!(!gj([].concat(p(b.admins)).sort(),[].concat(p(a.admins)).sort())||!gj([].concat(p(b.appenders)).sort(),[].concat(p(a.appenders)).sort())||!gj(b.implicitAccess,a.implicitAccess)));return!c},xXb=function(a,b){return b&&a?!gj([].concat(p(a.admins)).sort(),[].concat(p(b.admins)).sort())||!gj([].concat(p(a.editors)).sort(),[].concat(p(b.editors)).sort())||!gj([].concat(p(a.appenders)).sort(),[].concat(p(b.appenders)).sort())||
!gj([].concat(p(a.readers)).sort(),[].concat(p(b.readers)).sort())||!gj([].concat(p(a.restrictedReaders)).sort(),[].concat(p(b.restrictedReaders)).sort())||!gj([].concat(p(a.restrictedPlusReaders)).sort(),[].concat(p(b.restrictedPlusReaders)).sort()):!1},yXb=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,!Jsa(a[d],b[d]))return!0;return!1},zXb=function(a){if(a&1){var b=t();J(0,"input",15);Ah("ngModelChange",function(c){u(b);var d=P(2);zh(d.rolesEditor.component.accessLimit.accessLevel,
c)||(d.rolesEditor.component.accessLimit.accessLevel=c);return w(c)});K()}a&2&&(a=P(2),I("disabled",!a.rolesEditor.isAdmin),yh("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},AXb=function(a){if(a&1){var b=t();J(0,"input",16);Ah("ngModelChange",function(c){u(b);var d=P(2);zh(d.rolesEditor.component.accessLimit.accessLevel,c)||(d.rolesEditor.component.accessLimit.accessLevel=c);return w(c)});K()}a&2&&(a=P(2),I("disabled",!a.rolesEditor.isAdmin||!a.isParentPartner()),yh("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},
BXb=function(a){if(a&1){var b=t();J(0,"input",17);Ah("ngModelChange",function(c){u(b);var d=P(2);zh(d.rolesEditor.component.accessLimit.accessLevel,c)||(d.rolesEditor.component.accessLimit.accessLevel=c);return w(c)});K()}a&2&&(a=P(2),I("disabled",!a.rolesEditor.isAdmin||!a.isParentPublic()),yh("ngModel",a.rolesEditor.component.accessLimit.accessLevel))},CXb=function(a,b){a&1&&(J(0,"p",14)(1,"a",18),R(2," Learn more "),K()());a&2&&(x(),I("href",b,hf))},DXb=function(a){a&1&&(J(0,"div",0)(1,"div",3)(2,
"span",4),R(3,"Component visibility: "),K()(),J(4,"div",5)(5,"div",6),F(6,zXb,1,2,"input",7),J(7,"label",8),R(8),K()(),J(9,"div",6),F(10,AXb,1,2,"input",9),J(11,"label",10),R(12),K()(),J(13,"div",11),F(14,BXb,1,2,"input",12),J(15,"label",13),R(16),K()()(),F(17,CXb,3,1,"p",14),K());if(a&2){var b;a=P();x(6);G(a.rolesEditor.component&&a.rolesEditor.component.accessLimit?6:-1);x(2);T(" ",r8a(a.AccessLevelStrings.INTERNAL)," ");x(2);G(a.rolesEditor.component&&a.rolesEditor.component.accessLimit?10:-1);
x(2);T(" ",r8a(a.AccessLevelStrings.EXTERNAL_PARTNER)," ");x(2);G(a.rolesEditor.component&&a.rolesEditor.component.accessLimit?14:-1);x(2);T(" ",r8a(a.AccessLevelStrings.EXTERNAL_PUBLIC)," ");x();G((b=NYa(a.documentationLinks))?17:-1,b)}},IXb=function(a,b){if(a&1){var c=t();J(0,"tr")(1,"td")(2,"div",1)(3,"div",2)(4,"label",3);R(5);K();J(6,"button",4);M(7,"mat-icon",5);K()();J(8,"b-multi-user-input",6);N("usersChange",function(e){var f=u(c).$implicit,h=P();return w(h.updateRolesMap(f.roleType,e))})("isValid",
function(e){var f=u(c).$implicit,h=P();h.aclFormValidity.set(f.roleType,e);e=[].concat(p(h.aclFormValidity.values())).every(Boolean);h.formIsValid.emit(e);return w()});K()()();J(9,"td");M(10,"b-icon",7);K();J(11,"td");M(12,"b-icon",7);K();J(13,"td");M(14,"b-icon",7);K();J(15,"td");M(16,"b-icon",7);K();J(17,"td");M(18,"b-icon",7);K();J(19,"td");M(20,"b-icon",7);K();J(21,"td");M(22,"b-icon",7);K();J(23,"td");M(24,"b-icon",7);K()()}if(a&2){a=b.$implicit;b=P();x(2);uh("bv2-edit-resource-readonly",b.canEdit);
x(2);I("htmlFor",a.roleType);x();wh(a.label);x();I("matTooltip",a.tooltip);x(2);I("idForInputBox",a.roleType)("users",a.users);Kg("ariaLabel",a.ariaLabel);var d;I("accessLevel",b.accessLevel)("customValidators",(d=a.customValidators)!=null?d:Gh(22,EXb))("includeAliases",a.includeAliases)("includeViewAliases",a.includeViewAliases)("containerChips",(a.chips==null?0:a.chips.values)&&a.chips.values.length>0?Hh(26,FXb,Ih(23,GXb,a.chips.displayText,a.chips.values)):Gh(28,HXb));Lg("disabled",b.canEdit?null:
!0);x(2);I("name",b.getIconName(a,"componentAdmin"));x(2);I("name",b.getIconName(a,"createIssues"));x(2);I("name",b.getIconName(a,"issueAdmin"));x(2);I("name",b.getIconName(a,"issueEditor"));x(2);I("name",b.getIconName(a,"issueCommenter"));x(2);I("name",b.getIconName(a,"issueReader"));x(2);I("name",b.getIconName(a,"restrictedReader"));x(2);I("name",b.getIconName(a,"restrictedPlusReader"))}},JXb=function(a){a&1&&(J(0,"div",0),M(1,"b-spinner"),K())},LXb=function(a){if(a&1){var b=t();J(0,"div")(1,"div",
1)(2,"mat-tab-group",2);N("selectedIndexChange",function(c){u(b);var d=P();return w(d.tabChange(c))});J(3,"mat-tab",3)(4,"roles-view",4);N("saveRolesMap",function(c){u(b);var d=P();KXb(d.rolesEditor,c);return w()});K()();J(5,"mat-tab",5);M(6,"permissions-view",6);K()()()()}a&2&&(a=P(),x(2),I("selectedIndex",a.selectedTabIndex),x(2),I("rolesMap",a.rolesEditor.rolesMap)("isSaving",a.isSaving())("component",a.rolesEditor.component)("rolesEditor",a.rolesEditor),x(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))},NXb=function(a){if(a&1){var b=t();J(0,"b-button",20,1);N("onAction",function(){u(b);var c=P(3);return w(MXb(c))});R(2);K()}a&2&&(a=P(3),I("disabled",a.isSaving()),x(2),T(" ",a.archiveAction," Component "))},OXb=function(a){if(a&1){var b=t();
J(0,"b-button",21);N("onAction",function(){u(b);var c=P(3);return w(c.createIssue())});R(1," Create Issue ");K()}a&2&&(a=P(3),I("tooltip",a.isArchived()?"Cannot create issue in archived component":"")("disabled",a.isArchived()))},PXb=function(a){a&1&&(J(0,"a",17),R(1," Browse Components "),K(),F(2,NXb,3,2,"b-button",18),F(3,OXb,2,2,"b-button",19));a&2&&(a=P(2),I("routerLinkObj",a.componentListRoute(a.component.componentId)),x(2),G(a.isAdmin()?2:-1),x(),G(a.isAnonymous?-1:3))},QXb=function(a){a&1&&
(J(0,"div",16),M(1,"b-spinner"),K())},RXb=function(a){a&1&&(J(0,"span",23),R(1," (archived) "),K())},SXb=function(a){a&1&&Yg(0)},TXb=function(a){a&1&&Yg(0)},UXb=function(a){a&1&&Yg(0)},VXb=function(a){a&1&&Yg(0)},WXb=function(a){a&1&&(J(0,"mat-tab",35),D(1,VXb,1,0,"ng-container",32),K());if(a&2){P();a=Q(31);var b=P(2);I("id",b.tabsService.Tab.FIELD_CONFIGURATION);x();I("ngTemplateOutlet",a)}},XXb=function(a){a&1&&Yg(0)},YXb=function(a){a&1&&Yg(0)},$Xb=function(a){if(a&1){var b=t();J(0,"div",54)(1,
"div",46)(2,"label",70)(3,"span",43);R(4,"Parent Component");K()();J(5,"span",48)(6,"div",71)(7,"strong");R(8,"Careful!");K();R(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. ");J(10,"div",50);M(11,"div",51)(12,"div",52);K()()()();J(13,"b-team-component-picker",72);N("selectedComponentChange",function(c){u(b);
var d=P(4);return w(d.parentComponent=c!=null?c:null)});K()()}a&2&&(a=P(4),x(2),uh("required",a.isParentComponentRequired&&!ZXb(a)),x(11),I("selectedComponent",a.parentComponent)("placeholder","Choose Component")("isRequired",a.isParentComponentRequired&&!ZXb(a)))},aYb=function(a){a&1&&(J(0,"a",60),R(1," Learn more "),K());a&2&&(P(4),I("href",LMb(),hf))},bYb=function(a){if(a&1){var b=t();J(0,"div",73)(1,"label",74)(2,"span",43);R(3,"Retention Settings");K()();J(4,"div",75)(5,"p");R(6,"Please choose a period of time to retain the data stored in this component.");
M(7,"br");J(8,"a",76);R(9," Learn more ");K()()();J(10,"div",77)(11,"b-retention-settings-form",78);N("modelChange",function(c){u(b);var d=P(4);return w(d.component.retentionSettings=c)})("validChange",function(c){u(b);P(4).retentionIsValid=c;return w()});K()()()}a&2&&(a=P(4),uh("bv2-edit-resource-readonly",!a.isAdmin()),x(8),I("href",ys(),hf),x(3),I("issueRetentionDisabled",a.isAccessEditDisabled())("isExternal",a.isExternal())("componentPathInfo",a.component.componentPathInfo)("componentId",a.component.componentId)("initialModel",
a.component.retentionSettings))},dYb=function(a){if(a&1){var b=t();J(0,"div",81)(1,"b-component-team-picker",82);N("modelChange",function(c){u(b);var d=P(5);d.component.team=c;d.componentTeam$.next(d.component.team);d.component.slo.inherit&&cYb(d);return w()});K()()}a&2&&(a=P(5),x(),I("anchorTarget",Ch(a.hasUnsavedChanges()?"_blank":"_self"))("isAdmin",a.isAdmin())("isTopLevel",!a.isParentComponentRequired)("parentModel",a.parentComponent==null?null:a.parentComponent.team)("useInternalLink",!0)("model",
a.component.team))},eYb=function(a){a&1&&(J(0,"div",79)(1,"label",80)(2,"span",43),R(3,"Team Configuration"),K()(),F(4,dYb,2,7,"div",81),K());a&2&&(a=P(4),uh("bv2-edit-resource-readonly",!a.isAdmin()),x(4),G(a.component.team?4:-1))},fYb=function(a){a&1&&(J(0,"a",92),R(1),K());if(a&2){a=P();var b=P(5);I("routerLinkObj",b.getSloManagementLink(a.id));x();var c;T(" ",(c=a.slo==null?null:a.slo.name)!=null?c:a.id," ")}},gYb=function(a){a&1&&R(0," None ")},hYb=function(a,b){a&1&&(J(0,"div",87),R(1," Inherited SLO Policy: "),
F(2,fYb,2,2,"a",92)(3,gYb,1,0),K());a&2&&(x(2),G(b.id!=="0"?2:3))},iYb=function(a){a&1&&(J(0,"a",93),R(1),U(2,"titlecase"),K());a&2&&(a=P(),I("routerLinkObj",a.link),x(),xh(" (",V(2,3,a.type),") ",a.name," "))},jYb=function(a){a&1&&R(0," None ")},kYb=function(a){a&1&&(J(0,"div",95),M(1,"slo-inheritance-breadcrumbs",96),K());a&2&&(a=P(),x(),I("componentPath",a.componentPath)("teamPath",a.teamPath))},lYb=function(a){a&1&&F(0,kYb,2,2,"div",95);a&2&&(a=P(6),G(a.showSloInheritancePath?0:-1))},mYb=function(a,
b){if(a&1){var c=t();J(0,"div",88);R(1," Policy Source: ");F(2,iYb,3,5,"a",93)(3,jYb,1,0);J(4,"button",94);N("click",function(){u(c);var e=P(5);return w(e.showSloInheritancePath=!e.showSloInheritancePath)});R(5);K();F(6,lYb,1,1);U(7,"async");K()}if(a&2){var d;a=P(5);x(2);G(b.link?2:3);x(2);Lg("aria-expanded",a.showSloInheritancePath);x();T(" ",a.showSloInheritancePath?"Hide":"Show"," full path ");x();G((d=V(7,4,a.policySourcePath$))?6:-1,d)}},nYb=function(a){a&1&&(R(0," , "),J(1,"a",97),R(2,"Team Leads"),
K());a&2&&(a=P(6),x(),I("routerLinkObj",{path:"/teams/"+a.component.team.id+"/edit",fragment:a.tabsService.Tab.ACCESS}))},oYb=function(a){a&1&&(J(0,"div",89),R(1," SLO Admins: "),J(2,"a",97),R(3,"Component Admins"),K(),F(4,nYb,3,1),K());a&2&&(a=P(5),x(2),I("routerLinkObj",a.componentPermissions(a.componentId)),x(2),G(a.component.team&&a.component.team.id!=="0"?4:-1))},pYb=function(a){a&1&&(M(0,"mat-icon",98),R(1," on "))},qYb=function(a){a&1&&(M(0,"mat-icon",99),R(1," off "))},rYb=function(a){a&1&&
(R(0," Lock: "),F(1,pYb,2,0),U(2,"async"),Mg(3,qYb,2,0));a&2&&(a=P(5),x(),G(V(2,1,a.sloLocked$)?1:3))},tYb=function(a){if(a&1){var b=t();J(0,"div",91)(1,"mat-checkbox",100);N("change",function(c){u(b);var d=P(5);c=c.checked;d.component.slo.inherit=!c;c||cYb(d);return w()});J(2,"span");R(3,"Override the inherited SLO policy");K()()()}a&2&&(a=P(5),x(),I("checked",!a.component.slo.inherit)("disabled",!sYb(a)))},vYb=function(a){if(a&1){var b=t();J(0,"div",101)(1,"label",107);R(2," Justification ");K();
M(3,"mat-icon",108);J(4,"textarea",109);Ah("ngModelChange",function(c){u(b);var d=P(6);zh(d.component.slo.comment,c)||(d.component.slo.comment=c);return w(c)});K()()}a&2&&(a=P(6),x(4),yh("ngModel",a.component.slo.comment),I("disabled",!uYb(a)))},wYb=function(a){a&1&&(J(0,"a",106),M(1,"mat-icon",110),K());a&2&&(a=P(6),I("target",Ch(a.hasUnsavedChanges()?"_blank":"_self"))("routerLinkObj",a.getSloManagementLink(a.component.slo.id)))},AYb=function(a){if(a&1){var b=t();F(0,vYb,5,2,"div",101);J(1,"mat-slide-toggle",
102);Ah("ngModelChange",function(d){u(b);var e=P(5);zh(e.isEnableSloChecked,d)||(e.isEnableSloChecked=d);return w(d)});N("change",function(d){u(b);var e=P(5);d=d.checked;e.isEnableSloChecked=d;d||(e.component.slo.id="0");return w()});R(2," Enable SLO ");K();J(3,"div",103)(4,"label",104);R(5,"SLO policy");K();J(6,"slo-picker",105);N("onSloSelect",function(d){u(b);var e=P(5);return w(e.onSloChange(d))});K();F(7,wYb,2,3,"a",106);K()}if(a&2){a=P(5);G(xYb(a)?0:-1);x();uh("indented",yYb(a));yh("ngModel",
a.isEnableSloChecked);I("disabled",!zYb(a));x(5);var c;I("bv2Disabled",!a.isEnableSloChecked||!zYb(a))("boundId",(c=a.component.slo.id)!=null?c:null)("bv2Placeholder",a.isEnableSloChecked&&zYb(a)?"Type to search for an SLO":"SLO disabled");x();G(a.component.slo.id&&a.component.slo.id!=="0"?7:-1)}},BYb=function(a){a&1&&(J(0,"div",83)(1,"div",46)(2,"label",84)(3,"span",43),R(4,"SLO Configuration"),K()(),J(5,"span",48)(6,"div",85)(7,"strong"),R(8,"Careful!"),K(),R(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. "),
J(10,"div",50),M(11,"div",51)(12,"div",52),K()()()(),J(13,"div",86),F(14,hYb,4,1,"div",87),U(15,"async"),F(16,mYb,8,6,"div",88),U(17,"async"),F(18,oYb,5,2,"div",89),J(19,"div",90),F(20,rYb,4,3),K()(),F(21,tYb,4,2,"div",91),F(22,AYb,8,9),K());if(a&2){var b,c;a=P(4);uh("bv2-edit-resource-readonly",!uYb(a));x(14);G((b=V(15,8,a.inheritedSlo$))?14:-1,b);x(2);G((c=V(17,10,a.sloPolicySource$))?16:-1,c);x(2);G(a.sessionIsInternal?18:-1);x(2);G(a.enableSloLockingUi?20:-1);x();G(yYb(a)?21:-1);x();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)}},CYb=function(a){if(a&1){var b=t();J(0,"mat-slide-toggle",111);N("change",function(c){u(b);P(4).component.spamProtection=c.checked?"ALL_PROTECTIONS":"NO_PROTECTIONS";return w()});R(1," Enable Spam Protections ");K()}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()))},DYb=function(a){if(a&1){var b=t();J(0,"div",66)(1,"b-button",112);N("onAction",function(){u(b);var c=P(4);return w(c.saveMetadata())});R(2," Update ");K();J(3,"b-button",113);N("onAction",function(){u(b);var c=P(4);return w(c.revertMetadataChanges())});R(4," Revert Changes ");K();J(5,"b-button",113);N("onAction",function(){u(b);var c=P(4);return w(c.createChild())});R(6," Create Child Component ");
K()()}a&2&&(a=P(4),x(),I("disabled",a.isSaving()||!a.hasUnsavedMetadataChanges()),x(2),I("disabled",a.isSaving()||!a.hasUnsavedMetadataChanges()),x(2),I("disabled",a.hasUnsavedMetadataChanges()))},EYb=function(a){if(a&1){var b=t();J(0,"b-button",114);N("onAction",function(){u(b);var c=P(4);return w(c.showUpdateHistoryModal())});R(1," View History ");K()}},FYb=function(a){a&1&&M(0,"b-spinner")},GYb=function(a){if(a&1){var b=t();J(0,"b-component-children-list",115);N("onVisit",function(){u(b);var c=
P(4);return w(c.trackClick("openChildComponent"))});K()}a&2&&(a=P(4),I("children",a.childComponents))},HYb=function(a){a&1&&(J(0,"span"),R(1," No child components. "),K())},JYb=function(a){if(a&1){var b=t();J(0,"div",38)(1,"form",39,8);M(3,"b-error-banner",40);J(4,"div",41)(5,"label",42)(6,"span",43);R(7,"Name");K()();J(8,"input",44);Ah("ngModelChange",function(c){u(b);var d=P(3);zh(d.component.name,c)||(d.component.name=c);return w(c)});K()();J(9,"div",45)(10,"div",46)(11,"label",47)(12,"span",43);
R(13,"Description");K()();J(14,"span",48)(15,"div",49);R(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. ");J(17,"div",50);M(18,"div",51)(19,"div",52);K()()()();J(20,"textarea",53);Ah("ngModelChange",function(c){u(b);var d=P(3);zh(d.component.description,c)||(d.component.description=c);return w(c)});R(21,"                ");K()();F(22,$Xb,14,5,"div",54);J(23,"div",55)(24,"div",56)(25,"mat-checkbox",
57);N("change",function(c){u(b);var d=P(3);return w(d.setCommentEditState(c.checked))});K()();J(26,"div")(27,"strong",58);R(28,"Editable Comments");K();J(29,"div",59);R(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,aYb,2,1,"a",60);K()()();F(33,bYb,12,8,"div",61);F(34,eYb,5,3,"div",62);F(35,BYb,23,12,"div",63);F(36,CYb,2,2,"mat-slide-toggle",64);J(37,"div",65);F(38,DYb,7,3,"div",66);J(39,"div",66);
F(40,EYb,2,0,"b-button",67);K()();J(41,"div",68)(42,"label")(43,"span",43);R(44,"Child Components");K()();F(45,FYb,1,0,"b-spinner");F(46,GYb,1,1,"b-component-children-list",69);F(47,HYb,2,0,"span");K()()()}a&2&&(a=P(3),x(),uh("show-errors",a.error),x(2),I("error",a.error),x(),uh("bv2-edit-resource-readonly",IYb(a)),x(4),yh("ngModel",a.component.name),I("disabled",IYb(a)),x(),uh("bv2-edit-resource-readonly",IYb(a)),x(11),yh("ngModel",a.component.description),I("disabled",IYb(a)),x(2),G(a.isAdmin()?
22:-1),x(),uh("bv2-edit-resource-readonly",a.isAccessEditDisabled()),x(2),I("checked",a.commentEditsEnabled)("disabled",IYb(a)),x(7),G(a.sessionIsExternal?-1:32),x(),G(a.sessionIsExternal?-1:33),x(),G(a.sessionIsInternal?34:-1),x(),G(a.component.slo&&a.sessionIsInternal?35:-1),x(),G(a.sessionIsInternal&&a.getComponentAccessLevel()==="EXTERNAL_PUBLIC"?36:-1),x(2),G(a.isEditorInternal||uYb(a)?38:-1),x(2),G(a.componentHistoryUiEnabled?40:-1),x(5),G(a.childComponents===void 0?45:-1),x(),G(a.childComponents&&
a.childComponents.length>0?46:-1),x(),G(a.childComponents&&a.childComponents.length===0?47:-1))},KYb=function(a){a&1&&(J(0,"div",116),R(1," Standard Fields "),K())},MYb=function(a){if(a&1){var b=t();J(0,"b-component-standard-fields",120);N("updateComponent",function(c){u(b);var d=P(4);return w(LYb(d,c))});K()}a&2&&(a=P(4),I("effortSpec",a.component.effortSpec)("parentEffortSpec",a.parentComponent==null?null:a.parentComponent.effortSpec)("disabled",!a.isEditorInternal))},NYb=function(a){a&1&&(J(0,
"div",118),R(1," Custom Fields "),K())},PYb=function(a){a&1&&(F(0,KYb,2,0,"div",116),F(1,MYb,1,3,"b-component-standard-fields",117),F(2,NYb,2,0,"div",118),M(3,"b-component-custom-fields",119));a&2&&(a=P(3),G(OYb(a)?0:-1),x(),G(OYb(a)?1:-1),x(),G(OYb(a)?2:-1),x(),I("editMode",a.isEditorInternal)("isSaving",a.isSaving())("component",a.component)("parentComponent",a.parentComponent))},RYb=function(a){a&1&&(J(0,"a",122),R(1," Learn more "),K());a&2&&(P(4),I("href",QYb(),hf))},TYb=function(a){if(a&1){var b=
t();J(0,"div",38)(1,"div",121);R(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,RYb,2,1,"a",122);K();J(4,"b-field-reorder",123);N("onReload",function(){u(b);var c=P(3);return w(SYb(c))});K()()}a&2&&(a=P(3),x(3),G(a.sessionIsInternal?3:-1),x(),I("fields",a.effectiveCustomFields)("componentId",a.componentId)("fieldOrdering",a.component.fieldOrdering)("isAdmin",a.isAdmin()))},UYb=function(a){a&1&&(J(0,"div",
38),M(1,"b-field-configuration",124),K());a&2&&(a=P(4),x(),I("isAdmin",a.isAdmin())("componentPathInfo",a.component.componentPathInfo))},VYb=function(a){a&1&&F(0,UYb,2,2,"div",38);a&2&&(a=P(3),G(a.component.componentPathInfo?0:-1))},WYb=function(a){a&1&&M(0,"b-edit-templates",125);a&2&&(a=P(4),I("componentId",a.componentId)("supportCustomFields",!0))},XYb=function(a){a&1&&(J(0,"div"),R(1),K());a&2&&(a=P().$implicit,x(),wh(a.description))},YYb=function(a,b){a&1&&(J(0,"div",126)(1,"label"),R(2),K(),
F(3,XYb,2,1,"div"),J(4,"div")(5,"a",127),R(6),K()()());a&2&&(a=b.$implicit,x(2),wh(a.name),x(),G(a.description?3:-1),x(2),I("href",a.url,hf),Lg("aria-label","Click to open the template "+a.name),x(),wh(a.url))},ZYb=function(a){a&1&&Pg(0,YYb,7,5,"div",126,Og);a&2&&(a=P(4),Qg(a.templates))},$Yb=function(a){a&1&&(J(0,"div",38),F(1,WYb,1,2,"b-edit-templates",125)(2,ZYb,2,0),K());a&2&&(a=P(3),x(),G(a.isEditorInternal?1:2))},bZb=function(a){if(a&1){var b=t();J(0,"role-based-permissions",128);N("onTabChange",
function(c){u(b);var d=P(3).tabsService;d.selectedAccessSubTabIndex=c;aZb(d);return w()});K()}a&2&&(a=P(3),I("tabIndex",a.tabsService.selectedAccessSubTabIndex))},cZb=function(a){if(a&1){var b=t();J(0,"div")(1,"div",22)(2,"h2");R(3);K();F(4,RXb,2,0,"span",23);J(5,"a",24);N("click",function(){u(b);var k=P(2);return w(k.trackClick("recentIssues"))});R(6," (Recent Issues)");K();M(7,"b-component-access-level-indicator",25)(8,"b-tracker-chip-smart",26);K();J(9,"div",27);M(10,"b-component-breadcrumb",28)(11,
"div",29);K();J(12,"mat-tab-group",30);N("selectedIndexChange",function(k){u(b);var q=P(2);return w(q.tabsService.tabChange(k))});J(13,"mat-tab",31);D(14,SXb,1,0,"ng-container",32);K();J(15,"mat-tab",33);D(16,TXb,1,0,"ng-container",32);K();J(17,"mat-tab",34);D(18,UXb,1,0,"ng-container",32);K();F(19,WXb,2,2,"mat-tab",35);J(20,"mat-tab",36);D(21,XXb,1,0,"ng-container",32);K();J(22,"mat-tab",37);D(23,YXb,1,0,"ng-container",32);K()();D(24,JYb,48,26,"ng-template",null,2,Lh)(26,PYb,4,7,"ng-template",null,
3,Lh)(28,TYb,5,5,"ng-template",null,4,Lh)(30,VYb,1,1,"ng-template",null,5,Lh)(32,$Yb,3,1,"ng-template",null,6,Lh)(34,bZb,1,1,"ng-template",null,7,Lh);K()}if(a&2){a=Q(25);var c=Q(27),d=Q(29),e=Q(33),f=Q(35),h=P(2);x(3);xh(" Component ",h.component.componentId,": ",h.currentName," ");x();G(h.isArchived()?4:-1);x();I("routerLinkObj",h.getRecentIssuesLink());x(2);I("accessLevel",h.getComponentAccessLevel());x();I("trackerId",h.component.trackerId);x(2);I("componentPathInfo",h.component.componentPathInfo)("isArchived",
h.isArchived())("label","Parent Component");x(2);I("selectedIndex",h.tabsService.selectedTabIndex);x();I("id",h.tabsService.Tab.BASIC);x();I("ngTemplateOutlet",a);x();I("id",h.tabsService.Tab.CUSTOM_FIELDS)("label",OYb(h)?"Fields":"Custom Fields");x();I("ngTemplateOutlet",c);x();I("id",h.tabsService.Tab.FIELD_ORDERING);x();I("ngTemplateOutlet",d);x();G(h.isFieldConfigurationV2Enabled?19:-1);x();I("id",h.tabsService.Tab.TEMPLATES);x();I("ngTemplateOutlet",e);x();I("id",h.tabsService.Tab.ACCESS);x();
I("ngTemplateOutlet",f)}},dZb=function(a){a&1&&(J(0,"span")(1,"p"),R(2," Archiving a component causes it and its subcomponents and all issues in those components to be hidden from normal use."),M(3,"br"),J(4,"strong"),R(5,"This action cannot be easily reverted."),K(),J(6,"a",133),R(7," Learn more "),K()(),J(8,"p"),R(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"),R(11," so they can be scheduled for deletion. "),
J(12,"a",134),R(13," Learn more "),K()()());a&2&&(P(3),x(6),I("href","http://go/archived-components",hf),x(6),I("href",ys(),hf))},eZb=function(a){a&1&&(J(0,"span")(1,"p"),R(2," Unarchiving a component will NOT cause its subcomponents to be unarchived."),M(3,"br"),R(4," If you need to recursively unarchive subcomponents please use the buganizer_admin tool. "),J(5,"a",135),R(6," Learn more "),K()()());a&2&&(P(3),x(5),I("href","http://go/buganizer-admin",hf))},fZb=function(a,b){a&1&&(J(0,"span")(1,"span"),
R(2),K(),J(3,"span"),R(4," : "),J(5,"b"),R(6),K()(),M(7,"br"),K());a&2&&(a=b.$implicit,b=P(4),x(2),wh(a.componentPath),x(),uh("b-archive-warning-indef",!a.retentionSettings.retentionPeriodDays),x(3),wh(b.getRetentionPeriod(a)))},gZb=function(a){a&1&&(J(0,"span"),Pg(1,fZb,8,4,"span",null,Og),K());a&2&&(a=P(3),x(),Qg(a.descendants))},hZb=function(a){a&1&&(J(0,"span")(1,"span"),R(2),K()());a&2&&(a=P(3),x(2),wh(a.descendants[0].componentPath))},iZb=function(a){if(a&1){var b=t();J(0,"h2",129);R(1);K();
J(2,"mat-dialog-content");F(3,dZb,14,2,"span");F(4,eZb,7,1,"span");J(5,"p");R(6," The following components will be affected: ");K();J(7,"div",130);F(8,gZb,3,0,"span");F(9,hZb,3,1,"span");K()();J(10,"mat-dialog-actions")(11,"button",131);N("click",function(){u(b);P(2).isArchiving=!1;return w()});R(12," Cancel ");K();J(13,"button",132);N("click",function(){u(b);var c=P(2);c.archive();c.isArchiving=!1;return w()});R(14," Confirm ");K()()}a&2&&(a=P(2),x(),wh(a.component&&a.archiveAction?"Are you sure you want to "+
a.archiveAction.toLowerCase()+' "'+a.component.name+'"'+(a.archiveAction==="Archive"?" and its subcomponents?":"?"):""),x(2),G(a.archiveAction==="Archive"?3:-1),x(),G(a.archiveAction==="Unarchive"?4:-1),x(4),G(a.archiveAction==="Archive"?8:-1),x(),G(a.archiveAction==="Unarchive"?9:-1))},jZb=function(a){if(a&1){var b=t();J(0,"div",10)(1,"div",11)(2,"div",12)(3,"b-button",13);N("onAction",function(){u(b);var c=P();return w(c.back())});M(4,"b-icon",14);K();F(5,PXb,4,3);K()()();J(6,"div",15);F(7,QXb,
2,0,"div",16);F(8,cZb,36,22,"div");K();D(9,iZb,15,5,"ng-template",null,0,Lh)}a&2&&(a=P(),x(5),G(a.component?5:-1),x(2),G(a.isLoading?7:-1),x(),G(!a.isLoading&&a.component&&a.component.componentId?8:-1))},kZb=function(a){a&1&&(J(0,"div",9),M(1,"b-tracker-redirect",136),K());a&2&&(a=P(),x(),I("component",a.component))},lZb=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}},mZb=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}},nZb=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},oZb=function(a,b){return a?b?a:a.filter(function(c){return c.enabledOnIssues}):[]},pZb=function(a,b){a&1&&(J(0,"div",10),M(1,"b-team-breadcrumb",38),K());a&2&&(x(),I("teamPath",b))},qZb=function(a,b){a&1&&(Wg(0),R(1),Xg());a&2&&(x(),wh(b.trim()))},rZb=function(a){a&1&&R(0," No description ")},sZb=function(a,b){a&1&&M(0,"b-multi-user-input",25);a&2&&(I("users",b),Lg("disabled",!0))},tZb=function(a){a&1&&(J(0,"p"),R(1,"No child teams"),K())},uZb=function(a,
b){a&1&&(M(0,"br"),J(1,"a",39),R(2),K());a&2&&(a=b.$implicit,x(),I("routerLink",Dh("/teams/",a.id,"/edit")),x(),wh(a.name))},vZb=function(a){a&1&&Pg(0,uZb,3,3,null,null,Og);a&2&&(a=P(),Qg(a))},wZb=function(a,b){a&1&&F(0,tZb,2,0,"p")(1,vZb,2,0);a&2&&G(b.length===0?0:1)},xZb=function(a){a&1&&(J(0,"a",40),R(1),K());if(a&2){a=P();I("routerLinkObj",a.link);x();var b;T(" ",(b=a.slo==null?null:a.slo.name)!=null?b:a.id," ")}},yZb=function(a){a&1&&R(0," None ")},zZb=function(a,b){a&1&&(J(0,"div",29),R(1," Inherited SLO Policy: "),
F(2,xZb,2,2,"a",40)(3,yZb,1,0),K());a&2&&(x(2),G(b.link?2:3))},AZb=function(a,b){a&1&&(J(0,"a",31),R(1),K());a&2&&(I("routerLinkObj",b.link),x(),T(" ",b.name," "))},BZb=function(a){a&1&&R(0," None ")},CZb=function(a){a&1&&(M(0,"mat-icon",41),R(1," on "))},DZb=function(a){a&1&&(M(0,"mat-icon",42),R(1," off "))},EZb=function(a){a&1&&(R(0," Lock: "),F(1,CZb,2,0)(2,DZb,2,0));a&2&&(a=P(2),x(),G(a.originalSloLock?1:2))},FZb=function(a){if(a&1){var b=t();J(0,"div",43)(1,"mat-checkbox",44);N("change",function(c){u(b);
var d=P(3);d.isSloInheritEnabled=!c.checked;d.isSloInheritEnabled&&(d.sloId=d.parentTeam.slo.sloId);return w()});J(2,"span");R(3,"Override the inherited SLO");K()()()}a&2&&(a=P(3),x(),I("disabled",!a.hasSloEditAccess)("checked",!a.isSloInheritEnabled))},GZb=function(a){if(a&1){var b=t();J(0,"div",45)(1,"label",49);R(2," Justification to override the org SLO ");K();M(3,"mat-icon",50);J(4,"textarea",51);U(5,"async");N("ngModelChange",function(c){u(b);var d=P(4);return w(d.sloJustification$.next(c))});
K()()}a&2&&(a=P(4),x(3),I("matTooltip",a.justificationRequiredText),Lg("aria-label",a.justificationRequiredText),x(),I("ngModel",V(5,4,a.sloJustification$))("disabled",!a.hasSloEditAccess))},HZb=function(a,b){a&1&&(J(0,"a",48),U(1,"async"),M(2,"mat-icon",9),K());a&2&&(a=P(4),I("target",Ch(V(1,3,a.hasUnsavedChanges$)?"_blank":"_self"))("routerLinkObj",b))},IZb=function(a){if(a&1){var b=t();F(0,GZb,6,6,"div",45);J(1,"div",14)(2,"mat-slide-toggle",46);Ah("ngModelChange",function(e){u(b);var f=P(3);zh(f.enableSloChecked,
e)||(f.enableSloChecked=e);return w(e)});N("change",function(e){u(b);var f=P(3);return w(f.enableSloChecked=e.checked)});R(3," Enable SLO ");K();J(4,"slo-picker",47);N("onSloSelect",function(e){u(b);var f=P(3);return w(f.onSloChange(e))});K();F(5,HZb,3,5,"a",48);U(6,"async");K()}if(a&2){var c;a=P();var d=P(2);G(a.value?-1:0);x(2);uh("indented",!a.value);yh("ngModel",d.enableSloChecked);I("disabled",!d.hasSloEditAccess);x(2);I("boundId",d.sloId)("bv2Disabled",!d.hasSloEditAccess||!d.enableSloChecked||
d.isSloInheritEnabled)("bv2Placeholder",d.enableSloChecked?"Type to search for an SLO":"SLO disabled");x();G((c=V(6,9,d.sloPickerLink$))?5:-1,c)}},JZb=function(a,b){a&1&&(F(0,FZb,4,2,"div",43),F(1,IZb,7,11));a&2&&(a=P(2),G(b.value?-1:0),x(),G(a.isSloInheritEnabled?-1:1))},KZb=function(a){if(a&1){var b=t();J(0,"div",14)(1,"mat-checkbox",52);N("change",function(c){u(b);var d=P(2);return w(d.sloLocked=c.checked)});J(2,"span");R(3,"Lock for all child teams");K()()()}a&2&&(a=P(2),x(),I("checked",a.sloLocked)("disabled",
!a.canEditSloLock))},MZb=function(a){if(a&1){var b=t();J(0,"div",14)(1,"mat-checkbox",55);N("change",function(c){u(b);var d=P(3);d.isOwnerInheritEnabled=!c.checked;d.isOwnerInheritEnabled&&LZb(d);return w()});J(2,"span");R(3,"Override the inherited owner");K()()()}a&2&&(a=P(3),x(),I("checked",!a.isOwnerInheritEnabled)("disabled",!a.hasSloEditAccess))},PZb=function(a,b){if(a&1){var c=t();F(0,MZb,4,2,"div",14);J(1,"div",14)(2,"div")(3,"label");R(4);K();J(5,"b-multi-user-input",53);N("usersChange",function(d){u(c);
var e=P(2);d.length>1||(e.escalationOwner=d.length===1?d[0]:"");return w()})("isValid",function(d){u(c);var e=P(2);return w(e.isEscalationOwnerValid=d)});K();J(6,"div",54);R(7);K()()()}a&2&&(a=P(2),G(b.value?-1:0),x(4),wh(a.isOwnerInheritEnabled&&!b.value?"Inherited owner":"Owner"),x(),I("users",a.escalationOwner?Hh(9,NZb,a.escalationOwner):Gh(11,OZb))("customValidators",a.escalationOwnerUserValidators)("detailedUserValidators",a.escalationOwnerGooglerValidators)("maxUserAllowed",1),Lg("disabled",
a.isOwnerInheritEnabled||!a.hasSloEditAccess?!0:null),x(),Lg("aria-hidden",!a.escalationOwnerInvalidErrorMessage),x(),T(" ",a.escalationOwnerInvalidErrorMessage," "))},SZb=function(a){if(a&1){var b=t();J(0,"div",34)(1,"div",56)(2,"button",57);U(3,"async");N("click",function(){u(b);var c=P(),d=P();return w(QZb(d,c))});R(4," Update ");K();J(5,"button",58);U(6,"async");N("click",function(){u(b);var c=P(2);return w(RZb(c))});R(7," Revert changes ");K()()()}a&2&&(a=P(2),x(2),I("disabled",!V(3,2,a.hasUnsavedChanges$)),
x(3),I("disabled",!V(6,4,a.hasUnsavedChanges$)))},TZb=function(a){a&1&&(J(0,"p"),R(1,"No mapped components"),K())},UZb=function(a,b){a&1&&(J(0,"ul")(1,"li")(2,"a",39),R(3),K()()());a&2&&(a=b.$implicit,x(2),I("routerLink",Dh("/components/",a.componentId,"/edit")),x(),T(" ",a.name," "))},VZb=function(a){a&1&&(Pg(0,UZb,4,3,"ul",null,Og),U(2,"async"));a&2&&(a=P(3),Qg(V(2,0,a.associatedComponents$)))},WZb=function(a,b){a&1&&F(0,TZb,2,0,"p")(1,VZb,3,2);a&2&&G(b.length===0?0:1)},XZb=function(a){a&1&&(J(0,
"th",69)(1,"span",70),R(2,"Starred"),K()())},YZb=function(a,b){if(a&1){var c=t();J(0,"td",71)(1,"b-star-toggle",72);N("starClicked",function(){var f=u(c).$implicit,h=P(),k=P(2),q=P();return w(q.toggleStar(f.id,k.teamId,h))});K()()}if(a&2){a=b.$implicit;b=P();var d=P(2),e=P();x();I("starred",e.isTriageStarred(a.id,d.teamId,b))("starMessage","Star this triage view")("unStarMessage","Un-star this triage view")}},ZZb=function(a){a&1&&(J(0,"th",69),R(1,"Name"),K())},$Zb=function(a,b){a&1&&(J(0,"td",73)(1,
"a",74),R(2),K()());if(a&2){a=b.$implicit;b=P(3);var c=P();x();I("href",c.getTriageLink(a.id,b.teamId),hf);x();T(" ",a.displayName||b.name+" triage"," ")}},a_b=function(a){a&1&&(J(0,"th",69)(1,"span",70),R(2,"Actions"),K()())},b_b=function(a){a&1&&M(0,"div",78)},d_b=function(a){if(a&1){var b=t();J(0,"button",80);N("click",function(){u(b);var c=P().$implicit,d=P(4);return w(c_b(d,c))});M(1,"mat-icon",81);K()}a&2&&(a=P(5),I("disabled",!a.hasTeamEditAccess&&!a.enableTeamAdmin))},f_b=function(a,b){if(a&
1){var c=t();J(0,"td",71)(1,"div",75)(2,"button",76);N("click",function(){var d=u(c).$implicit,e=P(3),f=P();return w(e_b(f,d.id,e))});M(3,"mat-icon",77);K();F(4,b_b,1,0,"div",78)(5,d_b,2,1,"button",79);K()()}a&2&&(a=b.$implicit,b=P(4),x(2),I("disabled",!b.hasTeamEditAccess&&!b.enableTeamAdmin),x(2),G(a.id===0?4:5))},g_b=function(a){a&1&&M(0,"tr",82)},h_b=function(a){a&1&&M(0,"tr",83)},j_b=function(a){if(a&1){var b=t();J(0,"h3");R(1,"Triage views");K();J(2,"table",59);Wg(3,60);D(4,XZb,3,0,"th",61)(5,
YZb,2,3,"td",62);Xg();Wg(6,63);D(7,ZZb,2,0,"th",61)(8,$Zb,3,2,"td",64);Xg();Wg(9,65);D(10,a_b,3,0,"th",61)(11,f_b,6,2,"td",62);Xg();D(12,g_b,1,0,"tr",66)(13,h_b,1,0,"tr",67);K();J(14,"button",68);N("click",function(){u(b);var c=P(2),d=P();return w(i_b(d,c))});R(15," Add new view ");K()}a&2&&(a=P(3),x(2),I("dataSource",a.teamExperiments.triage),x(10),I("matHeaderRowDef",a.tableColumns),x(),I("matRowDefColumns",a.tableColumns),x(),I("disabled",!a.hasTeamEditAccess&&!a.enableTeamAdmin))},k_b=function(a){a&
1&&(J(0,"mat-tab",36)(1,"div",13),F(2,j_b,16,4),U(3,"async"),K()());if(a&2){var b;a=P(2);I("id",a.Tab.TRIAGE);x(2);G((b=V(3,2,a.starredTriageViews$))?2:-1,b)}},n_b=function(a){if(a&1){var b=t();J(0,"div",34)(1,"div",56)(2,"button",57);N("click",function(){u(b);var c=P(3);return w(l_b(c))});R(3," Update ");K();J(4,"button",58);N("click",function(){u(b);var c=P(3);return w(m_b(c))});R(5," Revert changes ");K()()()}a&2&&(a=P(3),x(2),I("disabled",a.sloDelegates==a.originalSloDelegates$.getValue()),x(2),
I("disabled",a.sloDelegates==a.originalSloDelegates$.getValue()))},o_b=function(a){if(a&1){var b=t();J(0,"mat-tab",37)(1,"div",13)(2,"div",14)(3,"div",18)(4,"label",19)(5,"span",16);R(6," SLO delegates ");K();J(7,"span",20)(8,"div",21);R(9," SLO delegates can manage the SLO policy for the team and its children, as well as all associated components and their children. ");J(10,"div",22);M(11,"div",23)(12,"div",24);K()()()()();J(13,"b-multi-user-input",84);N("usersChange",function(c){u(b);P(2).sloDelegates=
c;return w()});K()();F(14,n_b,6,2,"div",34);K()()}a&2&&(a=P(2),I("id",a.Tab.ACCESS),x(13),I("users",a.sloDelegates)("includeAliases",!0)("includeViewAliases",!0),Lg("disabled",a.hasTeamEditAccess?null:!0),x(),G(a.hasTeamEditAccess?14:-1))},q_b=function(a,b){if(a&1){var c=t();J(0,"div",7)(1,"h2");R(2);J(3,"a",8);R(4);M(5,"mat-icon",9);K()()();F(6,pZb,2,1,"div",10);U(7,"async");J(8,"mat-tab-group",11);Ah("selectedIndexChange",function(H){u(c);var L=P();zh(L.selectedTabIndex,H)||(L.selectedTabIndex=
H);return w(H)});N("selectedIndexChange",function(H){u(c);var L=P();return w(L.tabChange(H))});J(9,"mat-tab",12)(10,"div",13);R(11," Team information on this page comes from ");J(12,"a",8);R(13," Team Graph ");M(14,"mat-icon",9);K();R(15," and is view only. ");J(16,"div",14)(17,"div",15)(18,"label")(19,"span",16);R(20,"Description");K()();J(21,"div",17);F(22,qZb,2,1,"ng-container")(23,rZb,1,0);K()()();J(24,"div",14)(25,"div",18)(26,"label",19)(27,"span",16);R(28," Team admins ");K();J(29,"span",20)(30,
"div",21);R(31," Team admins are team leads from Team Graph. ");J(32,"div",22);M(33,"div",23)(34,"div",24);K()()()();F(35,sZb,1,2,"b-multi-user-input",25);U(36,"async");K()();J(37,"div",14)(38,"div",15)(39,"label")(40,"span",16);R(41,"Child team(s)");K()();F(42,wZb,2,1);U(43,"async");K()()()();J(44,"mat-tab",26)(45,"div",13)(46,"div",18)(47,"label",19)(48,"span",16);R(49,"SLO configuration");K()();J(50,"span",20)(51,"div",27)(52,"strong");R(53,"Careful!");K();R(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. ");
J(55,"div",22);M(56,"div",23)(57,"div",24);K()()()();J(58,"div",28);F(59,zZb,4,1,"div",29);U(60,"async");J(61,"div",30);R(62," Policy Source: ");F(63,AZb,2,2,"a",31);U(64,"async");Mg(65,BZb,1,0);K();J(66,"div",32);F(67,EZb,3,1);K()();M(68,"b-error-banner",33);F(69,JZb,2,2);U(70,"async");F(71,KZb,4,2,"div",14);J(72,"div",14)(73,"div",18)(74,"label",19)(75,"span",16);R(76," Owner configuration ");K()();J(77,"span",20)(78,"div",21);R(79," Single team lead receiving SLO reports of unassigned issues. ");
J(80,"div",22);M(81,"div",23)(82,"div",24);K()()()()();F(83,PZb,8,12);U(84,"async");F(85,SZb,8,6,"div",34);K()();J(86,"mat-tab",35)(87,"div",13)(88,"div",14)(89,"div",15)(90,"label")(91,"span",16);R(92," Component(s) that have mapped to this team ");K()()();F(93,WZb,2,1);U(94,"async");K()()();F(95,k_b,4,4,"mat-tab",36);F(96,o_b,15,6,"mat-tab",37);K()}if(a&2){var d,e,f,h,k,q,v,A,E;a=P();x(2);T(" Team ",b.teamId,": ");x();I("href",Dh("https://moma.corp.google.com/team/",b.teamId),hf);x();T(" ",b.name,
" ");x(2);G((d=V(7,25,a.teamPath$))?6:-1,d);x(2);yh("selectedIndex",a.selectedTabIndex);x();I("id",a.Tab.BASIC);x(3);I("href",Dh("https://moma.corp.google.com/team/",b.teamId),hf);x(10);G((e=b.description)?22:23,e);x(13);G((f=V(36,27,a.adminsAndLeads$))?35:-1,f);x(7);G((h=V(43,29,a.childTeams$))?42:-1,h);x(2);I("id",a.Tab.SLO);x(15);G((k=V(60,31,a.inheritedSlo$))?59:-1,k);x(4);G((q=V(64,33,a.sloPolicySource$))?63:65,q);x(4);G(a.enableSloLockingUi?67:-1);x();I("error",a.error);x();G((v=Hh(41,p_b,V(70,
35,a.isRootTeam$)))?69:-1,v);x(2);G(a.enableSloLockingUi?71:-1);x(12);G((A=Hh(43,p_b,V(84,37,a.isRootTeam$)))?83:-1,A);x(2);G(a.hasSloEditAccess?85:-1);x();I("id",a.Tab.MAPPINGS);x(7);G((E=V(94,39,a.associatedComponents$))?93:-1,E);x(2);G(a.enableTeamScope?95:-1);x();G(a.enableSloDelegatesUi?96:-1)}},r_b=function(a,b){a&1&&(J(0,"div",85),R(1),K(),J(2,"div",86)(3,"button",87),R(4," Cancel "),K(),J(5,"button",88),R(6," Confirm "),K()());a&2&&(a=b.$implicit,x(),T(' Are you sure you want to delete this triage view: "',
a.displayName,'"? '),x(2),I("mat-dialog-close",!1),x(2),I("mat-dialog-close",!0))},s_b=function(a){a&1&&(J(0,"a",9),R(1,"Learn more"),K())},t_b=function(a){a&1&&(J(0,"mat-error"),R(1),K());a&2&&(a=P(2),x(),wh(a.validationErrorMessage))},u_b=function(a){if(a&1){var b=t();J(0,"div",8)(1,"p");R(2," Input a URL from a supported source to add a task. ");F(3,s_b,2,0,"a",9);K()();J(4,"mat-form-field",10);M(5,"input",11,3);F(7,t_b,2,1,"mat-error");K();J(8,"div",12)(9,"div",13)(10,"button",14);N("click",function(){u(b);
var c=P();return w(c.cancelClicked.emit())});R(11,"Cancel");K();J(12,"button",15);N("click",function(){u(b);var c=P();return w(c.saveChanges())});R(13,"Add Task");K()()()}a&2&&(a=P(),x(3),G(a.isInternalSession?3:-1),x(2),I("formControl",a.addTasksForm)("placeholder",a.urlPlaceholder),x(2),G(a.validationErrorMessage?7:-1),x(5),I("disabled",a.addTasksForm.invalid||a.saving))},v_b=function(a){a&1&&(J(0,"mat-error"),R(1,"Title is required"),K())},w_b=function(a,b){a&1&&(J(0,"mat-option",25),R(1),K());
a&2&&(a=b.$implicit,I("value",a.id),x(),T(" ",a.title," "))},x_b=function(a){a&1&&(J(0,"mat-error",26),R(1,"Task list is required"),K())},z_b=function(a){if(a&1){var b=t();J(0,"div",16)(1,"form",17);N("ngSubmit",function(){u(b);var f=P();return w(f.onSubmit())});J(2,"mat-form-field",18);M(3,"input",19,3);J(5,"mat-hint",20);R(6);K();F(7,v_b,2,0,"mat-error");K();J(8,"mat-form-field",18);M(9,"textarea",21,4);J(11,"mat-hint",20);R(12);K()();J(13,"mat-form-field",22);M(14,"mat-icon",23);J(15,"mat-select",
24);Pg(16,w_b,2,2,"mat-option",25,y_b);U(18,"async");K();F(19,x_b,2,0,"mat-error",26);K();J(20,"mat-form-field",27);M(21,"mat-datepicker-toggle",28);J(22,"input",29);N("click",function(){u(b);var f=Q(24);return w(f.open())});K();M(23,"mat-datepicker",null,5);K();J(25,"div",30)(26,"button",14);N("click",function(){u(b);var f=P();return w(f.cancelClicked.emit())});R(27,"Cancel");K();J(28,"button",31);R(29,"Add");K()()()()}if(a&2){a=Q(4);var c=Q(10),d=Q(24),e=P();x();I("formGroup",e.gTaskForm);x(5);
T("",a.value.length," / 1024");x();G((e.title==null?0:e.title.hasError("required"))?7:-1);x(5);T("",c.value.length," / 8192");x(4);Qg(V(18,8,e.gtaskListIds$));x(3);G((e.taskListId==null?0:e.taskListId.hasError("required"))?19:-1);x(2);I("for",d);x();I("matDatepicker",d);x(6);I("disabled",e.gTaskForm.invalid)}},A_b=function(a){a&1&&Yg(0)},B_b=function(a){a&1&&Yg(0)},C_b=function(a){a&1&&(J(0,"mat-tab-group",7)(1,"mat-tab",32),D(2,A_b,1,0,"ng-container",33),K(),J(3,"mat-tab",34),D(4,B_b,1,0,"ng-container",
33),K()());if(a&2){P();a=Q(3);var b=Q(5);x(2);I("ngTemplateOutlet",a);x(2);I("ngTemplateOutlet",b)}},D_b=function(a){a&1&&Yg(0)},E_b=function(a){a&1&&D(0,D_b,1,0,"ng-container",33);a&2&&(P(),a=Q(3),I("ngTemplateOutlet",a))},F_b=function(a){a&1&&(J(0,"div",0)(1,"div",1),M(2,"mat-icon",2),R(3),K(),J(4,"div",3),M(5,"mat-icon",4),J(6,"span")(7,"a",5),R(8),K(),R(9," \u00b7 "),M(10,"b-formatted-date-time",6),R(11," \u2010 "),M(12,"b-formatted-date-time",6),K()()());if(a&2){a=P();x(3);T(" ",a.iteration.workspace.name,
" ");x(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,hf);x();T(" ",a.iteration.name," ");x(2);I("paddingLeftPx",0)("timestamp",a.iteration.startTimestamp);x(2);I("paddingLeftPx",0)("timestamp",a.iteration.endTimestamp)}},G_b=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)}},
H_b=function(a){if(a&1){var b=t();J(0,"div",2);N("onedevHovercardShown",function(){u(b);var c=P();return w(c.trackHoverEvent())})("click",function(c){u(b);var d=P();c.stopPropagation();d.analytics.trackEvent("missionControl","click","iteration-chip");var e,f,h;c=d.iteration||d.iteration.workspace||d.iteration.iterationId?d.getBaseUrl()+"/workspaces/"+((e=d.iteration)==null?void 0:(f=e.workspace)==null?void 0:f.workspaceId)+"/iterations/"+((h=d.iteration)==null?void 0:h.iterationId):d.getBaseUrl();
d.domSafe.openInNewTab(c);return w()});R(1," Current ");K();J(2,"onedev-hovercard",null,0);D(4,G_b,2,2,"iteration-card",3);K()}a&2&&(a=Q(3),I("onedevHovercardTrigger",a))},O_b=function(a,b,c,d,e){return I_b(a).map(function(f){var h=f.task,k=J_b(f.signals,b,e);if(h&&k&&k.length!==0){var q,v,A,E,H,L,O=h.taskId,S=h.taskResourceType,aa=h.title,ka=K_b(k);f=L_b(f,k);if(h.issueResource){var na=h.issueResource.priority;na=na==="P0"||na==="P1"?na:null}else na=null;return{id:O,type:S,description:aa,lastAlertTimestamp:ka,
signals:f,link:h.externalLink,icon:mxa(h),priority:na,accessLevel:(A=(q=h.issueResource)==null?void 0:q.accessLevel)!=null?A:null,hotlistIds:h.issueResource?h.issueResource.hotlistIds:[],issueId:bLa(h.taskId).length===1?bLa(h.taskId)[0]:null,futureAvailability:M_b(k),reviewEstimate:N_b(k),lastMentionLink:((v=h.driveResource)==null?0:v.lastMentionLink)&&h.driveResource.lastMentionLink!==""?h.driveResource.lastMentionLink:void 0,isStaleTask:(E=h.isStaleTask)!=null?E:!1,snoozeUntilTimestamp:(H=h.snoozeUntilTimestamp)!=
null?H:void 0,manualSignalTimestamp:(L=h.manualSignalTimestamp)!=null?L:void 0,iteration:c.get(h.taskId),okrIds:d.get(h.taskId)}}}).filter(Qj)},J_b=function(a,b,c){return P_b(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})},I_b=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})},L_b=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})},P_b=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"})},K_b=function(a){return a.sort(function(b,c){var d,e;return((d=ql(c.timestamp))!=null?d:0)-((e=ql(b.timestamp))!=null?e:0)})[0].timestamp},Q_b=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}},R_b=function(a){var b=a[0],c=Q_b(b);a=l(a);for(var d=a.next();!d.done;d=a.next())d=d.value,Q_b(d)<c&&(b=d,c=Q_b(b));return b},M_b=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(Qj)},N_b=function(a){return a.map(function(b){var c;return(c=b.changelistAlert)==null?void 0:c.reviewEstimate}).find(Qj)},S_b=function(a){var b=pJa(a.getFrequency()),c=a.getTimeZone(),d=a.getTimeOfDay(),e=a.getLastUpdatedTimestamp();if(!b)throw Error("Gc");if(!c)throw Error("Hc");if(!d)throw Error("Ic");if(!e)throw Error("uf");return{id:a.getId_asString(),frequency:b,ordinal:a.getOrdinal(),timeZone:rJa(c),timeOfDay:tJa(d),
displayName:a.getDisplayName(),query:a.getQuery(),sendEmail:kk(a,8),showInBuganizerHome:kk(a,9),baselineIssueIds:[].concat(p(Ck(a,10))),isOverflowing:kk(a,11),lastUpdated:ak(e)}},T_b=function(a){var b=(new zs).setId(a.id).setFrequency(qJa(a.frequency)).setOrdinal(a.ordinal).setTimeZone(sJa(a.timeZone)).setTimeOfDay(uJa(a.timeOfDay)).setDisplayName(a.displayName).setQuery(a.query);b=pm(b,8,a.sendEmail);b=pm(b,9,a.showInBuganizerHome);b=ep(b,10,a.baselineIssueIds);b=pm(b,11,a.isOverflowing);a=ck(a.lastUpdated);
return X(b,bk,12,a)},Y_b=function(a,b){a&1&&(J(0,"div",0)(1,"h1"),R(2),K(),J(3,"div",1)(4,"pre"),R(5),K()(),J(6,"div",2)(7,"a",3),R(8," Edit alert "),K(),J(9,"a",4),R(10," View issues "),K()()());a&2&&(x(2),wh(b.displayName),x(3),wh(b.query),x(2),I("routerLinkObj",Hh(6,U_b,Hh(4,V_b,b.id))),x(2),I("routerLinkObj",Hh(10,W_b,Hh(8,X_b,b.query))))},Z_b=function(a){if(a&1){var b=t();J(0,"a",5);N("click",function(){u(b);P(2).analytics.trackEvent("mentionsCard","navigate","comment");return w()});R(1," a comment ");
K()}a&2&&(a=P(2),I("href",a.lastMentionLink,hf))},$_b=function(a){a&1&&R(0," a comment ")},a0b=function(a,b){a&1&&(J(0,"div",0)(1,"div",1)(2,"span"),M(3,"b-user-display",2),R(4," mentioned you in "),F(5,Z_b,2,1,"a",3)(6,$_b,1,0),K(),J(7,"span"),M(8,"b-formatted-date-time",4),K()(),J(9,"div"),R(10),K()());a&2&&(a=P(),x(3),I("model",{emailAddress:b.authorDisplayName}),x(2),G(a.lastMentionLink?5:6),x(3),I("timestamp",b.lastModifiedTimestamp),x(2),wh(b.content))},b0b=function(a,b){if(a&1){var c=t();J(0,
"a",7);U(1,"async");N("click",function(){u(c);P(3).analytics.trackEvent("mentionsCard","navigate","commentNumber");return w()});R(2);K()}if(a&2){a=P(3);var d;I("routerLinkObj",a.getCommentNumberLink((d=V(1,2,a.issueId$))!=null?d:"",b));x(2);T(" comment #",b," ")}},c0b=function(a){if(a&1){var b=t();J(0,"div",9)(1,"span",10);R(2," Was this 'Needs Response' alert accurate? ");K();J(3,"button",11);N("click",function(){u(b);var c=P(4);return w(c.trackThumbsUp())});M(4,"mat-icon",12);K();J(5,"button",13);
N("click",function(){u(b);var c=P(4);return w(c.trackThumbsDown())});M(6,"mat-icon",14);K()()}a&2&&(a=P(4),x(3),I("disabled",a.hasReacted),x(),uh("has-reacted-icon",a.thumbsUpClicked),x(),I("disabled",a.hasReacted),x(),uh("has-reacted-icon",a.thumbsDownClicked))},d0b=function(a,b){a&1&&(J(0,"div"),M(1,"b-note-container",8),U(2,"async"),F(3,c0b,7,6,"div",9),K());if(a&2){a=P().$implicit;var c=P(2);x();var d;I("issueId",(d=V(2,4,c.issueId$))!=null?d:"")("note",b)("formattingMode",a.formattingMode);x(2);
G(c.needsResponse&&!a.commentRedacted?3:-1)}},e0b=function(a,b){a&1&&(J(0,"div")(1,"div",2)(2,"span",3),M(3,"b-user-display",4),J(4,"span"),R(5," mentioned you in "),F(6,b0b,3,4,"a",5),K()(),J(7,"span"),M(8,"b-formatted-date-time",6),K()(),F(9,d0b,4,6,"div"),K());if(a&2){var c,d;a=b.$implicit;var e=b.$index;b=b.$count;var f=P(2);uh("margin-s-bottom",e!==b-1)("padded-s-bottom",e!==b-1)("border-bottom",e!==b-1);x(3);I("model",a.lastCommentEditorUser);x(3);G((c=a.commentNumber)?6:-1,c);x(2);I("timestamp",
a.commentLastModifiedAtDate);x();if(f.enableExternalMentionsFe||a.unlinkifiedComment){var h;c={commentNumber:(h=a.commentNumber)!=null?h:void 0,unlinkifiedComment:a.commentRedacted?"Comment access restricted. Please reach out to the issue owner to view.":a.unlinkifiedComment,formattedComment:a.commentRedacted?void 0:a.formattedComment}}else c=null;G((d=c)?9:-1,d)}},g0b=function(a,b){a&1&&(J(0,"div",0),Pg(1,e0b,10,10,"div",1,f0b),J(3,"div"),Yg(4),K()());a&2&&(x(),Qg(b))},h0b=function(a){a&1&&Yg(0)},
j0b=function(a){a&1&&D(0,h0b,1,0,"ng-container",5);if(a&2){a=P().$implicit;P(2);var b=Q(3);I("ngTemplateOutlet",b)("ngTemplateOutletContext",Hh(2,i0b,a))}},k0b=function(a,b){a&1&&F(0,j0b,1,4,"ng-container");a&2&&(a=b.$implicit,b=P(2),G(b.SIGNAL_TO_DISPLAY_TEXT.has(a.type)?0:-1))},m0b=function(a){a&1&&(J(0,"div",4),Pg(1,k0b,1,1,null,null,l0b),K());a&2&&(a=P(),x(),Qg(a.signals))},n0b=function(a){a&1&&Yg(0)},p0b=function(a,b){a&1&&(J(0,"div",6),D(1,n0b,1,0,"ng-container",5),J(2,"div",7),R(3),K()());
if(a&2){a=P(2);var c=Q(3);x();I("ngTemplateOutlet",c)("ngTemplateOutletContext",Hh(4,i0b,b));x();I("matTooltip",o0b(a.signals,b));x();T(" and ",a.signals.length-1," more ")}},q0b=function(a){a&1&&F(0,p0b,4,6,"div",6);if(a&2){var b;a=P();G((b=a.getHighestPrioritySignal(a.signals))?0:-1,b)}},s0b=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:Gh(4,r0b))("needsResponse",b.type==="MENTIONED_NEEDS_RESPONSE")}},t0b=function(a){a&1&&D(0,s0b,2,5,"mentioned-issue-comments-card",12)},u0b=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)}},v0b=function(a){a&1&&D(0,u0b,2,4,"mentioned-drive-comments-card",13)},w0b=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)}},x0b=function(a){a&1&&D(0,w0b,2,2,"configurable-alert-card",14)},C0b=function(a,b){if(a&1){var c=t();$g(0);J(1,"div",8,1);N("mouseenter",function(){u(c);var f=Q(2),h=bh(0);return w(h?f.disabled=!0:null)})("mouseleave",function(){u(c);var f=Q(2),h=bh(0);return w(h?f.disabled=!1:null)});R(3);K();J(4,"onedev-hovercard",null,2);F(6,t0b,1,0,"mentioned-issue-comments-card",9)(7,v0b,
1,0,"mentioned-drive-comments-card",10)(8,x0b,1,0,"configurable-alert-card",11);K()}if(a&2){a=b.signal;b=Q(5);var d=P(),e=ah(y0b(d,a)||z0b(a)||A0b(a));x();vh(Dh("signal-chip type-button urgent-",d.getSignalUrgency(a)));uh("keep-focus-ring",e);I("onedevHovercardActive",e)("onedevHovercardTrigger",b)("matTooltip",y0b(d,a)||z0b(a)||A0b(a)?'Press "Alt/Option + Right Arrow Key" to show comment':B0b.get(a.type));Lg("tabindex",e?"0":"-1");x(2);T(" ",d.SIGNAL_TO_DISPLAY_TEXT.get(a.type)," ");x(3);G(y0b(d,
a)?6:z0b(a)?7:A0b(a)?8:-1)}},E0b=function(a,b){a&1&&(J(0,"div",3)(1,"div",5),R(2),K(),J(3,"div")(4,"a",6),R(5),K()()());a&2&&(P(3),x(2),T(" O ",D0b(b==null?null:b.priorityRating)),x(2),I("href",b==null?null:b.url,hf),x(),wh(b==null?null:b.title))},F0b=function(a,b){a&1&&(J(0,"div",4)(1,"div",7),R(2),K(),J(3,"div")(4,"a",6),R(5),K()()());a&2&&(P(3),x(2),T(" KR ",D0b(b.priorityRating)),x(2),I("href",b.url,hf),x(),T(" ",b==null?null:b.title))},I0b=function(a,b){a&1&&(J(0,"div",2),F(1,E0b,6,3,"div",3),
F(2,F0b,6,3,"div",4),K());if(a&2){var c,d;a=b.$implicit;b=P();P();x();G((c=G0b(b,a))?1:-1,c);x();G((d=H0b(b,a))?2:-1,d)}},J0b=function(a){a&1&&(J(0,"div",0)(1,"div",1),Pg(2,I0b,3,2,"div",2,Og),K()());a&2&&(a=P(),x(2),Qg(a.okrIds))},K0b=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)}},L0b=function(a){if(a&1){var b=t();J(0,"div",2);N("onedevHovercardShown",function(){u(b);var c=P();return w(c.trackHoverEvent())});R(1,"OKR");
K();J(2,"onedev-hovercard",null,0);D(4,K0b,2,2,"okr-card",3);K()}a&2&&(a=Q(3),I("onedevHovercardTrigger",a))},M0b=function(a){a&1&&(J(0,"div",0)(1,"div",1)(2,"div",2)(3,"div"),R(4," Your response time is longer than usual for similar items. Respond to unblock others ("),J(5,"a",3),R(6,"see more"),K(),R(7,"). "),K()()()())},N0b=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)}},O0b=function(a,b){if(a&1){var c=t();
J(0,"button",5);N("click",function(d){var e=u(c).$implicit;P().onCheckboxChange(e);return w(d.stopPropagation())});J(1,"mat-checkbox",8);R(2);K()()}a&2&&(a=b.$implicit,b=P(),x(),I("checked",b.currentSelectedSignals.has(a)),x(),T(" ",b.SIGNAL_TO_DISPLAY_TEXT.get(a)," "))},P0b=function(a){a&1&&M(0,"mat-icon",7);a&2&&(a=P(),vh(Dh("icon-s checkmark ",a.displayName)))},S0b=function(a,b){if(a&1){var c=t();J(0,"span",2)(1,"button",3);N("click",function(){u(c);var e=P().$implicit,f=P();return w(f.sourceFilterChange(e))});
F(2,P0b,1,3,"mat-icon",4);J(3,"span",5);R(4);K()();J(5,"signal-list-dropdown",6);N("changeFilteredSignals",function(e){u(c);var f=P().$implicit,h=P();return w(h.signalFilterChange(e,f))})("chipSelectionStateChanged",function(e){u(c);var f=P().$implicit;P().chipsSelected[f]=e;return w()});K()()}if(a&2){a=P().$implicit;var d=P();uh("expanded",d.chipsSelected[a]);x();Lg("aria-pressed",d.chipsSelected[a]);x();G(d.chipsSelected[a]?2:-1);x();I("matTooltip",b.tooltipText);x();T(" ",d.activeSession.isInternalSession()?
b.displayName:b.externalDisplayName," ");x();I("signalFilterKeys",Q0b(d,a))("selectedSignals",R0b(d,a))("source",a)}},T0b=function(a,b){a&1&&F(0,S0b,6,9,"span",1);if(a&2){var c;a=b.$implicit;b=P();G((c=b.DEFINITIONS[a])?0:-1,c)}},U0b=function(a,b){if(a&1){var c=t();J(0,"button",7);N("click",function(){var d=u(c).$implicit,e=P();d=d.numberOfDays;e.selectedTimeBoundary=d;e.change.emit(d);return w()});R(1);K()}a&2&&(a=b.$implicit,b=P(),I("disabled",a.numberOfDays===b.selectedTimeBoundary),x(),T(" ",
a.label," "))},V0b=function(a){if(a&1){var b=t();J(0,"button",4);N("click",function(){u(b);var c=P();c.unsnooze.emit();c.onOpen(!1);return w()});M(1,"mat-icon",12);R(2,"Unsnooze now ");K()}},W0b=function(a){if(a&1){var b=t();J(0,"div",13);N("clickOutside",function(){u(b);P().timePickerOpen=!1;return w()});J(1,"b-date-time-picker-content",14);N("cancelClicked",function(){u(b);P().timePickerOpen=!1;return w()})("dateTimeChange",function(c){u(b);P().currentPickerDateTime=c;return w()})("saveClicked",
function(){u(b);var c=P(),d=c.currentPickerDateTime;d&&c.snooze.emit(d);c.timePickerOpen=!1;return w()});K()()}a&2&&(a=P(),x(),I("required",!0)("renderPanel",!0)("dateTime",a.currentPickerDateTime)("includeTimePicker",!0)("todayButtonEnabled",!1))},X0b=function(a){if(a&1){var b=t();Wg(0);J(1,"div",1)(2,"span",2)(3,"a",3);N("click",function(){u(b);P().onChipClicked.emit();return w()});R(4,"DMA");K()()();Xg()}a&2&&(a=P(),x(),I("matTooltip",a.DMA_TOOLTIP_TEXT))},Y0b=function(a){a&1&&(J(0,"label",10),
R(1),K());a&2&&(a=P().$implicit,I("matTooltip",a.description),x(),wh(a.label))},Z0b=function(a){a&1&&(J(0,"mat-tab"),D(1,Y0b,2,2,"ng-template",9),K())},$0b=function(a){if(a&1){var b=t();J(0,"mat-tab-group",8);N("selectedIndexChange",function(c){u(b);var d=P();return w(d.onTabIndexChange(c))});Pg(1,Z0b,2,0,"mat-tab",null,Og);K()}a&2&&(a=P(),I("selectedIndex",0),x(),Qg(a.tabData))},a1b=function(a,b){if(a&1){var c=t();J(0,"signal-filter-chips",12);N("changeSourceAndFilteredSignals",function(e){u(c);
var f=P(2).missionControlPrefs,h=e.selectedSignals;f.prefs.needsAttentionSources=e.selectedSources.map(Ckb);f.prefs.needsAttentionBuganizerFilteredSignals=Ekb(h.buganizerSignals,f.filteredSignalsOptions);f.prefs.needsAttentionDriveFilteredSignals=Ikb(h.driveSignals,f.filteredSignalsOptions);f.prefs.needsAttentionGerritFilteredSignals=Kkb(h.gerritSignals,f.filteredSignalsOptions);f.prefs.needsAttentionChangelistFilteredSignals=Gkb(h.changelistSignals,f.filteredSignalsOptions);f.prefs.needsAttentionGoogleTasksFilteredSignals=
Okb(h.googleTasksSignals,f.filteredSignalsOptions);f.prefs.needsAttentionIrmFilteredSignals=Pkb(h.irmSignals,f.filteredSignalsOptions);Qr(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 w()})("changeSourceFilter",function(e){u(c);var f=P(2).missionControlPrefs;e=e.map(Ckb);f.prefs.needsAttentionSources=e;Qr(f,{needsAttentionSources:e,isNeedsAttentionSourcesConfigured:!0});return w()});K()}if(a&2){a=P();var d=P();I("sourceFilterKeys",d.SOURCE_FILTERS)("selectedSources",a)("selectedSignals",b)}},b1b=function(a){a&
1&&(F(0,a1b,1,3,"signal-filter-chips",11),U(1,"async"));if(a&2){var b;a=P();G((b=V(1,1,a.filteredSignals$))?0:-1,b)}},c1b=function(a,b){if(a&1){var c=t();J(0,"time-boundary-filter",13);N("change",function(d){u(c);var e=P().missionControlPrefs;e.prefs.needsAttentionDaysOld=d;Qr(e,{needsAttentionDaysOld:d});return w()});K()}a&2&&I("selectedTimeBoundary",b)},d1b=function(a){if(a&1){var b=t();J(0,"div",6)(1,"button",14,0);N("taskAdded",function(){u(b);var c=P();return w(c.refreshTaskData())});R(3," Add a task ");
K()()}},e1b=function(a){a&1&&(J(0,"p",15),R(1," No alerts "),K())},f1b=function(a){if(a&1){var b=t();J(0,"th",31)(1,"mat-checkbox",32);N("change",function(d){u(b);var e=P(2),f=P(2);return w(d?f.toggleAllRows(e):null)});K()()}if(a&2){a=P(2);var c=P(2);x();I("checked",c.selection.hasValue()&&c.selection.selected.length===a.length)("indeterminate",c.selection.hasValue()&&c.selection.selected.length!==a.length)}},g1b=function(a,b){if(a&1){var c=t();J(0,"td",33)(1,"mat-checkbox",34);N("click",function(d){u(c);
return w(d.stopPropagation())})("change",function(d){var e=u(c).$implicit,f=P(4);return w(d?f.selection.toggle(e.id):null)});K()()}a&2&&(a=b.$implicit,b=P(4),x(),I("checked",b.selection.isSelected(a.id)))},h1b=function(a){a&1&&(J(0,"th",31),R(1),K());a&2&&(a=P(4),x(),wh(a.selection.hasValue()?"":"Source"))},i1b=function(a,b){a&1&&(J(0,"td",33),M(1,"mat-icon",35),K());a&2&&(a=b.$implicit,x(),vh(Dh("product-icon ",a.icon)),I("matTooltip",a.type)("svgIcon",a.icon),Lg("aria-label",a.type))},k1b=function(a){if(a&
1){var b=t();J(0,"button",38);N("click",function(){u(b);var c=P(5);j1b(c,c.selection.selected);c.selection.clear();return w()});R(1);U(2,"async");K()}a&2&&(a=P(5),x(),wh(V(2,1,a.dismissButtonLabel$)))},l1b=function(a){a&1&&(J(0,"span"),R(1,"Description"),K())},n1b=function(a){if(a&1){var b=t();J(0,"button",39);R(1);U(2,"async");K();J(3,"snooze-menu",40,1);N("snooze",function(d){u(b);var e=P(5);m1b(e,e.selection.selected,d);e.selection.clear();return w()})("unsnooze",function(){u(b);var d=P(5);m1b(d,
d.selection.selected);d.selection.clear();return w()});K()}if(a&2){a=Q(4);var c=P(5);I("matMenuTriggerFor",a.menu);x();wh(V(2,3,c.snoozeButtonLabel$));x(2);I("isSnoozed",c.signalStatusFilter$.getValue()===c.SignalStatus.SNOOZED)}},q1b=function(a){if(a&1){var b=t();J(0,"button",41);N("click",function(){u(b);var c=P(5);return w(o1b(c))});R(1);K()}a&2&&(a=P(5),x(),wh(p1b(a)?"Trigger manual signal":"Remove manual signal"))},r1b=function(a){a&1&&(J(0,"th",31),F(1,k1b,3,3,"button",36)(2,l1b,2,0,"span"),
F(3,n1b,5,5),F(4,q1b,2,1,"button",37),K());a&2&&(a=P(4),x(),G(a.selection.hasValue()?1:2),x(2),G(a.selection.hasValue()?3:-1),x(),G(a.selection.hasValue()?4:-1))},s1b=function(a){a&1&&M(0,"b-issue-visibility-chip",44);if(a&2){a=P(2).$implicit;var b=P(4);I("issueId",b.extractLastDigits(a.id))}},t1b=function(a){a&1&&M(0,"okr-chip",45);a&2&&(a=P(2).$implicit,I("okrIds",a.okrIds))},u1b=function(a){a&1&&M(0,"iteration-chip",46);a&2&&(a=P(2).$implicit,I("iteration",a.iteration))},v1b=function(a){a&1&&(J(0,
"div",47),U(1,"futureAvailability"),M(2,"mat-icon",52),K());a&2&&(a=P(2).$implicit,I("matTooltip",V(1,1,a.futureAvailability)))},w1b=function(a){a&1&&(J(0,"div",48),R(1),U(2,"number"),K());a&2&&(a=P(2).$implicit,x(),T(" <",Kh(2,1,a.reviewEstimate.seconds/60,"1.0-0"),"m "))},x1b=function(a){a&1&&M(0,"b-issue-priority-display",49);a&2&&(a=P(2).$implicit,I("issuePriority",a.priority))},z1b=function(a){if(a&1){var b=t();J(0,"div",42);F(1,s1b,1,1,"b-issue-visibility-chip",44);F(2,t1b,1,1,"okr-chip",45);
F(3,u1b,1,1,"iteration-chip",46);F(4,v1b,3,3,"div",47);F(5,w1b,3,4,"div",48);F(6,x1b,1,1,"b-issue-priority-display",49);J(7,"a",50);N("auxclick",function(){u(b);var d=P().$implicit,e=P(2),f=P(2);return w(f.sendClickAnalytics(d,e.slice(0,f.numDisplayedRows)))});R(8);K();J(9,"onedev-dma-chip",51);N("onChipClicked",function(){u(b);var d=P(5);return w(d.sendDmaAnalytics())});K()()}if(a&2){a=P().$implicit;var c=P(4);x();G(a.type===c.TaskResourceType.ISSUE?1:-1);x();G(c.enableOkrChip&&a.okrIds&&a.okrIds.length>
0?2:-1);x();G(c.enableIterationChip&&a.iteration?3:-1);x();G(c.hasFutureAvailability(a)?4:-1);x();G(a.reviewEstimate&&a.reviewEstimate.seconds>=60?5:-1);x();G(a.priority?6:-1);x();I("href",y1b(a),hf);Lg("target",a.type!==c.TaskResourceType.ISSUE?"_blank":null);x();T(" ",a.description," ");x();I("hotlistIds",a.hotlistIds)}},A1b=function(a){a&1&&(J(0,"span",43),R(1,"No access to linked file"),K())},B1b=function(a,b){a&1&&(J(0,"td",33),F(1,z1b,10,10,"div",42)(2,A1b,2,0,"span",43),K());a&2&&(a=b.$implicit,
x(),G(a.description&&a.description!==""?1:2))},C1b=function(a){a&1&&(J(0,"th",31),R(1),K());a&2&&(a=P(4),x(),wh(a.selection.hasValue()?"":"Most recent alert"))},D1b=function(a){if(a&1){var b=t();J(0,"div")(1,"stale-task-indicator",53);N("click",function(){u(b);P();P(4).analytics.trackEvent("missionControl","click","stalenessChip-{{row.type}}");return w()});K()()}a&2&&(a=P().$implicit,x(),I("taskId",a.id)("lastAlertTimestamp",a.lastAlertTimestamp))},E1b=function(a){a&1&&M(0,"b-formatted-date-time",
54);a&2&&(a=P(2).$implicit,I("timestamp",a.lastAlertTimestamp)("paddingLeftPx",6))},F1b=function(a){a&1&&F(0,E1b,1,2,"b-formatted-date-time",54);a&2&&(a=P().$implicit,G(a.lastAlertTimestamp?0:-1))},G1b=function(a,b){a&1&&(J(0,"td",33),F(1,D1b,2,2,"div")(2,F1b,1,1),K());a&2&&(a=b.$implicit,b=P(4),x(),G(b.enableStaleTasks&&a.isStaleTask?1:2))},H1b=function(a){a&1&&(J(0,"th",31),R(1),K());a&2&&(a=P(4),x(),T(" ",a.selection.hasValue()?"":"Alert"," "))},I1b=function(a,b){a&1&&(J(0,"td",33),M(1,"needs-attention-signals-cell",
55),K());a&2&&(a=b.$implicit,x(),I("issueId",a.issueId)("signals",a.signals))},J1b=function(a){a&1&&(J(0,"th",31),R(1),K());a&2&&(a=P(4),x(),wh(a.selection.hasValue()?"":"Action"))},K1b=function(a,b){a&1&&(J(0,"td",33)(1,"a",56),R(2),K()());if(a&2){a=b.$implicit;b=P(4);var c=b.SIGNAL_TO_ACTION_TEXT.get(b.getHighestPrioritySignal(a.signals).type);x();I("href",y1b(a),hf);Lg("target",a.type!==b.TaskResourceType.ISSUE?"_blank":null)("aria-label",c+(a.type!==b.TaskResourceType.ISSUE?", opens in new tab":
""));x();T(" ",c," ")}},L1b=function(a){a&1&&(J(0,"th",57),R(1),K());a&2&&(a=P(4),x(),wh(a.selection.hasValue()?"":a.signalStatusFilter$.getValue()!==a.SignalStatus.SNOOZED?"Options":"Snooze Until"))},N1b=function(a){a&1&&(J(0,"span",58),R(1),K());a&2&&(a=P().$implicit,P(4),x(),T("",M1b(a)," "))},O1b=function(a,b){if(a&1){var c=t();J(0,"td",33);F(1,N1b,2,1,"span",58);J(2,"div",59)(3,"button",60);N("click",function(h){var k=u(c).$implicit,q=P(4);h.preventDefault();return w(q.copyIdOrLink(k))});M(4,
"mat-icon",61);K();$g(5);U(6,"async");J(7,"button",62);N("click",function(h){var k=u(c).$implicit,q=P(4);h.preventDefault();return w(q.dismissAlert(k))});M(8,"mat-icon",63);K();$g(9);U(10,"async");J(11,"button",64);N("click",function(h){u(c);return w(h.preventDefault())});M(12,"mat-icon",65);K();J(13,"snooze-menu",40,1);N("snooze",function(h){var k=u(c).$implicit,q=P(4);m1b(q,[k.id],h);return w()})("unsnooze",function(){var h=u(c).$implicit,k=P(4);m1b(k,[h.id]);return w()});K()()()}if(a&2){var d=
b.$implicit;a=Q(14);b=P(4);x();G(b.signalStatusFilter$.getValue()===b.SignalStatus.SNOOZED?1:-1);x(2);I("matTooltip",d.type===b.TaskResourceType.ISSUE?"Copy ID to clipboard":"Copy link to clipboard");Lg("aria-label",d.type===b.TaskResourceType.ISSUE?"Copy ID to clipboard":"Copy link to clipboard");var e;d=(e=V(6,9,b.dismissButtonTooltip$))!=null?e:"";x(4);Kg("ariaLabel",d);I("matTooltip",d);var f;e=(f=V(10,11,b.snoozeButtonTooltip$))!=null?f:"";x(4);Kg("ariaLabel",e);I("matTooltip",e)("matMenuTriggerFor",
a.menu);x(2);I("isSnoozed",b.signalStatusFilter$.getValue()===b.SignalStatus.SNOOZED)}},P1b=function(a){a&1&&M(0,"tr",66)},Q1b=function(a){if(a&1){var b=t();J(0,"tr",67);N("click",function(c){var d=u(b).$implicit,e=P(2),f=P(2);return w(f.navigateToResource(c,d,e.slice(0,f.numDisplayedRows)))});K()}},R1b=function(a){a&1&&(J(0,"tr",68)(1,"td",69),R(2," No alerts found "),K()())},S1b=function(a){a&1&&M(0,"mat-icon",71)},T1b=function(a){a&1&&M(0,"mat-icon",72)},U1b=function(a){if(a&1){var b=t();J(0,"button",
70);N("click",function(){u(b);var d=P(2),e=P(2);return w(e.setNumDisplayedRows(d))});R(1);F(2,S1b,1,0,"mat-icon",71);F(3,T1b,1,0,"mat-icon",72);K()}if(a&2){a=P(2);var c=P(2);x();T(" ",a.length>c.numDisplayedRows?"Show more":"Show less"," ");x();G(a.length>c.numDisplayedRows?2:-1);x();G(a.length===c.numDisplayedRows?3:-1)}},V1b=function(a){a&1&&(J(0,"table",16),Wg(1,17),D(2,f1b,2,2,"th",18)(3,g1b,2,1,"td",19),Xg(),Wg(4,20),D(5,h1b,2,1,"th",18)(6,i1b,2,6,"td",19),Xg(),Wg(7,21),D(8,r1b,5,3,"th",18)(9,
B1b,3,1,"td",19),Xg(),Wg(10,22),D(11,C1b,2,1,"th",18)(12,G1b,3,1,"td",19),Xg(),Wg(13,23),D(14,H1b,2,1,"th",18)(15,I1b,2,2,"td",19),Xg(),Wg(16,24),D(17,J1b,2,1,"th",18)(18,K1b,3,4,"td",19),Xg(),Wg(19,25),D(20,L1b,2,1,"th",26)(21,O1b,15,13,"td",19),Xg(),D(22,P1b,1,0,"tr",27)(23,Q1b,1,0,"tr",28)(24,R1b,3,0,"tr",29),K(),F(25,U1b,4,3,"button",30));if(a&2){a=P();var b=P(2);I("dataSource",a.slice(0,b.numDisplayedRows));x(22);I("matHeaderRowDef",b.displayedColumns);x();I("matRowDefColumns",b.displayedColumns);
x(2);G(a.length>b.DEFAULT_NUM_ROWS_DISPLAYED?25:-1)}},W1b=function(a,b){a&1&&(F(0,e1b,2,0,"p",15),F(1,V1b,26,4));a&2&&(G(b.length===0?0:-1),x(),G(b.length>0?1:-1))},X1b=function(a){a&1&&(F(0,W1b,2,2),U(1,"async"));if(a&2){var b;a=P();G((b=V(1,1,a.allNeedsAttention$))?0:-1,b)}},Y1b=function(a){a&1&&(J(0,"div",7),M(1,"b-spinner",73),K());a&2&&(x(),Kg("ariaLabel","loading needs attention alerts"))},Z1b=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=sj(a).filter(function(d){return!c.includes(d)}).sort();return[c.join(","),a.join(",")]},$1b=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)},a2b=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)},b2b=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(Qj)},c2b=function(a,b){a&1&&(J(0,"div",6)(1,"span",8),R(2),K()());a&2&&(x(2),wh(b))},d2b=function(a){a&1&&(J(0,"div",7),M(1,"b-needs-attention-table",9),K());a&2&&(a=P(),x(),I("refreshTable",a.refreshData))},e2b=function(a,b){a&1&&(J(0,"mat-chip-option",1)(1,"span",2),R(2),K()());if(a&2){a=P().$implicit;var c=P();I("value",a)("selected",c.selectedSources.includes(a));x();I("matTooltip",b.tooltipText);x();T(" ",b.displayName," ")}},f2b=function(a,b){a&1&&F(0,e2b,3,4,"mat-chip-option",
1);if(a&2){var c;a=b.$implicit;b=P();G((c=b.DEFINITIONS[a])?0:-1,c)}},g2b=function(a,b){return{label:"Viewed",description:"Issues you recently viewed",issues:a.watchMany({custom:"viewed",pageSize:50}).pipe(C(function(c){c=c.results;return b?c.filter(function(d){return d.trackerId===b}):c})),loading:!1}},h2b=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"},i2b=function(a){a&1&&(J(0,
"label",11),R(1),K());a&2&&(a=P().$implicit,I("matTooltip",a.description),x(),wh(a.label))},j2b=function(a,b){if(a&1){var c=t();J(0,"source-filter-chips",14);N("change",function(d){u(c);var e=P(5).prefsService;d=d.map(Ckb);e.prefs.myTasksSources=d;Qr(e,{myTasksSources:d,isMyTasksSourcesConfigured:!0});return w()});K()}a&2&&(a=P(5),I("sourceFilterKeys",a.MY_TASK_FILTERS)("selectedSources",b))},k2b=function(a){a&1&&(J(0,"span",2),R(1,"Sources"),K(),F(2,j2b,1,2,"source-filter-chips",13),U(3,"async"));
if(a&2){var b;a=P(4);x(2);G((b=V(3,1,a.sources$))?2:-1,b)}},l2b=function(a,b){if(a&1){var c=t();J(0,"time-boundary-filter",15);N("change",function(d){u(c);var e=P(4).prefsService;e.prefs.myTasksDaysOld=d;Qr(e,{myTasksDaysOld:d});return w()});K()}a&2&&I("selectedTimeBoundary",b)},m2b=function(a){a&1&&(J(0,"div",9),F(1,k2b,4,3),F(2,l2b,1,1,"time-boundary-filter",12),U(3,"async"),K());if(a&2){var b;a=P(3);x();G(a.isInternalSession?1:-1);x();G((b=V(3,2,a.timeBoundary$))?2:-1,b)}},n2b=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))},o2b=function(a,b){a&1&&(J(0,"p",18),R(1),K());a&2&&(x(),T(" ",b.length===0?"Enable source filters to see tasks":"No tasks"," "))},p2b=function(a){a&1&&(F(0,o2b,2,1,"p",18),U(1,"async"));if(a&2){var b;a=P(5);G((b=V(1,1,a.sources$))?0:-1,b)}},q2b=function(a){a&1&&(J(0,"th",36),R(1,"Source"),K())},r2b=function(a,b){a&1&&(J(0,"td",37),M(1,"mat-icon",38),K());a&2&&(a=b.$implicit,
b=P(6),x(),vh(Dh("product-icon ",b.taskResourceTypeToIcon(a))),I("matTooltip",a.taskResourceType)("svgIcon",b.taskResourceTypeToIcon(a)))},s2b=function(a){a&1&&(J(0,"th",36),R(1,"Description"),K())},t2b=function(a){a&1&&M(0,"b-issue-visibility-chip",40);a&2&&(a=P(2).$implicit,I("issueId",a.issueId)("compactMode",!0))},u2b=function(a){a&1&&M(0,"b-issue-priority-display",41);a&2&&(a=P(2).$implicit,I("issuePriority",a.issueResource.priority))},v2b=function(a){if(a&1){var b=t();J(0,"onedev-dma-chip",
44);N("onChipClicked",function(){u(b);var c=P(8);return w(c.sendDmaAnalytics())});K()}a&2&&(a=P(2).$implicit,I("hotlistIds",a.issueResource.hotlistIds))},x2b=function(a){if(a&1){var b=t();F(0,t2b,1,2,"b-issue-visibility-chip",40);F(1,u2b,1,1,"b-issue-priority-display",41);J(2,"a",42);N("auxclick",function(){u(b);var d=P().$implicit,e=P(6);return w(e.sendClickAnalytics(d))});R(3);K();F(4,v2b,1,1,"onedev-dma-chip",43)}if(a&2){a=P().$implicit;var c=P(6);G(a.issueId?0:-1);x();G(a.issueResource&&a.issueResource.priority&&
w2b(a.issueResource.priority)?1:-1);x();I("href",a.taskResourceType===c.TaskResourceType.ISSUE?"/issues/"+c.extractLastDigits(a.taskId):a.externalLink,hf);Lg("target",a.taskResourceType!==c.TaskResourceType.ISSUE?"_blank":null);x();wh(a.title);x();G(a.issueResource&&a.issueResource.hotlistIds?4:-1)}},y2b=function(a){a&1&&(J(0,"span",39),R(1,"No access to linked file"),K())},z2b=function(a,b){a&1&&(J(0,"td",37),F(1,x2b,5,6)(2,y2b,2,0,"span",39),K());a&2&&(a=b.$implicit,x(),G(a.title&&a.title!==""?
1:2))},A2b=function(a){a&1&&(J(0,"th",36),R(1,"Last modified"),K())},B2b=function(a){a&1&&M(0,"b-formatted-date-time",45);a&2&&(a=P().$implicit,I("timestamp",a.lastModifiedTimestamp)("paddingLeftPx",0))},C2b=function(a,b){a&1&&(J(0,"td",37),F(1,B2b,1,2,"b-formatted-date-time",45),K());a&2&&(a=b.$implicit,x(),G(a.lastModifiedTimestamp?1:-1))},D2b=function(a){a&1&&(J(0,"th",36),R(1,"My role"),K())},E2b=function(a,b){a&1&&(J(0,"td",37),R(1),K());a&2&&(a=b.$implicit,x(),wh(a.resourceRelationships[0].roleName))},
F2b=function(a){a&1&&(J(0,"th",36),R(1,"Creation date"),K())},G2b=function(a){a&1&&M(0,"b-formatted-date-time",45);a&2&&(a=P().$implicit,I("timestamp",a.createdTimestamp)("paddingLeftPx",0))},H2b=function(a){a&1&&R(0," -- ")},I2b=function(a,b){a&1&&(J(0,"td",37),F(1,G2b,1,2,"b-formatted-date-time",45)(2,H2b,1,0),K());a&2&&(a=b.$implicit,x(),G(a.createdTimestamp?1:2))},J2b=function(a){a&1&&(J(0,"th",46),R(1," Options "),K())},L2b=function(a,b){if(a&1){var c=t();J(0,"td",47)(1,"div",48)(2,"button",
49);N("click",function(d){var e=u(c).$implicit,f=P(6);d.preventDefault();return w(K2b(f,e))});M(3,"mat-icon",50);K();J(4,"button",51);N("click",function(d){var e=u(c).$implicit,f=P(6);d.preventDefault();return w(f.copyIdOrLink(e))});M(5,"mat-icon",52);K()()()}a&2&&(a=b.$implicit,b=P(6),x(2),I("disabled",b.isSavingManualSignal)("matTooltip","Trigger a needs attention alert on this task"),x(2),I("matTooltip",a.taskResourceType===b.TaskResourceType.ISSUE?"Copy ID to clipboard":"Copy link to clipboard"),
Lg("aria-label",a.taskResourceType===b.TaskResourceType.ISSUE?"Copy ID to clipboard":"Copy link to clipboard"))},M2b=function(a){a&1&&M(0,"tr",53)},N2b=function(a){if(a&1){var b=t();J(0,"tr",54);N("click",function(c){var d=u(b).$implicit,e=P(6);return w(e.navigateToResource(c,d))});K()}},O2b=function(a){a&1&&M(0,"mat-icon",58)},P2b=function(a){a&1&&M(0,"mat-icon",59)},Q2b=function(a){if(a&1){var b=t();J(0,"button",57);N("click",function(){u(b);var d=P(3),e=P(4);return w(e.setNumDisplayedRows(d))});
R(1);F(2,O2b,1,0,"mat-icon",58);F(3,P2b,1,0,"mat-icon",59);K()}if(a&2){a=P(3);var c=P(4);x();T(" ",a.length>c.numDisplayedRows?"Show more":"Show less"," ");x();G(a.length>c.numDisplayedRows?2:-1);x();G(a.length===c.numDisplayedRows?3:-1)}},R2b=function(a){a&1&&(J(0,"td",55),F(1,Q2b,4,3,"button",56),K());if(a&2){a=P(2);var b=P(4);x();G(a.length>b.DEFAULT_NUM_ROWS_DISPLAYED?1:-1)}},S2b=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))}},T2b=
function(a,b){a&1&&(J(0,"td",62),R(1),K());a&2&&(x(),T(" ",b.length===0?"Enable source filters to see tasks":"No tasks found"," "))},U2b=function(a){a&1&&(J(0,"tr",61),F(1,T2b,2,1,"td",62),U(2,"async"),K());if(a&2){var b;a=P(6);x();G((b=V(2,1,a.sources$))?1:-1,b)}},X2b=function(a){a&1&&(J(0,"table",19),Wg(1,20),D(2,q2b,2,0,"th",21)(3,r2b,2,5,"td",22),Xg(),Wg(4,23),D(5,s2b,2,0,"th",21)(6,z2b,3,1,"td",22),Xg(),Wg(7,24),D(8,A2b,2,0,"th",21)(9,C2b,2,1,"td",22),Xg(),Wg(10,25),D(11,D2b,2,0,"th",21)(12,
E2b,2,1,"td",22),Xg(),Wg(13,26),D(14,F2b,2,0,"th",21)(15,I2b,3,1,"td",22),Xg(),Wg(16,27),D(17,J2b,2,0,"th",28)(18,L2b,6,4,"td",29),Xg(),D(19,M2b,1,0,"tr",30)(20,N2b,1,0,"tr",31),Wg(21,32),D(22,R2b,2,1,"td",33),Xg(),D(23,S2b,1,1,"tr",34)(24,U2b,3,3,"tr",35),K());if(a&2){a=P();var b=P(2).$implicit,c=P(2);vh(Dh("table-",b.label));I("dataSource",a.slice(0,c.numDisplayedRows)||Gh(7,V2b));x(19);I("matHeaderRowDef",c.displayColumns);x();I("matRowDefColumns",c.displayColumns);x(3);I("matFooterRowDef",Gh(8,
W2b))}},Y2b=function(a,b){a&1&&(F(0,p2b,2,3),F(1,X2b,25,9,"table",17));a&2&&(G(b.length===0?0:-1),x(),G(b.length>0?1:-1))},Z2b=function(a){a&1&&(F(0,n2b,1,3,"b-issues-table",16),U(1,"async"),F(2,Y2b,2,2),U(3,"async"));if(a&2){var b,c;a=P().$implicit;G((b=V(1,2,a.issues))?0:-1,b);x(2);G((c=V(3,4,a.liteTasks))?2:-1,c)}},$2b=function(a){a&1&&(J(0,"div",10),M(1,"b-spinner",63),K());a&2&&(x(),Kg("ariaLabel","loading tasks"))},a3b=function(a,b){a&1&&(J(0,"mat-tab"),D(1,i2b,2,2,"ng-template",8),F(2,m2b,
4,4,"div",9),F(3,Z2b,4,6)(4,$2b,2,1,"div",10),K());a&2&&(a=b.$implicit,x(2),G(a.liteTasks?2:-1),x(),G(a.loading?4:3))},b3b=function(a){if(a&1){var b=t();J(0,"div",6)(1,"mat-tab-group",7);N("selectedIndexChange",function(c){u(b);var d=P();return w(d.onTabIndexChange(c))});Pg(2,a3b,5,2,"mat-tab",null,Og);K()()}a&2&&(a=P(),x(),I("selectedIndex",a.INITIAL_TAB_INDEX),x(),Qg(a.tabData))},c3b=function(a,b){return a.lastModifiedTimestamp?b.lastModifiedTimestamp?ql(b.lastModifiedTimestamp)-ql(a.lastModifiedTimestamp):
1:-1},e3b=function(a){if(a&1){var b=t();J(0,"div",8)(1,"button",9);N("click",function(){u(b);var c=P();d3b(c.userFeedback);return w()});R(2,"Give feedback");K()()}},f3b=function(a,b){a&1&&(J(0,"mat-option",2),R(1),K());a&2&&(a=b.$implicit,I("value",a.id),x(),T(" ",a.displayName," "))},g3b=function(a,b){return a.gmt===b.gmt?a.id>b.id?1:-1:a.gmt>b.gmt?1:-1},h3b=function(a,b){a&1&&(J(0,"mat-option",2),R(1),K());a&2&&(a=b.$implicit,I("value",a.frequency),x(),T(" ",a.display," "))},i3b=function(a,b){if(a&
1){var c=t();J(0,"div")(1,"mat-form-field",0)(2,"mat-label");R(3," Frequency ");K();J(4,"mat-select",1);N("ngModelChange",function(d){u(c);var e=P();return w(e.frequency$.next(d))});Pg(5,h3b,2,2,"mat-option",2,Og);K()()()}a&2&&(a=P(),x(4),I("ngModel",b),x(),Qg(a.frequencyOptions))},j3b=function(a,b){a&1&&(J(0,"mat-option",2),R(1),K());a&2&&(a=b.$implicit,I("value",a.ordinal),x(),T(" ",a.display," "))},k3b=function(a,b){if(a&1){var c=t();J(0,"div")(1,"mat-form-field",0)(2,"mat-label");R(3," Repeat on ");
K();J(4,"mat-select",1);N("ngModelChange",function(d){u(c);var e=P();return w(e.ordinal$.next(d))});Pg(5,j3b,2,2,"mat-option",2,Og);K()()()}a&2&&(a=P(),x(4),I("ngModel",b),x(),Qg(a.repeatOnOptions.get(a.frequency$.value)))},l3b=function(a,b){a&1&&(J(0,"mat-option",2),R(1),K());a&2&&(a=b.$implicit,I("value",a.timeOfDay),x(),T(" ~",a.display," "))},m3b=function(a,b){if(a&1){var c=t();J(0,"div")(1,"mat-form-field",0)(2,"mat-label");R(3," Repeat at ");K();J(4,"mat-select",3);N("ngModelChange",function(d){u(c);
var e=P();return w(e.timeOfDay$.next(d))});Pg(5,l3b,2,2,"mat-option",2,Og);K()()()}a&2&&(a=P(),x(4),I("ngModel",b)("compareWith",a.compareTimeOfDay),x(),Qg(a.repeatAtOptions))},n3b=function(a,b){if(a&1){var c=t();J(0,"div")(1,"b-timezone-picker",4);N("timezoneIdChange",function(d){u(c);var e=P();return w(e.timeZoneId$.next(d))});K()()}a&2&&(x(),I("timezoneId",b)("fullWidth",!0))},o3b=function(a,b){return a.hours===b.hours&&a.minutes===b.minutes&&a.seconds===b.seconds&&a.nanos===b.nanos},p3b=function(a){a&
1&&Yg(0)},q3b=function(a){a&1&&(J(0,"th",17),R(1,"Name"),K())},r3b=function(a,b){a&1&&(J(0,"td",18),R(1),K());a&2&&(a=b.$implicit,x(),T(" ",a.displayName," "))},s3b=function(a){a&1&&(J(0,"th",17),R(1,"Status"),K())},t3b=function(a){a&1&&M(0,"mat-icon",19);a&2&&(a=P(3),I("matTooltip",a.warningTooltipText))},u3b=function(a,b){a&1&&(J(0,"td",18),F(1,t3b,1,1,"mat-icon",19),K());a&2&&(a=b.$implicit,x(),G(a.isOverflowing?1:-1))},v3b=function(a){a&1&&(J(0,"th",17),R(1,"Actions"),K())},w3b=function(a,b){if(a&
1){var c=t();J(0,"td",18)(1,"button",20);M(2,"mat-icon",21);K();J(3,"mat-menu",null,2)(5,"a",22);R(6," Search issues with query ");K();M(7,"mat-divider");J(8,"button",23);N("click",function(){var d=u(c).$implicit,e=P(2);return w(e.openDialog(d))});R(9," Edit subscription ");K();J(10,"button",24);N("click",function(){var d=u(c).$implicit,e=P(2);return w(e.openConfirmDeleteDialog(d))});R(11," Delete subscription ");K()()()}a&2&&(a=b.$implicit,b=Q(4),P(2),x(),I("matMenuTriggerFor",b),x(4),I("routerLinkObj",
{path:"/issues",queryParams:{q:a.query,s:"modified_time:desc"}}))},x3b=function(a){a&1&&M(0,"tr",25)},y3b=function(a,b){a&1&&M(0,"tr",26);a&2&&(a=b.$implicit,Lg("aria-label","Subscription "+a.id+": "+a.displayName))},z3b=function(a){a&1&&(J(0,"div",8)(1,"table",9),Wg(2,10),D(3,q3b,2,0,"th",11)(4,r3b,2,1,"td",12),Xg(),Wg(5,13),D(6,s3b,2,0,"th",11)(7,u3b,2,1,"td",12),Xg(),Wg(8,14),D(9,v3b,2,0,"th",11)(10,w3b,12,2,"td",12),Xg(),D(11,x3b,1,0,"tr",15)(12,y3b,1,1,"tr",16),K()());a&2&&(a=P(),x(),I("dataSource",
a.ownedSubscriptions$),x(10),I("matHeaderRowDef",a.columnsToDisplay),x(),I("matRowDefColumns",a.columnsToDisplay))},A3b=function(a){a&1&&R(0," Add configurable alert ")},B3b=function(a){a&1&&R(0," Update configurable alert ")},C3b=function(a){a&1&&R(0," Create a new configurable alert. ")},D3b=function(a){a&1&&R(0," Update a configurable alert. ")},E3b=function(a){a&1&&R(0);a&2&&(a=P().$implicit,T(" Subscription ID: ",a.id," "))},F3b=function(a){a&1&&M(0,"b-spinner")},G3b=function(a,b){if(a&1){var c=
t();J(0,"h1",27);F(1,A3b,1,0)(2,B3b,1,0);K();J(3,"mat-dialog-content")(4,"p",28);F(5,C3b,1,0)(6,D3b,1,0);K();J(7,"mat-form-field",29)(8,"mat-label");R(9,"Name");K();J(10,"input",30);Ah("ngModelChange",function(d){var e=u(c).$implicit;zh(e.displayName,d)||(e.displayName=d);return w(d)});K()();J(11,"mat-form-field",29)(12,"mat-label");R(13,"Search query");K();J(14,"input",31);Ah("ngModelChange",function(d){var e=u(c).$implicit;zh(e.query,d)||(e.query=d);return w(d)});K()();J(15,"b-delivery-frequency-subform",
32);N("frequencyChange",function(d){var e=u(c).$implicit,f=P();return w(f.setFrequency(e,d))});Ah("ordinalChange",function(d){var e=u(c).$implicit;zh(e.ordinal,d)||(e.ordinal=d);return w(d)})("timeOfDayChange",function(d){var e=u(c).$implicit;zh(e.timeOfDay,d)||(e.timeOfDay=d);return w(d)})("timeZoneIdChange",function(d){var e=u(c).$implicit;zh(e.timeZone.id,d)||(e.timeZone.id=d);return w(d)});K();J(16,"div",29)(17,"mat-slide-toggle",33);N("change",function(d){var e=u(c).$implicit;return w(e.sendEmail=
d.checked)});R(18," Send email when newly matching issues are found. ");K()();J(19,"div",34)(20,"span",35);F(21,E3b,1,1);K();F(22,F3b,1,0,"b-spinner");U(23,"async");K()();J(24,"mat-dialog-actions")(25,"button",36);R(26,"Cancel");K();J(27,"button",7);N("click",function(){var d=u(c).$implicit,e=P();return w(e.save(d))});R(28);K()()}a&2&&(a=b.$implicit,b=P(),x(),G(a.id==="0"?1:2),x(4),G(a.id==="0"?5:6),x(5),yh("ngModel",a.displayName),x(4),yh("ngModel",a.query),x(),I("frequency",a.frequency),yh("ordinal",
a.ordinal)("timeOfDay",a.timeOfDay)("timeZoneId",a.timeZone.id),x(2),I("checked",a.sendEmail),x(4),G(a.id!=="0"?21:-1),x(),G(V(23,12,b.isSaving$)?22:-1),x(6),T(" ",a.id==="0"?"Add":"Update"," "))},H3b=function(a){a&1&&(J(0,"mat-option",20),R(1),K());a&2&&(a=P().$implicit,I("value",a),x(),T(" ",a.name," "))},I3b=function(a,b){a&1&&F(0,H3b,2,2,"mat-option",20);a&2&&G(b.$implicit.shouldDisplay()?0:-1)},J3b=function(a,b){a&1&&(J(0,"mat-option",22),R(1),K());a&2&&(a=b.$implicit,I("value",a.id),x(),T(" ",
a.name," "))},L3b=function(a){if(a&1){var b=t();J(0,"mat-form-field",5)(1,"mat-select",21);Ah("ngModelChange",function(c){u(b);var d=P();zh(d.preferredHomepage.selectedOptionId,c)||(d.preferredHomepage.selectedOptionId=c);return w(c)});N("selectionChange",function(){u(b);var c=P();return w(K3b(c.preferredHomepage))});Pg(2,J3b,2,2,"mat-option",22,Og);K()()}a&2&&(a=P(),x(),yh("ngModel",a.preferredHomepage.selectedOptionId),x(),Qg(a.preferredHomepage.selectedMainOption.options))},M3b=function(a){if(a&
1){var b=t();J(0,"div")(1,"mat-slide-toggle",23);N("change",function(c){u(b);var d=P();c=c.checked;if(d.userPreferences){var e;d.userPreferences.missionControlPreferences=(e=d.userPreferences.missionControlPreferences)!=null?e:{};e=!c;d.userPreferences.missionControlPreferences.hideBadgeInNav=e;d.save("hideBadgeInNav",String(e))}return w()});R(2,' Show red "attention" badge in left navigation ');K()()}a&2&&(a=P(),x(),I("checked",!a.hideBadgeInNav))},N3b=function(a,b){a&1&&(J(0,"mat-option",12),R(1),
K());a&2&&(a=b.$implicit,I("value",a.value),x(),T(" ",a.label," "))},O3b=function(a,b){a&1&&(J(0,"mat-option",12),R(1),K());a&2&&(a=b.$implicit,I("value",a.value),x(),T(" ",a.label," "))},P3b=function(a,b){a&1&&(J(0,"mat-option",12),R(1),K());a&2&&(a=b.$implicit,I("value",a.value),x(),T(" ",a.label," "))},R3b=function(a){if(a&1){var b=t();J(0,"div",18)(1,"mat-slide-toggle",24);N("change",function(c){u(b);var d=P();d.userPreferences.textDisplayPreferences&&d.userPreferences.commentFormattingPreferences&&
(c=c.checked?"LITERAL_FORMATTING_MODE":void 0,d.userPreferences.commentFormattingPreferences.commentDisplayOverride=c,d.userPreferences.commentFormattingPreferences.commentCreateOverride=c,d.userPreferences.textDisplayPreferences.commentDisplayOverride=c,d.save("saveTextDisplayPreferences.commentDisplayOverride"));return w()});R(2," Force comments to display as plain text ");K()()}a&2&&(a=P(),x(),I("checked",Q3b(a)))},S3b=function(a){if(a&1){var b=t();J(0,"div",18)(1,"mat-slide-toggle",25);N("change",
function(c){u(b);var d=P();c=c.checked;d.userPreferences.showInlineImages=c;d.save("showInlineImages",c.toString());return w()});R(2," Show trusted images (e.g. SnipIt screenshots) inline in comments ");K()()}a&2&&(a=P(),x(),I("checked",a.getShowInlineImages()))},V3b=function(a){if(a&1){var b=t();M(0,"hr",8);J(1,"div",0)(2,"div",1)(3,"p",2);R(4,"Comment formatting settings");K()();J(5,"div")(6,"div",18)(7,"mat-slide-toggle",26);N("change",function(c){u(b);var d=P();d.userPreferences.commentFormattingPreferences&&
d.userPreferences.textDisplayPreferences&&(c=c.checked?"LITERAL_FORMATTING_MODE":void 0,d.userPreferences.textDisplayPreferences.commentDisplayOverride=c,d.userPreferences.commentFormattingPreferences.commentDisplayOverride=c,d.save("saveCommentFormattingPreferences.commentDisplayOverride"));return w()});R(8," Force comments to display as plain text ");K()();J(9,"div",18)(10,"mat-slide-toggle",27);N("change",function(c){u(b);var d=P();d.userPreferences.commentFormattingPreferences&&(d.userPreferences.commentFormattingPreferences.commentCreateOverride=
c.checked?"LITERAL_FORMATTING_MODE":void 0,d.save("saveCommentFormattingPreferences.commentCreateOverride"));return w()});R(11," Force comments to be created as plain text ");K()()()()}a&2&&(a=P(),x(7),I("checked",T3b(a)),x(3),I("checked",U3b(a)))},W3b=function(a){if(a&1){var b=t();J(0,"div",0)(1,"div",1)(2,"p",2);R(3,"Other");K()();J(4,"div")(5,"div")(6,"mat-slide-toggle",28);N("change",function(c){u(b);var d=P();d.userPreferences.bugScreensaverPreferences.enableBugScreensaver=c.checked;return w(d.save("saveBugScreensaverPreferences"))});
R(7," Enable bug screensaver ");K()()()()}a&2&&(a=P(),x(6),I("checked",a.userPreferences.bugScreensaverPreferences.enableBugScreensaver))},X3b=function(a,b){a&1&&(J(0,"mat-option",8),R(1),U(2,"toNewEmailPreference"),K());a&2&&(a=b.$implicit,I("value",a),x(),T(" ",V(2,2,a)," "))},Y3b=function(a,b){a&1&&(J(0,"mat-option",8),R(1),U(2,"toNewEmailPreference"),K());a&2&&(a=b.$implicit,I("value",a),x(),T(" ",V(2,2,a)," "))},Z3b=function(a,b){a&1&&(J(0,"mat-option",8),R(1),U(2,"toNewEmailPreference"),K());
a&2&&(a=b.$implicit,I("value",a),x(),T(" ",V(2,2,a)," "))},$3b=function(a,b){a&1&&(J(0,"mat-option",8),R(1),U(2,"toNewEmailPreference"),K());a&2&&(a=b.$implicit,I("value",a),x(),T(" ",V(2,2,a)," "))},a4b=function(a,b){a&1&&(J(0,"mat-option",8),R(1),U(2,"toNewEmailPreference"),K());a&2&&(a=b.$implicit,I("value",a),x(),T(" ",V(2,2,a)," "))},b4b=function(a,b){a&1&&(J(0,"mat-option",8),R(1),U(2,"toNewEmailPreference"),K());a&2&&(a=b.$implicit,I("value",a),x(),T(" ",V(2,2,a)," "))},c4b=function(a){a&1&&
M(0,"b-spinner")},d4b=function(a){a&1&&(J(0,"mat-hint"),R(1,"This field is read-only"),K())},e4b=function(a,b){a&1&&(J(0,"mat-option",21),R(1),K());a&2&&(a=b.$implicit,I("value",a.value),x(),wh(a.displayText))},g4b=function(a,b){if(a&1){var c=t();J(0,"div",24)(1,"a",26);R(2);K();J(3,"button",27);N("click",function(){var d=u(c).$implicit,e=P(2),f=P(2);return w(f4b(f,e,d))});M(4,"mat-icon",28);K()()}a&2&&(a=b.$implicit,x(),I("href","/slos/"+a,hf),x(),wh(a),x(),I("matTooltip","Remove SLO ID "+a))},h4b=
function(a){a&1&&(J(0,"div",25),R(1),K());a&2&&(a=P(2),x(),T(" Subscription ID: ",a.id," "))},j4b=function(a){if(a&1){var b=t();J(0,"b-delivery-frequency-subform",17);N("frequencyChange",function(e){u(b);var f=P(),h=P(2);return w(h.setFrequency(e,f))})("ordinalChange",function(e){u(b);var f=P(),h=P(2);As(h,Object.assign({},f,{ordinal:e}));return w()})("timeOfDayChange",function(e){u(b);var f=P(),h=P(2);As(h,Object.assign({},f,{timeOfDay:e}));return w()})("timeZoneIdChange",function(e){u(b);var f=
P(),h=P(2);return w(h.setTimeZone(e,f))});K();J(1,"div")(2,"mat-form-field",18)(3,"mat-label");R(4,"Days remaining");K();J(5,"input",19);Ah("ngModelChange",function(e){u(b);var f=P(3);zh(f.inputDaysRemaining,e)||(f.inputDaysRemaining=e);return w(e)});N("blur",function(){u(b);var e=P(),f=P(2);return w(f.setDaysRemaining(e))})("keydown.enter",function(){u(b);var e=P(),f=P(2);return w(f.setDaysRemaining(e))});K()()();J(6,"div")(7,"mat-form-field",18)(8,"mat-label");R(9,"Types");K();J(10,"mat-select",
20);N("ngModelChange",function(e){u(b);var f=P(),h=P(2);return w(h.setIssueType(e,f))});Pg(11,e4b,2,2,"mat-option",21,Og);K()()();J(13,"div",8)(14,"mat-form-field",22)(15,"mat-label");R(16,"Add SLO ID");K();J(17,"input",23);Ah("ngModelChange",function(e){u(b);var f=P(3);zh(f.newSloId,e)||(f.newSloId=e);return w(e)});N("keydown.enter",function(){u(b);var e=P(),f=P(2);return w(i4b(f,e))})("blur",function(){u(b);var e=P(),f=P(2);return w(i4b(f,e))});K()();Pg(18,g4b,5,3,"div",24,Og);K();F(20,h4b,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);x(5);yh("ngModel",c.inputDaysRemaining);x(5);I("ngModel",a.types);x();Qg(c.typeChoices);x(6);yh("ngModel",c.newSloId);x();Qg(a.sloIds);x(2);G(a.id?20:-1)}},l4b=function(a,b){if(a&1){var c=t();J(0,"div")(1,"div",8)(2,"mat-slide-toggle",14);U(3,"async");N("change",function(){u(c);var d=P(2);return w(k4b(d))});R(4," Subscribe to your own reports ");F(5,
c4b,1,0,"b-spinner");U(6,"async");K()();J(7,"div")(8,"mat-form-field",15)(9,"mat-label");R(10,"Scope");K();J(11,"input",16);N("focus",function(){u(c);var d=P(2);return w(d.inputHasFocus=!0)})("blur",function(){u(c);var d=P(2);return w(d.inputHasFocus=!1)});K();F(12,d4b,2,0,"mat-hint");K()();F(13,j4b,21,8);K()}a&2&&(a=P(2),x(2),I("disabled",V(3,6,a.isThinking$))("checked",b.id!==0),x(3),G(V(6,8,a.isThinking$)?5:-1),x(6),I("ngModel",a.currentUser.email),x(),G(a.inputHasFocus?12:-1),x(),G(b.id!==0?13:
-1))},m4b=function(a){a&1&&(J(0,"div",2)(1,"div",3)(2,"p",4),R(3,"Frequency settings"),K(),J(4,"p",11),R(5," Choose when to receive your own reports. "),J(6,"a",12),R(7,"Learn more"),K()()(),F(8,l4b,14,10,"div"),U(9,"async"),K(),M(10,"hr",13));if(a&2){var b;a=P();x(8);G((b=V(9,1,a.userSubscription$))?8:-1,b)}},n4b=function(a){a&1&&M(0,"b-spinner")},o4b=function(a){a&1&&(J(0,"th",36),R(1,"Scope"),K())},p4b=function(a,b){a&1&&(J(0,"td",37),R(1),K());a&2&&(a=b.$implicit,x(),T(" ",a.lead.emailAddress,
" "))},q4b=function(a){a&1&&(J(0,"th",36),R(1,"Frequency"),K())},s4b=function(a,b){a&1&&(J(0,"td",37),R(1),U(2,"async"),U(3,"async"),K());if(a&2){var c;a=b.$implicit;b=P(2);x();var d=b.frequencyDisplayMap.get(a.frequency);if(a.ordinal)if(a.frequency==="weekly")var e="- "+r4b[a.ordinal-1].display;else if(a.frequency==="monthly"){e=a.ordinal;var f=e%10,h=e%100;e="- "+(f===1&&h!==11?String(e)+"st":f===2&&h!==12?String(e)+"nd":f===3&&h!==13?String(e)+"rd":String(e)+"th")}else e="";else e="";jna(" ",d,
" ",e," - ",(c=V(2,4,b.hourOfDayDisplayMap$))==null?null:c.get(a.timeOfDay.hours)," - ",(c=V(3,6,b.timeZoneDisplayMap$))==null?null:c.get(a.timeZone.id)," ")}},t4b=function(a){a&1&&M(0,"th",36)},u4b=function(a){if(a&1){var b=t();J(0,"td",37)(1,"button",38);M(2,"mat-icon",39);K();J(3,"mat-menu",null,1)(5,"button",40);N("click",function(){var c=u(b).$implicit,d=P(2);return w(d.openDialog(c))});R(6," Edit subscription ");K();J(7,"button",41);N("click",function(){var c=u(b).$implicit,d=P(2);return w(d.openConfirmDeleteDialog(c))});
R(8," Delete subscription ");K()()()}a&2&&(a=Q(4),x(),I("matMenuTriggerFor",a))},v4b=function(a){a&1&&M(0,"tr",42)},w4b=function(a,b){a&1&&M(0,"tr",43);a&2&&(a=b.$implicit,Lg("aria-label","Subscription with ID "+a.id+" and scoped to "+a.lead.emailAddress))},x4b=function(a){a&1&&(J(0,"table",10),Wg(1,29),D(2,o4b,2,0,"th",30)(3,p4b,2,1,"td",31),Xg(),Wg(4,32),D(5,q4b,2,0,"th",30)(6,s4b,4,8,"td",31),Xg(),Wg(7,33),D(8,t4b,1,0,"th",30)(9,u4b,9,1,"td",31),Xg(),D(10,v4b,1,0,"tr",34)(11,w4b,1,1,"tr",35),K());
a&2&&(a=P(),I("dataSource",a.subscriptions$),x(10),I("matHeaderRowDef",a.columns),x(),I("matRowDefColumns",a.columns))},y4b=function(a){if(a&1){var b=t();J(0,"b-peoplekit-single",54);N("emailChange",function(d){u(b);var e=P().$implicit,f=P();return w(e.lead=f.emailToUser(d))});K()}if(a&2){a=P().$implicit;var c;I("asMatInput",!0)("email",(c=a.lead==null?null:a.lead.emailAddress)!=null?c:"")("required",!0)("placeholder","Search users...")}},z4b=function(a){if(a&1){var b=t();J(0,"input",55);N("ngModelChange",
function(d){u(b);var e=P().$implicit,f=P();return w(e.lead=f.emailToUser(d))});K()}if(a&2){a=P().$implicit;var c;I("ngModel",(c=a.lead==null?null:a.lead.emailAddress)!=null?c:"")("bContactAutocomplete","SINGLE")}},A4b=function(a){a&1&&(J(0,"mat-error"),R(1,"Please select a valid, single user"),K())},B4b=function(a){a&1&&(J(0,"mat-error"),R(1,"Report for sundar@ cannot be generated"),K())},C4b=function(a,b){a&1&&(J(0,"mat-option",21),R(1),K());a&2&&(a=b.$implicit,I("value",a.value),x(),wh(a.displayText))},
E4b=function(a,b){if(a&1){var c=t();J(0,"div",24)(1,"a",26);R(2);K();J(3,"button",27);N("click",function(){var d=u(c).$implicit,e=P().$implicit;P();return w(D4b(e,d))});M(4,"mat-icon",28);K()()}a&2&&(a=b.$implicit,x(),I("href","/slos/"+a,hf),x(),wh(a),x(),I("matTooltip","Remove SLO ID "+a))},F4b=function(a){a&1&&(J(0,"div",25),R(1),K());a&2&&(a=P().$implicit,x(),T(" Subscription ID: ",a.id," "))},I4b=function(a,b){if(a&1){var c=t();J(0,"h1",44);R(1,"Add report subscription");K();J(2,"mat-dialog-content")(3,
"p",45);R(4," Select the user (scope) and frequency of the report you wish to receive. ");K();J(5,"div")(6,"mat-form-field",46)(7,"mat-label");R(8,"Scope");K();F(9,y4b,1,4,"b-peoplekit-single",47)(10,z4b,1,2,"input",48);F(11,A4b,2,0,"mat-error");F(12,B4b,2,0,"mat-error");K()();J(13,"b-delivery-frequency-subform",17);N("frequencyChange",function(e){var f=u(c).$implicit;P();f.frequency=e;e!=="daily"?f.ordinal=1:delete f.ordinal;return w()})("ordinalChange",function(e){var f=u(c).$implicit;return w(f.ordinal=
e)});Ah("timeOfDayChange",function(e){var f=u(c).$implicit;zh(f.timeOfDay,e)||(f.timeOfDay=e);return w(e)})("timeZoneIdChange",function(e){var f=u(c).$implicit;zh(f.timeZone.id,e)||(f.timeZone.id=e);return w(e)});K();J(14,"div")(15,"mat-form-field",15)(16,"mat-label");R(17,"Days remaining");K();J(18,"input",49);Ah("ngModelChange",function(e){var f=u(c).$implicit;zh(f.daysRemaining,e)||(f.daysRemaining=e);return w(e)});K()()();J(19,"div")(20,"mat-form-field",15)(21,"mat-label");R(22,"Types");K();J(23,
"mat-select",20);Ah("ngModelChange",function(e){var f=u(c).$implicit;zh(f.types,e)||(f.types=e);return w(e)});Pg(24,C4b,2,2,"mat-option",21,Og);K()()();J(26,"div",8)(27,"mat-form-field",50)(28,"mat-label");R(29,"Add SLO ID");K();J(30,"input",23);Ah("ngModelChange",function(e){u(c);var f=P();zh(f.newSloId,e)||(f.newSloId=e);return w(e)});N("keydown.enter",function(){var e=u(c).$implicit,f=P();return w(G4b(f,e))})("blur",function(){var e=u(c).$implicit,f=P();return w(G4b(f,e))});K()();Pg(31,E4b,5,3,
"div",24,Og);K();F(33,F4b,2,1,"div",25);J(34,"p",51);R(35," You are the only recipient of your subscription. Anyone else wishing to receive this report will need to subscribe for themselves. ");K();J(36,"a",52);R(37,"Learn more");K()();J(38,"mat-dialog-actions")(39,"button",53);R(40,"Cancel");K();J(41,"button",9);N("click",function(){var e=u(c).$implicit,f=P();return w(H4b(f,e))});R(42);K()()}if(a&2){a=b.$implicit;b=P();x(9);G(b.enablePeoplekitAc?9:10);x(2);G(b.dialogInvalidEmailFormat?11:-1);x();
G(b.ceoSelected?12:-1);x();var d;I("frequency",a.frequency)("ordinal",(d=a.ordinal)!=null?d:0);yh("timeOfDay",a.timeOfDay)("timeZoneId",a.timeZone.id);x(5);yh("ngModel",a.daysRemaining);x(5);yh("ngModel",a.types);x();Qg(b.typeChoices);x(6);yh("ngModel",b.newSloId);x();Qg(a.sloIds);x(2);G(a.id?33:-1);x(8);I("disabled",!a.lead||!a.lead.emailAddress);x();T(" ",a.id===0?"Add":"Update"," ")}},J4b=function(a){a&1&&(J(0,"div",7),M(1,"b-general-settings"),K())},K4b=function(a){a&1&&(J(0,"div",7),M(1,"b-notification-settings"),
K())},L4b=function(a){a&1&&(J(0,"div",7),M(1,"b-configurable-alert-settings"),K())},M4b=function(a){a&1&&(J(0,"div",7),M(1,"b-slo-reports-settings"),K())},N4b=function(a){a&1&&(J(0,"mat-tab",6),D(1,M4b,2,0,"ng-template",3),K())},O4b=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)},P4b=function(a){if(a&
1){var b=t();J(0,"b-star-toggle",11);N("starClicked",function(){u(b);var c=P(2);return w(c.toggleStar())});K()}a&2&&(a=P(2),I("starMessage","Star this bookmark group")("unStarMessage","Un-star this bookmark group")("starred",a.isStarred))},Q4b=function(a,b){a&1&&(J(0,"li")(1,"a",12),R(2),K()());a&2&&(a=b.$implicit,b=P(2),x(),I("href",b.getUrl(a),hf),x(),wh(b.getDisplayName(a)))},R4b=function(a){if(a&1){var b=t();J(0,"div")(1,"div",3)(2,"div",4);F(3,O4b,1,4,"b-star-toggle",5)(4,P4b,1,3,"b-star-toggle",
6);J(5,"span",7);R(6);K();J(7,"button",8);N("click",function(){u(b);var c=P();return w(c.openEditBookmarkGroup())});K()();J(8,"div",9);R(9);K()();J(10,"ul",10);Pg(11,Q4b,3,2,"li",null,Og);K()()}a&2&&(a=P(),x(3),G(a.userIsAdmin?3:4),x(3),T("Bookmark Group: ",a.bookmarkGroup.name," "),x(3),wh(a.bookmarkGroup.description),x(2),Qg(a.bookmarkGroup.item))},S4b=function(a){if(a&1){var b=t();J(0,"button",10);N("click",function(){u(b);var c=P(2);return w(c.addToMissionControl(c.hotlistId))});R(1," Hotlist insights in Home ");
K()}},T4b=function(a,b){a&1&&F(0,S4b,2,0,"button",9);a&2&&(a=P(),G(a.showAddToMcButton(b)?0:-1))},U4b=function(a){if(a&1){var b=t();J(0,"b-star-toggle",16);N("starClicked",function(){u(b);var c=P(2);return w(c.toggleStar())})("keydown.space",function(c){u(b);return w(c.stopPropagation())})("keydown.enter",function(c){u(b);return w(c.stopPropagation())});K()}a&2&&(a=P(2),I("starMessage","Star this hotlist")("unStarMessage","Un-star this hotlist")("starred",a.isStarred))},V4b=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)},W4b=function(a){a&1&&M(0,"b-star-toggle",12);a&2&&I("starMessage","")("unStarMessage","")("starred",!1)("disabled",!0)},X4b=function(a){a&1&&(J(0,"div",14),R(1," Hotlist not found. "),K());a&2&&I("bFocus",!0)},Y4b=function(a){a&1&&(J(0,"div"),R(1," Loading details... "),K())},Z4b=function(a){a&1&&(J(0,
"span",19),R(1," (archived) "),K())},$4b=function(a){a&1&&(J(0,"span",22),R(1," \u00a0(changed) "),K())},a5b=function(a){if(a&1){var b=t();J(0,"div")(1,"span",17);R(2," Hotlist: ");J(3,"span",18);R(4);K()();F(5,Z4b,2,0,"span",19);J(6,"div",20)(7,"button",21);N("click",function(){u(b);var c=P(2);return w(c.openEditHotlist())});K()();F(8,$4b,2,0,"span",22);K()}a&2&&(a=P(2),x(3),I("matTooltip",a.hotlist.description),x(),T(" ",a.hotlist.name," "),x(),G(a.hotlist.archived?5:-1),x(3),G(a.hasParamChanges()?
8:-1))},b5b=function(a){if(a&1){var b=t();J(0,"div",15)(1,"button",23);N("click",function(){u(b);var c=P(2);return w(c.save())});R(2,"Save ");K();J(3,"button",24);N("click",function(){u(b);var c=P(2);return w(c.discardChanges())});R(4,"Discard changes ");K()()}},c5b=function(a){a&1&&(J(0,"div",5),F(1,U4b,1,3,"b-star-toggle",11),F(2,V4b,1,4,"b-star-toggle",12),F(3,W4b,1,4,"b-star-toggle",12),J(4,"div",13),F(5,X4b,2,1,"div",14),F(6,Y4b,2,0,"div"),F(7,a5b,9,4,"div"),K(),F(8,b5b,5,0,"div",15),K());a&
2&&(a=P(),x(),G(a.isDirectAdmin()||!a.hotlist||a.hotlist.archived?-1:1),x(),G(a.isDirectAdmin()&&a.hotlist&&!a.hotlist.archived?2:-1),x(),G(a.hotlist?-1:3),x(2),G(a.hotlist||a.hotlistLoading?-1:5),x(),G(a.hotlistLoading?6:-1),x(),G(a.hotlist&&!a.hotlistLoading?7:-1),x(),G(a.hasParamChanges()?8:-1))},d5b=function(a){a&1&&(J(0,"div",6),M(1,"b-spinner"),J(2,"span"),R(3),K()());a&2&&(a=P(),x(3),T(" Loading hotlist: ",a.hotlistId))},e5b=function(a){a&1&&R(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. "))},f5b=function(a){a&1&&R(0);a&2&&(a=P(2),T(" No issues in hotlist ",a.hotlistId,". "))},g5b=function(a){a&1&&(J(0,"div",7),F(1,e5b,1,1)(2,f5b,1,1),K());a&2&&(a=P(),I("bFocus",!0),x(),G((a.searchResults==null?0:a.searchResults.hasNextPage())?1:2))},h5b=function(a){if(a&1){var b=t();J(0,"div",8)(1,"b-issues-grid",25);N("init",function(c){u(b);var d=P();return w(d.resultsGrid=c)});Ah("focusedRowIndexChange",function(c){u(b);var d=P();zh(d.focusedRowIndex,
c)||(d.focusedRowIndex=c);return w(c)})("columnsChange",function(c){u(b);var d=P();zh(d.issueColumns,c)||(d.issueColumns=c);return w(c)});N("sortChange",function(c){u(b);var d=P();return w(d.setSort(c.field,c.direction))})("rowClick",function(c){u(b);var d=P();return w(d.goToIssue(c.id,c.isRead,c.event))})("onRowDragDrop",function(c){u(b);var d=P();return w(d.repositionIssue(c.srcIndex,c.destIndex))})("onNextPage",function(){u(b);var c=P();return w(ws(c,c.page,1))})("onPrevPage",function(){u(b);var c=
P();return w(ws(c,c.page,-1))});K()()}a&2&&(a=P(),x(),I("searchResults",a.searchResults),yh("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns),I("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort())("enableSidebar",!0))},i5b=function(a){if(a&1){var b=t();J(0,"button",9);N("click",function(){u(b);var c=P(2);return w(c.addToMissionControl(c.savedSearchId))});R(1," Saved Search insights in Home ");K()}},j5b=function(a,b){a&1&&F(0,i5b,2,0,"button",8);a&2&&(a=P(),G(a.showAddToMcButton(b)?
0:-1))},k5b=function(a){a&1&&(J(0,"span",13),R(1," \u00a0(changed) "),K())},l5b=function(a){if(a&1){var b=t();J(0,"div",10);R(1," Saved search: ");J(2,"span",11);R(3);K();J(4,"button",12);N("click",function(){u(b);var c=P(2);return w(c.openEditSavedSearch())});K();F(5,k5b,2,0,"span",13);K()}a&2&&(a=P(2),x(2),I("matTooltip",a.savedSearch.description),x(),T(" ",a.savedSearch.name," "),x(2),G(a.hasParamChanges()?5:-1))},m5b=function(a){a&1&&(J(0,"div"),R(1," Loading details... "),K())},n5b=function(a){a&
1&&(J(0,"div"),R(1," Saved search not found. "),K())},o5b=function(a){a&1&&F(0,m5b,2,0,"div")(1,n5b,2,0,"div");a&2&&(a=P(2),G(a.isLoading?0:1))},p5b=function(a){a&1&&(J(0,"div",6),F(1,l5b,6,3,"div",10)(2,o5b,2,1),K());a&2&&(a=P(),x(),G(a.savedSearch?1:2))},q5b=function(a){if(a&1){var b=t();J(0,"button",18);N("click",function(){u(b);var c=P(2);return w(c.save())});R(1,"Save ");K()}},r5b=function(a){if(a&1){var b=t();J(0,"div",7);F(1,q5b,2,0,"button",14);J(2,"button",15);N("click",function(){u(b);var c=
P();return w(c.discardChanges())});R(3,"Discard changes ");K();J(4,"span",16)(5,"a",17);N("click",function(){u(b);var c=P();c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"backToNormalSearch");return w()});R(6," Back to normal search");K()()()}a&2&&(a=P(),x(),G(a.isEditable()?1:-1),x(4),I("href",a.exitLink,hf))},s5b=function(a){a&1&&(J(0,"span"),R(1),K());a&2&&(a=P(3),x(),T(" Searching",a.searchParams.query?" for "+a.searchParams.query:"","..."))},t5b=function(a){a&1&&(J(0,"div",19),M(1,"b-spinner"),
F(2,s5b,2,1,"span"),K());a&2&&(a=P(2),x(2),G(a.searchParams?2:-1))},u5b=function(a){if(a&1){var b=t();J(0,"div",20)(1,"b-issues-grid",22);N("init",function(c){u(b);var d=P(3);return w(d.resultsGrid=c)});Ah("focusedRowIndexChange",function(c){u(b);var d=P(3);zh(d.focusedRowIndex,c)||(d.focusedRowIndex=c);return w(c)})("columnsChange",function(c){u(b);var d=P(3);zh(d.issueColumns,c)||(d.issueColumns=c);return w(c)});N("sortChange",function(c){u(b);var d=P(3);return w(d.setSort(c.field,c.direction))})("rowClick",
function(c){u(b);var d=P(3);return w(d.goToIssue(c.id,c.isRead,c.event))})("onNextPage",function(){u(b);var c=P(3);return w(ws(c,c.page,1))})("onPrevPage",function(){u(b);var c=P(3);return w(ws(c,c.page,-1))});K()()}a&2&&(a=P(3),x(),I("searchResults",a.searchResults),yh("focusedRowIndex",a.focusedRowIndex)("columns",a.issueColumns),I("enableColumnSaving",!!a.isColumnSaveEnabled)("sort",a.getSort())("enableSidebar",!0))},v5b=function(a){a&1&&(J(0,"div",21),R(1," No issues in saved search. "),K());
a&2&&I("bFocus",!0)},w5b=function(a){a&1&&F(0,u5b,2,6,"div",20)(1,v5b,2,1,"div",21);a&2&&(a=P(2),G(a.hasResults()?0:1))},x5b=function(a){a&1&&(J(0,"div"),F(1,t5b,3,1,"div",19)(2,w5b,2,1),K());a&2&&(a=P(),x(),G(a.isLoading?1:2))},z5b=function(a,b){return y5b(function(){return Qwa(a)},b)},y5b=function(a,b){return a()?[b]:[]},A5b=function(){var a=r(Bs).getEnvironmentType(),b={};return(b.DEV="Dev",b.NIGHTLY="Autopush",b.QA="Dev",b.PROD="Prod",b)[a]},C5b=function(a){a=a.internal;var b,c,d;(b=W(a,B5b,11))==
null?d=void 0:d=Fk(b,1,Bj(Cj)).sort().join("-");b=(c=d)!=null?c:"";var e,f,h;(e=W(a,B5b,11))==null?h=void 0:h=Fk(e,2,Bj(Cj)).sort().join("-");c=(f=h)!=null?f:"";return Rc(a,10,"all_features")+(":enabled-"+b)+(":disabled-"+c)},Cs=function(a,b){return a.querySelector('[peoplekit-id="'+b+'"]')},D5b=function(a,b){return Array.from(a.querySelectorAll('[peoplekit-id="'+b+'"]'))},E5b=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"))})},H5b=function(a,b){if(/-[a-z]/.test(b))return null;if(F5b&&a.dataset){if(waa()&&!(b in a.dataset))return null;a=a.dataset[b];return a===void 0?null:a}return a.getAttribute("data-"+G5b(b))},I5b=function(a){var b=new Image;b.src=a;a=b.complete;b.src="";return a},Ds=function(a,b,c,d,e,f){e=e===void 0?new J5b:e;f=(f===void 0?"":f)||"https://lh3.googleusercontent.com/a/default-user";b=b.length?b.map(function(h){return h||"https://lh3.googleusercontent.com/a/default-user"}):
[f];c=Hp(K5b,{imageUrls:b,backupUrl:f,size:c,preloadSize:d,pixelRatio:L5b()});e=new M5b(c,e);a.appendChild(c);return e},O5b=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 N5b(N5b(Rr(c),"#\ufe0f\u20e3\u20e31\ufe0f\u20e3\u20e3","<b>"),"2\ufe0f\u20e3\u20e3*\ufe0f\u20e3\u20e3",
"</b>")},P5b=function(a){var b=a.getDisplayName();return b?O5b(b,a.getMatchInfo().getDisplayNameMatches()):""},Q5b=function(a){var b=a.getDisplayValue();return b?O5b(b,a.getMatchInfo().getDisplayValueMatches()):""},R5b=function(a,b){var c=b?P5b(a):Rr(a.getDisplayName());b=b?Q5b(a):Rr(a.getDisplayValue());c=c||b;b=b||Rr(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()]}},
S5b=function(a){var b=a.result();b=R5b(b,!1);a=a.getDisplayNameWithOverrideApplied();return{label:Rr(a)||b.sublabel,sublabel:b.sublabel,name:a,photos:b.photos,hovercardId:b.hovercardId}},T5b=function(a){var b;switch(((b=a.statefulChipConfig)==null?void 0:b.chipState)||0){case 3:return"isError";default:return""}},U5b=function(a){var b;return((b=a.statefulChipConfig)==null?void 0:b.customChipClass)||""},W5b=function(a,b,c){var d=S5b(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=T5b(c);c=U5b(c);return{id:Es(V5b),label:d.label,name:d.name,photos:e,hovercardId:d.hovercardId,stateClass:f,isWarning:a,isDeletionDisabled:!b.getAllowChipDeletion(),customChipClass:c}},Y5b=function(a,b,c,d){var e="",f=Rr(a.getDescription()),h=!1,k=a.getMemberList().length;if(k>1||a.getDisplayName())e=a.getMemberList().map(function(q){var v=
q.getPrimaryTarget().getName(),A="";if(v){if(b){var E;var H=(v=(H=q.getPrimaryTarget())==null?void 0:(E=H.getName())==null?void 0:E.getGivenName())?O5b(v,q.getMatchInfo().getGivenNameMatches()):""}else H=Rr(v.getGivenName());(A=H)||(A=b?P5b(q):Rr(q.getDisplayName()))}A||(A=b?Q5b(q):Rr(q.getDisplayValue()));return A}),c&&(e=e.reverse()),e=b?P5b(a)||e.join(", "):Rr(a.getDisplayName())||e.join(", "),f||d||a.getTotalMemberCount()===null||(f=Number(a.getTotalMemberCount()),f=X5b({memberCount:f}),h=!0);
else if(k===1)return e=a.getMemberList()[0],f=R5b(e,b),Object.assign({},f,{type:a.getPrimaryTarget().getTargetType(),flatResult:e,allowSublabelTranslation:!1});c=a.getPhotoUrl();c=a.getDisplayName()&&c?[c]:a.getMemberList().map(function(q){return q.getPhotoUrl()});return{hovercardId:"",label:e,sublabel:f,type:a.getPrimaryTarget().getTargetType(),photos:c,allowSublabelTranslation:h}},Gs=function(a){return new Fs(a)},Z5b=function(a,b,c){b=b.ownerDocument.createEvent(c);b.initEvent(a,!0,!0);return b},
$5b=function(a,b){return Z5b(a,b,"CustomEvent")},a6b=function(a){return a.resultType===4||a.resultType===5},e6b=function(a){Hs.addCoreFactory({type:0,configurationKey:a,factory:{create:function(b){var c=b.chipConfig;var d=b.chipCustomization,e=b.isRightToLeft;e=Y5b(b.selection.result(),!1,e,!1);if(e.flatResult){var f=Object,h=f.assign,k=e.flatResult,q=k.getPrimaryTarget(),v=c.getWarnForExternalSelections()&&q.getOrgState()===2;q=c.getShouldDisplayExternalSelectionIcon()&&v&&q.getDataSource()!==1?
["https://www.gstatic.com/people/peoplekit/icons/light_theme/out_of_domain_yellow500.svg"]:e.photos;var A=T5b(d);d=U5b(d);c={id:Es(V5b),label:e.label,name:k.getDisplayName(),photos:q,hovercardId:e.hovercardId,stateClass:A,isWarning:v,isDeletionDisabled:!c.getAllowChipDeletion(),customChipClass:d};c=h.call(f,{},c,{type:e.type})}else c=Object.assign({},{id:Es(b6b),isDeletionDisabled:!c.getAllowChipDeletion(),stateClass:"",isWarning:!1,name:e.label},e);e=Hp(c6b,c);Ds(Cs(e,"d6MZcd"),c.photos,b.avatarSize,
b.resultListItemAvatarSize,b.appearanceConfig);b.parent.appendChild(e);return{chip:new d6b(e,b.selection,b.selectionsState),root:e,state:0}},shouldCreate:a6b}})},f6b=function(a){return 0===a.resultType},i6b=function(a){Hs.addCoreFactory({type:1,configurationKey:a,factory:{create:function(b){var c=W5b(b.selection,b.chipConfig,b.chipCustomization);c=Hp(g6b,Object.assign({},c,{avatarSize:b.avatarSize}));b.parent.appendChild(c);return{chip:new h6b(c,b.selection,b.selectionsState),root:c,state:0}},shouldCreate:f6b}})},
s6b=function(a,b,c,d,e){var f=j6b(c),h=k6b(a),k=l6b(a);k&&h.intersection(m6b(k));n6b(h,Gp(a),Gp(c));a=o6b(a,b);b=h.left;a&4?b+=h.width:a&2&&(b+=h.width/2);h=new Is(b,h.top+(a&1?h.height:0));h=p6b(h,f);a=o6b(c,d);h=q6b(h,r6b(c),a).rect;c=l6b(c);c.top-=f.y;c.right-=f.x;c.bottom-=f.y;c.left-=f.x;f=h;f.left<c.left?f.left=c.left:f.left+f.width>c.right&&(f.left=c.right-f.width);h=f;e&&(e=h,d&1?e.top<c.top&&(d=c.top-e.top,e.top+=d,e.height-=d):(d=e.top+e.height,d>c.bottom&&(e.height-=d-c.bottom)),h=e);return h},
v6b=function(a,b){Js(a,new Is(b.left,b.top));b=b.getSize();t6b(r6b(a),b)||u6b(a,b)},w6b=function(a,b){return new Ks(a,b)},A6b=function(a,b,c){b=Hp(x6b,{label:c.label,id:b,ariaLabel:c.ariaLabel});a.appendChild(b);a=c.showDelayMs;c=c.hideDelayMs;c=new y6b(b,a===void 0?500:a,c===void 0?300:c);return new z6b(b,c)},B6b=function(a){return!a.chipCustomization.statefulChipConfig||a.chipCustomization.statefulChipConfig.chipState===0||a.chipConfig.getWarnForExternalSelections()&&a.chipCustomization.statefulChipConfig.chipState!==
3?!1:!0},C6b=function(a){Hs.addDecoratorFactory({type:0,factory:{create:function(b,c){return{chip:new Ls(c.chip,b.chipCustomization.statefulChipConfig.tooltipLabel,b.chipCustomization.statefulChipConfig.ariaLabel),root:c.root,state:b.chipCustomization.statefulChipConfig.chipState}},shouldCreate:B6b},configurationKey:a})},G6b=function(a,b,c){var d=Hp(D6b,{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("Ef`"+f);}}e.call(a,f);if(c.tooltipLabel){var h=d.getAttribute("data-tooltip-id")||"";h=A6b(b,h,{label:c.tooltipLabel,ariaLabel:c.ariaLabel});E6b(h,d)}return new F6b(d,c.icon,c.disabledIcon,h,c.disableDomNavigation,c.onClick)},Ms=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)},Ns=function(a){return $5b("pcw-click",a)},I6b=function(a,b,c,d,e){var f=Object.assign({},c);f.onClick=function(h){d.select(a.getSelection(),1);var k;(k=c.onClick)==null||k.call(c,h)};return new H6b(a,b,f,e)},
J6b=function(a){Os.addDecoratorFactory({type:1,factory:{create:function(b,c){return I6b(c,b.appearanceConfig,b.resultCustomizationConfig.secondaryActionButtonConfig,b.interactions,b.popupsContainer)},shouldCreate:function(b){return!!b.resultCustomizationConfig.secondaryActionButtonConfig}},configurationKey:a})},K6b=function(a){a=C5b(a);i6b(a);C6b(a);e6b(a);J6b(a)},L6b=function(a,b,c){var d=Math.max(b,c);return a>Math.min(b,c)&&a<d},M6b=function(a,b,c){b=[b,c].map(function(d){return d!=null?d:""}).join(";");
a.setAttribute("pkd-ac-state",String(Xi(b)))},N6b=function(a,b){b=[String(b.getId()),b.getValue()].join(";");a.setAttribute("pkd-target",String(Xi(b)))},O6b=function(a,b){a.setAttribute("pkd-ps-state",String(Xi("1")));b.warmUpCache().then(function(){a.setAttribute("pkd-ps-state",String(Xi("2")))},function(){a.setAttribute("pkd-ps-state",String(Xi("3")))})},R6b=function(a,b){P6b(Q6b,b).create(a)},U6b=function(a){a=a===void 0?new S6b:a;return new T6b(a)},W6b=function(a,b,c,d,e){var f=U6b(new S6b(function(){var k=
e();k&&!k.hasFocus()&&k.getNavigatable().reset()})),h=new V6b;R6b({injectableAutocompleteGrouping:h,injectableResultConfig:f,autocompleteConfig:a,clientConfig:b,peopleStore:c,searchSession:d,getAutocomplete:e},C5b(b));return{injectableResultConfig:f,injectableAutocompleteGrouping:h}},$6b=function(a){var b=Hp(X6b,{id:Es(Y6b)});a.appendChild(b);return new Z6b(b)},c7b=function(a){if(Ps){var b=a7b(a);b7b(a,b)}else a.scrollIntoView({block:"nearest"})},e7b=function(a){return new d7b(a)},h7b=function(a,
b){b=Hp(f7b,{label:b.label});a.appendChild(b);return new g7b(b)},j7b=function(a,b){for(var c=l(i7b.values()),d=c.next();!d.done;d=c.next())a.classList.remove(d.value);(b=i7b.get(b))&&a.classList.add(b)},l7b=function(a,b){for(var c=l(["peoplekitThemeLight","peoplekitThemeDark"]),d=c.next();!d.done;d=c.next())a.classList.remove(d.value);(b=k7b.get(b))&&a.classList.add(b)},o7b=function(a,b,c,d){b=Hp(m7b,{content:b,header:d});a.appendChild(b);a=Cs(b,"Sx9Kwc");d=h7b(Cs(b,"IbE0S"),{label:"Close"});l7b(b,
c.getTheme());j7b(a,c.getStyle());return new n7b(b,d)},t7b=function(a,b){var c=a.headerText,d=a.infoGroupConfig;a=a.collapsibleGroupConfig;if(c){var e=Es(Qs.getInstance());e=Hp(p7b,{id:e,header:c});c=new q7b(e,c);d&&(e={},d.infoType===1&&(e={infoIconVeId:185198,learnMoreLinkVeId:185199}),c=new r7b(c,d,b,e));a&&(c=new Rs(c,a.isInitiallyCollapsed));c.getActionItems().length>0&&(c=new s7b(c));return c}},v7b=function(){return new (Function.prototype.bind.apply(u7b,[null].concat(p(ge.apply(0,arguments)))))},
w7b=function(a){var b,c;return(c=a==null?void 0:(b=a.collapsibleGroupConfig)==null?void 0:b.isDemoted)!=null?c:!1},y7b=function(){return new (Function.prototype.bind.apply(x7b,[null].concat(p(ge.apply(0,arguments)))))},z7b=function(a){return Object.values(a).filter(function(b){return b!=null}).length},A7b=function(a){return Object.values(a.groupConfigs).every(function(b){return b&&z7b(b)!==0?b.headerText!=null&&z7b(b)===1:!0})},D7b=function(a,b,c,d,e,f){f?A7b(f)?f=y7b(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=v7b(a,b,c,d,e,f),Object.values(f.groupConfigs).some(w7b)&&(a=new B7b(a,f)),f=a):f=new C7b(a,b,c,e);return f},E7b=function(a){switch(a){case 0:return 40;case 1:return 32;case 2:return 28;default:throw Error("Ef`"+a);}},F7b=function(a){switch(a){case 0:return"googleMaterialDefaultDensity";
case 1:return"workspaceMaterialComfortableDensity";case 2:return"workspaceMaterialCompactDensity";default:throw Error("Ef`"+a);}},G7b=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},H7b=function(a){var b,c=(b=a.getClient())==null?void 0:b.getApplication();a=a.getRequestType();return c&&a?[c,a]:null},I7b=function(a){return(a=H7b(a))?JSON.stringify(a):null},J7b=function(a,b){b=b===void 0?
null:b;b=a.getProfileId()||b;return b?(a=H7b(a))?JSON.stringify([a,b]):null:null},K7b=function(a){this.storage_=a;this.cachedIsStorageAvailable_=null},L7b=function(){var a=null;try{a=ea.localStorage||null}catch(b){}K7b.call(this,a)},Ss=function(a,b){this.mechanism_=a;this.prefix_=b+"::"},N7b=function(a){return M7b.map(function(b){return new Ss(a,b)})},O7b=function(a,b){window.setTimeout(a,b)},P7b=function(a,b){return new Promise(function(c){b>0?O7b(function(){return c(a)},b):c(a)})},Q7b=function(a){return new Promise(function(b,
c){a>0?O7b(function(){return c("TIMEOUT")},a):c("TIMEOUT")})},R7b=function(a,b,c){b=P7b(b,c);return Promise.race([a,b])},S7b=function(a,b){b=Q7b(b);return Promise.race([a,b])},T7b=function(a){var b=new Ts;if(a instanceof Us)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},V7b=function(a){a=a===void 0?null:a;var b=(new U7b).setExperimentFlags(new Vs).setSource(3);a&&b.setError(T7b(a));return b},e8b=function(a){var b=b===void 0?new L7b:b;if(W7b)return W7b;var c=new X7b(a),d=new Y7b(a),e;Z7b(b)?e=new $7b(a,b):e=new a8b(a);b=e;try{b.clean()}catch(f){}c=new b8b(new c8b(b,c),d,a.runtime_);return W7b=new d8b(a,c)},
g8b=function(a){var b=a.resultCustomizationConfig,c=R5b(a.result,!0);a=f8b(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}},f8b=function(a,b){var c=a.result,d=a.resultConfig;a=F7b(a.appearanceConfig.getDensity());var e=[],f=h8b.getExperiments();
kk(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:Es(i8b),hovercardId:b.hovercardId,label:b.label,sublabel:b.sublabel,photos:b.photos,densityClass:a,tags:e,allowSublabelTranslation:!1}},k8b=function(a){var b=a.result,c=a.resultCustomizationConfig,d=a.appearanceConfig,e=a.isRightToLeft,f=kk(a.clientConfig.internal,6);d=F7b(d.getDensity());
b=Y5b(b,!0,e,f);if(b.flatResult)return d=Object.assign({},a,{result:b.flatResult}),d=f8b(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:Es(j8b),hovercardId:b.hovercardId,label:b.label,sublabel:c.shouldHideSublabel?"":a,type:b.type,photos:b.photos,densityClass:d,tags:[],allowSublabelTranslation:e}},m8b=function(a,b,c,d,e,f){return new l8b(a,b,c,d,e,f)},o8b=function(a,b,c){return Nq(new n8b(a===void 0?0:a,b!=null?b:[],c!=null?c:null))},Ws=function(a){return(a||"").trim()},q8b=function(a,b,c,d){return new p8b(a,b===void 0?"":b,c===void 0?!1:c,d===void 0?null:d)},r8b=function(a){return a.resultCustomizationConfig.shouldDisable?
2:a.selectionsState.get(a.result.getPrimaryTarget().getId())&&!a.resultConfig.getAllowResultDeselection()?1:0},t8b=function(a){return new s8b(a)},v8b=function(a,b,c,d){return new u8b(a,b===void 0?"":b,c===void 0?!1:c,d===void 0?null:d)},w8b=function(a){var b=-1;(a=Xs(a))&&lk(a,2)&&(b=Ej(a,2));return"index:"+b},y8b=function(a,b,c,d,e,f,h,k,q){return new x8b(a,b,c,d,e,f,h,k,q)},A8b=function(){return new (Function.prototype.bind.apply(z8b,[null].concat(p(ge.apply(0,arguments)))))},Ys=function(a){return a instanceof
TypeError?4:3},B8b=function(){return"https://support.google.com/contacts/answer/7345608"},D8b=function(a){return C8b.some(function(b){return a instanceof b})},J8b=function(a,b,c,d,e,f,h,k,q,v,A,E){var H=d.getAutocompleteHeader(),L=d.getAutocompleteCustomGrouping();if(k.internal.getEnableAutocompleteLegalese()){var O=d.getAutocompleteGroupingType()===4||d.getAutocompleteGroupingType()===5;var S=L&&D8b(L);O=O&&S?L:new E8b}else switch(d.getAutocompleteGroupingType()){case 1:O=new E8b;break;case 2:O=
new F8b(d.getAutocompleteGroupingLabel());break;case 3:O=new G8b(d.getAutocompleteGroupingLabel());break;case 4:case 5:O=L}L=d.getAutocompleteGroupingType();e=l(e.groupingDecorators);for(S=e.next();!S.done;S=e.next())S=S.value,O=S(L,O);e=O;H=Hp(H8b,{header:H||""});a.appendChild(H);a=$6b(Cs(H,"tjneg"));b=A8b(a,f,h,d,k,b,c,q,v,A,e);return new I8b(b,c,E)},K8b=function(a){var b=Aa()&&a.event.keyCode===121&&a.event.shiftKey;b||(b=Aa()&&a.event.ctrlKey&&a.event.keyCode===13);b||(b=a.event.shiftKey&&a.event.ctrlKey&&
a.event.keyCode===88);b||(b=Aa()&&a.event.metaKey&&a.event.shiftKey&&a.event.keyCode===220);b||(b=a.event.shiftKey&&a.event.ctrlKey&&a.event.keyCode===220);return b},L8b=function(a,b){return new Zs(a,b)},M8b=function(a){return a.getAttribute("peoplekit-id")==="XLuqBd"},O8b=function(a,b){return new N8b(a,b)},P8b=function(){return!1},Q8b=function(){},S8b=function(){return new (Function.prototype.bind.apply(R8b,[null].concat(p(ge.apply(0,arguments)))))},V8b=function(a,b){b=Hp(T8b,b);a.appendChild(b);
return new U8b},a9b=function(a,b,c,d,e,f,h,k,q,v,A){var E=Hp(W8b);Ms({element:E,veid:85843,actions:["impression"],componentId:"peoplekitweb"});j7b(E,h.getStyle());a.appendChild(E);a=Cs(E,"tjneg");var H=new X8b(E),L;A||(A=W6b(h,k,v,c,function(){return L}));v=A;d=J8b(a,d,e,h,v.injectableAutocompleteGrouping,h,v.injectableResultConfig,k,q,b,H,f);e=Cs(a,"rymPhb");b.setAttribute("aria-owns",e.id);b.setAttribute("aria-controls",e.id);e.setAttribute("aria-labelledby",b.id);q=h.getNoResultsMessage();e=Hp(Y8b);
q=q?q.display?new Z8b(e,q):V8b(e,q):new $8b;E.appendChild(e);return L=S8b(E,b,d,c,f,h,q,k)},d9b=function(a,b,c,d,e,f,h,k,q,v){var A=Hp(b9b);j7b(A,h.getStyle());a.appendChild(A);var E;a=W6b(h,k,v,c,function(){return E});c=a9b(A,b,c,d,e,f,h,k,q,v,a);return E=new c9b(A,b,c,d,h)},f9b=function(a,b){return new e9b(a,b)},g9b=function(a){return a.map(function(b){return b.getLoggingToken()}).filter(Boolean)},$s=function(a){return a.filter(function(b){return!b.isPlaceholder()}).map(function(b){return b.selectionToken().getLoggingToken()}).filter(Boolean)},
h9b=function(a,b,c){switch(b){case 1:a.reporter.reportProceed($s(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($s(c))}},j9b=function(a,b,c){return new i9b(a,b,c)},n9b=function(a,b){a=a.internal.getClearcut();b=new k9b(a,b);b=at(b);a=a.getInterfaceType();return new l9b(new m9b(b,a))},o9b=function(a,b,c,d){var e;d=l(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;try{f(a,b,c)}catch(h){e||(e=h)}}if(e)throw e;},p9b=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)},r9b=function(a){if(q9b.has(a))return q9b.get(a);throw Error("Sf`"+a);},t9b=function(a){if(s9b.has(a))return s9b.get(a);throw Error("Tf`"+a);},u9b=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},v9b=function(){this.nextPtr_=0;this.maxSize_=50;this.buff_=[]},x9b=function(a){return a?a.__owner?a.__owner:a.parentNode&&a.parentNode.nodeType===11?a.parentNode.host:
w9b(a):null},y9b=function(a,b,c){for(c||(a=x9b(a));a&&!b(a);)a=x9b(a)},z9b=function(a){Cp.call(this);this.domHelper_=a||Gp();if(this.eventType_=this.getBrowserEventType_())this.eventKey_=Ep(this.domHelper_.document_,this.eventType_,bt(this.handleChange_,this))},G9b=function(a,b,c){var d=new ct,e=yLa();c=(new A9b).setClientId(b.getClientId()).setApplication(b.getSocialApplicationOrUndefined()).setEntryPoint(c).setVersionName("1.0").setBaselineCl(794327108);d=new B9b(d,1394,e,void 0,void 0,void 0,new C9b(c));
d.setClientSideLogOnlyForDevelopment(!b.getEnableClearcut()||!1);b=D9b(new E9b,h8b.getExperimentIds());d.clearcut_.setClearExperimentIds(b);d.setComponentID("peoplekitweb");d.clearcut_.setProductID(109303191);return new F9b(a,d)},N9b=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=H9b(I9b||(I9b=J9b('[null,null,null,null,null,null,null,"AIzaSyBAMHkvD9gqERVdYmGsYLnAtfzigZdAqJQ"]')));
f=new K9b(f,7)}else f=new dt;else f=new dt;d=d.getExperiments();a=f.loadExperiments(d.getApplication(),(new L9b).setPeopleApiEnv(a.apiEnv_),e);h8b=new M9b(d,a);c&&c(b)},P9b=function(a,b,c,d,e,f){var h=c.beginSession(function(){},f.sessionOptions||new et);return O9b(a,b,c,h,d,e,f)},O9b=function(a,b,c,d,e,f,h){N9b({clientConfig:f,commonConfig:e,initializeIoC:K6b});f.internal.getClearcut().setInterfaceType(4);f.internal.getClearcut().setComponentFlow(7);var k=Hp(Q9b,{classes:"aU4VQc"});a.appendChild(k);
kk(f.internal,14,!0)&&e.setStyle(1);l7b(k,e.getTheme());Ms({element:k,veid:64611,actions:["impression"],componentId:"peoplekitweb"});a=new ft;var q=j9b(d,a,e.getEntryPoint()),v=n9b(f,e.getEntryPoint());b=d9b(k,b,d,a,q,v,e,f,new R9b(h.intelligence),c);O6b(b.getRoot(),c);c=G9b(k,f.internal.getClearcut(),e.getEntryPoint());c.start(S9b);return new T9b(k,b,a,q,c,e)},U9b=function(a){switch(a){case 0:return 28;case 1:return 24;case 2:return 20;default:throw Error("Ef`"+a);}},V9b=function(a){var b=Number("2"),
c=Number("4");return U9b(a)+2*b+2*c},W9b=function(a){var b;return Object.freeze({id:"jCCvxc",iconUrl:(b=gt.get(a))==null?void 0:b.get("jCCvxc"),label:"Copy",keyboardShortcut:[512,67],veid:108906})},X9b=function(a){var b;return Object.freeze({id:"UkZFS",iconUrl:(b=gt.get(a))==null?void 0:b.get("UkZFS"),label:"Cut",keyboardShortcut:[512,88],veid:119506})},Y9b=function(a){var b;return Object.freeze({id:"YCRBfe",iconUrl:(b=gt.get(a))==null?void 0:b.get("YCRBfe"),label:"Change name",keyboardShortcut:[16,
69],veid:120676})},Z9b=function(a){var b;return Object.freeze({id:"l1309",iconUrl:(b=gt.get(a))==null?void 0:b.get("l1309"),label:"Change email address",keyboardShortcut:[16,70],veid:135428})},$9b=function(a){var b=ht?"Option":"Alt",c,d=Object,e=d.freeze;a=(c=gt.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"})},a$b=function(a){return a.map(function(b){if(ht)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)}})},d$b=function(a,b){var c=Es(Qs.getInstance()),d=Object,e=d.assign;c=c+":"+a.id;var f=a$b(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("Ef`"+
b);}d=Hp(b$b,e.call(d,{},a,{id:c,keyboardShortcut:f,densityClass:b}));a.veid&&Ms({element:d,veid:a.veid,actions:["impression","pcw-click"],componentId:"peoplekitweb"});return new c$b(d,a)},g$b=function(a,b,c,d){var e=Hp(e$b);Ms({element:e,veid:28041,actions:["impression"],componentId:"peoplekitweb"});var f=new f$b(e);a.appendChild(e);return new it(e,b,c,f,d)},o$b=function(a,b){var c=a.getPrimaryTarget().getContactId(),d=a.getPrimaryTarget().getProfileId();if(c)return h$b(i$b(j$b(),k$b(c).setEdit(!0)));
if(d)return h$b(l$b(j$b(),(new jt).setObfuscatedGaiaId(d).setEdit(!0)));var e;c=((e=a.getPrimaryTarget().getName())==null?void 0:e.getGivenName())||b;var f;b=((f=a.getPrimaryTarget().getName())==null?void 0:f.getFamilyName())||"";f=a.getTargetList().filter(function(h){return h.getTargetType()===1||h.getTargetType()===6}).map(function(h){return h.getDisplayValue()});a=a.getTargetList().filter(function(h){return h.getTargetType()===2||h.getTargetType()===7}).map(function(h){return h.getDisplayValue()});
return h$b(m$b(new kt,n$b((new lt).setGivenName(c).setFamilyName(b).setEmailList(f),a)))},p$b=function(a){return(a==null?0:mt(a).isValid())?{isValid:!1,errorMessage:"Name can't be an email address"}:{isValid:!0}},v$b=function(a,b,c,d){var e=S5b(b);var f=o$b(b.result(),b.getDisplayNameWithOverrideApplied());var h=e.hovercardId;var k=e.label;var q=e.sublabel;b=e.photos;e=e.name;var v=d.description;d='<div peoplekit-id="'+nt("bN97Pc")+'"><div class="'+nt("peoplekitComponentsNameeditdialogImplDescription")+
'">';v?(d+=ot(v)+" ",f='To edit this contact permanently, use <a href="'+(nt(pt(f))+'" target="_blank" class="'+nt("peoplekitComponentsNameeditdialogImplGoogleContactsLink")+'">Google Contacts</a>.'),d+=f):(f='Show a different name to recipients of this message. To edit this contact permanently, use <a href="'+(nt(pt(f))+'" target="_blank" class="'+nt("peoplekitComponentsNameeditdialogImplGoogleContactsLink")+'">Google Contacts</a>.'),d+=f);d+='</div><div peoplekit-id="'+nt("PN08Xe")+'"></div></div>';
f=qt(d);h=rt(st(),'<div peoplekit-id="'+nt("tJHJj")+'" class="'+nt("peoplekitComponentsDialogImplAvatarHeader")+'" data-hovercard-id="'+nt(h)+'" data-name="'+nt(e)+'"><div class="'+nt("peoplekitComponentsDialogImplHeaderRow")+'"><div class="'+nt("peoplekitComponentsDialogImplLeft")+'">');d=qt('<div class="'+nt("peoplekitComponentsDialogImplAvatar")+'"><div class="'+nt("peoplekitComponentsDialogImplAvatarContainer")+'" peoplekit-id="'+nt("d6MZcd")+'"></div></div>');h=rt(tt(h,d),'</div><div class="'+
nt("peoplekitComponentsDialogImplCenter")+'">');k=qt('<div class="'+nt("peoplekitComponentsDialogImplLabelContainer")+'"><div peoplekit-id="'+nt("E0kCZc")+'" class="'+nt("peoplekitComponentsDialogImplLabel")+" "+nt("peoplekitComponentsDialogImplLabelRow")+'" translate="no">'+q$b(vt(k))+"</div>"+(q?'<div class="'+nt("peoplekitComponentsDialogImplSublabel")+" "+nt("peoplekitComponentsDialogImplLabelRow")+'" translate="no">'+q$b(vt(q))+"</div>":"")+"</div>");k=rt(tt(h,k),"</div></div></div>");k=Hp(m7b,
{content:f,header:k,confirmAction:!0});a.appendChild(k);a=Cs(k,"Sx9Kwc");q=h7b(Cs(k,"IbE0S"),{label:"Cancel"});h=h={confirmButtonText:void 0};h=h.confirmButtonText;f="";switch(La(h)?h.toString():h){case "Confirm":f+="Confirm";break;case "Hide":f+="Hide";break;case "Show":f+="Show";break;default:f+="Apply"}h=h7b(Cs(k,"McfNlf"),{label:f});l7b(k,c.getTheme());j7b(a,c.getStyle());h.getRoot();a=new r$b(k,q,h);k=Cs(a.getRoot(),"d6MZcd");Ds(k,b,36,36,c);c=Cs(a.getRoot(),"PN08Xe");b=Hp(s$b,{label:"Name",
initialValue:e||"",id:Es(t$b)});c.appendChild(b);c=new wt(b);return new u$b(a,c)},w$b=function(a,b,c,d,e,f,h,k,q,v){a={resultType:c.result().getResultType(),avatarSize:U9b(f.getDensity()),resultListItemAvatarSize:E7b(f.getDensity()),parent:a,ariaParent:b,selection:c,selectionsState:d,actionRequestCallbacks:e,appearanceConfig:f,chipConfig:h,chipCustomization:q,isRightToLeft:v,clientConfig:k};k=C5b(k);return P6b(Hs,k).create(a)},x$b=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}}))},A$b=function(a){return JSON.parse(a).map(function(b){var c=y$b(xt(b.id));b.dn&&c.setDisplayName(b.dn);b.fdn&&z$b(c,!0);return c})},B$b=function(a){return z$b(y$b(a.id()).setDisplayName(a.getDisplayNameOverride()),a.getForceDisplayNameOverride())},D$b=function(a,b,c,d,e,f,h,k,q,v){return new C$b(a,b,c,d,e,f,h,k,q,v)},G$b=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=E$b.height;if(!f){var h=F$b();f=h;if(a.style[h]===void 0){var k=eMa()+mj(h);a.style[k]!==void 0&&(f=k)}E$b.height=f}(e=f)&&(a.style[e]=0);c.body.appendChild(d);var q=b.getSelection();q&&(q.selectAllChildren(d),c.execCommand("copy"))}finally{d&&c.body.removeChild(d)}},H$b=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 yt(c,e)});G$b(a.join(", "),b)},J$b=function(a,b,c,d,e,f,h,k,q,v,A){a=new zt(a,b,c,d,e,f,h,k,q,v,A);return new I$b(a,A)},M$b=function(a,b,c,d,e,f,h,k,q,v,A){var E=new f$b(a),H=new K$b({getPrevKeyCode:function(){return At(a)?39:37},getNextKeyCode:function(){return At(a)?37:39},navigatePastBegin:q.navigatePastBegin,navigatePastEnd:q.navigatePastEnd});e=J$b(b,c,
E,d,e,f,h,k,{chipClick:function(L,O){return H.onClick(L,new Bt(O))},chipContextMenu:function(L,O){H.onContextMenu(new Bt(O))},chipDrop:q.chipDrop||function(){},chipEditContactMethod:q.chipEditContactMethod||function(){}},v,A);H.attach(a,e.getNavigatable());return new L$b(e,b,c,d,v,A)},N$b=function(a){switch(a){case 0:return"googleMaterialDefaultDensity";case 1:return"workspaceMaterialComfortableDensity";case 2:return"workspaceMaterialCompactDensity";default:throw Error("Ef`"+a);}},P$b=function(a){a=
a.replace(/\\"/g,"%%").matchAll(O$b);return[].concat(p(a)).map(function(b){var c=b[0].replace(RegExp("%%","g"),'\\"');return{value:c,startIndex:b.index||0,length:c.length}})},Q$b=function(a,b){var c=P$b(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}},R$b=function(a,b){return a.length!==b.length?!1:a.length===b.length&&a.every(function(c,d){return c.equals(b[d])})},X$b=function(a,b,c,d,e,f,h,k,q){var v=new S$b(c,
new Ct(c,d,k,q),f),A=Hp(T$b,{max_height:void 0});j7b(A,e.getStyle());a.appendChild(A);a=Cs(A,"kE8AEc");var E=Hp(U$b,{multiSelectable:!0,orientation:"horizontal",isKeyboardFocusable:!1,ariaLabel:"Search Field"});a.appendChild(E);a=Hp(V$b,{id:Es(W$b),ariaLabel:"",helpText:e.helpText,shouldAutofocus:e.shouldAutofocus,height:V9b(e.getDensity()),densityClass:N$b(e.getDensity())});var H=Cs(a,"BbVjBd");E.appendChild(a);f=M$b(E,c,v,d,h,e,e,f,{navigatePastEnd:function(){H.focus()},chipDrop:function(){H.focus()},
chipEditContactMethod:function(L){H.value=L;L=H.dispatchEvent;var O=Z5b("input",H,"Event");L.call(H,O);H.focus()}},k,q);b=b(H);return new Dt(A,f,a,b,c,v,d,k,e,q)},aac=function(a,b,c,d,e,f){e.internal.getClearcut().setInterfaceType(4);e.internal.getClearcut().setComponentFlow(4);d.setAllowContactMethodEditing(kk(e.internal,5));var h=Hp(Y$b,{classes:"aU4VQc"});a.appendChild(h);kk(e.internal,14,!0)&&d.setStyle(1);l7b(h,d.getTheme());Ms({element:h,veid:64611,actions:["impression"],componentId:"peoplekitweb"});
O6b(h,b);var k=n9b(e,d.getEntryPoint()),q=new ft,v=j9b(c,q,d.getEntryPoint()),A=new R9b(f.intelligence);a=(new Z$b).setFilter(c.options_.getFilter()).setUseOriginalDisplayValue(d.getUseOriginalDisplayValue());a=X$b(h,function(E){return d9b(h,E,c,q,v,k,d,e,A,b)},q,b,d,e,A,a,k);f=G9b(h,e.internal.getClearcut(),d.getEntryPoint());f.start(S9b);return new $$b(h,a,q,v,f)},cac=function(a,b,c,d,e){var f=b.beginSession(function(){},e.sessionOptions||new et);return bac(a,b,f,c,d,e)},bac=function(a,b,c,d,e,
f){N9b({clientConfig:e,commonConfig:d,initializeIoC:K6b});return aac(a,b,c,d,e,f)},dac=function(a,b){return isFinite(a.fieldAffinity)?a.fieldAffinity:b&&Et(a.id)&&a.id.getType()!==9?isFinite(a.itemAffinity)?a.itemAffinity:-Infinity:-Infinity},gac=function(a,b,c){if(Et(a.id)||Et(b.id)){var d=eac.has(a.id.getType()),e=eac.has(b.id.getType());if(d!==e)return d?-1:1;if(Et(a.id)&&Et(b.id))return fac(a,b,c,!1)}d=dac(a,c);c=dac(b,c);(c=d!==c?d>c?-1:1:0)||(a=!!a.isPrimary,c=a!==!!b.isPrimary?a?-1:1:0);return c},
fac=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?gac(a,b,c):0},hac=function(a){a=a===void 0?{requestCorpHeaders:!1}:a;var b=(new Ft).setDevice(1);a.requestCorpHeaders&&Rk(b,2,2);return b},jac=function(a){return a?iac.get(a)||0:0},nac=function(a){switch(a.getValueCase()){case 2:return Gt(a.getEmail().getValue()||"");case 3:var b=a.getPhone();return b.getOriginalValue()&&b.getCanonicalValue()?(a=
kac(b.getOriginalValue()||""),b=kac(b.getCanonicalValue()||""),!a.equals(b)&&a.getValue().startsWith(b.getValue())?a:b):kac(b.getCanonicalValue()||b.getDisplayValue()||b.getOriginalValue()||"");case 4:a=im(a,lac,4,Ht);if(a.hasProfileId())return a=a.getProfileId()||"",new It(8,zp(a).toLowerCase(),a);switch(Ml(a,Jt)){case 2:return a=a.getEmail()||"",new It(6,zp(a).toLowerCase(),a);case 3:return mac(a.getPhone()||"")}}return Kt},rac=function(a){return Sj(a,oac,5,Bj()).map(function(b){switch(b.getIdCase()){case 1:return pac(b.getProfileId()||
"");case 2:return qac(b.getContactId()||"");default:return null}}).filter(Boolean)},sac=function(a,b){return tk(a,Lt,3)&&W(a,Lt,3).getIsPlaceholder()?3:Mt(b,8)?1:0},tac=function(a){return a&&a.hasAffinity()?Number(a.getAffinity().getValue_legacyNullable()):-Infinity},uac=function(a){return a.hasAffinity()?Number(a.getAffinity().getValue_legacyNullable()):-Infinity},vac=function(a){return!!a&&!!a.getPrimary()},xac=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"+wac(a):""},Bac=function(a){var b=void 0;if(W(a,Lt,3)){var c;b=(c=b)!=null?c:new Nt;Ot(b,yac,W(a,Lt,3))}if(W(a,zac,5)){var d;b=(d=b)!=null?d:new Nt;Ot(b,Aac,W(a,zac,5))}return b},Eac=function(a){var b=void 0;if(W(a,Cac,9)){var c;b=(c=b)!=null?c:new Nt;Ot(b,Dac,W(a,Cac,9))}return b},Gac=function(a){var b=new Pt,
c=a?2:1;Fac(b.setEventType(4),c).setToken(a);return b},Iac=function(a,b){var c=new Qt;c=(new Pt).setLookupInfo(c);Rt(c.setEventType(6),9).setItemCount(a.length).setQueryScope(Hac.get(b)||0);return c},Jac=function(){var a=new Pt;Rt(a.setEventType(6),10);return a},Kac=function(){var a=new Pt;Rt(a.setEventType(6),2);return a},Lac=function(){var a=new Pt;Rt(a.setEventType(6),13);return a},Mac=function(a,b){var c=new Pt;Rt(c.setEventType(6),6).setQueryLength(a.length).setQueryScope(Hac.get(b)||0);return c},
Nac=function(a){var b=new Pt;Rt(b.setEventType(6),5).setQueryScope(Hac.get(a)||0);return b},Oac=function(a,b){switch(a){case 8:case 3:case 17:return(new St).setProfileId(b);case 1:case 6:return(new St).setEmail(b);case 7:case 2:return(new St).setPhone(b);case 13:case 14:return a=new St,Rl(a,4,Tt,b);case 4:case 9:return(new St).setContactId(b);default:return null}},Rac=function(a){return((a=Sj(a,Pac,2,Bj()).find(function(b){return Ut(b,1)===1}))?Qac.get(Ut(a,2)):0)||0},Vt=function(a){return(a||"").trim()},
Wac=function(a,b){if(b.hasAffinity()){var c=a.setFieldLoggingId;var d=b.getAffinity();d=Ida(rk(d,1,void 0,Wt,sc));c.call(a,Sac(Vt(d)))}if(b.hasName()){var e=b.getName();c=a.setName;d=(new Tac).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 Uac).setUrl(b.getUrl()).setGlyph(b.getGlyph()).setType(Vac.get(b.getType())||
0)))},Yac=function(a,b){if(b.hasProfileId())switch(Ml(b,Jt)){case 2:var c=Vt(b.getEmail());return Xac(Xt(a.id).setValue(Vt(b.getProfileId())),(new Yt).setType(1).setValue(c));case 3:return c=Vt(b.getPhone()),Xac(Xt(a.id).setValue(Vt(b.getProfileId())),(new Yt).setType(2).setValue(c));default:return b=Vt(b.getProfileId()),Xt(a.id).setValue(b)}switch(Ml(b,Jt)){case 2:return b=Vt(b.getEmail()),Xac(Xt(a.id).setValue(b),(new Yt).setType(1).setValue(b));case 3:return b=Vt(b.getPhone()),Xac(Xt(a.id).setValue(b),
(new Yt).setType(2).setValue(b));default:return b=Vt(b.getProfileId()),Xt(a.id).setValue(b)}},abc=function(a,b){var c=Xt(a.id).setIsMe(!!a.isMe);a.containerIds&&(c.sourceIds_=a.containerIds||[]);b&&Wac(c,b);a.group&&((b=Sj(a.group,Zac,6,Bj()).find(function(d){return Vo(d,1,$ac)!=null}))?c.setValue(Vt(Zt(b,1,$ac))):a.group.hasGroupId()&&c.setValue(Vt(a.group.getGroupId())));a.targetExtendedData&&c.setExtendedData(a.targetExtendedData);a.target=c},dbc=function(a){return function c(){var d,e;return bbc(c,
function(f){switch(f.nextAddress){case 1:If(f,2),d=0;case 4:if(!(d<a)){f.jumpTo(2);break}e=cbc;return B(f,d,7);case 7:e(f.yieldResult);d++;f.jumpTo(4);break;case 2:Hf(f),Jf(f,0)}})}()},fbc=function(a){return new ebc(a)},ibc=function(a){if(a.getTargetType()===8){var b=a.getOriginatingField();if(b&&(b=b.getType(),b=gbc.get(b)))return b}return(b=hbc.get(a.getTargetType()))?b:Et(a.getId())?8:0},kbc=function(a,b,c){var d=new $t,e=new au;X(d,au,2,e);e.setProvenance(b);b=new bu;X(d,bu,1,b);Nk(b,9,c===1);
b.setProfileId(a.getProfileId()||null);b.setContactId(a.getContactId()||null);c=ibc(a)===8?8:a.getProfileId()?3:4;Rk(b,8,c);c=null;a.getTargetType()===8&&(e=a.getOriginatingField())&&gbc.has(e.getType())&&(c=e.getValue());c||(c=a.getValue());c&&b.setFieldValue(c);Et(a.getId())||b.setName(a.getName()?a.getName().getDisplayName():null);c=ibc(a);Rk(b,7,c);b.setFieldLoggingId(a.getFieldLoggingId()||null);b.setPersonLoggingId(a.getPersonLoggingId()||null);b.setIsPlaceholder(a.getDataSource()===3);Nm(b,
7)===8&&b.setGroupId(a.getId().getValue());return new jbc(a,d)},mbc=function(a){a=lbc.indexOf(a.provenance);return a<0?lbc.length:a},nbc=function(a){return a.containerIds&&a.containerIds.some(function(b){return b.getType()===3})},obc=function(a){var b;return(new Set(((b=a.containerIds)!=null?b:[]).map(String))).size},qbc=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=fYa(d,new pbc(f,e))}return[c,d]})));return a},tbc=function(a){return kk(a,21)?new rbc:sbc},ubc=function(a){return a!==0&&a!==12},wbc=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&&vbc(b,d.substring(c+1));a=a.substring(0,c+1)}if(a==="@")return b;vbc(b,a);return b},vbc=function(a,b){a.push(b);var c=b.length+
1;xbc.lastIndex=0;for(var d=xbc.exec(b);d&&d.index<c;d=xbc.exec(b))a.push(b.substring(Number(xbc.lastIndex)))},cu=function(a){return Bp(ybc(a)).replace(zbc,"").toUpperCase().toLowerCase()},Bbc=function(a){a=Array.from(a).flatMap(function(f){return(f||"").split(Abc)}).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=cu(c.value);c=l(wbc(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})},Cbc=function(a){return a.substring(a.indexOf("@")+1)},Dbc=function(a){return a.substring(0,a.indexOf("@")+1)},Gbc=function(a,b){a=a.match(Ebc);b=Gt(b);return a&&a.length&&(a=a[0]||"")&&!b.equals(Gt(a.replace(Fbc,"")))?!0:!1},Hbc=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)}}},Lbc=function(a,
b,c,d){b=Ibc(a,b).map(function(e){var f=l(e);e=f.next().value;f=f.next().value;return new Jbc(e,f)});c=Ibc(a,c).map(function(e){var f=l(e);e=f.next().value;f=f.next().value;return new Jbc(e,f)});a=Ibc(a,d).map(function(e){var f=l(e);e=f.next().value;f=f.next().value;return new Jbc(e,f)});return new Kbc(b,c,a)},Mbc=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}},Nbc=
function(a){return a.reduce(function(b,c){var d=Mbc(c);if(b.has(d)){var e;(e=b.get(d))==null||e.push(c)}else b.set(d,[c]);return b},new Map)},Obc=function(a,b){b=b===void 0?new du: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}},Qbc=function(a,b){return!a||a instanceof Pbc?a:new Pbc(a,b)},Sbc=function(a){var b=new Rbc,c=b.setQueryId(Vc(Pb(rk(a,3)))).setSelectionId(Vc(Pb(rk(a,
4)))),d=Vc(Pb(rk(a,5)));Ek(c,3,d).setInstanceId(a.getInstanceIdOrUndefined()).setAffinityVersion(a.getAffinityVersionOrUndefined());return b},Ubc=function(a){var b=new Tbc,c;if(a=(c=W(a,eu,18))==null?void 0:c.getSessionState())c=Sbc(a),X(b,Rbc,2,c);return b},Wbc=function(a){return Vbc.get(a)||0},Ybc=function(a,b){var c=Xbc(fu(new gu,"PeopleStore").setLogSource(pk(a,4,574)).setApplication(a.getSocialApplication()).setEnvironment(b.getPeopleApiEnv()).setVersion("1004").setBaselineCl(794327108).setEnableClearcut(a.getEnableClearcut()),
[].concat(p(b.getExperiments().getExperimentIdsList()),p(hu?hu.getExperimentIds():[]))).setClientAgent(2);b.getClearcutUrl()&&c.setClearcutUrl(b.getClearcutUrl());if(a=Sj(a,iu,5,Bj()).find(function(d){return d.getEntryPoint()===0}))c.setEventSource(Nm(a,4)),c.setEventSourceId(Nm(a,4));return c},$bc=function(a,b){return new Zbc(a,b)},acc=function(a){tk(a,ju,12)?(a=W(a,ju,12),a=W(a,iu,2)):a=a.getSources();return a||new iu},bcc=function(a){tk(a,ju,12)?(a=W(a,ju,12),a=W(a,iu,3)):a=a.getSources();return a||
new iu},ccc=function(a){return a.filter(function(b){var c,d=(c=Xs(b))==null?void 0:pk(c,4),e;return((e=W(b,bu,1))==null?void 0:pk(e,8))!==3||d!==2&&d!==1?!0:!1})},ecc=function(a){return a.filter(function(b){var c;return(b=(c=W(b,bu,1))==null?void 0:c.getFieldType())&&dcc.has(b)?!1:!0})},fcc=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)},gcc=function(a){if(!a.hasSessionState())return"";a=a.getSessionState();return xk(a,3)+":"+xk(a,
4)+":"+xk(a,5)+":"+a.getInstanceId()},hcc=function(a){return tk(a,au,2)?Xs(a).getContext()||0:0},icc=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?xk(d,3)+"-"+xk(d,4)+"-"+xk(d,5)+"-"+d.getInstanceId():"";b.has(d)?b.get(d).push(c):b.set(d,[c])}return Array.from(b.values())},ku=function(a,b,c,d){d=d===void 0?!1:d;a=a.filter(function(h){return!kk(h,4)});if(d){d=l(a);for(var e=d.next();!e.done;e=d.next())Nk(e.value,4,!0)}if(c)for(d=a.filter(function(h){return h&&
!h.hasSessionState()}),d=l(d),e=d.next();!e.done;e=d.next())e.value.setSessionState(c.clone());a=icc(a);c=[];a=l(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=d.find(function(h){return h&&h.hasSessionState()})){e=e.getSessionState();var f=new jcc;f.setSessionState(e);f.setEventType(b);Bm(f,3,d);f.setEventSources(e.getSources());c.push(f)}return c},kcc=function(a){var b;a=a.getMetadata();a.hasCacheState()&&(a=a.getCacheState(),a.hasSource()&&(b=a.getSource()));return b||new lu},occ=function(a,
b,c){var d=lcc(b.getTargetType(),b.getValue()),e=[],f=e.concat;var h=Aj(b,5,Bj());h=p(h.map(pac));var k=p(Aj(b,6,Bj()).map(qac));var q=Aj(b,13,Bj());e=f.call(e,h,k,p(q.map(mcc)));ncc.includes(d.getType())&&e.push(d);return{id:d,containerIds:e,dataSource:Aj(b,6,Bj()).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}},pcc=function(a){return(a||"").trim()},scc=function(a){var b=a.resultData,c=a.targetData,d=Xt(a.id).setDataSource(a.dataSource||0).setIsMe(!!a.isMe);a.containerIds&&(d.sourceIds_=a.containerIds||[]);nk(b,1)&&d.setResultType(b.getResultType());c.hasValue()&&d.setValue(pcc(c.getValue()));c.hasCanonicalValue()&&d.setCanonicalValue(pcc(c.getCanonicalValue()));c.hasDescription()&&d.setDescription(c.getDescription());if(c.hasName()){var e=c.getName();
d.setName((new Tac).setDisplayName(e.getDisplayName()).setGivenName(e.getGivenName()).setFamilyName(e.getFamilyName()).setSourceType(e.getSourceType()))}c.hasPhoto()&&(e=c.getPhoto(),d.setPhoto((new Uac).setUrl(e.getUrl()).setType(e.getType()).setSourceType(e.getSourceType()).setGlyph(e.getGlyph())));if(lk(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()||
"");nk(c,10)&&d.setOrgState(c.getOrgState());c.hasDataSource()&&d.setDataSource(c.getDataSource());c.getTagList().length&&d.setTagList(c.getTagList().map(function(h){return(new mu).setAltText(h.getAltText()).setIconUrl(h.getIconUrl())}));c.hasExtendedData()&&d.setExtendedData(c.getExtendedData());tk(c,nu,9)&&(a=c.getEmailSecurityInfo(),d.setEmailSecurityInfo(qcc(a.getCertificateStatus(),Uc(a.getCertificateExpirySec()),a.getEncryptionSupport()==4||a.getEncryptionSupport()==2)));tk(c,ou,17)&&(c=c.getReachabilityInfo(),
d.setReachabilityInfo(new rcc(c.getReachabilityStatus(),c.getClientData())));return d},ucc=function(a){a.cacheConfigurators_.push(new tcc);return a},vcc=function(a,b){var c={};return $i("a",(c.href=b,c.target="_blank",c.rel="noopener noreferrer nofollow",c),a)},ycc=function(){return r(Bs).getEnvironmentType()==="QA"?wcc:xcc},Bcc=function(){return r(Bs).getEnvironmentType()==="QA"?zcc:Acc},Ecc=function(){return r(Bs).getEnvironmentType()==="QA"?Ccc:Dcc},Fcc=function(a){var b=0;return function(){return b<
a.length?{done:!1,value:a[b++]}:{done:!0}}},Gcc=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},Hcc=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");},nd=Hcc(this),pu=function(a,b){if(b)a:{var c=nd;a=a.split(".");
for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&b!=null&&Gcc(c,a,{configurable:!0,writable:!0,value:b})}};
pu("Symbol",function(a){if(a)return a;var b=function(f,h){this.$jscomp$symbol$id_=f;Gcc(this,"description",{configurable:!0,writable:!0,value:h})};b.prototype.toString=function(){return this.$jscomp$symbol$id_};var c="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",d=0,e=function(f){if(this instanceof e)throw new TypeError("b");return new b(c+(f||"")+"_"+d++,f)};return e});
pu("Symbol.iterator",function(a){if(a)return a;a=Symbol("c");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=nd[b[c]];typeof d==="function"&&typeof d.prototype[a]!="function"&&Gcc(d.prototype,a,{configurable:!0,writable:!0,value:function(){return Icc(Fcc(this))}})}return a});pu("Symbol.asyncIterator",function(a){return a?a:Symbol("d")});
pu("Symbol.toStringTag",function(a){return a?a:Symbol("e")});
var Icc=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a},Jcc=typeof Object.create=="function"?Object.create:function(a){var b=function(){};b.prototype=a;return new b},Kcc=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=Jcc(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),Lcc;if(typeof Object.setPrototypeOf=="function")Lcc=Object.setPrototypeOf;else{var Mcc;a:{var Ncc={a:!0},Occ={};try{Occ.__proto__=Ncc;Mcc=Occ.a;break a}catch(a){}Mcc=!1}Lcc=Mcc?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError("f`"+a);return a}:null}
var qu=Lcc,Y=function(a,b){a.prototype=Jcc(b.prototype);a.prototype.constructor=a;if(qu)qu(a,b);else for(var c in b)if(c!="prototype")if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.superClass_=b.prototype},l=function(a){var b=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if(typeof a.length=="number")return{next:Fcc(a)};throw Error("g`"+String(a));},aAa=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);
return c},p=function(a){return a instanceof Array?a:aAa(l(a))},ru=function(a){return Pcc(a,a)},Pcc=function(a,b){a.raw=b;Object.freeze&&(Object.freeze(a),Object.freeze(b));return a},su=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},Qcc=typeof Object.assign=="function"?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)su(d,e)&&(a[e]=d[e])}return a};pu("Object.assign",function(a){return a||Qcc});
var tu=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};tu.prototype.start_=function(){if(this.isRunning_)throw new TypeError("i");this.isRunning_=!0};tu.prototype.next_=function(a){this.yieldResult=a};tu.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.nextAddress=this.catchAddress_||this.finallyAddress_};
tu.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};var B=function(a,b,c){a.nextAddress=c;return{value:b}};tu.prototype.jumpTo=function(a){this.nextAddress=a};
var Lf=function(a){a.nextAddress=0},Gf=function(a,b,c){a.catchAddress_=b;c!=void 0&&(a.finallyAddress_=c)},If=function(a,b){a.catchAddress_=0;a.finallyAddress_=b||0},uu=function(a,b){a.nextAddress=b;a.catchAddress_=0},Kf=function(a){a.catchAddress_=0;var b=a.abruptCompletion_.exception;a.abruptCompletion_=null;return b},Hf=function(a,b,c,d){d?a.finallyContexts_[d]=a.abruptCompletion_:a.finallyContexts_=[a.abruptCompletion_];a.catchAddress_=b||0;a.finallyAddress_=c||0},Jf=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},Rcc=function(a){this.context_=new tu;this.program_=a};
Rcc.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return Scc(this,this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return Tcc(this)};var Ucc=function(a,b){a.context_.start_();var c=a.context_.yieldAllIterator_;if(c)return Scc(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.context_.return);a.context_.return(b);return Tcc(a)};
Rcc.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return Scc(this,this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return Tcc(this)};
var Scc=function(a,b,c,d){try{var e=b.call(a.context_.yieldAllIterator_,c);if(!(e instanceof Object))throw new TypeError("h`"+e);if(!e.done)return a.context_.isRunning_=!1,e;var f=e.value}catch(h){return a.context_.yieldAllIterator_=null,a.context_.throw_(h),Tcc(a)}a.context_.yieldAllIterator_=null;d.call(a.context_,f);return Tcc(a)},Tcc=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}},Vcc=function(a){this.next=function(b){return a.next_(b)};this.throw=function(b){return a.throw_(b)};this.return=function(b){return Ucc(a,b)};this[Symbol.iterator]=function(){return this}},bbc=function(a,b){b=new Vcc(new Rcc(b));qu&&a.prototype&&qu(b,a.prototype);
return b},Wcc=function(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(f,e)}f(a.next())})},z=function(a){return Wcc(new Vcc(new Rcc(a)))},oka=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("j")))})};a["return"]!==void 0&&(this["return"]=function(b){return Promise.resolve(a["return"](b))})},ge=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b},cbc=function(a){return a};pu("globalThis",function(a){return a||nd});pu("Reflect",function(a){return a?a:{}});pu("Reflect.construct",function(){return Kcc});
pu("Reflect.setPrototypeOf",function(a){return a?a:qu?function(b,c){try{return qu(b,c),!0}catch(d){return!1}}:null});
pu("Promise",function(a){function b(){this.batch_=null}function c(h){return h instanceof e?h:new e(function(k){k(h)})}if(a)return a;b.prototype.asyncExecute=function(h){if(this.batch_==null){this.batch_=[];var k=this;this.asyncExecuteFunction(function(){k.executeBatch_()})}this.batch_.push(h)};var d=nd.setTimeout;b.prototype.asyncExecuteFunction=function(h){d(h,0)};b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var h=this.batch_;this.batch_=[];for(var k=0;k<h.length;++k){var q=
h[k];h[k]=null;try{q()}catch(v){this.asyncThrow_(v)}}}this.batch_=null};b.prototype.asyncThrow_=function(h){this.asyncExecuteFunction(function(){throw h;})};var e=function(h){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var k=this.createResolveAndReject_();try{h(k.resolve,k.reject)}catch(q){k.reject(q)}};e.prototype.createResolveAndReject_=function(){function h(v){return function(A){q||(q=!0,v.call(k,A))}}var k=this,q=!1;return{resolve:h(this.resolveTo_),
reject:h(this.reject_)}};e.prototype.resolveTo_=function(h){if(h===this)this.reject_(new TypeError("k"));else if(h instanceof e)this.settleSameAsPromise_(h);else{a:switch(typeof h){case "object":var k=h!=null;break a;case "function":k=!0;break a;default:k=!1}k?this.resolveToNonPromiseObj_(h):this.fulfill_(h)}};e.prototype.resolveToNonPromiseObj_=function(h){var k=void 0;try{k=h.then}catch(q){this.reject_(q);return}typeof k=="function"?this.settleSameAsThenable_(k,h):this.fulfill_(h)};e.prototype.reject_=
function(h){this.settle_(2,h)};e.prototype.fulfill_=function(h){this.settle_(1,h)};e.prototype.settle_=function(h,k){if(this.state_!=0)throw Error("l`"+h+"`"+k+"`"+this.state_);this.state_=h;this.result_=k;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};e.prototype.scheduleUnhandledRejectionCheck_=function(){var h=this;d(function(){if(h.notifyUnhandledRejection_()){var k=nd.console;typeof k!=="undefined"&&k.error(h.result_)}},1)};e.prototype.notifyUnhandledRejection_=
function(){if(this.isRejectionHandled_)return!1;var h=nd.CustomEvent,k=nd.Event,q=nd.dispatchEvent;if(typeof q==="undefined")return!0;typeof h==="function"?h=new h("unhandledrejection",{cancelable:!0}):typeof k==="function"?h=new k("unhandledrejection",{cancelable:!0}):(h=nd.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.result_;return q(h)};e.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var h=
0;h<this.onSettledCallbacks_.length;++h)f.asyncExecute(this.onSettledCallbacks_[h]);this.onSettledCallbacks_=null}};var f=new b;e.prototype.settleSameAsPromise_=function(h){var k=this.createResolveAndReject_();h.callWhenSettled_(k.resolve,k.reject)};e.prototype.settleSameAsThenable_=function(h,k){var q=this.createResolveAndReject_();try{h.call(k,q.resolve,q.reject)}catch(v){q.reject(v)}};e.prototype.then=function(h,k){function q(H,L){return typeof H=="function"?function(O){try{v(H(O))}catch(S){A(S)}}:
L}var v,A,E=new e(function(H,L){v=H;A=L});this.callWhenSettled_(q(h,v),q(k,A));return E};e.prototype.catch=function(h){return this.then(void 0,h)};e.prototype.callWhenSettled_=function(h,k){function q(){switch(v.state_){case 1:h(v.result_);break;case 2:k(v.result_);break;default:throw Error("m`"+v.state_);}}var v=this;this.onSettledCallbacks_==null?f.asyncExecute(q):this.onSettledCallbacks_.push(q);this.isRejectionHandled_=!0};e.resolve=c;e.reject=function(h){return new e(function(k,q){q(h)})};e.race=
function(h){return new e(function(k,q){for(var v=l(h),A=v.next();!A.done;A=v.next())c(A.value).callWhenSettled_(k,q)})};e.all=function(h){var k=l(h),q=k.next();return q.done?c([]):new e(function(v,A){function E(O){return function(S){H[O]=S;L--;L==0&&v(H)}}var H=[],L=0;do H.push(void 0),L++,c(q.value).callWhenSettled_(E(H.length-1),A),q=k.next();while(!q.done)})};return e});var vu=function(a,b,c){if(a==null)throw new TypeError("n`"+c);if(b instanceof RegExp)throw new TypeError("o`"+c);return a+""};
pu("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=vu(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var h=0;h<f&&c<e;)if(d[c++]!=b[h++])return!1;return h>=f}});pu("Object.setPrototypeOf",function(a){return a||qu});pu("Symbol.dispose",function(a){return a?a:Symbol("p")});
pu("WeakMap",function(a){function b(){}function c(q){var v=typeof q;return v==="object"&&q!==null||v==="function"}function d(q){if(!su(q,f)){var v=new b;Gcc(q,f,{value:v})}}function e(q){var v=Object[q];v&&(Object[q]=function(A){if(A instanceof b)return A;Object.isExtensible(A)&&d(A);return v(A)})}if(function(){if(!a||!Object.seal)return!1;try{var q=Object.seal({}),v=Object.seal({}),A=new a([[q,2],[v,3]]);if(A.get(q)!=2||A.get(v)!=3)return!1;A.delete(q);A.set(v,4);return!A.has(q)&&A.get(v)==4}catch(E){return!1}}())return a;
var f="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var h=0,k=function(q){this.id_=(h+=Math.random()+1).toString();if(q){q=l(q);for(var v;!(v=q.next()).done;)v=v.value,this.set(v[0],v[1])}};k.prototype.set=function(q,v){if(!c(q))throw Error("q");d(q);if(!su(q,f))throw Error("r`"+q);q[f][this.id_]=v;return this};k.prototype.get=function(q){return c(q)&&su(q,f)?q[f][this.id_]:void 0};k.prototype.has=function(q){return c(q)&&su(q,f)&&su(q[f],this.id_)};k.prototype.delete=
function(q){return c(q)&&su(q,f)&&su(q[f],this.id_)?delete q[f][this.id_]:!1};return k});
pu("Map",function(a){if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var k=Object.seal({x:4}),q=new a(l([[k,"s"]]));if(q.get(k)!="s"||q.size!=1||q.get({x:4})||q.set({x:4},"t")!=q||q.size!=2)return!1;var v=q.entries(),A=v.next();if(A.done||A.value[0]!=k||A.value[1]!="s")return!1;A=v.next();return A.done||A.value[0].x!=4||A.value[1]!="t"||!v.next().done?!1:!0}catch(E){return!1}}())return a;var b=new WeakMap,c=function(k){this[0]={};this[1]=
f();this.size=0;if(k){k=l(k);for(var q;!(q=k.next()).done;)q=q.value,this.set(q[0],q[1])}};c.prototype.set=function(k,q){k=k===0?0:k;var v=d(this,k);v.list||(v.list=this[0][v.id]=[]);v.entry?v.entry.value=q:(v.entry={next:this[1],previous:this[1].previous,head:this[1],key:k,value:q},v.list.push(v.entry),this[1].previous.next=v.entry,this[1].previous=v.entry,this.size++);return this};c.prototype.delete=function(k){k=d(this,k);return k.entry&&k.list?(k.list.splice(k.index,1),k.list.length||delete this[0][k.id],
k.entry.previous.next=k.entry.next,k.entry.next.previous=k.entry.previous,k.entry.head=null,this.size--,!0):!1};c.prototype.clear=function(){this[0]={};this[1]=this[1].previous=f();this.size=0};c.prototype.has=function(k){return!!d(this,k).entry};c.prototype.get=function(k){return(k=d(this,k).entry)&&k.value};c.prototype.entries=function(){return e(this,function(k){return[k.key,k.value]})};c.prototype.keys=function(){return e(this,function(k){return k.key})};c.prototype.values=function(){return e(this,
function(k){return k.value})};c.prototype.forEach=function(k,q){for(var v=this.entries(),A;!(A=v.next()).done;)A=A.value,k.call(q,A[1],A[0],this)};c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(k,q){var v=q&&typeof q;v=="object"||v=="function"?b.has(q)?v=b.get(q):(v=""+ ++h,b.set(q,v)):v="p_"+q;var A=k[0][v];if(A&&su(k[0],v))for(k=0;k<A.length;k++){var E=A[k];if(q!==q&&E.key!==E.key||q===E.key)return{id:v,list:A,index:k,entry:E}}return{id:v,list:A,index:-1,entry:void 0}},e=function(k,
q){var v=k[1];return Icc(function(){if(v){for(;v.head!=k[1];)v=v.previous;for(;v.next!=v.head;)return v=v.next,{done:!1,value:q(v)};v=null}return{done:!0,value:void 0}})},f=function(){var k={};return k.previous=k.next=k.head=k},h=0;return c});
pu("Set",function(a){if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var c=Object.seal({x:4}),d=new a(l([c]));if(!d.has(c)||d.size!=1||d.add(c)!=d||d.size!=1||d.add({x:4})!=d||d.size!=2)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||f.value[0].x!=4||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;var b=function(c){this.map_=new Map;if(c){c=
l(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.map_.size};b.prototype.add=function(c){c=c===0?0:c;this.map_.set(c,c);this.size=this.map_.size;return this};b.prototype.delete=function(c){c=this.map_.delete(c);this.size=this.map_.size;return c};b.prototype.clear=function(){this.map_.clear();this.size=0};b.prototype.has=function(c){return this.map_.has(c)};b.prototype.entries=function(){return this.map_.entries()};b.prototype.values=function(){return this.map_.values()};b.prototype.keys=
b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.map_.forEach(function(f){return c.call(d,f,f,e)})};return b});pu("Array.from",function(a){return a?a:function(b,c,d){c=c!=null?c:function(k){return k};var e=[],f=typeof Symbol!="undefined"&&Symbol.iterator&&b[Symbol.iterator];if(typeof f=="function"){b=f.call(b);for(var h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h<f;h++)e.push(c.call(d,b[h],h));return e}});
pu("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)su(b,d)&&c.push([d,b[d]]);return c}});pu("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}});pu("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});pu("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});pu("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
pu("Number.isSafeInteger",function(a){return a?a:function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER}});pu("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=vu(this,b,"endsWith");c===void 0&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;e>0&&c>0;)if(d[--c]!=b[--e])return!1;return e<=0}});pu("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}});
pu("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(c<0&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});pu("String.prototype.includes",function(a){return a?a:function(b,c){return vu(this,b,"includes").indexOf(b,c||0)!==-1}});
var Xcc=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e};pu("Array.prototype.entries",function(a){return a?a:function(){return Xcc(this,function(b,c){return[b,c]})}});pu("Array.prototype.values",function(a){return a?a:function(){return Xcc(this,function(b,c){return c})}});
var Ycc=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{i:e,v:f}}return{i:-1,v:void 0}};pu("Array.prototype.find",function(a){return a?a:function(b,c){return Ycc(this,b,c).v}});pu("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)su(b,d)&&c.push(b[d]);return c}});
pu("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||b===Infinity||b===-Infinity||b===0)return b;var c=Math.floor(Math.abs(b));return b<0?-c:c}});pu("Number.isNaN",function(a){return a?a:function(b){return typeof b==="number"&&isNaN(b)}});pu("Array.prototype.keys",function(a){return a?a:function(){return Xcc(this,function(b){return b})}});
pu("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;c<0&&(c=Math.max(0,e+c));if(d==null||d>e)d=e;d=Number(d);d<0&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});var wu=function(a){return a?a:Array.prototype.fill};pu("Int8Array.prototype.fill",wu);pu("Uint8Array.prototype.fill",wu);pu("Uint8ClampedArray.prototype.fill",wu);pu("Int16Array.prototype.fill",wu);pu("Uint16Array.prototype.fill",wu);pu("Int32Array.prototype.fill",wu);
pu("Uint32Array.prototype.fill",wu);pu("Float32Array.prototype.fill",wu);pu("Float64Array.prototype.fill",wu);pu("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError("s`"+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("t");c[d[0]]=d[1]}return c}});
pu("String.prototype.replaceAll",function(a){return a?a:function(b,c){if(b instanceof RegExp&&!b.global)throw new TypeError("u");return b instanceof RegExp?this.replace(b,c):this.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),c)}});pu("Object.getOwnPropertySymbols",function(a){return a?a:function(){return[]}});
pu("String.prototype.repeat",function(a){return a?a:function(b){var c=vu(this,null,"repeat");if(b<0||b>1342177279)throw new RangeError("v");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});var Zcc=function(a,b){a=a!==void 0?String(a):" ";return b>0&&a?a.repeat(Math.ceil(b/a.length)).substring(0,b):""};pu("String.prototype.padStart",function(a){return a?a:function(b,c){var d=vu(this,null,"padStart");return Zcc(c,b-d.length)+d}});
pu("String.prototype.matchAll",function(a){return a?a:function(b){if(b instanceof RegExp&&!b.global)throw new TypeError("w");var c=new RegExp(b,b instanceof RegExp?void 0:"g"),d=this,e=!1,f={next:function(){if(e)return{value:void 0,done:!0};var h=c.exec(d);if(!h)return e=!0,{value:void 0,done:!0};h[0]===""&&(c.lastIndex+=1);return{value:h,done:!1}}};f[Symbol.iterator]=function(){return f};return f}});
pu("Array.prototype.flat",function(a){return a?a:function(b){b=b===void 0?1:b;var c=[];Array.prototype.forEach.call(this,function(d){Array.isArray(d)&&b>0?(d=Array.prototype.flat.call(d,b-1),c.push.apply(c,d)):c.push(d)});return c}});pu("Math.imul",function(a){return a?a:function(b,c){b=Number(b);c=Number(c);var d=b&65535,e=c&65535;return d*e+((b>>>16&65535)*e+d*(c>>>16&65535)<<16>>>0)|0}});
pu("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});pu("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ycc(this,b,c).i}});
pu("Array.prototype.flatMap",function(a){return a?a:function(b,c){var d=[];Array.prototype.forEach.call(this,function(e,f){e=b.call(c,e,f,this);Array.isArray(e)?d.push.apply(d,e):d.push(e)});return d}});pu("Promise.allSettled",function(a){function b(d){return{status:"fulfilled",value:d}}function c(d){return{status:"rejected",reason:d}}return a?a:function(d){var e=this;d=Array.from(d,function(f){return e.resolve(f).then(b,c)});return e.all(d)}});
var $cc=function(a){a=Math.trunc(a)||0;a<0&&(a+=this.length);if(!(a<0||a>=this.length))return this[a]};pu("Array.prototype.at",function(a){return a?a:$cc});var xu=function(a){return a?a:$cc};pu("Int8Array.prototype.at",xu);pu("Uint8Array.prototype.at",xu);pu("Uint8ClampedArray.prototype.at",xu);pu("Int16Array.prototype.at",xu);pu("Uint16Array.prototype.at",xu);pu("Int32Array.prototype.at",xu);pu("Uint32Array.prototype.at",xu);pu("Float32Array.prototype.at",xu);pu("Float64Array.prototype.at",xu);
pu("String.prototype.at",function(a){return a?a:$cc});pu("Reflect.isExtensible",function(a){return a?a:typeof Object.isExtensible=="function"?Object.isExtensible:function(){return!0}});pu("Reflect.getOwnPropertyDescriptor",function(a){return a||Object.getOwnPropertyDescriptor});pu("Reflect.getPrototypeOf",function(a){return a||Object.getPrototypeOf});var adc=function(a,b){for(;a;){var c=Reflect.getOwnPropertyDescriptor(a,b);if(c)return c;a=Reflect.getPrototypeOf(a)}};
pu("Reflect.set",function(a){return a?a:function(b,c,d,e){var f=adc(b,c);return f?f.set?(f.set.call(arguments.length>3?e:b,d),!0):f.writable&&!Object.isFrozen(b)?(b[c]=d,!0):!1:Reflect.isExtensible(b)?(b[c]=d,!0):!1}});pu("Reflect.get",function(a){return a?a:function(b,c,d){if(arguments.length<=2)return b[c];var e=adc(b,c);if(e)return e.get?e.get.call(d):e.value}});
pu("String.prototype.codePointAt",function(a){return a?a:function(b){var c=vu(this,null,"codePointAt"),d=c.length;b=Number(b)||0;if(b>=0&&b<d){b|=0;var e=c.charCodeAt(b);if(e<55296||e>56319||b+1===d)return e;b=c.charCodeAt(b+1);return b<56320||b>57343?e:(e-55296)*1024+b+9216}}});
pu("String.fromCodePoint",function(a){return a?a:function(b){for(var c="",d=0;d<arguments.length;d++){var e=Number(arguments[d]);if(e<0||e>1114111||e!==Math.floor(e))throw new RangeError("x`"+e);e<=65535?c+=String.fromCharCode(e):(e-=65536,c+=String.fromCharCode(e>>>10&1023|55296),c+=String.fromCharCode(e&1023|56320))}return c}});
pu("Set.prototype.intersection",function(a){return a?a:function(b){bdc(this);cdc(b);var c=new Set;if(this.size<=b.size)b={smallerSetIterator:this.keys(),largerSet:b};else{b=b.keys();if(typeof b!=="object"||b===null||typeof b.next!=="function")throw new TypeError("z");b={smallerSetIterator:b,largerSet:this}}var d=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}});
pu("Set.prototype.isSubsetOf",function(a){return a?a:function(b){bdc(this);cdc(b);if(this.size>b.size)return!1;for(var c=this.keys(),d=c.next();!d.done;){if(!b.has(d.value))return!1;d=c.next()}return!0}});var cdc=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("y");},bdc=function(a){if(!(a instanceof Set))throw new TypeError("A");};
pu("Math.hypot",function(a){return a?a:function(b){if(arguments.length<2)return arguments.length?Math.abs(arguments[0]):0;var c,d,e;for(c=e=0;c<arguments.length;c++)e=Math.max(e,Math.abs(arguments[c]));if(e>1E100||e<1E-100){if(!e)return e;for(c=d=0;c<arguments.length;c++){var f=Number(arguments[c])/e;d+=f*f}return Math.sqrt(d)*e}for(c=d=0;c<arguments.length;c++)f=Number(arguments[c]),d+=f*f;return Math.sqrt(d)}});pu("Array.of",function(a){return a?a:function(b){return Array.from(arguments)}});
pu("String.prototype.padEnd",function(a){return a?a:function(b,c){var d=vu(this,null,"padStart");return d+Zcc(c,b-d.length)}});var ddc=ddc||{},ea=this||self,edc=function(a,b){var c=xp("WIZ_global_data.oxN3nb");a=c&&c[a];return a!=null?a:b},fdc=ea._F_toggles_default_b||[],xp=function(a,b){a=a.split(".");b=b||ea;for(var c=0;c<a.length;c++)if(b=b[a[c]],b==null)return null;return b},ub=function(a){var b=typeof a;return b!="object"?b:a?Array.isArray(a)?"array":b:"null"},Ka=function(a){var b=ub(a);return b=="array"||b=="object"&&typeof a.length=="number"},La=function(a){var b=typeof a;return b=="object"&&a!=null||b=="function"},
Ma=function(a){return Object.prototype.hasOwnProperty.call(a,gdc)&&a[gdc]||(a[gdc]=++hdc)},gdc="closure_uid_"+(Math.random()*1E9>>>0),hdc=0,idc=function(a,b,c){return a.call.apply(a.bind,arguments)},jdc=function(a,b,c){if(!a)throw Error();if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}},bt=function(a,b,c){bt=Function.prototype.bind&&
Function.prototype.bind.toString().indexOf("native code")!=-1?idc:jdc;return bt.apply(null,arguments)},yu=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}},kdc=function(a){(0,eval)(a)},ldc=function(a,b){a=a.split(".");for(var c=ea,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},Zb=function(a){return a},zu=function(a,b){function c(){}c.prototype=b.prototype;
a.superClass_=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(d,e,f){for(var h=Array(arguments.length-2),k=2;k<arguments.length;k++)h[k-2]=arguments[k];return b.prototype[e].apply(d,h)}};var lba=ba(function(a){return typeof a==="number"}),kba=ba(function(a){return typeof a==="string"}),nba=ba(function(a){return typeof a==="boolean"}),QLb=ba(function(a){return!!a&&(typeof a==="object"||typeof a==="function")}),caa=ba(function(a){return Array.isArray(a)});var iea="entity borg_user borg_job cell task_index task_attempt_uid 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".split(" "),aaa={EQUALS:"=",NOT_EQUALS:"!=",REGEX_MATCH:"=~",NOT_REGEX_MATCH:"!~"},gea=
"entity borg_user borg_job cell rpc_server_service_name rpc_client_service_name lpc_service_name rpc_server_method_name rpc_client_method_name lpc_method_name status_code text_payload 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(" "),fea="start_time end_time min_latency max_latency severity status_code task_index task_attempt_uid".split(" "),hea=["has_sampled_trace"];zu(ca,Error);ca.prototype.name="CustomError";var mdc;zu(eaa,ca);eaa.prototype.name="AssertionError";var jaa=void 0,haa,iaa,ndc=typeof TextDecoder!=="undefined",naa,maa=typeof String.prototype.isWellFormed==="function",laa=typeof TextEncoder!=="undefined";var oa=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},odc=/&/g,pdc=/</g,qdc=/>/g,rdc=/"/g,sdc=/'/g,tdc=/\x00/g,udc=/[\x00&<>"']/;var vdc=!!(fdc[0]>>15&1),wdc=!!(fdc[0]&1024),xdc=!!(fdc[0]>>16&1),ydc=!!(fdc[0]&16),zdc=!!(fdc[0]&128);var Adc=edc(1,!0),qa=vdc?xdc:edc(610401301,!1),upb=vdc?ydc:edc(1331761403,!1),Lca=vdc?wdc||!zdc:edc(748402147,Adc);var ra,Bdc=ea.navigator;ra=Bdc?Bdc.userAgentData||null:null;var Da=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.indexOf(b,0);for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Ca=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Cdc=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,
b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h=typeof a==="string"?a.split(""):a,k=0;k<d;k++)if(k in h){var q=h[k];b.call(c,q,k,a)&&(e[f++]=q)}return e},Ddc=Array.prototype.map?function(a,b){return Array.prototype.map.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=Array(c),e=typeof a==="string"?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(void 0,e[f],f,a));return d},Edc=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=
typeof a==="string"?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;return!1};var Fdc=function(a){Fdc[" "](a);return a};Fdc[" "]=function(){};var Gdc=function(a,b){try{return Fdc(a[b]),!0}catch(c){}return!1};var Hdc=taa(),Ps=uaa(),Idc=sa("Edge"),Kp=sa("Gecko")&&!(ma(pa(),"WebKit")&&!sa("Edge"))&&!(sa("Trident")||sa("MSIE"))&&!sa("Edge"),Jp=ma(pa(),"WebKit")&&!sa("Edge"),Jdc=Jp&&sa("Mobile"),ht=Aa(),Kdc=Baa(),Ldc=(xa()?ra.platform==="Linux":sa("Linux"))||Caa(),Mdc=zaa(),Ndc=Aaa(),Odc=sa("iPad"),Pdc=sa("iPod"),Qdc=ya();ma(pa(),"KaiOS");var Rdc;
a:{var Sdc="",Tdc=function(){var a=pa();if(Kp)return/rv:([^\);]+)(\)|;)/.exec(a);if(Idc)return/Edge\/([\d\.]+)/.exec(a);if(Ps)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Jp)return/WebKit\/(\S+)/.exec(a);if(Hdc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Tdc&&(Sdc=Tdc?Tdc[1]:"");if(Ps){var Udc,Vdc=ea.document;Udc=Vdc?Vdc.documentMode:void 0;if(Udc!=null&&Udc>parseFloat(Sdc)){Rdc=String(Udc);break a}}Rdc=Sdc}var Wdc=Rdc;var Xdc=va(),Ydc=Aaa()||sa("iPod"),Zdc=sa("iPad"),$dc=waa(),aec=wa(),bec=vaa()&&!ya();var cec={},dec=null,eec=Kp||Jp||!bec&&typeof ea.atob=="function",gec=function(a,b){b===void 0&&(b=0);fec();b=cec[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var h=a[e],k=a[e+1],q=a[e+2],v=b[h>>2];h=b[(h&3)<<4|k>>4];k=b[(k&15)<<2|q>>6];q=b[q&63];c[f++]=v+h+k+q}v=0;q=d;switch(a.length-e){case 2:v=a[e+1],q=b[(v&15)<<2]||d;case 1:a=a[e],c[f]=b[a>>2]+b[(a&3)<<4|v>>4]+q+d}return c.join("")},Sac=function(a){if(eec)return ea.atob(a);var b="";hec(a,function(c){b+=String.fromCharCode(c)});
return b},iec=function(a){var b=[];hec(a,function(c){b.push(c)});return b},Taa=function(a){var b=a.length,c=b*3/4;c%3?c=Math.floor(c):la("=.",a[b-1])&&(c=la("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;hec(a,function(f){d[e++]=f});return e!==c?d.subarray(0,e):d},hec=function(a,b){function c(q){for(;d<a.length;){var v=a.charAt(d++),A=dec[v];if(A!=null)return A;if(!ja(v))throw Error("E`"+v);}return q}fec();for(var d=0;;){var e=c(-1),f=c(0),h=c(64),k=c(64);if(k===64&&e===-1)break;b(e<<2|f>>4);h!=
64&&(b(f<<4&240|h>>2),k!=64&&b(h<<6&192|k))}},fec=function(){if(!dec){dec={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));cec[c]=d;for(var e=0;e<d.length;e++){var f=d[e];dec[f]===void 0&&(dec[f]=e)}}}};var Waa=typeof Uint8Array!=="undefined",Saa=!Ps&&typeof btoa==="function",Uaa=/[-_.]/g,Qaa={"-":"+",_:"/",".":"="},$a={},jec=typeof structuredClone!="undefined";var Za=function(a,b){if(b!==$a)throw Error("G");this.value_=a;if(a!=null&&a.length===0)throw Error("F");},gba=function(a){return a?new Za(a,$a):Ya()},Ya=function(){return kec||(kec=new Za(null,$a))},Dca=function(a){var b=a.value_;if(b==null)a="";else if(typeof b==="string")a=b;else{if(Saa){for(var c="",d=0,e=b.length-10240;d<e;)c+=String.fromCharCode.apply(null,b.subarray(d,d+=10240));c+=String.fromCharCode.apply(null,d?b.subarray(d):b);b=btoa(c)}else b=gec(b);a=a.value_=b}return a};
Za.prototype.isEmpty=function(){return this.value_==null};Za.prototype.sizeBytes=function(){var a=Ic(this);return a?a.length:0};
var Pxa=function(a){var b={};b=b.parsingErrorsAreFatal===void 0?!0:b.parsingErrorsAreFatal;if(a=Ic(a)){var c=a.length;b=ndc?kaa(a,0,c,b):gaa(a,0,c,b)}else b="";return b},lec=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=
Ic(a);b=Ic(b);return Xaa(c,b)},Ic=function(a){if($a!==$a)throw Error("G");var b=a.value_;b=b==null||Oa(b)?b:typeof b==="string"?Vaa(b):null;return b==null?b:a.value_=b},cca=function(a,b){if(typeof b==="string")b=gba(b);else if(b instanceof Uint8Array)b=new Za(b,$a);else if(!(b instanceof Za))return!1;return lec(a,b)},kec;var $aa=void 0;var Sa=typeof Symbol==="function"&&typeof Symbol()==="symbol",mec=Ra("jas",void 0,!0),Sba=Ra(void 0,"0di"),Cc=Ra(void 0,"1oa"),Vca=Ra(void 0,"0dg"),$b=Ra(void 0,Symbol()),tca=Ra(void 0,"0ub"),vca=Ra(void 0,"0ubs"),Hda=Ra(void 0,"0ubsb"),Nca=Ra(void 0,"0actk"),ab=Ra("m_m","messagePrototypeMarker",!0),Eca=Ra(void 0,"vps"),qca=Ra();var cba={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}},bba=Object.defineProperties,Ta=Sa?mec:"internalArrayState",nc,nec=[];Va(nec,7);nc=Object.freeze(nec);var cb={},eb={},oec=function(a,b,c){this.iterable=a;this.mapper=b;this.thisArg=c};oec.prototype.next=function(){var a=this.iterable.next();a.done||(a.value=this.mapper.call(this.thisArg,a.value));return a};oec.prototype[Symbol.iterator]=function(){return this};var Cj=Object.freeze({}),pec=Object.freeze({}),Nc={};var mba=typeof ea.BigInt==="function"&&typeof ea.BigInt(0)==="bigint";var Nba=ba(function(a){return mba?a>=qec&&a<=rec:a[0]==="-"?oba(a,sec):oba(a,tec)}),sec=Number.MIN_SAFE_INTEGER.toString(),qec=mba?BigInt(Number.MIN_SAFE_INTEGER):void 0,tec=Number.MAX_SAFE_INTEGER.toString(),rec=mba?BigInt(Number.MAX_SAFE_INTEGER):void 0;var uec=typeof Uint8Array.prototype.slice==="function",kb=0,lb=0;var Fb=typeof BigInt==="function"?BigInt.asIntN:void 0,Mb=typeof BigInt==="function"?BigInt.asUintN:void 0,Jb=Number.isSafeInteger,xb=Number.isFinite,Kb=Math.trunc,Uba=jb(0),wba=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Fca={};var mca={},vec=function(){try{var a=function(){return Kcc(Map,[],this.constructor)};Y(a,Map);Fdc(new a);return!1}catch(b){return!0}}(),wec=function(){this.map_=new Map};g=wec.prototype;g.get=function(a){return this.map_.get(a)};g.set=function(a,b){this.map_.set(a,b);this.size=this.map_.size;return this};g.delete=function(a){a=this.map_.delete(a);this.size=this.map_.size;return a};g.clear=function(){this.map_.clear();this.size=this.map_.size};g.has=function(a){return this.map_.has(a)};g.entries=function(){return this.map_.entries()};
g.keys=function(){return this.map_.keys()};g.values=function(){return this.map_.values()};g.forEach=function(a,b){return this.map_.forEach(a,b)};wec.prototype[Symbol.iterator]=function(){return this.entries()};
var fc=function(){if(vec)return Object.setPrototypeOf(wec.prototype,Map.prototype),Object.defineProperties(wec.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),wec;var a=function(){return Kcc(Map,[],this.constructor)};Y(a,Map);return a}(),Yb=function(a,b,c,d){c=c===void 0?fca:c;d=d===void 0?fca:d;var e=fc.call(this)||this;e.arrayState=a[Ta]|0;e.valueCtor=b;e.keyToApi=c;e.valueToApi=e.valueCtor?gca:d;for(var f=0;f<a.length;f++){var h=a[f],k=c(h[0],!1,!0),q=h[1];b?q===void 0&&(q=
null):q=d(h[1],!1,!0,void 0,void 0,e.arrayState);fc.prototype.set.call(e,k,q)}return e};Y(Yb,fc);var xec=function(a){if(a.arrayState&2)throw Error("J");};g=Yb.prototype;g.clear=function(){xec(this);fc.prototype.clear.call(this)};g.delete=function(a){xec(this);return fc.prototype.delete.call(this,this.keyToApi(a,!0,!1))};g.entries=function(){if(this.valueCtor){var a=fc.prototype.keys.call(this);a=new oec(a,kca,this)}else a=fc.prototype.entries.call(this);return a};
g.values=function(){if(this.valueCtor){var a=fc.prototype.keys.call(this);a=new oec(a,Yb.prototype.get,this)}else a=fc.prototype.values.call(this);return a};g.forEach=function(a,b){this.valueCtor?fc.prototype.forEach.call(this,function(c,d,e){a.call(b,e.get(d),d,e)}):fc.prototype.forEach.call(this,a,b)};g.set=function(a,b){xec(this);a=this.keyToApi(a,!0,!1);return a==null?this:b==null?(fc.prototype.delete.call(this,a),this):fc.prototype.set.call(this,a,this.valueToApi(b,!0,!0,this.valueCtor,!1,this.arrayState))};
g.has=function(a){return fc.prototype.has.call(this,this.keyToApi(a,!1,!1))};g.get=function(a){a=this.keyToApi(a,!1,!1);var b=fc.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&&fc.prototype.set.call(this,a,c),c):b}};var bca=function(a,b,c){return b instanceof Yb?hca(a,b,c):jca(a,b,c)};Yb.prototype[Symbol.iterator]=function(){return this.entries()};Yb.prototype.toJSON=void 0;var lca;var zca=function(){},xca=function(a,b){for(var c in a)!isNaN(c)&&b(a,+c,a[c])},Aca=function(a){var b=new zca;xca(a,function(c,d,e){b[d]=ob(e)});b.reviveUnknownFields=a.reviveUnknownFields;return b},rca={reviveIntoImmutable:!0};var HHa=jec?structuredClone:function(a){return ac(a,0,cc)},yca;var Hca,Ica;var yec=jb(0),Wt={},rk=function(a,b,c,d,e){b=rc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b,c,e);if(b!==null||d&&a.noLegacyNull!==eb)return b},rc=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 h=a[f];if(h!=null&&typeof h==="object"&&h.constructor===Object){c=h[b];var k=!0}else if(e===f)c=h;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?h[b]=d:a[e]=d,d}return c}},pq=function(a,b,c,
d){kc(a);var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;mc(e,e[Ta]|0,b,c,d);return a},tk=function(a,b,c,d){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Ec(a,a[Ta]|0,b,c,d)!==void 0},vm=function(a,b,c,d){var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Ec(e,e[Ta]|0,b,cm(a,d,c))!==void 0},zec=function(a,b,c){var d=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return ada(a,d,d[Ta]|0,b,c,3).length},Au=function(a,b,c,d,e,f){Fc(a,b,c,
f,e,d,1);return a},Bj=function(a){return a===Cj?2:4},oq=function(a,b,c,d){a=rk(a,b,d,void 0,sc);return a==null?c===null?c:c===void 0?Ya():gba(c):a},Bu=function(a,b,c){return pq(a,b,void 0,c)},Aec=function(a,b){kc(a);var c=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;$ca(c,c[Ta]|0,b,0);return a},fm=function(a,b,c,d){kc(a);var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ta]|0;if(d==null){var h=Yca(e);if(Zca(h,e,f,c)===b)h.set(c,0);else return a}else f=$ca(e,f,c,b);mc(e,
f,b,d);return a},cm=function(a,b,c,d){return Ml(a,b,d)===c?c:-1},Ml=function(a,b,c){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Zca(Yca(a),a,void 0,b,c)},Cu=function(a,b,c,d){kc(a);a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var e=a[Ta]|0,f=rc(a,c,d),h=void 0===pec;b=Tb(f,b,!h,e);if(!h||b)return b=Xb(b),f!==b&&(e=mc(a,e,c,b,d),lc(a,e)),b},Bec=function(a,b,c){var d=a[Ta]|0,e=d&128?Nc:void 0,f=rc(a,c,e);if(db(f)){if(!fb(f))return jc(f),f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;
var h=f.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(f)&&(h=f);if(h){var k=h[Ta]|0;k&2&&(h=hc(h,k))}h=Kca(h,b,!0);h!==f&&mc(a,d,c,h,e);return h},Cec=function(a,b,c){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Ec(a,a[Ta]|0,b,c)},W=function(a,b,c,d){var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=e[Ta]|0;b=Ec(e,f,b,c,d);if(b==null)return b;f=e[Ta]|0;if(!fb(a,f)){var h=Xb(b);h!==b&&(jc(a)&&(e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,
f=e[Ta]|0),b=h,f=mc(e,f,c,b,d),lc(e,f))}return b},Sj=function(a,b,c,d,e){var f=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return ada(a,f,f[Ta]|0,b,c,d,e,!1,!0)},X=function(a,b,c,d,e){d=bda(d);pq(a,c,d,e);d&&!fb(d)&&lc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a},nm=function(a,b,c,d){d=bda(d);fm(a,b,c,d);d&&!fb(d)&&lc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a},Bm=function(a,b,c,d){kc(a);var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,
f=e[Ta]|0;if(c==null)return mc(e,f,b,void 0,d),a;for(var h=c===nc?7:c[Ta]|0,k=h,q=qc(h),v=q||Object.isFrozen(c),A=!0,E=!0,H=0;H<c.length;H++){var L=c[H];q||(L=fb(L),A&&(A=!L),E&&(E=L))}q||(h=A?13:5,h=E?h&-4097:h|4096);v&&h===k||(c=ob(c),k=0,h=oc(h,f));h!==k&&Va(c,h);f=mc(e,f,b,c,d);2&h||!(4096&h||16&h)||lc(e,f);return a},Po=function(a,b,c,d,e,f){Fc(a,b,c,f,d,e);return a},Du=function(a,b,c,d,e){Fc(a,b,c,e,void 0,d,1,!0);return a},bo=function(a,b,c,d,e){kc(a);var f=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;
b=ada(a,f,f[Ta]|0,c,b,2,e,!0);e=c=0;if(Array.isArray(d))for(var h=d.length,k=0;k<h;k++){var q=d[k];b.push(q);(q=fb(q))&&!c++&&(b[Ta]&=-9);q||e++||Ua(b,4096)}else for(d=l(d),h=d.next();!h.done;h=d.next())h=h.value,b.push(h),(h=fb(h))&&!c++&&(b[Ta]&=-9),h||e++||Ua(b,4096);e&&lc(f);return a},Eu=function(a,b,c){return Ob(rk(a,b,c),!0)},Fu=function(a,b,c){a=rk(a,b,void 0,c);b=typeof a;a=a==null?a:b==="bigint"?jb(Mb(64,a)):yb(a)?b==="string"?Mba(a):Kba(a):void 0;return a},bp=function(a,b,c){return pc(a,
b,Nb,c,void 0,0)},Rj=function(a,b,c,d,e){return pc(a,b,Pb,c,e,1024,d)},Ck=function(a,b){return pc(a,b,cda,1,void 0,512)},Gu=function(a,b,c,d){return Db(rk(a,b,c,d))},Hu=function(a,b,c,d){return Rb(rk(a,b,c,d))},Nm=function(a,b,c,d){return Ab(rk(a,b,c,d))},kk=function(a,b,c,d){c=c===void 0?!1:c;var e;return(e=wb(rk(a,b,d)))!=null?e:c},Ej=function(a,b,c,d){c=c===void 0?0:c;var e;return(e=Gu(a,b,d))!=null?e:c},Um=function(a,b,c,d){c=c===void 0?0:c;var e;return(e=Nb(rk(a,b,d)))!=null?e:c},Iu=function(a,
b,c,d){c=c===void 0?"0":c;var e;return(e=Ob(rk(a,b,d)))!=null?e:c},xk=function(a,b,c,d){c=c===void 0?yec:c;var e;return(e=Pb(rk(a,b,d)))!=null?e:c},Dec=function(a){var b=b===void 0?yec:b;var c;return(c=Fu(a,23))!=null?c:b},hm=function(a,b,c){c=c===void 0?0:c;var d;return(d=rk(a,b,void 0,void 0,sb))!=null?d:c},Rc=function(a,b,c,d){c=c===void 0?"":c;var e;return(e=Hu(a,b,d))!=null?e:c},pk=function(a,b,c,d){c=c===void 0?0:c;var e;return(e=Nm(a,b,d))!=null?e:c},Bk=function(a,b,c,d){c=c===void 0?"0":c;
var e;return(e=Eu(a,b,d))!=null?e:c},sk=function(a,b,c,d){c=c===void 0?"0":c;var e;return(e=Eu(a,b,d))!=null?e:c},Fj=function(a,b,c,d,e){return pc(a,b,Db,c,e,void 0,d)},Ju=function(a,b,c){a=Fj(a,b,3,void 0,!0);ib(a,c);return a[c]},Eec=function(a,b){a=Rj(a,b,3,void 0,!0);ib(a);return a[void 0]},Aj=function(a,b,c,d,e){return pc(a,b,Rb,c,e,void 0,d)},Ku=function(a,b,c,d){a=Aj(a,b,3,d,!0);ib(a,c);return a[c]},Fk=function(a,b,c,d,e){return pc(a,b,Ab,c,e,void 0,d)},Lu=function(a,b,c){a=Fk(a,b,3,void 0,
!0);ib(a,c);return a[c]},Ol=function(a,b,c){return Rc(a,cm(a,c,b))},Zt=function(a,b,c){return $k(a,cm(a,c,b))},im=function(a,b,c,d,e){return W(a,b,cm(a,d,c,e),e)},c1a=function(a,b){b=cm(a,Zq,b);return Eu(a,b)},Vo=function(a,b,c){b=cm(a,c,b);return Hu(a,b)},d1a=function(a,b){b=cm(a,Zq,b);return rk(a,b,void 0,void 0,sc)},Mt=function(a,b){return wb(rk(a,b,void 0,Wt))},Mu=function(a,b){return Gu(a,b,void 0,Wt)},Nu=function(a,b){return Pb(rk(a,b,void 0,Wt))},Ou=function(a,b){return rk(a,b,void 0,Wt,sb)},
$k=function(a,b){return Hu(a,b,void 0,Wt)},Ut=function(a,b){return Nm(a,b,void 0,Wt)},Nk=function(a,b,c){return pq(a,b,c==null?c:vb(c))},pm=function(a,b,c,d){return xc(a,b,c==null?c:vb(c),!1,d)},Ok=function(a,b,c){return pq(a,b,c==null?c:Cb(c))},Zj=function(a,b,c){return xc(a,b,c==null?c:Cb(c),0)},Ek=function(a,b,c,d,e){return pq(a,b,Ib(c,d===void 0?0:d),e)},Xl=function(a,b,c){return xc(a,b,Ib(c,0),"0")},Fec=function(a,b,c){c=c==null?c:Oba(c);return pq(a,b,c)},Uk=function(a,b,c,d,e){return pq(a,b,
Ib(c,d===void 0?0:d),e)},Pu=function(a,b,c){return pq(a,b,c==null?c:qb(c))},Im=function(a,b,c){return xc(a,b,c==null?c:qb(c),0)},$xa=function(a,b,c,d){fm(a,b,c,d==null?d:qb(d))},Qk=function(a,b,c,d){return pq(a,b,Rba(c),d)},Hj=function(a,b,c,d){return xc(a,b,Rba(c),"",d)},Rl=function(a,b,c,d){return fm(a,b,c,Rba(d))},bm=function(a,b,c){return xc(a,b,gb(c,!1,!0),Ya())},Rk=function(a,b,c,d){return pq(a,b,xba(c),d)},Jj=function(a,b,c,d){return xc(a,b,xba(c),0,d)},Gec=function(a,b,c){return Bc(a,b,Cb,
c,void 0,Db)},ep=function(a,b,c){return vc(a,b,c,Hb)},Qu=function(a,b,c,d){return yc(a,b,Hb,c,d,Nb)},Hec=function(a,b,c){return yc(a,b,Hb,void 0,c,Nb,void 0,1,!1,!0)},Ru=function(a,b,c){zc(a,b,Hb,c,Nb)},Su=function(a,b,c){Bc(a,b,Hb,c,void 0,Nb)},Ij=function(a,b,c,d){return vc(a,b,c,Qb,d)},Tu=function(a,b,c,d){return Bc(a,b,Qb,c,d,Rb)},dp=function(a,b,c){return vc(a,b,c,zb)},jk=function(a,b){return wb(rk(a,b))!=null},lk=function(a,b){return Gu(a,b)!=null},wk=function(a,b,c){return Nb(rk(a,b,c))!=null},
mk=function(a,b,c){return Hu(a,b,c)!=null},nk=function(a,b,c){return Nm(a,b,c)!=null};var Gc=function(a,b,c){this.buffer=a;if(c&&!b)throw Error();this.isImmutable=b};var Iec=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)};g=Iec.prototype;
g.init=function(a,b,c,d){var e=d===void 0?{}:d;d=e.aliasBytesFields===void 0?!1:e.aliasBytesFields;e=e.treatNewDataAsImmutable===void 0?!1:e.treatNewDataAsImmutable;this.aliasBytesFields=d;this.treatNewDataAsImmutable=e;a&&(this.buffer_=a=eda(a,this.treatNewDataAsImmutable),this.bytes_=a.buffer,this.bytesAreImmutable_=a.isImmutable,this.start_=b||0,this.end_=c!==void 0?this.start_+c:this.bytes_.length,this.cursor_=this.start_)};g.free=function(){this.clear();Jec.length<100&&Jec.push(this)};
g.clear=function(){this.buffer_=this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.start_=0;this.aliasBytesFields=!1};g.getEnd=function(){return this.end_};g.setEnd=function(a){this.end_=a};g.reset=function(){this.cursor_=this.start_};g.getCursor=function(){return this.cursor_};g.advance=function(a){Kec(this,this.cursor_+a)};
var Kec=function(a,b){a.cursor_=b;if(b>a.end_)throw Error();},Uu=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();Kec(a,c);return e},Lec=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},Mec=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 Kec(a,c),!!(b&127)}throw Error();},Nec=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};Iec.prototype.readString=function(a,b){var c=Nec(this,a),d=this.bytes_;return ndc?kaa(d,c,a,b):gaa(d,c,a,b)};
Iec.prototype.readByteString=function(a){if(a==0)return Ya();var b=Nec(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):uec?c.slice(b,a):new Uint8Array(c.subarray(b,a))}return fba(b)};var Jec=[];var Oec=function(a,b,c,d){if(Jec.length){var e=Jec.pop();e.init(a,b,c,d);a=e}else a=new Iec(a,b,c,d);this.decoder_=a;this.fieldCursor_=this.decoder_.getCursor();this.nextWireType_=this.nextTag_=this.nextField_=-1;this.setOptions(d)};Oec.prototype.setOptions=function(a){a=a===void 0?{}:a;this.discardUnknownFields=a.discardUnknownFields===void 0?!1:a.discardUnknownFields};
var zda=function(a,b,c,d){if(Pec.length){var e=Pec.pop();e.setOptions(d);e.decoder_.init(a,b,c,d);return e}return new Oec(a,b,c,d)};g=Oec.prototype;g.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=this.nextTag_=-1;Pec.length<100&&Pec.push(this)};g.getCursor=function(){return this.decoder_.getCursor()};g.getTag=function(){return this.nextTag_};
g.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.getCursor();this.nextWireType_=this.nextField_=this.nextTag_=-1};g.advance=function(a){this.decoder_.advance(a)};
var uda=function(a){var b=a.decoder_;if(b.cursor_==b.end_)return!1;a.fieldCursor_=a.decoder_.getCursor();b=Uu(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},wda=function(a){switch(a.nextWireType_){case 0:a.nextWireType_!=0?wda(a):Mec(a.decoder_);break;case 1:a.decoder_.advance(8);break;case 2:if(a.nextWireType_!=2)wda(a);else{var b=Uu(a.decoder_)>>>0;a.decoder_.advance(b)}break;case 5:a.decoder_.advance(4);
break;case 3:b=a.nextField_;do{if(!uda(a))throw Error();if(a.nextWireType_==4){if(a.nextField_!=b)throw Error();break}wda(a)}while(1);break;default:throw Error();}},Qec=function(a,b,c){var d=a.decoder_.getEnd(),e=Uu(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)};Oec.prototype.readString=function(){return Rec(this)};
var Rec=function(a){var b=Uu(a.decoder_)>>>0;return a.decoder_.readString(b,!0)};Oec.prototype.readByteString=function(){var a=Uu(this.decoder_)>>>0;return this.decoder_.readByteString(a)};var Pec=[];var Sec=function(a,b){this.lo=a>>>0;this.hi=b>>>0},Uec=function(a){if(!a)return Tec||(Tec=new Sec(0,0));if(!/^\d+$/.test(a))return null;vba(a);return new Sec(kb,lb)},Tec,Vec=function(a,b){this.lo=a>>>0;this.hi=b>>>0},Xec=function(a){if(!a)return Wec||(Wec=new Vec(0,0));if(!/^-?\d+$/.test(a))return null;vba(a);return new Vec(kb,lb)},Wec;var Vu=function(){this.buffer_=[]};Vu.prototype.length=function(){return this.buffer_.length};Vu.prototype.end=function(){var a=this.buffer_;this.buffer_=[];return a};Vu.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)};Vu.prototype.writeSplitFixed64=function(a,b){this.writeUint32(a);this.writeUint32(b)};
var Yec=function(a,b){for(;b>127;)a.buffer_.push(b&127|128),b>>>=7;a.buffer_.push(b)},Zec=function(a,b){if(b>=0)Yec(a,b);else{for(var c=0;c<9;c++)a.buffer_.push(b&127|128),b>>=7;a.buffer_.push(1)}};g=Vu.prototype;g.writeUint32=function(a){this.buffer_.push(a>>>0&255);this.buffer_.push(a>>>8&255);this.buffer_.push(a>>>16&255);this.buffer_.push(a>>>24&255)};g.writeUint64=function(a){pba(a);this.writeUint32(kb);this.writeUint32(lb)};
g.writeInt32=function(a){this.buffer_.push(a>>>0&255);this.buffer_.push(a>>>8&255);this.buffer_.push(a>>>16&255);this.buffer_.push(a>>>24&255)};g.writeInt64=function(a){mb(a);this.writeSplitFixed64(kb,lb)};g.writeBool=function(a){this.buffer_.push(a?1:0)};g.writeEnum=function(a){Zec(this,a)};var $ec=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new Vu},Mc=function(a,b){b.length!==0&&(a.blocks_.push(b),a.totalLength_+=b.length)},afc=function(a){Mc(a,a.encoder_.end());for(var b=new Uint8Array(a.totalLength_),c=a.blocks_,d=c.length,e=0,f=0;f<d;f++){var h=c[f];b.set(h,e);e+=h.length}a.blocks_=[b];return b},Lc=function(a,b,c){Yec(a.encoder_,b*8+c)};g=$ec.prototype;g.writeInt32=function(a,b){b!=null&&b!=null&&(Lc(this,a,0),Zec(this.encoder_,b))};
g.writeInt64=function(a,b){if(b!=null){switch(typeof b){case "string":Xec(b)}if(b!=null)switch(Lc(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 Vec(Number(b&BigInt(4294967295)),Number(b>>BigInt(32)));this.encoder_.writeSplitVarint64(b.lo,b.hi);break;default:b=Xec(b),this.encoder_.writeSplitVarint64(b.lo,b.hi)}}};g.writeUint32=function(){};g.writeUint64=function(){};
g.writeBool=function(a,b){b!=null&&(Lc(this,a,0),this.encoder_.writeBool(b))};g.writeEnum=function(a,b){b!=null&&(b=parseInt(b,10),Lc(this,a,0),Zec(this.encoder_,b))};g.writeSplitFixed64=function(a,b){Lc(this,a,1);this.encoder_.writeSplitFixed64(b)};g.writeSplitVarint64=function(a,b){Lc(this,a,0);this.encoder_.writeSplitVarint64(b)};var hda=Jc(),bfc=Jc(),cfc=Jc(),dfc=Jc(),efc=Jc(),ffc=Jc(),gfc=Jc(),hfc=Jc();var n=function(a,b,c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,b,c)};n.prototype.toJSON=function(){return Gca(this)};n.prototype.serialize=function(a){return JSON.stringify(Gca(this,a))};var Lda=function(a,b){if(b==null||b=="")return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("T");return new a(eba(b))};
n.prototype.getExtension=function(a){uca(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a.fieldIndex);sca(this,a.fieldIndex);return a.ctor?a.isRepeated?a.getExtensionFn(this,a.ctor,a.fieldIndex,Bj(),a.hasMessageId):a.getExtensionFn(this,a.ctor,a.fieldIndex,a.hasMessageId):a.isRepeated?a.getExtensionFn(this,a.fieldIndex,Bj(),a.hasMessageId):a.getExtensionFn(this,a.fieldIndex,a.defaultValue,a.hasMessageId)};
var ifc=function(a,b){uca(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b.fieldIndex);sca(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};n.prototype.hasExtension=function(a){uca(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a.fieldIndex);sca(this,a.fieldIndex);return a.ctor?tk(this,a.ctor,a.fieldIndex,a.hasMessageId):ifc(this,a)!==void 0};
n.prototype.clone=function(){var a=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=a[Ta]|0;return Sca(this,a,b)?Rca(this,a,!0):new this.constructor(hc(a,b,!1))};n.prototype.isMutable=function(){return!fb(this)};n.prototype.isImmutable=function(){return fb(this)};var H9b=function(a){return Xb(a)},Ot=function(a,b,c){pca(a,b.fieldIndex);b.ctor?b.setExtensionFn(a,b.ctor,b.fieldIndex,c,b.hasMessageId):b.setExtensionFn(a,b.fieldIndex,c,b.hasMessageId)};n.prototype[ab]=cb;
n.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Kc=function(a,b,c){this.$$binaryReaderFn=a;this.$$binaryWriterFn=b;a=Zb(hda);this.$$isMsg=!!a&&c===a||!1},lda=ida(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1;Qec(a,Bec(b,d,c),e);return!0}),nda=ida(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1;Qec(a,Bec(b,d,c),e);return!0}),Ada=Symbol(),qda=Symbol(),tda=Symbol(),Eda=Symbol(),xda=Symbol(),jda,kda;var jfc=Pc(function(a,b,c){if(a.nextWireType_!==0)return!1;a=a.decoder_;var d=0,e=0,f=0,h=a.bytes_,k=a.cursor_;do{var q=h[k++];d|=(q&127)<<f;f+=7}while(f<32&&q&128);if(f>32)for(e|=(q&127)>>4,f=3;f<32&&q&128;f+=7)q=h[k++],e|=(q&127)<<f;Kec(a,k);if(q&128)throw Error();a=sba(d>>>0,e>>>0);Qc(b,c,a);return!0},function(a,b,c){a.writeInt64(c,Pba(b))},ffc),Wu=Pc(function(a,b,c){if(a.nextWireType_!==0)return!1;Qc(b,c,Uu(a.decoder_));return!0},function(a,b,c){a.writeInt32(c,Db(b))},dfc),kfc;
kfc=new Kc(function(a,b,c){if(a.nextWireType_!==0&&a.nextWireType_!==2)return!1;var d=b[Ta]|0;if(d&2)throw Error();var e=d&128?Nc:void 0,f=Tca(b,c,e),h=f===nc?7:f[Ta]|0,k=Uca(h,d);if(2&k||qc(k)||16&k)f=ob(f),h=0,k=oc(k,d),mc(b,d,c,f,e);k&=-13;k!==h&&Va(f,k);b=f;if(a.nextWireType_==2)for(c=Uu(a.decoder_)>>>0,c=a.decoder_.getCursor()+c;a.decoder_.getCursor()<c;)b.push(Uu(a.decoder_));else b.push(Uu(a.decoder_));return!0},function(a,b,c){if(Array.isArray(b)){var d=b[Ta]|0;if(!(d&4)){for(var e=0,f=0;e<
b.length;e++){var h=Db(b[e]);h!=null&&(b[f++]=h)}f<e&&(b.length=f);Va(b,(d|5)&-1537);d&2&&Object.freeze(b)}}else b=void 0;if(b!=null)for(d=0;d<b.length;d++)e=a,f=c,h=b[d],h!=null&&(Lc(e,f,0),Zec(e.encoder_,h))},dfc);
var lfc=Pc(function(a,b,c){if(a.nextWireType_!==1)return!1;var d=a.decoder_;a=Lec(d);d=Lec(d);Qc(b,c,nb(a,d));return!0},function(a,b,c){b=Qba(b);if(b!=null){switch(typeof b){case "string":Uec(b)}Lc(a,c,1);switch(typeof b){case "number":a.encoder_.writeUint64(b);break;case "bigint":c=BigInt.asUintN(64,b);c=new Sec(Number(c&BigInt(4294967295)),Number(c>>BigInt(32)));a.encoder_.writeSplitFixed64(c.lo,c.hi);break;default:c=Uec(b),a.encoder_.writeSplitFixed64(c.lo,c.hi)}}},gfc),mfc=Pc(function(a,b,c){if(a.nextWireType_!==
5)return!1;Qc(b,c,Lec(a.decoder_));return!0},function(a,b,c){b=zba(b);b!=null&&(Lc(a,c,5),a.encoder_.writeUint32(b))},efc),Xu=Pc(function(a,b,c){if(a.nextWireType_!==0)return!1;Qc(b,c,Mec(a.decoder_));return!0},function(a,b,c){a.writeBool(c,wb(b))},bfc),nfc=Pc(function(a,b,c){if(a.nextWireType_!==2)return!1;Qc(b,c,Rec(a));return!0},function(a,b,c){b=Rb(b);b!=null&&(b=oaa(b,!1),Lc(a,c,2),Yec(a.encoder_,b.length),Mc(a,a.encoder_.end()),Mc(a,b))},cfc),ofc=Pc(function(a,b,c){if(a.nextWireType_!==0)return!1;
Qc(b,c,Uu(a.decoder_));return!0},function(a,b,c){a.writeEnum(c,Db(b))},hfc);var Yu=function(a,b,c){this.fieldIndex=a;this.ctor=c;this.isRepeated=0;this.getExtensionFn=W;this.setExtensionFn=X;this.defaultValue=void 0;this.hasMessageId=b.messageId!=null?Nc:void 0};Yu.prototype.register=function(){Fdc(this)};var bk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bk,n);g=bk.prototype;g.getSeconds=function(){return xk(this,1)};g.getSeconds_asString=function(){return Bk(this,1)};g.setSeconds=function(a){return Xl(this,1,a)};g.getNanos=function(){return Ej(this,2)};g.setNanos=function(a){return Zj(this,2,a)};g.toDate=function(){var a=Number(this.getSeconds_asString()),b=this.getNanos();return new Date(a*1E3+b/1E6)};
g.fromMillis=function(a){Number.isFinite(a)||(a=0);return this.setSeconds(Math.floor(a/1E3)).setNanos((a%1E3+1E3)%1E3*1E6)};var $q=function(a,b){this.low_=a|0;this.high_=b|0},Zu=function(a){return a.high_*4294967296+(a.low_>>>0)};g=$q.prototype;g.isSafeInteger=function(){var a=this.high_>>21;return a==0||a==-1&&!(this.low_==0&&this.high_==-2097152)};
g.toString=function(a){a=a||10;if(a<2||36<a)throw Error("X`"+a);if(this.isSafeInteger()){var b=Zu(this);return a==10?""+b:b.toString(a)}b=14-(a>>2);var c=Math.pow(a,b),d=$u(c,c/4294967296);c=this.div(d);d=Math.abs(Zu(av(this,c.multiply(d))));var e=a==10?""+d:d.toString(a);e.length<b&&(e="0000000000000".slice(e.length-b)+e);d=Zu(c);return(a==10?d:d.toString(a))+e};g.isZero=function(){return this.low_==0&&this.high_==0};g.equals=function(a){return this.low_==a.low_&&this.high_==a.high_};
g.compare=function(a){return this.high_==a.high_?this.low_==a.low_?0:this.low_>>>0>a.low_>>>0?1:-1:this.high_>a.high_?1:-1};var bv=function(a){var b=~a.low_+1|0;return $u(b,~a.high_+!b|0)};$q.prototype.add=function(a){var b=this.high_>>>16,c=this.high_&65535,d=this.low_>>>16,e=a.high_>>>16,f=a.high_&65535,h=a.low_>>>16;a=(this.low_&65535)+(a.low_&65535);h=(a>>>16)+(d+h);d=h>>>16;d+=c+f;return $u((h&65535)<<16|a&65535,((d>>>16)+(b+e)&65535)<<16|d&65535)};var av=function(a,b){return a.add(bv(b))};
g=$q.prototype;g.multiply=function(a){if(this.isZero())return this;if(a.isZero())return a;var b=this.high_>>>16,c=this.high_&65535,d=this.low_>>>16,e=this.low_&65535,f=a.high_>>>16,h=a.high_&65535,k=a.low_>>>16;a=a.low_&65535;var q=e*a;var v=(q>>>16)+d*a;var A=v>>>16;v=(v&65535)+e*k;A+=v>>>16;A+=c*a;var E=A>>>16;A=(A&65535)+d*k;E+=A>>>16;A=(A&65535)+e*h;E=E+(A>>>16)+(b*a+c*k+d*h+e*f)&65535;return $u((v&65535)<<16|q&65535,E<<16|A&65535)};
g.div=function(a){if(a.isZero())throw Error("Y");if(this.high_<0){if(this.equals(pfc)){if(a.equals(qfc)||a.equals(rfc))return pfc;if(a.equals(pfc))return qfc;var b=this.high_;b=$u(this.low_>>>1|b<<31,b>>1);b=b.div(a).shiftLeft(1);if(b.equals(cv))return a.high_<0?qfc:rfc;var c=av(this,a.multiply(b));return b.add(c.div(a))}return a.high_<0?bv(this).div(bv(a)):bv(bv(this).div(a))}if(this.isZero())return cv;if(a.high_<0)return a.equals(pfc)?cv:bv(this.div(bv(a)));b=cv;for(c=this;c.compare(a)>=0;){var d=
Math.max(1,Math.floor(Zu(c)/Zu(a))),e=Math.ceil(Math.log(d)/Math.LN2);e=e<=48?1:Math.pow(2,e-48);for(var f=dv(d),h=f.multiply(a);h.high_<0||h.compare(c)>0;)d-=e,f=dv(d),h=f.multiply(a);f.isZero()&&(f=qfc);b=b.add(f);c=av(c,h)}return b};g.and=function(a){return $u(this.low_&a.low_,this.high_&a.high_)};g.or=function(a){return $u(this.low_|a.low_,this.high_|a.high_)};g.xor=function(a){return $u(this.low_^a.low_,this.high_^a.high_)};
g.shiftLeft=function(a){a&=63;if(a==0)return this;var b=this.low_;return a<32?$u(b<<a,this.high_<<a|b>>>32-a):$u(0,b<<a-32)};
var dv=function(a){return a>0?a>=0x7fffffffffffffff?sfc:new $q(a,a/4294967296):a<0?a<=-0x7fffffffffffffff?pfc:bv(new $q(-a,-a/4294967296)):cv},$u=function(a,b){return new $q(a,b)},br=function(a,b){if(a.charAt(0)=="-")return bv(br(a.substring(1),b));var c=parseInt(a,b||10);if(c<=9007199254740991)return new $q(c%4294967296|0,c/4294967296|0);if(a.length==0)throw Error("Z");if(a.indexOf("-")>=0)throw Error("$`"+a);b=b||10;if(b<2||36<b)throw Error("X`"+b);c=dv(Math.pow(b,8));for(var d=cv,e=0;e<a.length;e+=
8){var f=Math.min(8,a.length-e),h=parseInt(a.substring(e,e+f),b);f<8?(f=dv(Math.pow(b,f)),d=d.multiply(f).add(dv(h))):(d=d.multiply(c),d=d.add(dv(h)))}return d},cv=$u(0,0),qfc=$u(1,0),rfc=$u(-1,-1),sfc=$u(4294967295,2147483647),pfc=$u(0,2147483648);var tfc={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},ev=tfc;ev=tfc;var ufc=globalThis.trustedTypes,Mda=ufc,Oda;var Wc=function(a){this.privateDoNotAccessOrElseWrappedResourceUrl=a};Wc.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var vfc=ru([""]),wfc=Pcc(["\x00"],["\\0"]),xfc=Pcc(["\n"],["\\n"]),yfc=Pcc(["\x00"],["\\u0000"]);Qda(function(a){return a(vfc)})||Qda(function(a){return a(wfc)})||Qda(function(a){return a(xfc)})||Qda(function(a){return a(yfc)});var Zc=function(a){this.privateDoNotAccessOrElseWrappedUrl=a};Zc.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};var Tda=new Zc("about:invalid#zClosurez");var Rda=function(a){this.isValid=a},Sda=[bd("data"),bd("http"),bd("https"),bd("mailto"),bd("ftp"),new Rda(function(a){return/^[^:]*([/?#]|$)/.test(a)})],Uda=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var ed=function(a){this.privateDoNotAccessOrElseWrappedHtml=a};ed.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};var Jr=new ed(ufc?ufc.emptyHTML:"");var zfc="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var Cfc=function(a){var b=xp("window.location.href");a==null&&(a='Unknown Error of type "null/undefined"');if(typeof a==="string")return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||ea.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Afc(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,Bfc[c])c=Bfc[c];else{c=String(c);if(!Bfc[c]){var f=/function\s+([^\(]+)/m.exec(c);Bfc[c]=f?f[1]:"[Anonymous]"}c=Bfc[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}},Afc=function(a,b){b||(b={});b[Dfc(a)]=!0;var c=a.stack||"",d=a.cause;d&&!b[Dfc(d)]&&(c+="\nCaused by: ",d.stack&&d.stack.indexOf(d.toString())==0||(c+=typeof d==="string"?d:d.message+"\n"),c+=Afc(d,b));a=a.errors;if(Array.isArray(a)){d=1;var e;for(e=0;e<a.length&&!(d>4);e++)b[Dfc(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+=Afc(a[e],
b));e<a.length&&(c+="\n... "+(a.length-e)+" more inner errors")}return c},Dfc=function(a){var b="";typeof a.toString==="function"&&(b=""+a);return b+a.stack},Bfc={};var Efc=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")},Ffc=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},rjb=function(a){return!/[^0-9]/.test(a)},fv=function(a){return encodeURIComponent(String(a))},Rr=function(a){udc.test(a)&&(a.indexOf("&")!=-1&&(a=a.replace(odc,"&amp;")),a.indexOf("<")!=-1&&(a=a.replace(pdc,"&lt;")),a.indexOf(">")!=-1&&(a=a.replace(qdc,"&gt;")),a.indexOf('"')!=
-1&&(a=a.replace(rdc,"&quot;")),a.indexOf("'")!=-1&&(a=a.replace(sdc,"&#39;")),a.indexOf("\x00")!=-1&&(a=a.replace(tdc,"&#0;")));return a},Gfc=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},N5b=function(a,b,c){return a.replace(new RegExp(sq(b),"g"),c.replace(/\$/g,"$$$$"))},sq=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Hfc=String.prototype.repeat?
function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},gv=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+Hfc("0",Math.max(0,b-c))+a},Ur=function(a){return a==null?"":String(a)},vhb=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^Date.now()).toString(36)},Ym=function(a){var b=Number(a);return b==0&&
ja(a)?NaN:b},F$b=function(){return"height".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()})},G5b=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()},mj=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})},kj=function(a){isFinite(a)&&(a=String(a));return typeof a==="string"?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN},Ifc=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 Jfc=RegExp("^((?:[-+]\\d*)?\\d{4})(?:(?:-?(\\d{2})(?:-?(\\d{2}))?)|(?:-?(\\d{3}))|(?:-?W(\\d{2})(?:-?([1-7]))?))?$"),Kfc=/^(\d{2})(?::?(\d{2})(?::?(\d{2})(\.\d+)?)?)?$/,Lfc=/Z|(?:([-+])(\d{2})(?::?(\d{2}))?)$/,Mfc=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},Nfc=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},hv=function(a,b,c,d,e,f){typeof a===
"string"?(this.years=a=="y"?b:0,this.months=a=="m"?b:0,this.days=a=="d"?b:0,this.hours=a=="h"?b:0,this.minutes=a=="n"?b:0,this.seconds=a=="s"?b:0):(this.years=a||0,this.months=b||0,this.days=c||0,this.hours=d||0,this.minutes=e||0,this.seconds=f||0)};g=hv.prototype;
g.toIsoString=function(a){var b=Math.min(this.years,this.months,this.days,this.hours,this.minutes,this.seconds),c=Math.max(this.years,this.months,this.days,this.hours,this.minutes,this.seconds);if(b<0&&c>0)return null;if(!a&&b==0&&c==0)return"PT0S";c=[];b<0&&c.push("-");c.push("P");(this.years||a)&&c.push(Math.abs(this.years)+"Y");(this.months||a)&&c.push(Math.abs(this.months)+"M");(this.days||a)&&c.push(Math.abs(this.days)+"D");if(this.hours||this.minutes||this.seconds||a)c.push("T"),(this.hours||
a)&&c.push(Math.abs(this.hours)+"H"),(this.minutes||a)&&c.push(Math.abs(this.minutes)+"M"),(this.seconds||a)&&c.push(Math.abs(this.seconds)+"S");return c.join("")};g.equals=function(a){return a.years==this.years&&a.months==this.months&&a.days==this.days&&a.hours==this.hours&&a.minutes==this.minutes&&a.seconds==this.seconds};g.clone=function(){return new hv(this.years,this.months,this.days,this.hours,this.minutes,this.seconds)};
g.isZero=function(){return this.years==0&&this.months==0&&this.days==0&&this.hours==0&&this.minutes==0&&this.seconds==0};g.add=function(a){this.years+=a.years;this.months+=a.months;this.days+=a.days;this.hours+=a.hours;this.minutes+=a.minutes;this.seconds+=a.seconds};
var jj=function(a,b,c){typeof a==="number"?(this.date=Ofc(a,b||0,c||1),Pfc(this,c||1)):La(a)?(this.date=Ofc(a.getFullYear(),a.getMonth(),a.getDate()),Pfc(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),Pfc(this,a))},Ofc=function(a,b,c){b=new Date(a,b,c);a>=0&&a<100&&b.setFullYear(b.getFullYear()-1900);return b};g=jj.prototype;g.firstDayOfWeek_=ev.FIRSTDAYOFWEEK;
g.firstWeekCutOffDay_=ev.FIRSTWEEKCUTOFFDAY;g.clone=function(){var a=new jj(this.date);a.firstDayOfWeek_=this.firstDayOfWeek_;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};g.getFullYear=function(){return this.date.getFullYear()};g.getYear=function(){return this.getFullYear()};g.getMonth=function(){return this.date.getMonth()};g.getDate=function(){return this.date.getDate()};g.getTime=function(){return this.date.getTime()};g.getDay=function(){return this.date.getDay()};
g.getUTCFullYear=function(){return this.date.getUTCFullYear()};g.getUTCMonth=function(){return this.date.getUTCMonth()};g.getUTCDate=function(){return this.date.getUTCDate()};g.getUTCDay=function(){return this.date.getDay()};g.getUTCHours=function(){return this.date.getUTCHours()};g.getUTCMinutes=function(){return this.date.getUTCMinutes()};g.getFirstDayOfWeek=function(){return this.firstDayOfWeek_};var Qfc=function(a){return Mfc(a.getFullYear(),a.getMonth())};g=jj.prototype;g.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
g.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};g.setFullYear=function(a){this.date.setFullYear(a)};g.setYear=function(a){this.setFullYear(a)};g.setMonth=function(a){this.date.setMonth(a)};g.setDate=function(a){this.date.setDate(a)};g.setTime=function(a){this.date.setTime(a)};g.setUTCFullYear=function(a){this.date.setUTCFullYear(a)};g.setUTCMonth=function(a){this.date.setUTCMonth(a)};g.setUTCDate=function(a){this.date.setUTCDate(a)};
g.add=function(a){if(a.years||a.months){var b=this.getMonth()+a.months+a.years*12,c=this.getYear()+Math.floor(b/12);b%=12;b<0&&(b+=12);var d=Math.min(Mfc(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()),Pfc(this,a.getDate()))};
g.toIsoString=function(a){var b=this.getFullYear(),c=b<0?"-":b>=1E4?"+":"";return[c+gv(Math.abs(b),c?6:4),gv(this.getMonth()+1,2),gv(this.getDate(),2)].join(a?"-":"")};g.equals=function(a){return!(!a||this.getYear()!=a.getYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};g.toString=function(){return this.toIsoString()};var Pfc=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};jj.prototype.valueOf=function(){return this.date.valueOf()};
var rl=function(a,b,c,d,e,f,h){this.date=typeof a==="number"?new Date(a,b||0,c||1,d||0,e||0,f||0,h||0):new Date(a&&a.getTime?a.getTime():Date.now())};zu(rl,jj);g=rl.prototype;g.getHours=function(){return this.date.getHours()};g.getMinutes=function(){return this.date.getMinutes()};g.getSeconds=function(){return this.date.getSeconds()};g.getMilliseconds=function(){return this.date.getMilliseconds()};g.getUTCDay=function(){return this.date.getUTCDay()};g.getUTCHours=function(){return this.date.getUTCHours()};
g.getUTCMinutes=function(){return this.date.getUTCMinutes()};g.getUTCSeconds=function(){return this.date.getUTCSeconds()};g.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};g.setHours=function(a){this.date.setHours(a)};g.setMinutes=function(a){this.date.setMinutes(a)};g.setSeconds=function(a){this.date.setSeconds(a)};g.setMilliseconds=function(a){this.date.setMilliseconds(a)};g.setUTCHours=function(a){this.date.setUTCHours(a)};g.setUTCMinutes=function(a){this.date.setUTCMinutes(a)};
g.setUTCSeconds=function(a){this.date.setUTCSeconds(a)};g.setUTCMilliseconds=function(a){this.date.setUTCMilliseconds(a)};g.add=function(a){jj.prototype.add.call(this,a);a.hours&&this.setUTCHours(this.date.getUTCHours()+a.hours);a.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+a.minutes);a.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+a.seconds)};
g.toIsoString=function(a){var b=jj.prototype.toIsoString.call(this,a);return a?b+"T"+gv(this.getHours(),2)+":"+gv(this.getMinutes(),2)+":"+gv(this.getSeconds(),2):b+"T"+gv(this.getHours(),2)+gv(this.getMinutes(),2)+gv(this.getSeconds(),2)};g.equals=function(a){return this.getTime()==a.getTime()};g.toString=function(){return this.toIsoString()};g.clone=function(){var a=new rl(this.date),b=this.getFirstDayOfWeek();a.firstDayOfWeek_=b;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};var ld=globalThis;var od=Object.getOwnPropertyDescriptor,uea=Object.defineProperty,xea=Object.getPrototypeOf,Nea=Object.create,Oea=Array.prototype.slice,hfa=md("addEventListener"),ifa=md("removeEventListener"),wd=md(""),Rfc=typeof window!=="undefined",vd=Rfc?window:void 0,rd=Rfc&&vd||globalThis,Sfc=typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope,Gea=!("nw"in rd)&&typeof rd.process!=="undefined"&&rd.process.toString()==="[object process]",Pea=!Gea&&!Sfc&&!(!Rfc||!vd.HTMLElement),Qea=typeof rd.process!==
"undefined"&&rd.process.toString()==="[object process]"&&!Sfc&&!(!Rfc||!vd.HTMLElement),sea={},Tfc=md("enable_beforeunload"),tea=function(a){if(a=a||rd.event){var b=sea[a.type];b||(b=sea[a.type]=md("ON_PROPERTY"+a.type));var c=this||a.target||rd;b=c[b];Pea&&c===vd&&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"&&rd[Tfc]&&typeof c==="string"?a.returnValue=c:c==void 0||c||a.preventDefault());
return c}},sd=md("originalInstance"),zea=!1,Aea=!1;var Iea={useG:!0},xd={},Hea={},Kea=new RegExp("^"+wd+"(\\w+)(true|false)$"),Fea=md("propagationStopped");var Sea,Tea,Uea,Vea,zd;var cfa=[].concat(p("abort animationcancel animationend animationiteration auxclick beforeinput blur cancel canplay canplaythrough change compositionstart compositionupdate compositionend cuechange click close contextmenu curechange dblclick drag dragend dragenter dragexit dragleave dragover drop durationchange emptied ended error focus focusin focusout gotpointercapture input invalid keydown keypress keyup load loadstart loadeddata loadedmetadata lostpointercapture mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup mousewheel orientationchange pause play playing pointercancel pointerdown pointerenter pointerleave pointerlockchange mozpointerlockchange webkitpointerlockerchange pointerlockerror mozpointerlockerror webkitpointerlockerror pointermove pointout pointerover pointerup progress ratechange reset resize scroll seeked seeking select selectionchange selectstart show sort stalled submit suspend timeupdate volumechange touchcancel touchmove touchstart touchend transitioncancel transitionend waiting wheel".split(" ")),
p(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"]),p(["autocomplete","autocompleteerror"]),p(["toggle"]),p("afterscriptexecute beforescriptexecute DOMContentLoaded freeze fullscreenchange mozfullscreenchange webkitfullscreenchange msfullscreenchange fullscreenerror mozfullscreenerror webkitfullscreenerror msfullscreenerror readystatechange visibilitychange resume".split(" ")),p("absolutedeviceorientation afterinput afterprint appinstalled beforeinstallprompt beforeprint beforeunload devicelight devicemotion deviceorientation deviceorientationabsolute deviceproximity hashchange languagechange message mozbeforepaint offline online paint pageshow pagehide popstate rejectionhandled storage unhandledrejection unload userproximity vrdisplayconnected vrdisplaydisconnected vrdisplaypresentchange".split(" ")),
p("beforecopy beforecut beforepaste copy cut paste dragstart loadend animationstart search transitionrun transitionstart webkitanimationend webkitanimationiteration webkitanimationstart webkittransitionend".split(" ")),p("activate afterupdate ariarequest beforeactivate beforedeactivate beforeeditfocus beforeupdate cellchange controlselect dataavailable datasetchanged datasetcomplete errorupdate filterchange layoutcomplete losecapture move moveend movestart propertychange resizeend resizestart rowenter rowexit rowsdelete rowsinserted command compassneedscalibration deactivate help mscontentzoom msmanipulationstatechanged msgesturechange msgesturedoubletap msgestureend msgesturehold msgesturestart msgesturetap msgotpointercapture msinertiastart mslostpointercapture mspointercancel mspointerdown mspointerenter mspointerhover mspointerleave mspointermove mspointerout mspointerover mspointerup pointerout mssitemodejumplistitemremoved msthumbnailclick stop storagecommit".split(" ")));var gfa=md("zoneTask");var iv=function(a,b){this.key_=a;this.value_=b},Ufc=function(a){throw Error("xa`"+a.key_);},Vfc=function(a,b){return new TypeError("ya`"+b+"`"+a.key_+"`"+a.value_+"`"+typeof a.value_)};iv.prototype.string=function(a){if(arguments.length==0)var b=Wfc(this);else{var c;b=(c=Xfc(this))!=null?c:a}return b};var Wfc=function(a){var b=Xfc(a);b===null&&Ufc(a);return b},Xfc=function(a){var b=a.value_;if(b==null)return null;if(typeof b==="string")return b;throw Vfc(a,"string");};
iv.prototype.bool=function(a){if(arguments.length==0){var b=Yfc(this);b===null&&Ufc(this)}else b=Zfc(this,a);return b};var Zfc=function(a,b){var c;return(c=Yfc(a))!=null?c:b},Yfc=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 Vfc(a,"boolean");};
iv.prototype.number=function(a){if(arguments.length==0){var b=$fc(this);b===null&&Ufc(this)}else{var c;b=(c=$fc(this))!=null?c:a}return b};var $fc=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 Vfc(a,"number");};iv.prototype.toString=function(){return Wfc(this)};
iv.prototype.array=function(a){if(arguments.length==0){var b=agc(this);b===null&&Ufc(this);return b}b=agc(this);return b==null?a:b};var agc=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 bgc(a,b)},bgc=function(a,b){var c=a.key_+"[";return Array.from(b,function(d,e){return new iv(c+e+"]",d)})};
iv.prototype.object=function(a){var b=this.value_;if(b==null)return a===void 0&&Ufc(this),a;if(typeof b==="object"&&b.constructor===Object){a={};var c=this.key_+".",d;for(d in b)a[d]=new iv(c+d,b[d]);return a}throw Vfc(this,"object");};var cgc;if(!(cgc=typeof window==="undefined")){var dgc,egc=dgc=dgc===void 0?window:dgc;egc=egc===void 0?window:egc;var fgc,ggc=egc;ggc=ggc===void 0?window:ggc;fgc=ggc.WIZ_global_data;cgc=Zfc(new iv("mXaIFf",fgc&&"mXaIFf"in fgc?fgc.mXaIFf:null),!0)}if(cgc){var jv=globalThis,hgc=jv[md("forceDuplicateZoneCheck")]===!0;if(jv.Zone&&(hgc||typeof jv.Zone.__symbol__!=="function"))throw Error("Ca");jv.Zone!=null||(jv.Zone=nea());var yd=jv.Zone;lfa();mfa();nfa();Rea();efa();jfa();kfa()};var ofa=Bd({"\u0275prov":Bd}),rfa=Bd({"\u0275inj":Bd});var Ed=null,ufa=!1,Jd=1,Qd=Symbol("Da"),kv={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 lv=Symbol("Ea"),mv=Symbol("Fa"),Pd=Symbol("Ga"),Afa=Object.assign({},kv,{value:lv,dirty:!0,error:null,equal:tfa,kind:"computed",producerMustRecompute:function(a){return a.value===lv||a.value===mv},producerRecomputeValue:function(a){if(a.value===mv)throw Error("aa");var b=a.value;a.value=mv;var c=Ld(a),d=!1;try{var e=a.computation();Fd(null);d=b!==lv&&b!==Pd&&e!==Pd&&a.equal(b,e)}catch(f){e=Pd,a.error=f}finally{Md(a,c)}d?a.value=b:(a.value=e,a.version++)}});var Dfa=function(){throw Error();};var Cfa=Object.assign({},kv,{equal:tfa,value:void 0,kind:"signal"});var Ffa=Object.assign({},kv,{value:lv,dirty:!0,error:null,equal:tfa,kind:"linkedSignal",producerMustRecompute:function(a){return a.value===lv||a.value===mv},producerRecomputeValue:function(a){if(a.value===mv)throw Error("aa");var b=a.value;a.value=mv;var c=Ld(a);try{var d=a.source();var e=a.computation(d,b===lv||b===Pd?void 0:{source:a.sourceValue,value:b});a.sourceValue=d}catch(f){e=Pd,a.error=f}finally{Md(a,c)}b!==lv&&e!==Pd&&a.equal(b,e)?a.value=b:(a.value=e,a.version++)}});Object.assign({},kv,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(a){a.schedule!==null&&a.schedule(a.ref)},hasRun:!1,cleanupFn:function(){}});var le=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=Cd({token:this,providedIn:b.providedIn||"root",factory:b.factory}))};le.prototype.toString=function(){return"InjectionToken "+this._desc};nd.Object.defineProperties(le.prototype,{multi:{configurable:!0,enumerable:!0,get:function(){return this}}});var igc=new le("",{providedIn:"root",factory:function(){return!1}}),jgc=new le("",{providedIn:"root",factory:function(){return 4E3}});var Vd=function(a,b){b=Error.call(this,"NG0"+Math.abs(a)+(b?": "+b:""));this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a};Y(Vd,Error);var he=Bd({"\u0275cmp":Bd}),zja=Bd({"\u0275dir":Bd}),Tfa=Bd({"\u0275pipe":Bd}),kgc=Bd({"\u0275mod":Bd}),Vfa=Bd({"\u0275fac":Bd}),Me=Bd({__NG_ELEMENT_ID__:Bd}),lgc=Bd({__NG_ENV_ID__:Bd});var Jfa=Bd({ngErrorCode:Bd}),Kfa=Bd({ngErrorMessage:Bd});Bd({ngTokenPath:Bd});var Wd;var Yd=void 0;var Nfa=Symbol("Ha");var Qfa=Bd({__forward_ref__:Bd});var ef=globalThis;var nv={},rga=function(a){this.injector=a};rga.prototype.retrieve=function(a,b){b=ce(b)||0;try{return this.injector.get(a,b&8?null:nv,b)}catch(c){if(Ofa(c))return c;throw c;}};var je=new le("");var mgc=new le("",-1);var ega=new le("");var iga=function(){};iga.prototype.get=function(a,b){b=b===void 0?nv:b;if(b===nv)throw a=Lfa(-201),a.name="\u0275NotFound",a;return b};var re={},ie=[];var fga=Bd({provide:String,useValue:Bd});var Wna=new le("");var nga={},ngc={},hga=void 0,pf=function(){},ne=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;qga(a,function(f){return ogc(e,f)});this.records.set(mgc,me(void 0,this));d.has("environment")&&this.records.set(pf,me(void 0,this));a=this.records.get(Wna);a!=null&&typeof a.value==="string"&&this.scopes.add(a.value);this.injectorDefTypes=new Set(this.get(ega,ie,{self:!0}))};Y(ne,pf);
g=ne.prototype;g.retrieve=function(a,b){b=ce(b)||0;try{return this.get(a,nv,b)}catch(c){if(Ofa(c))return c;throw c;}};g.destroy=function(){pga(this);this._destroyed=!0;var a=Fd(null);try{for(var b=l(this._ngOnDestroyHooks),c=b.next();!c.done;c=b.next())c.value.ngOnDestroy();var d=this._onDestroyHooks;this._onDestroyHooks=[];for(var e=l(d),f=e.next();!f.done;f=e.next()){var h=f.value;h()}}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Fd(a)}};
g.onDestroy=function(a){var b=this;pga(this);this._onDestroyHooks.push(a);return function(){var c=b._onDestroyHooks.indexOf(a);c!==-1&&b._onDestroyHooks.splice(c,1)}};
g.get=function(a,b,c){b=b===void 0?nv:b;pga(this);if(a.hasOwnProperty(lgc))return a[lgc](this);c=ce(c);var d=Zd(this),e=Xd();try{if(!(c&4)){var f=this.records.get(a);if(f===void 0){var h=(typeof a==="function"||typeof a==="object"&&a.ngMetadataName==="InjectionToken")&&pfa(a),k;if(k=h)if(h.providedIn){var q=ae(h.providedIn);k=typeof q==="string"?q==="any"||this.scopes.has(q):this.injectorDefTypes.has(q)}else k=!1;k?f=me(lga(a),nga):f=null;this.records.set(a,f)}if(f!=null){a:{b=f;var v=Fd(null);try{if(b.value===
ngc)throw Td(a),Lfa(-200);b.value===nga&&(b.value=ngc,b.value=b.factory(void 0,c));var A;if(A=typeof b.value==="object"&&b.value){var E=b.value;A=E!==null&&typeof E==="object"&&typeof E.ngOnDestroy==="function"}A&&this._ngOnDestroyHooks.add(b.value);var H=b.value;break a}finally{Fd(v)}H=void 0}return H}}var L=c&2?jga():this.parent;b=c&8&&b===nv?null:b;return L.get(a,b)}catch(S){var O=S[Jfa];if(O===-200||O===-201)throw new Vd(O,null);throw S;}finally{Xd(e),Zd(d)}};
g.resolveInjectorInitializers=function(){var a=Fd(null),b=Zd(this),c=Xd();try{for(var d=this.get(je,ie,{self:!0}),e=l(d),f=e.next();!f.done;f=e.next()){var h=f.value;h()}}finally{Zd(b),Xd(c),Fd(a)}};g.toString=function(){for(var a=[],b=l(this.records.keys()),c=b.next();!c.done;c=b.next())a.push(Td(c.value));return"R3Injector["+a.join(", ")+"]"};
var ogc=function(a,b){b=ae(b);var c=ke(b)?b:ae(b&&b.provide),d=oga(b);if(!ke(b)&&b.multi===!0){var e=a.records.get(c);e||(e=me(void 0,nga,!0),e.factory=function(){return Sfa(e.multi)},a.records.set(c,e));c=b;e.multi.push(b)}a.records.set(c,d)};nd.Object.defineProperties(ne.prototype,{destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}}});var vga=function(a,b,c){this.previousValue=a;this.currentValue=b;this.firstChange=c};var ov=function(){var a=function(){return uga};a.ngInherit=!0;return a}();var pgc=[],Je=function(a,b,c){b=b===void 0?null:b;for(var d=0;d<pgc.length;d++)(0,pgc[d])(a,b,c)};var ze=Jga(null),mf=null,Dga=!1,kf=!0,qgc={elements:void 0};var Pe=function(a,b){var c=of;this.factory=a;this.name=null;this.resolving=!1;this.canSeeViewProviders=b;this.injectImpl=c};var Sga=!0,Uga=0,Ne={},Qe=function(a,b){this._tNode=a;this._lView=b};Qe.prototype.get=function(a,b,c){return dha(this._tNode,this._lView,a,ce(c),b)};var pv=function(a){var b=this;this.attributeName=a;this.__NG_ELEMENT_ID__=function(){return aha(b.attributeName)}};pv.prototype.toString=function(){return"HostAttributeToken "+this.attributeName};var rgc=new le("");rgc.__NG_ELEMENT_ID__=function(a){var b=Ae();if(b===null)throw new Vd(204,!1);if(b.type&2)return b.value;if(a&8)return null;throw new Vd(204,!1);};var sgc=de(iha("Inject",function(a){return{token:a}}),-1),qv=de(iha("Optional"),8);de(iha("Self"),2);var rv=de(iha("SkipSelf"),4);de(iha("Host"),1);Bd({provide:String,useValue:Bd});var Cg=function(){},Yh=function(a){if(Array.isArray(a))return kha({name:""},void 0,a,"");var b,c=(b=a.name)!=null?b:"";return kha({name:c},a.parent,a.providers,c)},tgc=new iga;Cg.\u0275prov=Cd({token:Cg,providedIn:"any",factory:function(){return be(mgc)}});Cg.__NG_ELEMENT_ID__=-1;var ugc=function(){};var sv=function(){},NDa=function(){};var rf=function(){},vgc=new le("",{providedIn:"root",factory:function(){return!1}});new le("",{providedIn:"root",factory:function(){return!1}});var Fna=new le(""),Gna=new le("");/*

 Copyright 2024 Google, Inc
 SPDX-License-Identifier: MIT
*/
Symbol.for("propagationStopped");var pha=void 0;var wgc=new le("",{providedIn:"root",factory:function(){return"ng"}}),Xna=new le(""),xgc=new le("",{providedIn:"platform",factory:function(){return"unknown"}});new le("");
var Oi=new le(""),ygc=new le("",{providedIn:"root",factory:function(){var a,b;return((a=qha().body)==null?void 0:(b=a.querySelector("[ngCspNonce]"))==null?void 0:b.getAttribute("ngCspNonce"))||null}}),zgc={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1};new le("",{providedIn:"root",factory:function(){return zgc}});new le("",{providedIn:"root",factory:function(){return{}}});new le("");var zia=new le("",{providedIn:"root",factory:function(){return!1}});new le("");new le("");new le("");new le("",{providedIn:"root",factory:function(){return new Map}});var Agc=new le("");new le("");var rha=new Map,Rha=0;var Bgc=function(){},Cgc=function(){};var Te=function(a){this.nativeElement=a};Te.__NG_ELEMENT_ID__=function(){return Ue(Ae(),t())};new le("",{providedIn:"root",factory:function(){return!0}});var qf=function(){},Ji=function(){this.destroyNode=null};Ji.__NG_ELEMENT_ID__=function(){var a=t(),b=ue(Ae().index,a);return(pe(b)?b:a)[11]};var Dgc={};var tja=function(a,b){this.injector=a;this.parentInjector=b};tja.prototype.get=function(a,b,c){var d=this.injector.get(a,Dgc,c);return d!==Dgc||b===Dgc?d:this.parentInjector.get(a,b,c)};var vha=/^>|^->|\x3c!--|--\x3e|--!>|<!-$/g,wha=/(<|>)/g;var We={};var ui=new le("");var Gg=function(){};Gg.__NG_ELEMENT_ID__=Eha;Gg.__NG_ENV_ID__=function(a){return a};var Ze=function(a){this._lView=a};Y(Ze,Gg);Ze.__NG_ENV_ID__=Gg.__NG_ENV_ID__;Ze.__NG_ELEMENT_ID__=Gg.__NG_ELEMENT_ID__;Ze.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)}}};nd.Object.defineProperties(Ze.prototype,{destroyed:{configurable:!0,enumerable:!0,get:function(){return(this._lView[2]&256)===256}}});var Th=function(){this._console=console};Th.prototype.handleError=function(a){this._console.error("ERROR",a)};var lf=new le("",{providedIn:"root",factory:function(){var a=r(pf),b;return function(c){a.destroyed&&!b?setTimeout(function(){throw c;}):(b!=null||(b=a.get(Th)),b.handleError(c))}}}),Egc={provide:je,useValue:function(){return void r(Th)},multi:!0};
new le("",{providedIn:"root",factory:function(){var a=r(ui).defaultView;if(a){var b=r(lf),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();r(Gg).onDestroy(function(){a.removeEventListener("error",d);a.removeEventListener("unhandledrejection",c)})}}});var bf=function(a){this.changingThisBreaksApplicationSecurity=a};bf.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss)"};var Fgc=function(){bf.apply(this,arguments)};Y(Fgc,bf);Fgc.prototype.getTypeName=function(){return"HTML"};var Ggc=function(){bf.apply(this,arguments)};Y(Ggc,bf);Ggc.prototype.getTypeName=function(){return"URL"};
var Hgc=function(){bf.apply(this,arguments)};Y(Hgc,bf);Hgc.prototype.getTypeName=function(){return"ResourceURL"};var Wha;var hia=function(a){this.inertDocumentHelper=a};hia.prototype.getInertBodyElement=function(a){a="<body><remove></remove>"+a;try{var b=(new window.DOMParser).parseFromString(Yha(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 gia=function(a){this.defaultDoc=a;this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")};
gia.prototype.getInertBodyElement=function(a){var b=this.inertDocument.createElement("template");b.innerHTML=Yha(a);return b};var Zha=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Igc=ff("area,br,col,hr,img,wbr"),Jgc=ff("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Kgc=ff("rp,rt"),Lgc=aia(Kgc,Jgc),Mgc=aia(Jgc,ff("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")),Ngc=aia(Kgc,ff("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")),
jia=aia(Igc,Mgc,Ngc,Lgc),lia=ff("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ogc=ff("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"),
Pgc=ff("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"),
kia=aia(lia,Ogc,Pgc),mia=ff("script,style,template"),iia=function(){this.buf=[]};iia.prototype.endElement=function(a){a=bia(a).toLowerCase();jia.hasOwnProperty(a)&&!Igc.hasOwnProperty(a)&&(this.buf.push("</"),this.buf.push(a),this.buf.push(">"))};var cia=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,dia=/([^#-~ |!])/g,fia;var Qgc={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 oia;var yja=Symbol("La");new le("");var ija=[],jja=Object.assign({},kv,{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:function(a){we(a.lView)},consumerOnSignalRead:function(){this.lView[24]=this}}),kja=Object.assign({},kv,{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:function(a){for(a=xe(a.lView);a&&a[1].type===2;)a=xe(a);a&&xga(a)},consumerOnSignalRead:function(){this.lView[24]=this}});var Oh=function(a,b){this._lView=a;this._cdRefInjectingView=b;this._appRef=null;this._attachedToViewContainer=!1};g=Oh.prototype;g.destroy=function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var a=this._lView[3];if(qe(a)){var b=a[8],c=b?b.indexOf(this):-1;c>-1&&(pja(a,c),Xfa(b,c))}this._attachedToViewContainer=!1}Kha(this._lView[1],this._lView)};g.onDestroy=function(a){Aga(this._lView,a)};
g.markForCheck=function(){Dha(this._cdRefInjectingView||this._lView,4)};g.detach=function(){this._lView[2]&=-129};g.detectChanges=function(){this._lView[2]|=1024;gja(this._lView)};
nd.Object.defineProperties(Oh.prototype,{rootNodes:{configurable:!0,enumerable:!0,get:function(){var a=this._lView,b=a[1];return cja(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 vja=function(){};vja.\u0275prov=Cd({token:vja,providedIn:"root",factory:function(){return null}});var Rgc=function(a){this.ngModule=a};Y(Rgc,ugc);var Sgc=function(a,b){return new bi(b[he]||null,a.ngModule)},bi=function(a,b){this.componentDef=a;this.ngModule=b;this.cachedOutputs=this.cachedInputs=null;this.componentType=a.type;this.selector=a.selectors.map(oha).join(",");var c;this.ngContentSelectors=(c=a.ngContentSelectors)!=null?c:[];this.isBoundToModule=!!b};Y(bi,Cgc);
bi.prototype.create=function(a,b,c,d,e,f){Je(22);var h=Fd(null);try{var k=this.componentDef,q=Bja(c,k,f,e),v=uja(k,d||this.ngModule,a),A=wja(v),E=A.rendererFactory.createRenderer(null,k),H=c?Aia(E,c,k.encapsulation,v):xja(k,E),L=(f==null?void 0:f.some(Cja))||(e==null?void 0:e.some(function(aa){return typeof aa!=="function"&&aa.bindings.some(Cja)})),O=Sha(null,q,null,512|Tha(k),null,null,A,E,v,null,null);O[26]=H;Iga(O);a=null;try{var S=aja(26,O,2,"#host",function(){return q.directiveRegistry},0);H&&
(yha(E,H,S),Se(H,O));xia(q,O,S);Ria(q,S,O);bja(q,S);b!==void 0&&Dja(S,this.ngContentSelectors,b);a=ue(S.index,O);O[8]=a[8];Tia(q,O,null)}catch(aa){throw a!==null&&rha.delete(a[19]),rha.delete(O[19]),aa;}finally{Je(23),Lga()}return new tv(this.componentType,O,!!L)}finally{Fd(h)}};
nd.Object.defineProperties(bi.prototype,{inputs:{configurable:!0,enumerable:!0,get:function(){this.cachedInputs!=null||(this.cachedInputs=rja(this.componentDef.inputs));return this.cachedInputs}},outputs:{configurable:!0,enumerable:!0,get:function(){this.cachedOutputs!=null||(this.cachedOutputs=sja(this.componentDef.outputs));return this.cachedOutputs}}});
var tv=function(a,b,c){this._rootLView=b;this._hasInputBindings=c;this.previousInputValues=null;this._tNode=b[1].data[26];this.location=Ue(this._tNode,b);this.instance=ue(this._tNode.index,b)[8];this.hostView=this.changeDetectorRef=new Oh(b,void 0);this.componentType=a};Y(tv,Bgc);
tv.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;jf(c,d[1],d,a,b);this.previousInputValues.set(a,b);a=ue(c.index,d);Dha(a,1)}};tv.prototype.destroy=function(){this.hostView.destroy()};tv.prototype.onDestroy=function(a){this.hostView.onDestroy(a)};
nd.Object.defineProperties(tv.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return new Qe(this._tNode,this._rootLView)}}});var sf=function(a,b,c,d){d=d===void 0?!0:d;this.ngModuleType=a;this._parent=b;this._bootstrapComponents=[];this.destroyCbs=[];this.componentFactoryResolver=new Rgc(this);var e=(a[kgc]||null).bootstrap;this._bootstrapComponents=e instanceof Function?e():e;this._r3Injector=jha(a,b,[{provide:sv,useValue:this},{provide:ugc,useValue:this.componentFactoryResolver}].concat(p(c)),Td(a),new Set(["environment"]));d&&this.resolveInjectorInitializers()};Y(sf,sv);
sf.prototype.resolveInjectorInitializers=function(){this._r3Injector.resolveInjectorInitializers();this.instance=this._r3Injector.get(this.ngModuleType)};sf.prototype.destroy=function(){var a=this._r3Injector;!a.destroyed&&a.destroy();this.destroyCbs.forEach(function(b){return b()});this.destroyCbs=null};sf.prototype.onDestroy=function(a){this.destroyCbs.push(a)};nd.Object.defineProperties(sf.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return this._r3Injector}}});
var ODa=function(a){this.moduleType=a};Y(ODa,NDa);ODa.prototype.create=function(a){return new sf(this.moduleType,a,[])};var Fja=function(a){this.componentFactoryResolver=new Rgc(this);this.instance=null;var b=new ne([].concat(p(a.providers),[{provide:sv,useValue:this},{provide:ugc,useValue:this.componentFactoryResolver}]),a.parent||jga(),a.debugName,new Set(["environment"]));this.injector=b;a.runEnvironmentInitializers&&b.resolveInjectorInitializers()};Y(Fja,sv);Fja.prototype.destroy=function(){this.injector.destroy()};
Fja.prototype.onDestroy=function(a){this.injector.onDestroy(a)};var Jja=function(a){this._injector=a;this.cachedInjectors=new Map};Jja.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()}};Jja.\u0275prov=Cd({token:Jja,providedIn:"environment",factory:function(){return new Jja(be(pf))}});var Hja=new Set;var Qja=new le(""),Vh=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=r(Qja,{optional:!0}))!=null?b:[];this.injector=r(Cg)},Kna=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=oe(a.injector,d.value),Oja(e.initResult)?b.push(e.initResult):Pja(e.initResult)&&(d=new Promise(function(f){return function(h,k){f.initResult.subscribe({complete:h,
error:k})}}(e)),b.push(d));Promise.all(b).then(function(){a.done=!0;a.resolve()}).catch(function(f){a.reject(f)});b.length===0&&(a.done=!0,a.resolve());a.initialized=!0}};Vh.\u0275fac=function(a){return new (a||Vh)};Vh.\u0275prov=Cd({token:Vh,factory:Vh.\u0275fac,providedIn:"root"});var Fg=new le("");var uv=function(){};uv.prototype.log=function(a){console.log(a)};uv.prototype.warn=function(a){console.warn(a)};uv.\u0275fac=function(a){return new (a||uv)};uv.\u0275prov=Cd({token:uv,factory:uv.\u0275fac,providedIn:"platform"});var Tgc=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"};Y(Tgc,Error);var yf=function(a){this.initialTeardown=a;this.closed=!1;this._teardowns=this._parentage=null};g=yf.prototype;
g.unsubscribe=function(){if(!this.closed){this.closed=!0;var a=this._parentage;if(Array.isArray(a))for(var b=l(a),c=b.next();!c.done;c=b.next())c.value.remove(this);else a==null||a.remove(this);b=this.initialTeardown;if(xf(b))try{b()}catch(f){var d=f instanceof Tgc?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{xf(c)?c():c.unsubscribe()}catch(f){c=void 0,d=(c=d)!=null?c:[],f instanceof Tgc?d=[].concat(p(d),p(f.errors)):d.push(f)}}if(d)throw new Tgc(d);
}};g.add=function(a){if(a&&a!==this)if(this.closed)xf(a)?a():a.unsubscribe();else{if(a instanceof yf){if(a.closed||a._hasParent(this))return;a._addParent(this)}var b;(this._teardowns=(b=this._teardowns)!=null?b:[]).push(a)}};g._hasParent=function(a){var b=this._parentage;return b===a||Array.isArray(b)&&b.includes(a)};g._addParent=function(a){var b=this._parentage;this._parentage=Array.isArray(b)?(b.push(a),b):b?[b,a]:a};
g._removeParent=function(a){var b=this._parentage;b===a?this._parentage=null:Array.isArray(b)&&Sja(b,a)};g.remove=function(a){var b=this._teardowns;b&&Sja(b,a);a instanceof yf&&a._removeParent(this)};var Ugc=new yf;Ugc.closed=!0;yf.EMPTY=Ugc;var Uja=function(){setTimeout.apply(null,p(ge.apply(0,arguments)))};var vv=function(a){yf.call(this);this.isStopped=!1;this.destination=a instanceof vv?a:new Vgc(!a||xf(a)?{next:a!=null?a:void 0}:a);Tja(a)&&a.add(this)};Y(vv,yf);vv.EMPTY=yf.EMPTY;vv.create=function(a,b,c){return new Pf(a,b,c)};g=vv.prototype;g.next=function(a){this.isStopped||this._next(a)};g.error=function(a){this.isStopped||(this.isStopped=!0,this._error(a))};g.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())};g.unsubscribe=function(){this.closed||(this.isStopped=!0,yf.prototype.unsubscribe.call(this))};
g._next=function(a){this.destination.next(a)};g._error=function(a){this.destination.error(a);this.unsubscribe()};g._complete=function(){this.destination.complete();this.unsubscribe()};var Vgc=function(a){this.partialObserver=a};Vgc.prototype.next=function(a){var b=this.partialObserver;if(b.next)try{b.next(a)}catch(c){Vja(c)}};Vgc.prototype.error=function(a){var b=this.partialObserver;if(b.error)try{b.error(a)}catch(c){Vja(c)}else Vja(a)};
Vgc.prototype.complete=function(){var a=this.partialObserver;if(a.complete)try{a.complete()}catch(b){Vja(b)}};var Pf=function(a,b,c){vv.call(this);var d;xf(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 Vgc(d)};Y(Pf,vv);Pf.EMPTY=vv.EMPTY;Pf.create=vv.create;var cka=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Cf=function(a){a&&(this._subscribe=a)};g=Cf.prototype;g.lift=function(a){var b=new Cf;b.source=this;b.operator=a;return b};g.subscribe=function(a,b,c){a=a&&a instanceof vv||a&&xf(a.next)&&xf(a.error)&&xf(a.complete)&&Tja(a)?a:new Pf(a,b,c);b=this.operator;c=this.source;a.add(b?b.call(a,c):c?this._subscribe(a):this._trySubscribe(a));return a};g._trySubscribe=function(a){try{return this._subscribe(a)}catch(b){a.error(b)}};
g.forEach=function(a,b){var c=this;b=Xja(b);return new b(function(d,e){var f=c.subscribe(function(h){try{a(h)}catch(k){e(k),f==null||f.unsubscribe()}},e,d)})};g._subscribe=function(a){var b;return(b=this.source)==null?void 0:b.subscribe(a)};Cf.prototype[cka]=function(){return this};Cf.prototype.pipe=function(){var a=ge.apply(0,arguments);return a.length?Wja(a)(this):this};Cf.create=function(a){return new Cf(a)};var Wgc=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"};Y(Wgc,Error);var tg=function(){this.observers=[];this.hasError=this.isStopped=this.closed=!1;this.thrownError=null};Y(tg,Cf);g=tg.prototype;g.lift=function(a){var b=new wv(this,this);b.operator=a;return b};g._throwIfClosed=function(){if(this.closed)throw new Wgc;};g.next=function(a){this._throwIfClosed();if(!this.isStopped)for(var b=l(this.observers.slice()),c=b.next();!c.done;c=b.next())c.value.next(a)};
g.error=function(a){this._throwIfClosed();if(!this.isStopped){this.hasError=this.isStopped=!0;this.thrownError=a;for(var b=this.observers;b.length;)b.shift().error(a)}};g.complete=function(){this._throwIfClosed();if(!this.isStopped){this.isStopped=!0;for(var a=this.observers;a.length;)a.shift().complete()}};g.unsubscribe=function(){this.isStopped=this.closed=!0;this.observers=null};g._trySubscribe=function(a){this._throwIfClosed();return Cf.prototype._trySubscribe.call(this,a)};
g._subscribe=function(a){this._throwIfClosed();this._checkFinalizedStatuses(a);return this._innerSubscribe(a)};g._innerSubscribe=function(a){var b=this,c=this.isStopped,d=this.observers;return this.hasError||c?yf.EMPTY:(d.push(a),new yf(function(){return Sja(b.observers,a)}))};g._checkFinalizedStatuses=function(a){var b=this.thrownError,c=this.isStopped;this.hasError?a.error(b):c&&a.complete()};var xv=function(a){var b=new Cf;b.source=a;return b};
nd.Object.defineProperties(tg.prototype,{observed:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.observers)==null?void 0:a.length)>0}}});tg.create=function(a,b){return new wv(a,b)};var wv=function(a,b){tg.call(this);this.destination=a;this.source=b};Y(wv,tg);wv.create=tg.create;wv.prototype.next=function(a){var b,c;(b=this.destination)==null||(c=b.next)==null||c.call(b,a)};wv.prototype.error=function(a){var b,c;(b=this.destination)==null||(c=b.error)==null||c.call(b,a)};
wv.prototype.complete=function(){var a,b;(a=this.destination)==null||(b=a.complete)==null||b.call(a)};wv.prototype._subscribe=function(a){var b,c;return(c=(b=this.source)==null?void 0:b.subscribe(a))!=null?c:yf.EMPTY};var Kn=function(a){tg.call(this);this._value=a};Y(Kn,tg);Kn.create=tg.create;Kn.prototype._subscribe=function(a){var b=tg.prototype._subscribe.call(this,a);!b.closed&&a.next(this._value);return b};Kn.prototype.getValue=function(){var a=this.thrownError,b=this._value;if(this.hasError)throw a;this._throwIfClosed();return b};Kn.prototype.next=function(a){tg.prototype.next.call(this,this._value=a)};nd.Object.defineProperties(Kn.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var cg=new Cf(function(a){return a.complete()});var aka=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var gka=function(a){return a&&typeof a.length==="number"&&typeof a!=="function"};var Xgc={now:function(){return(Xgc.delegate||Date).now()},delegate:void 0};var sg=function(a,b,c){a=a===void 0?Infinity:a;b=b===void 0?Infinity:b;c=c===void 0?Xgc:c;tg.call(this);this.bufferSize=a;this.windowTime=b;this.timestampProvider=c;this.buffer=[];this.infiniteTimeWindow=b===Infinity;this.bufferSize=Math.max(1,a);this.windowTime=Math.max(1,b)};Y(sg,tg);sg.create=tg.create;
sg.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));Ygc(this);tg.prototype.next.call(this,a)};sg.prototype._subscribe=function(a){this._throwIfClosed();Ygc(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 Ygc=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 $gc=function(a,b){b=b===void 0?Zgc:b;this.schedulerActionCtor=a;this.now=b};$gc.prototype.schedule=function(a,b,c){b=b===void 0?0:b;return(new this.schedulerActionCtor(this,a)).schedule(c,b)};var Zgc=Xgc.now;var Qf=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"};Y(Qf,Error);var Tf=function(a,b,c,d,e){vv.call(this,a);this.onUnsubscribe=e;b&&(this._next=function(f){try{b(f)}catch(h){this.destination.error(h)}});c&&(this._error=function(f){try{c(f)}catch(h){this.destination.error(h)}this.unsubscribe()});d&&(this._complete=function(){try{d()}catch(f){this.destination.error(f)}this.unsubscribe()})};Y(Tf,vv);Tf.EMPTY=vv.EMPTY;Tf.create=vv.create;Tf.prototype.unsubscribe=function(){var a;this.closed||(a=this.onUnsubscribe)!=null&&a.call(this);vv.prototype.unsubscribe.call(this)};var rg=function(a,b){this.source=a;this.subjectFactory=b;this._subject=null;this._refCount=0;this._connection=null};Y(rg,Cf);rg.create=Cf.create;rg.prototype._subscribe=function(a){return ahc(this).subscribe(a)};var ahc=function(a){var b=a._subject;if(!b||b.isStopped)a._subject=a.subjectFactory();return a._subject};rg.prototype._teardown=function(){this._refCount=0;var a=this._connection;this._subject=this._connection=null;a==null||a.unsubscribe()};
rg.prototype.connect=function(){var a=this,b=this._connection;if(!b){b=this._connection=new yf;var c=ahc(this);b.add(this.source.subscribe(new Tf(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=yf.EMPTY)}return b};rg.prototype.refCount=function(){return rka()(this)};var ska=Array.isArray;var uka=Array.isArray,bhc=Object,vka=bhc.getPrototypeOf,wka=bhc.prototype,xka=bhc.keys;var Bka=function(a,b,c){vv.call(this,a);this._next=b;this.shouldComplete=c};Y(Bka,vv);Bka.EMPTY=vv.EMPTY;Bka.create=vv.create;Bka.prototype._complete=function(){this.shouldComplete()?vv.prototype._complete.call(this):this.unsubscribe()};var chc=function(){return requestAnimationFrame.apply(null,p(ge.apply(0,arguments)))},dhc=function(){cancelAnimationFrame.apply(null,p(ge.apply(0,arguments)))};var Fka=["addListener","removeListener"],Eka=["addEventListener","removeEventListener"],Hka=["on","off"];var yv=function(){yf.call(this)};Y(yv,yf);yv.EMPTY=yf.EMPTY;yv.prototype.schedule=function(){return this};var ehc=function(a,b){return setInterval.apply(null,[a,b].concat(p(ge.apply(2,arguments))))};var zv=function(a,b){yf.call(this);this.scheduler=a;this.work=b;this.pending=!1};Y(zv,yv);zv.EMPTY=yv.EMPTY;g=zv.prototype;g.schedule=function(a,b){b=b===void 0?0:b;if(this.closed)return this;this.state=a;a=this.id;var c=this.scheduler;a!=null&&(this.id=this.recycleAsyncId(c,a,b));this.pending=!0;this.delay=b;this.id=this.id||this.requestAsyncId(c,this.id,b);return this};g.requestAsyncId=function(a,b,c){c=c===void 0?0:c;return ehc(a.flush.bind(a,this),c)};
g.recycleAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!=null&&this.delay===c&&this.pending===!1)return b;clearInterval(b)};g.execute=function(a,b){if(this.closed)return Error("Sa");this.pending=!1;if(a=this._execute(a,b))return a;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))};g._execute=function(a){var b=!1;try{this.work(a)}catch(d){b=!0;var c=!!d&&d||Error(d)}if(b)return this.unsubscribe(),c};
g.unsubscribe=function(){if(!this.closed){var a=this.id,b=this.scheduler,c=b.actions;this.work=this.state=this.scheduler=null;this.pending=!1;Sja(c,this);a!=null&&(this.id=this.recycleAsyncId(b,a,null));this.delay=null;yv.prototype.unsubscribe.call(this)}};var Av=function(a,b){b=b===void 0?Zgc:b;$gc.call(this,a,b);this.actions=[];this.active=!1;this.scheduled=void 0};Y(Av,$gc);Av.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 ag=new Av(zv);var Bv=new Cf(zf);var Lka=Array.isArray;var Pka=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"};Y(Pka,Error);var fhc=function(a,b){zv.call(this,a,b);this.scheduler=a;this.work=b};Y(fhc,zv);fhc.EMPTY=zv.EMPTY;fhc.prototype.requestAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!==null&&c>0)return zv.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=chc(function(){return a.flush(void 0)}))};
fhc.prototype.recycleAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!=null&&c>0||c==null&&this.delay>0)return zv.prototype.recycleAsyncId.call(this,a,b,c);a.actions.length===0&&(dhc(b),a.scheduled=void 0)};var ghc=function(){Av.apply(this,arguments)};Y(ghc,Av);ghc.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 hhc=new ghc(fhc);var ihc=1,jhc,Qka={},khc=function(a){var b=ihc++;Qka[b]=!0;jhc||(jhc=Promise.resolve());jhc.then(function(){return Rka(b)&&a()});return b};var lhc=function(){return khc.apply(null,p(ge.apply(0,arguments)))};var mhc=function(a,b){zv.call(this,a,b);this.scheduler=a;this.work=b};Y(mhc,zv);mhc.EMPTY=zv.EMPTY;mhc.prototype.requestAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!==null&&c>0)return zv.prototype.requestAsyncId.call(this,a,b,c);a.actions.push(this);return a.scheduled||(a.scheduled=lhc(a.flush.bind(a,void 0)))};
mhc.prototype.recycleAsyncId=function(a,b,c){c=c===void 0?0:c;if(c!=null&&c>0||c==null&&this.delay>0)return zv.prototype.recycleAsyncId.call(this,a,b,c);a.actions.length===0&&(Rka(b),a.scheduled=void 0)};var nhc=function(){Av.apply(this,arguments)};Y(nhc,Av);nhc.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 kp=new nhc(mhc);var Uh=function(){this.taskId=0;this.pendingTasks=new Set;this.destroyed=!1;this.pendingTask=new Kn(!1)};Uh.prototype.add=function(){this.hasPendingTasks||this.destroyed||this.pendingTask.next(!0);var a=this.taskId++;this.pendingTasks.add(a);return a};Uh.prototype.has=function(a){return this.pendingTasks.has(a)};Uh.prototype.remove=function(a){this.pendingTasks.delete(a);this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)};
Uh.prototype.ngOnDestroy=function(){this.pendingTasks.clear();this.hasPendingTasks&&this.pendingTask.next(!1);this.destroyed=!0;this.pendingTask.unsubscribe()};nd.Object.defineProperties(Uh.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 Cf(function(a){a.next(!1);a.complete()}):this.pendingTask}}});
Uh.\u0275prov=Cd({token:Uh,providedIn:"root",factory:function(){return new Uh}});var Cv=function(){this.internalPendingTasks=r(Uh);this.scheduler=r(rf);this.errorHandler=r(lf)};Cv.prototype.add=function(){var a=this,b=this.internalPendingTasks.add();return function(){a.internalPendingTasks.has(b)&&(a.scheduler.notify(11),a.internalPendingTasks.remove(b))}};Cv.prototype.run=function(a){var b=this.add();a().catch(this.errorHandler).finally(b)};Cv.\u0275prov=Cd({token:Cv,providedIn:"root",factory:function(){return new Cv}});var nq=function(a){a=a===void 0?!1:a;tg.call(this);this.pendingTasks=this.destroyRef=void 0;this.__isAsync=a;if(Wd!==void 0||Yd!=null){var b;this.destroyRef=(b=r(Gg,{optional:!0}))!=null?b:void 0;var c;this.pendingTasks=(c=r(Uh,{optional:!0}))!=null?c:void 0}};Y(nq,tg);nq.create=tg.create;nq.prototype.emit=function(a){var b=Fd(null);try{tg.prototype.next.call(this,a)}finally{Fd(b)}};
nq.prototype.subscribe=function(a,b,c){var d=a;b=b||function(){return null};if(a&&typeof a==="object"){var e;d=(e=a.next)==null?void 0:e.bind(a);var f;b=(f=a.error)==null?void 0:f.bind(a);var h;c=(h=a.complete)==null?void 0:h.bind(a)}this.__isAsync&&(b=ohc(this,b),d&&(d=ohc(this,d)),c&&(c=ohc(this,c)));d=tg.prototype.subscribe.call(this,{next:d,error:b,complete:c});a instanceof yf&&a.add(d);return d};
var ohc=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 Zka=0,Ph=function(a){this.hasPendingMicrotasks=this.hasPendingMacrotasks=!1;this.isStable=!0;this.onUnstable=new nq(!1);this.onMicrotaskEmpty=new nq(!1);this.onStable=new nq(!1);this.onError=new nq(!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 Vd(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;bla(this)},phc=function(){return typeof Zone!=="undefined"&&Zone.current.get("isAngularZone")===
!0},qhc=function(){if(phc())throw new Vd(909,!1);};Ph.prototype.run=function(a,b,c){return this._inner.run(a,b,c)};Ph.prototype.runTask=function(a,b,c,d){var e=this._inner;a=e.scheduleEventTask("NgZoneEvent: "+d,a,rhc,Tka,Tka);try{return e.runTask(a,b,c)}finally{e.cancelTask(a)}};Ph.prototype.runGuarded=function(a,b,c){return this._inner.runGuarded(a,b,c)};Ph.prototype.runOutsideAngular=function(a){return this._outer.run(a)};
var rhc={},Dv=function(){this.hasPendingMacrotasks=this.hasPendingMicrotasks=!1;this.isStable=!0;this.onUnstable=new nq;this.onMicrotaskEmpty=new nq;this.onStable=new nq;this.onError=new nq};Dv.prototype.run=function(a,b,c){return a.apply(b,c)};Dv.prototype.runGuarded=function(a,b,c){return a.apply(b,c)};Dv.prototype.runOutsideAngular=function(a){return a()};Dv.prototype.runTask=function(a,b,c){return a.apply(b,c)};var Dg=function(){this.impl=null};Dg.prototype.execute=function(){var a;(a=this.impl)==null||a.execute()};Dg.\u0275prov=Cd({token:Dg,providedIn:"root",factory:function(){return new Dg}});var shc=[0,1,2,3],Eg=function(){this.ngZone=r(Ph);this.scheduler=r(rf);this.errorHandler=r(Th,{optional:!0});this.sequences=new Set;this.deferredRegistrations=new Set;this.executing=!1;r(Fg,{optional:!0})};
Eg.prototype.execute=function(){var a=this.sequences.size>0;a&&Je(16);this.executing=!0;for(var b=l(shc),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$jscomp$1:void 0},e=c.next())if(f.sequence$jscomp$1=e.value,!f.sequence$jscomp$1.erroredOrDestroyed&&f.sequence$jscomp$1.hooks[d.phase])try{f.sequence$jscomp$1.pipelinedValue=this.ngZone.runOutsideAngular(function(h,k){return function(){return thc(function(){return(0,h.sequence$jscomp$1.hooks[k.phase])(h.sequence$jscomp$1.pipelinedValue)},
h.sequence$jscomp$1.snapshot)}}(f,d))}catch(h){f.sequence$jscomp$1.erroredOrDestroyed=!0,e=void 0,(e=this.errorHandler)==null||e.handleError(h)}}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&&Je(17)};
Eg.prototype.register=function(a){var b=a.view;if(b!==void 0){var c;((c=b[25])!=null?c:b[25]=[]).push(a);we(b);b[2]|=8192}else this.executing?this.deferredRegistrations.add(a):(this.sequences.add(a),this.scheduler.notify(7))};Eg.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 thc=function(a,b){return b?b.run(1,a):a()};
Eg.\u0275prov=Cd({token:Eg,providedIn:"root",factory:function(){return new Eg}});var Hg=function(a,b,c,d,e,f){var h=this;this.impl=a;this.hooks=b;this.view=c;this.once=d;this.snapshot=f===void 0?null:f;this.erroredOrDestroyed=!1;this.pipelinedValue=void 0;this.unregisterOnDestroy=e==null?void 0:e.onDestroy(function(){return h.destroy()})};Hg.prototype.afterRun=function(){this.erroredOrDestroyed=!1;this.pipelinedValue=void 0;var a;(a=this.snapshot)==null||a.dispose();this.snapshot=null};
Hg.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 $na=function(){};$na.\u0275prov=Cd({token:$na,providedIn:"root",factory:function(){return new uhc}});var uhc=function(){this.dirtyEffectCount=0;this.queues=new Map};g=uhc.prototype;g.add=function(a){this.enqueue(a);this.schedule(a)};g.schedule=function(a){a.dirty&&this.dirtyEffectCount++};g.remove=function(a){var b=this.queues.get(a.zone);b.has(a)&&(b.delete(a),a.dirty&&this.dirtyEffectCount--)};
g.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)};g.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=vhc(this,e.queue$jscomp$4)):b||(b=d.run(function(h){return function(){return vhc(a,h.queue$jscomp$4)}}(e)))}b||(this.dirtyEffectCount=0)}};
var vhc=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 whc=new le(""),xhc=new le(""),Ev=function(a,b,c){var d=this;this._ngZone=a;this.registry=b;this._isZoneStable=!0;this._callbacks=[];this._taskTrackingZone=null;if(Wd!==void 0||Yd!=null){var e;this._destroyRef=(e=r(Gg,{optional:!0}))!=null?e:void 0}yhc||(yhc=c,zhc(b));this._watchAngularEvents();a.run(function(){d._taskTrackingZone=typeof Zone=="undefined"?null:Zone.current.get("TaskTrackingZone")})};
Ev.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(){qhc();queueMicrotask(function(){a._isZoneStable=!0;a._runCallbacksIfReady()})}})}),d;(d=this._destroyRef)==null||d.onDestroy(function(){b.unsubscribe();c.unsubscribe()})};Ev.prototype.isStable=function(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks};
Ev.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=Ahc(this);this._callbacks=this._callbacks.filter(function(c){return c.updateCb&&c.updateCb(b)?(clearTimeout(c.timeoutId),!1):!0})}};
var Ahc=function(a){return a._taskTrackingZone?a._taskTrackingZone.macroTasks.map(function(b){return{source:b.source,creationLocation:b.creationLocation,data:b.data}}):[]};g=Ev.prototype;g.addCallback=function(a,b,c){var d=this,e=-1;b&&b>0&&(e=setTimeout(function(){d._callbacks=d._callbacks.filter(function(f){return f.timeoutId!==e});a()},b));this._callbacks.push({doneCb:a,timeoutId:e,updateCb:c})};
g.whenStable=function(a,b,c){if(c&&!this._taskTrackingZone)throw Error("Ua");this.addCallback(a,b,c);this._runCallbacksIfReady()};g.registerApplication=function(a){this.registry.registerApplication(a,this)};g.unregisterApplication=function(a){this.registry.unregisterApplication(a)};g.findProviders=function(){return[]};Ev.\u0275fac=function(a){return new (a||Ev)(be(Ph),be(Fv),be(xhc))};Ev.\u0275prov=Cd({token:Ev,factory:Ev.\u0275fac});var Fv=function(){this._applications=new Map};
Fv.prototype.registerApplication=function(a,b){this._applications.set(a,b)};Fv.prototype.unregisterApplication=function(a){this._applications.delete(a)};Fv.prototype.findTestabilityInTree=function(a,b){var c,d;return(d=(c=yhc)==null?void 0:c.findTestabilityInTree(this,a,b===void 0?!0:b))!=null?d:null};Fv.\u0275fac=function(a){return new (a||Fv)};Fv.\u0275prov=Cd({token:Fv,factory:Fv.\u0275fac,providedIn:"platform"});var yhc;var Cla={leading:!0,trailing:!1};var Bhc=new le(""),Wh=function(){var a=this;this._destroyed=this._runningTick=!1;this._destroyListeners=[];this._views=[];this.internalErrorHandler=r(lf);this.afterRenderManager=r(Dg);this.zonelessEnabled=r(vgc);this.rootEffectScheduler=r($na);this.dirtyFlags=0;this.tracingSnapshot=null;this.autoDetectTestViews=new Set;this.afterTick=new tg;this.componentTypes=[];this.components=[];this.internalPendingTask=r(Uh);this._injector=r(pf);this._rendererFactory=null;this.tickImpl=function(){if(a._runningTick)throw new Vd(101,
!1);var b=Fd(null);try{a._runningTick=!0;a._rendererFactory!==null||a._injector.destroyed||(a._rendererFactory=a._injector.get(qf,null,{optional:!0}));for(var c=0;a.dirtyFlags!==0&&c++<10;){Je(14);a:{var d=void 0,e=void 0,f=void 0,h=void 0;a.dirtyFlags&16&&(a.dirtyFlags&=-17,a.rootEffectScheduler.flush());var k=!1;if(a.dirtyFlags&7){var q=!!(a.dirtyFlags&1);a.dirtyFlags&=-8;a.dirtyFlags|=8;for(var v=l(a.allViews),A=v.next();!A.done;A=v.next()){var E=A.value._lView;if(q||yga(E))gja(E,q&&!a.zonelessEnabled?
0:1),k=!0}a.dirtyFlags&=-5;Chc(a);if(a.dirtyFlags&23)break a}k||((h=a._rendererFactory)==null||(f=h.begin)==null||f.call(h),(e=a._rendererFactory)==null||(d=e.end)==null||d.call(e));a.dirtyFlags&8&&(a.dirtyFlags&=-9,a.afterRenderManager.execute());Chc(a)}Je(15)}}finally{a._runningTick=!1;var H;(H=a.tracingSnapshot)==null||H.dispose();a.tracingSnapshot=null;Fd(b);a.afterTick.next();Je(13)}};r(Fg,{optional:!0})};
Wh.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()})};Wh.prototype.bootstrap=function(a,b){return Dhc(this,a,b)};
var Dhc=function(a,b,c){var d=d===void 0?tgc:d;return a._injector.get(Ph).run(function(){Je(10);var e=b instanceof Cgc;if(!a._injector.get(Vh).done)throw new Vd(405,"");var f;e?f=b:f=Sgc(a._injector.get(ugc),b);a.componentTypes.push(f.componentType);e=f.isBoundToModule?void 0:a._injector.get(sv);var h=f.create(d,[],c||f.selector,e),k=h.location.nativeElement,q=h.injector.get(whc,null);q==null||q.registerApplication(k);h.onDestroy(function(){a.detachView(h.hostView);Gla(a.components,h);q==null||q.unregisterApplication(k)});
a._loadComponent(h);Je(11,h);return h})};Wh.prototype.tick=function(){this.zonelessEnabled||(this.dirtyFlags|=1);this._tick()};Wh.prototype._tick=function(){Je(12);this.tracingSnapshot!==null?this.tracingSnapshot.run(0,this.tickImpl):this.tickImpl()};
var Chc=function(a){a.allViews.some(function(b){return yga(b._lView)})?a.dirtyFlags|=2:a.dirtyFlags&=-8},Ehc=function(a,b){a._views.push(b);if(b._attachedToViewContainer)throw new Vd(902,!1);b._appRef=a;a=(b._lView[2]&512)!==0;var c=b._lView[16];c===null||a||nja(c,b._lView);zga(b._lView)};g=Wh.prototype;g.detachView=function(a){Gla(this._views,a);a._appRef=null;var b=(a._lView[2]&512)!==0,c=a._lView[16];c===null||b||Iha(c,a._lView);Hha(a._lView[1],a._lView)};
g._loadComponent=function(a){Ehc(this,a.hostView);try{this.tick()}catch(b){this.internalErrorHandler(b)}this.components.push(a);this._injector.get(Bhc,[]).forEach(function(b){return b(a)})};g.ngOnDestroy=function(){if(!this._destroyed)try{this._destroyListeners.forEach(function(a){return a()}),this._views.slice().forEach(function(a){return a.destroy()})}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}};
g.onDestroy=function(a){var b=this;this._destroyListeners.push(a);return function(){return Gla(b._destroyListeners,a)}};g.destroy=function(){if(this._destroyed)throw new Vd(406,!1);var a=this._injector;a.destroy&&!a.destroyed&&a.destroy()};
nd.Object.defineProperties(Wh.prototype,{allViews:{configurable:!0,enumerable:!0,get:function(){return[].concat(p(this.autoDetectTestViews.keys()),p(this._views))}},destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}},isStable:{configurable:!0,enumerable:!0,get:function(){return this.internalPendingTask.hasPendingTasksObservable.pipe(C(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}}});Wh.\u0275fac=function(a){return new (a||Wh)};Wh.\u0275prov=Cd({token:Wh,factory:Wh.\u0275fac,providedIn:"root"});new le("DEFER_BLOCK_DEPENDENCY_INTERCEPTOR");new le("");var Sla=function(a,b){this.view=a;this.node=b};Sla.__NG_ELEMENT_ID__=Tla;var fh=function(){};fh.__NG_ELEMENT_ID__=Xla;var Jg=function(a,b,c){this._lContainer=a;this._hostTNode=b;this._hostLView=c};Y(Jg,fh);Jg.__NG_ELEMENT_ID__=fh.__NG_ELEMENT_ID__;g=Jg.prototype;g.clear=function(){for(;this.length>0;)this.remove(this.length-1)};g.get=function(a){var b=this._lContainer[8];return b!==null&&b[a]||null};
g.createEmbeddedView=function(a,b,c){if(typeof c==="number")var d=c;else if(c!=null){d=c.index;var e=c.injector}a=Fhc(a,b||{},e,null);Ghc(this,a,d,Ila(this._hostTNode,null));return a};
g.createComponent=function(a,b,c,d,e,f,h){var k=a&&typeof a!=="function";k||(h=b||{},b=h.index,c=h.injector,d=h.projectableNodes,e=h.environmentInjector||h.ngModuleRef,f=h.directives,h=h.bindings);a=k?a:new bi(a[he]||null);c=c||this.parentInjector;e||a.ngModule!=null||(k=(k?c:this.parentInjector).get(pf,null))&&(e=k);d=a.create(c,d,null,e,f,h);Ghc(this,d.hostView,b,Ila(this._hostTNode,null));return d};g.insert=function(a,b){return Ghc(this,a,b,!0)};
var Ghc=function(a,b,c,d){var e=b._lView;if(qe(e[3])){var f=a.indexOf(b);f!==-1?a.detach(f):(f=e[3],f=new Jg(f,f[5],f[3]),f.detach(f.indexOf(b)))}c=a._adjustIndex(c);a=a._lContainer;oja(a,e,c,d);if(b._appRef)throw new Vd(902,!1);b._attachedToViewContainer=!0;d=Yla(a);c>=d.length?d.push(b):d.splice(c,0,b);return b};g=Jg.prototype;g.move=function(a,b){return this.insert(a,b)};g.indexOf=function(a){var b=this._lContainer[8];return b!==null?b.indexOf(a):-1};
g.remove=function(a){a=this._adjustIndex(a,-1);var b=pja(this._lContainer,a);b&&(Xfa(Yla(this._lContainer),a),Kha(b[1],b))};g.detach=function(a){a=this._adjustIndex(a,-1);var b=pja(this._lContainer,a);return b&&Xfa(Yla(this._lContainer),a)!=null?new Oh(b):null};g._adjustIndex=function(a,b){return a==null?this.length+(b===void 0?0:b):a};
nd.Object.defineProperties(Jg.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return Ue(this._hostTNode,this._hostLView)}},injector:{configurable:!0,enumerable:!0,get:function(){return new Qe(this._hostTNode,this._hostLView)}},parentInjector:{configurable:!0,enumerable:!0,get:function(){var a=Yga(this._hostTNode,this._hostLView);if(a!==-1){var b=Rga(a,this._hostLView);return new Qe(b[1].data[(a&32767)+8],b)}return new Qe(null,this._hostLView)}},length:{configurable:!0,enumerable:!0,
get:function(){return this._lContainer.length-10}}});var Zla=$la;var ama=ema;var Hhc=function(){};Hhc.prototype.destroy=function(){};Hhc.prototype.updateValue=function(){};var gma=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)};Hhc.prototype.move=function(a,b){this.attach(b,this.detach(a))};var hma=function(){this.kvMap=new Map;this._vMap=void 0};g=hma.prototype;g.has=function(a){return this.kvMap.has(a)};
g.delete=function(a){if(!this.has(a))return!1;var b=this.kvMap.get(a);this._vMap!==void 0&&this._vMap.has(b)?(this.kvMap.set(a,this._vMap.get(b)),this._vMap.delete(b)):this.kvMap.delete(a);return!0};g.get=function(a){return this.kvMap.get(a)};g.set=function(a,b){if(this.kvMap.has(a)){a=this.kvMap.get(a);this._vMap===void 0&&(this._vMap=new Map);for(var c=this._vMap;c.has(a);)a=c.get(a);c.set(a,b)}else this.kvMap.set(a,b)};
g.forEach=function(a){for(var b=l(this.kvMap),c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;a(d,c);if(this._vMap!==void 0)for(var e=this._vMap;e.has(d);)d=e.get(d),a(d,c)}};var Ihc=function(a,b,c){this.lContainer=a;this.$implicit=b;this.$index=c};nd.Object.defineProperties(Ihc.prototype,{$count:{configurable:!0,enumerable:!0,get:function(){return this.lContainer.length-10}}});var mma=function(a){this.hasEmptyBlock=!1;this.trackByFn=a;this.liveCollection=void 0},nma=function(a,b,c){this.lContainer=a;this.hostLView=b;this.templateTNode=c;this.operationsCounter=void 0;this.needsIndexUpdate=!1};Y(nma,Hhc);g=nma.prototype;g.at=function(a){return mja(this.lContainer,a)[8].$implicit};
g.attach=function(a,b){var c=b[6];this.needsIndexUpdate||(this.needsIndexUpdate=a!==this.length);oja(this.lContainer,b,a,Ila(this.templateTNode,c))};g.detach=function(a){this.needsIndexUpdate||(this.needsIndexUpdate=a!==this.length-1);return pja(this.lContainer,a)};g.create=function(a,b){a=Hla(this.hostLView,this.templateTNode,new Ihc(this.lContainer,b,a),{dehydratedView:null});var c;(c=this.operationsCounter)==null||c.recordCreate();return a};
g.destroy=function(a){Kha(a[1],a);var b;(b=this.operationsCounter)==null||b.recordDestroy()};g.updateValue=function(a,b){mja(this.lContainer,a)[8].$implicit=b};g.reset=function(){this.needsIndexUpdate=!1;var a;(a=this.operationsCounter)==null||a.reset()};nd.Object.defineProperties(nma.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.lContainer.length-10}}});var pma=function(a,b,c,d){kf=!0;return b[11].createElement(d,ze.currentNamespace)};var qma=function(a,b){kf=!0;return b[11].createComment(xha())};var sma=["en",[["a","p"],["AM","PM"],void 0],[["AM","PM"],void 0,void 0],["SMTWTFS".split(""),"Sun Mon Tue Wed Thu Fri Sat".split(" "),"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),"Su Mo Tu We Th Fr Sa".split(" ")],void 0,["JFMAMJJASOND".split(""),"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),"January February March April May June July August September October November December".split(" ")],void 0,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,
0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",void 0,"{1} 'at' {0}",void 0],". , ; % + - E \u00d7 \u2030 \u221e NaN :".split(" "),["#,##0.###","#,##0%","\u00a4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(a){var b=a.toString().replace(/^[^.]*\.?/,"").length;return Math.floor(Math.abs(a))===1&&b===0?1:5}];var tma={};var uma={};var Jhc,gh=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[Jhc]=yma};g=gh.prototype;g.get=function(a){return this._results[a]};g.map=function(a){return this._results.map(a)};g.filter=function(a){return this._results.filter(a)};g.find=function(a){return this._results.find(a)};g.reduce=function(a,b){return this._results.reduce(a,b)};g.forEach=function(a){this._results.forEach(a)};
g.some=function(a){return this._results.some(a)};g.toArray=function(){return this._results.slice()};g.toString=function(){return this._results.toString()};g.reset=function(a,b){this.dirty=!1;a=a.flat(Number.POSITIVE_INFINITY);a:{var c=this._results;if(c.length!==a.length)b=!1;else{for(var d=0;d<c.length;d++){var e=c[d],f=a[d];b&&(e=b(e),f=b(f));if(f!==e){b=!1;break a}}b=!0}}if(this._changesDetected=!b)this._results=a,this.length=a.length,this.last=a[this.length-1],this.first=a[0]};
var kh=function(a){a._changes===void 0||!a._changesDetected&&a._emitDistinctChangesOnly||a._changes.next(a)},Nma=function(a,b){a._onDirty=b};gh.prototype.setDirty=function(){this.dirty=!0;var a;(a=this._onDirty)==null||a.call(this)};gh.prototype.destroy=function(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())};nd.Object.defineProperties(gh.prototype,{changes:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this._changes)!=null?a:this._changes=new tg}}});
Jhc=Symbol.iterator;var eh=function(a,b,c){this._declarationLView=a;this._declarationTContainer=b;this.elementRef=c};eh.prototype.createEmbeddedView=function(a,b){return Fhc(this,a,b)};var Fhc=function(a,b,c,d){a=Hla(a._declarationLView,a._declarationTContainer,b,{embeddedViewInjector:c,dehydratedView:d});return new Oh(a)};nd.Object.defineProperties(eh.prototype,{ssrId:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this._declarationTContainer.tView)==null?void 0:a.ssrId)||null}}});
eh.__NG_ELEMENT_ID__=Ama;var Ema=function(a){this.queryList=a;this.matches=null};Ema.prototype.clone=function(){return new Ema(this.queryList)};Ema.prototype.setDirty=function(){this.queryList.setDirty()};var Dma=function(a){this.queries=a=a===void 0?[]:a};Dma.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 Dma(c)}return null};
Dma.prototype.detachView=function(a){Sia(this,a)};var Sia=function(a,b){for(var c=0;c<a.queries.length;c++)b.queries.queries[c].matches!==null&&a.queries[c].setDirty()},Hma=function(a,b,c){this.flags=b;this.read=c===void 0?null:c;typeof a==="string"?this.predicate=Ima(a):this.predicate=a},Jma=function(a){this.queries=a=a===void 0?[]:a};g=Jma.prototype;g.elementStart=function(a,b){for(var c=0;c<this.queries.length;c++)this.queries[c].elementStart(a,b)};g.elementEnd=function(a){for(var b=0;b<this.queries.length;b++)this.queries[b].elementEnd(a)};
g.embeddedTView=function(a){for(var b=null,c=0;c<this.length;c++){var d=this.queries[c].embeddedTView(a,b!==null?b.length:0);d&&(d.indexInDeclarationView=c,b!==null?b.push(d):b=[d])}return b!==null?new Jma(b):null};g.template=function(a,b){for(var c=0;c<this.queries.length;c++)this.queries[c].template(a,b)};g.track=function(a){this.queries.push(a)};nd.Object.defineProperties(Jma.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.queries.length}}});
var jh=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};
jh.prototype.elementStart=function(a,b){if(Khc(this,b)){var c=this.metadata.predicate;if(Array.isArray(c))for(var d=0;d<c.length;d++){var e=c[d];a:{var f=b.localNames;if(f!==null)for(var h=0;h<f.length;h+=2)if(f[h]===e){f=f[h+1];break a}f=null}Lhc(this,a,b,f);Lhc(this,a,b,fha(b,a,e,!1,!1))}else c===eh?b.type&4&&Lhc(this,a,b,-1):Lhc(this,a,b,fha(b,a,c,!1,!1))}};jh.prototype.elementEnd=function(a){this._declarationNodeIndex===a.index&&(this._appliesToNextNode=!1)};
jh.prototype.template=function(a,b){this.elementStart(a,b)};jh.prototype.embeddedTView=function(a,b){return Khc(this,a)?(this.crossesNgTemplate=!0,Mhc(this,-a.index,b),new jh(this.metadata)):null};
var Khc=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},Lhc=function(a,b,c,d){if(d!==null){var e=a.metadata.read;e!==null?e===Te||e===fh||e===eh&&c.type&4?Mhc(a,c.index,-2):(b=fha(c,b,e,!1,!1),b!==null&&Mhc(a,c.index,b)):Mhc(a,c.index,d)}},Mhc=function(a,b,c){a.matches===null?a.matches=[b,c]:a.matches.push(b,c)};var ph=0,qh=0,rh=0,Sma=0,Uma=0;var Gv=function(){};Gv.\u0275fac=function(a){return new (a||Gv)(be(Wh))};Gv.\u0275mod=uf({type:Gv});Gv.\u0275inj=Dd({});new le("",{providedIn:"platform",factory:function(){return null}});new le("",{providedIn:"platform",factory:function(){return null}});new le("",{providedIn:"platform",factory:function(){return null}});var yna=Symbol("Va"),zna=Object.assign({},Cfa,{transformFn:void 0,applyValueToInputSignal:function(a,b){Rd(a,b)}});Mh.required=function(a){return Ana(yna,a)};Nh.required=function(){return Mma(!0)};Bna.required=function(){return Mma(!0)};var Hv=function(){};Hv.__NG_ELEMENT_ID__=Cna;var Nhc=function(){};Nhc.prototype.supports=function(a){return Aha(a)};Nhc.prototype.create=function(a){return new Ohc(a)};var Phc=function(a,b){return b},Ohc=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||Phc};
Ohc.prototype.forEachItem=function(a){var b;for(b=this._itHead;b!==null;b=b._next)a(b)};
var Qhc=function(a,b){var c=a._itHead;a=a._removalsHead;for(var d=0,e=null;c||a;){var f=!a||c&&c.currentIndex<Dna(a,d,e)?c:a,h=Dna(f,d,e),k=f.currentIndex;if(f===a)d--,a=a._nextRemoved;else if(c=c._next,f.previousIndex==null)d++;else{e||(e=[]);var q=h-d,v=k-d;if(q!=v){for(var A=0;A<q;A++){var E=A<e.length?e[A]:e[A]=0,H=E+A;v<=H&&H<q&&(e[A]=E+1)}e[f.previousIndex]=v-q}}h!==k&&b(f,h,k)}},Rhc=function(a,b){for(a=a._identityChangesHead;a!==null;a=a._nextIdentityChange)b(a)};g=Ohc.prototype;
g.diff=function(a){a==null&&(a=[]);if(!Aha(a))throw new Vd(900,!1);return this.check(a)?this:null};g.onDestroy=function(){};
g.check=function(a){var b=this;this._reset();var c=this._itHead,d=!1;if(Array.isArray(a)){this.length=a.length;for(var e=0;e<this.length;e++){var f=a[e];var h=this._trackByFn(e,f);c!==null&&Object.is(c.trackById,h)?(d&&(c=this._verifyReinsertion(c,f,h,e)),Object.is(c.item,f)||this._addIdentityChange(c,f)):(c=this._mismatch(c,f,h,e),d=!0);c=c._next}}else{var k=0;Bha(a,function(q){h=b._trackByFn(k,q);c!==null&&Object.is(c.trackById,h)?(d&&(c=b._verifyReinsertion(c,q,h,k)),Object.is(c.item,q)||b._addIdentityChange(c,
q)):(c=b._mismatch(c,q,h,k),d=!0);c=c._next;k++});this.length=k}this._truncate(c);this.collection=a;return this.isDirty};
g._reset=function(){if(this.isDirty){var a;for(a=this._previousItHead=this._itHead;a!==null;a=a._next)a._nextPrevious=a._next;for(a=this._additionsHead;a!==null;a=a._nextAdded)a.previousIndex=a.currentIndex;this._additionsHead=this._additionsTail=null;for(a=this._movesHead;a!==null;a=a._nextMoved)a.previousIndex=a.currentIndex;this._identityChangesHead=this._identityChangesTail=this._removalsHead=this._removalsTail=this._movesHead=this._movesTail=null}};
g._mismatch=function(a,b,c,d){if(a===null)var e=this._itTail;else e=a._prev,this._remove(a);a=this._unlinkedRecords===null?null:this._unlinkedRecords.get(c,null);a!==null?(Object.is(a.item,b)||this._addIdentityChange(a,b),this._reinsertAfter(a,e,d)):(a=this._linkedRecords===null?null:this._linkedRecords.get(c,d),a!==null?(Object.is(a.item,b)||this._addIdentityChange(a,b),this._moveAfter(a,e,d)):a=this._addAfter(new Shc(b,c),e,d));return a};
g._verifyReinsertion=function(a,b,c,d){b=this._unlinkedRecords===null?null:this._unlinkedRecords.get(c,null);b!==null?a=this._reinsertAfter(b,a._prev,d):a.currentIndex!=d&&(a.currentIndex=d,this._addToMoves(a,d));return a};
g._truncate=function(a){for(;a!==null;){var b=a._next;this._addToRemovals(this._unlink(a));a=b}this._unlinkedRecords!==null&&this._unlinkedRecords.clear();this._additionsTail!==null&&(this._additionsTail._nextAdded=null);this._movesTail!==null&&(this._movesTail._nextMoved=null);this._itTail!==null&&(this._itTail._next=null);this._removalsTail!==null&&(this._removalsTail._nextRemoved=null);this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)};
g._reinsertAfter=function(a,b,c){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(a);var d=a._prevRemoved,e=a._nextRemoved;d===null?this._removalsHead=e:d._nextRemoved=e;e===null?this._removalsTail=d:e._prevRemoved=d;this._insertAfter(a,b,c);this._addToMoves(a,c);return a};g._moveAfter=function(a,b,c){this._unlink(a);this._insertAfter(a,b,c);this._addToMoves(a,c);return a};
g._addAfter=function(a,b,c){this._insertAfter(a,b,c);this._additionsTail=this._additionsTail===null?this._additionsHead=a:this._additionsTail._nextAdded=a;return a};g._insertAfter=function(a,b,c){var d=b===null?this._itHead:b._next;a._next=d;a._prev=b;d===null?this._itTail=a:d._prev=a;b===null?this._itHead=a:b._next=a;this._linkedRecords===null&&(this._linkedRecords=new Iv);this._linkedRecords.put(a);a.currentIndex=c;return a};g._remove=function(a){return this._addToRemovals(this._unlink(a))};
g._unlink=function(a){this._linkedRecords!==null&&this._linkedRecords.remove(a);var b=a._prev,c=a._next;b===null?this._itHead=c:b._next=c;c===null?this._itTail=b:c._prev=b;return a};g._addToMoves=function(a,b){if(a.previousIndex===b)return a;this._movesTail=this._movesTail===null?this._movesHead=a:this._movesTail._nextMoved=a;return a};
g._addToRemovals=function(a){this._unlinkedRecords===null&&(this._unlinkedRecords=new Iv);this._unlinkedRecords.put(a);a.currentIndex=null;a._nextRemoved=null;this._removalsTail===null?(this._removalsTail=this._removalsHead=a,a._prevRemoved=null):(a._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=a);return a};
g._addIdentityChange=function(a,b){a.item=b;this._identityChangesTail=this._identityChangesTail===null?this._identityChangesHead=a:this._identityChangesTail._nextIdentityChange=a;return a};nd.Object.defineProperties(Ohc.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}}});
var Shc=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},Thc=function(){this._tail=this._head=null};Thc.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)};
Thc.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};Thc.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 Iv=function(){this.map=new Map};Iv.prototype.put=function(a){var b=a.trackById,c=this.map.get(b);c||(c=new Thc,this.map.set(b,c));c.add(a)};
Iv.prototype.get=function(a,b){var c=this.map.get(a);return c?c.get(a,b):null};Iv.prototype.remove=function(a){var b=a.trackById;this.map.get(b).remove(a)&&this.map.delete(b);return a};Iv.prototype.clear=function(){this.map.clear()};nd.Object.defineProperties(Iv.prototype,{isEmpty:{configurable:!0,enumerable:!0,get:function(){return this.map.size===0}}});var Uhc=function(){};Uhc.prototype.supports=function(a){return a instanceof Map||zha(a)};Uhc.prototype.create=function(){return new Vhc};var Vhc=function(){this._records=new Map;this._removalsTail=this._removalsHead=this._additionsTail=this._additionsHead=this._changesTail=this._changesHead=this._previousMapHead=this._appendAfter=this._mapHead=null};g=Vhc.prototype;g.forEachItem=function(a){var b;for(b=this._mapHead;b!==null;b=b._next)a(b)};
g.diff=function(a){if(!a)a=new Map;else if(!(a instanceof Map||zha(a)))throw new Vd(900,!1);return this.check(a)?this:null};g.onDestroy=function(){};
g.check=function(a){var b=this;this._reset();var c=this._mapHead;this._appendAfter=null;this._forEach(a,function(d,e){c&&c.key===e?(b._maybeAddToChanges(c,d),b._appendAfter=c,c=c._next):(d=b._getOrCreateRecordForKey(e,d),c=b._insertBeforeOrAppend(c,d))});if(c)for(c._prev&&(c._prev._next=null),a=this._removalsHead=c;a!==null;a=a._nextRemoved)a===this._mapHead&&(this._mapHead=null),this._records.delete(a.key),a._nextRemoved=a._next,a.previousValue=a.currentValue,a.currentValue=null,a._prev=null,a._next=
null;this._changesTail&&(this._changesTail._nextChanged=null);this._additionsTail&&(this._additionsTail._nextAdded=null);return this.isDirty};g._insertBeforeOrAppend=function(a,b){if(a){var c=a._prev;b._next=a;b._prev=c;a._prev=b;c&&(c._next=b);a===this._mapHead&&(this._mapHead=b);return this._appendAfter=a}this._appendAfter?(this._appendAfter._next=b,b._prev=this._appendAfter):this._mapHead=b;this._appendAfter=b;return null};
g._getOrCreateRecordForKey=function(a,b){if(this._records.has(a)){a=this._records.get(a);this._maybeAddToChanges(a,b);b=a._prev;var c=a._next;b&&(b._next=c);c&&(c._prev=b);a._next=null;a._prev=null;return a}c=new Whc(a);this._records.set(a,c);c.currentValue=b;this._addToAdditions(c);return c};
g._reset=function(){if(this.isDirty){var a;for(a=this._previousMapHead=this._mapHead;a!==null;a=a._next)a._nextPrevious=a._next;for(a=this._changesHead;a!==null;a=a._nextChanged)a.previousValue=a.currentValue;for(a=this._additionsHead;a!=null;a=a._nextAdded)a.previousValue=a.currentValue;this._removalsHead=this._additionsHead=this._additionsTail=this._changesHead=this._changesTail=null}};
g._maybeAddToChanges=function(a,b){Object.is(b,a.currentValue)||(a.previousValue=a.currentValue,a.currentValue=b,this._addToChanges(a))};g._addToAdditions=function(a){this._additionsHead===null?this._additionsHead=this._additionsTail=a:this._additionsTail=this._additionsTail._nextAdded=a};g._addToChanges=function(a){this._changesHead===null?this._changesHead=this._changesTail=a:this._changesTail=this._changesTail._nextChanged=a};
g._forEach=function(a,b){a instanceof Map?a.forEach(b):Object.keys(a).forEach(function(c){return b(a[c],c)})};nd.Object.defineProperties(Vhc.prototype,{isDirty:{configurable:!0,enumerable:!0,get:function(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}}});var Whc=function(a){this.key=a;this._nextChanged=this._nextRemoved=this._nextAdded=this._prev=this._next=this._nextPrevious=this.currentValue=this.previousValue=null};var Jv=function(a){this.factories=a};Jv.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(b!=null)return b;throw new Vd(901,!1);};Jv.\u0275prov=Cd({token:Jv,providedIn:"root",factory:function(){return new Jv([new Nhc])}});var Kv=function(a){this.factories=a};Kv.prototype.find=function(a){var b=this.factories.find(function(c){return c.supports(a)});if(b)return b;throw new Vd(901,!1);};Kv.\u0275prov=Cd({token:Kv,providedIn:"root",factory:function(){return new Kv([new Uhc])}});var Lv=function(){var a=this;this.applicationErrorHandler=r(lf);this.appRef=r(Wh);this.taskService=r(Uh);this.ngZone=r(Ph);this.zonelessEnabled=r(vgc);this.tracing=r(Fg,{optional:!0});var b;this.disableScheduling=(b=r(Fna,{optional:!0}))!=null?b:!1;this.zoneIsDefined=typeof Zone!=="undefined"&&!!Zone.root.run;this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];this.subscriptions=new yf;var c;this.angularZoneId=this.zoneIsDefined?(c=this.ngZone._inner)==null?void 0:c.get("isAngularZone_ID"):
null;var d;this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&((d=r(Gna,{optional:!0}))!=null?d:!1);this.cancelScheduledCallback=null;this.runningTick=this.useMicrotaskScheduler=!1;this.pendingRenderTaskId=null;this.subscriptions.add(this.appRef.afterTick.subscribe(function(){a.runningTick||a.cleanup()}));this.subscriptions.add(this.ngZone.onUnstable.subscribe(function(){a.runningTick||a.cleanup()}));this.disableScheduling||(this.disableScheduling=!this.zonelessEnabled&&(this.ngZone instanceof
Dv||!this.zoneIsDefined))};
Lv.prototype.notify=function(a){var b=this;if(this.zonelessEnabled||a!==5){var c=!1;switch(a){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 6:this.appRef.dirtyFlags|=2;c=!0;break;case 12:this.appRef.dirtyFlags|=16;c=!0;break;case 13:this.appRef.dirtyFlags|=2;c=!0;break;case 11:c=!0;break;default:this.appRef.dirtyFlags|=8}var d,e;this.appRef.tracingSnapshot=(e=(d=this.tracing)==null?void 0:d.snapshot(this.appRef.tracingSnapshot))!=null?
e:null;if(!(this.disableScheduling&&!c||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get("isAngularZone_ID"+this.angularZoneId))){var f=this.useMicrotaskScheduler?Vka:Uka;this.pendingRenderTaskId=this.taskService.add();this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(function(){return f(function(){return b.tick()})}):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(function(){return f(function(){return b.tick()})})}}};
Lv.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;Vka(function(){a.useMicrotaskScheduler=
!1;a.taskService.remove(b)})}};Lv.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe();this.cleanup()};Lv.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))};Lv.\u0275fac=function(a){return new (a||Lv)};Lv.\u0275prov=Cd({token:Lv,factory:Lv.\u0275fac,providedIn:"root"});var Qh=function(){this.zone=r(Ph);this.changeDetectionScheduler=r(rf);this.applicationRef=r(Wh);this.applicationErrorHandler=r(lf)};Qh.prototype.initialize=function(){var a=this;this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:function(){a.changeDetectionScheduler.runningTick||a.zone.run(function(){try{a.applicationRef.dirtyFlags|=1,a.applicationRef._tick()}catch(b){a.applicationErrorHandler(b)}})}}))};
Qh.prototype.ngOnDestroy=function(){var a;(a=this._onMicrotaskEmptySubscription)==null||a.unsubscribe()};Qh.\u0275fac=function(a){return new (a||Qh)};Qh.\u0275prov=Cd({token:Qh,factory:Qh.\u0275fac,providedIn:"root"});new le("",{factory:function(){return!1}});var Rh=function(){this.subscription=new yf;this.initialized=!1;this.zone=r(Ph);this.pendingTasks=r(Uh)};
Rh.prototype.initialize=function(){var a=this;if(!this.initialized){this.initialized=!0;var b=null;this.zone.isStable||this.zone.hasPendingMacrotasks||this.zone.hasPendingMicrotasks||(b=this.pendingTasks.add());this.zone.runOutsideAngular(function(){a.subscription.add(a.zone.onStable.subscribe(function(){qhc();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(!phc())throw new Vd(909,
!1);b!=null||(b=a.pendingTasks.add())}))}};Rh.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()};Rh.\u0275fac=function(a){return new (a||Rh)};Rh.\u0275prov=Cd({token:Rh,factory:Rh.\u0275fac,providedIn:"root"});var Lna=new le("",{providedIn:"root",factory:function(){return r(Lna,{optional:!0,skipSelf:!0})||(typeof ddc!=="undefined"?"en-US":typeof $localize!=="undefined"&&$localize.locale||"en-US")}});new le("",{providedIn:"root",factory:function(){return"USD"}});new le("");new le("");var Ina=new le("");var Mna=new le(""),Nna;var Mv=function(){};Mv.\u0275fac=function(a){return new (a||Mv)};Mv.\u0275prov=Cd({token:Mv,factory:Mv.\u0275fac,providedIn:"root"});new le("");var Xh=function(a){this._injector=a;this._modules=[];this._destroyListeners=[];this._destroyed=!1},Xhc=function(a,b,c){var d=c==null?void 0:c.scheduleInRootZone;b=Eja(b.moduleType,a.injector,[Hna({ngZoneFactory:function(){var e=c==null?void 0:c.ngZone,f=Object.assign({},Ena({eventCoalescing:c==null?void 0:c.ngZoneEventCoalescing,runCoalescing:c==null?void 0:c.ngZoneRunCoalescing}),{scheduleInRootZone:d});e=e===void 0?"zone.js":e;return e==="noop"?new Dv:e==="zone.js"?new Ph(f):e},ignoreChangesOutsideZone:c==
null?void 0:c.ignoreChangesOutsideZone}),{provide:rf,useExisting:Lv},Egc]);Nna=Pna;return Ona({moduleRef:b,allPlatformModules:a._modules,platformInjector:a.injector})},Zhc=function(){var a=Yhc(),b=Nv;var c=c===void 0?[]:c;var d=Fla({},c);Nna=Pna;Promise.resolve(new ODa(b)).then(function(e){return Xhc(a,e,d)})};Xh.prototype.onDestroy=function(a){this._destroyListeners.push(a)};
Xh.prototype.destroy=function(){if(this._destroyed)throw new Vd(404,!1);this._modules.slice().forEach(function(b){return b.destroy()});this._destroyListeners.forEach(function(b){return b()});var a=this._injector.get(Ina,null);a&&(a.forEach(function(b){return b()}),a.clear());this._destroyed=!0};nd.Object.defineProperties(Xh.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){return this._injector}},destroyed:{configurable:!0,enumerable:!0,get:function(){return this._destroyed}}});
Xh.\u0275fac=function(a){return new (a||Xh)(be(Cg))};Xh.\u0275prov=Cd({token:Xh,factory:Xh.\u0275fac,providedIn:"platform"});var Tna=null,Rna=new le("");var aoa=function(a){this[Qd]=a};aoa.prototype.destroy=function(){this[Qd].destroy()};
var $hc=Object.assign({},kv,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:Tka,run:function(){var a=this;this.dirty=!1;if(!this.hasRun||wfa(this)){this.hasRun=!0;var b,c=function(f){var h;return((h=(b=a).cleanupFns)!=null?h:b.cleanupFns=[]).push(f)},d=Ld(this),e=Ega(!1);try{this.maybeCleanup(),this.fn(c)}finally{Ega(e),Md(this,d)}}},maybeCleanup:function(){var a;if((a=this.cleanupFns)!=null&&a.length){a=Fd(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=
[],Fd(a)}}}}),doa=Object.assign({},$hc,{consumerMarkedDirty:function(){this.scheduler.schedule(this);this.notifier.notify(12)},destroy:function(){Nd(this);this.onDestroyFn();this.maybeCleanup();this.scheduler.remove(this)}}),coa=Object.assign({},$hc,{consumerMarkedDirty:function(){this.view[2]|=8192;we(this.view);this.notifier.notify(13)},destroy:function(){Nd(this);this.onDestroyFn();this.maybeCleanup();var a;(a=this.view[23])==null||a.delete(this)}});var eoa=function(a){return a};var aic=function(a){var b=this;this.isError=Zh(function(){return b.status()==="error"});this.isLoading=Zh(function(){return b.status()==="loading"||b.status()==="reloading"});this.isValueDefined=Zh(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=Lma};aic.prototype.update=function(a){this.set(a(Sd(this.value)))};aic.prototype.hasValue=function(){return this.isValueDefined()};
aic.prototype.asReadonly=function(){return this};
var Ov=function(a,b,c,d,e,f){f=f===void 0?!0:f;aic.call(this,Zh(function(){var k,q,v=(q=(k=h.state()).stream)==null?void 0:q.call(k);if(!v||h.state().status==="loading"&&h.error())return c;if(v.error!==void 0){if(f)throw new bic(h.error());return c}return v.value},{equal:d}));var h=this;this.loaderFn=b;this.equal=d;this.resolvePendingTask=void 0;this.destroyed=!1;this.status=Zh(function(){return hoa(h.state())});this.error=Zh(function(){var k,q,v=(q=(k=h.state()).stream)==null?void 0:q.call(k);return v&&
v.error!==void 0?v.error:void 0});this.extRequest=goa({source:a,computation:function(k){return{request:k,reload:0}}});this.state=goa({source:this.extRequest,computation:function(k,q){var v=k.request===void 0?"idle":"loading";return q?{extRequest:k,status:v,previousStatus:hoa(q.value),stream:q.value.extRequest.request===k.request?q.value.stream:void 0}:{extRequest:k,status:v,previousStatus:"idle",stream:void 0}}});this.effectRef=boa(this.loadEffect.bind(this),{injector:e,manualCleanup:!0});this.pendingTasks=
e.get(Cv);this.unregisterOnDestroy=e.get(Gg).onDestroy(function(){return h.destroy()})};Y(Ov,aic);Ov.prototype.set=function(a){if(!this.destroyed){var b=Sd(this.error),c=Sd(this.state);if(!b&&(b=Sd(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:nh({value:a})});cic(this)}};
Ov.prototype.reload=function(){var a=Sd(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};Ov.prototype.destroy=function(){this.destroyed=!0;this.unregisterOnDestroy();this.effectRef.destroy();cic(this);this.state.set({extRequest:{request:void 0,reload:0},status:"idle",previousStatus:"idle",stream:void 0})};
Ov.prototype.loadEffect=function(){var a=this,b,c,d,e,f,h,k,q,v,A;return z(function(E){switch(E.nextAddress){case 1:b=a.extRequest();c=Sd(a.state);d=c.status;e=c.previousStatus;if(b.request===void 0||d!=="loading")return E.return();cic(a);f=a.resolvePendingTask=a.pendingTasks.add();h=a.pendingController=new AbortController;k=h.signal;Gf(E,2,3);return B(E,Sd(function(){return a.loaderFn({params:b.request,request:b.request,abortSignal:k,previous:{status:e}})}),5);case 5:q=E.yieldResult;if(k.aborted||
Sd(a.extRequest)!==b)return E.return();a.state.set({extRequest:b,status:"resolved",previousStatus:"resolved",stream:q});case 3:Hf(E);(v=f)==null||v();f=void 0;Jf(E,0);break;case 2:A=Kf(E);if(k.aborted||Sd(a.extRequest)!==b)return E.return();a.state.set({extRequest:b,status:"resolved",previousStatus:"error",stream:nh({error:A instanceof Error?A:new dic(A)})});E.jumpTo(3)}})};
var cic=function(a){Sd(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},bic=function(a){a=Error.call(this,a.message,{cause:a});this.message=a.message;"stack"in a&&(this.stack=a.stack)};Y(bic,Error);var dic=function(a){a=Error.call(this,String(a),{cause:a});this.message=a.message;"stack"in a&&(this.stack=a.stack)};Y(dic,Error);var eic=Symbol("Wa"),fic=new Set,gic=Object.assign({},Cfa,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:eic,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!==eic&&!wfa(this))return this.signal;
try{for(var b,c=l((b=this.cleanup)!=null?b:fic),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=Ld(this);try{var h=this.userFn.apply(null,b)}finally{Md(this,a)}this.value!==eic&&this.equal(this.value,h)||(this.value=h,this.version++);return this.signal}}),ioa=function(a,b,c,d,e,f){f=f===void 0?null:f;Hg.call(this,a,[void 0,void 0,void 0,void 0],c,!1,e.get(Gg),f);this.scheduler=d;this.lastPhase=
null;this.nodes=[void 0,void 0,void 0,void 0];a=l(shc);d=a.next();for(c={};!d.done;c={node$jscomp$113:void 0,$jscomp$logical$assign$tmp367619693$0:void 0},d=a.next())d=d.value,e=b[d],e!==void 0&&(c.node$jscomp$113=Object.create(gic),c.node$jscomp$113.sequence=this,c.node$jscomp$113.phase=d,c.node$jscomp$113.userFn=e,c.node$jscomp$113.dirty=!0,c.node$jscomp$113.signal=function(h){return function(){Id(h.node$jscomp$113);return h.node$jscomp$113.value}}(c),c.node$jscomp$113.signal[Qd]=c.node$jscomp$113,
c.$jscomp$logical$assign$tmp367619693$0=void 0,c.node$jscomp$113.registerCleanupFn=function(h){return function(k){var q;return((q=(h.$jscomp$logical$assign$tmp367619693$0=h.node$jscomp$113).cleanup)!=null?q:h.$jscomp$logical$assign$tmp367619693$0.cleanup=new Set).add(k)}}(c),this.nodes[d]=c.node$jscomp$113,this.hooks[d]=function(h){return function(k){return h.node$jscomp$113.phaseFn(k)}}(c))};Y(ioa,Hg);ioa.prototype.afterRun=function(){Hg.prototype.afterRun.call(this);this.lastPhase=null};
ioa.prototype.destroy=function(){Hg.prototype.destroy.call(this);for(var a=l(this.nodes),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:fic),e=d.next();!e.done;e=d.next()){var f=e.value;f()}}finally{Nd(b)}};var hic=Vna(null,"core",[]);var iic=/\s+/,jic=[],Pv=function(a,b){this._ngEl=a;this._renderer=b;this.initialClasses=jic;this.stateMap=new Map};Pv.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()};
Pv.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})};Pv.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}};
Pv.prototype._toggleClass=function(a,b){var c=this;a=a.trim();a.length>0&&a.split(iic).forEach(function(d){b?c._renderer.addClass(c._ngEl.nativeElement,d):c._renderer.removeClass(c._ngEl.nativeElement,d)})};nd.Object.defineProperties(Pv.prototype,{klass:{configurable:!0,enumerable:!0,set:function(a){this.initialClasses=a!=null?a.trim().split(iic):jic}},ngClass:{configurable:!0,enumerable:!0,set:function(a){this.rawClass=typeof a==="string"?a.trim().split(iic):a}}});
Pv.\u0275fac=function(a){return new (a||Pv)(of(Te),of(Ji))};Pv.\u0275dir=vf({type:Pv,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}});var kic=function(a,b,c,d){this.$implicit=a;this.ngForOf=b;this.index=c;this.count=d};nd.Object.defineProperties(kic.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 Qv=function(a,b,c){this._viewContainer=a;this._template=b;this._differs=c;this._ngForOf=null;this._ngForOfDirty=!0;this._differ=null};Qv.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)};
Qv.prototype._applyChanges=function(a){var b=this,c=this._viewContainer;Qhc(a,function(h,k,q){h.previousIndex==null?c.createEmbeddedView(b._template,new kic(h.item,b._ngForOf,-1,-1),q===null?void 0:q):q==null?c.remove(k===null?void 0:k):k!==null&&(k=c.get(k),c.move(k,q),k.context.$implicit=h.item)});for(var d=0,e=c.length;d<e;d++){var f=c.get(d).context;f.index=d;f.count=e;f.ngForOf=this._ngForOf}Rhc(a,function(h){c.get(h.currentIndex).context.$implicit=h.item})};
nd.Object.defineProperties(Qv.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)}}});Qv.\u0275fac=function(a){return new (a||Qv)(of(fh),of(eh),of(Jv))};
Qv.\u0275dir=vf({type:Qv,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}});var Rv=function(a,b){this._viewContainer=a;this._context=new lic;this._elseViewRef=this._thenViewRef=this._elseTemplateRef=null;this._thenTemplateRef=b};
Rv.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)))};
nd.Object.defineProperties(Rv.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){moa(a);this._thenTemplateRef=a;this._thenViewRef=null;this._updateView()}},ngIfElse:{configurable:!0,enumerable:!0,set:function(a){moa(a);this._elseTemplateRef=a;this._elseViewRef=null;this._updateView()}}});Rv.\u0275fac=function(a){return new (a||Rv)(of(fh),of(eh))};
Rv.\u0275dir=vf({type:Rv,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}});var lic=function(){this.ngIf=this.$implicit=null};var Sv=function(a){this._viewContainerRef=a;this.ngTemplateOutletInjector=this.ngTemplateOutlet=this.ngTemplateOutletContext=this._viewRef=null};Sv.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};
Sv.prototype._shouldRecreateView=function(a){return!!a.ngTemplateOutlet||!!a.ngTemplateOutletInjector};Sv.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)}})};Sv.\u0275fac=function(a){return new (a||Sv)(of(fh))};
Sv.\u0275dir=vf({type:Sv,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[ov]});var mic=function(){};mic.prototype.createSubscription=function(a,b,c){return Sd(function(){return a.subscribe({next:b,error:c})})};mic.prototype.dispose=function(a){Sd(function(){return a.unsubscribe()})};var nic=function(){};nic.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}}};nic.prototype.dispose=function(a){a.unsubscribe()};
var oic=new nic,pic=new mic,Tv=function(a){this._latestValue=null;this.markForCheckOnValueUpdate=!0;this._strategy=this._obj=this._subscription=null;this.applicationErrorHandler=r(lf);this._ref=a};g=Tv.prototype;g.ngOnDestroy=function(){this._subscription&&this._dispose();this._ref=null};
g.transform=function(a){if(!this._obj){if(a)try{this.markForCheckOnValueUpdate=!1,this._subscribe(a)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return a!==this._obj?(this._dispose(),this.transform(a)):this._latestValue};g._subscribe=function(a){var b=this;this._obj=a;this._strategy=this._selectStrategy(a);this._subscription=this._strategy.createSubscription(a,function(c){return b._updateLatestValue(a,c)},function(c){return b.applicationErrorHandler(c)})};
g._selectStrategy=function(a){if(Oja(a))return oic;if(Pja(a))return pic;throw ei();};g._dispose=function(){this._strategy.dispose(this._subscription);this._obj=this._subscription=this._latestValue=null};g._updateLatestValue=function(a,b){if(a===this._obj&&(this._latestValue=b,this.markForCheckOnValueUpdate)){var c;(c=this._ref)==null||c.markForCheck()}};Tv.\u0275fac=function(a){return new (a||Tv)(of(Hv,16))};Tv.\u0275pipe=wf({name:"async",type:Tv,pure:!1});var Uv=function(){};Uv.prototype.transform=function(a){if(a==null)return null;if(typeof a!=="string")throw ei();return a.toLowerCase()};Uv.\u0275fac=function(a){return new (a||Uv)};Uv.\u0275pipe=wf({name:"lowercase",type:Uv,pure:!0});
var qic=/(?:[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,Vv=
function(){};Vv.prototype.transform=function(a){if(a==null)return null;if(typeof a!=="string")throw ei();return a.replace(qic,function(b){return b[0].toUpperCase()+b.slice(1).toLowerCase()})};Vv.\u0275fac=function(a){return new (a||Vv)};Vv.\u0275pipe=wf({name:"titlecase",type:Vv,pure:!0});var Moa=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Hoa={},yoa=/((?:[^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]*)/,Boa={};var ric=new le(""),sic=new le(""),Wv=function(a,b,c){this.locale=a;this.defaultTimezone=b;this.defaultOptions=c};Wv.prototype.transform=function(a,b,c,d){if(a==null||a===""||a!==a)return null;try{var e,f,h=(f=b!=null?b:(e=this.defaultOptions)==null?void 0:e.dateFormat)!=null?f:"mediumDate",k,q,v,A=(v=(q=c!=null?c:(k=this.defaultOptions)==null?void 0:k.timezone)!=null?q:this.defaultTimezone)!=null?v:void 0;return Foa(a,h,d||this.locale,A)}catch(E){throw ei();}};
Wv.\u0275fac=function(a){return new (a||Wv)(of(Lna,16),of(ric,24),of(sic,24))};Wv.\u0275pipe=wf({name:"date",type:Wv,pure:!0});var Xv=function(){};Xv.prototype.transform=function(a){return JSON.stringify(a,null,2)};Xv.\u0275fac=function(a){return new (a||Xv)};Xv.\u0275pipe=wf({name:"json",type:Xv,pure:!1});var Yv=function(a){this.differs=a;this.keyValues=[];this.compareFn=Ooa};Yv.prototype.transform=function(a,b){var c=this;b=b===void 0?Ooa: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};
Yv.\u0275fac=function(a){return new (a||Yv)(of(Kv,16))};Yv.\u0275pipe=wf({name:"keyvalue",type:Yv,pure:!1});var Roa=/^(\d+)?\.((\d+)(-(\d+))?)?$/;var Zv=function(a){this._locale=a};
Zv.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 Vd(2309,!1);var d=a}else d=Number(a);a=d;var e=Zg(c)[14][0],f=di(c,5);f=f===void 0?"-":f;d={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0};var h=e.split(";"),k=h[0],q=h[1],v=k.indexOf(".")!==-1?k.split("."):[k.substring(0,k.lastIndexOf("0")+1),k.substring(k.lastIndexOf("0")+
1)],A=v[0],E=v[1]||"";d.posPre=A.substring(0,A.indexOf("#"));for(e=0;e<E.length;e++){var H=E.charAt(e);H==="0"?d.minFrac=d.maxFrac=e+1:H==="#"?d.maxFrac=e+1:d.posSuf+=H}var L=A.split(",");d.gSize=L[1]?L[1].length:0;d.lgSize=L[2]||L[1]?(L[2]||L[1]).length:0;if(q){var O=k.length-d.posPre.length-d.posSuf.length,S=q.indexOf("#");d.negPre=q.substring(0,S).replace(/'/g,"");d.negSuf=q.slice(S+O).replace(/'/g,"")}else d.negPre=f+d.posPre,d.negSuf=d.posSuf;return Uoa(a,d,c,b)}catch(aa){throw ei();}};
Zv.\u0275fac=function(a){return new (a||Zv)(of(Lna,16))};Zv.\u0275pipe=wf({name:"number",type:Zv,pure:!0});var $v=function(){};$v.prototype.transform=function(a,b,c){if(a==null)return null;if(typeof a!=="string"&&!Array.isArray(a))throw ei();return a.slice(b,c)};$v.\u0275fac=function(a){return new (a||$v)};$v.\u0275pipe=wf({name:"slice",type:$v,pure:!1});var aw=function(){};aw.\u0275fac=function(a){return new (a||aw)};aw.\u0275mod=uf({type:aw});aw.\u0275inj=Dd({});var tic=function(a){return a.src};new le("",{providedIn:"root",factory:function(){return tic}});new le("");new le("",{providedIn:"root",factory:function(){return new Set}});var uic=null,vic=function(){};var bw=function(){};bw.prototype.historyGo=function(){throw Error("aa");};bw.\u0275fac=function(a){return new (a||bw)};bw.\u0275prov=Cd({token:bw,factory:function(){return r(cw)},providedIn:"platform"});var wic=new le(""),cw=function(){this._doc=r(ui);this._location=window.location;this._history=window.history};Y(cw,bw);cw.prototype.onPopState=function(a){var b=xic(this._doc,"window");b.addEventListener("popstate",a,!1);return function(){return b.removeEventListener("popstate",a)}};
var yic=function(a,b){var c=xic(a._doc,"window");c.addEventListener("hashchange",b,!1);return function(){return c.removeEventListener("hashchange",b)}};g=cw.prototype;g.pushState=function(a,b,c){this._history.pushState(a,b,c)};g.replaceState=function(a,b,c){this._history.replaceState(a,b,c)};g.forward=function(){this._history.forward()};g.back=function(){this._history.back()};g.historyGo=function(a){this._history.go(a===void 0?0:a)};g.getState=function(){return this._history.state};
nd.Object.defineProperties(cw.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}}});cw.\u0275fac=function(a){return new (a||cw)};cw.\u0275prov=Cd({token:cw,factory:function(){return new cw},providedIn:"platform"});var dw=function(){};dw.prototype.historyGo=function(){throw Error("aa");};dw.\u0275fac=function(a){return new (a||dw)};dw.\u0275prov=Cd({token:dw,factory:function(){return r(ew)},providedIn:"root"});var zic=new le(""),ew=function(a,b){this._platformLocation=a;this._removeListenerFns=[];var c,d,e;this._baseHref=(e=(d=b!=null?b:uic.getBaseHref())!=null?d:(c=r(ui).location)==null?void 0:c.origin)!=null?e:""};Y(ew,dw);g=ew.prototype;g.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};
g.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),yic(this._platformLocation,a))};g.getBaseHref=function(){return this._baseHref};g.prepareExternalUrl=function(a){return Voa(this._baseHref,a)};g.path=function(a){var b=this._platformLocation.pathname+ji(this._platformLocation.search),c=this._platformLocation.hash;return c&&(a===void 0?0:a)?b+c:b};g.pushState=function(a,b,c,d){this._platformLocation.pushState(a,b,this.prepareExternalUrl(c+ji(d)))};
g.replaceState=function(a,b,c,d){this._platformLocation.replaceState(a,b,this.prepareExternalUrl(c+ji(d)))};g.forward=function(){this._platformLocation.forward()};g.back=function(){this._platformLocation.back()};g.getState=function(){return this._platformLocation.getState()};g.historyGo=function(a){var b,c;(c=(b=this._platformLocation).historyGo)==null||c.call(b,a===void 0?0:a)};ew.\u0275fac=function(a){return new (a||ew)(be(bw),be(zic,8))};ew.\u0275prov=Cd({token:ew,factory:ew.\u0275fac,providedIn:"root"});var hw=function(a,b){this._platformLocation=a;this._baseHref="";this._removeListenerFns=[];b!=null&&(this._baseHref=b)};Y(hw,dw);g=hw.prototype;g.ngOnDestroy=function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()};g.onPopState=function(a){this._removeListenerFns.push(this._platformLocation.onPopState(a),yic(this._platformLocation,a))};g.getBaseHref=function(){return this._baseHref};
g.path=function(){var a,b=(a=this._platformLocation.hash)!=null?a:"#";return b.length>0?b.substring(1):b};g.prepareExternalUrl=function(a){a=Voa(this._baseHref,a);return a.length>0?"#"+a:a};g.pushState=function(a,b,c,d){this._platformLocation.pushState(a,b,this.prepareExternalUrl(c+ji(d))||this._platformLocation.pathname)};g.replaceState=function(a,b,c,d){this._platformLocation.replaceState(a,b,this.prepareExternalUrl(c+ji(d))||this._platformLocation.pathname)};g.forward=function(){this._platformLocation.forward()};
g.back=function(){this._platformLocation.back()};g.getState=function(){return this._platformLocation.getState()};g.historyGo=function(a){var b,c;(c=(b=this._platformLocation).historyGo)==null||c.call(b,a===void 0?0:a)};hw.\u0275fac=function(a){return new (a||hw)(be(bw),be(zic,8))};hw.\u0275prov=Cd({token:hw,factory:hw.\u0275fac});var Mi=function(a){var b=this;this._subject=new tg;this._urlChangeListeners=[];this._urlChangeSubscription=null;this._locationStrategy=a;a=this._locationStrategy.getBaseHref();this._basePath=Xoa(Woa(a.replace(/\/index.html$/,"")));this._locationStrategy.onPopState(function(c){b._subject.next({url:b.path(!0),pop:!0,state:c.state,type:c.type})})};g=Mi.prototype;g.ngOnDestroy=function(){var a;(a=this._urlChangeSubscription)==null||a.unsubscribe();this._urlChangeListeners=[]};
g.path=function(a){return this.normalize(this._locationStrategy.path(a===void 0?!1:a))};g.getState=function(){return this._locationStrategy.getState()};g.normalize=function(a){var b=Mi.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(Mi,c)};g.prepareExternalUrl=function(a){a&&a[0]!=="/"&&(a="/"+a);return this._locationStrategy.prepareExternalUrl(a)};
g.go=function(a,b,c){b=b===void 0?"":b;c=c===void 0?null:c;this._locationStrategy.pushState(c,"",a,b);this._notifyUrlChangeListeners(this.prepareExternalUrl(a+ji(b)),c)};g.replaceState=function(a,b,c){b=b===void 0?"":b;c=c===void 0?null:c;this._locationStrategy.replaceState(c,"",a,b);this._notifyUrlChangeListeners(this.prepareExternalUrl(a+ji(b)),c)};g.forward=function(){this._locationStrategy.forward()};g.back=function(){this._locationStrategy.back()};
g.historyGo=function(a){var b,c;(c=(b=this._locationStrategy).historyGo)==null||c.call(b,a===void 0?0:a)};g._notifyUrlChangeListeners=function(a,b){a=a===void 0?"":a;this._urlChangeListeners.forEach(function(c){return c(a,b)})};g.subscribe=function(a,b,c){return this._subject.subscribe({next:a,error:b!=null?b:void 0,complete:c!=null?c:void 0})};Mi.stripTrailingSlash=Woa;Mi.\u0275fac=function(a){return new (a||Mi)(be(dw))};Mi.\u0275prov=Cd({token:Mi,factory:function(){return new Mi(be(dw))},providedIn:"root"});var Aic=function(){};Aic.\u0275prov=Cd({token:Aic,providedIn:"root",factory:function(){return new Bic}});var Bic=function(){var a=r(ui),b=window;this.document=a;this.window=b;this.offset=function(){return[0,0]}},Cic=function(a,b){a.offset=Array.isArray(b)?function(){return b}:b};Bic.prototype.getScrollPosition=function(){return[this.window.scrollX,this.window.scrollY]};var Dic=function(a,b){a.window.scrollTo(Object.assign({},void 0,{left:b[0],top:b[1]}))};var Eic=function(){};var $oa,apa="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 cpa;var gpa,epa;var ipa;var Fic;try{Fic=typeof Intl!=="undefined"&&Intl.v8BreakIterator}catch(a){Fic=!1}
var zi=function(){this.EDGE=(this.isBrowser=(this._platformId=r(xgc))?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&&!Fic)&&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};zi.\u0275fac=function(a){return new (a||zi)};zi.\u0275prov=Cd({token:zi,factory:zi.\u0275fac,providedIn:"root"});var Gic=new le("cdk-input-modality-detector-options"),Hic={ignoreKeys:[18,17,224,91,16]},Iic={passive:!0,capture:!0},iw=function(){var a=this;this._platform=r(zi);this._mostRecentTarget=null;this._modality=new Kn(null);this._lastTouchMs=0;this._onKeydown=function(f){var h,k;((h=a._options)==null?0:(k=h.ignoreKeys)==null?0:k.some(function(q){return q===f.keyCode}))||(a._modality.next("keyboard"),a._mostRecentTarget=ni(f))};this._onMousedown=function(f){Date.now()-a._lastTouchMs<650||(a._modality.next(Yoa(f)?
"keyboard":"mouse"),a._mostRecentTarget=ni(f))};this._onTouchstart=function(f){Zoa(f)?a._modality.next("keyboard"):(a._lastTouchMs=Date.now(),a._modality.next("touch"),a._mostRecentTarget=ni(f))};var b=r(Ph),c=r(ui),d=r(Gic,{optional:!0});this._options=Object.assign({},Hic,d);this.modalityDetected=this._modality.pipe(vg(1));this.modalityDetected.pipe(og());if(this._platform.isBrowser){var e=r(qf).createRenderer(null,null);this._listenerCleanups=b.runOutsideAngular(function(){return[e.listen(c,"keydown",
a._onKeydown,Iic),e.listen(c,"mousedown",a._onMousedown,Iic),e.listen(c,"touchstart",a._onTouchstart,Iic)]})}};iw.prototype.ngOnDestroy=function(){this._modality.complete();var a;(a=this._listenerCleanups)==null||a.forEach(function(b){return b()})};nd.Object.defineProperties(iw.prototype,{mostRecentModality:{configurable:!0,enumerable:!0,get:function(){return this._modality.value}}});iw.\u0275fac=function(a){return new (a||iw)};iw.\u0275prov=Cd({token:iw,factory:iw.\u0275fac,providedIn:"root"});var Jic=new le("cdk-focus-monitor-default-options"),Kic=li({passive:!0,capture:!0}),jw=function(){var a=this;this._ngZone=r(Ph);this._platform=r(zi);this._inputModalityDetector=r(iw);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=
r(ui);this._stopInputModalityDetector=new tg;this._rootNodeFocusAndBlurListener=function(c){for(var d=ni(c);d;d=d.parentElement)c.type==="focus"?a._onFocus(c,d):a._onBlur(c,d)};var b;this._detectionMode=((b=r(Jic,{optional:!0}))==null?void 0:b.detectionMode)||0};
jw.prototype.monitor=function(a,b){b=b===void 0?!1:b;a=ri(a);if(!this._platform.isBrowser||a.nodeType!==1)return Nf();var c=jpa(a)||this._document,d=this._elementInfo.get(a);if(d)return b&&(d.checkChildren=!0),d.subject;b={checkChildren:b,subject:new tg,rootNode:c};this._elementInfo.set(a,b);this._registerGlobalListeners(b);return b.subject};jw.prototype.stopMonitoring=function(a){a=ri(a);var b=this._elementInfo.get(a);b&&(b.subject.complete(),this._setClasses(a),this._elementInfo.delete(a),this._removeGlobalListeners(b))};
var kw=function(a,b,c,d){b=ri(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))};g=jw.prototype;g.ngOnDestroy=function(){var a=this;this._elementInfo.forEach(function(b,c){return a.stopMonitoring(c)})};g._getWindow=function(){return this._document.defaultView||window};
g._getFocusOrigin=function(a){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(a)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:a&&this._isLastInteractionFromInputLabel(a)?"mouse":"program"};g._shouldBeAttributedToTouch=function(a){return this._detectionMode===1||!(a==null||!a.contains(this._inputModalityDetector._mostRecentTarget))};
g._setClasses=function(a,b){a.classList.toggle("cdk-focused",!!b);a.classList.toggle("cdk-touch-focused",b==="touch");a.classList.toggle("cdk-keyboard-focused",b==="keyboard");a.classList.toggle("cdk-mouse-focused",b==="mouse");a.classList.toggle("cdk-program-focused",b==="program")};
g._setOrigin=function(a,b){var c=this;b=b===void 0?!1:b;this._ngZone.runOutsideAngular(function(){c._origin=a;c._originFromTouchInteraction=a==="touch"&&b;c._detectionMode===0&&(clearTimeout(c._originTimeoutId),c._originTimeoutId=setTimeout(function(){return c._origin=null},c._originFromTouchInteraction?650:1))})};g._onFocus=function(a,b){var c=this._elementInfo.get(b);a=ni(a);c&&(c.checkChildren||b===a)&&this._originChanged(b,this._getFocusOrigin(a),c)};
g._onBlur=function(a,b){var c=this._elementInfo.get(b);!c||c.checkChildren&&a.relatedTarget instanceof Node&&b.contains(a.relatedTarget)||(this._setClasses(b),this._emitOrigin(c,null))};g._emitOrigin=function(a,b){a.subject.observers.length&&this._ngZone.run(function(){return a.subject.next(b)})};
g._registerGlobalListeners=function(a){var b=this;if(this._platform.isBrowser){var c=a.rootNode;(a=this._rootNodeFocusListenerCount.get(c)||0)||this._ngZone.runOutsideAngular(function(){c.addEventListener("focus",b._rootNodeFocusAndBlurListener,Kic);c.addEventListener("blur",b._rootNodeFocusAndBlurListener,Kic)});this._rootNodeFocusListenerCount.set(c,a+1);++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(function(){b._getWindow().addEventListener("focus",b._windowFocusListener)}),
this._inputModalityDetector.modalityDetected.pipe(yg(this._stopInputModalityDetector)).subscribe(function(d){b._setOrigin(d,!0)}))}};
g._removeGlobalListeners=function(a){a=a.rootNode;if(this._rootNodeFocusListenerCount.has(a)){var b=this._rootNodeFocusListenerCount.get(a);b>1?this._rootNodeFocusListenerCount.set(a,b-1):(a.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Kic),a.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Kic),this._rootNodeFocusListenerCount.delete(a))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),
clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))};g._originChanged=function(a,b,c){this._setClasses(a,b);this._emitOrigin(c,b);this._lastFocusOrigin=b};g._getClosestElementsInfo=function(a){var b=[];this._elementInfo.forEach(function(c,d){(d===a||c.checkChildren&&d.contains(a))&&b.push([d,c])});return b};
g._isLastInteractionFromInputLabel=function(a){var b=this._inputModalityDetector,c=b._mostRecentTarget;if(b.mostRecentModality!=="mouse"||!c||c===a||a.nodeName!=="INPUT"&&a.nodeName!=="TEXTAREA"||a.disabled)return!1;if(a=a.labels)for(b=0;b<a.length;b++)if(a[b].contains(c))return!0;return!1};jw.\u0275fac=function(a){return new (a||jw)};jw.\u0275prov=Cd({token:jw,factory:jw.\u0275fac,providedIn:"root"});
var lw=function(){this._elementRef=r(Te);this._focusMonitor=r(jw);this._focusOrigin=null;this.cdkFocusChange=new nq};lw.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)})};lw.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);this._monitorSubscription&&this._monitorSubscription.unsubscribe()};
nd.Object.defineProperties(lw.prototype,{focusOrigin:{configurable:!0,enumerable:!0,get:function(){return this._focusOrigin}}});lw.\u0275fac=function(a){return new (a||lw)};lw.\u0275dir=vf({type:lw,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]});var mw=function(){this._platform=r(zi)};mw.prototype.isDisabled=function(a){return a.hasAttribute("disabled")};mw.prototype.isVisible=function(a){return!!(a.offsetWidth||a.offsetHeight||typeof a.getClientRects==="function"&&a.getClientRects().length)&&getComputedStyle(a).visibility==="visible"};
var Lic=function(a,b){if(!a._platform.isBrowser)return!1;try{var c=(b.ownerDocument&&b.ownerDocument.defaultView||window).frameElement}catch(h){c=null}if(c&&(mpa(c)===-1||!a.isVisible(c)))return!1;c=b.nodeName.toLowerCase();var d=mpa(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};
mw.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")||lpa(a);return c&&!this.isDisabled(a)&&((b==null?void 0:b.ignoreVisibility)||this.isVisible(a))};mw.\u0275fac=function(a){return new (a||mw)};mw.\u0275prov=Cd({token:mw,factory:mw.\u0275fac,providedIn:"root"});var Mic=new WeakMap,Di=function(){this._injector=r(Cg);this._environmentInjector=r(pf)};Di.prototype.load=function(a){var b=this._appRef=this._appRef||this._injector.get(Wh),c=Mic.get(b);c||(c={loaders:new Set,refs:[]},Mic.set(b,c),b.onDestroy(function(){var d;(d=Mic.get(b))==null||d.refs.forEach(function(e){return e.destroy()});Mic.delete(b)}));c.loaders.has(a)||(c.loaders.add(a),c.refs.push(koa(a,{environmentInjector:this._environmentInjector})))};Di.\u0275fac=function(a){return new (a||Di)};
Di.\u0275prov=Cd({token:Di,factory:Di.\u0275fac,providedIn:"root"});var nw=function(){};nw.\u0275fac=function(a){return new (a||nw)};nw.\u0275cmp=y({type:nw,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 qw=function(a,b,c,d,e,f){var h=this;this._element=a;this._checker=b;this._ngZone=c;this._document=d;this._injector=f;this._hasAttached=!1;this.startAnchorListener=function(){return Nic(h)};this.endAnchorListener=function(){return ow(h)};this._enabled=!0;(e===void 0?0:e)||pw(this)};
qw.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 pw=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))},Oic=function(a){return new Promise(function(b){a._executeOnStable(function(){return b(a.focusInitialElement())})})};
qw.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)};
qw.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 ow(this,a)};var ow=function(a,b){(a=a._getRegionBoundary("start"))&&a.focus(b);return!!a},Nic=function(a){(a=a._getRegionBoundary("end"))&&a.focus(void 0);return!!a};g=qw.prototype;g.hasAttached=function(){return this._hasAttached};
g._getFirstTabbableElement=function(a){if(this._checker.isFocusable(a)&&Lic(this._checker,a))return a;a=a.children;for(var b=0;b<a.length;b++){var c=a[b].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(a[b]):null;if(c)return c}return null};g._getLastTabbableElement=function(a){if(this._checker.isFocusable(a)&&Lic(this._checker,a))return a;a=a.children;for(var b=a.length-1;b>=0;b--){var c=a[b].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(a[b]):null;if(c)return c}return null};
g._createAnchor=function(){var a=this._document.createElement("div");this._toggleAnchorTabIndex(this._enabled,a);a.classList.add("cdk-visually-hidden");a.classList.add("cdk-focus-trap-anchor");a.setAttribute("aria-hidden","true");return a};g._toggleAnchorTabIndex=function(a,b){a?b.setAttribute("tabindex","0"):b.removeAttribute("tabindex")};var Pic=function(a,b){a._startAnchor&&a._endAnchor&&(a._toggleAnchorTabIndex(b,a._startAnchor),a._toggleAnchorTabIndex(b,a._endAnchor))};
qw.prototype._executeOnStable=function(a){this._injector?Ig(a,{injector:this._injector}):setTimeout(a)};nd.Object.defineProperties(qw.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 rw=function(){this._checker=r(mw);this._ngZone=r(Ph);this._document=r(ui);this._injector=r(Cg);r(Di).load(nw)};
rw.prototype.create=function(a,b){return new qw(a,this._checker,this._ngZone,this._document,b===void 0?!1:b,this._injector)};rw.\u0275fac=function(a){return new (a||rw)};rw.\u0275prov=Cd({token:rw,factory:rw.\u0275fac,providedIn:"root"});var sw=function(){this._elementRef=r(Te);this._focusTrapFactory=r(rw);this._previouslyFocusedElement=null;r(zi).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))};g=sw.prototype;
g.ngOnDestroy=function(){var a;(a=this.focusTrap)==null||a.destroy();this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)};g.ngAfterContentInit=function(){var a;(a=this.focusTrap)==null||pw(a);this.autoCapture&&this._captureFocus()};g.ngDoCheck=function(){this.focusTrap&&!this.focusTrap.hasAttached()&&pw(this.focusTrap)};
g.ngOnChanges=function(a){a=a.autoCapture;var b;a&&!a.firstChange&&this.autoCapture&&((b=this.focusTrap)==null?0:b.hasAttached())&&this._captureFocus()};g._captureFocus=function(){this._previouslyFocusedElement=mi();var a;(a=this.focusTrap)==null||Oic(a)};nd.Object.defineProperties(sw.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)}}});
sw.\u0275fac=function(a){return new (a||sw)};sw.\u0275dir=vf({type:sw,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",$h],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",$h]},exportAs:["cdkTrapFocus"],features:[ov]});var Qic=new Set,tw,Qi=function(){this._platform=r(zi);this._nonce=r(ygc,{optional:!0});this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):npa};Qi.prototype.matchMedia=function(a){if(this._platform.WEBKIT||this._platform.BLINK){var b=this._nonce;if(!Qic.has(a))try{tw||(tw=document.createElement("style"),b&&tw.setAttribute("nonce",b),tw.setAttribute("type","text/css"),document.head.appendChild(tw)),tw.sheet&&(tw.sheet.insertRule("@media "+a+" {body{ }}",0),Qic.add(a))}catch(c){console.error(c)}}return this._matchMedia(a)};
Qi.\u0275fac=function(a){return new (a||Qi)};Qi.\u0275prov=Cd({token:Qi,factory:Qi.\u0275fac,providedIn:"root"});var uw=function(){this._mediaMatcher=r(Qi);this._zone=r(Ph);this._queries=new Map;this._destroySubject=new tg};uw.prototype.ngOnDestroy=function(){this._destroySubject.next();this._destroySubject.complete()};
uw.prototype.observe=function(a){var b=this;a=opa(oi(a)).map(function(c){return b._registerQuery(c).observable});a=Uf(a);a=Xf(a.pipe(mg(1)),a.pipe(vg(1),kg(0)));return a.pipe(C(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}))};
uw.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 Cf(function(e){var f=function(h){return b._zone.run(function(){return e.next(h)})};c.addListener(f);return function(){c.removeListener(f)}})).pipe(wg(c),C(function(e){return{query:a,matches:e.matches}}),yg(this._destroySubject)),mql:c};this._queries.set(a,d);return d};uw.\u0275fac=function(a){return new (a||uw)};
uw.\u0275prov=Cd({token:uw,factory:uw.\u0275fac,providedIn:"root"});var vw=function(){var a=this;this._platform=r(zi);this._document=r(ui);this._breakpointSubscription=r(uw).observe("(forced-colors: active)").subscribe(function(){a._hasCheckedHighContrastMode&&(a._hasCheckedHighContrastMode=!1,a._applyBodyHighContrastModeCssClasses())})},Ric=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};vw.prototype.ngOnDestroy=function(){this._breakpointSubscription.unsubscribe()};
vw.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=Ric(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")}};
vw.\u0275fac=function(a){return new (a||vw)};vw.\u0275prov=Cd({token:vw,factory:vw.\u0275fac,providedIn:"root"});var Sic=new le("liveAnnouncerElement",{providedIn:"root",factory:ppa}),Tic=new le("LIVE_ANNOUNCER_DEFAULT_OPTIONS");var ww=function(){};ww.prototype.create=function(a){return typeof MutationObserver==="undefined"?null:new MutationObserver(a)};ww.\u0275fac=function(a){return new (a||ww)};ww.\u0275prov=Cd({token:ww,factory:ww.\u0275fac,providedIn:"root"});var xw=function(){this._mutationObserverFactory=r(ww);this._observedElements=new Map;this._ngZone=r(Ph)};g=xw.prototype;g.ngOnDestroy=function(){var a=this;this._observedElements.forEach(function(b,c){return a._cleanupObserver(c)})};
g.observe=function(a){var b=this,c=ri(a);return new Cf(function(d){var e=b._observeElement(c).pipe(C(function(f){return f.filter(function(h){return!qpa(h)})}),eg(function(f){return!!f.length})).subscribe(function(f){b._ngZone.run(function(){d.next(f)})});return function(){e.unsubscribe();b._unobserveElement(c)}})};
g._observeElement=function(a){var b=this;return this._ngZone.runOutsideAngular(function(){if(b._observedElements.has(a))b._observedElements.get(a).count++;else{var c=new tg,d=b._mutationObserverFactory.create(function(e){return c.next(e)});d&&d.observe(a,{characterData:!0,childList:!0,subtree:!0});b._observedElements.set(a,{observer:d,stream:c,count:1})}return b._observedElements.get(a).stream})};
g._unobserveElement=function(a){this._observedElements.has(a)&&(this._observedElements.get(a).count--,this._observedElements.get(a).count||this._cleanupObserver(a))};g._cleanupObserver=function(a){if(this._observedElements.has(a)){var b=this._observedElements.get(a),c=b.observer;b=b.stream;c&&c.disconnect();b.complete();this._observedElements.delete(a)}};xw.\u0275fac=function(a){return new (a||xw)};xw.\u0275prov=Cd({token:xw,factory:xw.\u0275fac,providedIn:"root"});
var yw=function(){this._contentObserver=r(xw);this._elementRef=r(Te);this.event=new nq;this._disabled=!1;this._currentSubscription=null};yw.prototype.ngAfterContentInit=function(){this._currentSubscription||this.disabled||this._subscribe()};yw.prototype.ngOnDestroy=function(){this._unsubscribe()};yw.prototype._subscribe=function(){this._unsubscribe();var a=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?a.pipe(kg(this.debounce)):a).subscribe(this.event)};
yw.prototype._unsubscribe=function(){var a;(a=this._currentSubscription)==null||a.unsubscribe()};nd.Object.defineProperties(yw.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=si(a);this._subscribe()}}});yw.\u0275fac=function(a){return new (a||yw)};
yw.\u0275dir=vf({type:yw,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",$h],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]});var zw=function(){};zw.\u0275fac=function(a){return new (a||zw)};zw.\u0275mod=uf({type:zw});zw.\u0275inj=Dd({providers:[ww]});var Uic=0,Aw=function(){this._ngZone=r(Ph);this._defaultOptions=r(Tic,{optional:!0});this._document=r(ui);this._liveElement=r(Sic,{optional:!0})||this._createLiveElement()};g=Aw.prototype;
g.announce=function(a){var b=ge.apply(1,arguments),c=this,d=this._defaultOptions;if(b.length===1&&typeof b[0]==="number")var e=b[0];else{b=l(b);var f=b.next().value;e=b.next().value}this.clear();clearTimeout(this._previousTimeout);f||(f=d&&d.politeness?d.politeness:"polite");e==null&&d&&(e=d.duration);this._liveElement.setAttribute("aria-live",f);this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id);return this._ngZone.runOutsideAngular(function(){c._currentPromise||(c._currentPromise=
new Promise(function(h){return c._currentResolve=h}));clearTimeout(c._previousTimeout);c._previousTimeout=setTimeout(function(){c._liveElement.textContent=a;typeof e==="number"&&(c._previousTimeout=setTimeout(function(){return c.clear()},e));var h;(h=c._currentResolve)==null||h.call(c);c._currentPromise=c._currentResolve=void 0},100);return c._currentPromise})};g.clear=function(){this._liveElement&&(this._liveElement.textContent="")};
g.ngOnDestroy=function(){clearTimeout(this._previousTimeout);var a;(a=this._liveElement)==null||a.remove();this._liveElement=null;var b;(b=this._currentResolve)==null||b.call(this);this._currentPromise=this._currentResolve=void 0};
g._createLiveElement=function(){for(var a=this._document.getElementsByClassName("cdk-live-announcer-element"),b=this._document.createElement("div"),c=0;c<a.length;c++)a[c].remove();b.classList.add("cdk-live-announcer-element");b.classList.add("cdk-visually-hidden");b.setAttribute("aria-atomic","true");b.setAttribute("aria-live","polite");b.id="cdk-live-announcer-"+Uic++;this._document.body.appendChild(b);return b};
g._exposeAnnouncerToModals=function(a){for(var b=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]'),c=0;c<b.length;c++){var d=b[c],e=d.getAttribute("aria-owns");e?e.indexOf(a)===-1&&d.setAttribute("aria-owns",e+" "+a):d.setAttribute("aria-owns",a)}};Aw.\u0275fac=function(a){return new (a||Aw)};Aw.\u0275prov=Cd({token:Aw,factory:Aw.\u0275fac,providedIn:"root"});var Bw=function(){r(vw)._applyBodyHighContrastModeCssClasses()};Bw.\u0275fac=function(a){return new (a||Bw)};Bw.\u0275mod=uf({type:Bw});Bw.\u0275inj=Dd({imports:[zw]});var upa=0,Cw=function(){this._platform=r(zi);this._document=r(ui);this._messageRegistry=new Map;this._messagesContainer=null;this._id=""+upa++;r(Di).load(nw);this._id=r(wgc)+"-"+upa++},Vic=function(a,b,c,d){if(a._canBeDescribed(b,c)){var e=tpa(c,d);typeof c!=="string"?(vpa(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)}},Dw=function(a,b,c,d){if(c&&a._isElementNode(b)){d=
tpa(c,d);a._isElementDescribedByMessage(b,d)&&a._removeMessageReference(b,d);typeof c==="string"&&(b=a._messageRegistry.get(d))&&b.referenceCount===0&&a._deleteMessageElement(d);var e;((e=a._messagesContainer)==null?void 0:e.childNodes.length)===0&&(a._messagesContainer.remove(),a._messagesContainer=null)}};g=Cw.prototype;
g.ngOnDestroy=function(){for(var a=this._document.querySelectorAll('[cdk-describedby-host="'+this._id+'"]'),b=0;b<a.length;b++)this._removeCdkDescribedByReferenceIds(a[b]),a[b].removeAttribute("cdk-describedby-host");var c;(c=this._messagesContainer)==null||c.remove();this._messagesContainer=null;this._messageRegistry.clear()};
g._createMessageElement=function(a,b){var c=this._document.createElement("div");vpa(c,this._id);c.textContent=a;b&&c.setAttribute("role",b);this._createMessagesContainer();this._messagesContainer.appendChild(c);this._messageRegistry.set(tpa(a,b),{messageElement:c,referenceCount:0})};g._deleteMessageElement=function(a){var b,c;(b=this._messageRegistry.get(a))==null||(c=b.messageElement)==null||c.remove();this._messageRegistry.delete(a)};
g._createMessagesContainer=function(){if(!this._messagesContainer){for(var a=this._document.querySelectorAll('.cdk-describedby-message-container[platform="server"]'),b=0;b<a.length;b++)a[b].remove();a=this._document.createElement("div");a.style.visibility="hidden";a.classList.add("cdk-describedby-message-container");a.classList.add("cdk-visually-hidden");this._platform.isBrowser||a.setAttribute("platform","server");this._document.body.appendChild(a);this._messagesContainer=a}};
g._removeCdkDescribedByReferenceIds=function(a){var b=rpa(a,"aria-describedby").filter(function(c){return c.indexOf("cdk-describedby-message")!=0});a.setAttribute("aria-describedby",b.join(" "))};g._addMessageReference=function(a,b){b=this._messageRegistry.get(b);spa(a,"aria-describedby",b.messageElement.id);a.setAttribute("cdk-describedby-host",this._id);b.referenceCount++};
g._removeMessageReference=function(a,b){b=this._messageRegistry.get(b);b.referenceCount--;ti(a,"aria-describedby",b.messageElement.id);a.removeAttribute("cdk-describedby-host")};g._isElementDescribedByMessage=function(a,b){a=rpa(a,"aria-describedby");b=(b=this._messageRegistry.get(b))&&b.messageElement.id;return!!b&&a.indexOf(b)!=-1};
g._canBeDescribed=function(a,b){if(!this._isElementNode(a))return!1;if(b&&typeof b==="object")return!0;b=b==null?"":b.trim();a=a.getAttribute("aria-label");return b?!a||a.trim()!==b:!1};g._isElementNode=function(a){return a.nodeType===this._document.ELEMENT_NODE};Cw.\u0275fac=function(a){return new (a||Cw)};Cw.\u0275prov=Cd({token:Cw,factory:Cw.\u0275fac,providedIn:"root"});var Ew=function(a,b,c,d,e,f,h,k){qw.call(this,a,b,c,d,h.defer,k);this._focusTrapManager=e;this._inertStrategy=f;this._focusTrapManager.register(this)};Y(Ew,qw);Ew.prototype.destroy=function(){this._focusTrapManager.deregister(this);qw.prototype.destroy.call(this)};Ew.prototype._enable=function(){this._inertStrategy.preventFocus(this);Pic(this,!0)};Ew.prototype._disable=function(){this._inertStrategy.allowFocus(this);Pic(this,!1)};
nd.Object.defineProperties(Ew.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 Wic=function(){this._listener=null};Wic.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)})};Wic.prototype.allowFocus=function(a){this._listener&&(a._document.removeEventListener("focus",this._listener,!0),this._listener=null)};
Wic.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)&&ow(a)})};var Xic=new le("FOCUS_TRAP_INERT_STRATEGY");var Fw=function(){this._focusTrapStack=[]};Fw.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()};Fw.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())};Fw.\u0275fac=function(a){return new (a||Fw)};Fw.\u0275prov=Cd({token:Fw,factory:Fw.\u0275fac,providedIn:"root"});var Gw=function(){this._checker=r(mw);this._ngZone=r(Ph);this._focusTrapManager=r(Fw);this._document=r(ui);this._injector=r(Cg);this._inertStrategy=r(Xic,{optional:!0})||new Wic};Gw.prototype.create=function(a,b){b=b===void 0?{defer:!1}:b;var c;typeof b==="boolean"?c={defer:b}:c=b;return new Ew(a,this._checker,this._ngZone,this._document,this._focusTrapManager,this._inertStrategy,c,this._injector)};Gw.\u0275fac=function(a){return new (a||Gw)};Gw.\u0275prov=Cd({token:Gw,factory:Gw.\u0275fac,providedIn:"root"});var Yic={},Fi=function(){this._appId=r(wgc)};Fi.prototype.getId=function(a){this._appId!=="ng"&&(a+=this._appId);Yic.hasOwnProperty(a)||(Yic[a]=0);return a+Yic[a]++};Fi.\u0275fac=function(a){return new (a||Fi)};Fi.\u0275prov=Cd({token:Fi,factory:Fi.\u0275fac,providedIn:"root"});var Zic=function(a,b){this._letterKeyStream=new tg;this._items=[];this._selectedItemIndex=-1;this._pressedLetters=[];this.selectedItem=this._selectedItem=new tg;var c=typeof(b==null?void 0:b.debounceInterval)==="number"?b.debounceInterval:200;if(b==null?0:b.skipPredicate)this._skipPredicateFn=b.skipPredicate;this.setItems(a);this._setupKeyHandler(c)};g=Zic.prototype;g.destroy=function(){this._pressedLetters=[];this._letterKeyStream.complete();this._selectedItem.complete()};
g.setItems=function(a){this._items=a};g.handleKey=function(a){var b=a.keyCode;a.key&&a.key.length===1?this._letterKeyStream.next(a.key.toLocaleUpperCase()):(b>=65&&b<=90||b>=48&&b<=57)&&this._letterKeyStream.next(String.fromCharCode(b))};g.isTyping=function(){return this._pressedLetters.length>0};g.reset=function(){this._pressedLetters=[]};
g._setupKeyHandler=function(a){var b=this;this._letterKeyStream.pipe(zg(function(c){return b._pressedLetters.push(c)}),kg(a),eg(function(){return b._pressedLetters.length>0}),C(function(){return b._pressedLetters.join("").toLocaleUpperCase()})).subscribe(function(c){for(var d=1;d<b._items.length+1;d++){var e=b._items[(b._selectedItemIndex+d)%b._items.length],f=void 0,h=void 0,k=void 0,q=void 0;if(((h=(f=b)._skipPredicateFn)==null||!h.call(f,e))&&((q=(k=e).getLabel)==null?void 0:q.call(k).toLocaleUpperCase().trim().indexOf(c))===
0){b._selectedItem.next(e);break}}b._pressedLetters=[]})};var Hw=function(a,b){var c=this;this._items=a;this._activeItemIndex=nh.apply(null,[-1].concat(p([])));this._activeItem=nh.apply(null,[null].concat(p([])));this._wrap=!1;this._typeaheadSubscription=yf.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 tg;this.change=new tg;a instanceof gh?this._itemChangesSubscription=a.changes.subscribe(function(d){return c._itemsChanged(d.toArray())}):
gg(a)&&(this._effectRef=boa.apply(null,[function(){return c._itemsChanged(a())}].concat(p([{injector:b}]))))};Hw.prototype.skipPredicate=function(a){this._skipPredicateFn=a;return this};
var Iw=function(a){a._wrap=!0;return a},Jw=function(a,b){a._vertical=b===void 0?!0:b;return a},Kw=function(a,b){a._horizontal=b;return a},$ic=function(a){a._allowedModifierKeys=["shiftKey"];return a},ajc=function(a,b){b=b===void 0?200:b;a._typeaheadSubscription.unsubscribe();var c=a._getItemsArray();a._typeahead=new Zic(c,{debounceInterval:typeof b==="number"?b:void 0,skipPredicate:function(d){return a._skipPredicateFn(d)}});a._typeaheadSubscription=a._typeahead.selectedItem.subscribe(function(d){a.setActiveItem(d)});
return a},Lw=function(a){a._homeAndEnd=!0;return a},bjc=function(a){a._pageUpAndDown={enabled:!0,delta:10};return a};Hw.prototype.setActiveItem=function(a){var b=this._activeItem();Mw(this,a);this._activeItem()!==b&&this.change.next(this._activeItemIndex())};
Hw.prototype.onKeydown=function(a){var b=this,c=a.keyCode,d=["altKey","ctrlKey","metaKey","shiftKey"].every(function(h){return!a[h]||b._allowedModifierKeys.indexOf(h)>-1});switch(c){case 9:this.tabOut.next();return;case 40:if(this._vertical&&d){this.setNextItemActive();break}else return;case 38:if(this._vertical&&d){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&d){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&
d){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&d){this._setActiveItemByIndex(0,1);break}else return;case 35:if(this._homeAndEnd&&d){cjc(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||ki(a,"shiftKey")){var e;(e=this._typeahead)==null||e.handleKey(a)}return}var f;(f=this._typeahead)==null||f.reset();a.preventDefault()};Hw.prototype.isTyping=function(){return!!this._typeahead&&this._typeahead.isTyping()};var cjc=function(a){a._setActiveItemByIndex(a._getItemsArray().length-1,-1)};Hw.prototype.setNextItemActive=function(){this._activeItemIndex()<0?this._setActiveItemByIndex(0,1):this._setActiveItemByDelta(1)};
Hw.prototype.setPreviousItemActive=function(){this._activeItemIndex()<0&&this._wrap?cjc(this):this._setActiveItemByDelta(-1)};var Mw=function(a,b){var c=a._getItemsArray();b=typeof b==="number"?b:c.indexOf(b);c=c[b];a._activeItem.set(c==null?null:c);a._activeItemIndex.set(b);(a=a._typeahead)!=null&&(a._selectedItemIndex=b)};g=Hw.prototype;
g.destroy=function(){this._typeaheadSubscription.unsubscribe();var a;(a=this._itemChangesSubscription)==null||a.unsubscribe();var b;(b=this._effectRef)==null||b.destroy();var c;(c=this._typeahead)==null||c.destroy();this.tabOut.complete();this.change.complete()};g._setActiveItemByDelta=function(a){this._wrap?this._setActiveInWrapMode(a):this._setActiveInDefaultMode(a)};
g._setActiveInWrapMode=function(a){for(var b=this._getItemsArray(),c=1;c<=b.length;c++){var d=(this._activeItemIndex()+a*c+b.length)%b.length;if(!this._skipPredicateFn(b[d])){this.setActiveItem(d);break}}};g._setActiveInDefaultMode=function(a){this._setActiveItemByIndex(this._activeItemIndex()+a,a)};g._setActiveItemByIndex=function(a,b){var c=this._getItemsArray();if(c[a]){for(;this._skipPredicateFn(c[a]);)if(a+=b,!c[a])return;this.setActiveItem(a)}};
g._getItemsArray=function(){return gg(this._items)?this._items():this._items instanceof gh?this._items.toArray():this._items};g._itemsChanged=function(a){var b;(b=this._typeahead)==null||b.setItems(a);if(b=this._activeItem())a=a.indexOf(b),a>-1&&a!==this._activeItemIndex()&&(this._activeItemIndex.set(a),(b=this._typeahead)!=null&&(b._selectedItemIndex=a))};
nd.Object.defineProperties(Hw.prototype,{activeItemIndex:{configurable:!0,enumerable:!0,get:function(){return this._activeItemIndex()}},activeItem:{configurable:!0,enumerable:!0,get:function(){return this._activeItem()}}});var Nw=function(){Hw.apply(this,arguments)};Y(Nw,Hw);Nw.prototype.setActiveItem=function(a){this.activeItem&&this.activeItem.setInactiveStyles();Hw.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.setActiveStyles()};var Ow=function(){Hw.apply(this,arguments);this._origin="program"};Y(Ow,Hw);var djc=function(a,b){a._origin=b;return a};Ow.prototype.setActiveItem=function(a){Hw.prototype.setActiveItem.call(this,a);this.activeItem&&this.activeItem.focus(this._origin)};var ejc=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=yf.EMPTY;this._hasInitialFocused=!1;this.change=new tg;a instanceof gh?(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()})):Ska(a)?a.subscribe(function(d){c._items=d;var e;(e=c._typeahead)==null||e.setItems(d);c._updateActiveItemIndex(d);c._initializeFocus()}):(this._items=a,this._initializeFocus());typeof b.shouldActivationFollowFocus==="boolean"&&(this._shouldActivationFollowFocus=b.shouldActivationFollowFocus);b.horizontalOrientation&&(this._horizontalOrientation=b.horizontalOrientation);b.skipPredicate&&(this._skipPredicateFn=b.skipPredicate);b.trackBy&&(this._trackByFn=b.trackBy);typeof b.typeAheadDebounceInterval!==
"undefined"&&this._setTypeAhead(b.typeAheadDebounceInterval)};g=ejc.prototype;
g._initializeFocus=function(){if(!this._hasInitialFocused&&this._items.length!==0){for(var a=0,b=0;b<this._items.length;b++)if(!this._skipPredicateFn(this._items[b])&&!this._isItemDisabled(this._items[b])){a=b;break}b=this._items[a];if(b.makeFocusable){var c;(c=this._activeItem)==null||c.unfocus();this._activeItemIndex=a;this._activeItem=b;(c=this._typeahead)!=null&&(c._selectedItemIndex=a);b.makeFocusable()}else Pw(this,a);this._hasInitialFocused=!0}};
g.destroy=function(){this._typeaheadSubscription.unsubscribe();var a;(a=this._typeahead)==null||a.destroy();this.change.complete()};
g.onKeydown=function(a){switch(a.key){case "Tab":return;case "ArrowDown":this._focusNextItem();break;case "ArrowUp":this._focusPreviousItem();break;case "ArrowRight":this._horizontalOrientation==="rtl"?this._collapseCurrentItem():this._expandCurrentItem();break;case "ArrowLeft":this._horizontalOrientation==="rtl"?this._expandCurrentItem():this._collapseCurrentItem();break;case "Home":this._focusFirstItem();break;case "End":this._focusLastItem();break;case "Enter":case " ":this._activateCurrentItem();
break;default:if(a.key==="*")this._expandAllItemsAtCurrentItemLevel();else{var b;(b=this._typeahead)==null||b.handleKey(a);return}}var c;(c=this._typeahead)==null||c.reset();a.preventDefault()};g._focusFirstItem=function(){Pw(this,this._findNextAvailableItemIndex(-1))};g._focusLastItem=function(){Pw(this,this._findPreviousAvailableItemIndex(this._items.length))};g._focusNextItem=function(){Pw(this,this._findNextAvailableItemIndex(this._activeItemIndex))};g._focusPreviousItem=function(){Pw(this,this._findPreviousAvailableItemIndex(this._activeItemIndex))};
var Pw=function(a,b){var c=c===void 0?{}:c;c.emitChangeEvent!=null||(c.emitChangeEvent=!0);var d=typeof b==="number"?b:a._items.findIndex(function(k){return a._trackByFn(k)===a._trackByFn(b)});if(!(d<0||d>=a._items.length)){var e=a._items[d];if(a._activeItem===null||a._trackByFn(e)!==a._trackByFn(a._activeItem)){var f=a._activeItem;a._activeItem=e!=null?e:null;a._activeItemIndex=d;(e=a._typeahead)!=null&&(e._selectedItemIndex=d);var h;(h=a._activeItem)==null||h.focus();f==null||f.unfocus();c.emitChangeEvent&&
a.change.next(a._activeItem);a._shouldActivationFollowFocus&&a._activateCurrentItem()}}};g=ejc.prototype;g._updateActiveItemIndex=function(a){var b=this,c=this._activeItem;if(c&&(a=a.findIndex(function(e){return b._trackByFn(e)===b._trackByFn(c)}),a>-1&&a!==this._activeItemIndex)){this._activeItemIndex=a;var d;(d=this._typeahead)!=null&&(d._selectedItemIndex=a)}};
g._setTypeAhead=function(a){var b=this;this._typeahead=new Zic(this._items,{debounceInterval:typeof a==="number"?a:void 0,skipPredicate:function(c){return b._skipPredicateFn(c)}});this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(function(c){Pw(b,c)})};g._findNextAvailableItemIndex=function(a){for(var b=a+1;b<this._items.length;b++)if(!this._skipPredicateFn(this._items[b]))return b;return a};
g._findPreviousAvailableItemIndex=function(a){for(var b=a-1;b>=0;b--)if(!this._skipPredicateFn(this._items[b]))return b;return a};g._collapseCurrentItem=function(){if(this._activeItem)if(this._isCurrentItemExpanded())this._activeItem.collapse();else{var a=this._activeItem.getParent();a&&!this._skipPredicateFn(a)&&Pw(this,a)}};
g._expandCurrentItem=function(){var a=this;this._activeItem&&(this._isCurrentItemExpanded()?wpa(this._activeItem.getChildren()).pipe(mg(1)).subscribe(function(b){(b=b.find(function(c){return!a._skipPredicateFn(c)}))&&Pw(a,b)}):this._activeItem.expand())};g._isCurrentItemExpanded=function(){return this._activeItem?typeof this._activeItem.isExpanded==="boolean"?this._activeItem.isExpanded:this._activeItem.isExpanded():!1};
g._isItemDisabled=function(a){var b;return typeof a.isDisabled==="boolean"?a.isDisabled:(b=a.isDisabled)==null?void 0:b.call(a)};g._expandAllItemsAtCurrentItemLevel=function(){if(this._activeItem){var a=this._activeItem.getParent();(a?wpa(a.getChildren()):Nf(this._items.filter(function(b){return b.getParent()===null}))).pipe(mg(1)).subscribe(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next())c.value.expand()})}};g._activateCurrentItem=function(){var a;(a=this._activeItem)==null||a.activate()};
new le("tree-key-manager",{providedIn:"root",factory:function(){return function(a,b){return new ejc(a,b)}}});var fjc=new le("cdk-dir-doc",{providedIn:"root",factory:xpa});var gjc=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,Gi=function(){this.valueSignal=nh.apply(null,["ltr"].concat(p([])));this.change=new nq;var a=r(fjc,{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)?gjc.test(navigator.language)?
"rtl":"ltr":e==="rtl"?"rtl":"ltr";d.call(c,b)}};Gi.prototype.ngOnDestroy=function(){this.change.complete()};nd.Object.defineProperties(Gi.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.valueSignal()}}});Gi.\u0275fac=function(a){return new (a||Gi)};Gi.\u0275prov=Cd({token:Gi,factory:Gi.\u0275fac,providedIn:"root"});var Qw=function(){};Qw.\u0275fac=function(a){return new (a||Qw)};Qw.\u0275mod=uf({type:Qw});Qw.\u0275inj=Dd({});var Rw=function(){this._attachedOverlays=[];this._document=r(ui)};Rw.prototype.ngOnDestroy=function(){this.detach()};Rw.prototype.add=function(a){this.remove(a);this._attachedOverlays.push(a)};Rw.prototype.remove=function(a){a=this._attachedOverlays.indexOf(a);a>-1&&this._attachedOverlays.splice(a,1);this._attachedOverlays.length===0&&this.detach()};Rw.\u0275fac=function(a){return new (a||Rw)};Rw.\u0275prov=Cd({token:Rw,factory:Rw.\u0275fac,providedIn:"root"});var Li=function(){Rw.apply(this,arguments);var a=this;this._ngZone=r(Ph);this._renderer=r(qf).createRenderer(null,null);this._keydownListener=function(b){var c=a._attachedOverlays,d={};for(d.i$jscomp$519=c.length-1;d.i$jscomp$519>-1;d={i$jscomp$519:d.i$jscomp$519},d.i$jscomp$519--)if(c[d.i$jscomp$519]._keydownEvents.observers.length>0){a._ngZone.run(function(e){return function(){return c[e.i$jscomp$519]._keydownEvents.next(b)}}(d));break}}};Y(Li,Rw);
Li.prototype.add=function(a){var b=this;Rw.prototype.add.call(this,a);this._isAttached||(this._ngZone.runOutsideAngular(function(){b._cleanupKeydown=b._renderer.listen("body","keydown",b._keydownListener)}),this._isAttached=!0)};Li.prototype.detach=function(){if(this._isAttached){var a;(a=this._cleanupKeydown)==null||a.call(this);this._isAttached=!1}};Li.\u0275fac=function(){var a;return function(b){return(a||(a=Re(Li)))(b||Li)}}();Li.\u0275prov=Cd({token:Li,factory:Li.\u0275fac,providedIn:"root"});var Ni=function(){Rw.apply(this,arguments);var a=this;this._platform=r(zi);this._ngZone=r(Ph);this._renderer=r(qf).createRenderer(null,null);this._cursorStyleIsSet=!1;this._pointerDownListener=function(b){a._pointerDownEventTarget=ni(b)};this._clickListener=function(b){var c=ni(b),d=b.type==="click"&&a._pointerDownEventTarget?a._pointerDownEventTarget:c;a._pointerDownEventTarget=null;for(var e=a._attachedOverlays.slice(),f={},h=e.length-1;h>-1;f={outsidePointerEvents:void 0},h--){var k=e[h];if(!(k._outsidePointerEvents.observers.length<
1)&&k.hasAttached()){if(ypa(k.overlayElement,c)||ypa(k.overlayElement,d))break;f.outsidePointerEvents=k._outsidePointerEvents;a._ngZone?a._ngZone.run(function(q){return function(){return q.outsidePointerEvents.next(b)}}(f)):f.outsidePointerEvents.next(b)}}}};Y(Ni,Rw);
Ni.prototype.add=function(a){var b=this;Rw.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}};Ni.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}};Ni.\u0275fac=function(){var a;return function(b){return(a||(a=Re(Ni)))(b||Ni)}}();Ni.\u0275prov=Cd({token:Ni,factory:Ni.\u0275fac,providedIn:"root"});var Ei=function(){};Ei.\u0275fac=function(a){return new (a||Ei)};
Ei.\u0275cmp=y({type:Ei,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}\n"],encapsulation:2,
changeDetection:0});var Ai=function(){this._platform=r(zi);this._document=r(ui);this._styleLoader=r(Di)};Ai.prototype.ngOnDestroy=function(){var a;(a=this._containerElement)==null||a.remove()};var Ipa=function(a){a._loadStyles();a._containerElement||a._createContainer();return a._containerElement};
Ai.prototype._createContainer=function(){if(this._platform.isBrowser||kpa())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");kpa()?a.setAttribute("platform","test"):this._platform.isBrowser||a.setAttribute("platform","server");this._document.body.appendChild(a);this._containerElement=a};
Ai.prototype._loadStyles=function(){this._styleLoader.load(Ei)};Ai.\u0275fac=function(a){return new (a||Ai)};Ai.\u0275prov=Cd({token:Ai,factory:Ai.\u0275fac,providedIn:"root"});new le("VIRTUAL_SCROLL_STRATEGY");var wi=function(){this._ngZone=r(Ph);this._platform=r(zi);this._renderer=r(qf).createRenderer(null,null);this._scrolled=new tg;this._scrolledCount=0;this.scrollContainers=new Map};wi.prototype.register=function(a){var b=this;this.scrollContainers.has(a)||this.scrollContainers.set(a,a._elementScrolled.subscribe(function(){return b._scrolled.next(a)}))};wi.prototype.deregister=function(a){var b=this.scrollContainers.get(a);b&&(b.unsubscribe(),this.scrollContainers.delete(a))};
wi.prototype.scrolled=function(a){var b=this;a=a===void 0?20:a;return this._platform.isBrowser?new Cf(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(dla(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}}}):Nf()};wi.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 hjc=function(a,b){var c=[];a.scrollContainers.forEach(function(d,e){a._scrollableContainsElement(e,b)&&c.push(e)});return c};
wi.prototype._scrollableContainsElement=function(a,b){b=ri(b);a=a.elementRef.nativeElement;do if(b==a)return!0;while(b=b.parentElement);return!1};wi.\u0275fac=function(a){return new (a||wi)};wi.\u0275prov=Cd({token:wi,factory:wi.\u0275fac,providedIn:"root"});var Sw=function(){this.elementRef=r(Te);this.scrollDispatcher=r(wi);this.ngZone=r(Ph);this.dir=r(Gi,{optional:!0});this._scrollElement=this.elementRef.nativeElement;this._destroyed=new tg;this._renderer=r(Ji);this._elementScrolled=new tg};Sw.prototype.ngOnInit=function(){var a=this;this._cleanupScroll=this.ngZone.runOutsideAngular(function(){return a._renderer.listen(a._scrollElement,"scroll",function(b){return a._elementScrolled.next(b)})});this.scrollDispatcher.register(this)};
Sw.prototype.ngOnDestroy=function(){var a;(a=this._cleanupScroll)==null||a.call(this);this._elementScrolled.complete();this.scrollDispatcher.deregister(this);this._destroyed.next();this._destroyed.complete()};
Sw.prototype.scrollTo=function(a){var b=this.elementRef.nativeElement,c=this.dir&&this.dir.value=="rtl";a.left==null&&(a.left=c?a.end:a.start);a.right==null&&(a.right=c?a.start:a.end);a.bottom!=null&&(a.top=b.scrollHeight-b.clientHeight-a.bottom);c&&hpa()!=0?(a.left!=null&&(a.right=b.scrollWidth-b.clientWidth-a.left),hpa()==2?a.left=a.right:hpa()==1&&(a.left=a.right?-a.right:a.right)):a.right!=null&&(a.left=b.scrollWidth-b.clientWidth-a.right);this._applyScrollToOptions(a)};
Sw.prototype._applyScrollToOptions=function(a){var b=this.elementRef.nativeElement;fpa()?b.scrollTo(a):(a.top!=null&&(b.scrollTop=a.top),a.left!=null&&(b.scrollLeft=a.left))};Sw.\u0275fac=function(a){return new (a||Sw)};Sw.\u0275dir=vf({type:Sw,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]});var ijc=new le("_ViewRepeater");var jjc=function(){},kjc=function(a,b,c,d){Qhc(a,function(e,f,h){if(e.previousIndex==null){var k=c(e,f,h);k=b.createEmbeddedView(k.templateRef,k.context,k.index);f=1}else h==null?(b.remove(f),f=3):(k=b.get(f),b.move(k,h),f=2);if(d){var q;d({context:(q=k)==null?void 0:q.context,operation:f,record:e})}})};jjc.prototype.detach=function(){};var Tw=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 tg;b&&b.length&&(a?b.forEach(function(f){return e._markSelected(f)}):this._markSelected(b[0]),this._selectedToEmit.length=0)};g=Tw.prototype;
g.select=function(){var a=this;ge.apply(0,arguments).forEach(function(c){return a._markSelected(c)});var b=this._hasQueuedChanges();this._emitChangeEvent();return b};g.deselect=function(){var a=this;ge.apply(0,arguments).forEach(function(c){return a._unmarkSelected(c)});var b=this._hasQueuedChanges();this._emitChangeEvent();return b};g.toggle=function(a){return this.isSelected(a)?this.deselect(a):this.select(a)};
g.clear=function(a){a=a===void 0?!0:a;this._unmarkAll();var b=this._hasQueuedChanges();a&&this._emitChangeEvent();return b};g.isSelected=function(a){return this._selection.has(this._getConcreteValue(a))};g.isEmpty=function(){return this._selection.size===0};g.hasValue=function(){return!this.isEmpty()};g.sort=function(a){this._multiple&&this.selected&&this._selected.sort(a)};
g._emitChangeEvent=function(){this._selected=null;if(this._selectedToEmit.length||this._deselectedToEmit.length)this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[]};g._markSelected=function(a){a=this._getConcreteValue(a);this.isSelected(a)||(this._multiple||this._unmarkAll(),this.isSelected(a)||this._selection.add(a),this._emitChanges&&this._selectedToEmit.push(a))};
g._unmarkSelected=function(a){a=this._getConcreteValue(a);this.isSelected(a)&&(this._selection.delete(a),this._emitChanges&&this._deselectedToEmit.push(a))};g._unmarkAll=function(){var a=this;this.isEmpty()||this._selection.forEach(function(b){return a._unmarkSelected(b)})};g._verifyValueAssignment=function(){};g._hasQueuedChanges=function(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)};
g._getConcreteValue=function(a,b){if(this.compareWith){var c;b=(c=b)!=null?c:this._selection;b=l(b);for(c=b.next();!c.done;c=b.next())if(c=c.value,this.compareWith(a,c))return c}return a};nd.Object.defineProperties(Tw.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){this._selected||(this._selected=Array.from(this._selection.values()));return this._selected}}});var Uw=function(){this._listeners=[]};Uw.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)};Uw.prototype.listen=function(a){var b=this;this._listeners.push(a);return function(){b._listeners=b._listeners.filter(function(c){return a!==c})}};Uw.prototype.ngOnDestroy=function(){this._listeners=[]};Uw.\u0275fac=function(a){return new (a||Uw)};Uw.\u0275prov=Cd({token:Uw,factory:Uw.\u0275fac,providedIn:"root"});var vi=function(){var a=this;this._platform=r(zi);this._change=new tg;this._document=r(ui);var b=r(Ph),c=r(qf).createRenderer(null,null);b.runOutsideAngular(function(){if(a._platform.isBrowser){var d=function(e){return a._change.next(e)};a._listeners=[c.listen("window","resize",d),c.listen("window","orientationchange",d)]}a.change().subscribe(function(){return a._viewportSize=null})})};g=vi.prototype;g.ngOnDestroy=function(){var a;(a=this._listeners)==null||a.forEach(function(b){return b()});this._change.complete()};
g.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var a={width:this._viewportSize.width,height:this._viewportSize.height};this._platform.isBrowser||(this._viewportSize=null);return a};
g.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var a=this._document,b=this._getWindow(),c=a.documentElement,d=c.getBoundingClientRect();return{top:-d.top||a.body.scrollTop||b.scrollY||c.scrollTop||0,left:-d.left||a.body.scrollLeft||b.scrollX||c.scrollLeft||0}};g.change=function(a){a=a===void 0?20:a;return a>0?this._change.pipe(dla(a)):this._change};g._getWindow=function(){return this._document.defaultView||window};
g._updateViewportSize=function(){var a=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:a.innerWidth,height:a.innerHeight}:{width:0,height:0}};vi.\u0275fac=function(a){return new (a||vi)};vi.\u0275prov=Cd({token:vi,factory:vi.\u0275fac,providedIn:"root"});new le("VIRTUAL_SCROLLABLE");var Vw=function(){};Vw.\u0275fac=function(a){return new (a||Vw)};Vw.\u0275mod=uf({type:Vw});Vw.\u0275inj=Dd({});var Ww=function(){};Ww.\u0275fac=function(a){return new (a||Ww)};Ww.\u0275mod=uf({type:Ww});Ww.\u0275inj=Dd({imports:[Qw,Vw,Qw,Vw]});var ljc=fpa(),Apa=function(a,b){this._viewportRuler=a;this._previousHTMLStyles={top:"",left:""};this._isEnabled=!1;this._document=b};Apa.prototype.attach=function(){};
Apa.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=qi(-this._previousScrollPosition.left);a.style.top=qi(-this._previousScrollPosition.top);a.classList.add("cdk-global-scrollblock");this._isEnabled=!0}};
Apa.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");ljc&&(b.scrollBehavior=c.scrollBehavior="auto");window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top);ljc&&(b.scrollBehavior=d,c.scrollBehavior=e)}};
Apa.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 mjc=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()})}};mjc.prototype.attach=function(a){this._overlayRef=a};
mjc.prototype.enable=function(){var a=this;if(!this._scrollSubscription){var b=this._scrollDispatcher.scrolled(0).pipe(eg(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)}};mjc.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};mjc.prototype.detach=function(){this.disable();this._overlayRef=null};var njc=function(){};njc.prototype.enable=function(){};njc.prototype.disable=function(){};njc.prototype.attach=function(){};var Epa=function(a,b,c,d){this._scrollDispatcher=a;this._viewportRuler=b;this._ngZone=c;this._config=d;this._scrollSubscription=null};Epa.prototype.attach=function(a){this._overlayRef=a};
Epa.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;Cpa(b,[{width:d,height:c,bottom:c,right:d,top:0,left:0}])&&(a.disable(),a._ngZone.run(function(){return a._overlayRef.detach()}))}}))};
Epa.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)};Epa.prototype.detach=function(){this.disable();this._overlayRef=null};var Xw=function(){var a=this;this._injector=r(Cg);this.noop=function(){return new njc};this.close=function(b){var c=a._injector;return new mjc(c.get(wi),c.get(Ph),c.get(vi),b)};this.block=function(){return Bpa(a._injector)};this.reposition=function(b){return xi(a._injector,b)}};Xw.\u0275fac=function(a){return new (a||Xw)};Xw.\u0275prov=Cd({token:Xw,factory:Xw.\u0275fac,providedIn:"root"});var Ii=function(a){this.scrollStrategy=new njc;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 ojc=function(a,b,c,d){var e=this;this._renderer=b;this._ngZone=c;this.dispose=function(){clearTimeout(e._fallbackTimeout);var f;(f=e._cleanupClick)==null||f.call(e);var h;(h=e._cleanupTransitionEnd)==null||h.call(e);e._cleanupClick=e._cleanupTransitionEnd=e._fallbackTimeout=void 0;e.element.remove()};this.element=a.createElement("div");this.element.classList.add("cdk-overlay-backdrop");this._cleanupClick=b.listen(this.element,"click",d)};
ojc.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 Ki=function(a,b,c,d,e,f,h,k,q,v,A,E){v=v===void 0?!1:v;this._portalOutlet=a;this._host=b;this._pane=c;this._config=d;this._ngZone=e;this._keyboardDispatcher=f;this._document=h;this._location=k;this._outsideClickDispatcher=q;this._animationsDisabled=v;this._injector=A;this._renderer=E;this._backdropClick=new tg;this._attachments=new tg;this._detachments=new tg;this._locationChanges=yf.EMPTY;this._backdropRef=null;this._keydownEvents=new tg;this._outsidePointerEvents=new tg;d.scrollStrategy&&(this._scrollStrategy=
d.scrollStrategy,this._scrollStrategy.attach(this));this._positionStrategy=d.positionStrategy};g=Ki.prototype;
g.attach=function(a){var b=this;!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);a=this._portalOutlet.attach(a);this._positionStrategy&&this._positionStrategy.attach(this);this._updateStackingOrder();this._updateElementSize();this._updateElementDirection();this._scrollStrategy&&this._scrollStrategy.enable();var c;(c=this._afterNextRenderRef)==null||c.destroy();this._afterNextRenderRef=Ig(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};g.detach=function(){if(this.hasAttached()){pjc(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}};
g.dispose=function(){var a=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose();this._disposeScrollStrategy();var b;(b=this._backdropRef)==null||b.dispose();this._locationChanges.unsubscribe();this._keyboardDispatcher.remove(this);this._portalOutlet.dispose();this._attachments.complete();this._backdropClick.complete();this._keydownEvents.complete();this._outsidePointerEvents.complete();this._outsideClickDispatcher.remove(this);var c;(c=this._host)==null||c.remove();var d;(d=
this._afterNextRenderRef)==null||d.destroy();this._previousHostParent=this._pane=this._host=this._backdropRef=null;a&&this._detachments.next();this._detachments.complete();this._completeDetachContent()};g.hasAttached=function(){return this._portalOutlet.hasAttached()};g.backdropClick=function(){return this._backdropClick};g.attachments=function(){return this._attachments};g.keydownEvents=function(){return this._keydownEvents};g.outsidePointerEvents=function(){return this._outsidePointerEvents};
g.getConfig=function(){return this._config};g.updatePosition=function(){this._positionStrategy&&this._positionStrategy.apply()};var qjc=function(a,b){b!==a._positionStrategy&&(a._positionStrategy&&a._positionStrategy.dispose(),a._positionStrategy=b,a.hasAttached()&&(b.attach(a),a.updatePosition()))};Ki.prototype.updateSize=function(a){this._config=Object.assign({},this._config,a);this._updateElementSize()};
Ki.prototype.setDirection=function(a){this._config=Object.assign({},this._config,{direction:a});this._updateElementDirection()};Ki.prototype.addPanelClass=function(a){this._pane&&this._toggleClasses(this._pane,a,!0)};Ki.prototype.removePanelClass=function(a){this._pane&&this._toggleClasses(this._pane,a,!1)};var rjc=function(a){return(a=a._config.direction)?typeof a==="string"?a:a.value:"ltr"};g=Ki.prototype;g._updateElementDirection=function(){this._host.setAttribute("dir",rjc(this))};
g._updateElementSize=function(){if(this._pane){var a=this._pane.style;a.width=qi(this._config.width);a.height=qi(this._config.height);a.minWidth=qi(this._config.minWidth);a.minHeight=qi(this._config.minHeight);a.maxWidth=qi(this._config.maxWidth);a.maxHeight=qi(this._config.maxHeight)}};g._togglePointerEvents=function(a){this._pane.style.pointerEvents=a?"":"none"};
g._attachBackdrop=function(){var a=this,b;(b=this._backdropRef)==null||b.dispose();this._backdropRef=new ojc(this._document,this._renderer,this._ngZone,function(c){a._backdropClick.next(c)});this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation");this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0);this._host.parentElement.insertBefore(this._backdropRef.element,this._host);this._animationsDisabled||
typeof requestAnimationFrame==="undefined"?this._backdropRef.element.classList.add("cdk-overlay-backdrop-showing"):this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){var c;return(c=a._backdropRef)==null?void 0:c.element.classList.add("cdk-overlay-backdrop-showing")})})};g._updateStackingOrder=function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)};
var pjc=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()}};g=Ki.prototype;g._toggleClasses=function(a,b,c){b=oi(b||[]).filter(function(d){return!!d});b.length&&(c?a.classList.add.apply(a.classList,p(b)):a.classList.remove.apply(a.classList,p(b)))};
g._detachContentWhenEmpty=function(){var a=this,b=!1;try{this._detachContentAfterRenderRef=Ig(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}))};
g._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())};
g._completeDetachContent=function(){var a;(a=this._detachContentAfterRenderRef)==null||a.destroy();this._detachContentAfterRenderRef=void 0;var b;(b=this._detachContentMutationObserver)==null||b.disconnect()};g._disposeScrollStrategy=function(){var a=this._scrollStrategy;a==null||a.disable();var b;a==null||(b=a.detach)==null||b.call(a)};
nd.Object.defineProperties(Ki.prototype,{overlayElement:{configurable:!0,enumerable:!0,get:function(){return this._pane}},hostElement:{configurable:!0,enumerable:!0,get:function(){return this._host}}});var sjc=function(a,b){this.connectionPair=a;this.scrollableViewProperties=b};var Fpa=/([A-Za-z%]+)$/,yi=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 tg;this._resizeSubscription=yf.EMPTY;this._offsetY=this._offsetX=0;this._appliedPanelClasses=[];this.positionChanges=
this._positionChanges;this.setOrigin(a)};yi.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()})};
yi.prototype.apply=function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)tjc(this);else{this._clearPanelClasses();this._resetOverlayElementStyles();this._resetBoundingBoxStyles();this._viewportRect=this._getNarrowedViewportRect();this._originRect=this._getOriginRect();this._overlayRect=this._pane.getBoundingClientRect();this._containerRect=Ipa(this._overlayContainer).getBoundingClientRect();for(var a=this._originRect,b=this._overlayRect,
c=this._viewportRect,d=this._containerRect,e=[],f,h=l(this._preferredPositions),k=h.next();!k.done;k=h.next()){k=k.value;var q=this._getOriginPoint(a,d,k),v=this._getOverlayPoint(q,b,k),A=this._getOverlayFit(v,b,c,k);if(A.isCompletelyWithinViewport){this._isPushed=!1;this._applyPosition(k,q);return}if(this._canFitWithFlexibleDimensions(A,v,c))e.push({position:k,origin:q,overlayRect:b,boundingBoxRect:this._calculateBoundingBoxRect(q,k)});else if(!f||f.overlayFit.visibleArea<A.visibleArea)f={overlayFit:A,
overlayPoint:v,originPoint:q,position:k,overlayRect:b}}if(e.length){a=null;b=-1;e=l(e);for(c=e.next();!c.done;c=e.next())c=c.value,d=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1),d>b&&(b=d,a=c);this._isPushed=!1;this._applyPosition(a.position,a.origin)}else this._canPush&&(this._isPushed=!0),this._applyPosition(f.position,f.originPoint)}};yi.prototype.detach=function(){this._clearPanelClasses();this._previousPushAmount=this._lastPosition=null;this._resizeSubscription.unsubscribe()};
yi.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&Ci(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 tjc=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=Ipa(a._overlayContainer).getBoundingClientRect();var c=a._getOriginPoint(a._originRect,a._containerRect,b);a._applyPosition(b,c)}else a.apply()}},ujc=function(a,b){a._scrollables=b;return a},Yw=function(a,b){a._preferredPositions=b;b.indexOf(a._lastPosition)===-1&&(a._lastPosition=
null);return a},Zw=function(a,b){a._viewportMargin=b;return a},$w=function(a,b){a._hasFlexibleDimensions=b===void 0?!0:b;return a},vjc=function(a,b){a._growAfterOpen=b===void 0?!0:b;return a},wjc=function(a,b){a._canPush=b===void 0?!0:b;return a},xjc=function(a,b){a._positionLocked=b===void 0?!0:b;return a};yi.prototype.setOrigin=function(a){this._origin=a;return this};var yjc=function(a,b){a._transformOriginSelector=b;return a};g=yi.prototype;
g._getOriginPoint=function(a,b,c){if(c.originX=="center")var d=a.left+a.width/2;else{d=this._isRtl()?a.right:a.left;var e=this._isRtl()?a.left:a.right;d=c.originX=="start"?d:e}b.left<0&&(d-=b.left);a=c.originY=="center"?a.top+a.height/2:c.originY=="top"?a.top:a.bottom;b.top<0&&(a-=b.top);return{x:d,y:a}};
g._getOverlayPoint=function(a,b,c){var d=c.overlayX=="center"?-b.width/2:c.overlayX==="start"?this._isRtl()?-b.width:0:this._isRtl()?0:-b.width;return{x:a.x+d,y:a.y+(c.overlayY=="center"?-b.height/2:c.overlayY=="top"?0:-b.height)}};
g._getOverlayFit=function(a,b,c,d){b=Hpa(b);var e=a.x;a=a.y;var f=this._getOffset(d,"x");d=this._getOffset(d,"y");f&&(e+=f);d&&(a+=d);d=-a;a=a+b.height-c.height;c=this._subtractOverflows(b.width,-e,e+b.width-c.width);e=this._subtractOverflows(b.height,d,a);d=c*e;return{visibleArea:d,isCompletelyWithinViewport:b.width*b.height===d,fitsInViewportVertically:e===b.height,fitsInViewportHorizontally:c==b.width}};
g._canFitWithFlexibleDimensions=function(a,b,c){if(this._hasFlexibleDimensions){var d=c.bottom-b.y;c=c.right-b.x;b=Gpa(this._overlayRef.getConfig().minHeight);var e=Gpa(this._overlayRef.getConfig().minWidth);c=a.fitsInViewportHorizontally||e!=null&&e<=c;return(a.fitsInViewportVertically||b!=null&&b<=d)&&c}return!1};
g._pushOverlayOnScreen=function(a,b,c){if(this._previousPushAmount&&this._positionLocked)return{x:a.x+this._previousPushAmount.x,y:a.y+this._previousPushAmount.y};b=Hpa(b);var d=this._viewportRect,e=Math.max(a.x+b.width-d.width,0),f=Math.max(a.y+b.height-d.height,0),h=Math.max(d.top-c.top-a.y,0),k=Math.max(d.left-c.left-a.x,0);e=b.width<=d.width?k||-e:a.x<this._viewportMargin?d.left-c.left-a.x:0;c=b.height<=d.height?h||-f:a.y<this._viewportMargin?d.top-c.top-a.y:0;this._previousPushAmount={x:e,y:c};
return{x:a.x+e,y:a.y+c}};
g._applyPosition=function(a,b){this._setTransformOrigin(a);this._setOverlayElementStyles(b,a);this._setBoundingBoxStyles(b,a);a.panelClass&&this._addPanelClasses(a.panelClass);if(this._positionChanges.observers.length){b=this._getScrollVisibility();var c;if(c=a===this._lastPosition&&this._lastScrollVisibility)c=this._lastScrollVisibility,c=c===b?!0:c.isOriginClipped===b.isOriginClipped&&c.isOriginOutsideView===b.isOriginOutsideView&&c.isOverlayClipped===b.isOverlayClipped&&c.isOverlayOutsideView===
b.isOverlayOutsideView;c||this._positionChanges.next(new sjc(a,b));this._lastScrollVisibility=b}this._lastPosition=a;this._isInitialRender=!1};g._setTransformOrigin=function(a){if(this._transformOriginSelector){var b=this._boundingBox.querySelectorAll(this._transformOriginSelector),c=a.overlayY;a=a.overlayX==="center"?"center":this._isRtl()?a.overlayX==="start"?"right":"left":a.overlayX==="start"?"left":"right";for(var d=0;d<b.length;d++)b[d].style.transformOrigin=a+" "+c}};
g._calculateBoundingBoxRect=function(a,b){var c=this._viewportRect,d=this._isRtl();if(b.overlayY==="top"){var e=a.y;var f=c.height-e+this._viewportMargin}else if(b.overlayY==="bottom"){var h=c.height-a.y+this._viewportMargin*2;f=c.height-h+this._viewportMargin}else{e=Math.min(c.bottom-a.y+c.top,a.y);var k=this._lastBoundingBoxSize.height;f=e*2;e=a.y-e;f>k&&!this._isInitialRender&&!this._growAfterOpen&&(e=a.y-k/2)}k=b.overlayX==="start"&&!d||b.overlayX==="end"&&d;if(b.overlayX==="end"&&!d||b.overlayX===
"start"&&d){var q=c.width-a.x+this._viewportMargin*2;b=a.x-this._viewportMargin}else if(k){var v=a.x;b=c.right-a.x}else v=Math.min(c.right-a.x+c.left,a.x),c=this._lastBoundingBoxSize.width,b=v*2,v=a.x-v,b>c&&!this._isInitialRender&&!this._growAfterOpen&&(v=a.x-c/2);return{top:e,left:v,bottom:h,right:q,width:b,height:f}};
g._setBoundingBoxStyles=function(a,b){a=this._calculateBoundingBoxRect(a,b);this._isInitialRender||this._growAfterOpen||(a.height=Math.min(a.height,this._lastBoundingBoxSize.height),a.width=Math.min(a.width,this._lastBoundingBoxSize.width));var c={};if(this._hasExactPosition())c.top=c.left="0",c.bottom=c.right=c.maxHeight=c.maxWidth="",c.width=c.height="100%";else{var d=this._overlayRef.getConfig().maxHeight,e=this._overlayRef.getConfig().maxWidth;c.height=qi(a.height);c.top=qi(a.top);c.bottom=qi(a.bottom);
c.width=qi(a.width);c.left=qi(a.left);c.right=qi(a.right);c.alignItems=b.overlayX==="center"?"center":b.overlayX==="end"?"flex-end":"flex-start";c.justifyContent=b.overlayY==="center"?"center":b.overlayY==="bottom"?"flex-end":"flex-start";d&&(c.maxHeight=qi(d));e&&(c.maxWidth=qi(e))}this._lastBoundingBoxSize=a;Ci(this._boundingBox.style,c)};g._resetBoundingBoxStyles=function(){Ci(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})};
g._resetOverlayElementStyles=function(){Ci(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})};
g._setOverlayElementStyles=function(a,b){var c={},d=this._hasExactPosition(),e=this._hasFlexibleDimensions,f=this._overlayRef.getConfig();if(d){var h=this._viewportRuler.getViewportScrollPosition();Ci(c,this._getExactOverlayY(b,a,h));Ci(c,this._getExactOverlayX(b,a,h))}else c.position="static";a="";h=this._getOffset(b,"x");b=this._getOffset(b,"y");h&&(a+="translateX("+h+"px) ");b&&(a+="translateY("+b+"px)");c.transform=a.trim();f.maxHeight&&(d?c.maxHeight=qi(f.maxHeight):e&&(c.maxHeight=""));f.maxWidth&&
(d?c.maxWidth=qi(f.maxWidth):e&&(c.maxWidth=""));Ci(this._pane.style,c)};g._getExactOverlayY=function(a,b,c){var d={top:"",bottom:""};b=this._getOverlayPoint(b,this._overlayRect,a);this._isPushed&&(b=this._pushOverlayOnScreen(b,this._overlayRect,c));a.overlayY==="bottom"?d.bottom=this._document.documentElement.clientHeight-(b.y+this._overlayRect.height)+"px":d.top=qi(b.y);return d};
g._getExactOverlayX=function(a,b,c){var d={left:"",right:""};b=this._getOverlayPoint(b,this._overlayRect,a);this._isPushed&&(b=this._pushOverlayOnScreen(b,this._overlayRect,c));(this._isRtl()?a.overlayX==="end"?"left":"right":a.overlayX==="end"?"right":"left")==="right"?d.right=this._document.documentElement.clientWidth-(b.x+this._overlayRect.width)+"px":d.left=qi(b.x);return d};
g._getScrollVisibility=function(){var a=this._getOriginRect(),b=this._pane.getBoundingClientRect(),c=this._scrollables.map(function(d){return d.elementRef.nativeElement.getBoundingClientRect()});return{isOriginClipped:Dpa(a,c),isOriginOutsideView:Cpa(a,c),isOverlayClipped:Dpa(b,c),isOverlayOutsideView:Cpa(b,c)}};g._subtractOverflows=function(a){return ge.apply(1,arguments).reduce(function(b,c){return b-Math.max(c,0)},a)};
g._getNarrowedViewportRect=function(){var a=this._document.documentElement.clientWidth,b=this._document.documentElement.clientHeight,c=this._viewportRuler.getViewportScrollPosition();return{top:c.top+this._viewportMargin,left:c.left+this._viewportMargin,right:c.left+a-this._viewportMargin,bottom:c.top+b-this._viewportMargin,width:a-2*this._viewportMargin,height:b-2*this._viewportMargin}};g._isRtl=function(){return rjc(this._overlayRef)==="rtl"};
g._hasExactPosition=function(){return!this._hasFlexibleDimensions||this._isPushed};g._getOffset=function(a,b){return b==="x"?a.offsetX==null?this._offsetX:a.offsetX:a.offsetY==null?this._offsetY:a.offsetY};g._validatePositions=function(){};g._addPanelClasses=function(a){var b=this;this._pane&&oi(a).forEach(function(c){c!==""&&b._appliedPanelClasses.indexOf(c)===-1&&(b._appliedPanelClasses.push(c),b._pane.classList.add(c))})};
g._clearPanelClasses=function(){var a=this;this._pane&&(this._appliedPanelClasses.forEach(function(b){a._pane.classList.remove(b)}),this._appliedPanelClasses=[])};g._getOriginRect=function(){var a=this._origin;if(a instanceof Te)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}};
nd.Object.defineProperties(yi.prototype,{positions:{configurable:!0,enumerable:!0,get:function(){return this._preferredPositions}}});var ax=function(){this._cssPosition="static";this._height=this._width=this._xOffset=this._xPosition=this._alignItems=this._bottomOffset=this._topOffset="";this._isDisposed=!1};g=ax.prototype;g.attach=function(a){var b=a.getConfig();this._overlayRef=a;this._width&&!b.width&&a.updateSize({width:this._width});this._height&&!b.height&&a.updateSize({height:this._height});a.hostElement.classList.add("cdk-global-overlay-wrapper");this._isDisposed=!1};
g.top=function(a){this._bottomOffset="";this._topOffset=a===void 0?"":a;this._alignItems="flex-start";return this};g.left=function(a){this._xOffset=a===void 0?"":a;this._xPosition="left";return this};g.bottom=function(a){this._topOffset="";this._bottomOffset=a===void 0?"":a;this._alignItems="flex-end";return this};g.right=function(a){this._xOffset=a===void 0?"":a;this._xPosition="right";return this};g.start=function(a){this._xOffset=a===void 0?"":a;this._xPosition="start";return this};
g.end=function(a){this._xOffset=a===void 0?"":a;this._xPosition="end";return this};g.width=function(a){a=a===void 0?"":a;this._overlayRef?this._overlayRef.updateSize({width:a}):this._width=a;return this};g.height=function(a){a=a===void 0?"":a;this._overlayRef?this._overlayRef.updateSize({height:a}):this._height=a;return this};var bx=function(a){a.left("");a._xPosition="center";return a},zjc=function(a){a.top("");a._alignItems="center";return a};
ax.prototype.apply=function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var a=this._overlayRef.overlayElement.style,b=this._overlayRef.hostElement.style,c=this._overlayRef.getConfig(),d=c.width,e=c.height,f=c.maxWidth;c=c.maxHeight;d=(d==="100%"||d==="100vw")&&(!f||f==="100%"||f==="100vw");e=(e==="100%"||e==="100vh")&&(!c||c==="100%"||c==="100vh");f=this._xPosition;c=this._xOffset;var h=this._overlayRef.getConfig().direction==="rtl",k="",q="",v="";if(d)v="flex-start";else if(f==="center")v=
"center",h?q=c:k=c;else if(h)if(f==="left"||f==="end")v="flex-end",k=c;else{if(f==="right"||f==="start")v="flex-start",q=c}else if(f==="left"||f==="start")v="flex-start",k=c;else if(f==="right"||f==="end")v="flex-end",q=c;a.position=this._cssPosition;a.marginLeft=d?"0":k;a.marginTop=e?"0":this._topOffset;a.marginBottom=this._bottomOffset;a.marginRight=d?"0":q;b.justifyContent=v;b.alignItems=e?"flex-start":this._alignItems}};
ax.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 cx=function(){this._injector=r(Cg)};cx.prototype.global=function(){return new ax};var dx=function(a,b){return Bi(a._injector,b)};cx.\u0275fac=function(a){return new (a||cx)};cx.\u0275prov=Cd({token:cx,factory:cx.\u0275fac,providedIn:"root"});var ex=function(){};ex.prototype.attach=function(a){this._attachedHost=a;return a.attach(this)};ex.prototype.detach=function(){var a=this._attachedHost;a!=null&&(this._attachedHost=null,a.detach())};nd.Object.defineProperties(ex.prototype,{isAttached:{configurable:!0,enumerable:!0,get:function(){return this._attachedHost!=null}}});var fx=function(a,b,c,d){this.component=a;this.viewContainerRef=b;this.injector=c;this.projectableNodes=d};Y(fx,ex);
var gx=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.context=c;this.injector=d};Y(gx,ex);gx.prototype.attach=function(a,b){this.context=b=b===void 0?this.context:b;return ex.prototype.attach.call(this,a)};gx.prototype.detach=function(){this.context=void 0;return ex.prototype.detach.call(this)};nd.Object.defineProperties(gx.prototype,{origin:{configurable:!0,enumerable:!0,get:function(){return this.templateRef.elementRef}}});var hx=function(){this._isDisposed=!1};g=hx.prototype;
g.hasAttached=function(){return!!this._attachedPortal};g.attach=function(a){if(a instanceof fx)return this._attachedPortal=a,this.attachComponentPortal(a);if(a instanceof gx)return this._attachedPortal=a,this.attachTemplatePortal(a)};g.detach=function(){this._attachedPortal&&(this._attachedPortal=this._attachedPortal._attachedHost=null);this._invokeDisposeFn()};g.dispose=function(){this.hasAttached()&&this.detach();this._invokeDisposeFn();this._isDisposed=!0};
g.setDisposeFn=function(a){this._disposeFn=a};g._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)};var Hi=function(a,b,c){this._isDisposed=!1;this.outletElement=a;this._appRef=b;this._defaultInjector=c};Y(Hi,hx);
Hi.prototype.attachComponentPortal=function(a){if(a.viewContainerRef){var b=a.injector||a.viewContainerRef.injector,c=b.get(sv,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||tgc;c=b.get(pf,e.injector);d=koa(a.component,{elementInjector:b,environmentInjector:c,
projectableNodes:a.projectableNodes||void 0});Ehc(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};
Hi.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};Hi.prototype.dispose=function(){hx.prototype.dispose.call(this);this.outletElement.remove()};Hi.prototype._getComponentRootNode=function(a){return a.hostView.rootNodes[0]};var ix=function(){var a=r(eh),b=r(fh);gx.call(this,a,b)};Y(ix,gx);ix.\u0275fac=function(a){return new (a||ix)};ix.\u0275dir=vf({type:ix,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Bg]});var jx=function(){this._isDisposed=!1;this._moduleRef=r(sv,{optional:!0});this._document=r(ui);this._viewContainerRef=r(fh);this._isInitialized=!1;this.attached=new nq};Y(jx,hx);g=jx.prototype;g.ngOnInit=function(){this._isInitialized=!0};
g.ngOnDestroy=function(){hx.prototype.dispose.call(this);this._attachedRef=this._attachedPortal=null};
g.attachComponentPortal=function(a){a._attachedHost=this;var b=a.viewContainerRef!=null?a.viewContainerRef:this._viewContainerRef,c=b.createComponent(a.component,{index:b.length,injector:a.injector||b.injector,projectableNodes:a.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});b!==this._viewContainerRef&&this._getRootNode().appendChild(c.hostView.rootNodes[0]);hx.prototype.setDisposeFn.call(this,function(){return c.destroy()});this._attachedPortal=a;this._attachedRef=c;this.attached.emit(c);
return c};g.attachTemplatePortal=function(a){var b=this;a._attachedHost=this;var c=this._viewContainerRef.createEmbeddedView(a.templateRef,a.context,{injector:a.injector});hx.prototype.setDisposeFn.call(this,function(){return b._viewContainerRef.clear()});this._attachedPortal=a;this._attachedRef=c;this.attached.emit(c);return c};g._getRootNode=function(){var a=this._viewContainerRef.element.nativeElement;return a.nodeType===a.ELEMENT_NODE?a:a.parentNode};
nd.Object.defineProperties(jx.prototype,{portal:{configurable:!0,enumerable:!0,get:function(){return this._attachedPortal},set:function(a){if(!this.hasAttached()||a||this._isInitialized)this.hasAttached()&&hx.prototype.detach.call(this),a&&hx.prototype.attach.call(this,a),this._attachedPortal=a||null}}});jx.\u0275fac=function(a){return new (a||jx)};
jx.\u0275dir=vf({type:jx,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Bg]});var kx=function(){};kx.\u0275fac=function(a){return new (a||kx)};kx.\u0275mod=uf({type:kx});kx.\u0275inj=Dd({});var lx=function(){this.scrollStrategies=r(Xw);this._positionBuilder=r(cx);this._injector=r(Cg)};lx.prototype.create=function(a){return Pi(this._injector,a)};lx.prototype.position=function(){return this._positionBuilder};lx.\u0275fac=function(a){return new (a||lx)};lx.\u0275prov=Cd({token:lx,factory:lx.\u0275fac,providedIn:"root"});var Ajc=[{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"}],Bjc=new le("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:function(){var a=r(Cg);return function(){return xi(a)}}}),mx=function(){this.elementRef=r(Te)};mx.\u0275fac=function(a){return new (a||mx)};
mx.\u0275dir=vf({type:mx,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]});
var nx=function(){this._dir=r(Gi,{optional:!0});this._injector=r(Cg);this._positionSubscription=this._detachSubscription=this._attachSubscription=this._backdropSubscription=yf.EMPTY;this._scrollStrategyFactory=r(Bjc);this._disposeOnNavigation=!1;this._ngZone=r(Ph);this.viewportMargin=0;this.push=this.growAfterOpen=this.flexibleDimensions=this.lockPosition=this.hasBackdrop=this.disableClose=this.open=!1;this.backdropClick=new nq;this.positionChange=new nq;this.attach=new nq;this.detach=new nq;this.overlayKeydown=
new nq;this.overlayOutsideClick=new nq;var a=r(eh),b=r(fh);this._templatePortal=new gx(a,b);this.scrollStrategy=this._scrollStrategyFactory()};g=nx.prototype;g.ngOnDestroy=function(){this._attachSubscription.unsubscribe();this._detachSubscription.unsubscribe();this._backdropSubscription.unsubscribe();this._positionSubscription.unsubscribe();var a;(a=this._overlayRef)==null||a.dispose()};
g.ngOnChanges=function(a){if(this._position){this._updatePositionStrategy(this._position);var b;(b=this._overlayRef)==null||b.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight});a.origin&&this.open&&this._position.apply()}a.open&&(this.open?Cjc(this):Djc(this))};
g._createOverlay=function(){var a=this;this.positions&&this.positions.length||(this.positions=Ajc);var b=this._overlayRef=Pi(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||ki(c)||(c.preventDefault(),Djc(a))});this._overlayRef.outsidePointerEvents().subscribe(function(c){var d=
a._getOriginElement(),e=ni(c);d&&(d===e||d.contains(e))||a.overlayOutsideClick.next(c)})};
g._buildConfig=function(){var a=this._position=this.positionStrategy||this._createPositionStrategy();a=new Ii({direction:this._dir||"ltr",positionStrategy:a,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});if(this.width||this.width===0)a.width=this.width;if(this.height||this.height===0)a.height=this.height;if(this.minWidth||this.minWidth===0)a.minWidth=this.minWidth;if(this.minHeight||this.minHeight===0)a.minHeight=this.minHeight;this.backdropClass&&
(a.backdropClass=this.backdropClass);this.panelClass&&(a.panelClass=this.panelClass);return a};
g._updatePositionStrategy=function(a){var b=this,c=this.positions.map(function(d){return{originX:d.originX,originY:d.originY,overlayX:d.overlayX,overlayY:d.overlayY,offsetX:d.offsetX||b.offsetX,offsetY:d.offsetY||b.offsetY,panelClass:d.panelClass||void 0}});return yjc(xjc(Zw(vjc(wjc($w(Yw(a.setOrigin(this._getOrigin()),c),this.flexibleDimensions),this.push),this.growAfterOpen),this.viewportMargin),this.lockPosition),this.transformOriginSelector)};
g._createPositionStrategy=function(){var a=Bi(this._injector,this._getOrigin());this._updatePositionStrategy(a);return a};g._getOrigin=function(){return this.origin instanceof mx?this.origin.elementRef:this.origin};g._getOriginElement=function(){return this.origin instanceof mx?this.origin.elementRef.nativeElement:this.origin instanceof Te?this.origin.nativeElement:typeof Element!=="undefined"&&this.origin instanceof Element?this.origin:null};
var Cjc=function(a){a._overlayRef?a._overlayRef.getConfig().hasBackdrop=a.hasBackdrop:a._createOverlay();a._overlayRef.hasAttached()||a._overlayRef.attach(a._templatePortal);a.hasBackdrop?a._backdropSubscription=a._overlayRef.backdropClick().subscribe(function(b){a.backdropClick.emit(b)}):a._backdropSubscription.unsubscribe();a._positionSubscription.unsubscribe();a.positionChange.observers.length>0&&(a._positionSubscription=a._position.positionChanges.pipe(Bla(function(){return a.positionChange.observers.length>
0})).subscribe(function(b){a._ngZone.run(function(){return a.positionChange.emit(b)});a.positionChange.observers.length===0&&a._positionSubscription.unsubscribe()}));a.open=!0},Djc=function(a){var b;(b=a._overlayRef)==null||b.detach();a._backdropSubscription.unsubscribe();a._positionSubscription.unsubscribe();a.open=!1};
nd.Object.defineProperties(nx.prototype,{offsetX:{configurable:!0,enumerable:!0,get:function(){return this._offsetX},set:function(a){this._offsetX=a;this._position&&this._updatePositionStrategy(this._position)}},offsetY:{configurable:!0,enumerable:!0,get:function(){return this._offsetY},set:function(a){this._offsetY=a;this._position&&this._updatePositionStrategy(this._position)}},disposeOnNavigation:{configurable:!0,enumerable:!0,get:function(){return this._disposeOnNavigation},set:function(a){this._disposeOnNavigation=
a}},overlayRef:{configurable:!0,enumerable:!0,get:function(){return this._overlayRef}},dir:{configurable:!0,enumerable:!0,get:function(){return this._dir?this._dir.value:"ltr"}}});nx.\u0275fac=function(a){return new (a||nx)};
nx.\u0275dir=vf({type:nx,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",$h],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",$h],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",$h],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",$h],push:[2,"cdkConnectedOverlayPush","push",$h],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",
$h]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[ov]});var Ejc={provide:Bjc,useFactory:function(){var a=r(Cg);return function(){return xi(a)}}};var ox=function(){};ox.\u0275fac=function(a){return new (a||ox)};ox.\u0275mod=uf({type:ox});ox.\u0275inj=Dd({providers:[lx,Ejc],imports:[Qw,kx,Ww,Ww]});var Jpa=new le("MATERIAL_ANIMATIONS"),Kpa=null;new le("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});var px=function(){r(vw)._applyBodyHighContrastModeCssClasses()};px.\u0275fac=function(a){return new (a||px)};px.\u0275mod=uf({type:px});px.\u0275inj=Dd({imports:[Qw,Qw]});var Fjc=function(a,b,c,d,e){this._defaultMatcher=a;this.ngControl=b;this._parentFormGroup=c;this._parentForm=d;this._stateChanges=e;this.errorState=!1};Fjc.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 le("MAT_DATE_LOCALE",{providedIn:"root",factory:Mpa});var qx=function(){this.localeChanges=this._localeChanges=new tg};qx.prototype.setTime=function(){throw Error("Xa");};qx.prototype.getHours=function(){throw Error("Xa");};qx.prototype.getMinutes=function(){throw Error("Xa");};qx.prototype.getSeconds=function(){throw Error("Xa");};var rx=function(a,b){return Gjc(b)&&a.isValid(b)?b:null},sx=function(a,b){return b==null||Gjc(b)&&a.isValid(b)?b:a.invalid()};
qx.prototype.setLocale=function(a){this.locale=a;this._localeChanges.next()};var tx=function(a,b,c){return a.getYear(b)-a.getYear(c)||a.getMonth(b)-a.getMonth(c)||a.getDate(b)-a.getDate(c)};qx.prototype.sameDate=function(a,b){if(a&&b){var c=this.isValid(a),d=this.isValid(b);return c&&d?!tx(this,a,b):c==d}return a==b};var Hjc=function(a,b,c,d){return c&&tx(a,b,c)<0?c:d&&tx(a,b,d)>0?d:b};var ux=new le("mat-date-formats");var vx=function(){};vx.prototype.isErrorState=function(a,b){return!!(a&&a.invalid&&(a.touched||b&&b.submitted))};vx.\u0275fac=function(a){return new (a||vx)};vx.\u0275prov=Cd({token:vx,factory:vx.\u0275fac,providedIn:"root"});var wx=function(){};wx.\u0275fac=function(a){return new (a||wx)};
wx.\u0275cmp=y({type:wx,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 xx=function(){};xx.\u0275fac=function(a){return new (a||xx)};
xx.\u0275cmp=y({type:xx,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(a,b){a&2&&uh("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&&(ch(),dh(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 Ijc=new le("MAT_OPTION_PARENT_COMPONENT");var Jjc=new le("MatOptgroup");var Kjc=li({passive:!0,capture:!0}),Mjc=function(a,b,c,d){var e=Ljc,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,Kjc)}))};var Njc=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 Ojc={enterDuration:225,exitDuration:150},Pjc=li({passive:!0,capture:!0}),Qjc=["mousedown","touchstart"],Rjc=["mouseup","mouseleave","touchend","touchcancel"],Sjc=function(){};Sjc.\u0275fac=function(a){return new (a||Sjc)};
Sjc.\u0275cmp=y({type:Sjc,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 Tjc=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=ri(c));e&&e.get(Di).load(Sjc)},Ujc=function(a,b,c,d){d=d===void 0?{}:d;var e=a._containerRect=a._containerRect||a._containerElement.getBoundingClientRect(),f=Object.assign({},Ojc,d.animation);d.centered&&(b=e.left+e.width/2,c=e.top+e.height/2);var h=d.radius||Npa(b,c,e);b-=e.left;c-=e.top;var k=f.enterDuration,
q=document.createElement("div");q.classList.add("mat-ripple-element");q.style.left=b-h+"px";q.style.top=c-h+"px";q.style.height=h*2+"px";q.style.width=h*2+"px";d.color!=null&&(q.style.backgroundColor=d.color);q.style.transitionDuration=k+"ms";a._containerElement.appendChild(q);h=window.getComputedStyle(q);c=h.transitionDuration;e=h.transitionProperty==="none"||c==="0s"||c==="0s, 0s"||e.width===0&&e.height===0;var v=new Njc(a,q,d,e);q.style.transform="scale3d(1, 1, 1)";v.state=0;d.persistent||(a._mostRecentTransientRipple=
v);var A=null;e||!k&&!f.exitDuration||a._ngZone.runOutsideAngular(function(){var E=function(){A&&(A.fallbackTimer=null);clearTimeout(L);a._finishRippleTransition(v)},H=function(){return a._destroyRipple(v)},L=setTimeout(H,k+100);q.addEventListener("transitionend",E);q.addEventListener("transitioncancel",H);A={onTransitionEnd:E,onTransitionCancel:H,fallbackTimer:L}});a._activeRipples.set(v,A);!e&&k||a._finishRippleTransition(v);return v},Vjc=function(a,b){if(b.state!==2&&b.state!==3){var c=b.element,
d=Object.assign({},Ojc,b.config.animation);c.style.transitionDuration=d.exitDuration+"ms";c.style.opacity="0";b.state=2;!b._animationForciblyDisabledThroughCss&&d.exitDuration||a._finishRippleTransition(b)}};Tjc.prototype.fadeOutAllNonPersistent=function(){this._getActiveRipples().forEach(function(a){a.config.persistent||Vjc(a._renderer,a)})};
var Wjc=function(a,b){var c=ri(b);a._platform.isBrowser&&c&&c!==a._triggerElement&&(a._removeTriggerEvents(),a._triggerElement=c,Qjc.forEach(function(d){Mjc(a._ngZone,d,c,a)}))};g=Tjc.prototype;
g.handleEvent=function(a){var b=this;a.type==="mousedown"?this._onMousedown(a):a.type==="touchstart"?this._onTouchStart(a):this._onPointerUp();this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(function(){Rjc.forEach(function(c){b._triggerElement.addEventListener(c,b,Pjc)})}),this._pointerUpEventsRegistered=!0)};g._finishRippleTransition=function(a){a.state===0?this._startFadeOutTransition(a):a.state===2&&this._destroyRipple(a)};
g._startFadeOutTransition=function(a){var b=a===this._mostRecentTransientRipple,c=a.config.persistent;a.state=1;c||b&&this._isPointerDown||Vjc(a._renderer,a)};
g._destroyRipple=function(a){var b,c=(b=this._activeRipples.get(a))!=null?b:null;this._activeRipples.delete(a);this._activeRipples.size||(this._containerRect=null);a===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null);a.state=3;c!==null&&(a.element.removeEventListener("transitionend",c.onTransitionEnd),a.element.removeEventListener("transitioncancel",c.onTransitionCancel),c.fallbackTimer!==null&&clearTimeout(c.fallbackTimer));a.element.remove()};
g._onMousedown=function(a){var b=Yoa(a),c=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||b||c||(this._isPointerDown=!0,Ujc(this,a.clientX,a.clientY,this._target.rippleConfig))};g._onTouchStart=function(a){if(!this._target.rippleDisabled&&!Zoa(a)&&(this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0,a=a.changedTouches))for(var b=0;b<a.length;b++)Ujc(this,a[b].clientX,a[b].clientY,this._target.rippleConfig)};
g._onPointerUp=function(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(function(a){var b=a.state===1||a.config.terminateOnPointerUp&&a.state===0;!a.config.persistent&&b&&Vjc(a._renderer,a)}))};g._getActiveRipples=function(){return Array.from(this._activeRipples.keys())};
g._removeTriggerEvents=function(){var a=this,b=this._triggerElement;b&&(Qjc.forEach(function(c){var d=Ljc,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,Kjc)))}}),this._pointerUpEventsRegistered&&(Rjc.forEach(function(c){return b.removeEventListener(c,a,Pjc)}),this._pointerUpEventsRegistered=!1))};
var Ljc=new function(){var a=this;this._events=new Map;this._delegateEventHandler=function(b){var c=ni(b);if(c){var d;(d=a._events.get(b.type))==null||d.forEach(function(e,f){(f===c||f.contains(c))&&e.forEach(function(h){return h.handleEvent(b)})})}}};var yx=new le("mat-ripple-global-options"),zx=function(){this._elementRef=r(Te);this._animationsDisabled=Ri();this.radius=0;this._isInitialized=this._disabled=!1;var a=r(Ph),b=r(zi),c=r(yx,{optional:!0}),d=r(Cg);this._globalOptions=c||{};this._rippleRenderer=new Tjc(this,a,this._elementRef,b,d)};zx.prototype.ngOnInit=function(){this._isInitialized=!0;this._setupTriggerEventsIfEnabled()};zx.prototype.ngOnDestroy=function(){this._rippleRenderer._removeTriggerEvents()};
zx.prototype.fadeOutAllNonPersistent=function(){this._rippleRenderer.fadeOutAllNonPersistent()};zx.prototype._setupTriggerEventsIfEnabled=function(){!this.disabled&&this._isInitialized&&Wjc(this._rippleRenderer,this.trigger)};
nd.Object.defineProperties(zx.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}}});zx.\u0275fac=function(a){return new (a||zx)};
zx.\u0275dir=vf({type:zx,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(a,b){a&2&&uh("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 Ax=function(){this._animationsDisabled=Ri();this.state="unchecked";this.disabled=!1;this.appearance="full"};Ax.\u0275fac=function(a){return new (a||Ax)};
Ax.\u0275cmp=y({type:Ax,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(a,b){a&2&&uh("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 Xjc=["text"],Yjc=[[["mat-icon"]],"*"],Zjc=function(a,b){this.source=a;this.isUserInput=b===void 0?!1:b},Bx=function(){this._element=r(Te);this._changeDetectorRef=r(Hv);this._parent=r(Ijc,{optional:!0});this.group=r(Jjc,{optional:!0});this._active=this._selected=this._signalDisableRipple=!1;this._mostRecentViewValue="";this.id=r(Fi).getId("mat-option-");this._disabled=nh.apply(null,[!1].concat(p([])));this.onSelectionChange=new nq;this._stateChanges=new tg;var a=r(Di);a.load(wx);a.load(nw);this._signalDisableRipple=
!!this._parent&&gg(this._parent.disableRipple)};g=Bx.prototype;g.select=function(a){a=a===void 0?!0:a;this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),a&&this._emitSelectionChangeEvent())};g.deselect=function(a){a=a===void 0?!0:a;this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),a&&this._emitSelectionChangeEvent())};g.focus=function(a,b){var c=this._getHostElement();typeof c.focus==="function"&&c.focus(b)};
g.setActiveStyles=function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())};g.setInactiveStyles=function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())};g.getLabel=function(){return this.viewValue};g._handleKeydown=function(a){a.keyCode!==13&&a.keyCode!==32||ki(a)||(this._selectViaInteraction(),a.preventDefault())};
g._selectViaInteraction=function(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))};g._getTabIndex=function(){return this.disabled?"-1":"0"};g._getHostElement=function(){return this._element.nativeElement};g.ngAfterViewChecked=function(){if(this._selected){var a=this.viewValue;a!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=a)}};g.ngOnDestroy=function(){this._stateChanges.complete()};
g._emitSelectionChangeEvent=function(a){this.onSelectionChange.emit(new Zjc(this,a===void 0?!1:a))};
nd.Object.defineProperties(Bx.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()}}});Bx.\u0275fac=function(a){return new (a||Bx)};
Bx.\u0275cmp=y({type:Bx,selectors:[["mat-option"]],viewQuery:function(a,b){a&1&&hh(Xjc,7);if(a&2){var c;lh(c=mh())&&(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&&(Rg("id",b.id),Lg("aria-selected",b.selected)("aria-disabled",b.disabled.toString()),uh("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",$h]},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&&(ch(Yjc),F(0,Opa,1,2,"mat-pseudo-checkbox",1),dh(1),J(2,"span",2,0),dh(4,1),K(),F(5,Ppa,1,1,"mat-pseudo-checkbox",3),F(6,Qpa,2,1,"span",4),M(7,"div",5));a&2&&(G(b.multiple?0:-1),x(5),G(b.multiple||!b.selected||b.hideSingleSelectionIndicator?-1:5),x(),G(b.group&&b.group._inert?6:-1),x(),I("matRippleTrigger",
b._getHostElement())("matRippleDisabled",b.disabled||b.disableRipple))},dependencies:[Ax,zx],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-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 Cx=function(){};Cx.\u0275fac=function(a){return new (a||Cx)};Cx.\u0275mod=uf({type:Cx});Cx.\u0275inj=Dd({imports:[px,px]});var Dx=function(){};Dx.\u0275fac=function(a){return new (a||Dx)};Dx.\u0275mod=uf({type:Dx});Dx.\u0275inj=Dd({imports:[px]});var Ex=function(){};Ex.\u0275fac=function(a){return new (a||Ex)};Ex.\u0275mod=uf({type:Ex});Ex.\u0275inj=Dd({imports:[Cx,px,Dx,Bx]});var $jc={capture:!0},akc=["focus","mousedown","mouseenter","touchstart"],Fx=function(){var a=this;this._document=r(ui);this._animationsDisabled=Ri();this._globalRippleOptions=r(yx,{optional:!0});this._platform=r(zi);this._ngZone=r(Ph);this._injector=r(Cg);this._hosts=new Map;this._onInteraction=function(c){c=ni(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=r(qf).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(function(){return akc.map(function(c){return b.listen(a._document,c,a._onInteraction,$jc)})})};Fx.prototype.ngOnDestroy=function(){var a=this._hosts.keys();a=l(a);for(var b=a.next();!b.done;b=a.next())bkc(this,b.value);this._eventCleanups.forEach(function(c){return c()})};
var ckc=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","")};
Fx.prototype.setDisabled=function(a,b){var c=this._hosts.get(a);c?(c.target.rippleDisabled=b,b||c.hasSetUpEvents||(c.hasSetUpEvents=!0,Wjc(c.renderer,a))):b?a.setAttribute("mat-ripple-loader-disabled",""):a.removeAttribute("mat-ripple-loader-disabled")};
Fx.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:Ojc.enterDuration,h,k;d=this._animationsDisabled?0:(k=c==null?void 0:(h=c.animation)==null?void 0:
h.exitDuration)!=null?k:Ojc.exitDuration;h={rippleDisabled:this._animationsDisabled||(c==null?void 0:c.disabled)||a.hasAttribute("mat-ripple-loader-disabled"),rippleConfig:{centered:a.hasAttribute("mat-ripple-loader-centered"),terminateOnPointerUp:c==null?void 0:c.terminateOnPointerUp,animation:{enterDuration:f,exitDuration:d}}};b=new Tjc(h,this._ngZone,b,this._platform,this._injector);(k=!h.rippleDisabled)&&Wjc(b,a);this._hosts.set(a,{target:h,renderer:b,hasSetUpEvents:k});a.removeAttribute("mat-ripple-loader-uninitialized")}};
var bkc=function(a,b){var c=a._hosts.get(b);c&&(c.renderer._removeTriggerEvents(),a._hosts.delete(b))};Fx.\u0275fac=function(a){return new (a||Fx)};Fx.\u0275prov=Cd({token:Fx,factory:Fx.\u0275fac,providedIn:"root"});var Gx=function(){this.changes=new tg;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"};
Gx.prototype.formatYearRange=function(a,b){return a+" \u2013 "+b};Gx.prototype.formatYearRangeLabel=function(a,b){return a+" to "+b};Gx.\u0275fac=function(a){return new (a||Gx)};Gx.\u0275prov=Cd({token:Gx,factory:Gx.\u0275fac,providedIn:"root"});var Xpa=function(a,b){return b.id},dkc=0,ekc=function(a,b,c,d,e,f,h){e=e===void 0?{}:e;this.value=a;this.displayValue=b;this.ariaLabel=c;this.enabled=d;this.cssClasses=e;this.compareValue=f===void 0?a:f;this.rawValue=h;this.id=dkc++},fkc={passive:!1,capture:!0},gkc={passive:!0,capture:!0},hkc={passive:!0},Hx=function(){var a=this;this._elementRef=r(Te);this._ngZone=r(Ph);this._platform=r(zi);this._intl=r(Gx);this._focusActiveCellAfterViewChecked=!1;this.numCols=7;this.activeCell=0;this.isRange=!1;
this.cellAspectRatio=1;this.previewEnd=this.previewStart=null;this.selectedValueChange=new nq;this.previewChange=new nq;this.activeDateChange=new nq;this.dragStarted=new nq;this.dragEnded=new nq;this._didDragSinceMouseDown=!1;this._injector=r(Cg);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=dqa(d),f=e?a._getCellFromElement(e):null;e!==d.target&&(a._didDragSinceMouseDown=!0);$pa(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=$pa(d.target);e?e.closest(".mat-calendar-body")===a._elementRef.nativeElement&&
a._ngZone.run(function(){var f=a._getCellFromElement(e),h;a.dragEnded.emit({value:(h=f==null?void 0:f.rawValue)!=null?h:null,event:d})}):a._ngZone.run(function(){a.dragEnded.emit({value:null,event:d})})}};this._touchendHandler=function(d){(d=dqa(d))&&a._mouseupHandler({target:d})};var b=r(Ji),c=r(Fi);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-");r(Di).load(wx);this._ngZone.runOutsideAngular(function(){var d=a._elementRef.nativeElement;d=[b.listen(d,"touchmove",a._touchmoveHandler,fkc),b.listen(d,"mouseenter",a._enterHandler,gkc),b.listen(d,"focus",a._enterHandler,gkc),b.listen(d,"mouseleave",a._leaveHandler,gkc),b.listen(d,"blur",a._leaveHandler,gkc),b.listen(d,"mousedown",a._mousedownHandler,hkc),b.listen(d,"touchstart",a._mousedownHandler,hkc)];a._platform.isBrowser&&d.push(b.listen("window",
"mouseup",a._mouseupHandler),b.listen("window","touchend",a._touchendHandler));a._eventCleanups=d})};g=Hx.prototype;g.ngAfterViewChecked=function(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)};g._cellClicked=function(a,b){this._didDragSinceMouseDown||a.enabled&&this.selectedValueChange.emit({value:a.value,event:b})};g._emitActiveDateChange=function(a,b){a.enabled&&this.activeDateChange.emit({value:a.value,event:b})};
g._isSelected=function(a){return this.startValue===a||this.endValue===a};g.ngOnChanges=function(a){var b=a.numCols,c=this.rows,d=this.numCols;if(a.rows||b)this._firstRowOffset=c&&c.length&&c[0].length?d-c[0].length:0;if(a.cellAspectRatio||b||!this._cellPadding)this._cellPadding=50*this.cellAspectRatio/d+"%";if(b||!this._cellWidth)this._cellWidth=100/d+"%"};g.ngOnDestroy=function(){this._eventCleanups.forEach(function(a){return a()})};
g._isActiveCell=function(a,b){b=a*this.numCols+b;a&&(b-=this._firstRowOffset);return b==this.activeCell};g._focusActiveCell=function(a){var b=this;a=a===void 0?!0:a;Ig(function(){setTimeout(function(){var c=b._elementRef.nativeElement.querySelector(".mat-calendar-body-active");c&&(a||(b._skipNextFocus=!0),c.focus())})},{injector:this._injector})};g._scheduleFocusActiveCellAfterViewChecked=function(){this._focusActiveCellAfterViewChecked=!0};
g._isRangeStart=function(a){return aqa(a,this.startValue,this.endValue)};g._isRangeEnd=function(a){return bqa(a,this.startValue,this.endValue)};g._isInRange=function(a){return cqa(a,this.startValue,this.endValue,this.isRange)};g._isComparisonStart=function(a){return aqa(a,this.comparisonStart,this.comparisonEnd)};
g._isComparisonBridgeStart=function(a,b,c){if(!this._isComparisonStart(a)||this._isRangeStart(a)||!this._isInRange(a))return!1;a=this.rows[b][c-1];a||(a=(b=this.rows[b-1])&&b[b.length-1]);return a&&!this._isRangeEnd(a.compareValue)};g._isComparisonBridgeEnd=function(a,b,c){if(!this._isComparisonEnd(a)||this._isRangeEnd(a)||!this._isInRange(a))return!1;a=this.rows[b][c+1];a||(a=(b=this.rows[b+1])&&b[0]);return a&&!this._isRangeStart(a.compareValue)};
g._isComparisonEnd=function(a){return bqa(a,this.comparisonStart,this.comparisonEnd)};g._isInComparisonRange=function(a){return cqa(a,this.comparisonStart,this.comparisonEnd,this.isRange)};g._isComparisonIdentical=function(a){return this.comparisonStart===this.comparisonEnd&&a===this.comparisonStart};g._isPreviewStart=function(a){return aqa(a,this.previewStart,this.previewEnd)};g._isPreviewEnd=function(a){return bqa(a,this.previewStart,this.previewEnd)};
g._isInPreview=function(a){return cqa(a,this.previewStart,this.previewEnd,this.isRange)};
g._getDescribedby=function(a){if(!this.isRange)return null;if(this.startValue===a&&this.endValue===a)return this._startDateLabelId+" "+this._endDateLabelId;if(this.startValue===a)return this._startDateLabelId;if(this.endValue===a)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(a===this.comparisonStart&&a===this.comparisonEnd)return this._comparisonStartDateLabelId+" "+this._comparisonEndDateLabelId;if(a===this.comparisonStart)return this._comparisonStartDateLabelId;
if(a===this.comparisonEnd)return this._comparisonEndDateLabelId}return null};g._getCellFromElement=function(a){var b=$pa(a);return b&&(a=b.getAttribute("data-mat-row"),b=b.getAttribute("data-mat-col"),a&&b)?this.rows[parseInt(a)][parseInt(b)]:null};Hx.\u0275fac=function(a){return new (a||Hx)};
Hx.\u0275cmp=y({type:Hx,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:[ov],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,Upa,3,6,"tr",0),Pg(1,Ypa,4,1,"tr",1,Tpa,!0),J(3,"span",2),R(4),K(),J(5,"span",2),R(6),K(),J(7,"span",2),R(8),K(),J(9,"span",2),R(10),
K());a&2&&(G(b._firstRowOffset<b.labelMinRequiredCells?0:-1),x(),Qg(b.rows),x(2),I("id",b._startDateLabelId),x(),T(" ",b.startDateAccessibleName,"\n"),x(),I("id",b._endDateLabelId),x(),T(" ",b.endDateAccessibleName,"\n"),x(),I("id",b._comparisonStartDateLabelId),x(),xh(" ",b.comparisonDateAccessibleName," ",b.startDateAccessibleName,"\n"),x(),I("id",b._comparisonEndDateLabelId),x(),xh(" ",b.comparisonDateAccessibleName," ",b.endDateAccessibleName,"\n"))},dependencies:[Pv],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 ikc=new le("MAT_BUTTON_CONFIG"),Ix=function(){this._elementRef=r(Te);this._ngZone=r(Ph);this._animationsDisabled=Ri();this._config=r(ikc,{optional:!0});this._focusMonitor=r(jw);this._renderer=r(Ji);this._rippleLoader=r(Fx);this._disabled=this._disableRipple=this._isFab=!1;r(Di).load(wx);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||ckc(f,a,{className:"mat-mdc-button-ripple"})};g=Ix.prototype;g.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0);this._isAnchor&&this._setupAsAnchor()};g.ngOnDestroy=function(){var a;(a=this._cleanupClick)==null||a.call(this);this._focusMonitor.stopMonitoring(this._elementRef);var b;(b=this._rippleLoader)==null||bkc(b,this._elementRef.nativeElement)};
g.focus=function(a,b){(a=a===void 0?"program":a)?kw(this._focusMonitor,this._elementRef.nativeElement,a,b):this._elementRef.nativeElement.focus(b)};g._getAriaDisabled=function(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?!0:null};g._getDisabledAttribute=function(){return this.disabledInteractive||!this.disabled?null:!0};
g._updateRippleDisabled=function(){var a;(a=this._rippleLoader)==null||a.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)};g._getTabIndex=function(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex};g._setupAsAnchor=function(){var a=this;this._cleanupClick=this._ngZone.runOutsideAngular(function(){return a._renderer.listen(a._elementRef.nativeElement,"click",function(b){a.disabled&&(b.preventDefault(),b.stopImmediatePropagation())})})};
nd.Object.defineProperties(Ix.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}}});Ix.\u0275fac=function(a){return new (a||Ix)};
Ix.\u0275dir=vf({type:Ix,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(a,b){a&2&&(Lg("disabled",b._getDisabledAttribute())("aria-disabled",b._getAriaDisabled())("tabindex",b._getTabIndex()),vh(b.color?"mat-"+b.color:""),uh("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",$h],disabled:[2,
"disabled","disabled",$h],ariaDisabled:[2,"aria-disabled","ariaDisabled",$h],disabledInteractive:[2,"disabledInteractive","disabledInteractive",$h],tabIndex:[2,"tabIndex","tabIndex",eqa],_tabindex:[2,"tabindex","_tabindex",eqa]}});var jkc=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],kkc=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"]]]),Jx=function(){Ix.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)&&lkc(this,a)};Y(Jx,Ix);Jx.\u0275dir=Ix.\u0275dir;
var lkc=function(a,b){if(b!==a._appearance){var c=a._elementRef.nativeElement.classList,d=a._appearance?kkc.get(a._appearance):null,e=kkc.get(b);d&&c.remove.apply(c,p(d));c.add.apply(c,p(e));a._appearance=b}};nd.Object.defineProperties(Jx.prototype,{appearance:{configurable:!0,enumerable:!0,get:function(){return this._appearance},set:function(a){var b;lkc(this,a||((b=this._config)==null?void 0:b.defaultAppearance)||"text")}}});Jx.\u0275fac=function(a){return new (a||Jx)};
Jx.\u0275cmp=y({type:Jx,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:[Bg],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&&(ch(jkc),Ug(0,"span",0),dh(1),Sg(2,"span",1),dh(3,1),Tg(),dh(4,2),Ug(5,"span",2)(6,"span",3));a&2&&uh("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}.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: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: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: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))}.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: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: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 mkc=new le("mat-mdc-fab-default-options",{providedIn:"root",factory:fqa});var Kx=function(){Ix.call(this);ckc(this._rippleLoader,this._elementRef.nativeElement,{centered:!0})};Y(Kx,Ix);Kx.\u0275dir=Ix.\u0275dir;Kx.\u0275fac=function(a){return new (a||Kx)};
Kx.\u0275cmp=y({type:Kx,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:[Bg],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&&(ch(),Ug(0,"span",0),
dh(1),Ug(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:48px;display:var(--mat-icon-button-touch-target-display, block);left:50%;width: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 Lx=function(){};Lx.\u0275fac=function(a){return new (a||Lx)};Lx.\u0275mod=uf({type:Lx});Lx.\u0275inj=Dd({imports:[px,Cx,px]});var Mx=function(a,b){this.selection=a;this._adapter=b;this.selectionChanged=this._selectionChanged=new tg;this.selection=a};Mx.prototype.updateSelection=function(a,b){var c=this.selection;this.selection=a;this._selectionChanged.next({selection:a,source:b,oldValue:c})};Mx.prototype.ngOnDestroy=function(){this._selectionChanged.complete()};Mx.prototype._isValidDateInstance=function(a){return Gjc(a)&&this._adapter.isValid(a)};Mx.\u0275fac=function(){Via()};Mx.\u0275prov=Cd({token:Mx,factory:Mx.\u0275fac});
var Nx=function(a){Mx.call(this,null,a)};Y(Nx,Mx);Nx.prototype.add=function(a){Mx.prototype.updateSelection.call(this,a,this)};Nx.prototype.isValid=function(){return this.selection!=null&&this._isValidDateInstance(this.selection)};Nx.prototype.isComplete=function(){return this.selection!=null};Nx.prototype.clone=function(){var a=new Nx(this._adapter);a.updateSelection(this.selection,this);return a};Nx.\u0275fac=function(a){return new (a||Nx)(be(qx))};Nx.\u0275prov=Cd({token:Nx,factory:Nx.\u0275fac});
var nkc={provide:Mx,deps:[[new qv,new rv,Mx],qx],useFactory:function(a,b){return a||new Nx(b)}};new qv;new rv;var okc=new le("MAT_DATE_RANGE_SELECTION_STRATEGY");new qv;new rv;var pkc=function(a,b){return b.id},qkc=0,Ox=function(){this._changeDetectorRef=r(Hv);this._dateFormats=r(ux,{optional:!0});this._dateAdapter=r(qx,{optional:!0});this._dir=r(Gi,{optional:!0});this._rangeStrategy=r(okc,{optional:!0});this._rerenderSubscription=yf.EMPTY;this.activeDrag=null;this.selectedChange=new nq;this._userSelection=new nq;this.dragStarted=new nq;this.dragEnded=new nq;this.activeDateChange=new nq;r(Di).load(nw);this._activeDate=new rl};g=Ox.prototype;
g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(wg(null)).subscribe(function(){return a._init()})};g.ngOnChanges=function(a){var b=a.comparisonStart||a.comparisonEnd;b&&!b.firstChange&&this._setRanges(this.selected);a.activeDrag&&!this.activeDrag&&this._clearPreview()};g.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};
g._dateSelected=function(a){var b=a.value,c=this._getDateFromDayOfMonth(b),d;(d=this._getDateInCurrentMonth(this._selected))===b&&d===b||this.selectedChange.emit(c);this._userSelection.emit({value:c,event:a.event});this._clearPreview();this._changeDetectorRef.markForCheck()};g._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(a.value);tx(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this._activeDate)};
g._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=Px(this._activeDate,c?1:-1);break;case 39:this.activeDate=Px(this._activeDate,c?-1:1);break;case 38:this.activeDate=Px(this._activeDate,-7);break;case 40:this.activeDate=Px(this._activeDate,7);break;case 36:this.activeDate=Px(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=Px(this._activeDate,Qfc(this._activeDate)-this._dateAdapter.getDate(this._activeDate));
break;case 33:this.activeDate=a.altKey?Qx(this._activeDate,-1):Rx(this._activeDate,-1);break;case 34:this.activeDate=a.altKey?Qx(this._activeDate,1):Rx(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0;this._canSelect(this._activeDate)&&a.preventDefault();return;case 27:this._previewEnd==null||ki(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}tx(this._dateAdapter,b,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked());a.preventDefault()};g._handleCalendarBodyKeyup=function(a){if(a.keyCode===32||a.keyCode===13)this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:a}),this._selectionKeyPressed=!1};
g._init=function(){this._setRanges(this.selected);this._todayDate=this._getCellCompareValue(new rl);this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.locale.SHORTMONTHS[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();this._firstWeekOffset=(7+Sx(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1).getDay()-this._dateAdapter.getFirstDayOfWeek())%
7;this._initWeekdays();this._createWeekCells();this._changeDetectorRef.markForCheck()};g._focusActiveCell=function(a){this._matCalendarBody._focusActiveCell(a)};g._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};
g._previewChanged=function(a){var b=a.event;a=a.value;if(this._rangeStrategy){a=a?a.rawValue:null;var c=this._rangeStrategy.createPreview(a,this.selected,b);this._previewStart=this._getCellCompareValue(c.start);this._previewEnd=this._getCellCompareValue(c.end);if(this.activeDrag&&a){var d,e;if(c=(e=(d=this._rangeStrategy).createDrag)==null?void 0:e.call(d,this.activeDrag.value,this.selected,a,b))this._previewStart=this._getCellCompareValue(c.start),this._previewEnd=this._getCellCompareValue(c.end)}this._changeDetectorRef.detectChanges()}};
g._dragEnded=function(a){if(this.activeDrag)if(a.value){var b,c,d=(b=this._rangeStrategy)==null?void 0:(c=b.createDrag)==null?void 0:c.call(b,this.activeDrag.value,this.selected,a.value,a.event);this.dragEnded.emit({value:d!=null?d:null,event:a.event})}else this.dragEnded.emit({value:null,event:a.event})};g._getDateFromDayOfMonth=function(a){return Sx(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),a)};
g._initWeekdays=function(){var a=this._dateAdapter.getFirstDayOfWeek(),b=rkc(this._dateAdapter,"narrow"),c=rkc(this._dateAdapter,"long").map(function(d,e){return{long:d,narrow:b[e],id:qkc++}});this._weekdays=c.slice(a).concat(c.slice(0,a))};
g._createWeekCells=function(){var a=Qfc(this.activeDate),b=skc;this._weeks=[[]];for(var c=0,d=this._firstWeekOffset;c<a;c++,d++){d==7&&(this._weeks.push([]),d=0);var e=Sx(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),c+1),f=this._shouldEnableDate(e),h=this._dateAdapter.format(e,this._dateFormats.display.dateA11yLabel),k=this.dateClass?this.dateClass(e,"month"):void 0;this._weeks[this._weeks.length-1].push(new ekc(c+1,b[c],h,f,k,this._getCellCompareValue(e),
e))}};g._shouldEnableDate=function(a){return!!a&&(!this.minDate||tx(this._dateAdapter,a,this.minDate)>=0)&&(!this.maxDate||tx(this._dateAdapter,a,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(a))};g._getDateInCurrentMonth=function(a){return a&&this._hasSameMonthAndYear(a,this.activeDate)?this._dateAdapter.getDate(a):null};g._hasSameMonthAndYear=function(a,b){return!(!a||!b||this._dateAdapter.getMonth(a)!=this._dateAdapter.getMonth(b)||this._dateAdapter.getYear(a)!=this._dateAdapter.getYear(b))};
g._getCellCompareValue=function(a){if(a){var b=this._dateAdapter.getYear(a),c=this._dateAdapter.getMonth(a);return(new Date(b,c,this._dateAdapter.getDate(a))).getTime()}return null};g._isRtl=function(){return this._dir&&this._dir.value==="rtl"};g._setRanges=function(a){this._rangeStart=this._rangeEnd=this._getCellCompareValue(a);this._isRange=!1;this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart);this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)};
g._canSelect=function(a){return!this.dateFilter||this.dateFilter(a)};g._clearPreview=function(){this._previewStart=this._previewEnd=null};
nd.Object.defineProperties(Ox.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=rx(this._dateAdapter,sx(this._dateAdapter,a))||new rl;this._activeDate=Hjc(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=rx(this._dateAdapter,sx(this._dateAdapter,a));
this._setRanges(this._selected)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=rx(this._dateAdapter,sx(this._dateAdapter,a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=rx(this._dateAdapter,sx(this._dateAdapter,a))}}});Ox.\u0275fac=function(a){return new (a||Ox)};
Ox.\u0275cmp=y({type:Ox,selectors:[["mat-month-view"]],viewQuery:function(a,b){a&1&&hh(Hx,5);if(a&2){var c;lh(c=mh())&&(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:[ov],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&&(J(0,"table",0)(1,"thead",1)(2,"tr"),Pg(3,gqa,5,2,"th",2,pkc),K(),J(5,"tr",3),M(6,"th",4),K()(),J(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)}),K()());a&2&&(x(3),Qg(b._weekdays),x(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:[Hx],encapsulation:2,changeDetection:0});var Tx=function(){this._changeDetectorRef=r(Hv);this._dateAdapter=r(qx,{optional:!0});this._dir=r(Gi,{optional:!0});this._rerenderSubscription=yf.EMPTY;this.selectedChange=new nq;this.yearSelected=new nq;this.activeDateChange=new nq;this._activeDate=new rl};g=Tx.prototype;g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(wg(null)).subscribe(function(){return a._init()})};g.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};
g._init=function(){var a=this;this._todayYear=this._dateAdapter.getYear(new rl);var b=this._dateAdapter.getYear(this._activeDate)-jqa(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var c=0,d=[];c<24;c++)d.push(b+c),d.length==4&&(this._years.push(d.map(function(e){return a._createCellForYear(e)})),d=[]);this._changeDetectorRef.markForCheck()};g._yearSelected=function(a){var b=a.value;a=Sx(b,0,1);b=this._getDateFromYear(b);this.yearSelected.emit(a);this.selectedChange.emit(b)};
g._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromYear(a.value);tx(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this.activeDate)};
g._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=Qx(this._activeDate,c?1:-1);break;case 39:this.activeDate=Qx(this._activeDate,c?-1:1);break;case 38:this.activeDate=Qx(this._activeDate,-4);break;case 40:this.activeDate=Qx(this._activeDate,4);break;case 36:this.activeDate=Qx(this._activeDate,-jqa(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=Qx(this._activeDate,24-jqa(this._dateAdapter,
this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=Qx(this._activeDate,a.altKey?-240:-24);break;case 34:this.activeDate=Qx(this._activeDate,a.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}tx(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this.activeDate);this._focusActiveCellAfterViewChecked();a.preventDefault()};
g._handleCalendarBodyKeyup=function(a){if(a.keyCode===32||a.keyCode===13)this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:a}),this._selectionKeyPressed=!1};g._getActiveCell=function(){return jqa(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)};g._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()};g._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};
g._getDateFromYear=function(a){var b=this._dateAdapter.getMonth(this.activeDate);var c=Sx(a,b,1);c=Qfc(c);return Sx(a,b,Math.min(this._dateAdapter.getDate(this.activeDate),c))};g._createCellForYear=function(a){var b=Sx(a,0,1),c=""+b.getFullYear();b=this.dateClass?this.dateClass(b,"multi-year"):void 0;return new ekc(a,c,c,this._shouldEnableYear(a),b)};
g._shouldEnableYear=function(a){if(a===void 0||a===null||this.maxDate&&a>this._dateAdapter.getYear(this.maxDate)||this.minDate&&a<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(var b=Sx(a,0,1);this._dateAdapter.getYear(b)==a;b=Px(b,1))if(this.dateFilter(b))return!0;return!1};g._isRtl=function(){return this._dir&&this._dir.value==="rtl"};g._setSelectedYear=function(a){this._selectedYear=null;a&&(this._selectedYear=this._dateAdapter.getYear(a))};
nd.Object.defineProperties(Tx.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=rx(this._dateAdapter,sx(this._dateAdapter,a))||new rl;this._activeDate=Hjc(this._dateAdapter,a,this.minDate,this.maxDate);iqa(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=rx(this._dateAdapter,sx(this._dateAdapter,
a));this._setSelectedYear(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=rx(this._dateAdapter,sx(this._dateAdapter,a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=rx(this._dateAdapter,sx(this._dateAdapter,a))}}});Tx.\u0275fac=function(a){return new (a||Tx)};
Tx.\u0275cmp=y({type:Tx,selectors:[["mat-multi-year-view"]],viewQuery:function(a,b){a&1&&hh(Hx,5);if(a&2){var c;lh(c=mh())&&(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&&(J(0,"table",0)(1,"thead",1)(2,"tr"),M(3,"th",2),K()(),J(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)}),K()());a&2&&(x(4),I("rows",b._years)("todayValue",b._todayYear)("startValue",b._selectedYear)("endValue",b._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",b._getActiveCell()))},dependencies:[Hx],encapsulation:2,changeDetection:0});var Ux=function(){this._changeDetectorRef=r(Hv);this._dateFormats=r(ux,{optional:!0});this._dateAdapter=r(qx,{optional:!0});this._dir=r(Gi,{optional:!0});this._rerenderSubscription=yf.EMPTY;this.selectedChange=new nq;this.monthSelected=new nq;this.activeDateChange=new nq;this._activeDate=new rl};g=Ux.prototype;g.ngAfterContentInit=function(){var a=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(wg(null)).subscribe(function(){return a._init()})};g.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()};
g._monthSelected=function(a){a=a.value;var b=Sx(this._dateAdapter.getYear(this.activeDate),a,1);this.monthSelected.emit(b);a=this._getDateFromMonth(a);this.selectedChange.emit(a)};g._updateActiveDate=function(a){var b=this._activeDate;this.activeDate=this._getDateFromMonth(a.value);tx(this._dateAdapter,b,this.activeDate)&&this.activeDateChange.emit(this.activeDate)};
g._handleCalendarBodyKeydown=function(a){var b=this._activeDate,c=this._isRtl();switch(a.keyCode){case 37:this.activeDate=Rx(this._activeDate,c?1:-1);break;case 39:this.activeDate=Rx(this._activeDate,c?-1:1);break;case 38:this.activeDate=Rx(this._activeDate,-4);break;case 40:this.activeDate=Rx(this._activeDate,4);break;case 36:this.activeDate=Rx(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=Rx(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));
break;case 33:this.activeDate=Qx(this._activeDate,a.altKey?-10:-1);break;case 34:this.activeDate=Qx(this._activeDate,a.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}tx(this._dateAdapter,b,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked());a.preventDefault()};
g._handleCalendarBodyKeyup=function(a){if(a.keyCode===32||a.keyCode===13)this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:a}),this._selectionKeyPressed=!1};
g._init=function(){var a=this;this._setSelectedMonth(this.selected);this._todayMonth=this._getMonthInCurrentYear(new rl);this._yearLabel=""+this.activeDate.getFullYear();var b=this._dateAdapter.locale.SHORTMONTHS;this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(function(c){return c.map(function(d){return a._createCellForMonth(d,b[d])})});this._changeDetectorRef.markForCheck()};g._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()};g._focusActiveCellAfterViewChecked=function(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()};
g._getMonthInCurrentYear=function(a){return a&&this._dateAdapter.getYear(a)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(a):null};g._getDateFromMonth=function(a){var b=Sx(this._dateAdapter.getYear(this.activeDate),a,1);b=Qfc(b);return Sx(this._dateAdapter.getYear(this.activeDate),a,Math.min(this._dateAdapter.getDate(this.activeDate),b))};
g._createCellForMonth=function(a,b){var c=Sx(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 ekc(a,b.toLocaleUpperCase(),d,this._shouldEnableMonth(a),c)};
g._shouldEnableMonth=function(a){var b=this._dateAdapter.getYear(this.activeDate);if(a===void 0||a===null||this._isYearAndMonthAfterMaxDate(b,a)||this._isYearAndMonthBeforeMinDate(b,a))return!1;if(!this.dateFilter)return!0;for(b=Sx(b,a,1);this._dateAdapter.getMonth(b)==a;b=Px(b,1))if(this.dateFilter(b))return!0;return!1};g._isYearAndMonthAfterMaxDate=function(a,b){if(this.maxDate){var c=this._dateAdapter.getYear(this.maxDate),d=this._dateAdapter.getMonth(this.maxDate);return a>c||a===c&&b>d}return!1};
g._isYearAndMonthBeforeMinDate=function(a,b){if(this.minDate){var c=this._dateAdapter.getYear(this.minDate),d=this._dateAdapter.getMonth(this.minDate);return a<c||a===c&&b<d}return!1};g._isRtl=function(){return this._dir&&this._dir.value==="rtl"};g._setSelectedMonth=function(a){this._selectedMonth=this._getMonthInCurrentYear(a)};
nd.Object.defineProperties(Ux.prototype,{activeDate:{configurable:!0,enumerable:!0,get:function(){return this._activeDate},set:function(a){var b=this._activeDate;a=rx(this._dateAdapter,sx(this._dateAdapter,a))||new rl;this._activeDate=Hjc(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=rx(this._dateAdapter,
sx(this._dateAdapter,a));this._setSelectedMonth(a)}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=rx(this._dateAdapter,sx(this._dateAdapter,a))}},maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=rx(this._dateAdapter,sx(this._dateAdapter,a))}}});Ux.\u0275fac=function(a){return new (a||Ux)};
Ux.\u0275cmp=y({type:Ux,selectors:[["mat-year-view"]],viewQuery:function(a,b){a&1&&hh(Hx,5);if(a&2){var c;lh(c=mh())&&(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&&(J(0,"table",0)(1,"thead",1)(2,"tr"),M(3,"th",2),K()(),J(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)}),K()());a&2&&(x(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:[Hx],encapsulation:2,changeDetection:0});var Wx=function(){var a=this;this._intl=r(Gx);this.calendar=r(Vx);this._dateAdapter=r(qx,{optional:!0});this._dateFormats=r(ux,{optional:!0});this._periodButtonLabelId=r(Fi).getId("mat-calendar-period-label-");r(Di).load(nw);var b=r(Hv);this._updateLabels();this.calendar.stateChanges.subscribe(function(){a._updateLabels();b.markForCheck()})},tkc=function(a){return a.calendar.minDate?!a.calendar.minDate||!a._isSameView(a.calendar.activeDate,a.calendar.minDate):!0};
Wx.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,p(this._formatMinAndMaxYearLabels())),this._periodButtonDescription=b.formatYearRangeLabel.apply(b,p(this._formatMinAndMaxYearLabels())),this._periodButtonLabel=b.switchToMonthViewLabel,this._prevButtonLabel=b.prevMultiYearLabel,this._nextButtonLabel=
b.nextMultiYearLabel)};Wx.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):iqa(this._dateAdapter,a,b,this.calendar.minDate,this.calendar.maxDate)};
Wx.prototype._formatMinAndMaxYearLabels=function(){var a=this._dateAdapter.getYear(this.calendar.activeDate)-jqa(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),b=a+24-1;a=""+Sx(a,0,1).getFullYear();b=""+Sx(b,0,1).getFullYear();return[a,b]};
nd.Object.defineProperties(Wx.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}}});
Wx.\u0275fac=function(a){return new (a||Wx)};
Wx.\u0275cmp=y({type:Wx,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:["*"],decls:17,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton",
"","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled"],"viewBox;0 0 24 24;focusable;false;aria-hidden;true".split(";"),["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(a,b){a&1&&(ch(),J(0,"div",0)(1,"div",1)(2,"span",2),R(3),K(),J(4,"button",3),N("click",function(){b.calendar.currentView=
b.calendar.currentView=="month"?"multi-year":"month"}),J(5,"span",4),R(6),K(),Ge(),J(7,"svg",5),M(8,"polygon",6),K()(),He(),M(9,"div",7),dh(10),J(11,"button",8),N("click",function(){tkc(b)&&(b.calendar.activeDate=b.calendar.currentView=="month"?Rx(b.calendar.activeDate,-1):Qx(b.calendar.activeDate,b.calendar.currentView=="year"?-1:-24))}),Ge(),J(12,"svg",9),M(13,"path",10),K()(),He(),J(14,"button",11),N("click",function(){b.calendar.maxDate&&b._isSameView(b.calendar.activeDate,b.calendar.maxDate)||
(b.calendar.activeDate=b.calendar.currentView=="month"?Rx(b.calendar.activeDate,1):Qx(b.calendar.activeDate,b.calendar.currentView=="year"?1:24))}),Ge(),J(15,"svg",9),M(16,"path",12),K()()()());a&2&&(x(2),I("id",b._periodButtonLabelId),x(),wh(b.periodButtonDescription),x(),Lg("aria-label",b.periodButtonLabel)("aria-describedby",b._periodButtonLabelId),x(2),wh(b.periodButtonText),x(),uh("mat-calendar-invert",b.calendar.currentView!=="month"),x(4),I("disabled",!tkc(b)),Lg("aria-label",b.prevButtonLabel),
x(3),I("disabled",!(!b.calendar.maxDate||!b._isSameView(b.calendar.activeDate,b.calendar.maxDate))),Lg("aria-label",b.nextButtonLabel))},dependencies:[Jx,Kx],encapsulation:2,changeDetection:0});
var Vx=function(){var a=this;this._dateAdapter=r(qx,{optional:!0});this._dateFormats=r(ux,{optional:!0});this._changeDetectorRef=r(Hv);this._elementRef=r(Te);this._moveFocusOnNextTick=!1;this.startView="month";this.selectedChange=new nq;this.yearSelected=new nq;this.monthSelected=new nq;this.viewChanged=new nq(!0);this._userSelection=new nq;this._userDragDrop=new nq;this._activeDrag=null;this.stateChanges=new tg;this._intlChanges=r(Gx).changes.subscribe(function(){a._changeDetectorRef.markForCheck();
a.stateChanges.next()})};g=Vx.prototype;g.ngAfterContentInit=function(){this._calendarHeaderPortal=new fx(this.headerComponent||Wx);this.activeDate=this.startAt||new rl;this._currentView=this.startView};g.ngAfterViewChecked=function(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this._getCurrentViewComponent()._focusActiveCell(!1))};g.ngOnDestroy=function(){this._intlChanges.unsubscribe();this.stateChanges.complete()};
g.ngOnChanges=function(a){var b=a.minDate&&!this._dateAdapter.sameDate(a.minDate.previousValue,a.minDate.currentValue)?a.minDate:void 0,c=a.maxDate&&!this._dateAdapter.sameDate(a.maxDate.previousValue,a.maxDate.currentValue)?a.maxDate:void 0;(a=b||c||a.dateFilter)&&!a.firstChange&&(a=this._getCurrentViewComponent())&&(this._elementRef.nativeElement.contains(mi())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init());this.stateChanges.next()};
g._dateSelected=function(a){var b=a.value;b&&!this._dateAdapter.sameDate(b,this.selected)&&this.selectedChange.emit(b);this._userSelection.emit(a)};g._yearSelectedInMultiYearView=function(a){this.yearSelected.emit(a)};g._monthSelectedInYearView=function(a){this.monthSelected.emit(a)};g._goToDateInView=function(a,b){this.activeDate=a;this.currentView=b};g._dragStarted=function(a){this._activeDrag=a};g._dragEnded=function(a){this._activeDrag&&(a.value&&this._userDragDrop.emit(a),this._activeDrag=null)};
g._getCurrentViewComponent=function(){return this.monthView||this.yearView||this.multiYearView};
nd.Object.defineProperties(Vx.prototype,{startAt:{configurable:!0,enumerable:!0,get:function(){return this._startAt},set:function(a){this._startAt=rx(this._dateAdapter,sx(this._dateAdapter,a))}},selected:{configurable:!0,enumerable:!0,get:function(){return this._selected},set:function(a){this._selected=rx(this._dateAdapter,sx(this._dateAdapter,a))}},minDate:{configurable:!0,enumerable:!0,get:function(){return this._minDate},set:function(a){this._minDate=rx(this._dateAdapter,sx(this._dateAdapter,a))}},
maxDate:{configurable:!0,enumerable:!0,get:function(){return this._maxDate},set:function(a){this._maxDate=rx(this._dateAdapter,sx(this._dateAdapter,a))}},activeDate:{configurable:!0,enumerable:!0,get:function(){return this._clampedActiveDate},set:function(a){this._clampedActiveDate=Hjc(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))}}});Vx.\u0275fac=function(a){return new (a||Vx)};
Vx.\u0275cmp=y({type:Vx,selectors:[["mat-calendar"]],viewQuery:function(a,b){a&1&&(hh(Ox,5),hh(Ux,5),hh(Tx,5));if(a&2){var c;lh(c=mh())&&(b.monthView=c.first);lh(c=mh())&&(b.yearView=c.first);lh(c=mh())&&(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:[Fh([nkc]),ov],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&&(D(0,kqa,0,0,"ng-template",0),J(1,"div",1),F(2,lqa,1,11,"mat-month-view",2)(3,mqa,1,6,"mat-year-view",3)(4,nqa,1,6,"mat-multi-year-view",3),K());if(a&2){var c;I("cdkPortalOutlet",b._calendarHeaderPortal);x(2);G((c=b.currentView)==="month"?2:c==="year"?3:c==="multi-year"?4:-1)}},dependencies:[jx,lw,Ox,Ux,Tx],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 Xx=function(a,b){this._renderer=a;this._elementRef=b;this.onChange=function(){};this.onTouched=function(){}};Xx.prototype.setProperty=function(a,b){this._renderer.setProperty(this._elementRef.nativeElement,a,b)};Xx.prototype.registerOnTouched=function(a){this.onTouched=a};Xx.prototype.registerOnChange=function(a){this.onChange=a};Xx.prototype.setDisabledState=function(a){this.setProperty("disabled",a)};Xx.\u0275fac=function(a){return new (a||Xx)(of(Ji),of(Te))};Xx.\u0275dir=vf({type:Xx});
var Vi=function(){Xx.apply(this,arguments)};Y(Vi,Xx);Vi.\u0275fac=function(){var a;return function(b){return(a||(a=Re(Vi)))(b||Vi)}}();Vi.\u0275dir=vf({type:Vi,features:[Bg]});var Yx=new le("");var ukc={provide:Yx,useExisting:$d(function(){return Ui}),multi:!0},vkc=new le(""),Ui=function(a,b,c){Xx.call(this,a,b);this._compositionMode=c;this._composing=!1;this._compositionMode==null&&(this._compositionMode=!/android (\d+)/.test((uic?window.navigator.userAgent:"").toLowerCase()))};Y(Ui,Xx);Ui.prototype.writeValue=function(a){this.setProperty("value",a==null?"":a)};Ui.prototype._handleInput=function(a){if(!this._compositionMode||this._compositionMode&&!this._composing)this.onChange(a)};
Ui.prototype._compositionStart=function(){this._composing=!0};Ui.prototype._compositionEnd=function(a){this._composing=!1;this._compositionMode&&this.onChange(a)};Ui.\u0275fac=function(a){return new (a||Ui)(of(Ji),of(Te),of(vkc,8))};
Ui.\u0275dir=vf({type:Ui,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:[Fh([ukc]),Bg]});var Zx=new le(""),wkc=new le(""),Si=function(a){return sqa(a)};var ay=function(){this._rawValidators=[];this._rawAsyncValidators=[];this._onDestroyCallbacks=[]};g=ay.prototype;g._setValidators=function(a){this._rawValidators=a||[];this._composedValidatorFn=Cqa(this._rawValidators)};g._setAsyncValidators=function(a){this._rawAsyncValidators=a||[];this._composedAsyncValidatorFn=Eqa(this._rawAsyncValidators)};g._registerOnDestroy=function(a){this._onDestroyCallbacks.push(a)};
g._invokeOnDestroyCallbacks=function(){this._onDestroyCallbacks.forEach(function(a){return a()});this._onDestroyCallbacks=[]};g.reset=function(a){this.control&&this.control.reset(a)};g.hasError=function(a,b){return this.control?this.control.hasError(a,b):!1};g.getError=function(a,b){return this.control?this.control.getError(a,b):null};
nd.Object.defineProperties(ay.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 by=function(){ay.apply(this,arguments);this.valueAccessor=this.name=this._parent=null};Y(by,ay);var cy=function(){ay.apply(this,arguments)};Y(cy,ay);nd.Object.defineProperties(cy.prototype,{formDirective:{configurable:!0,enumerable:!0,get:function(){return null}},path:{configurable:!0,enumerable:!0,get:function(){return null}}});var xkc=function(a){this._cd=a};
nd.Object.defineProperties(xkc.prototype,{isTouched:{configurable:!0,enumerable:!0,get:function(){var a,b,c;(a=this._cd)==null||(b=a.control)==null||(c=b._touched)==null||c.call(b);var d,e;return!!((d=this._cd)==null?0:(e=d.control)==null?0:e.touched)}},isUntouched:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this._cd)==null?0:(b=a.control)==null?0:b.untouched)}},isPristine:{configurable:!0,enumerable:!0,get:function(){var a,b,c;(a=this._cd)==null||(b=a.control)==null||(c=b._pristine)==
null||c.call(b);var d,e;return!!((d=this._cd)==null?0:(e=d.control)==null?0:e.pristine)}},isDirty:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this._cd)==null?0:(b=a.control)==null?0:b.dirty)}},isValid:{configurable:!0,enumerable:!0,get:function(){var a,b,c;(a=this._cd)==null||(b=a.control)==null||(c=b._status)==null||c.call(b);var d,e;return!!((d=this._cd)==null?0:(e=d.control)==null?0:e.valid)}},isInvalid:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this._cd)==
null?0:(b=a.control)==null?0:b.invalid)}},isPending:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this._cd)==null?0:(b=a.control)==null?0:b.pending)}},isSubmitted:{configurable:!0,enumerable:!0,get:function(){var a,b;(a=this._cd)==null||(b=a._submitted)==null||b.call(a);var c;return!((c=this._cd)==null||!c.submitted)}}});
Object.assign({},{"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},{"[class.ng-submitted]":"isSubmitted"});var dy=function(a){this._cd=a};Y(dy,xkc);dy.\u0275fac=function(a){return new (a||dy)(of(by,2))};
dy.\u0275dir=vf({type:dy,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(a,b){a&2&&uh("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:[Bg]});var ey=function(a){this._cd=a};Y(ey,xkc);ey.\u0275fac=function(a){return new (a||ey)(of(cy,10))};
ey.\u0275dir=vf({type:ey,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(a,b){a&2&&uh("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:[Bg]});var ykc=new le("",{providedIn:"root",factory:function(){return"whenDisabledForLegacyCode"}});var fy=function(){},zkc=function(a,b){this.value=a;this.source=b};Y(zkc,fy);var Akc=function(a,b){this.pristine=a;this.source=b};Y(Akc,fy);var Bkc=function(a,b){this.touched=a;this.source=b};Y(Bkc,fy);var Ckc=function(a,b){this.status=a;this.source=b};Y(Ckc,fy);var Dkc=function(a){this.source=a};Y(Dkc,fy);var Ekc=function(a){this.source=a};Y(Ekc,fy);
var gy=function(a,b){var c=this;this._pendingDirty=!1;this._hasOwnPendingAsyncValidator=null;this._pendingTouched=!1;this._onCollectionChange=function(){};this._parent=null;this._status=Zh.apply(null,[function(){return c.statusReactive()}].concat(p([])));this.statusReactive=nh.apply(null,[void 0].concat(p([])));this._pristine=Zh.apply(null,[function(){return c.pristineReactive()}].concat(p([])));this.pristineReactive=nh.apply(null,[!0].concat(p([])));this._touched=Zh.apply(null,[function(){return c.touchedReactive()}].concat(p([])));
this.touchedReactive=nh.apply(null,[!1].concat(p([])));this._events=new tg;this.events=xv(this._events);this._onDisabledChange=[];this._assignValidators(a);this._assignAsyncValidators(b)},Sqa=function(a,b){a._assignValidators(b)},Tqa=function(a,b){a._assignAsyncValidators(b)},Vqa=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&&Vqa(a._parent,Object.assign({},b,{sourceControl:e}));c&&b.emitEvent!==!1&&a._events.next(new Bkc(!0,
e))},Fkc=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){Fkc(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 Bkc(!1,e))},Wqa=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&&Wqa(a._parent,Object.assign({},b,{sourceControl:e}));
c&&b.emitEvent!==!1&&a._events.next(new Akc(!1,e))},Gkc=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){Gkc(f,{onlySelf:!0,emitEvent:b.emitEvent})});a._parent&&!b.onlySelf&&a._parent._updatePristine(b,e);c&&b.emitEvent!==!1&&a._events.next(new Akc(!0,e))};g=gy.prototype;
g.disable=function(a){a=a===void 0?{}:a;var b=this._parentMarkedDirty(a.onlySelf);this.status="DISABLED";this.errors=null;this._forEachChild(function(e){e.disable(Object.assign({},a,{onlySelf:!0}))});this._updateValue();var c,d=(c=a.sourceControl)!=null?c:this;a.emitEvent!==!1&&(this._events.next(new zkc(this.value,d)),this._events.next(new Ckc(this.status,d)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status));this._updateAncestors(Object.assign({},a,{skipPristineCheck:b}),this);
this._onDisabledChange.forEach(function(e){return e(!0)})};g.enable=function(a){a=a===void 0?{}:a;var b=this._parentMarkedDirty(a.onlySelf);this.status="VALID";this._forEachChild(function(c){c.enable(Object.assign({},a,{onlySelf:!0}))});Ti(this,{onlySelf:!0,emitEvent:a.emitEvent});this._updateAncestors(Object.assign({},a,{skipPristineCheck:b}),this);this._onDisabledChange.forEach(function(c){return c(!1)})};
g._updateAncestors=function(a,b){this._parent&&!a.onlySelf&&(Ti(this._parent,a),a.skipPristineCheck||this._parent._updatePristine({},b),this._parent._updateTouched({},b))};g.setParent=function(a){this._parent=a};g.getRawValue=function(){return this.value};
var Ti=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 zkc(a.value,c)),a._events.next(new Ckc(a.status,c)),a.valueChanges.emit(a.value),a.statusChanges.emit(a.status));a._parent&&!b.onlySelf&&Ti(a._parent,Object.assign({},
b,{sourceControl:c}))};g=gy.prototype;g._updateTreeValidity=function(a){a=a===void 0?{emitEvent:!0}:a;this._forEachChild(function(b){return b._updateTreeValidity(a)});Ti(this,{onlySelf:!0,emitEvent:a.emitEvent})};g._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"};g._runValidator=function(){return this.validator?this.validator(this):null};
g._runAsyncValidator=function(a,b){var c=this;this.asyncValidator&&(this.status="PENDING",this._hasOwnPendingAsyncValidator={emitEvent:b!==!1,shouldHaveEmitted:a!==!1},this._asyncValidationSubscription=xqa(this.asyncValidator(this)).subscribe(function(d){c._hasOwnPendingAsyncValidator=null;c.setErrors(d,{emitEvent:b,shouldHaveEmitted:a})}))};
g._cancelExistingSubscription=function(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();var a,b,c,d=(c=((a=this._hasOwnPendingAsyncValidator)==null?void 0:a.emitEvent)||((b=this._hasOwnPendingAsyncValidator)==null?void 0:b.shouldHaveEmitted))!=null?c:!1;this._hasOwnPendingAsyncValidator=null;return d}return!1};g.setErrors=function(a,b){b=b===void 0?{}:b;this.errors=a;this._updateControlsErrors(b.emitEvent!==!1,this,b.shouldHaveEmitted)};
g.get=function(a){if(a==null)return null;Array.isArray(a)||(a=a.split("."));return a.length===0?null:a.reduce(function(b,c){return b&&b._find(c)},this)};g.getError=function(a,b){return(b=b?this.get(b):this)&&b.errors?b.errors[a]:null};g.hasError=function(a,b){return!!this.getError(a,b)};
g._updateControlsErrors=function(a,b,c){this.status=this._calculateStatus();a&&this.statusChanges.emit(this.status);(a||c)&&this._events.next(new Ckc(this.status,b));this._parent&&this._parent._updateControlsErrors(a,b,c)};g._initObservables=function(){this.valueChanges=new nq;this.statusChanges=new nq};
g._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"};g._anyControlsHaveStatus=function(a){return this._anyControls(function(b){return b.status===a})};g._anyControlsDirty=function(){return this._anyControls(function(a){return a.dirty})};g._anyControlsTouched=function(){return this._anyControls(function(a){return a.touched})};
g._updatePristine=function(a,b){var c=!this._anyControlsDirty(),d=this.pristine!==c;this.pristine=c;this._parent&&!a.onlySelf&&this._parent._updatePristine(a,b);d&&this._events.next(new Akc(this.pristine,b))};g._updateTouched=function(a,b){a=a===void 0?{}:a;this.touched=this._anyControlsTouched();this._events.next(new Bkc(this.touched,b));this._parent&&!a.onlySelf&&this._parent._updateTouched(a,b)};g._registerOnCollectionChange=function(a){this._onCollectionChange=a};
g._setUpdateStrategy=function(a){Wi(a)&&a.updateOn!=null&&(this._updateOn=a.updateOn)};g._parentMarkedDirty=function(a){var b=this._parent&&this._parent.dirty;return!a&&!!b&&!this._parent._anyControlsDirty()};g._find=function(){return null};g._assignValidators=function(a){a=this._rawValidators=Array.isArray(a)?a.slice():a;this._composedValidatorFn=Array.isArray(a)?Cqa(a):a||null};
g._assignAsyncValidators=function(a){a=this._rawAsyncValidators=Array.isArray(a)?a.slice():a;this._composedAsyncValidatorFn=Array.isArray(a)?Eqa(a):a||null};
nd.Object.defineProperties(gy.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 Sd(this.statusReactive)},
set:function(a){var b=this;Sd(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 Sd(this.pristineReactive)},set:function(a){var b=this;Sd(function(){return b.pristineReactive.set(a)})}},dirty:{configurable:!0,enumerable:!0,get:function(){return!this.pristine}},touched:{configurable:!0,enumerable:!0,get:function(){return Sd(this.touchedReactive)},set:function(a){var b=this;Sd(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 hy=function(a,b,c){gy.call(this,(Wi(b)?b.validators:b)||null,(Wi(b)?b.asyncValidators:c)||null);this.controls=a;this._initObservables();this._setUpdateStrategy(b);this._setUpControls();Ti(this,{onlySelf:!0,emitEvent:!!this.asyncValidator})};Y(hy,gy);var Hkc=function(a,b,c){if(a.controls[b])return a.controls[b];a.controls[b]=c;c.setParent(a);c._registerOnCollectionChange(a._onCollectionChange);return c};g=hy.prototype;
g.addControl=function(a){var b=b===void 0?{}:b;Hkc(this,a);Ti(this,{emitEvent:b.emitEvent});this._onCollectionChange()};g.removeControl=function(a){var b=b===void 0?{}:b;this.controls[a]&&this.controls[a]._registerOnCollectionChange(function(){});delete this.controls[a];Ti(this,{emitEvent:b.emitEvent});this._onCollectionChange()};g.contains=function(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled};
g.setValue=function(a,b){var c=this;b=b===void 0?{}:b;ara(this,a);Object.keys(a).forEach(function(d){$qa(c,!0,d);c.controls[d].setValue(a[d],{onlySelf:!0,emitEvent:b.emitEvent})});Ti(this,b)};g.patchValue=function(a,b){var c=this;b=b===void 0?{}:b;a!=null&&(Object.keys(a).forEach(function(d){var e=c.controls[d];e&&e.patchValue(a[d],{onlySelf:!0,emitEvent:b.emitEvent})}),Ti(this,b))};
g.reset=function(a,b){a=a===void 0?{}:a;b=b===void 0?{}:b;this._forEachChild(function(c,d){c.reset(a?a[d]:null,{onlySelf:!0,emitEvent:b.emitEvent})});this._updatePristine(b,this);this._updateTouched(b,this);Ti(this,b)};g.getRawValue=function(){return this._reduceChildren({},function(a,b,c){a[c]=b.getRawValue();return a})};g._syncPendingControls=function(){var a=this._reduceChildren(!1,function(b,c){return c._syncPendingControls()?!0:b});a&&Ti(this,{onlySelf:!0});return a};
g._forEachChild=function(a){var b=this;Object.keys(this.controls).forEach(function(c){var d=b.controls[c];d&&a(d,c)})};g._setUpControls=function(){var a=this;this._forEachChild(function(b){b.setParent(a);b._registerOnCollectionChange(a._onCollectionChange)})};g._updateValue=function(){this.value=this._reduceValue()};g._anyControls=function(a){for(var b=l(Object.entries(this.controls)),c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;if(this.contains(c)&&a(d))return!0}return!1};
g._reduceValue=function(){var a=this;return this._reduceChildren({},function(b,c,d){if(c.enabled||a.disabled)b[d]=c.value;return b})};g._reduceChildren=function(a,b){var c=a;this._forEachChild(function(d,e){c=b(c,d,e)});return c};g._allControlsDisabled=function(){for(var a=l(Object.keys(this.controls)),b=a.next();!b.done;b=a.next())if(this.controls[b.value].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled};
g._find=function(a){return this.controls.hasOwnProperty(a)?this.controls[a]:null};var Ikc=function(){hy.apply(this,arguments)};Y(Ikc,hy);var Jkc={provide:cy,useExisting:$d(function(){return iy})},Kkc=Promise.resolve(),iy=function(a,b,c){cy.call(this);var d=this;this.callSetDisabledState=c;this._submitted=Zh.apply(null,[function(){return d.submittedReactive()}].concat(p([])));this.submittedReactive=nh.apply(null,[!1].concat(p([])));this._directives=new Set;this.ngSubmit=new nq;this.form=new hy({},Cqa(a),Eqa(b))};Y(iy,cy);g=iy.prototype;g.ngAfterViewInit=function(){this._setUpdateStrategy()};
g.addControl=function(a){var b=this;Kkc.then(function(){var c=b._findContainer(a.path);a.control=Hkc(c,a.name,a.control);Oqa(a.control,a,b.callSetDisabledState);Ti(a.control,{emitEvent:!1});b._directives.add(a)})};g.removeControl=function(a){var b=this;Kkc.then(function(){var c=b._findContainer(a.path);c&&c.removeControl(a.name);b._directives.delete(a)})};g.updateModel=function(a,b){var c=this;Kkc.then(function(){c.form.get(a.path).setValue(b)})};g.setValue=function(a){this.control.setValue(a)};
g.onSubmit=function(a){this.submittedReactive.set(!0);Yqa(this.form,this._directives);this.ngSubmit.emit(a);this.form._events.next(new Dkc(this.control));var b;return(a==null?void 0:(b=a.target)==null?void 0:b.method)==="dialog"};g.onReset=function(){this.resetForm()};g.resetForm=function(a){this.form.reset(a);this.submittedReactive.set(!1);this.form._events.next(new Ekc(this.form))};g._setUpdateStrategy=function(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)};
g._findContainer=function(a){a.pop();return a.length?this.form.get(a):this.form};nd.Object.defineProperties(iy.prototype,{submitted:{configurable:!0,enumerable:!0,get:function(){return Sd(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}}});
iy.\u0275fac=function(a){return new (a||iy)(of(Zx,10),of(wkc,10),of(ykc,8))};iy.\u0275dir=vf({type:iy,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["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:[Fh([Jkc]),Bg]});var jy=function(a,b,c){a=a===void 0?null:a;gy.call(this,(Wi(b)?b.validators:b)||null,(Wi(b)?b.asyncValidators:c)||null);this.defaultValue=null;this._onChange=[];this._pendingChange=!1;this._applyFormState(a);this._setUpdateStrategy(b);this._initObservables();Ti(this,{onlySelf:!0,emitEvent:!!this.asyncValidator});Wi(b)&&(b.nonNullable||b.initialValueIsDefault)&&(bra(a)?this.defaultValue=a.value:this.defaultValue=a)};Y(jy,gy);g=jy.prototype;
g.setValue=function(a,b){var c=this;b=b===void 0?{}:b;this.value=this._pendingValue=a;this._onChange.length&&b.emitModelToViewChange!==!1&&this._onChange.forEach(function(d){return d(c.value,b.emitViewToModelChange!==!1)});Ti(this,b)};g.patchValue=function(a,b){b=b===void 0?{}:b;this.setValue(a,b)};g.reset=function(a,b){a=a===void 0?this.defaultValue:a;b=b===void 0?{}:b;this._applyFormState(a);Gkc(this,b);Fkc(this,b);this.setValue(this.value,b);this._pendingChange=!1};g._updateValue=function(){};
g._anyControls=function(){return!1};g._allControlsDisabled=function(){return this.disabled};g.registerOnChange=function(a){this._onChange.push(a)};g._unregisterOnChange=function(a){var b=this._onChange;a=b.indexOf(a);a>-1&&b.splice(a,1)};g._unregisterOnDisabledChange=function(a){var b=this._onDisabledChange;a=b.indexOf(a);a>-1&&b.splice(a,1)};g._forEachChild=function(){};
g._syncPendingControls=function(){return this.updateOn==="submit"&&(this._pendingDirty&&Wqa(this),this._pendingTouched&&Vqa(this),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1};g._applyFormState=function(a){bra(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 Lkc={provide:by,useExisting:$d(function(){return ky})},Mkc=Promise.resolve(),ky=function(a,b,c,d,e,f){by.call(this);this._changeDetectorRef=e;this.callSetDisabledState=f;this.control=new jy;this._registered=!1;this.name="";this.update=new nq;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=Zqa(d)};Y(ky,by);g=ky.prototype;
g.ngOnChanges=function(a){this._checkForErrors();if(!this._registered||"name"in a){if(this._registered&&(this._checkName(),this.formDirective)){var b=a.name.previousValue;this.formDirective.removeControl({name:b,path:this._getPath(b)})}this._setUpControl()}"isDisabled"in a&&this._updateDisabled(a);Xqa(a,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)};g.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)};
g.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};g._setUpControl=function(){this._setUpdateStrategy();this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this);this._registered=!0};g._setUpdateStrategy=function(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)};g._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)};
g._setUpStandalone=function(){Oqa(this.control,this,this.callSetDisabledState);Ti(this.control,{emitEvent:!1})};g._checkForErrors=function(){this._checkName()};g._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name)};g._updateValue=function(a){var b=this;Mkc.then(function(){b.control.setValue(a,{emitViewToModelChange:!1});var c;(c=b._changeDetectorRef)==null||c.markForCheck()})};
g._updateDisabled=function(a){var b=this;a=a.isDisabled.currentValue;var c=a!==0&&$h(a);Mkc.then(function(){c&&!b.control.disabled?b.control.disable():!c&&b.control.disabled&&b.control.enable();var d;(d=b._changeDetectorRef)==null||d.markForCheck()})};g._getPath=function(a){return this._parent?Iqa(a,this._parent):[a]};
nd.Object.defineProperties(ky.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}}});ky.\u0275fac=function(a){return new (a||ky)(of(cy,9),of(Zx,10),of(wkc,10),of(Yx,10),of(Hv,8),of(ykc,8))};
ky.\u0275dir=vf({type:ky,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:[Fh([Lkc]),Bg,ov]});var ly=function(){};ly.\u0275fac=function(a){return new (a||ly)};ly.\u0275dir=vf({type:ly,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1});var Nkc={provide:Yx,useExisting:$d(function(){return my}),multi:!0},my=function(){Vi.apply(this,arguments)};Y(my,Vi);my.prototype.writeValue=function(a){this.setProperty("value",a==null?"":a)};my.prototype.registerOnChange=function(a){this.onChange=function(b){a(b==""?null:parseFloat(b))}};my.\u0275fac=function(){var a;return function(b){return(a||(a=Re(my)))(b||my)}}();
my.\u0275dir=vf({type:my,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:[Fh([Nkc]),Bg]});var Okc={provide:Yx,useExisting:$d(function(){return ny}),multi:!0},oy=function(){this._accessors=[]};oy.prototype.add=function(a,b){this._accessors.push([a,b])};oy.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}};oy.prototype.select=function(a){var b=this;this._accessors.forEach(function(c){b._isSameGroup(c,a)&&c[1]!==a&&c[1].writeValue(a.value)})};
oy.prototype._isSameGroup=function(a,b){return a[0].control?a[0]._parent===b._control._parent&&a[1].name===b.name:!1};oy.\u0275fac=function(a){return new (a||oy)};oy.\u0275prov=Cd({token:oy,factory:oy.\u0275fac,providedIn:"root"});var ny=function(a,b,c,d){Vi.call(this,a,b);this._registry=c;this._injector=d;this.setDisabledStateFired=!1;this.onChange=function(){};var e;this.callSetDisabledState=(e=r(ykc,{optional:!0}))!=null?e:"whenDisabledForLegacyCode"};Y(ny,Vi);g=ny.prototype;
g.ngOnInit=function(){this._control=this._injector.get(by);this._checkName();this._registry.add(this._control,this)};g.ngOnDestroy=function(){this._registry.remove(this)};g.writeValue=function(a){this._state=a===this.value;this.setProperty("checked",this._state)};g.registerOnChange=function(a){var b=this;this._fn=a;this.onChange=function(){a(b.value);b._registry.select(b)}};
g.setDisabledState=function(a){(this.setDisabledStateFired||a||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",a);this.setDisabledStateFired=!0};g._checkName=function(){!this.name&&this.formControlName&&(this.name=this.formControlName)};ny.\u0275fac=function(a){return new (a||ny)(of(Ji),of(Te),of(oy),of(Cg))};
ny.\u0275dir=vf({type:ny,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:[Fh([Okc]),Bg]});var Pkc=new le(""),Qkc={provide:by,useExisting:$d(function(){return py})},py=function(a,b,c,d,e){by.call(this);this._ngModelWarningConfig=d;this.callSetDisabledState=e;this.update=new nq;this._ngModelWarningSent=!1;this._setValidators(a);this._setAsyncValidators(b);this.valueAccessor=Zqa(c)};Y(py,by);
py.prototype.ngOnChanges=function(a){if(this._isControlChanged(a)){var b=a.form.previousValue;b&&Qqa(b,this);Oqa(this.form,this,this.callSetDisabledState);Ti(this.form,{emitEvent:!1})}Xqa(a,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)};py.prototype.ngOnDestroy=function(){this.form&&Qqa(this.form,this)};py.prototype.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};py.prototype._isControlChanged=function(a){return a.hasOwnProperty("form")};
nd.Object.defineProperties(py.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}}});py._ngModelWarningSentOnce=!1;py.\u0275fac=function(a){return new (a||py)(of(Zx,10),of(wkc,10),of(Yx,10),of(Pkc,8),of(ykc,8))};
py.\u0275dir=vf({type:py,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[Fh([Qkc]),Bg,ov]});var Rkc={provide:cy,useExisting:$d(function(){return qy})},qy=function(a,b,c){cy.call(this);var d=this;this.callSetDisabledState=c;this._submitted=Zh.apply(null,[function(){return d._submittedReactive()}].concat(p([])));this._submittedReactive=nh.apply(null,[!1].concat(p([])));this._onCollectionChange=function(){return d._updateDomValue()};this.directives=[];this.form=null;this.ngSubmit=new nq;this._setValidators(a);this._setAsyncValidators(b)};Y(qy,cy);g=qy.prototype;
g.ngOnChanges=function(a){a.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)};g.ngOnDestroy=function(){this.form&&(Pqa(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))};g.addControl=function(a){var b=this.form.get(a.path);Oqa(b,a,this.callSetDisabledState);Ti(b,{emitEvent:!1});this.directives.push(a);return b};
g.removeControl=function(a){Qqa(a.control||null,a);var b=this.directives;a=b.indexOf(a);a>-1&&b.splice(a,1)};g.updateModel=function(a,b){this.form.get(a.path).setValue(b)};g.onSubmit=function(a){this._submittedReactive.set(!0);Yqa(this.form,this.directives);this.ngSubmit.emit(a);this.form._events.next(new Dkc(this.control));var b;return(a==null?void 0:(b=a.target)==null?void 0:b.method)==="dialog"};g.onReset=function(){this.resetForm()};
g.resetForm=function(a,b){b=b===void 0?{}:b;this.form.reset(a,b);this._submittedReactive.set(!1);var c;((c=b)==null?void 0:c.emitEvent)!==!1&&this.form._events.next(new Ekc(this.form))};g._updateDomValue=function(){var a=this;this.directives.forEach(function(b){var c=b.control,d=a.form.get(b.path);c!==d&&(Qqa(c||null,b),d instanceof jy&&(Oqa(d,b,a.callSetDisabledState),b.control=d))});this.form._updateTreeValidity({emitEvent:!1})};
g._setUpFormContainer=function(a){var b=this.form.get(a.path);Jqa(b,a);Ti(b,{emitEvent:!1})};g._cleanUpFormContainer=function(a){if(this.form){var b=this.form.get(a.path);b&&Pqa(b,a)&&Ti(b,{emitEvent:!1})}};g._updateRegistrations=function(){this.form._registerOnCollectionChange(this._onCollectionChange);this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})};g._updateValidators=function(){Jqa(this.form,this);this._oldForm&&Pqa(this._oldForm,this)};
nd.Object.defineProperties(qy.prototype,{submitted:{configurable:!0,enumerable:!0,get:function(){return Sd(this._submittedReactive)},set:function(a){this._submittedReactive.set(a)}},formDirective:{configurable:!0,enumerable:!0,get:function(){return this}},control:{configurable:!0,enumerable:!0,get:function(){return this.form}},path:{configurable:!0,enumerable:!0,get:function(){return[]}}});qy.\u0275fac=function(a){return new (a||qy)(of(Zx,10),of(wkc,10),of(ykc,8))};
qy.\u0275dir=vf({type:qy,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:[Fh([Rkc]),Bg,ov]});var Skc={provide:by,useExisting:$d(function(){return ry})},ry=function(a,b,c,d,e){by.call(this);this._ngModelWarningConfig=e;this._added=!1;this.name=null;this.update=new nq;this._ngModelWarningSent=!1;this._parent=a;this._setValidators(b);this._setAsyncValidators(c);this.valueAccessor=Zqa(d)};Y(ry,by);ry.prototype.ngOnChanges=function(a){this._added||this._setUpControl();Xqa(a,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))};
ry.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)};ry.prototype.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};ry.prototype._setUpControl=function(){this.control=this.formDirective.addControl(this);this._added=!0};
nd.Object.defineProperties(ry.prototype,{isDisabled:{configurable:!0,enumerable:!0,set:function(){}},path:{configurable:!0,enumerable:!0,get:function(){return Iqa(this.name==null?this.name:this.name.toString(),this._parent)}},formDirective:{configurable:!0,enumerable:!0,get:function(){return this._parent?this._parent.formDirective:null}}});ry._ngModelWarningSentOnce=!1;ry.\u0275fac=function(a){return new (a||ry)(of(cy,13),of(Zx,10),of(wkc,10),of(Yx,10),of(Pkc,8))};
ry.\u0275dir=vf({type:ry,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[Fh([Skc]),Bg,ov]});var sy=function(){this._validator=uqa};sy.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):uqa,this._onChange&&this._onChange())};sy.prototype.validate=function(a){return this._validator(a)};sy.prototype.registerOnValidatorChange=function(a){this._onChange=a};sy.prototype.enabled=function(a){return a!=null};sy.\u0275fac=function(a){return new (a||sy)};
sy.\u0275dir=vf({type:sy,features:[ov]});var Tkc={provide:Zx,useExisting:$d(function(){return ty}),multi:!0},ty=function(){sy.apply(this,arguments);this.inputName="max";this.normalizeInput=function(a){return typeof a==="number"?a:parseFloat(a)};this.createValidator=function(a){return rqa(a)}};Y(ty,sy);ty.\u0275fac=function(){var a;return function(b){return(a||(a=Re(ty)))(b||ty)}}();
ty.\u0275dir=vf({type:ty,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&&Lg("max",b._enabled?b.max:null)},inputs:{max:"max"},standalone:!1,features:[Fh([Tkc]),Bg]});
var Ukc={provide:Zx,useExisting:$d(function(){return uy}),multi:!0},uy=function(){sy.apply(this,arguments);this.inputName="min";this.normalizeInput=function(a){return typeof a==="number"?a:parseFloat(a)};this.createValidator=function(a){return qqa(a)}};Y(uy,sy);uy.\u0275fac=function(){var a;return function(b){return(a||(a=Re(uy)))(b||uy)}}();
uy.\u0275dir=vf({type:uy,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&&Lg("min",b._enabled?b.min:null)},inputs:{min:"min"},standalone:!1,features:[Fh([Ukc]),Bg]});var Vkc={provide:Zx,useExisting:$d(function(){return vy}),multi:!0},vy=function(){sy.apply(this,arguments);this.inputName="required";this.normalizeInput=$h;this.createValidator=function(){return sqa}};
Y(vy,sy);vy.prototype.enabled=function(a){return a};vy.\u0275fac=function(){var a;return function(b){return(a||(a=Re(vy)))(b||vy)}}();vy.\u0275dir=vf({type:vy,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(a,b){a&2&&Lg("required",b._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Fh([Vkc]),Bg]});
var Wkc={provide:Zx,useExisting:$d(function(){return wy}),multi:!0},wy=function(){sy.apply(this,arguments);this.inputName="maxlength";this.normalizeInput=function(a){return typeof a==="number"?a:parseInt(a,10)};this.createValidator=function(a){return tqa(a)}};Y(wy,sy);wy.\u0275fac=function(){var a;return function(b){return(a||(a=Re(wy)))(b||wy)}}();
wy.\u0275dir=vf({type:wy,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(a,b){a&2&&Lg("maxlength",b._enabled?b.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[Fh([Wkc]),Bg]});
var Xkc={provide:Zx,useExisting:$d(function(){return xy}),multi:!0},xy=function(){sy.apply(this,arguments);this.inputName="pattern";this.normalizeInput=function(a){return a};this.createValidator=function(a){return vqa(a)}};Y(xy,sy);xy.\u0275fac=function(){var a;return function(b){return(a||(a=Re(xy)))(b||xy)}}();
xy.\u0275dir=vf({type:xy,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(a,b){a&2&&Lg("pattern",b._enabled?b.pattern:null)},inputs:{pattern:"pattern"},standalone:!1,features:[Fh([Xkc]),Bg]});var yy=function(){};yy.\u0275fac=function(a){return new (a||yy)};yy.\u0275mod=uf({type:yy});yy.\u0275inj=Dd({});var Ykc=function(a,b,c){gy.call(this,(Wi(b)?b.validators:b)||null,(Wi(b)?b.asyncValidators:c)||null);this.controls=a;this._initObservables();this._setUpdateStrategy(b);this._setUpControls();Ti(this,{onlySelf:!0,emitEvent:!!this.asyncValidator})};Y(Ykc,gy);g=Ykc.prototype;g.at=function(a){return this.controls[this._adjustIndex(a)]};
g.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));Ti(this,{emitEvent:b.emitEvent});this._onCollectionChange()};g.insert=function(a,b,c){c=c===void 0?{}:c;this.controls.splice(a,0,b);this._registerControl(b);Ti(this,{emitEvent:c.emitEvent})};
g.setValue=function(a,b){var c=this;b=b===void 0?{}:b;ara(this,a);a.forEach(function(d,e){$qa(c,!1,e);c.at(e).setValue(d,{onlySelf:!0,emitEvent:b.emitEvent})});Ti(this,b)};g.patchValue=function(a,b){var c=this;b=b===void 0?{}:b;a!=null&&(a.forEach(function(d,e){c.at(e)&&c.at(e).patchValue(d,{onlySelf:!0,emitEvent:b.emitEvent})}),Ti(this,b))};
g.reset=function(a,b){a=a===void 0?[]:a;b=b===void 0?{}:b;this._forEachChild(function(c,d){c.reset(a[d],{onlySelf:!0,emitEvent:b.emitEvent})});this._updatePristine(b,this);this._updateTouched(b,this);Ti(this,b)};g.getRawValue=function(){return this.controls.map(function(a){return a.getRawValue()})};g.clear=function(a){a=a===void 0?{}:a;this.controls.length<1||(this._forEachChild(function(b){return b._registerOnCollectionChange(function(){})}),this.controls.splice(0),Ti(this,{emitEvent:a.emitEvent}))};
g._adjustIndex=function(a){return a<0?a+this.length:a};g._syncPendingControls=function(){var a=this.controls.reduce(function(b,c){return c._syncPendingControls()?!0:b},!1);a&&Ti(this,{onlySelf:!0});return a};g._forEachChild=function(a){this.controls.forEach(function(b,c){a(b,c)})};g._updateValue=function(){var a=this;this.value=this.controls.filter(function(b){return b.enabled||a.disabled}).map(function(b){return b.value})};
g._anyControls=function(a){return this.controls.some(function(b){return b.enabled&&a(b)})};g._setUpControls=function(){var a=this;this._forEachChild(function(b){return a._registerControl(b)})};g._allControlsDisabled=function(){for(var a=l(this.controls),b=a.next();!b.done;b=a.next())if(b.value.enabled)return!1;return this.controls.length>0||this.disabled};g._registerControl=function(a){a.setParent(this);a._registerOnCollectionChange(this._onCollectionChange)};
g._find=function(a){var b;return(b=this.at(a))!=null?b:null};nd.Object.defineProperties(Ykc.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.controls.length}}});var zy=function(){this.useNonNullable=!1};g=zy.prototype;g.group=function(a,b){b=b===void 0?null:b;a=this._reduceControls(a);var c={};cra(b)?c=b:b!==null&&(c.validators=b.validator,c.asyncValidators=b.asyncValidator);return new hy(a,c)};g.record=function(a,b){b=b===void 0?null:b;a=this._reduceControls(a);return new Ikc(a,b)};g.control=function(a,b,c){var d={};if(!this.useNonNullable)return new jy(a,b,c);cra(b)?d=b:(d.validators=b,d.asyncValidators=c);return new jy(a,Object.assign({},d,{nonNullable:!0}))};
g.array=function(a,b,c){var d=this;a=a.map(function(e){return d._createControl(e)});return new Ykc(a,b,c)};g._reduceControls=function(a){var b=this,c={};Object.keys(a).forEach(function(d){c[d]=b._createControl(a[d])});return c};g._createControl=function(a){return a instanceof jy?a:a instanceof gy?a:Array.isArray(a)?this.control(a[0],a.length>1?a[1]:null,a.length>2?a[2]:null):this.control(a)};
nd.Object.defineProperties(zy.prototype,{nonNullable:{configurable:!0,enumerable:!0,get:function(){var a=new zy;a.useNonNullable=!0;return a}}});zy.\u0275fac=function(a){return new (a||zy)};zy.\u0275prov=Cd({token:zy,factory:zy.\u0275fac,providedIn:"root"});var Ay=function(){};Ay.\u0275fac=function(a){return new (a||Ay)};Ay.\u0275mod=uf({type:Ay});Ay.\u0275inj=Dd({imports:[yy]});var By=function(){};By.\u0275fac=function(a){return new (a||By)};By.\u0275mod=uf({type:By});By.\u0275inj=Dd({imports:[yy]});var Zkc=function(a,b){this.target=a;this.targetElement=b;this.value=this.target.value},Cy=function(){var a=this;this._elementRef=r(Te);this._dateAdapter=r(qx,{optional:!0});this._dateFormats=r(ux,{optional:!0});this.dateChange=new nq;this.dateInput=new nq;this.stateChanges=new tg;this._onTouched=function(){};this._validatorOnChange=function(){};this._cvaOnChange=function(){};this._localeSubscription=this._valueChangesSubscription=yf.EMPTY;this._parseValidator=function(){return a._lastValueValid?null:
{matDatepickerParse:{text:a._elementRef.nativeElement.value}}};this._filterValidator=function(b){b=rx(a._dateAdapter,sx(a._dateAdapter,b.value));return!b||a._matchesFilter(b)?null:{matDatepickerFilter:!0}};this._minValidator=function(b){b=rx(a._dateAdapter,sx(a._dateAdapter,b.value));var c=a._getMinDate();return!c||!b||tx(a._dateAdapter,c,b)<=0?null:{matDatepickerMin:{min:c,actual:b}}};this._maxValidator=function(b){b=rx(a._dateAdapter,sx(a._dateAdapter,b.value));var c=a._getMaxDate();return!c||!b||
tx(a._dateAdapter,c,b)>=0?null:{matDatepickerMax:{max:c,actual:b}}};this._lastValueValid=!1;this._localeSubscription=this._dateAdapter.localeChanges.subscribe(function(){a._assignValueProgrammatically(a.value)})};g=Cy.prototype;g._getValidators=function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]};
g._registerModel=function(a){var b=this;this._model=a;this._valueChangesSubscription.unsubscribe();this._pendingValue&&this._assignValue(this._pendingValue);this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(c){b._shouldHandleChangeEvent(c)&&(c=b._getValueFromModel(c.selection),b._lastValueValid=b._isValidValue(c),b._cvaOnChange(c),b._onTouched(),b._formatValue(c),b.dateInput.emit(new Zkc(b,b._elementRef.nativeElement)),b.dateChange.emit(new Zkc(b,b._elementRef.nativeElement)))})};
g.ngAfterViewInit=function(){this._isInitialized=!0};g.ngOnChanges=function(a){a:{var b=this._dateAdapter,c=Object.keys(a);c=l(c);for(var d=c.next();!d.done;d=c.next()){var e=a[d.value];d=e.previousValue;e=e.currentValue;if(Gjc(d)&&Gjc(e)){if(!b.sameDate(d,e)){a=!0;break a}}else{a=!0;break a}}a=!1}a&&this.stateChanges.next(void 0)};g.ngOnDestroy=function(){this._valueChangesSubscription.unsubscribe();this._localeSubscription.unsubscribe();this.stateChanges.complete()};
g.registerOnValidatorChange=function(a){this._validatorOnChange=a};g.validate=function(a){return this._validator?this._validator(a):null};g.writeValue=function(a){this._assignValueProgrammatically(a)};g.registerOnChange=function(a){this._cvaOnChange=a};g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this.disabled=a};
g._onKeydown=function(a){var b=["ctrlKey","shiftKey","metaKey"];ki(a,"altKey")&&a.keyCode===40&&b.every(function(c){return!ki(a,c)})&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),a.preventDefault())};
g._onInput=function(a){a=a.target.value;var b=this._lastValueValid,c=this._dateAdapter.parse(a,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(c);c=rx(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 Zkc(this,this._elementRef.nativeElement)))};
g._onChange=function(){this.dateChange.emit(new Zkc(this,this._elementRef.nativeElement))};g._onBlur=function(){this.value&&this._formatValue(this.value);this._onTouched()};g._formatValue=function(a){this._elementRef.nativeElement.value=a!=null?this._dateAdapter.format(a,this._dateFormats.display.dateInput):""};g._assignValue=function(a){this._model?(this._assignValueToModel(a),this._pendingValue=null):this._pendingValue=a};g._isValidValue=function(a){return!a||this._dateAdapter.isValid(a)};
g._parentDisabled=function(){return!1};g._assignValueProgrammatically=function(a){a=sx(this._dateAdapter,a);this._lastValueValid=this._isValidValue(a);a=rx(this._dateAdapter,a);this._assignValue(a);this._formatValue(a)};g._matchesFilter=function(a){var b=this._getDateFilter();return!b||b(a)};
nd.Object.defineProperties(Cy.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()}}});
Cy.\u0275fac=function(a){return new (a||Cy)};Cy.\u0275dir=vf({type:Cy,inputs:{value:"value",disabled:[2,"disabled","disabled",$h]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[ov]});var $kc=new le("MatError"),Dy=function(){this.id=r(Fi).getId("mat-mdc-error-")};Dy.\u0275fac=function(a){return new (a||Dy)};Dy.\u0275dir=vf({type:Dy,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&&Rg("id",b.id)},inputs:{id:"id"},features:[Fh([{provide:$kc,useExisting:Dy}])]});var Ey=function(){this.align="start";this.id=r(Fi).getId("mat-mdc-hint-")};Ey.\u0275fac=function(a){return new (a||Ey)};Ey.\u0275dir=vf({type:Ey,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(a,b){a&2&&(Rg("id",b.id),Lg("align",null),uh("mat-mdc-form-field-hint-end",b.align==="end"))},inputs:{align:"align",id:"id"}});var Fy=function(){};Fy.\u0275fac=function(a){return new (a||Fy)};Fy.\u0275dir=vf({type:Fy,selectors:[["mat-label"]]});var alc=new le("MatPrefix"),Gy=function(){this._isText=!1};nd.Object.defineProperties(Gy.prototype,{_isTextSelector:{configurable:!0,enumerable:!0,set:function(){this._isText=!0}}});Gy.\u0275fac=function(a){return new (a||Gy)};Gy.\u0275dir=vf({type:Gy,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[Fh([{provide:alc,useExisting:Gy}])]});var blc=new le("MatSuffix");var Hy=function(){};Hy.\u0275fac=function(a){return new (a||Hy)};Hy.\u0275dir=vf({type:Hy});var clc=function(a){var b=this;this._box=a;this._destroyed=new tg;this._resizeSubject=new tg;this._elementObservables=new Map;typeof ResizeObserver!=="undefined"&&(this._resizeObserver=new ResizeObserver(function(c){return b._resizeSubject.next(c)}))};
clc.prototype.observe=function(a){var b=this;this._elementObservables.has(a)||this._elementObservables.set(a,(new Cf(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(eg(function(c){return c.some(function(d){return d.target===a})}),ug({bufferSize:1,refCount:!0}),yg(this._destroyed)));return this._elementObservables.get(a)};
clc.prototype.destroy=function(){this._destroyed.next();this._destroyed.complete();this._resizeSubject.complete();this._elementObservables.clear()};var Iy=function(){this._observers=new Map;this._ngZone=r(Ph)};Iy.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)};
Iy.prototype.observe=function(a,b){b=(b==null?void 0:b.box)||"content-box";this._observers.has(b)||this._observers.set(b,new clc(b));return this._observers.get(b).observe(a)};Iy.\u0275fac=function(a){return new (a||Iy)};Iy.\u0275prov=Cd({token:Iy,factory:Iy.\u0275fac,providedIn:"root"});var dlc=new le("FloatingLabelParent"),Jy=function(){this._elementRef=r(Te);this._monitorResize=this._floating=!1;this._resizeObserver=r(Iy);this._ngZone=r(Ph);this._parent=r(dlc);this._resizeSubscription=new yf};Jy.prototype.ngOnDestroy=function(){this._resizeSubscription.unsubscribe()};
Jy.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};Jy.prototype._handleResize=function(){var a=this;setTimeout(function(){return a._parent._handleLabelResized()})};
Jy.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()})})};
nd.Object.defineProperties(Jy.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}}});
Jy.\u0275fac=function(a){return new (a||Jy)};Jy.\u0275dir=vf({type:Jy,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(a,b){a&2&&uh("mdc-floating-label--float-above",b.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}});var Ky=function(){var a=this;this._elementRef=r(Te);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=r(Ph),c=r(Ji);b.runOutsideAngular(function(){a._cleanupTransitionEnd=c.listen(a._elementRef.nativeElement,"transitionend",a._handleTransitionEnd)})};
Ky.prototype.activate=function(){var a=this._elementRef.nativeElement.classList;a.remove("mdc-line-ripple--deactivating");a.add("mdc-line-ripple--active")};Ky.prototype.deactivate=function(){this._elementRef.nativeElement.classList.add("mdc-line-ripple--deactivating")};Ky.prototype.ngOnDestroy=function(){this._cleanupTransitionEnd()};Ky.\u0275fac=function(a){return new (a||Ky)};Ky.\u0275dir=vf({type:Ky,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]});var elc=["notch"],Ly=function(){this._elementRef=r(Te);this._ngZone=r(Ph);this.open=!1};Ly.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")};
Ly.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)":""};Ly.prototype._setMaxWidth=function(a){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width","calc(100% - "+a+"px)")};Ly.\u0275fac=function(a){return new (a||Ly)};
Ly.\u0275cmp=y({type:Ly,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(a,b){a&1&&hh(elc,5);if(a&2){var c;lh(c=mh())&&(b._notch=c.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(a,b){a&2&&uh("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&&(ch(),Ug(0,"div",1),Sg(1,"div",2,0),dh(3),Tg(),Ug(4,"div",3))},encapsulation:2,changeDetection:0});var flc=["iconPrefixContainer"],glc=["textPrefixContainer"],hlc=["iconSuffixContainer"],ilc=["textSuffixContainer"],jlc=["textField"],klc=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],llc=new le("MatFormField"),mlc=new le("MAT_FORM_FIELD_DEFAULT_OPTIONS"),My=function(){var a=this;this._elementRef=
r(Te);this._changeDetectorRef=r(Hv);this._platform=r(zi);this._idGenerator=r(Fi);this._ngZone=r(Ph);this._defaults=r(mlc,{optional:!0});this._iconPrefixContainerSignal=Nh.apply(null,["iconPrefixContainer"].concat(p([])));this._textPrefixContainerSignal=Nh.apply(null,["textPrefixContainer"].concat(p([])));this._iconSuffixContainerSignal=Nh.apply(null,["iconSuffixContainer"].concat(p([])));this._textSuffixContainerSignal=Nh.apply(null,["textSuffixContainer"].concat(p([])));this._prefixSuffixContainers=
Zh.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(p([])));this._labelChild=Bna.apply(null,[Fy].concat(p([])));this._hideRequiredMarker=!1;this.color="primary";this._appearanceSignal=nh.apply(null,["fill"].concat(p([])));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 tg;this._outlineLabelOffsetResizeObserver=this._previousControlValidatorFn=this._previousControl=this._isFocused=null;this._animationsDisabled=Ri();this.getLabelId=Zh.apply(null,[function(){return a._hasFloatingLabel()?a._labelId:null}].concat(p([])));this._hasFloatingLabel=Zh.apply(null,[function(){return!!a._labelChild()}].concat(p([])));
var b=this._defaults,c=r(Gi);b&&(b.appearance&&(this.appearance=b.appearance),this._hideRequiredMarker=!(b==null||!b.hideRequiredMarker),b.color&&(this.color=b.color));boa(function(){return a._currentDirection=c.valueSignal()});this._syncOutlineLabelOffset()};g=My.prototype;
g.ngAfterViewInit=function(){var a=this;this._updateFocusState();this._animationsDisabled||this._ngZone.runOutsideAngular(function(){setTimeout(function(){a._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)});this._changeDetectorRef.detectChanges()};g.ngAfterContentInit=function(){this._initializeSubscript();this._initializePrefixAndSuffix()};
g.ngAfterContentChecked=function(){this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control);this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()};
g.ngOnDestroy=function(){var a;(a=this._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()};g.getConnectedOverlayOrigin=function(){return this._textField||this._elementRef};g._animateAndLockLabel=function(){this._hasFloatingLabel()&&(this.floatLabel="always")};
g._initializeControl=function(a){var b=this,c=this._control;a&&this._elementRef.nativeElement.classList.remove("mat-mdc-form-field-type-"+a.controlType);c.controlType&&this._elementRef.nativeElement.classList.add("mat-mdc-form-field-type-"+c.controlType);var d;(d=this._stateChanges)==null||d.unsubscribe();this._stateChanges=c.stateChanges.subscribe(function(){b._updateFocusState();b._changeDetectorRef.markForCheck()});var e;(e=this._describedByChanges)==null||e.unsubscribe();this._describedByChanges=
c.stateChanges.pipe(wg([void 0,void 0]),C(function(){return[c.errorState,c.userAriaDescribedBy]}),tla(),eg(function(h){var k=l(h);var q=l(k.next().value);h=q.next().value;q=q.next().value;var v=l(k.next().value);k=v.next().value;v=v.next().value;return h!==k||q!==v})).subscribe(function(){return b._syncDescribedByIds()});var f;(f=this._valueChanges)==null||f.unsubscribe();c.ngControl&&c.ngControl.valueChanges&&(this._valueChanges=c.ngControl.valueChanges.pipe(yg(this._destroyed)).subscribe(function(){return b._changeDetectorRef.markForCheck()}))};
g._checkPrefixAndSuffixTypes=function(){this._hasIconPrefix=!!this._prefixChildren.find(function(a){return!a._isText});this._hasTextPrefix=!!this._prefixChildren.find(function(a){return a._isText});this._hasIconSuffix=!!this._suffixChildren.find(function(a){return!a._isText});this._hasTextSuffix=!!this._suffixChildren.find(function(a){return a._isText})};
g._initializePrefixAndSuffix=function(){var a=this;this._checkPrefixAndSuffixTypes();dg(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){a._checkPrefixAndSuffixTypes();a._changeDetectorRef.markForCheck()})};g._initializeSubscript=function(){var a=this;this._hintChildren.changes.subscribe(function(){a._processHints();a._changeDetectorRef.markForCheck()});this._errorChildren.changes.subscribe(function(){a._syncDescribedByIds();a._changeDetectorRef.markForCheck()});this._syncDescribedByIds()};
g._assertFormFieldControl=function(){};g._updateFocusState=function(){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)};
g._syncOutlineLabelOffset=function(){var a=this;joa({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())}})};g._shouldAlwaysFloat=function(){return this.floatLabel==="always"};g._hasOutline=function(){return this.appearance==="outline"};g._forceDisplayInfixLabel=function(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()};g._shouldLabelFloat=function(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1};
g._shouldForward=function(a){var b=this._control?this._control.ngControl:null;return b&&b[a]};g._getSubscriptMessageType=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"};g._handleLabelResized=function(){this._refreshOutlineNotchWidth()};
g._refreshOutlineNotchWidth=function(){if(this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()){var a;(a=this._notchedOutline)==null||a._setNotchWidth(this._floatingLabel.getWidth())}else{var b;(b=this._notchedOutline)==null||b._setNotchWidth(0)}};g._processHints=function(){this._syncDescribedByIds()};g._validateHints=function(){};
g._syncDescribedByIds=function(){if(this._control){var a=[];this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy==="string"&&a.push.apply(a,p(this._control.userAriaDescribedBy.split(" ")));if(this._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,p(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}};
g._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 h;f=(h=a==null?void 0:a.getBoundingClientRect().width)!=null?h:0;var k;h=(k=c==null?void 0:c.getBoundingClientRect().width)!=null?k:0;var q;k=(q=d==null?void 0:d.getBoundingClientRect().width)!=null?q: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+h+k]};
g._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)}}};g._isAttachedToDom=function(){var a=this._elementRef.nativeElement;if(a.getRootNode){var b=a.getRootNode();return b&&b!==a}return document.documentElement.contains(a)};
nd.Object.defineProperties(My.prototype,{hideRequiredMarker:{configurable:!0,enumerable:!0,get:function(){return this._hideRequiredMarker},set:function(a){this._hideRequiredMarker=pi(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}}});My.\u0275fac=function(a){return new (a||My)};
My.\u0275cmp=y({type:My,selectors:[["mat-form-field"]],contentQueries:function(a,b,c){a&1&&(oh(b._labelChild,ih(c,Fy,5)),ih(c,Hy,5),ih(c,alc,5),ih(c,blc,5),ih(c,$kc,5),ih(c,Ey,5));if(a&2){Oma();var d;lh(d=mh())&&(b._formFieldControl=d.first);lh(d=mh())&&(b._prefixChildren=d);lh(d=mh())&&(b._suffixChildren=d);lh(d=mh())&&(b._errorChildren=d);lh(d=mh())&&(b._hintChildren=d)}},viewQuery:function(a,b){a&1&&(oh(b._iconPrefixContainerSignal,hh(flc,5)),oh(b._textPrefixContainerSignal,hh(glc,5)),oh(b._iconSuffixContainerSignal,
hh(hlc,5)),oh(b._textSuffixContainerSignal,hh(ilc,5)),hh(jlc,5),hh(flc,5),hh(glc,5),hh(hlc,5),hh(ilc,5),hh(Jy,5),hh(Ly,5),hh(Ky,5));if(a&2){Oma(4);var c;lh(c=mh())&&(b._textField=c.first);lh(c=mh())&&(b._iconPrefixContainer=c.first);lh(c=mh())&&(b._textPrefixContainer=c.first);lh(c=mh())&&(b._iconSuffixContainer=c.first);lh(c=mh())&&(b._textSuffixContainer=c.first);lh(c=mh())&&(b._floatingLabel=c.first);lh(c=mh())&&(b._notchedOutline=c.first);lh(c=mh())&&(b._lineRipple=c.first)}},hostAttrs:[1,"mat-mdc-form-field"],
hostVars:38,hostBindings:function(a,b){a&2&&uh("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:[Fh([{provide:llc,useExisting:My},{provide:dlc,useExisting:My}])],ngContentSelectors:"*;mat-label;[matPrefix], [matIconPrefix];[matTextPrefix];[matTextSuffix];[matSuffix], [matIconSuffix];mat-error, [matError];mat-hint:not([align='end']);mat-hint[align='end']".split(";"),decls:19,vars:25,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",
""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",
""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],["aria-atomic","true","aria-live","polite"],["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();ch(klc);D(0,fra,1,1,"ng-template",null,0,Lh);J(2,"div",6,1);N("click",function(){u(c);return w(b._control.onContainerClick())});
F(4,gra,1,0,"div",7);J(5,"div",8);F(6,jra,2,2,"div",9);F(7,kra,3,0,"div",10);F(8,lra,3,0,"div",11);J(9,"div",12);F(10,nra,1,1,null,13);dh(11);K();F(12,ora,3,0,"div",14);F(13,pra,3,0,"div",15);K();F(14,qra,1,0,"div",16);K();J(15,"div",17)(16,"div",18);F(17,rra,1,0)(18,tra,4,1);K()()}a&2&&(x(2),uh("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),x(2),G(b._hasOutline()||b._control.disabled?-1:4),x(2),G(b._hasOutline()?6:-1),x(),G(b._hasIconPrefix?7:-1),x(),G(b._hasTextPrefix?8:-1),x(2),G(!b._hasOutline()||b._forceDisplayInfixLabel()?10:-1),x(2),G(b._hasTextSuffix?12:-1),x(),G(b._hasIconSuffix?13:-1),x(),G(b._hasOutline()?-1:14),x(),uh("mat-mdc-form-field-subscript-dynamic-size",b.subscriptSizing==="dynamic"),a=b._getSubscriptMessageType(),x(),uh("mat-mdc-form-field-error-wrapper",a==="error")("mat-mdc-form-field-hint-wrapper",
a==="hint"),x(),G(a==="error"?17:a==="hint"?18:-1))},dependencies:[Jy,Ly,Sv,Ky,Ey],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 Ny=function(){};Ny.\u0275fac=function(a){return new (a||Ny)};Ny.\u0275mod=uf({type:Ny});Ny.\u0275inj=Dd({imports:[px,zw,My,px]});var nlc=new le("mat-datepicker-scroll-strategy",{providedIn:"root",factory:function(){var a=r(Cg);return function(){return xi(a)}}}),olc={provide:nlc,deps:[],useFactory:function(){var a=r(Cg);return function(){return xi(a)}}},Oy=function(){var a=this;this._elementRef=r(Te);this._animationsDisabled=Ri();this._changeDetectorRef=r(Hv);this._globalModel=r(Mx);this._dateAdapter=r(qx);this._ngZone=r(Ph);this._rangeSelectionStrategy=r(okc,{optional:!0});this._animationDone=new tg;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())};r(Di).load(nw);this._closeButtonText=r(Gx).closeCalendarLabel;if(!this._animationsDisabled){var b=this._elementRef.nativeElement,c=r(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)]})}};g=Oy.prototype;g.ngAfterViewInit=function(){var a=this;this._stateChanges=this.datepicker.stateChanges.subscribe(function(){a._changeDetectorRef.markForCheck()});this._calendar._getCurrentViewComponent()._focusActiveCell(!1)};
g.ngOnDestroy=function(){clearTimeout(this._animationFallback);var a;(a=this._eventCleanups)==null||a.forEach(function(c){return c()});var b;(b=this._stateChanges)==null||b.unsubscribe();this._animationDone.complete()};g._handleUserSelection=function(a){var b=this._model.selection;a=a.value;!a||this._dateAdapter.sameDate(a,b)||this._model.add(a);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()};
g._handleUserDragDrop=function(a){this._model.updateSelection(a.value,this)};g._startExitAnimation=function(){var a=this;this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit");this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(function(){a._isAnimating||a._animationDone.next()},200))};g._getSelected=function(){return this._model.selection};
g._applyPendingSelection=function(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)};g._assignActions=function(a,b){this._model=a?this._globalModel.clone():this._globalModel;this._actionsPortal=a;b&&this._changeDetectorRef.detectChanges()};Oy.\u0275fac=function(a){return new (a||Oy)};
Oy.\u0275cmp=y({type:Oy,selectors:[["mat-datepicker-content"]],viewQuery:function(a,b){a&1&&hh(Vx,5);if(a&2){var c;lh(c=mh())&&(b._calendar=c.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(a,b){a&2&&(vh(b.color?"mat-"+b.color:""),uh("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&&(J(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)}),K(),D(2,ura,0,0,"ng-template",2),J(3,"button",3),N("focus",function(){return b._closeButtonFocused=!0})("blur",function(){return b._closeButtonFocused=!1})("click",function(){return b.datepicker.close()}),
R(4),K()());if(a&2){uh("mat-datepicker-content-container-with-custom-header",b.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",b._actionsPortal);var c;Lg("aria-modal",!0)("aria-labelledby",(c=b._dialogLabelId)!=null?c:void 0);x();vh(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);x();I("cdkPortalOutlet",b._actionsPortal);x();uh("cdk-visually-hidden",!b._closeButtonFocused);I("color",b.color||"primary");x();wh(b._closeButtonText)}},dependencies:[sw,Vx,jx,Jx],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 Py=function(){var a=this;this._injector=r(Cg);this._viewContainerRef=r(fh);this._dateAdapter=r(qx,{optional:!0});this._dir=r(Gi,{optional:!0});this._model=r(Mx);this._animationsDisabled=Ri();this._scrollStrategy=r(nlc);this._inputStateChanges=yf.EMPTY;this._document=r(ui);this.startView="month";this.touchUi=!1;this.xPosition="start";this.yPosition="below";this.restoreFocus=!0;this.yearSelected=new nq;this.monthSelected=new nq;this.viewChanged=new nq(!0);this.openedStream=new nq;this.closedStream=
new nq;this._opened=!1;this.id=r(Fi).getId("mat-datepicker-");this._focusedElementBeforeOpen=null;this._backdropHarnessClass=this.id+"-backdrop";this.stateChanges=new tg;this._changeDetectorRef=r(Hv);this._model.selectionChanged.subscribe(function(){a._changeDetectorRef.markForCheck()})};g=Py.prototype;g._getMinDate=function(){return this.datepickerInput&&this.datepickerInput.min};g._getMaxDate=function(){return this.datepickerInput&&this.datepickerInput.max};
g._getDateFilter=function(){return this.datepickerInput&&this.datepickerInput.dateFilter};g.ngOnChanges=function(a){(a=a.xPosition||a.yPosition)&&!a.firstChange&&this._overlayRef&&(a=this._overlayRef.getConfig().positionStrategy,a instanceof yi&&(this._setConnectedPositions(a),this.opened&&this._overlayRef.updatePosition()));this.stateChanges.next(void 0)};g.ngOnDestroy=function(){this._destroyOverlay();this.close();this._inputStateChanges.unsubscribe();this.stateChanges.complete()};g.select=function(a){this._model.add(a)};
g._selectYear=function(a){this.yearSelected.emit(a)};g._selectMonth=function(a){this.monthSelected.emit(a)};g._viewChanged=function(a){this.viewChanged.emit(a)};var plc=function(a,b){a._inputStateChanges.unsubscribe();a.datepickerInput=b;a._inputStateChanges=b.stateChanges.subscribe(function(){return a.stateChanges.next(void 0)});return a._model};g=Py.prototype;
g.open=function(){var a;this._opened||this.disabled||((a=this._componentRef)==null?0:a.instance._isAnimating)||(this._focusedElementBeforeOpen=mi(),this._openOverlay(),this._opened=!0,this.openedStream.emit())};
g.close=function(){var a=this,b;if(this._opened&&((b=this._componentRef)==null||!b.instance._isAnimating)){var c=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus==="function";b=function(){a._opened&&(a._opened=!1,a.closedStream.emit())};if(this._componentRef){var d=this._componentRef,e=d.instance,f=d.location;e._animationDone.pipe(mg(1)).subscribe(function(){var h=a._document.activeElement;!c||h&&h!==a._document.activeElement&&!f.nativeElement.contains(h)||
a._focusedElementBeforeOpen.focus();a._focusedElementBeforeOpen=null;a._destroyOverlay()});e._startExitAnimation()}c?setTimeout(b):b()}};g._applyPendingSelection=function(){var a,b;(a=this._componentRef)==null||(b=a.instance)==null||b._applyPendingSelection()};
g._forwardContentValues=function(a){a.datepicker=this;a.color=this.color;var b=this.datepickerInput;b=b._formField?b._formField.getLabelId():b._elementRef.nativeElement.getAttribute("aria-labelledby");a._dialogLabelId=b;a._assignActions(this._actionsPortal,!1)};
g._openOverlay=function(){var a=this;this._destroyOverlay();var b=this.touchUi,c=new fx(Oy,this._viewContainerRef),d=this._overlayRef=Pi(this._injector,new Ii({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?Bpa(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||Ig(function(){d.updatePosition()},{injector:this._injector})};g._destroyOverlay=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)};g._getDialogStrategy=function(){return zjc(bx(new ax))};
g._getDropdownStrategy=function(){var a=xjc(Zw($w(yjc(Bi(this._injector,this.datepickerInput.getConnectedOverlayOrigin()),".mat-datepicker-content"),!1),8));return this._setConnectedPositions(a)};
g._setConnectedPositions=function(a){var b=this.xPosition==="end"?"end":"start",c=b==="start"?"end":"start",d=this.yPosition==="above"?"bottom":"top",e=d==="top"?"bottom":"top";return Yw(a,[{originX:b,originY:e,overlayX:b,overlayY:d},{originX:b,originY:d,overlayX:b,overlayY:e},{originX:c,originY:e,overlayX:c,overlayY:d},{originX:c,originY:d,overlayX:c,overlayY:e}])};
g._getCloseStream=function(a){var b=this,c=["ctrlKey","shiftKey","metaKey"];return dg(a.backdropClick(),a._detachments,a.keydownEvents().pipe(eg(function(d){return d.keyCode===27&&!ki(d)||b.datepickerInput&&ki(d,"altKey")&&d.keyCode===38&&c.every(function(e){return!ki(d,e)})})))};
nd.Object.defineProperties(Py.prototype,{startAt:{configurable:!0,enumerable:!0,get:function(){return this._startAt||(this.datepickerInput?this.datepickerInput.value:null)},set:function(a){this._startAt=rx(this._dateAdapter,sx(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()}}});Py.\u0275fac=function(a){return new (a||Py)};
Py.\u0275dir=vf({type:Py,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",$h],disabled:[2,"disabled","disabled",$h],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",$h],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",$h]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},
features:[ov]});var Qy=function(){};Qy.\u0275fac=function(a){return new (a||Qy)};
Qy.\u0275cmp=y({type:Qy,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 qlc={passive:!0},Ry=function(){this._platform=r(zi);this._ngZone=r(Ph);this._renderer=r(qf).createRenderer(null,null);this._styleLoader=r(Di);this._monitoredElements=new Map};
Ry.prototype.monitor=function(a){var b=this;if(!this._platform.isBrowser)return cg;this._styleLoader.load(Qy);var c=ri(a);if(a=this._monitoredElements.get(c))return a.subject;var d=new tg,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,qlc)});this._monitoredElements.set(c,{subject:d,unlisten:a});return d};
Ry.prototype.stopMonitoring=function(a){a=ri(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))};Ry.prototype.ngOnDestroy=function(){var a=this;this._monitoredElements.forEach(function(b,c){return a.stopMonitoring(c)})};Ry.\u0275fac=function(a){return new (a||Ry)};Ry.\u0275prov=Cd({token:Ry,factory:Ry.\u0275fac,providedIn:"root"});var Sy=function(){var a=this;this._elementRef=r(Te);this._platform=r(zi);this._ngZone=r(Ph);this._renderer=r(Ji);this._resizeEvents=new tg;this._destroyed=new tg;this._enabled=!0;this._previousMinRows=-1;this._document=r(ui);this._isViewInited=!1;this._handleFocusEvent=function(b){a._hasFocus=b.type==="focus"};r(Di).load(Qy);this._textareaElement=this._elementRef.nativeElement};g=Sy.prototype;
g._setMinHeight=function(){var a=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;a&&(this._textareaElement.style.minHeight=a)};g._setMaxHeight=function(){var a=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;a&&(this._textareaElement.style.maxHeight=a)};
g.ngAfterViewInit=function(){var a=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,rlc(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(dla(16)).subscribe(function(){a._cachedLineHeight=a._cachedPlaceholderHeight=
void 0;rlc(a,!0)})}),this._isViewInited=!0,rlc(this,!0))};g.ngOnDestroy=function(){var a;(a=this._listenerCleanups)==null||a.forEach(function(b){return b()});this._resizeEvents.complete();this._destroyed.next();this._destroyed.complete()};
g._cacheTextareaLineHeight=function(){if(!this._cachedLineHeight){var a=this._textareaElement.cloneNode(!1),b=a.style;a.rows=1;b.position="absolute";b.visibility="hidden";b.border="none";b.padding="0";b.height="";b.minHeight="";b.maxHeight="";b.top=b.bottom=b.left=b.right="auto";b.overflow="hidden";this._textareaElement.parentNode.appendChild(a);this._cachedLineHeight=a.clientHeight;a.remove();this._setMinHeight();this._setMaxHeight()}};
g._measureScrollHeight=function(){var a=this._textareaElement,b=a.style.marginBottom||"",c=this._platform.FIREFOX,d=c&&this._hasFocus;c=c?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";d&&(a.style.marginBottom=a.clientHeight+"px");a.classList.add(c);var e=a.scrollHeight-4;a.classList.remove(c);d&&(a.style.marginBottom=b);return e};
g._cacheTextareaPlaceholderHeight=function(){if(this._isViewInited&&this._cachedPlaceholderHeight==void 0)if(this.placeholder){var a=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder;this._cachedPlaceholderHeight=this._measureScrollHeight();this._textareaElement.value=a}else this._cachedPlaceholderHeight=0};g.ngDoCheck=function(){this._platform.isBrowser&&rlc(this)};
var rlc=function(a,b){b=b===void 0?!1:b;if(a._enabled&&(a._cacheTextareaLineHeight(),a._cacheTextareaPlaceholderHeight(),a._cachedScrollTop=a._textareaElement.scrollTop,a._cachedLineHeight)){var c=a._elementRef.nativeElement,d=c.value;if(b||a._minRows!==a._previousMinRows||d!==a._previousValue)b=a._measureScrollHeight(),c.style.height=Math.max(b,a._cachedPlaceholderHeight||0)+"px",a._ngZone.runOutsideAngular(function(){typeof requestAnimationFrame!=="undefined"?requestAnimationFrame(function(){return a._scrollToCaretPosition(c)}):
setTimeout(function(){return a._scrollToCaretPosition(c)})}),a._previousValue=d,a._previousMinRows=a._minRows}};Sy.prototype.reset=function(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)};Sy.prototype._noopInputHandler=function(){};Sy.prototype._scrollToCaretPosition=function(a){var b=a.selectionStart,c=a.selectionEnd;!this._destroyed.isStopped&&this._hasFocus&&(a.setSelectionRange(b,c),a.scrollTop=this._cachedScrollTop)};
nd.Object.defineProperties(Sy.prototype,{minRows:{configurable:!0,enumerable:!0,get:function(){return this._minRows},set:function(a){this._minRows=si(a);this._setMinHeight()}},maxRows:{configurable:!0,enumerable:!0,get:function(){return this._maxRows},set:function(a){this._maxRows=si(a);this._setMaxHeight()}},enabled:{configurable:!0,enumerable:!0,get:function(){return this._enabled},set:function(a){this._enabled!==a&&((this._enabled=a)?rlc(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()}}});Sy.\u0275fac=function(a){return new (a||Sy)};
Sy.\u0275dir=vf({type:Sy,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",$h],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]});var Ty=function(){};Ty.\u0275fac=function(a){return new (a||Ty)};Ty.\u0275mod=uf({type:Ty});Ty.\u0275inj=Dd({});var slc=new le("MAT_INPUT_VALUE_ACCESSOR");var tlc="button checkbox file hidden image radio range reset submit".split(" "),ulc=new le("MAT_INPUT_CONFIG"),Uy=function(){var a=this;this._elementRef=r(Te);this._platform=r(zi);this.ngControl=r(by,{optional:!0,self:!0});this._autofillMonitor=r(Ry);this._ngZone=r(Ph);this._formField=r(llc,{optional:!0});this._renderer=r(Ji);this._uid=r(Fi).getId("mat-input-");this._config=r(ulc,{optional:!0});this.focused=!1;this.stateChanges=new tg;this.controlType="mat-input";this._disabled=this.autofilled=!1;
this._type="text";this._readonly=!1;this._neverEmptyInputTypes="date datetime datetime-local month time week".split(" ").filter(function(q){return bpa().has(q)});this._iOSKeyupListener=function(q){q=q.target;q.value||q.selectionStart!==0||q.selectionEnd!==0||(q.setSelectionRange(1,1),q.setSelectionRange(0,0))};var b=r(iy,{optional:!0}),c=r(qy,{optional:!0}),d=r(vx),e=r(slc,{optional:!0,self:!0}),f=this._elementRef.nativeElement,h=f.nodeName.toLowerCase();e?gg(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 Fjc(d,this.ngControl,c,b,this.stateChanges);this._isServer=!this._platform.isBrowser;this._isNativeSelect=h==="select";this._isTextarea=h==="textarea";this._isInFormField=!!this._formField;var k;this.disabledInteractive=((k=this._config)==
null?void 0:k.disabledInteractive)||!1;this._isNativeSelect&&(this.controlType=f.multiple?"mat-native-select-multiple":"mat-native-select");this._signalBasedValueAccessor&&boa(function(){a._signalBasedValueAccessor.value();a.stateChanges.next()})};g=Uy.prototype;g.ngAfterViewInit=function(){var a=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(b){a.autofilled=b.isAutofilled;a.stateChanges.next()})};g.ngOnChanges=function(){this.stateChanges.next()};
g.ngOnDestroy=function(){this.stateChanges.complete();this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement);var a;(a=this._cleanupIosKeyup)==null||a.call(this);var b;(b=this._cleanupWebkitWheel)==null||b.call(this)};g.ngDoCheck=function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next()));this._dirtyCheckNativeValue();this._dirtyCheckPlaceholder()};
g.focus=function(a){this._elementRef.nativeElement.focus(a)};g.updateErrorState=function(){this._errorStateTracker.updateErrorState()};g._focusChanged=function(a){if(a!==this.focused){if(!this._isNativeSelect&&a&&this.disabled&&this.disabledInteractive){var b=this._elementRef.nativeElement;b.type==="number"?(b.type="text",b.setSelectionRange(0,0),b.type="number"):b.setSelectionRange(0,0)}this.focused=a;this.stateChanges.next()}};g._onInput=function(){};
g._dirtyCheckNativeValue=function(){var a=this._elementRef.nativeElement.value;this._previousNativeValue!==a&&(this._previousNativeValue=a,this.stateChanges.next())};g._dirtyCheckPlaceholder=function(){var a=this._getPlaceholder();if(a!==this._previousPlaceholder){var b=this._elementRef.nativeElement;(this._previousPlaceholder=a)?b.setAttribute("placeholder",a):b.removeAttribute("placeholder")}};g._getPlaceholder=function(){return this.placeholder||null};g._validateType=function(){tlc.indexOf(this._type)};
g._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1};g._isBadInput=function(){var a=this._elementRef.nativeElement.validity;return a&&a.badInput};g.setDescribedByIds=function(a){var b=this._elementRef.nativeElement;a.length?b.setAttribute("aria-describedby",a.join(" ")):b.removeAttribute("aria-describedby")};g.onContainerClick=function(){this.focused||this.focus()};
g._isInlineSelect=function(){var a=this._elementRef.nativeElement;return this._isNativeSelect&&(a.multiple||a.size>1)};g._getReadonlyAttribute=function(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null};
nd.Object.defineProperties(Uy.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=pi(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:Gqa(b._rawValidators,
Si))!=null?d:!1},set:function(a){this._required=pi(a)}},type:{configurable:!0,enumerable:!0,get:function(){return this._type},set:function(a){this._type=a||"text";this._validateType();!this._isTextarea&&bpa().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=pi(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(" "))||[]}}});Uy.\u0275fac=function(a){return new (a||Uy)};
Uy.\u0275dir=vf({type:Uy,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&&(Rg("id",b.id)("disabled",b.disabled&&!b.disabledInteractive)("required",b.required),Lg("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),uh("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",$h]},exportAs:["matInput"],features:[Fh([{provide:Hy,useExisting:Uy}]),ov]});var Vy=function(){};Vy.\u0275fac=function(a){return new (a||Vy)};Vy.\u0275mod=uf({type:Vy});Vy.\u0275inj=Dd({imports:[px,Ny,Ny,Ty,px]});var vlc={provide:Yx,useExisting:$d(function(){return Wy}),multi:!0},wlc={provide:Zx,useExisting:$d(function(){return Wy}),multi:!0},Wy=function(){Cy.call(this);this._formField=r(llc,{optional:!0});this._openedSubscription=this._closedSubscription=yf.EMPTY;this._ariaOwns=nh.apply(null,[null].concat(p([])));this._validator=Bqa(Cy.prototype._getValidators.call(this))};Y(Wy,Cy);g=Wy.prototype;g.getConnectedOverlayOrigin=function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef};
g.ngOnDestroy=function(){Cy.prototype.ngOnDestroy.call(this);this._closedSubscription.unsubscribe();this._openedSubscription.unsubscribe()};g._openPopup=function(){this._datepicker&&this._datepicker.open()};g._getValueFromModel=function(a){return a};g._assignValueToModel=function(a){this._model&&this._model.updateSelection(a,this)};g._getMinDate=function(){return this._min};g._getMaxDate=function(){return this._max};g._getDateFilter=function(){return this._dateFilter};
g._shouldHandleChangeEvent=function(a){return a.source!==this};
nd.Object.defineProperties(Wy.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(plc(a,this)))}},min:{configurable:!0,enumerable:!0,get:function(){return this._min},set:function(a){a=rx(this._dateAdapter,
sx(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=rx(this._dateAdapter,sx(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()}}});Wy.\u0275fac=function(a){return new (a||Wy)};
Wy.\u0275dir=vf({type:Wy,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&&(Rg("disabled",b.disabled),Lg("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:[Fh([vlc,wlc,{provide:slc,useExisting:Wy}]),Bg]});var xlc=["button"],ylc=[[["","matDatepickerToggleIcon",""]]],zlc=function(){};zlc.\u0275fac=function(a){return new (a||zlc)};zlc.\u0275dir=vf({type:zlc,selectors:[["","matDatepickerToggleIcon",""]]});var Xy=function(){this._intl=r(Gx);this._changeDetectorRef=r(Hv);this._stateChanges=yf.EMPTY;var a=r(new pv("tabindex"),{optional:!0});this.tabIndex=(a=Number(a))||a===0?a:null};g=Xy.prototype;g.ngOnChanges=function(a){a.datepicker&&this._watchStateChanges()};g.ngOnDestroy=function(){this._stateChanges.unsubscribe()};
g.ngAfterContentInit=function(){this._watchStateChanges()};g._open=function(a){this.datepicker&&!this.disabled&&(this.datepicker.open(),a.stopPropagation())};
g._watchStateChanges=function(){var a=this,b=this.datepicker?this.datepicker.stateChanges:Nf(),c=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Nf(),d=this.datepicker?dg(this.datepicker.openedStream,this.datepicker.closedStream):Nf();this._stateChanges.unsubscribe();this._stateChanges=dg(this._intl.changes,b,c,d).subscribe(function(){return a._changeDetectorRef.markForCheck()})};
nd.Object.defineProperties(Xy.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}}});Xy.\u0275fac=function(a){return new (a||Xy)};
Xy.\u0275cmp=y({type:Xy,selectors:[["mat-datepicker-toggle"]],contentQueries:function(a,b,c){a&1&&ih(c,zlc,5);if(a&2){var d;lh(d=mh())&&(b._customIcon=d.first)}},viewQuery:function(a,b){a&1&&hh(xlc,5);if(a&2){var c;lh(c=mh())&&(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&&(Lg("tabindex",null)("data-mat-calendar",b.datepicker?b.datepicker.id:null),uh("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",$h],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[ov],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&&(ch(ylc),J(0,"button",1,0),F(2,vra,2,0,":svg:svg",2),dh(3),K());a&2&&(I("tabIndex",b.disabled?-1:b.tabIndex)("disabled",b.disabled)("disableRipple",b.disableRipple),Lg("aria-haspopup",
b.datepicker?"dialog":null)("aria-label",b.ariaLabel||b._intl.openCalendarLabel)("aria-expanded",b.datepicker?b.datepicker.opened:null),x(2),G(b._customIcon?-1:2))},dependencies:[Kx],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 Yy=function(){Py.apply(this,arguments)};Y(Yy,Py);Yy.\u0275dir=Py.\u0275dir;Yy.\u0275fac=function(){var a;return function(b){return(a||(a=Re(Yy)))(b||Yy)}}();Yy.\u0275cmp=y({type:Yy,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Fh([nkc,{provide:Py,useExisting:Yy}]),Bg],decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var Zy=function(){};Zy.\u0275fac=function(a){return new (a||Zy)};Zy.\u0275mod=uf({type:Zy});Zy.\u0275inj=Dd({providers:[Gx,olc],imports:[Lx,ox,Bw,kx,px,Oy,Xy,Wx,Vw]});var wra=/^[a-z][a-z\d-]*$/i,xra="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),Ara="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),Bra=["action","formaction","href"];var Dra=new Map([["zwieback_id:","zwieback"],["android_id:","android"],["anonymous_id:","anonymous"]]);var $y=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($y,n);$y.prototype.getId=function(){return Rc(this,1)};$y.prototype.setId=function(a){return Hj(this,1,a)};$y.prototype.getSourceId=function(){return pk(this,2)};$y.prototype.setSourceId=function(a){return Jj(this,2,a)};var dk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dk,n);g=dk.prototype;g.getSeconds=function(){return xk(this,1)};g.getSeconds_asString=function(){return Bk(this,1)};g.setSeconds=function(a){return Xl(this,1,a)};g.getNanos=function(){return Ej(this,2)};g.setNanos=function(a){return Zj(this,2,a)};g.fromMillis=function(a){if(!Number.isFinite(a))throw Error();var b=Math.trunc(a);a=(a-b+b%1E3)*1E6;return this.setSeconds(Math.trunc(b/1E3)).setNanos(Math.trunc(a))};var Alc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Alc,n);g=Alc.prototype;g.getUrl=function(){return Rc(this,1)};g.setUrl=function(a){return Hj(this,1,a)};g.getHeight=function(){return Ej(this,2)};g.setHeight=function(a){return Zj(this,2,a)};g.getWidth=function(){return Ej(this,3)};g.setWidth=function(a){return Zj(this,3,a)};var az=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(az,n);az.prototype.getDuration=function(){return W(this,dk,2)};var Blc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Blc,n);var Clc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Clc,n);g=Clc.prototype;g.getEmailList=function(){return Aj(this,1,Bj())};g.setEmailList=function(a){return Ij(this,1,a)};g.addEmail=function(a){return yc(this,1,Qb,a,void 0,Rb)};g.removeEmail=function(a){return yc(this,1,Qb,void 0,a,Rb,void 0,1,!1,!0)};g.getEmail=function(a){return Ku(this,1,a)};g.setEmail=function(a){return Tu(this,1,a)};g.getGroupId=function(a){return Ku(this,2,a)};
g.setGroupId=function(a){Tu(this,2,a)};var Dlc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Dlc,n);var Elc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Elc,n);Elc.prototype.getDownloadUrl=function(){return Rc(this,5)};var Flc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Flc,n);var Glc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Glc,n);var Hlc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Hlc,n);Hlc.prototype.getPhotoId=function(){return Rc(this,1)};var Ilc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ilc,n);var Jlc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Jlc,n);var Klc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Klc,n);var bz=[2,4,5,6,7];var Llc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Llc,n);var xo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(xo,n);xo.prototype.getTypeName=function(){return Rc(this,1).split("/").pop()};xo.prototype.getValue=function(){var a=rk(this,2);if(Array.isArray(a)||a instanceof n)throw Error("U");return oq(this,2)};xo.prototype.setValue=function(a){if(a==null)a=this;else if(Array.isArray(a))a=pq(this,2,ac(a,0,cc));else if(typeof a==="string"||a instanceof Za||Oa(a))a=bm(this,2,a);else throw Error("S`"+a);return a};var cz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(cz,n);g=cz.prototype;g.getId=function(){return W(this,$y,1)};g.setId=function(a){return X(this,$y,1,a)};g.getName=function(){return Rc(this,2)};g.setName=function(a){return Hj(this,2,a)};g.getDescription=function(){return Rc(this,3)};g.setDescription=function(a){return Hj(this,3,a)};g.getParentId=function(){return Rc(this,4)};g.setParentId=function(a){return Hj(this,4,a)};g.getType=function(){return pk(this,6)};
g.setType=function(a){return Jj(this,6,a)};g.getMimeType=function(){return Rc(this,7)};g.setMimeType=function(a){Hj(this,7,a)};g.getUrl=function(){return Rc(this,8)};g.setUrl=function(a){return Hj(this,8,a)};g.getIconUrl=function(){return Rc(this,11)};g.setIconUrl=function(a){return Hj(this,11,a)};var dz=function(a){return Sj(a,Alc,10,Bj())};g=cz.prototype;g.getLastModifiedTimestamp=function(){return W(this,bk,12)};g.getVideoMetadata=function(){return W(this,az,34)};
g.hasVideoMetadata=function(){return tk(this,az,34)};g.setOwnedByMe=function(a){return pm(this,39,a)};g.getOwner=function(){return Ku(this,40)};g.setOwner=function(a){return Tu(this,40,a)};g.getStarred=function(){return kk(this,44)};g.getVersion=function(){return xk(this,45)};g.setVersion=function(a){return Xl(this,45,a)};var ez=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ez,n);g=ez.prototype;g.getShared=function(){return kk(this,1)};
g.setShared=function(a){pm(this,1,a)};g.getVideoMetadata=function(){return W(this,az,3)};g.hasVideoMetadata=function(){return tk(this,az,3)};g.getDownloadUrl=function(){return Rc(this,10)};var Mlc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Mlc,n);Mlc.prototype.getLabel=function(){return Rc(this,2)};Mlc.prototype.setLabel=function(a){return Hj(this,2,a)};var Nlc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Nlc,n);g=Nlc.prototype;g.getStatus=function(){return pk(this,1)};g.setStatus=function(a){return Jj(this,1,a)};g.getItemList=function(a){return Sj(this,cz,2,Bj(a))};g.addItem=function(a,b){return Po(this,2,cz,a,b)};g.setItem=function(a,b){return Au(this,2,cz,a,b)};g.removeItem=function(a){return Du(this,2,cz,a)};g.getItemCount=function(){return zec(this,cz,2)};g.getErrorCode=function(){return pk(this,4)};
g.getInternalOnlyV1ViewInfo=function(){return W(this,Mlc,7)};var fz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(fz,n);g=fz.prototype;g.getSourceId=function(){return pk(this,1)};g.setSourceId=function(a){return Jj(this,1,a)};g.getName=function(){return Rc(this,8)};g.setName=function(a){return Hj(this,8,a)};g.getInternalOnlyV1ViewInfo=function(){return W(this,Mlc,18)};var Olc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Olc,n);g=Olc.prototype;g.getCommand=function(){return pk(this,1)};g.setCommand=function(a){return Jj(this,1,a)};g.getSource=function(){return W(this,fz,2)};g.setSource=function(a){return X(this,fz,2,a)};g.hasSource=function(){return tk(this,fz,2)};g.getSourceOrUndefined=function(){return Cec(this,fz,2)};g.setVisible=function(a){return pm(this,5,a)};g.getItemList=function(a){return Sj(this,cz,7,Bj(a))};
g.addItem=function(a,b){return Po(this,7,cz,a,b)};g.setItem=function(a,b){return Au(this,7,cz,a,b)};g.removeItem=function(a){return Du(this,7,cz,a)};g.getItemCount=function(){return zec(this,cz,7)};g.getQuery=function(){return Rc(this,8)};g.setQuery=function(a){return Hj(this,8,a)};g.clearQuery=function(){Bu(this,8)};g.getAppId=function(){return Rc(this,9)};g.setAppId=function(a){Hj(this,9,a)};var Plc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Plc,n);g=Plc.prototype;g.getCommand=function(){return pk(this,1)};g.setCommand=function(a){return Jj(this,1,a)};g.getItemList=function(a){return Sj(this,cz,4,Bj(a))};g.addItem=function(a,b){return Po(this,4,cz,a,b)};g.setItem=function(a,b){return Au(this,4,cz,a,b)};g.removeItem=function(a){return Du(this,4,cz,a)};g.getItemCount=function(){return zec(this,cz,4)};var Qlc=Tc(Plc);var Pra="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var Rlc=function(a){this.streamzService=a;this.metricName="/client_streamz/buganizer/load_time";a.addNewEventMetric(this.metricName,fj("action"),fj("frontend_access_mode"),fj("environment_type"))};Rlc.prototype.record=function(a,b,c,d){this.streamzService.record(this.metricName,a,b,c,d)};Rlc.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var Slc=function(a){this.streamzService=a;this.metricName="/client_streamz/buganizer/user_action_counts";a.addNewCounter(this.metricName,fj("action"),fj("frontend_access_mode"),fj("environment_type"))};Slc.prototype.increment=function(a,b,c){this.streamzService.incrementCounter(this.metricName,a,b,c)};Slc.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var Tlc=function(a){this.streamzService=a;this.metricName="/client_streamz/buganizer/user_latency";a.addNewEventMetric(this.metricName,fj("action"),fj("frontend_access_mode"),fj("environment_type"))};Tlc.prototype.record=function(a,b,c,d){this.streamzService.record(this.metricName,a,b,c,d)};Tlc.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};var Ulc=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/events/usage";a.addNewCounter(this.metricName,fj("name"),fj("source"),{fieldType:1,fieldName:"state"})};Ulc.prototype.increment=function(a,b,c){this.streamzService.incrementCounter(this.metricName,a,b,c)};Ulc.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var Vlc=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/events/performance";a.addNewEventMetric(this.metricName,fj("source"),fj("name"))};Vlc.prototype.record=function(a,b,c){this.streamzService.record(this.metricName,a,b,c)};Vlc.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var Wlc=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/rpc/request_count";a.addNewCounter(this.metricName,fj("source"),fj("method_id"))};Wlc.prototype.increment=function(a,b){this.streamzService.incrementCounter(this.metricName,a,b)};Wlc.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};
var Xlc=function(a){this.streamzService=a;this.metricName="/client_streamz/one_developer_workflow/rpc/error_count";a.addNewCounter(this.metricName,fj("source"),fj("method_id"),{fieldType:2,fieldName:"code"})};Xlc.prototype.increment=function(a,b,c){this.streamzService.incrementCounter(this.metricName,a,b,c)};Xlc.prototype.getMetric=function(){return this.streamzService.getMetric(this.metricName)};var gz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gz,n);gz.prototype.getResourcePath=function(){return Rc(this,2)};gz.prototype.setResourcePath=function(a){return Hj(this,2,a)};var Is=function(a,b){this.x=a!==void 0?a:0;this.y=b!==void 0?b:0};Is.prototype.clone=function(){return new Is(this.x,this.y)};Is.prototype.equals=function(a){return a instanceof Is&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)};var p6b=function(a,b){return new Is(a.x-b.x,a.y-b.y)};g=Is.prototype;g.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};g.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};g.translate=function(a,b){a instanceof Is?(this.x+=a.x,this.y+=a.y):(this.x+=Number(a),typeof b==="number"&&(this.y+=b));return this};g.scale=function(a,b){this.x*=a;this.y*=typeof b==="number"?b:a;return this};var hz=function(a,b){this.width=a;this.height=b},t6b=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};g=hz.prototype;g.clone=function(){return new hz(this.width,this.height)};g.aspectRatio=function(){return this.width/this.height};g.isEmpty=function(){return!(this.width*this.height)};g.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};g.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};g.scale=function(a,b){this.width*=a;this.height*=typeof b==="number"?b:a;return this};var $lc=function(a,b){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=a===Ylc&&b||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=Zlc};$lc.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};var Zlc={},Ylc={};var Gp=function(a){return a?new iz(jz(a)):mdc||(mdc=new iz)},amc=function(a,b){return typeof b==="string"?a.getElementById(b):b},kz=function(a,b){return(b||document).getElementsByTagName(String(a))},lz=function(a,b,c,d){a=d||a;return(b=b&&b!="*"?String(b).toUpperCase():"")||c?a.querySelectorAll(b+(c?"."+c:"")):a.getElementsByTagName("*")},cmc=function(a,b){bj(b,function(c,d){d=="style"?a.style.cssText=c:d=="class"?a.className=c:d=="for"?a.htmlFor=c:bmc.hasOwnProperty(d)?a.setAttribute(bmc[d],c):d.lastIndexOf("aria-",
0)==0||d.lastIndexOf("data-",0)==0?a.setAttribute(d,c):a[d]=c})},bmc={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"},mz=function(a){a=(a||window).document;a=a.compatMode=="CSS1Compat"?a.documentElement:a.body;return new hz(a.clientWidth,a.clientHeight)},dmc=function(a){return a.scrollingElement?a.scrollingElement:
Jp||a.compatMode!="CSS1Compat"?a.body||a.documentElement:a.documentElement},nz=function(a){return a?a.defaultView:window},fmc=function(a,b,c){return emc(document,arguments)},emc=function(a,b){var c=b[1],d=jr(a,String(b[0]));c&&(typeof c==="string"?d.className=c:Array.isArray(c)?d.className=c.join(" "):cmc(d,c));b.length>2&&gmc(a,d,b,2);return d},gmc=function(a,b,c,d){function e(k){k&&b.appendChild(typeof k==="string"?a.createTextNode(k):k)}for(;d<c.length;d++){var f=c[d];if(!Ka(f)||La(f)&&f.nodeType>
0)e(f);else{a:{if(f&&typeof f.length=="number"){if(La(f)){var h=typeof f.item=="function"||typeof f.item=="string";break a}if(typeof f==="function"){h=typeof f.item=="function";break a}}h=!1}Ca(h?Ja(f):f,e)}}},jr=function(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)},hmc=function(a,b){gmc(jz(a),a,arguments,1)},oz=function(a){for(var b;b=a.firstChild;)a.removeChild(b)},pz=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null},
qz=function(a){return La(a)&&a.nodeType==1},w9b=function(a){return a.parentElement||null},shb=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},jz=function(a){return a.nodeType==9?a:a.ownerDocument||a.document},imc=function(a){return a.contentDocument||a.contentWindow.document},rz=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 oz(a),a.appendChild(jz(a).createTextNode(String(b)))},jmc={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},kmc={IMG:" ",BR:"\n"},lmc=function(a){a=a.tabIndex;return typeof a==="number"&&a>=0&&a<32768},nmc=function(a){var b=[];mmc(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},mmc=function(a,b,c){if(!(a.nodeName in jmc))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 kmc)b.push(kmc[a.nodeName]);else for(a=a.firstChild;a;)mmc(a,b,c),a=a.nextSibling},L5b=function(){var a=nz();return a.devicePixelRatio!==void 0?a.devicePixelRatio:a.matchMedia?omc(3)||omc(2)||omc(1.5)||omc(1)||.75:1},omc=function(a){return nz().matchMedia("(min-resolution: "+
a+"dppx),(min--moz-device-pixel-ratio: "+a+"),(min-resolution: "+a*96+"dpi)").matches?a:0},iz=function(a){this.document_=a||ea.document||document};g=iz.prototype;g.getDomHelper=Gp;g.getElement=function(a){return amc(this.document_,a)};g.$=iz.prototype.getElement;g.getElementsByTagName=function(a,b){return(b||this.document_).getElementsByTagName(String(a))};g.getElementsByTagNameAndClass=function(a,b,c){return lz(this.document_,a,b,c)};g.$$=iz.prototype.getElementsByTagNameAndClass;
g.setProperties=cmc;g.getViewportSize=function(a){return mz(a||this.getWindow())};g.createDom=function(a,b,c){return emc(this.document_,arguments)};g.createElement=function(a){return jr(this.document_,a)};g.createTextNode=function(a){return this.document_.createTextNode(String(a))};g.getWindow=function(){return this.document_.defaultView};var pmc=function(a){var b=a.document_;a=dmc(b);b=b.defaultView;return new Is(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)};g=iz.prototype;
g.appendChild=function(a,b){a.appendChild(b)};g.append=hmc;g.canHaveChildren=function(a){if(a.nodeType!=1)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};g.removeChildren=oz;
g.removeNode=pz;g.getChildren=function(a){return a.children!=void 0?a.children:Array.prototype.filter.call(a.childNodes,function(b){return b.nodeType==1})};g.getParentElement=w9b;g.contains=shb;g.isFocusable=function(a){var b;a.tagName=="A"&&a.hasAttribute("href")||a.tagName=="INPUT"||a.tagName=="TEXTAREA"||a.tagName=="SELECT"||a.tagName=="BUTTON"?b=!a.disabled&&(!a.hasAttribute("tabindex")||lmc(a)):b=a.hasAttribute("tabindex")&&lmc(a);return b};var sz=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(a){return a&&AsyncContext.Snapshot.wrap(a)}:function(a){return a};var qmc=function(a,b){this.limit_=100;this.create_=a;this.reset_=b;this.occupants_=0;this.head_=null};qmc.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};qmc.prototype.put=function(a){this.reset_(a);this.occupants_<this.limit_&&(this.occupants_++,a.next=this.head_,this.head_=a)};var rmc=[],smc=[],tmc=!1,umc=function(a){rmc[rmc.length]=a;if(tmc)for(var b=0;b<smc.length;b++)a(bt(smc[b].wrap,smc[b]))};umc(function(){});var vmc=function(){this.workTail_=this.workHead_=null};vmc.prototype.add=function(a,b){var c=Sra.get();c.set(a,b);this.workTail_?this.workTail_.next=c:this.workHead_=c;this.workTail_=c};vmc.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 Sra=new qmc(function(){return new wmc},function(a){return a.reset()}),wmc=function(){this.next=this.scope=this.fn=null};
wmc.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};wmc.prototype.reset=function(){this.next=this.scope=this.fn=null};var xmc,Tra=!1,Rra=new vmc,tz=function(a,b){xmc||ymc();Tra||(xmc(),Tra=!0);Rra.add(a,b)},ymc=function(){var a=Promise.resolve(void 0);xmc=function(){a.then(Ura)}};var zmc=function(a){return function(){return a}},uz=function(){},Amc=function(a){return a},iMa=function(){var a=hMa;return function(){return!a.apply(this,arguments)}},Bmc=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}},vz=function(a,b){var c=0;return function(d){ea.clearTimeout(c);var e=arguments;c=ea.setTimeout(function(){a.apply(void 0,e)},b)}},Cmc=function(a,b){var c=0,d=!1,e=[],f=function(){c=0;d&&(d=!1,h())},h=function(){c=ea.setTimeout(f,b);var k=e;e=[];a.apply(void 0,k)};
return function(k){e=arguments;c?d=!0:h()}},Dmc=function(a){var b=0,c=function(){b=0};return function(d){b||(b=ea.setTimeout(c,1E3),a.apply(void 0,arguments))}};var Emc=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var xz=function(a){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(a!=uz)try{var b=this;a.call(void 0,function(c){wz(b,2,c)},function(c){wz(b,3,c)})}catch(c){wz(this,3,c)}},Fmc=function(){this.next=this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};Fmc.prototype.reset=function(){this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};
var Gmc=new qmc(function(){return new Fmc},function(a){a.reset()}),Hmc=function(a,b,c){var d=Gmc.get();d.onFulfilled=a;d.onRejected=b;d.context=c;return d},Imc=function(a){if(a instanceof xz)return a;var b=new xz(uz);wz(b,2,a);return b},Jmc=function(a){return new xz(function(b,c){c(a)})},Lmc=function(a,b,c){Kmc(a,b,c,null)||tz(yu(b,a))},Mmc=function(a){return new xz(function(b,c){a.length||b(void 0);for(var d,e=0;e<a.length;e++)d=a[e],Lmc(d,b,c)})},Nmc=function(a){return new xz(function(b,c){var d=
a.length,e=[];if(d)for(var f=function(v,A){d--;e[v]=A;d==0&&b(e)},h=function(v){c(v)},k,q=0;q<a.length;q++)k=a[q],Lmc(k,yu(f,q),h);else b(e)})},Omc=function(a){return new xz(function(b,c){var d=a.length,e=[];if(d)for(var f=function(v){b(v)},h=function(v,A){d--;e[v]=A;d==0&&c(e)},k,q=0;q<a.length;q++)k=a[q],Lmc(k,f,yu(h,q));else b(void 0)})},Qmc=function(){var a,b,c=new xz(function(d,e){a=d;b=e});return new Pmc(c,a,b)};
xz.prototype.then=function(a,b,c){return Rmc(this,sz(typeof a==="function"?a:null),sz(typeof b==="function"?b:null),c)};xz.prototype.$goog_Thenable=!0;var Tmc=function(a,b,c,d){Smc(a,Hmc(b||uz,c||null,d))},Umc=function(a,b){b=sz(b);b=Hmc(b,b);b.always=!0;Smc(a,b);return a};xz.prototype.finally=function(a){var b=this;a=sz(a);return new xz(function(c,d){Tmc(b,function(e){a();c(e)},function(e){a();d(e)})})};xz.prototype.thenCatch=function(a,b){return Rmc(this,null,sz(a),b)};xz.prototype.catch=xz.prototype.thenCatch;
xz.prototype.cancel=function(a){if(this.state_==0){var b=new yz(a);tz(function(){Vmc(this,b)},this)}};
var Vmc=function(a,b){if(a.state_==0)if(a.parent_){var c=a.parent_;if(c.callbackEntries_){for(var d=0,e=null,f=null,h=c.callbackEntries_;h&&(h.always||(d++,h.child==a&&(e=h),!(e&&d>1)));h=h.next)e||(f=h);e&&(c.state_==0&&d==1?Vmc(c,b):(f?(d=f,d.next==c.callbackEntriesTail_&&(c.callbackEntriesTail_=d),d.next=d.next.next):Wmc(c),Xmc(c,e,3,b)))}a.parent_=null}else wz(a,3,b)},Smc=function(a,b){a.callbackEntries_||a.state_!=2&&a.state_!=3||Ymc(a);a.callbackEntriesTail_?a.callbackEntriesTail_.next=b:a.callbackEntries_=
b;a.callbackEntriesTail_=b},Rmc=function(a,b,c,d){var e=Hmc(null,null,null);e.child=new xz(function(f,h){e.onFulfilled=b?function(k){try{var q=b.call(d,k);f(q)}catch(v){h(v)}}:f;e.onRejected=c?function(k){try{var q=c.call(d,k);q===void 0&&k instanceof yz?h(k):f(q)}catch(v){h(v)}}:h});e.child.parent_=a;Smc(a,e);return e.child};xz.prototype.unblockAndFulfill_=function(a){this.state_=0;wz(this,2,a)};xz.prototype.unblockAndReject_=function(a){this.state_=0;wz(this,3,a)};
var wz=function(a,b,c){a.state_==0&&(a===c&&(b=3,c=new TypeError("$a")),a.state_=1,Kmc(c,a.unblockAndFulfill_,a.unblockAndReject_,a)||(a.result_=c,a.state_=b,a.parent_=null,Ymc(a),b!=3||c instanceof yz||Zmc(a,c)))},Kmc=function(a,b,c,d){if(a instanceof xz)return Tmc(a,b,c,d),!0;if(Emc(a))return a.then(b,c,d),!0;if(La(a))try{var e=a.then;if(typeof e==="function")return $mc(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1},$mc=function(a,b,c,d,e){var f=!1,h=function(q){f||(f=!0,c.call(e,q))},k=
function(q){f||(f=!0,d.call(e,q))};try{b.call(a,h,k)}catch(q){k(q)}},Ymc=function(a){a.executing_||(a.executing_=!0,tz(a.executeCallbacks_,a))},Wmc=function(a){var b=null;a.callbackEntries_&&(b=a.callbackEntries_,a.callbackEntries_=b.next,b.next=null);a.callbackEntries_||(a.callbackEntriesTail_=null);return b};xz.prototype.executeCallbacks_=function(){for(var a;a=Wmc(this);)Xmc(this,a,this.state_,this.result_);this.executing_=!1};
var Xmc=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,anc(b,c,d);else try{b.always?b.onFulfilled.call(b.context):anc(b,c,d)}catch(e){bnc.call(null,e)}Gmc.put(b)},anc=function(a,b,c){b==2?a.onFulfilled.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)},Zmc=function(a,b){a.hadUnhandledRejection_=!0;tz(function(){a.hadUnhandledRejection_&&bnc.call(null,b)})},bnc=fa,yz=function(a){ca.call(this,
a);this.reportErrorToServer=!1};zu(yz,ca);yz.prototype.name="cancel";var Pmc=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};var cnc=function(a){this.servicePromise_=a;a.then(bt(function(){},this),function(){},this)},dnc=function(a,b,c){return a.servicePromise_.then(function(d){var e=d[b];if(!e)throw Error("ab`"+b);return e.apply(d,c)})},gnc=function(a,b,c){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];e=enc(a,b).then(function(f){return f.apply(null,d)},function(f){f=Error("bb`"+b+"`"+a,{cause:f});delete fnc[b];return Jmc(f)});return new cnc(e)},fnc={},enc=function(a,b){var c=fnc[b];
if(c)return c;c=(c=xp(b))?Imc(c):(new xz(function(d,e){var f=(new iz(document)).createElement("SCRIPT");f.async=!0;jd(f,Xc(a instanceof $lc&&a.constructor===$lc&&a.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===Zlc?a.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"));f.onload=f.onreadystatechange=function(){f.readyState&&f.readyState!="loaded"&&f.readyState!="complete"||d()};f.onerror=function(h){e(Error("cb`"+b+"`"+a,{cause:h}))};(document.head||document.getElementsByTagName("head")[0]).appendChild(f)})).then(function(){var d=
xp(b);if(!d)throw Error("db`"+b+"`"+a);return d});return fnc[b]=c};var hnc={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},jnc=function(){var a=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=Vra(function(){return z(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()):B(b,inc(a),2);a.rsaForList.length>
0&&document.addEventListener("click",a.requestAccessForHelpPanel);Lf(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()})}}};jnc.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var inc=function(a){var b,c,d,e;return z(function(f){switch(f.nextAddress){case 1:b=l(Object.values(hnc)),c=b.next();case 2:if(c.done){f.jumpTo(0);break}d=c.value;Gf(f,5);return B(f,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:d}),7);case 7:e=f.yieldResult;e.state!=="granted"&&a.rsaForList.push(d);uu(f,3);break;case 5:Kf(f);f.jumpTo(0);break;case 3:c=b.next(),f.jumpTo(2)}})};(new jnc).initialize();var knc=function(a){this.loader_=a};knc.prototype.startFeedback=function(a){dnc(this.loader_,"startFeedback",arguments)};knc.prototype.requestSurvey=function(a){dnc(this.loader_,"requestSurvey",arguments).thenCatch(function(){},this)};knc.prototype.presentSurvey=function(a){dnc(this.loader_,"presentSurvey",arguments).thenCatch(function(){},this)};var lnc=new $lc(Ylc,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");enc(lnc,"help.service.Lazy.create").thenCatch(function(){});var mnc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(mnc,n);g=mnc.prototype;g.getCode=function(){return Ej(this,1)};g.setCode=function(a){return Ok(this,1,a)};g.getCodeOrUndefined=function(){return Gu(this,1)};g.getMessage=function(){return Rc(this,3)};g.setMessage=function(a){return Qk(this,3,a)};var nnc={ACCESS_LEVEL_UNSPECIFIED:"ACCESS_LEVEL_UNSPECIFIED",INTERNAL:"INTERNAL",EXTERNAL_PARTNER:"EXTERNAL_PARTNER",EXTERNAL_PUBLIC:"EXTERNAL_PUBLIC"},sxa={0:"ACCESS_LEVEL_UNSPECIFIED",1:"INTERNAL",2:"EXTERNAL_PARTNER",3:"EXTERNAL_PUBLIC"},onc={},uxa=(onc.ACCESS_LEVEL_UNSPECIFIED=0,onc.INTERNAL=1,onc.EXTERNAL_PARTNER=2,onc.EXTERNAL_PUBLIC=3,onc),pnc={ACTION_TYPE_UNSPECIFIED:"ACTION_TYPE_UNSPECIFIED",ADD:"ADD",REMOVE:"REMOVE"},qnc={},cFa=(qnc.ACTION_TYPE_UNSPECIFIED=0,qnc.ADD=1,qnc.REMOVE=2,qnc),
AIa={0:"CATEGORY_UNSPECIFIED",1:"OWNER",2:"COLLABORATOR",3:"FOLLOWING"},bva={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"},zz={},Tua=(zz.CHANGELIST_SIGNAL_UNSPECIFIED=0,zz.THREAD_MENTIONS_ME=1,zz.IDLE_FOR_HOURS=2,zz.AUTHOR_GOING_OOO=3,zz.NEEDS_ATTENTION=4,zz.NUDGED=5,zz.READY_TO_SUBMIT=6,zz.CHANGELIST_MANUAL_SIGNAL=7,zz.CHANGELIST_SNOOZE_EXPIRED=
8,zz),EIa={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"},Az={},YIa=(Az.CHANGELIST_SIGNAL_UNSPECIFIED=0,Az.THREAD_MENTIONS_ME=1,Az.IDLE_FOR_HOURS=2,Az.AUTHOR_GOING_OOO=3,Az.NEEDS_ATTENTION=4,Az.NUDGED=5,Az.READY_TO_SUBMIT=6,Az.CHANGELIST_MANUAL_SIGNAL=7,Az.CHANGELIST_SNOOZE_EXPIRED=8,Az),uta={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"},dua={0:"COMMENT_FORMATTING_MODE_UNSPECIFIED",1:"PLAIN_FORMATTING_MODE",2:"MARKDOWN_FORMATTING_MODE",3:"LITERAL_FORMATTING_MODE"},rnc={},Aua=(rnc.COMMENT_FORMATTING_MODE_UNSPECIFIED=0,rnc.PLAIN_FORMATTING_MODE=1,rnc.MARKDOWN_FORMATTING_MODE=2,rnc.LITERAL_FORMATTING_MODE=3,rnc),NHa={0:"CONFIDENCE_LEVEL_UNSPECIFIED",1:"VERY_HIGH",2:"HIGH",3:"MEDIUM",4:"LOW"},
Bz={},snc=(Bz.CONFIDENCE_LEVEL_UNSPECIFIED=0,Bz.VERY_HIGH=1,Bz.HIGH=2,Bz.MEDIUM=3,Bz.LOW=4,Bz),tnc={DAY_TYPE_UNSPECIFIED:"DAY_TYPE_UNSPECIFIED",CALENDAR:"CALENDAR",BUSINESS:"BUSINESS"},Fya={0:"DAY_TYPE_UNSPECIFIED",1:"CALENDAR",2:"BUSINESS"},unc={},Hya=(unc.DAY_TYPE_UNSPECIFIED=0,unc.CALENDAR=1,unc.BUSINESS=2,unc),eza={0:"DELETION_REASON_UNSPECIFIED",1:"USER_REQUEST",2:"ABUSE",3:"RESTRICTED",4:"RETENTION",5:"ACCOUNT_CAPABILITIES"},Cz={},lza=(Cz.DELETION_REASON_UNSPECIFIED=0,Cz.USER_REQUEST=1,Cz.ABUSE=
2,Cz.RESTRICTED=3,Cz.RETENTION=4,Cz.ACCOUNT_CAPABILITIES=5,Cz),vnc={COMFORTABLE:"COMFORTABLE",COZY:"COZY",COMPACT:"COMPACT"},Mta={1:"COMFORTABLE",2:"COZY",3:"COMPACT"},wnc={},xua=(wnc.COMFORTABLE=1,wnc.COZY=2,wnc.COMPACT=3,wnc),lJa={0:"NO_DETAILED_TYPE",1:"UNRESTRICTED_GOOGLER",2:"TVC",3:"EXTERNAL",4:"PUBLIC",5:"ISSUE_CREATION_ONLY"},xIa={0:"DRIVE_FILE_TYPE_UNSPECIFIED",1:"DOCUMENT",2:"SPREADSHEET",3:"PRESENTATION"},$ua={0:"DRIVE_SIGNAL_UNSPECIFIED",1:"TAGGED_IN_COMMENT",2:"REQUIRES_APPROVAL",3:"COMMENTS_REQUIRE_ATTENTION",
4:"DRIVE_MANUAL_SIGNAL",5:"DRIVE_SNOOZE_EXPIRED"},Dz={},Pua=(Dz.DRIVE_SIGNAL_UNSPECIFIED=0,Dz.TAGGED_IN_COMMENT=1,Dz.REQUIRES_APPROVAL=2,Dz.COMMENTS_REQUIRE_ATTENTION=3,Dz.DRIVE_MANUAL_SIGNAL=4,Dz.DRIVE_SNOOZE_EXPIRED=5,Dz),CIa={0:"DRIVE_SIGNAL_UNSPECIFIED",1:"TAGGED_IN_COMMENT",2:"REQUIRES_APPROVAL",3:"COMMENTS_REQUIRE_ATTENTION",4:"DRIVE_MANUAL_SIGNAL",5:"DRIVE_SNOOZE_EXPIRED"},Ez={},WIa=(Ez.DRIVE_SIGNAL_UNSPECIFIED=0,Ez.TAGGED_IN_COMMENT=1,Ez.REQUIRES_APPROVAL=2,Ez.COMMENTS_REQUIRE_ATTENTION=3,
Ez.DRIVE_MANUAL_SIGNAL=4,Ez.DRIVE_SNOOZE_EXPIRED=5,Ez),cya={0:"EDIT_SIGNIFICANCE_UNSPECIFIED",1:"SILENT",2:"MINOR",3:"MAJOR",4:"BULK",5:"CLOSING"},Fz={},gya=(Fz.EDIT_SIGNIFICANCE_UNSPECIFIED=0,Fz.SILENT=1,Fz.MINOR=2,Fz.MAJOR=3,Fz.BULK=4,Fz.CLOSING=5,Fz),o7a={0:"ELIGIBILITY_STATE_UNSPECIFIED",1:"INELIGIBLE",2:"ELIGIBLE_NOT_STARTED",3:"EXISTING",4:"INELIGIBLE_EXISTING"},cua={0:"UNKNOWN_PRIORITY",4:"CLOSURE_ONLY",1:"MINIMAL",2:"IMPORTANT",3:"ALL"},Gz={},Sk=(Gz.UNKNOWN_PRIORITY=0,Gz.CLOSURE_ONLY=4,Gz.MINIMAL=
1,Gz.IMPORTANT=2,Gz.ALL=3,Gz),xnc={ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED:"ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED",THUMBS_UP:"THUMBS_UP",THUMBS_DOWN:"THUMBS_DOWN",OPEN:"OPEN",CLOSE:"CLOSE",COPY:"COPY",CLOSE_AS_DUPLICATE:"CLOSE_AS_DUPLICATE",ISSUE_HOVERCARD:"ISSUE_HOVERCARD",GO_TO_ISSUE:"GO_TO_ISSUE",DELETE:"DELETE",VIEW:"VIEW",IMPRESSION:"IMPRESSION",COPY_DEEP_LINK:"COPY_DEEP_LINK"},Hz={},Uza=(Hz.ENRICHMENT_FEEDBACK_TYPE_UNSPECIFIED=0,Hz.THUMBS_UP=1,Hz.THUMBS_DOWN=2,Hz.OPEN=3,Hz.CLOSE=4,Hz.COPY=5,Hz.CLOSE_AS_DUPLICATE=
6,Hz.ISSUE_HOVERCARD=7,Hz.GO_TO_ISSUE=8,Hz.DELETE=9,Hz.VIEW=10,Hz.IMPRESSION=11,Hz.COPY_DEEP_LINK=12,Hz),Lta={0:"DEFAULT",1:"ASSIGNMENT",2:"RESPONSE",3:"CLOSURE"},ync={},wua=(ync.DEFAULT=0,ync.ASSIGNMENT=1,ync.RESPONSE=2,ync.CLOSURE=3,ync),Iz={},znc=(Iz.UNSPECIFIED_EVENT_TYPE=0,Iz.EVENT_TYPE_VIEW=1,Iz.EVENT_TYPE_ACCEPT=2,Iz.EVENT_TYPE_REJECT=3,Iz.EVENT_TYPE_DISPLAYED_DURING_ISSUE_CREATION=4,Iz),Anc={},zFa=(Anc.QUERY_UNSPECIFIED=0,Anc.QUERY_TRIAGE_PHASE=1,Anc.QUERY_CLUSTER=2,Anc),Bnc={},CFa=(Bnc.SORT_UNSPECIFIED=
0,Bnc.SORT_TRIAGE_PHASE=1,Bnc),Cnc={},Dnc=(Cnc.UNSPECIFIED_FEATURE=0,Cnc.FEATURE_DUPLICATE_ISSUES=1,Cnc),sGb={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"},bBa={0:"FIELD_ORDERING_UNSPECIFIED",1:"INHERITED",2:"CUSTOMIZED"},Enc={},Fnc=(Enc.FIELD_ORDERING_UNSPECIFIED=0,Enc.INHERITED=1,Enc.CUSTOMIZED=2,Enc),Gnc={FIELD_STATE_UNSPECIFIED:"FIELD_STATE_UNSPECIFIED",
INHERIT:"INHERIT",DISABLED:"DISABLED",ENABLED:"ENABLED"},FAa={0:"FIELD_STATE_UNSPECIFIED",1:"INHERIT",2:"DISABLED",3:"ENABLED"},Hnc={},Inc=(Hnc.FIELD_STATE_UNSPECIFIED=0,Hnc.INHERIT=1,Hnc.DISABLED=2,Hnc.ENABLED=3,Hnc),Jnc={},Knc=(Jnc.UNSPECIFIED_FORMATTING_AUDIENCE=0,Jnc.INTERNAL=1,Jnc.EXTERNAL=2,Jnc),Uj={UNSPECIFIED_FORMATTING_MODE:"UNSPECIFIED_FORMATTING_MODE",PLAIN:"PLAIN",MARKDOWN:"MARKDOWN",LITERAL:"LITERAL"},jBa={0:"UNSPECIFIED_FORMATTING_MODE",1:"PLAIN",2:"MARKDOWN",3:"LITERAL"},ava={0:"GERRIT_CHANGE_SIGNAL_UNSPECIFIED",
1:"GERRIT_CHANGE_NEEDS_ATTENTION",2:"GERRIT_CHANGE_READY_TO_SUBMIT",3:"GERRIT_MANUAL_SIGNAL",4:"GERRIT_SNOOZE_EXPIRED"},Jz={},Rua=(Jz.GERRIT_CHANGE_SIGNAL_UNSPECIFIED=0,Jz.GERRIT_CHANGE_NEEDS_ATTENTION=1,Jz.GERRIT_CHANGE_READY_TO_SUBMIT=2,Jz.GERRIT_MANUAL_SIGNAL=3,Jz.GERRIT_SNOOZE_EXPIRED=4,Jz),OIa={0:"GERRIT_CHANGE_SIGNAL_UNSPECIFIED",1:"GERRIT_CHANGE_NEEDS_ATTENTION",2:"GERRIT_CHANGE_READY_TO_SUBMIT",3:"GERRIT_MANUAL_SIGNAL",4:"GERRIT_SNOOZE_EXPIRED"},Kz={},$Ia=(Kz.GERRIT_CHANGE_SIGNAL_UNSPECIFIED=
0,Kz.GERRIT_CHANGE_NEEDS_ATTENTION=1,Kz.GERRIT_CHANGE_READY_TO_SUBMIT=2,Kz.GERRIT_MANUAL_SIGNAL=3,Kz.GERRIT_SNOOZE_EXPIRED=4,Kz),cva={0:"GOOGLE_TASKS_SIGNAL_UNSPECIFIED",1:"DUE_SOON",2:"DUE_DATE_EXPIRED",3:"GOOGLE_TASKS_MANUAL_SIGNAL",4:"GOOGLE_TASKS_SNOOZE_EXPIRED"},Lz={},Vua=(Lz.GOOGLE_TASKS_SIGNAL_UNSPECIFIED=0,Lz.DUE_SOON=1,Lz.DUE_DATE_EXPIRED=2,Lz.GOOGLE_TASKS_MANUAL_SIGNAL=3,Lz.GOOGLE_TASKS_SNOOZE_EXPIRED=4,Lz),Lnc={INVOLVEMENT_UNSPECIFIED:"INVOLVEMENT_UNSPECIFIED",HIGH:"HIGH",MEDIUM:"MEDIUM",
LOW:"LOW",ZERO:"ZERO"},dva={0:"IRM_SIGNAL_UNSPECIFIED",1:"IRM_MANUAL_SIGNAL",2:"IRM_SNOOZE_EXPIRED",3:"IRM_SEND_POSTMORTEM_FOR_REVIEW",4:"IRM_REVIEW_POSTMORTEM"},Mz={},Xua=(Mz.IRM_SIGNAL_UNSPECIFIED=0,Mz.IRM_MANUAL_SIGNAL=1,Mz.IRM_SNOOZE_EXPIRED=2,Mz.IRM_SEND_POSTMORTEM_FOR_REVIEW=3,Mz.IRM_REVIEW_POSTMORTEM=4,Mz),A7a={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"},Mnc={ISSUE_ID:"ISSUE_ID",COMPONENT_PATH:"COMPONENT_PATH",TYPE:"TYPE",STATUS:"STATUS",PRIORITY:"PRIORITY",SEVERITY:"SEVERITY",
REPORTER:"REPORTER",ASSIGNEE:"ASSIGNEE",VERIFIER:"VERIFIER",CC:"CC",COLLABORATOR:"COLLABORATOR",CHANGELIST:"CHANGELIST",POSTMORTEM:"POSTMORTEM",BLOCKING_ISSUE_ID:"BLOCKING_ISSUE_ID",BLOCKED_BY_ISSUE_ID:"BLOCKED_BY_ISSUE_ID",CREATED_TIME:"CREATED_TIME",MODIFIED_TIME:"MODIFIED_TIME",RESOLVED_TIME:"RESOLVED_TIME",VERIFIED_TIME:"VERIFIED_TIME",DELETION_TIME:"DELETION_TIME",TITLE:"TITLE",FOUND_IN_VERSION:"FOUND_IN_VERSION",TARGETED_TO_VERSION:"TARGETED_TO_VERSION",VERIFIED_IN_VERSION:"VERIFIED_IN_VERSION",
IN_PROD:"IN_PROD",CANONICAL_ISSUE_ID:"CANONICAL_ISSUE_ID",ESCALATION_OWNER:"ESCALATION_OWNER",CUSTOM_FIELD:"CUSTOM_FIELD",POSITION:"POSITION",VOTE_COUNT:"VOTE_COUNT",DUPLICATE_COUNT:"DUPLICATE_COUNT",CC_COUNT:"CC_COUNT",COLLABORATOR_COUNT:"COLLABORATOR_COUNT",MODIFIED_BY:"MODIFIED_BY",LAST_MODIFIER:"LAST_MODIFIER",ARCHIVED:"ARCHIVED",MIN_SLO:"MIN_SLO",ASSIGNMENT_SLO:"ASSIGNMENT_SLO",RESPONSE_SLO:"RESPONSE_SLO",CLOSURE_SLO:"CLOSURE_SLO",TEAM:"TEAM",ESTIMATE:"ESTIMATE",ESTIMATE_TOTAL_OPEN:"ESTIMATE_TOTAL_OPEN",
ESTIMATE_TOTAL_COMPLETE:"ESTIMATE_TOTAL_COMPLETE",ACCESS_LEVEL:"ACCESS_LEVEL",DESCENDANT_COUNT:"DESCENDANT_COUNT",OPEN_DESCENDANT_COUNT:"OPEN_DESCENDANT_COUNT",ONE_DAY_VIEW_COUNT:"ONE_DAY_VIEW_COUNT",SEVEN_DAY_VIEW_COUNT:"SEVEN_DAY_VIEW_COUNT",THIRTY_DAY_VIEW_COUNT:"THIRTY_DAY_VIEW_COUNT",RELATIVE_MODIFIED_TIME:"RELATIVE_MODIFIED_TIME",ALERTS:"ALERTS",TIMEFRAME:"TIMEFRAME",PROGRESS:"PROGRESS",TRIAGER:"TRIAGER",ENRICHMENT_CATEGORIES:"ENRICHMENT_CATEGORIES"},bua={1:"ISSUE_ID",2:"COMPONENT_PATH",3:"TYPE",
4:"STATUS",5:"PRIORITY",6:"SEVERITY",7:"REPORTER",8:"ASSIGNEE",9:"VERIFIER",10:"CC",43:"COLLABORATOR",11:"CHANGELIST",32:"POSTMORTEM",12:"BLOCKING_ISSUE_ID",13:"BLOCKED_BY_ISSUE_ID",14:"CREATED_TIME",15:"MODIFIED_TIME",16:"RESOLVED_TIME",17:"VERIFIED_TIME",38:"DELETION_TIME",18:"TITLE",19:"FOUND_IN_VERSION",20:"TARGETED_TO_VERSION",21:"VERIFIED_IN_VERSION",22:"IN_PROD",23:"CANONICAL_ISSUE_ID",51:"ESCALATION_OWNER",24:"CUSTOM_FIELD",25:"POSITION",26:"VOTE_COUNT",27:"DUPLICATE_COUNT",28:"CC_COUNT",
44:"COLLABORATOR_COUNT",29:"MODIFIED_BY",30:"LAST_MODIFIER",31:"ARCHIVED",33:"MIN_SLO",35:"ASSIGNMENT_SLO",36:"RESPONSE_SLO",37:"CLOSURE_SLO",39:"TEAM",40:"ESTIMATE",41:"ESTIMATE_TOTAL_OPEN",42:"ESTIMATE_TOTAL_COMPLETE",45:"ACCESS_LEVEL",46:"DESCENDANT_COUNT",47:"OPEN_DESCENDANT_COUNT",48:"ONE_DAY_VIEW_COUNT",49:"SEVEN_DAY_VIEW_COUNT",50:"THIRTY_DAY_VIEW_COUNT",52:"RELATIVE_MODIFIED_TIME",53:"ALERTS",54:"TIMEFRAME",55:"PROGRESS",56:"TRIAGER",57:"ENRICHMENT_CATEGORIES"},Nz={},Hua=(Nz.ISSUE_ID=1,Nz.COMPONENT_PATH=
2,Nz.TYPE=3,Nz.STATUS=4,Nz.PRIORITY=5,Nz.SEVERITY=6,Nz.REPORTER=7,Nz.ASSIGNEE=8,Nz.VERIFIER=9,Nz.CC=10,Nz.COLLABORATOR=43,Nz.CHANGELIST=11,Nz.POSTMORTEM=32,Nz.BLOCKING_ISSUE_ID=12,Nz.BLOCKED_BY_ISSUE_ID=13,Nz.CREATED_TIME=14,Nz.MODIFIED_TIME=15,Nz.RESOLVED_TIME=16,Nz.VERIFIED_TIME=17,Nz.DELETION_TIME=38,Nz.TITLE=18,Nz.FOUND_IN_VERSION=19,Nz.TARGETED_TO_VERSION=20,Nz.VERIFIED_IN_VERSION=21,Nz.IN_PROD=22,Nz.CANONICAL_ISSUE_ID=23,Nz.ESCALATION_OWNER=51,Nz.CUSTOM_FIELD=24,Nz.POSITION=25,Nz.VOTE_COUNT=
26,Nz.DUPLICATE_COUNT=27,Nz.CC_COUNT=28,Nz.COLLABORATOR_COUNT=44,Nz.MODIFIED_BY=29,Nz.LAST_MODIFIER=30,Nz.ARCHIVED=31,Nz.MIN_SLO=33,Nz.ASSIGNMENT_SLO=35,Nz.RESPONSE_SLO=36,Nz.CLOSURE_SLO=37,Nz.TEAM=39,Nz.ESTIMATE=40,Nz.ESTIMATE_TOTAL_OPEN=41,Nz.ESTIMATE_TOTAL_COMPLETE=42,Nz.ACCESS_LEVEL=45,Nz.DESCENDANT_COUNT=46,Nz.OPEN_DESCENDANT_COUNT=47,Nz.ONE_DAY_VIEW_COUNT=48,Nz.SEVEN_DAY_VIEW_COUNT=49,Nz.THIRTY_DAY_VIEW_COUNT=50,Nz.RELATIVE_MODIFIED_TIME=52,Nz.ALERTS=53,Nz.TIMEFRAME=54,Nz.PROGRESS=55,Nz.TRIAGER=
56,Nz.ENRICHMENT_CATEGORIES=57,Nz),Nnc={},Oz=(Nnc.ISSUE_RELATIONSHIP_TYPE_UNSPECIFIED=0,Nnc.CHILD=1,Nnc.DEPENDENCY=2,Nnc.LINKED=3,Nnc),Zua={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"},Pz={},Nua=(Pz.ISSUE_SIGNAL_UNSPECIFIED=0,Pz.NEAR_SLO=1,Pz.COMMENT_MENTIONS_ME=
2,Pz.MENTIONED_NEEDS_RESPONSE=8,Pz.BLOCKERS_CLOSED=3,Pz.NEWLY_BLOCKING=4,Pz.NEEDS_REPORTER_INPUT=5,Pz.REPLIED_TO_MENTION=6,Pz.NEWLY_ASSIGNED_TO_ME=7,Pz.ISSUE_MANUALLY_SIGNALED=9,Pz.ISSUE_SNOOZE_EXPIRED=10,Pz.CONFIGURABLE_ALERT=11,Pz),KIa={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"},
Qz={},UIa=(Qz.ISSUE_SIGNAL_UNSPECIFIED=0,Qz.NEAR_SLO=1,Qz.COMMENT_MENTIONS_ME=2,Qz.MENTIONED_NEEDS_RESPONSE=8,Qz.BLOCKERS_CLOSED=3,Qz.NEWLY_BLOCKING=4,Qz.NEEDS_REPORTER_INPUT=5,Qz.REPLIED_TO_MENTION=6,Qz.NEWLY_ASSIGNED_TO_ME=7,Qz.ISSUE_MANUALLY_SIGNALED=9,Qz.ISSUE_SNOOZE_EXPIRED=10,Qz.CONFIGURABLE_ALERT=11,Qz),Rz={},Onc=(Rz.ISSUE_SUMMARY_FEEDBACK_TYPE_UNSPECIFIED=0,Rz.THUMBS_UP=1,Rz.THUMBS_DOWN=2,Rz.COPY=3,Rz.FEEDBACK=4,Rz),ZFa={0:"ISSUE_SUMMARY_TYPE_UNSPECIFIED",1:"COMMENTS_SHORT",2:"COMMENTS_LONG"},
Pnc={},Qnc=(Pnc.ISSUE_SUMMARY_TYPE_UNSPECIFIED=0,Pnc.COMMENTS_SHORT=1,Pnc.COMMENTS_LONG=2,Pnc),rGb={0:"NODE_JOIN_TYPE_UNSPECIFIED",1:"AND",2:"OR",3:"ERR",4:"NIL"},Rnc={UNKNOWN_SUBSCRIPTION:"UNKNOWN_SUBSCRIPTION",UNSUBSCRIBED:"UNSUBSCRIBED",SUBSCRIBED_CLOSURE_ONLY:"SUBSCRIBED_CLOSURE_ONLY",SUBSCRIBED_MAJOR_UPDATES:"SUBSCRIBED_MAJOR_UPDATES",SUBSCRIBED_ALL_UPDATES:"SUBSCRIBED_ALL_UPDATES"},uza={0:"UNKNOWN_SUBSCRIPTION",1:"UNSUBSCRIBED",2:"SUBSCRIBED_CLOSURE_ONLY",3:"SUBSCRIBED_MAJOR_UPDATES",4:"SUBSCRIBED_ALL_UPDATES"},
Sz={},iFa=(Sz.UNKNOWN_SUBSCRIPTION=0,Sz.UNSUBSCRIBED=1,Sz.SUBSCRIBED_CLOSURE_ONLY=2,Sz.SUBSCRIBED_MAJOR_UPDATES=3,Sz.SUBSCRIBED_ALL_UPDATES=4,Sz),KEa={0:"UNSPECIFIED",1:"ADD",2:"REMOVE"},Snc={},FEa=(Snc.UNSPECIFIED=0,Snc.ADD=1,Snc.REMOVE=2,Snc),tGb={0:"OPERATOR_UNSPECIFIED",1:"EQ",2:"GT",3:"LT",4:"GE",5:"LE"},QWb={0:"UNKNOWN_PERMISSION",1:"OPEN_TO_JOIN"},kJa={0:"PRINCIPAL_TYPE_UNSPECIFIED",1:"NON_GAIA",2:"USER",3:"GROUP",4:"ALIAS"},Tnc={PRIORITY_UNSPECIFIED:"PRIORITY_UNSPECIFIED",P0:"P0",P1:"P1",
P2:"P2",P3:"P3",P4:"P4"},Qm={0:"PRIORITY_UNSPECIFIED",1:"P0",2:"P1",3:"P2",4:"P3",5:"P4"},Tz={},iza=(Tz.PRIORITY_UNSPECIFIED=0,Tz.P0=1,Tz.P1=2,Tz.P2=3,Tz.P3=4,Tz.P4=5,Tz),Unc={REACTION_TYPE_UNSPECIFIED:"REACTION_TYPE_UNSPECIFIED",UPVOTE:"UPVOTE"},Vnc={},Wnc=(Vnc.REACTION_TYPE_UNSPECIFIED=0,Vnc.UPVOTE=1,Vnc),Uz={},Xnc=(Uz.UNSPECIFIED=0,Uz.USER_REQUEST=1,Uz.ABUSE=2,Uz.RESTRICTED=3,Uz.RETENTION=4,Uz.ACCOUNT_CAPABILITIES=5,Uz),Vz={},RHa=(Vz.REJECTION_REASON_UNSPECIFIED=0,Vz.REVERSED=1,Vz.SIMILAR=2,Vz.NOT_SIMILAR=
3,Vz.OTHER=4,Vz),Ync={},HFa=(Ync.UNSPECIFIED_RELATION=0,Ync.AND=1,Ync.OR=2,Ync),Znc={RESTRICTION_SEVERITY_UNSPECIFIED:"RESTRICTION_SEVERITY_UNSPECIFIED",NONE_DETECTED:"NONE_DETECTED",RESTRICTED:"RESTRICTED",RESTRICTED_PLUS:"RESTRICTED_PLUS"},$nc={RETENTION_UNSPECIFIED:"RETENTION_UNSPECIFIED",COMPONENT_DEFAULT:"COMPONENT_DEFAULT",INDEFINITE:"INDEFINITE"},fza={0:"RETENTION_UNSPECIFIED",1:"COMPONENT_DEFAULT",2:"INDEFINITE"},aoc={UNSPECIFIED_RETENTION:"UNSPECIFIED_RETENTION",BUGANIZER_DEFAULT:"BUGANIZER_DEFAULT",
CUSTOM_PERIOD:"CUSTOM_PERIOD",INDEFINITE_RETENTION:"INDEFINITE_RETENTION"},Jxa={0:"UNSPECIFIED_RETENTION",1:"BUGANIZER_DEFAULT",2:"CUSTOM_PERIOD",3:"INDEFINITE_RETENTION"},boc={},Lxa=(boc.UNSPECIFIED_RETENTION=0,boc.BUGANIZER_DEFAULT=1,boc.CUSTOM_PERIOD=2,boc.INDEFINITE_RETENTION=3,boc),$ta={0:"UNSPECIFIED",1:"COMPONENT",2:"TEAM"},coc={},Eua=(coc.UNSPECIFIED=0,coc.COMPONENT=1,coc.TEAM=2,coc),doc={},eoc=(doc.SENTIMENT_UNSPECIFIED=0,doc.SENTIMENT_POSITIVE=1,doc.SENTIMENT_NEGATIVE=2,doc),foc={SEVERITY_UNSPECIFIED:"SEVERITY_UNSPECIFIED",
S0:"S0",S1:"S1",S2:"S2",S3:"S3",S4:"S4"},cza={0:"SEVERITY_UNSPECIFIED",1:"S0",2:"S1",3:"S2",4:"S3",5:"S4"},Wz={},jza=(Wz.SEVERITY_UNSPECIFIED=0,Wz.S0=1,Wz.S1=2,Wz.S2=3,Wz.S3=4,Wz.S4=5,Wz),mGb={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"},PWb={0:"UNKNOWN",1:"NORMAL",2:"LARGE",3:"HUGE",4:"ENORMOUS"},bza={0:"SLO_SNOOZE_TYPE_UNSPECIFIED",1:"STARTS_ON",
2:"ASSIGNMENT_ETA",3:"RESPONSE_ETA",4:"CLOSURE_ETA"},Xz={},mza=(Xz.SLO_SNOOZE_TYPE_UNSPECIFIED=0,Xz.STARTS_ON=1,Xz.ASSIGNMENT_ETA=2,Xz.RESPONSE_ETA=3,Xz.CLOSURE_ETA=4,Xz),aBa={0:"SLO_SOURCE_UNSPECIFIED",1:"USER",2:"BUGSCOPE"},goc={},Jya=(goc.SLO_SOURCE_UNSPECIFIED=0,goc.USER=1,goc.BUGSCOPE=2,goc),Vxa={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"},Yz={},Xxa=(Yz.STANDARD_FIELD_UNSPECIFIED=0,Yz.REPORTER=1,Yz.ASSIGNEE=2,Yz.VERIFIER=3,Yz.CC=4,Yz.TYPE=5,Yz.STATUS=6,Yz.PRIORITY=7,Yz.SEVERITY=8,Yz.CHANGELISTS=9,Yz.PENDING_CHANGELISTS=10,Yz.POSTMORTEMS=11,Yz.FOUND_IN=12,Yz.TARGETED_TO=13,Yz.VERIFIED_IN=14,Yz.IN_PRODUCTION=15,Yz.SLO_STATUS=16,Yz.TEAM=17,Yz.COLLABORATORS=18,Yz),Owa={STATE_UNSPECIFIED:"STATE_UNSPECIFIED",PENDING:"PENDING",MERGED:"MERGED"},oza={0:"STATE_UNSPECIFIED",
1:"PENDING",2:"MERGED"},hoc={},pza=(hoc.STATE_UNSPECIFIED=0,hoc.PENDING=1,hoc.MERGED=2,hoc),ioc={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"},Pm={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"},Zz={},hza=(Zz.STATUS_UNSPECIFIED=0,Zz.NEW=1,Zz.ASSIGNED=2,Zz.ACCEPTED=3,Zz.FIXED=4,Zz.VERIFIED=5,Zz.NOT_REPRODUCIBLE=6,Zz.INTENDED_BEHAVIOR=7,Zz.OBSOLETE=8,Zz.INFEASIBLE=9,Zz.DUPLICATE=10,Zz.INACTIVE=11,Zz),joc={TASK_RESOURCE_TYPE_UNSPECIFIED:"TASK_RESOURCE_TYPE_UNSPECIFIED",CHANGELIST:"CHANGELIST",DRIVE:"DRIVE",ISSUE:"ISSUE",LAUNCH:"LAUNCH",GERRIT:"GERRIT",GOOGLE_TASKS:"GOOGLE_TASKS",IRM:"IRM"},iua={0:"UNKNOWN_SOURCE",1:"WTDM",2:"NON_WTDM",
3:"CRITIQUE",4:"DRIVE",5:"BUGANIZER",6:"ARIANE",7:"GERRIT",8:"GOOGLE_TASKS",9:"IRM"},$z={},Yua=($z.UNKNOWN_SOURCE=0,$z.WTDM=1,$z.NON_WTDM=2,$z.CRITIQUE=3,$z.DRIVE=4,$z.BUGANIZER=5,$z.ARIANE=6,$z.GERRIT=7,$z.GOOGLE_TASKS=8,$z.IRM=9,$z),pta={0:"THEME_UNSPECIFIED",1:"GOOGLE",2:"OPEN_SOURCE"},koc={UNSPECIFIED:"UNSPECIFIED",NEW:"NEW",CONFIRMED:"CONFIRMED",IN_PROGRESS:"IN_PROGRESS",FIXED:"FIXED",WONT_FIX:"WONT_FIX"},rEa={0:"UNSPECIFIED",1:"NEW",2:"CONFIRMED",3:"IN_PROGRESS",4:"FIXED",5:"WONT_FIX"},aA={},
uEa=(aA.UNSPECIFIED=0,aA.NEW=1,aA.CONFIRMED=2,aA.IN_PROGRESS=3,aA.FIXED=4,aA.WONT_FIX=5,aA),loc={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"},sEa={0:"TRIAGE_SUBPHASE_UNSPECIFIED",1:"NEEDS_INFO",2:"PENDING_TRIAGE",3:"REPORTER_RESPONDED",4:"PENDING_OWNER",5:"EXPECTED",6:"PLANNED",7:"COMMITTED",
8:"REOPENED"},bA={},vEa=(bA.TRIAGE_SUBPHASE_UNSPECIFIED=0,bA.NEEDS_INFO=1,bA.PENDING_TRIAGE=2,bA.REPORTER_RESPONDED=3,bA.PENDING_OWNER=4,bA.EXPECTED=5,bA.PLANNED=6,bA.COMMITTED=7,bA.REOPENED=8,bA),xGb={0:"QUERY_BUILDER_RESPONSE_TYPE_UNSPECIFIED",1:"AND",2:"OR"},bya={0:"TYPE_UNSPECIFIED",1:"TEXT",2:"DATE",3:"ENUM",4:"NUMERIC",5:"REPEATED_TEXT",6:"REPEATED_DATE",7:"REPEATED_ENUM",8:"REPEATED_NUMERIC"},cA={},fya=(cA.TYPE_UNSPECIFIED=0,cA.TEXT=1,cA.DATE=2,cA.ENUM=3,cA.NUMERIC=4,cA.REPEATED_TEXT=5,cA.REPEATED_DATE=
6,cA.REPEATED_ENUM=7,cA.REPEATED_NUMERIC=8,cA),moc={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"},dA={},OEa=(dA.TYPE_UNSPECIFIED=0,dA.BUG=1,dA.FEATURE_REQUEST=2,dA.CUSTOMER_ISSUE=3,dA.INTERNAL_CLEANUP=
4,dA.PROCESS=5,dA.VULNERABILITY=6,dA.PRIVACY_ISSUE=7,dA.PORTFOLIO=8,dA.PROGRAM=9,dA.PROJECT=10,dA.FEATURE=11,dA.MILESTONE=12,dA.EPIC=13,dA.STORY=14,dA.TASK=15,dA),noc={TYPE_UNSPECIFIED:"TYPE_UNSPECIFIED",ISSUE_DEDUPLICATION:"ISSUE_DEDUPLICATION",HOTLIST:"HOTLIST",ISSUE_DEDUPLICATION_BATCH:"ISSUE_DEDUPLICATION_BATCH",NEEDS_INFO:"NEEDS_INFO",COMPONENT_ROUTING:"COMPONENT_ROUTING"},MHa={0:"TYPE_UNSPECIFIED",1:"ISSUE_DEDUPLICATION",2:"HOTLIST",3:"ISSUE_DEDUPLICATION_BATCH",4:"NEEDS_INFO",5:"COMPONENT_ROUTING"},
eA={},ooc=(eA.TYPE_UNSPECIFIED=0,eA.ISSUE_DEDUPLICATION=1,eA.HOTLIST=2,eA.ISSUE_DEDUPLICATION_BATCH=3,eA.NEEDS_INFO=4,eA.COMPONENT_ROUTING=5,eA),fA={},QHa=(fA.TYPE_UNSPECIFIED=0,fA.VIEWED=1,fA.PARTIALLY_ACCEPTED=4,fA.ACCEPTED=2,fA.REJECTED=3,fA),gA={},poc=(gA.USER_ACTIVITY_TYPE_UNDEFINED=0,gA.VIEW=1,gA.RELOAD=2,gA.EDIT=3,gA.MARK_AS_READ_OR_UNREAD=4,gA),ita={0:"UNSPECIFIED",1:"ACTIVE",2:"DELETED",3:"UNAVAILABLE"},oGb={0:"VALUE_TYPE_UNSPECIFIED",1:"NOT",2:"OR",3:"AND",4:"RANGE",5:"SIMPLE"},qoc={},roc=
(qoc.VIEW_UNSPECIFIED=0,qoc.BASIC=1,qoc.FULL=2,qoc);var Yj=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Yj,n);g=Yj.prototype;g.getYear=function(){return Ej(this,1)};g.setYear=function(a){return Zj(this,1,a)};g.getMonth=function(){return Ej(this,2)};g.setMonth=function(a){return Zj(this,2,a)};g.getDay=function(){return Ej(this,3)};var Uya=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Uya,n);Uya.prototype.getStartDate=function(){return W(this,Yj,4)};var Jm=[1,2];var Yl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Yl,n);Yl.prototype.getStatus=function(){return pk(this,1)};Yl.prototype.setStatus=function(a){return Jj(this,1,a)};Yl.prototype.getReason=function(){return pk(this,2)};Yl.prototype.setReason=function(a){return Jj(this,2,a)};var Sm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Sm,n);var Em=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Em,n);g=Em.prototype;g.getStartTime=function(){return W(this,bk,1)};g.setStartTime=function(a){X(this,bk,1,a)};g.getEndTime=function(){return W(this,bk,2)};g.setEndTime=function(a){X(this,bk,2,a)};g.getObjective=function(){return W(this,dk,4)};g.setObjective=function(a){return X(this,dk,4,a)};g.getBusinessDays=function(){return Ej(this,5)};g.setBusinessDays=function(a){return Zj(this,5,a)};
g.getDayType=function(){return pk(this,6)};g.setDayType=function(a){return Jj(this,6,a)};var po=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(po,n);var qo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qo,n);qo.prototype.getSourceIssueIdsList_asLegacyNumberOrString=function(){return bp(this,1,Bj())};qo.prototype.setSourceIssueIdsList=function(a){return ep(this,1,a)};var vza=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(vza,n);var Ul=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ul,n);Ul.prototype.getAccessLevel=function(){return pk(this,1)};Ul.prototype.setAccessLevel=function(a){return Jj(this,1,a)};var Rxa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Rxa,n);var Vl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Vl,n);Vl.prototype.getSeverity=function(){return pk(this,1)};Vl.prototype.setSeverity=function(a){return Jj(this,1,a)};var Oo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Oo,n);var Zl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Zl,n);Zl.prototype.getRetentionPeriod=function(){return W(this,dk,1)};var am=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(am,n);g=am.prototype;g.getAttachmentId=function(){return xk(this,1)};g.getAttachmentId_asString=function(){return Bk(this,1)};g.setAttachmentId=function(a){return Xl(this,1,a)};g.getLength=function(){return xk(this,3)};g.getFilename=function(){return Rc(this,4)};g.setFilename=function(a){Hj(this,4,a)};g.getEntityStatus=function(){return W(this,Yl,6)};g.setEntityStatus=function(a){return X(this,Yl,6,a)};
g.getEtag=function(){return oq(this,7)};g.setEtag=function(a){return bm(this,7,a)};g.getContentVerdict=function(){return W(this,Oo,10)};g.setContentVerdict=function(a){X(this,Oo,10,a)};g.getRestrictedRetentionState=function(){return W(this,Zl,11)};g.setRestrictedRetentionState=function(a){X(this,Zl,11,a)};g.getRestrictedRetention=function(){return pk(this,12)};g.setRestrictedRetention=function(a){return Jj(this,12,a)};var lm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lm,n);lm.prototype.getValuesList=function(a){return Sj(this,Yj,1,Bj(a))};lm.prototype.setValuesList=function(a){return Bm(this,1,a)};lm.prototype.setValues=function(a,b){Au(this,1,Yj,a,b)};var km=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(km,n);km.prototype.getValuesList=function(a){return pc(this,1,sb,Bj(a))};km.prototype.setValuesList=function(a){return vc(this,1,a,qb)};km.prototype.getValues=function(a){var b=pc(this,1,sb,3,!0);ib(b,a);return b[a]};km.prototype.setValues=function(a,b){Bc(this,1,qb,a,b,sb)};var jm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(jm,n);jm.prototype.getValuesList=function(a){return Aj(this,1,Bj(a))};jm.prototype.setValuesList=function(a){return Ij(this,1,a)};jm.prototype.getValues=function(a){return Ku(this,1,a)};jm.prototype.setValues=function(a,b){Tu(this,1,a,b)};var Zk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Zk,n);var mm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(mm,n);g=mm.prototype;g.getValueCase=function(){return Ml(this,gm)};g.getCustomFieldId=function(){return xk(this,1)};g.getCustomFieldId_asString=function(){return Bk(this,1)};g.setCustomFieldId=function(a){return Xl(this,1,a)};g.getDateValue=function(){return im(this,Yj,3,gm)};g.getDisplayString=function(){return Rc(this,10)};var gm=[2,3,4,5,6,7,8,9];var om=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(om,n);g=om.prototype;g.getCustomFieldId=function(){return xk(this,1)};g.getCustomFieldId_asString=function(){return Bk(this,1)};g.setCustomFieldId=function(a){return Xl(this,1,a)};g.getComponentId=function(){return xk(this,2)};g.getComponentId_asString=function(){return Bk(this,2)};g.setComponentId=function(a){return Xl(this,2,a)};g.getType=function(){return pk(this,3)};g.setType=function(a){return Jj(this,3,a)};
g.getName=function(){return Rc(this,5)};g.setName=function(a){return Hj(this,5,a)};g.getDescription=function(){return Rc(this,6)};g.setDescription=function(a){return Hj(this,6,a)};g.getEnumValues=function(a){return Ku(this,8,a)};g.setFieldSignificance=function(a){return Jj(this,9,a)};g.getShared=function(){return kk(this,11)};g.setShared=function(a){pm(this,11,a)};var em=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(em,n);em.prototype.getCustomFieldId=function(){return xk(this,cm(this,dm,1))};em.prototype.getCustomFieldId_asString=function(){return Bk(this,cm(this,dm,1))};em.prototype.setCustomFieldId=function(a){return fm(this,1,dm,Ib(a,0))};em.prototype.hasCustomFieldId=function(){var a=cm(this,dm,1);return Nb(rk(this,a))!=null};var dm=[1,2];var Gj=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Gj,n);Gj.prototype.getEmailAddress=function(){return Rc(this,1)};Gj.prototype.getUserGaiaStatus=function(){return pk(this,3)};var Dm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Dm,n);Dm.prototype.getCount=function(){return xk(this,2)};Dm.prototype.setCount=function(a){return Xl(this,2,a)};Dm.prototype.getType=function(){return pk(this,4)};Dm.prototype.setType=function(a){return Jj(this,4,a)};var tm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(tm,n);var zm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(zm,n);zm.prototype.getContent=function(){return W(this,Zk,1)};zm.prototype.setContent=function(a){return X(this,Zk,1,a)};zm.prototype.hasContent=function(){return tk(this,Zk,1)};var ym=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ym,n);ym.prototype.getContent=function(){return W(this,Zk,1)};ym.prototype.setContent=function(a){return X(this,Zk,1,a)};ym.prototype.hasContent=function(){return tk(this,Zk,1)};var xm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(xm,n);xm.prototype.getContent=function(){return W(this,Zk,2)};xm.prototype.setContent=function(a){return X(this,Zk,2,a)};xm.prototype.hasContent=function(){return tk(this,Zk,2)};var sya=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(sya,n);var Am=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Am,n);Am.prototype.getKindCase=function(){return Ml(this,wm)};var wm=[1,2,3];var soc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(soc,n);soc.prototype.getState=function(){return pk(this,2)};soc.prototype.setState=function(a){return Jj(this,2,a)};var ho=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ho,n);g=ho.prototype;g.getIssueId=function(){return xk(this,6)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,6)};g.getIssueId_asString=function(){return Bk(this,6)};g.setIssueId=function(a){return Xl(this,6,a)};g.getCommentNumber=function(){return Ej(this,7)};g.setCommentNumber=function(a){return Zj(this,7,a)};g.getComment=function(){return Rc(this,1)};
g.setComment=function(a){return Hj(this,1,a)};g.getFormattedComment=function(){return W(this,Am,16)};g.setFormattedComment=function(a){X(this,Am,16,a)};g.hasFormattedComment=function(){return tk(this,Am,16)};g.getMentionsList=function(a){return Sj(this,soc,14,Bj(a))};g.getFormattingMode=function(){return pk(this,9)};g.setFormattingMode=function(a){return Jj(this,9,a)};g.getAttachmentsList=function(){return Sj(this,am,2,Bj())};g.setAttachmentsList=function(a){return Bm(this,2,a)};
g.addAllAttachments=function(a){bo(this,2,am,a)};g.getModifiedTime=function(){return W(this,bk,4)};g.setModifiedTime=function(a){return X(this,bk,4,a)};g.getEntityStatus=function(){return W(this,Yl,5)};g.setEntityStatus=function(a){return X(this,Yl,5,a)};g.getVersion=function(){return Ej(this,8)};g.setVersion=function(a){return Zj(this,8,a)};g.getContentVerdict=function(){return W(this,Oo,10)};g.setContentVerdict=function(a){X(this,Oo,10,a)};
g.getRestrictedRetentionState=function(){return W(this,Zl,11)};g.setRestrictedRetentionState=function(a){X(this,Zl,11,a)};g.getRestrictedRetention=function(){return pk(this,12)};g.setRestrictedRetention=function(a){return Jj(this,12,a)};g.getEtag=function(){return oq(this,15)};g.setEtag=function(a){return bm(this,15,a)};var Tm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Tm,n);g=Tm.prototype;g.getChangeNumber=function(){return xk(this,3)};g.getChangeNumber_asLegacyNumberOrString=function(){return Um(this,3)};g.setChangeNumber=function(a){return Xl(this,3,a)};g.getState=function(){return pk(this,4)};g.setState=function(a){return Jj(this,4,a)};var Tl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Tl,n);Tl.prototype.getAccessLevel=function(){return pk(this,1)};Tl.prototype.setAccessLevel=function(a){return Jj(this,1,a)};var Km=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Km,n);Km.prototype.getRole=function(){return pk(this,1)};Km.prototype.setRole=function(a){return Jj(this,1,a)};Km.prototype.getCount=function(){return hm(this,2)};Km.prototype.setCount=function(a){return Im(this,2,a)};var Tya=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Tya,n);g=Tya.prototype;g.getUser=function(){return W(this,Gj,1)};g.setUser=function(a){return X(this,Gj,1,a)};g.hasUser=function(){return tk(this,Gj,1)};g.getRole=function(){return pk(this,2)};g.setRole=function(a){return Jj(this,2,a)};g.getIsLead=function(){return kk(this,3)};g.setIsLead=function(a){return pm(this,3,a)};var Hm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Hm,n);Hm.prototype.getUser=function(){return im(this,Tya,1,Lm)};Hm.prototype.setUser=function(a){return nm(this,1,Lm,a)};Hm.prototype.hasUser=function(){return vm(this,Tya,1,Lm)};Hm.prototype.getPlaceholder=function(){return im(this,Km,2,Lm)};var Lm=[1,2];var Mm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Mm,n);var Rm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Rm,n);g=Rm.prototype;g.getComponentId=function(){return xk(this,1)};g.getComponentId_asString=function(){return Bk(this,1)};g.setComponentId=function(a){return Xl(this,1,a)};g.getType=function(){return pk(this,2)};g.setType=function(a){return Jj(this,2,a)};g.getStatus=function(){return pk(this,3)};g.setStatus=function(a){return Jj(this,3,a)};g.getPriority=function(){return pk(this,4)};
g.setPriority=function(a){return Jj(this,4,a)};g.getSeverity=function(){return pk(this,5)};g.setSeverity=function(a){return Jj(this,5,a)};g.getTitle=function(){return Rc(this,6)};g.setTitle=function(a){return Hj(this,6,a)};g.getReporter=function(){return W(this,Gj,7)};g.setReporter=function(a){X(this,Gj,7,a)};g.getAssignee=function(){return W(this,Gj,8)};g.setAssignee=function(a){return X(this,Gj,8,a)};g.clearAssignee=function(){return Bu(this,8)};g.getVerifier=function(){return W(this,Gj,9)};
g.setVerifier=function(a){X(this,Gj,9,a)};g.clearVerifier=function(){return Bu(this,9)};g.getCcsList=function(){return Sj(this,Gj,10,Bj())};g.setCcsList=function(a){Bm(this,10,a)};g.addAllCcs=function(a){bo(this,10,Gj,a)};g.setCcs=function(a,b){return Au(this,10,Gj,a,b)};g.getCollaboratorsList=function(){return Sj(this,Gj,31,Bj())};g.setCollaboratorsList=function(a){Bm(this,31,a)};g.addAllCollaborators=function(a){bo(this,31,Gj,a)};g.setCollaborators=function(a,b){return Au(this,31,Gj,a,b)};
g.getStaffing=function(){return W(this,Mm,36)};g.setStaffing=function(a){X(this,Mm,36,a)};g.getCanonicalIssueId_asLegacyNumberOrString=function(){return Um(this,11)};g.setCanonicalIssueId=function(a){Xl(this,11,a)};g.getBlockedByIssueIdsList=function(){return Rj(this,12,1)};g.getBlockedByIssueIdsList_asLegacyNumberOrString=function(){return bp(this,12,Bj())};g.setBlockedByIssueIdsList=function(a){ep(this,12,a)};g.addAllBlockedByIssueIds=function(a){Ru(this,12,a)};
g.getBlockingIssueIdsList=function(){return Rj(this,13,1)};g.getBlockingIssueIdsList_asLegacyNumberOrString=function(){return bp(this,13,Bj())};g.setBlockingIssueIdsList=function(a){ep(this,13,a)};g.addAllBlockingIssueIds=function(a){Ru(this,13,a)};g.getHotlistIdsList_asLegacyNumberOrString=function(a){return bp(this,14,Bj(a))};g.getHotlistIdsList_asString=function(){return Ck(this,14)};g.setHotlistIdsList=function(a){return ep(this,14,a)};g.addHotlistIds=function(a,b){return Qu(this,14,a,b)};
g.addAllHotlistIds=function(a){Ru(this,14,a)};g.removeHotlistIds=function(a){return Hec(this,14,a)};g.getCustomFieldsList=function(){return Sj(this,mm,15,Bj())};g.setCustomFieldsList=function(a){return Bm(this,15,a)};g.addCustomFields=function(a){Po(this,15,mm,a)};g.getCodeChangesList=function(a){return Aj(this,16,Bj(a))};g.setCodeChangesList=function(a){Ij(this,16,a)};g.addAllCodeChanges=function(a){zc(this,16,Qb,a,Rb)};g.setCodeChanges=function(a,b){return Tu(this,16,a,b)};
g.getGerritChangesList=function(){return Sj(this,Tm,35,Bj())};g.setGerritChangesList=function(a){Bm(this,35,a)};g.addAllGerritChanges=function(a){bo(this,35,Tm,a)};g.getInProd=function(){return kk(this,20)};g.setInProd=function(a){pm(this,20,a)};g.getIsArchived=function(){return kk(this,21)};g.setIsArchived=function(a){return pm(this,21,a)};g.getDuplicateIssueIdsList_asLegacyNumberOrString=function(){return bp(this,22,Bj())};g.setDuplicateIssueIdsList=function(a){ep(this,22,a)};
g.getIsDeleted=function(){return kk(this,23)};g.setIsDeleted=function(a){pm(this,23,a)};g.setDeletionReason=function(a){Jj(this,24,a)};g.getEntityStatus=function(){return W(this,Yl,25)};g.setEntityStatus=function(a){return X(this,Yl,25,a)};g.getSloSnoozeUntil=function(){return W(this,bk,26)};g.setSloSnoozeUntil=function(a){X(this,bk,26,a)};g.getSloEndTime=function(){return W(this,bk,34)};g.setSloEndTime=function(a){X(this,bk,34,a)};g.hasSloEndTime=function(){return tk(this,bk,34)};
g.setSloSnoozeType=function(a){Jj(this,30,a)};g.getRetention=function(){return pk(this,28)};g.setRetention=function(a){return Jj(this,28,a)};g.getEffort=function(){return W(this,Sm,29)};g.setEffort=function(a){X(this,Sm,29,a)};g.hasEffort=function(){return tk(this,Sm,29)};g.getAccessLimit=function(){return W(this,Tl,32)};g.setAccessLimit=function(a){return X(this,Tl,32,a)};var hFa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hFa,n);hFa.prototype.setNotificationSubscription=function(a){return Jj(this,4,a)};var sza=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(sza,n);var rza=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(rza,n);g=rza.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Ek(this,1,a)};g.getCommentNumber=function(){return Ej(this,2)};g.setCommentNumber=function(a){return Ok(this,2,a)};var wza=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(wza,n);var qza=[1,2];var Om=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Om,n);g=Om.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getFormattingMode=function(){return pk(this,4)};g.setFormattingMode=function(a){return Jj(this,4,a)};g.getAuthor=function(){return W(this,Gj,5)};g.setAuthor=function(a){X(this,Gj,5,a)};
g.hasAuthor=function(){return tk(this,Gj,5)};g.getUpdateTime=function(){return W(this,bk,6)};g.setUpdateTime=function(a){X(this,bk,6,a)};g.hasUpdateTime=function(){return tk(this,bk,6)};g.getVersion=function(){return Ej(this,7)};g.setVersion=function(a){return Zj(this,7,a)};g.getEntityStatus=function(){return W(this,Yl,8)};g.setEntityStatus=function(a){return X(this,Yl,8,a)};var oo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(oo,n);g=oo.prototype;g.getIssueId=function(){return xk(this,2)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,2)};g.getIssueId_asString=function(){return Bk(this,2)};g.setIssueId=function(a){return Xl(this,2,a)};g.getIssueState=function(){return W(this,Rm,3)};g.setIssueState=function(a){return X(this,Rm,3,a)};g.getIssueComment=function(){return W(this,ho,4)};
g.setIssueComment=function(a){X(this,ho,4,a)};g.hasIssueComment=function(){return tk(this,ho,4)};g.getAttachmentsList=function(){return Sj(this,am,18,Bj())};g.setAttachmentsList=function(a){return Bm(this,18,a)};g.addAllAttachments=function(a){bo(this,18,am,a)};g.getDescription=function(){return W(this,ho,44)};g.setDescription=function(a){return X(this,ho,44,a)};g.hasDescription=function(){return tk(this,ho,44)};g.getStatusUpdate=function(){return W(this,Om,43)};
g.setStatusUpdate=function(a){X(this,Om,43,a)};g.hasStatusUpdate=function(){return tk(this,Om,43)};g.getCreatedTime=function(){return W(this,bk,5)};g.setCreatedTime=function(a){return X(this,bk,5,a)};g.getModifiedTime=function(){return W(this,bk,6)};g.setModifiedTime=function(a){return X(this,bk,6,a)};g.getMajorModifiedTime=function(){return W(this,bk,35)};g.setMajorModifiedTime=function(a){return X(this,bk,35,a)};g.getResolvedTime=function(){return W(this,bk,7)};
g.setResolvedTime=function(a){return X(this,bk,7,a)};g.getVerifiedTime=function(){return W(this,bk,8)};g.setVerifiedTime=function(a){return X(this,bk,8,a)};g.getUserData=function(){return W(this,hFa,9)};g.setUserData=function(a){X(this,hFa,9,a)};g.getParentIssueIdsList_asLegacyNumberOrString=function(){return bp(this,37,Bj())};g.setParentIssueIdsList=function(a){return ep(this,37,a)};g.getAccessLimit=function(){return W(this,Ul,11)};g.setAccessLimit=function(a){return X(this,Ul,11,a)};
g.getVersion=function(){return Ej(this,12)};g.setVersion=function(a){return Zj(this,12,a)};g.getEtag=function(){return oq(this,13)};g.setEtag=function(a){return bm(this,13,a)};g.getCustomFieldsList=function(){return Sj(this,om,15,Bj())};g.setCustomFieldsList=function(a){return Bm(this,15,a)};g.addCustomFields=function(a){Po(this,15,om,a)};g.getSloStatus=function(){return W(this,po,16)};g.setSloStatus=function(a){X(this,po,16,a)};g.getSloId=function(){return xk(this,17)};
g.getSloId_asLegacyNumberOrString=function(){return Um(this,17)};g.setSloId=function(a){return Xl(this,17,a)};g.getTeamId=function(){return xk(this,33)};g.getTeamId_asLegacyNumberOrString=function(){return Um(this,33)};g.getTeamId_asString=function(){return Bk(this,33)};g.setTeamId=function(a){return Xl(this,33,a)};g.getEscalationOwner=function(){return W(this,Gj,48)};g.setEscalationOwner=function(a){X(this,Gj,48,a)};g.getRetentionState=function(){return W(this,Zl,29)};
g.setRetentionState=function(a){X(this,Zl,29,a)};g.getAncestorsMap=function(){return uc(this,38,qo,Vb)};g.getChildIssueCount=function(){return Ej(this,39)};g.setChildIssueCount=function(a){return Zj(this,39,a)};g.getDescendantIssueCount=function(){return Ej(this,45)};g.setDescendantIssueCount=function(a){return Zj(this,45,a)};g.getOpenDescendantIssueCount=function(){return Ej(this,46)};g.setOpenDescendantIssueCount=function(a){return Zj(this,46,a)};g.getIsArchived=function(){return kk(this,40)};
g.setIsArchived=function(a){return pm(this,40,a)};g.getTrackerId=function(){return xk(this,42)};g.getTrackerId_asLegacyNumberOrString=function(){return Um(this,42)};g.getTrackerId_asString=function(){return Bk(this,42)};g.setTrackerId=function(a){Xl(this,42,a)};var hA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hA,n);hA.prototype.getCode=function(){return pk(this,1)};hA.prototype.setCode=function(a){return Rk(this,1,a)};hA.prototype.getCodeOrUndefined=function(){return Nm(this,1)};var Nt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,1)};Y(Nt,n);var iA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(iA,n);g=iA.prototype;g.getLoggingId=function(){return Rc(this,1)};g.setLoggingId=function(a){Qk(this,1,a)};g.getValue=function(){return hm(this,2)};g.setValue=function(a){return Pu(this,2,a)};g.hasValue=function(){return rk(this,2,void 0,void 0,sb)!=null};var nu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(nu,n);nu.prototype.getEncryptionSupport=function(){return pk(this,1)};nu.prototype.getCertificateStatus=function(){return pk(this,2)};nu.prototype.getCertificateExpirySec=function(){return xk(this,3)};var jA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(jA,n);g=jA.prototype;g.getDisplayName=function(){return Rc(this,1)};g.setDisplayName=function(a){return Qk(this,1,a)};g.getGivenName=function(){return Rc(this,2)};g.setGivenName=function(a){return Qk(this,2,a)};g.hasGivenName=function(){return mk(this,2)};g.getFamilyName=function(){return Rc(this,3)};g.setFamilyName=function(a){return Qk(this,3,a)};g.hasFamilyName=function(){return mk(this,3)};
g.getSourceType=function(){return pk(this,4)};g.setSourceType=function(a){return Rk(this,4,a)};var toc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(toc,n);g=toc.prototype;g.getUrl=function(){return Rc(this,1)};g.setUrl=function(a){return Qk(this,1,a)};g.hasUrl=function(){return mk(this,1)};g.getType=function(){return pk(this,2)};g.setType=function(a){return Rk(this,2,a)};g.hasType=function(){return nk(this,2)};g.getSourceType=function(){return pk(this,3)};g.setSourceType=function(a){return Rk(this,3,a)};g.getGlyph=function(){return Rc(this,4)};
g.setGlyph=function(a){return Qk(this,4,a)};var ou=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ou,n);ou.prototype.getReachabilityStatus=function(){return pk(this,1)};ou.prototype.getClientData=function(){return Rc(this,2)};ou.prototype.hasClientData=function(){return mk(this,2)};var kA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(kA,n);kA.prototype.getAltText=function(){return Rc(this,1)};kA.prototype.setAltText=function(a){return Qk(this,1,a)};kA.prototype.getIconUrl=function(){return Rc(this,2)};kA.prototype.setIconUrl=function(a){return Qk(this,2,a)};var lA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lA,n);g=lA.prototype;g.getTargetType=function(){return pk(this,1,18)};g.getValue=function(){return Rc(this,2)};g.setValue=function(a){return Qk(this,2,a)};g.hasValue=function(){return mk(this,2)};g.getName=function(){return W(this,jA,3)};g.setName=function(a){return X(this,jA,3,a)};g.hasName=function(){return tk(this,jA,3)};g.getNameOrUndefined=function(){return Cec(this,jA,3)};
g.getPhoto=function(){return W(this,toc,4)};g.setPhoto=function(a){X(this,toc,4,a)};g.hasPhoto=function(){return tk(this,toc,4)};g.getProfileId=function(){return Ku(this,5)};g.setProfileId=function(a){return Tu(this,5,a)};g.getContactId=function(){return Ku(this,6)};g.setContactId=function(a){return Tu(this,6,a)};g.getIsMe=function(){return kk(this,7)};g.setIsMe=function(a){return Nk(this,7,a)};g.getAffinity=function(){return W(this,iA,8)};g.hasAffinity=function(){return tk(this,iA,8)};
g.getEmailSecurityInfo=function(){return W(this,nu,9)};g.setEmailSecurityInfo=function(a){X(this,nu,9,a)};g.getOrgState=function(){return pk(this,10)};g.setOrgState=function(a){Rk(this,10,a)};g.getDataSource=function(){return pk(this,11)};g.setDataSource=function(a){return Rk(this,11,a)};g.hasDataSource=function(){return nk(this,11)};g.getDescription=function(){return Rc(this,12)};g.setDescription=function(a){return Qk(this,12,a)};g.hasDescription=function(){return mk(this,12)};
g.getTagList=function(){return Sj(this,kA,14,Bj())};g.setTagList=function(a){Bm(this,14,a)};g.addTag=function(a){Po(this,14,kA,a)};g.getExtendedData=function(){return W(this,Nt,15)};g.setExtendedData=function(a){X(this,Nt,15,a)};g.hasExtendedData=function(){return tk(this,Nt,15)};g.getCanonicalValue=function(){return Rc(this,16)};g.setCanonicalValue=function(a){return Qk(this,16,a)};g.hasCanonicalValue=function(){return mk(this,16)};g.getReachabilityInfo=function(){return W(this,ou,17)};
g.setReachabilityInfo=function(a){X(this,ou,17,a)};var uoc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(uoc,n);g=uoc.prototype;g.getResultType=function(){return pk(this,1,7)};g.setResultType=function(a){return Rk(this,1,a)};g.getTargetList=function(){return Sj(this,lA,2,Bj())};g.setTarget=function(a,b){return Au(this,2,lA,a,b)};g.getTargetCount=function(){return zec(this,lA,2)};g.getMemberList=function(){return Sj(this,uoc,3,Bj())};g.getTotalMemberCount=function(){return Ej(this,4)};
g.getIsBoosted=function(){return kk(this,5)};g.setIsBoosted=function(a){Nk(this,5,a)};g.getAffinity=function(){return W(this,iA,6)};g.hasAffinity=function(){return tk(this,iA,6)};g.getExtendedData=function(){return W(this,Nt,7)};g.setExtendedData=function(a){X(this,Nt,7,a)};g.hasExtendedData=function(){return tk(this,Nt,7)};var mA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(mA,n);var voc=function(a,b){Bm(a,1,b)};mA.prototype.getMetadata=function(){return W(this,hA,2)};mA.prototype.getMutableMetadata=function(){return Cu(this,hA,2)};mA.prototype.setMetadata=function(a){X(this,hA,2,a)};mA.prototype.hasMetadata=function(){return tk(this,hA,2)};var asa=Object.prototype.hasOwnProperty;var woc={SINGLE_VALUE:"SINGLE_VALUE",COLLECTION:"COLLECTION",USER_COLLECTION:"USER_COLLECTION",LINKED_COLLECTION:"LINKED_COLLECTION",CUSTOM_FIELD:"CUSTOM_FIELD",STATUS_UPDATE:"STATUS_UPDATE"},WWb=new Set([{alias:"googlers_unrestricted"},{alias:"google_domain"}].map(function(a){return"ALIAS:"+a.alias})),xoc={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"},yoc={AGGREGATION_TYPE_UNSPECIFIED:"AGGREGATION_TYPE_UNSPECIFIED",SUM:"SUM",MAX:"MAX"},zoc={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 Aoc=["NEW","CONFIRMED","IN_PROGRESS","FIXED","WONT_FIX"],nA={},Boc=(nA.UNSPECIFIED=[],nA.NEW=["PENDING_TRIAGE","REPORTER_RESPONDED","NEEDS_INFO"],nA.CONFIRMED=["PENDING_OWNER"],nA.IN_PROGRESS=["EXPECTED","PLANNED","COMMITTED"],nA.FIXED=["REOPENED"],nA.WONT_FIX=["REOPENED"],nA),oA={},Coc=(oA.TRIAGE_SUBPHASE_UNSPECIFIED="Unspecified",oA.NEEDS_INFO="Needs more info",oA.PENDING_TRIAGE="Pending triage",oA.PENDING_OWNER="Pending owner",oA.REPORTER_RESPONDED="Reporter responded",oA.EXPECTED="Expected",
oA.PLANNED="Planned",oA.COMMITTED="Committed",oA.REOPENED="Reopened",oA),pA={},Doc=(pA.TRIAGE_SUBPHASE_UNSPECIFIED="unspecified",pA.NEEDS_INFO="needs-info",pA.PENDING_TRIAGE="pending-triage",pA.PENDING_OWNER="pending-owner",pA.REPORTER_RESPONDED="reporter-responded",pA.EXPECTED="expected",pA.PLANNED="planned",pA.COMMITTED="committed",pA.REOPENED="reopened",pA),Eoc=ysa(zsa(Doc)),qA={},Nr=(qA.UNSPECIFIED="unspecified",qA.NEW="new",qA.CONFIRMED="confirmed",qA.IN_PROGRESS="in-progress",qA.FIXED="fixed",
qA.WONT_FIX="wont-fix",qA),Foc=ysa(zsa(Nr)),lr=new Map([["NEW","New"],["CONFIRMED","Confirmed"],["IN_PROGRESS","In progress"],["FIXED","Fixed"],["WONT_FIX","Won't fix"]]),rA={},Goc=(rA.NEW="status:new modified:7d",rA.CONFIRMED="status:assigned modified:7d",rA.IN_PROGRESS="status:accepted modified:30d",rA.FIXED="status:fixed|verified modified:30d",rA.WONT_FIX="status:infeasible|not_reproducible|obsolete|duplicate modified:30d",rA),Hoc=[{type:"PRIORITY"},{type:"TITLE"},{type:"ALERTS"},{type:"RELATIVE_MODIFIED_TIME"},
{type:"ISSUE_ID"}],sA={},Ioc=(sA.UNSPECIFIED=Hoc,sA.NEW=[{type:"TRIAGER"},{type:"PRIORITY"},{type:"TITLE"},{type:"ALERTS"},{type:"COMPONENT_PATH"},{type:"RELATIVE_MODIFIED_TIME"},{type:"ISSUE_ID"}],sA.CONFIRMED=Hoc,sA.IN_PROGRESS=Hoc,sA.FIXED=Hoc,sA.WONT_FIX=Hoc,sA);var Asa=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};var Joc=new Set([1049953,209989]);var vGa=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"]]),Bo=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,""]]),tA=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,""]]),Koc=new Map([[1,"High"],[2,"Medium"],[3,"Low"],[4,"Zero"],[0,"--"]]),uA=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,"--"]]),vA=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 Loc=new Map([["STATUS_UNSPECIFIED",tA.get(0)],["NEW",tA.get(1)],["ASSIGNED",tA.get(2)],["ACCEPTED",tA.get(3)],["FIXED",tA.get(4)],["VERIFIED",tA.get(5)],["DUPLICATE",tA.get(10)],["INFEASIBLE",tA.get(9)],["INACTIVE",tA.get(11)],["NOT_REPRODUCIBLE",tA.get(6)],["OBSOLETE",tA.get(8)],["INTENDED_BEHAVIOR",tA.get(7)]]),Moc={New:1,Assigned:2,"In Progress (Accepted)":3,Fixed:4,Verified:5},fwa=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]]),wA={},Noc=(wA.ASSIGNED=!0,wA.ACCEPTED=!0,wA.FIXED=!0,wA.VERIFIED=!0,wA.DUPLICATE=!0,wA.INFEASIBLE=!0,wA.INACTIVE=!0,wA.NOT_REPRODUCIBLE=!0,wA.OBSOLETE=!0,wA.INTENDED_BEHAVIOR=!0,wA),uj=new Map([["STATUS_UNSPECIFIED",Bo.get(0)],["NEW",Bo.get(1)],["ASSIGNED",Bo.get(2)],["ACCEPTED",Bo.get(3)],["FIXED",Bo.get(4)],["VERIFIED",Bo.get(5)],["DUPLICATE",Bo.get(10)],["INFEASIBLE",Bo.get(9)],["INACTIVE",
Bo.get(11)],["NOT_REPRODUCIBLE",Bo.get(6)],["OBSOLETE",Bo.get(8)],["INTENDED_BEHAVIOR",Bo.get(7)]]),xA={},Ooc=(xA.P0="P0",xA.P1="P1",xA.P2="P2",xA.P3="P3",xA.P4="P4",xA.PRIORITY_UNSPECIFIED="--",xA),yA={},pwa=(yA.P0=0,yA.P1=10,yA.P2=20,yA.P3=30,yA.P4=40,yA.PRIORITY_UNSPECIFIED=99,yA),zA={},Poc=(zA.S0="S0",zA.S1="S1",zA.S2="S2",zA.S3="S3",zA.S4="S4",zA.SEVERITY_UNSPECIFIED="--",zA),Qoc=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"]]),BA={},Cl=(BA.INVOLVEMENT_UNSPECIFIED=Koc.get(0),BA.HIGH=Koc.get(1),BA.MEDIUM=Koc.get(2),BA.LOW=Koc.get(3),BA.ZERO=Koc.get(4),BA),CA={},Kl=(CA.JOB_ROLE_UNSPECIFIED=
uA.get(0),CA.SWE=uA.get(1),CA.SRE=uA.get(2),CA.PM=uA.get(3),CA.TPGM=uA.get(4),CA.UX=uA.get(5),CA.UXD=uA.get(6),CA.UXR=uA.get(7),CA.DATASCI=uA.get(8),CA.LD=uA.get(9),CA.DEVREL=uA.get(10),CA.TW=uA.get(11),CA.GTM=uA.get(12),CA.CE=uA.get(13),CA.OTHER=uA.get(14),CA),DA={},EA=(DA.JOB_ROLE_UNSPECIFIED=vA.get(0),DA.SWE=vA.get(1),DA.SRE=vA.get(2),DA.PM=vA.get(3),DA.TPGM=vA.get(4),DA.UX=vA.get(5),DA.UXD=vA.get(6),DA.UXR=vA.get(7),DA.DATASCI=vA.get(8),DA.LD=vA.get(9),DA.DEVREL=vA.get(10),DA.TW=vA.get(11),DA.GTM=
vA.get(12),DA.CE=vA.get(13),DA.OTHER=vA.get(14),DA);var Tsa=vj("NEW",!0,"FORBIDDEN",10),Usa=vj("ASSIGNED",!0,"REQUIRED",20),Vsa=vj("ACCEPTED",!0,"REQUIRED",30),Wsa=vj("FIXED",!1,"REQUIRED",40),Xsa=vj("VERIFIED",!1,"REQUIRED",50),Ysa=vj("DUPLICATE",!1,"ALLOWED",60),Zsa=vj("INFEASIBLE",!1,"ALLOWED",70),cta=vj("INACTIVE",!1,"ALLOWED",75),$sa=vj("NOT_REPRODUCIBLE",!1,"ALLOWED",80),ata=vj("OBSOLETE",!1,"ALLOWED",90),bta=vj("INTENDED_BEHAVIOR",!1,"ALLOWED",100),wl=new Map(dta().map(function(a){return[a.status,a]})),Roc=dta().map(function(a){return{value:a.status,
displayText:a.displayValue}}),Soc=new Set(dta().filter(function(a){return a.assigneeRequirement==="REQUIRED"}));var Toc=function(){},kta=function(a){if(typeof a=="number"){var b=new Toc;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(":",gv(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=Uoc(a);b.tzNames_=[c,c];b.tzNamesExt_={STD_LONG_NAME_GMT:a,STD_GENERIC_LOCATION:a};b.transitions_=[];return b}b=new Toc;
b.timeZoneId_=a.id;b.standardOffset_=-a.std_offset;b.tzNames_=a.names;b.tzNamesExt_=a.names_ext;b.transitions_=a.transitions;return b},Uoc=function(a){var b=["GMT"];b.push(a<=0?"+":"-");a=Math.abs(a);b.push(gv(Math.floor(a/60)%100,2),":",gv(a%60,2));return b.join("")},Voc=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]},Woc=function(a,
b){a=a.standardOffset_-Voc(a,b);return a===-1440?0:a};var ota=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ota,n);ota.prototype.getLogoUrl=function(){return Rc(this,1)};ota.prototype.getTheme=function(){return pk(this,2)};ota.prototype.setTheme=function(a){Jj(this,2,a)};var FA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(FA,n);g=FA.prototype;g.getTrackerId=function(){return xk(this,1)};g.getTrackerId_asLegacyNumberOrString=function(){return Um(this,1)};g.getTrackerId_asString=function(){return Bk(this,1)};g.setTrackerId=function(a){Xl(this,1,a)};g.getComponentId=function(){return xk(this,2)};g.getComponentId_asString=function(){return Bk(this,2)};g.setComponentId=function(a){return Xl(this,2,a)};
g.getName=function(){return Rc(this,3)};g.setName=function(a){return Hj(this,3,a)};g.getInternalBaseUrl=function(){return Rc(this,8)};g.getExternalBaseUrl=function(){return Rc(this,9)};g.getEtag=function(){return oq(this,7)};g.setEtag=function(a){return bm(this,7,a)};var kl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,kl.messageId)};Y(kl,n);kl.prototype.getIt=function(){return W(this,FA,9,Nc)};kl.prototype.setIt=function(a){return X(this,FA,9,a,Nc)};kl.messageId="b.Tracker";var GA={showFullHistory:void 0,useCodefont:void 0,resultsPerPage:50,displayColumns:void 0,sortColumns:void 0,notificationPreferences:{reportedPriority:"IMPORTANT",assignedPriority:"ALL",verifiedPriority:"IMPORTANT",ccdPriority:"IMPORTANT",collaboratorPriority:"IMPORTANT",starredPriority:"IMPORTANT",excludeChangesByMe:!0,unsubscribeFromAll:!1,enableV2Prefs:!1},listViewPreferences:{showHotlists:!1,wrapTitles:!1,wrapComponents:!1,showStatusIcons:!1,rtlComponentPath:!1},layoutPreferences:{leftSidebarWidth:220,
expandIssueSlo:!1},dateTimePreferences:{calendarFormat:"MMM d, yyyy",timeFormat:"hh:mma",timeZone:"",sloEtaViewAs:"DEFAULT"},themePreferences:{density:"COMFORTABLE"},homepagePreferences:{resourceType:void 0,resourceId:void 0},keyboardPreferences:{enableAllHotkeys:!0},textDisplayPreferences:{},commentFormattingPreferences:{},bugScreensaverPreferences:{announcementDismissed:!1,enableBugScreensaver:!1},g3nPreferences:{},teamWarningPreferences:{componentTeamWarnings:[]},dismissalTimestamps:{},showRecentEventsFirst:!1,
commentFilterPreferences:{commentFilter:void 0},showInlineImages:!0,missionControlPreferences:{}};var Ak=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ak,n);Ak.prototype.getOpen=function(){return kk(this,1,!0)};Ak.prototype.setOpen=function(a){return Nk(this,1,a)};var Qta=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Qta,n);var Vta=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Vta,n);var vk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(vk,n);vk.prototype.getLastPublishMode=function(){return pk(this,1)};vk.prototype.setLastPublishMode=function(a){Rk(this,1,a)};vk.prototype.getCommentDisplayOverride=function(){return pk(this,2)};vk.prototype.setCommentDisplayOverride=function(a){Rk(this,2,a)};var Wk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Wk,n);g=Wk.prototype;g.getType=function(){return pk(this,1,1)};g.setType=function(a){return Rk(this,1,a)};g.hasType=function(){return nk(this,1)};g.getCustomFieldId=function(){return xk(this,2)};g.getCustomFieldId_asString=function(){return Bk(this,2)};g.setCustomFieldId=function(a){return Ek(this,2,a)};g.hasCustomFieldId=function(){return wk(this,2)};var Tk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Tk,n);Tk.prototype.getTimeZone=function(){return Rc(this,5)};Tk.prototype.setTimeZone=function(a){return Qk(this,5,a)};Tk.prototype.hasTimeZone=function(){return mk(this,5)};var Vk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Vk,n);Vk.prototype.getColumnList=function(){return Sj(this,Wk,1,Bj())};Vk.prototype.setColumnList=function(a){return Bm(this,1,a)};Vk.prototype.setColumn=function(a){return Au(this,1,Wk,a)};var vua=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(vua,n);var Kta=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Kta,n);var Xk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Xk,n);Xk.prototype.getColumn=function(){return W(this,Wk,1)};Xk.prototype.setColumn=function(a){return X(this,Wk,1,a)};var Pk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Pk,n);Pk.prototype.getColumnList=function(){return Sj(this,Xk,1,Bj())};Pk.prototype.setColumnList=function(a){return Bm(this,1,a)};Pk.prototype.setColumn=function(a){return Au(this,1,Xk,a)};var qk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qk,n);qk.prototype.getDensity=function(){return pk(this,1,1)};qk.prototype.setDensity=function(a){return Rk(this,1,a)};var Rta=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Rta,n);var yua=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(yua,n);yua.prototype.setResourceId=function(a){Uk(this,2,a)};var Ota=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ota,n);var Jk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Jk,n);Jk.prototype.getSignal=function(){return pk(this,1)};Jk.prototype.setSignal=function(a){return Rk(this,1,a)};Jk.prototype.getChecked=function(){return kk(this,2)};Jk.prototype.setChecked=function(a){return Nk(this,2,a)};var Hk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Hk,n);Hk.prototype.getSignal=function(){return pk(this,1)};Hk.prototype.setSignal=function(a){return Rk(this,1,a)};Hk.prototype.getChecked=function(){return kk(this,2)};Hk.prototype.setChecked=function(a){return Nk(this,2,a)};var Ik=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ik,n);Ik.prototype.getSignal=function(){return pk(this,1)};Ik.prototype.setSignal=function(a){return Rk(this,1,a)};Ik.prototype.getChecked=function(){return kk(this,2)};Ik.prototype.setChecked=function(a){return Nk(this,2,a)};var Kk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Kk,n);Kk.prototype.getSignal=function(){return pk(this,1)};Kk.prototype.setSignal=function(a){return Rk(this,1,a)};Kk.prototype.getChecked=function(){return kk(this,2)};Kk.prototype.setChecked=function(a){return Nk(this,2,a)};var Lk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Lk,n);Lk.prototype.getSignal=function(){return pk(this,1)};Lk.prototype.setSignal=function(a){return Rk(this,1,a)};Lk.prototype.getChecked=function(){return kk(this,2)};Lk.prototype.setChecked=function(a){return Nk(this,2,a)};var Gk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Gk,n);Gk.prototype.getSignal=function(){return pk(this,1)};Gk.prototype.setSignal=function(a){return Rk(this,1,a)};Gk.prototype.getChecked=function(){return kk(this,2)};Gk.prototype.setChecked=function(a){return Nk(this,2,a)};var zk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(zk,n);zk.prototype.getCollapsedMap=function(){return tc(this,2,Ub)};var Jua=function(a,b){dp(a,7,b)},Lua=function(a,b){dp(a,8,b)};zk.prototype.getMyTasksSources=function(){return Lu(this,8)};var Mua=function(a,b){Bm(a,18,b)},Oua=function(a,b){Bm(a,19,b)},Qua=function(a,b){Bm(a,20,b)},Sua=function(a,b){Bm(a,21,b)},Uua=function(a,b){Bm(a,22,b)},Wua=function(a,b){Bm(a,24,b)};var Jta=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Jta,n);var Dk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Dk,n);Dk.prototype.getTeamId=function(){return xk(this,1)};Dk.prototype.getTeamId_asLegacyNumberOrString=function(){return Um(this,1)};Dk.prototype.getTeamId_asString=function(){return Bk(this,1)};Dk.prototype.setTeamId=function(a){return Ek(this,1,a)};var Yta=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Yta,n);var fua=function(a,b){return ep(a,1,b)},gua=function(a,b){X(a,bk,2,b)},eua=function(a,b){return Bm(a,3,b)};var yk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(yk,n);yk.prototype.getComponentId=function(){return xk(this,1)};yk.prototype.getComponentId_asString=function(){return Bk(this,1)};yk.prototype.setComponentId=function(a){return Ek(this,1,a)};yk.prototype.hasComponentId=function(){return wk(this,1)};var Sta=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Sta,n);var Iua=function(a,b){Bm(a,1,b)};var uk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(uk,n);uk.prototype.getLastPublishMode=function(){return pk(this,1)};uk.prototype.setLastPublishMode=function(a){Rk(this,1,a)};uk.prototype.getCommentDisplayOverride=function(){return pk(this,2)};uk.prototype.setCommentDisplayOverride=function(a){Rk(this,2,a)};var dGa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dGa,n);dGa.prototype.getValue=function(){return kk(this,1)};dGa.prototype.setValue=function(a){return pm(this,1,a)};var Mk=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,500)};Y(Mk,n);g=Mk.prototype;g.getDisplayColumns=function(){return W(this,Vk,4)};g.setDisplayColumns=function(a){X(this,Vk,4,a)};g.getSortColumns=function(){return W(this,Pk,6)};g.getLayoutPreferences=function(){return W(this,vua,10)};g.getDateTimePreferences=function(){return W(this,Tk,11)};g.getHomepagePreferences=function(){return W(this,yua,13)};g.getCollapsedMap=function(){return tc(this,27,Ub)};
g.getShowInlineImages=function(){return kk(this,29)};var bl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bl,n);g=bl.prototype;g.getAppName=function(){return Rc(this,2)};g.getDocumentationBaseUrl=function(){return Rc(this,3)};g.getEnvironmentType=function(){return Rc(this,5)};g.setEnvironmentType=function(a){return Qk(this,5,a)};g.getOnePickUrl=function(){return Rc(this,7)};g.getOnePickSecretToken=function(){return Rc(this,12)};g.getCommentNumberLimit=function(){return Ej(this,8)};
g.getCreateComponentRedirectDelay=function(){return hm(this,9)};g.getCreateRestrictedSubresourcesComponentIds=function(){return Eec(this,13)};g.getIndefiniteRetentionComponentsAllowlist=function(){return Eec(this,20)};g.getBatchDedupeComponentAllowlist=function(){return Eec(this,28)};g.getInternalBaseUrl=function(){return Rc(this,24)};g.getExternalBaseUrl=function(){return Rc(this,25)};var dl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dl,n);g=dl.prototype;g.getEmail=function(){return Rc(this,1)};g.setEmail=function(a){return Qk(this,1,a)};g.hasEmail=function(){return mk(this,1)};g.getSessionIdentifier=function(){return Rc(this,3)};g.getUserTypeLabel=function(){return Rc(this,5)};var il=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,il.messageId)};Y(il,n);il.prototype.getId=function(){return Rc(this,1,void 0,Nc)};il.prototype.setId=function(a){return Qk(this,1,a,Nc)};il.messageId="b.TimeZoneData";var jl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,jl.messageId)};Y(jl,n);g=jl.prototype;g.getMessage=function(){return Rc(this,1,void 0,Nc)};g.setMessage=function(a){return Qk(this,1,a,Nc)};g.hasMessageId=function(){return mk(this,2,Nc)};g.getTagsList=function(a){return Aj(this,4,Bj(a),Nc)};g.getTags=function(a){return Ku(this,4,a,Nc)};jl.messageId="b.Announcement";var cl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(cl,n);cl.prototype.getAnnouncement=function(){return W(this,jl,2)};var HA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(HA,n);var wva=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(wva,n);var hva=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hva,n);g=hva.prototype;g.getUser=function(){return W(this,dl,1)};g.setUser=function(a){return X(this,dl,1,a)};g.hasUser=function(){return tk(this,dl,1)};g.getConfig=function(){return W(this,bl,2)};g.setConfig=function(a){X(this,bl,2,a)};g.getXsrfToken=function(){return Rc(this,3)};g.getCspNonce=function(){return Rc(this,8)};g.getFrontendAccessMode=function(){return Rc(this,4)};
g.setFrontendAccessMode=function(a){return Qk(this,4,a)};g.getMustAcknowledgeTerms=function(){return kk(this,5)};g.getShowNewFeaturesDialog=function(){return kk(this,6)};g.getUserPreferences=function(){return W(this,Mk,7)};g.getAppBaseHref=function(){return Rc(this,10)};g.getTracker=function(){return W(this,kl,11)};g.getPassiveLoginIframeUrl=function(){return W(this,wva,12)};var iva=window,al;var Xoc={clear:function(){},getItem:function(){return null},removeItem:function(){},setItem:function(){},length:0,key:function(){return null}},el=Xoc;try{el=window.localStorage||Xoc}catch(a){}
var Yoc=function(a){return function(){var b=el.getItem(a);if(b!=null)return b=Number(b),isNaN(b)?void 0:b}},gl=function(a){return function(){var b=el.getItem(a);if(b!=null)return String(b)}},Zoc=function(a){return function(b){b==null?el.removeItem(a):el.setItem(a,String(b))}},$oc=function(a){return function(b){b==null?el.removeItem(a):el.setItem(a,b)}},apc=function(a){return function(){var b=fl(a)();kva(a)(!b);return!b}},ova=function(a){return function(){var b=el.getItem(a);if(b!=null)try{return JSON.parse(b)}catch(c){console.warn("JSON.parse("+
a+")"),console.warn(c)}}},hl=function(a){return function(b){b==null?el.removeItem(a):el.setItem(a,JSON.stringify(b))}};var vva=qj(function(){var a=qva(),b,c=(b=jva().getConfig())==null?void 0:tc(b,4,Ub);if(a&&c){b=l(a.overrides);for(var d=b.next();!d.done;d=b.next())d=d.value,c.set(d.flagName,d.value);console.warn("Active flag overrides:");console.table(a.overrides);nva()}});var uva;var Dva=RegExp("^[^\\.\\s]{2}\\.{3}@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$","i"),Cva=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"),bpc=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"),cpc=RegExp("^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*(?:@?(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.?)*)?$",
"i"),Hva=["@twosync.google.com","@twosync-src.google.com","@twosync-loas.google.com"];var Rva=new WeakMap;var mwa=ll().user.email,uwa=new WeakMap,wwa=new WeakMap;var IA=function(a){a=a===void 0?[]:a;this.internalValue$=new Kn(new Set);this.value$=xv(this.internalValue$).pipe(C(function(b){return new Set(b)}),og(gj),ug({refCount:!0,bufferSize:1}));this.reset(a)};g=IA.prototype;g.reset=function(a){this.value.clear();a=l(a);for(var b=a.next();!b.done;b=a.next())this.value.add(b.value);this.internalValue$.next(this.value)};
g.add=function(){for(var a=l(ge.apply(0,arguments)),b=a.next();!b.done;b=a.next())this.value.add(b.value);this.internalValue$.next(this.value);return this};g.clear=function(){this.value.clear();this.internalValue$.next(this.value)};g.delete=function(a){a=this.value.delete(a);this.internalValue$.next(this.value);return a};g.has=function(a){return this.value.has(a)};var Qq=function(a,b){return a.internalValue$.pipe(C(function(c){return c.has(b)}),og())};IA.prototype[Symbol.iterator]=function(){return this.value.values()};
IA.prototype.toString=function(){return"[ReactiveSet](["+[].concat(p(this.value.values())).join(", ")+"])"};IA.prototype.indexOf=function(a){return[].concat(p(this.value.values())).indexOf(a)};
nd.Object.defineProperties(IA.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(C(function(a){return a.size}),og())}}});var dpc=new IA,epc=dpc.value$.pipe(lg(),kg(0,kp));var Kwa=new RegExp(/^(?:https?:\/\/)?([\w-]+)-review\./.source+/(?:googlesource|git\.corp\.google)\.com/.source+/\/c\/([\w-\/]+)\/\+\/(\d{1,20})/.source+/(?:[^\d].*)?$/.source);var Ll=function(a){this.patternParts_=[];this.dateTimeSymbols_=ev;typeof a=="number"?this.applyStandardPattern_(a):this.applyPattern_(a)},fpc=[/^'(?:[^']|'')*('|$)/,/^(?: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]+/],gpc=function(a){return a.getHours?a.getHours():0};
Ll.prototype.applyPattern_=function(a){for(hpc&&(a=a.replace(/\u200f/g,""));a;){for(var b=a,c=0;c<fpc.length;++c){var d=a.match(fpc[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("jb`"+a);}};
Ll.prototype.format=function(a,b){if(!a)throw Error("kb");var c=b?(a.getTimezoneOffset()-Woc(b,a))*6E4:0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(d=new Date(d.getTime()+(d.getTimezoneOffset()-a.getTimezoneOffset())*6E4),e=new Date(a.getTime()+(c+(c>0?-864E5:864E5))));c=[];for(var f=0;f<this.patternParts_.length;++f){var h=this.patternParts_[f].text;1==this.patternParts_[f].type?c.push(ipc(this,h,a,d,e,b)):c.push(h)}return c.join("")};
Ll.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 JA=function(a,b){return AOa(b,a.dateTimeSymbols_)},hpc=!1,AOa=function(a,b){a=String(a);b=b||ev;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("")},kpc=function(a,b,c,d){c=c.getFullYear();c<=0&&d&&(c=1-c);return JA(a,jpc(c,b))},jpc=function(a,b){b==2&&(a%=100);a<0&&b++;return gv(a,b)},KA=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("lb");},lpc=function(a,
b){KA(b);b=gpc(b);return a.dateTimeSymbols_.AMPMS[b>=12&&b<24?1:0]},ipc=function(a,b,c,d,e,f){var h=b.length;switch(b.charAt(0)){case "G":return c=d.getFullYear()>0?1:0,h>=4?a.dateTimeSymbols_.ERANAMES[c]:a.dateTimeSymbols_.ERAS[c];case "y":return kpc(a,h,d,!0);case "Y":return c=d.getFullYear(),e=d.getMonth(),c=Nfc(c,e,d.getDate(),a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),c=(new Date(c)).getFullYear(),h==2&&(c%=100),JA(a,jpc(c,h));case "u":return kpc(a,h,d,!1);case "M":a:switch(c=
d.getMonth(),h){case 5:h=a.dateTimeSymbols_.NARROWMONTHS[c];break a;case 4:h=a.dateTimeSymbols_.MONTHS[c];break a;case 3:h=a.dateTimeSymbols_.SHORTMONTHS[c];break a;default:h=JA(a,gv(c+1,h))}return h;case "k":return KA(e),c=gpc(e)||24,JA(a,gv(c,h));case "S":return JA(a,(e.getMilliseconds()/1E3).toFixed(Math.min(3,h)).slice(2)+(h>3?gv(0,h-3):""));case "E":return c=d.getDay(),h>=4?a.dateTimeSymbols_.WEEKDAYS[c]:a.dateTimeSymbols_.SHORTWEEKDAYS[c];case "a":return lpc(a,e);case "b":return lpc(a,e);case "B":return lpc(a,
e);case "h":return KA(e),c=gpc(e)%12||12,JA(a,gv(c,h));case "K":return KA(e),c=gpc(e)%12,JA(a,gv(c,h));case "H":return KA(e),c=gpc(e),JA(a,gv(c,h));case "c":a:switch(c=d.getDay(),h){case 5:h=a.dateTimeSymbols_.STANDALONENARROWWEEKDAYS[c];break a;case 4:h=a.dateTimeSymbols_.STANDALONEWEEKDAYS[c];break a;case 3:h=a.dateTimeSymbols_.STANDALONESHORTWEEKDAYS[c];break a;default:h=JA(a,gv(c,1))}return h;case "L":a:switch(c=d.getMonth(),h){case 5:h=a.dateTimeSymbols_.STANDALONENARROWMONTHS[c];break a;case 4:h=
a.dateTimeSymbols_.STANDALONEMONTHS[c];break a;case 3:h=a.dateTimeSymbols_.STANDALONESHORTMONTHS[c];break a;default:h=JA(a,gv(c+1,h))}return h;case "Q":return c=Math.floor(d.getMonth()/3),h<4?a.dateTimeSymbols_.SHORTQUARTERS[c]:a.dateTimeSymbols_.QUARTERS[c];case "d":return JA(a,gv(d.getDate(),h));case "m":return KA(e),JA(a,gv(e.getMinutes?e.getMinutes():0,h));case "s":return KA(e),JA(a,gv(e.getSeconds(),h));case "v":return(f||kta(c.getTimezoneOffset())).timeZoneId_;case "V":return a=f||kta(c.getTimezoneOffset()),
h<=2?a.timeZoneId_:Voc(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=Nfc(c,d,e.getDate(),a.dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.dateTimeSymbols_.FIRSTDAYOFWEEK),JA(a,gv(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,
h));case "z":return a=f||kta(c.getTimezoneOffset()),h<4?a.tzNames_[Voc(a,c)>0?2:0]:a.tzNames_[Voc(a,c)>0?3:1];case "Z":return d=f||kta(c.getTimezoneOffset()),h<4?(h=-Woc(d,c),a=[h<0?"-":"+"],h=Math.abs(h),a.push(gv(Math.floor(h/60)%100,2),gv(h%60,2)),h=a.join("")):h=JA(a,Uoc(Woc(d,c))),h;default:return""}};var Vwa=new Set(["blockedById","blockingId","duplicateId","parentIssueIds","childIssueIds"]);var mpc={ACTIVE:0,DISMISSED:1,SNOOZED:2,0:"ACTIVE",1:"DISMISSED",2:"SNOOZED"};var npc=ll().user.email,opc={key:"USER_RESPONDED",displayAs:"User responded",emoji:"\u21a9\ufe0f",tooltip:"Reporter responded with more info",check:function(a){return Fl(a)==="REPORTER_RESPONDED"},chipColor:"blue",showCount:!0},ppc={key:"OUT_OF_SLO",displayAs:"Out of SLO",emoji:"\u2757\ufe0f",tooltip:"Out of SLO",check:function(a){return Nva(a.snapshot[0].sloEndTime)&&(!a.snapshot[0].sloStartTime||Nva(a.snapshot[0].sloStartTime))},chipColor:"red",showCount:!0},qpc={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},rpc={key:"PAST_DEADLINE",displayAs:"Past deadline",emoji:"\u231b\ufe0f",check:function(a){var b,c;a=sl((b=a.snapshot[0].customField)==null?void 0:(c=b.find(function(d){return Joc.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},
spc={key:"REOPENED",displayAs:"Reopened",emoji:"\u26a0\ufe0f",check:function(a){var b,c;return xl(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},tpc={key:"MY_ISSUES",displayAs:"My issues",emoji:"\ud83c\udf1f",check:function(a){var b;return xl(a)&&(((b=a.experimentalFields)==null?void 0:b.triage.triagerEmail)===
npc||Wva(a)===npc)},tooltip:"Issues for which you are triager, or assigned to you.",showCount:!0},upc={key:"TRENDING",displayAs:"Trending",emoji:"\ud83d\udd25",check:function(a){return!!dpc.has(a.issueId)},queryFragment:'(no server query available for "is trending")',tooltip:"Unusually high view activity",chipColor:"purple",showCount:!0},LA={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"},vpc={key:"NEEDS_ATTENTION",displayAs:"Needs attention",emoji:"",check:function(a){var b,c;return(c=(b=Lob.get("NEW"))==null?void 0:b.some(function(d){return nxa(a,d)}))!=null?c:!1},tooltip:"Issues which are actionable and important.",showCount:!0},wpc={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},xpc={key:"NOT_ASSIGNED",displayAs:"Not assigned",emoji:"",check:function(a){return Wva(a)==null},tooltip:"Issues which have empty assignee.",chipColor:"green",showCount:!0},ypc=new Map([["NEW",[vpc,tpc,LA]],["CONFIRMED",[upc,qpc,LA]],["IN_PROGRESS",[ppc,rpc,LA]],["FIXED",[LA]],["WONT_FIX",[LA]]]),Lob=new Map([["NEW",[wpc,ppc,opc]],["CONFIRMED",[upc,ppc,qpc,wpc]],["IN_PROGRESS",[ppc,rpc,xpc]],["FIXED",[spc]],["WONT_FIX",[spc]]]),zpc={INACTIVE_1Y:qpc,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:LA,MY_ISSUES:tpc,NEEDS_ATTENTION:vpc,NEEDS_MORE_INFO:{key:"NEEDS_MORE_INFO",displayAs:"Needs more info",emoji:"\u2139\ufe0f",check:function(a){return Fl(a)==="NEEDS_INFO"},tooltip:"Waiting for more information from the reporter.",chipColor:"green",showCount:!0},OUT_OF_SLO:ppc,PAST_DEADLINE:rpc,REOPENED:spc,TRENDING:upc,USER_RESPONDED:opc,
HIGH_PRIORITY:wpc,NOT_ASSIGNED:xpc};var Bs=function(){this.session=ll()};g=Bs.prototype;g.getAppBaseHref=function(){return this.session.appBaseHref};g.userRequiresCaptcha=function(){return this.session.userRequiresCaptcha};g.getFrontendAccessMode=function(){return xva(this.session)};g.isExternalSession=function(){return this.getFrontendAccessMode()!=="INTERNAL"};g.isInternalSession=function(){return this.getFrontendAccessMode()==="INTERNAL"};
var MA=function(a){return a.getFrontendAccessMode()==="PARTNER"},NA=function(a){return a.getFrontendAccessMode()==="PUBLIC"};Bs.prototype.isNonPublicSession=function(){return this.getFrontendAccessMode()!=="PUBLIC"};var Apc=function(a){var b=a.getUserEmail().split("@")[1];return b?a.session.config.trustedEmailDomainsAllowlist.includes("@"+b):!1},OA=function(a,b){return!!a.session.config.enabledFlags.get(b)};Bs.prototype.isAnonymous=function(){return this.session.user.anonymous};
Bs.prototype.getUserEmail=function(){return this.session.user.email||""};Bs.prototype.getSessionIdentifier=function(){return this.session.user.sessionIdentifier||"0"};Bs.prototype.getTracker=function(){var a;return(a=this.session.tracker)!=null?a:void 0};var Eq=function(a){return!!a.session.tracker};g=Bs.prototype;g.getPassiveLoginIframeUrl=function(){return this.session.passiveLoginIframeUrl};g.getMustAcknowledgeTerms=function(){return this.session.mustAcknowledgeTerms};
g.getShowNewFeaturesDialog=function(){return this.session.showNewFeaturesDialog};g.getEnvironmentType=function(){return this.session.config.environmentType||"QA"};g.getAppBaseUrl=function(a){return(a===void 0?0:a)||!this.isInternalSession()?ml(this.session)?"https://issuetracker.google.com/":"https://issuetracker-qa.corp.google.com/":ml(this.session)?"http://b/":"http://b-qa/"};g.getOnePickUrl=function(){return this.session.config.onePickUrl};g.getAppName=function(){return this.session.config.appName};
g.getCommentNumberLimit=function(){return this.session.config.commentNumberLimit};g.getCreateComponentRedirectDelay=function(){return this.session.config.createComponentRedirectDelay};g.getDocumentationBaseUrl=function(){return this.session.config.documentationBaseUrl};g.getInternalBaseUrl=function(){return this.session.config.internalBaseUrl};g.getExternalBaseUrl=function(){return this.session.config.externalBaseUrl};g.getUserPreferences=function(){return this.session.userPreferences};
g.getXsrfToken=function(){return this.session.xsrfToken};g.getOnePickSecretToken=function(){return this.session.config.onePickSecretToken};g.getCreateRestrictedSubresourcesComponentIds=function(){return this.session.config.createRestrictedSubresourcesComponentIds};g.getIndefiniteRetentionComponentsAllowlist=function(){return this.session.config.indefiniteRetentionComponentsAllowlist};g.getCspNonce=function(){return this.session.cspNonce};g.getAnnouncement=function(){return this.session.preload.announcement};
g.getUserTypeLabel=function(){return this.session.user.userTypeLabel||"UNKNOWN"};g.getBatchDedupeComponentAllowlist=function(){return new Set(this.session.config.batchDedupeComponentAllowlist)};Bs.\u0275fac=function(a){return new (a||Bs)};Bs.\u0275prov=Cd({token:Bs,factory:Bs.\u0275fac,providedIn:"root"});var SEa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(SEa,n);g=SEa.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getIssueAccessLimit=function(){return W(this,Tl,2)};g.setIssueAccessLimit=function(a){X(this,Tl,2,a)};g.setAddedCollaboratorsList=function(a){Bm(this,3,a)};
g.setRemovedCollaboratorsList=function(a){Bm(this,4,a)};var Ql=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ql,n);g=Ql.prototype;g.getUser=function(){return im(this,Gj,1,Nl)};g.setUser=function(a){return nm(this,1,Nl,a)};g.hasUser=function(){return vm(this,Gj,1,Nl)};g.getGroup=function(){return im(this,Gj,2,Nl)};g.setGroup=function(a){nm(this,2,Nl,a)};var Nl=[1,2,3];var Bpc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Bpc,n);g=Bpc.prototype;g.getAppendersList=function(){return Sj(this,Ql,6,Bj())};g.setAppendersList=function(a){return Bm(this,6,a)};g.getReadersList=function(){return Sj(this,Ql,8,Bj())};g.setReadersList=function(a){return Bm(this,8,a)};g.setImplicitAccess=function(a){return Jj(this,10,a)};var Cpc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Cpc,n);g=Cpc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getIssueAccessLimit=function(){return W(this,Tl,2)};g.setIssueAccessLimit=function(a){X(this,Tl,2,a)};g.setAddedCollaboratorsList=function(a){Bm(this,3,a)};
g.setRemovedCollaboratorsList=function(a){Bm(this,4,a)};var Wl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Wl,n);Wl.prototype.getResourcePath=function(){return Rc(this,2)};Wl.prototype.setResourcePath=function(a){return Hj(this,2,a)};Wl.prototype.getRestrictionSeverity=function(){return pk(this,3)};var sFa=function(a){return Jj(a,5,2)};var $l=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($l,n);var rm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(rm,n);rm.prototype.getLabel=function(){return Rc(this,1)};rm.prototype.setLabel=function(a){return Hj(this,1,a)};rm.prototype.getValue=function(){return hm(this,2)};rm.prototype.setValue=function(a){return Im(this,2,a)};var oya=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(oya,n);var nya=function(a,b){return Bm(a,1,b)};oya.prototype.setOptions=function(a){Au(this,1,rm,a)};var lya=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lya,n);var kya=function(a,b){return Im(a,1,b)};var qm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qm,n);g=qm.prototype;g.getInherit=function(){return kk(this,1)};g.setInherit=function(a){return pm(this,1,a)};g.getId=function(){return xk(this,2)};g.getId_asLegacyNumberOrString=function(){return Um(this,2)};g.getId_asString=function(){return Bk(this,2)};g.setId=function(a){return Xl(this,2,a)};g.getName=function(){return Rc(this,3)};g.setName=function(a){return Hj(this,3,a)};
var jya=function(a,b){nm(a,4,un,b)},mya=function(a,b){nm(a,5,un,b)};qm.prototype.getCustomFieldId=function(){return xk(this,100)};qm.prototype.getCustomFieldId_asString=function(){return Bk(this,100)};qm.prototype.setCustomFieldId=function(a){return Xl(this,100,a)};var un=[4,5];var Bya=new Set([].concat(p(Object.values({ACCESS_LIMIT:"access_limit",ASSIGNEE:"assignee",BLOCKED_BY_ISSUE_IDS:"blocked_by_issue_ids",BLOCKING_ISSUE_IDS:"blocking_issue_ids",CANONICAL_ISSUE_ID:"canonical_issue_id",CCS:"ccs",COLLABORATORS:"collaborators",CHILD_ISSUE_IDS:"child_issue_ids",CODE_CHANGES:"code_changes",GERRIT_CHANGES:"gerrit_changes",COMPONENT_ID:"component_id",CUSTOM_FIELDS:"custom_fields",DELETION_REASON:"deletion_reason",DUPLICATE_ISSUE_IDS:"duplicate_issue_ids",EFFORT:"effort",ENTITY_STATUS:"entity_status",
FOUND_IN_VERSIONS:"found_in_versions",HOTLIST_IDS:"hotlist_ids",IN_PROD:"in_prod",IS_ARCHIVED:"is_archived",IS_DELETED:"is_deleted",PARENT_ISSUE_IDS:"parent_issue_ids",STAFFING:"staffing",STAFFING_PLANNED_ALLOCATIONS:"staffing.planned_allocations",POSTMORTEMS:"postmortems",PRIORITY:"priority",RETENTION:"retention",REPORTER:"reporter",SEVERITY:"severity",SLO_SNOOZE_UNTIL:"slo_snooze_until",SLO_END_TIME:"slo_end_time",SLO_SNOOZE_TYPE:"slo_snooze_type",STATUS:"status",TARGETED_TO_VERSIONS:"targeted_to_versions",
TITLE:"title",TYPE:"type",VERIFIER:"verifier",VERIFIED_IN_VERSIONS:"verified_in_versions"}))));var Fm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Fm,n);g=Fm.prototype;g.getInherit=function(){return kk(this,1)};g.setInherit=function(a){return pm(this,1,a)};g.getSource=function(){return pk(this,2)};g.setSource=function(a){return Jj(this,2,a)};g.getId=function(){return xk(this,3)};g.getId_asLegacyNumberOrString=function(){return Um(this,3)};g.getId_asString=function(){return Bk(this,3)};g.setId=function(a){return Xl(this,3,a)};
g.getSourceTeamId=function(){return xk(this,5)};g.getSourceTeamId_asString=function(){return Bk(this,5)};g.setSourceTeamId=function(a){Xl(this,5,a)};g.getComment=function(){return Rc(this,4)};g.setComment=function(a){return Hj(this,4,a)};g.getEscalationOwner=function(){return W(this,Gj,7)};g.setEscalationOwner=function(a){X(this,Gj,7,a)};g.setInheritEscalationOwner=function(a){pm(this,8,a)};var Gm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Gm,n);g=Gm.prototype;g.getMetric=function(){return pk(this,1)};g.getMatcher=function(){return Rc(this,2)};g.setMatcher=function(a){return Hj(this,2,a)};g.getDayType=function(){return pk(this,4)};g.setDayType=function(a){return Jj(this,4,a)};g.getObjective=function(){return W(this,dk,3)};g.setObjective=function(a){return X(this,dk,3,a)};g.getBusinessDays=function(){return Ej(this,5)};
g.setBusinessDays=function(a){return Zj(this,5,a)};var gp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gp,n);g=gp.prototype;g.getSloId=function(){return xk(this,1)};g.getSloId_asLegacyNumberOrString=function(){return Um(this,1)};g.setSloId=function(a){return Xl(this,1,a)};g.getParentId=function(){return xk(this,2)};g.setParentId=function(a){return Xl(this,2,a)};g.getName=function(){return Rc(this,3)};g.setName=function(a){return Hj(this,3,a)};g.getDescription=function(){return Rc(this,4)};
g.setDescription=function(a){return Hj(this,4,a)};g.addRules=function(a,b){return Po(this,5,Gm,a,b)};g.removeRules=function(a){return Du(this,5,Gm,a)};g.getIsArchived=function(){return kk(this,7)};g.setIsArchived=function(a){return pm(this,7,a)};var rFa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(rFa,n);rFa.prototype.getTemplateId=function(){return xk(this,2)};rFa.prototype.setTemplateId=function(a){return Xl(this,2,a)};var qFa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qFa,n);g=qFa.prototype;g.getIssue=function(){return W(this,oo,1)};g.setIssue=function(a){return X(this,oo,1,a)};g.setSignificanceOverride=function(a){return Jj(this,4,a)};g.getContentJudgement=function(){return W(this,Wl,5)};g.setContentJudgement=function(a){return X(this,Wl,5,a)};var PA=function(){},QA=function(){};var Dpc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Dpc,n);g=Dpc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.setPageSize=function(a){return Zj(this,2,a)};g.setPageToken=function(a){return Hj(this,3,a)};var RA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,RA.messageId)};Y(RA,n);RA.prototype.getIt=function(){return W(this,Dpc,4,Nc)};RA.prototype.setIt=function(a){return X(this,Dpc,4,a,Nc)};RA.messageId="b.AggregateIssueDescendantsRequest";var Epc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Epc,n);g=Epc.prototype;g.getPriority=function(){return pk(this,1)};g.setPriority=function(a){return Jj(this,1,a)};g.getIssueIdsList=function(){return Rj(this,2,1)};g.getIssueIdsList_asString=function(){return Ck(this,2)};g.setIssueIdsList=function(a){return ep(this,2,a)};g.addIssueIds=function(a){return Qu(this,2,a)};g.setIssueIds=function(a){Su(this,2,a)};var Fpc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Fpc,n);g=Fpc.prototype;g.getStatus=function(){return pk(this,1)};g.setStatus=function(a){return Jj(this,1,a)};g.getIssueIdsList=function(){return Rj(this,2,1)};g.getIssueIdsList_asString=function(){return Ck(this,2)};g.setIssueIdsList=function(a){return ep(this,2,a)};g.addIssueIds=function(a){return Qu(this,2,a)};g.setIssueIds=function(a){Su(this,2,a)};var Gpc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Gpc,n);g=Gpc.prototype;g.getIssueIdsList=function(){return Rj(this,3,1)};g.getIssueIdsList_asString=function(){return Ck(this,3)};g.setIssueIdsList=function(a){return ep(this,3,a)};g.addIssueIds=function(a){return Qu(this,3,a)};g.setIssueIds=function(a){Su(this,3,a)};g.getCollaboratorsList=function(){return Sj(this,Gj,8,Bj())};g.setCollaboratorsList=function(a){Bm(this,8,a)};
g.addAllCollaborators=function(a){bo(this,8,Gj,a)};g.setCollaborators=function(a,b){return Au(this,8,Gj,a,b)};g.getCodeChangesList=function(a){return Aj(this,9,Bj(a))};g.setCodeChangesList=function(a){Ij(this,9,a)};g.addAllCodeChanges=function(a){zc(this,9,Qb,a,Rb)};g.setCodeChanges=function(a,b){return Tu(this,9,a,b)};g.getGerritChangesList=function(){return Sj(this,Tm,13,Bj())};g.setGerritChangesList=function(a){Bm(this,13,a)};g.addAllGerritChanges=function(a){bo(this,13,Tm,a)};
g.getBlockedByIssueIdsList=function(){return Rj(this,10,1)};g.getBlockedByIssueIdsList_asLegacyNumberOrString=function(){return bp(this,10,Bj())};g.setBlockedByIssueIdsList=function(a){ep(this,10,a)};g.addAllBlockedByIssueIds=function(a){Ru(this,10,a)};g.getBlockingIssueIdsList=function(){return Rj(this,11,1)};g.getBlockingIssueIdsList_asLegacyNumberOrString=function(){return bp(this,11,Bj())};g.setBlockingIssueIdsList=function(a){ep(this,11,a)};g.addAllBlockingIssueIds=function(a){Ru(this,11,a)};var Hpc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Hpc,n);Hpc.prototype.getNextPageToken=function(){return Rc(this,4)};var SA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,SA.messageId)};Y(SA,n);SA.prototype.getIt=function(){return W(this,Hpc,3,Nc)};SA.prototype.setIt=function(a){return X(this,Hpc,3,a,Nc)};SA.messageId="b.AggregateIssueDescendantsResponse";var TA=function(){this.executor=r(PA)};
TA.prototype.get=function(a){var b=(new RA).setIt((new Dpc).setIssueId(a));return this.executor.post({url:"action/issues/aggregateIssueDescendants",body:b,responseConstructor:SA}).pipe(C(function(c){var d=c.getIt();d=Ej(d,2);var e=c.getIt();e=Ej(e,3);c=c.getIt();var f=W(c,Gpc,1);if(f){var h,k,q,v,A,E,H,L,O,S;c={_rootId:a,issueIds:f.getIssueIdsList().map(Uc).map(Nj).filter(Qj),aggregatedStatus:(A=Sj(f,Fpc,4,Bj()).map(yza).filter(Qj))!=null?A:[],aggregatedPriority:(E=Sj(f,Epc,12,Bj()).map(zza).filter(Qj))!=
null?E:[],reporters:(H=(h=Sj(f,Gj,5,Bj()))==null?void 0:h.map(Lj))!=null?H:[],assignees:(L=(k=Sj(f,Gj,6,Bj()))==null?void 0:k.map(Lj))!=null?L:[],verifiers:(O=(q=Sj(f,Gj,7,Bj()))==null?void 0:q.map(Lj))!=null?O:[],collaborators:(S=(v=f.getCollaboratorsList())==null?void 0:v.map(Lj))!=null?S:[],changelists:f.getCodeChangesList(Cj),gerritChanges:f.getGerritChangesList().map(dza),blockedByIssueIds:f.getBlockedByIssueIdsList().map(Uc).map(Nj).filter(Qj),blockingIssueIds:f.getBlockingIssueIdsList().map(Uc).map(Nj).filter(Qj),
descendantCount:d,openDescendantCount:e}}else c=void 0;return c}))};TA.\u0275fac=function(a){return new (a||TA)};TA.\u0275prov=Cd({token:TA,factory:TA.\u0275fac,providedIn:"root"});var Ipc=function(a){this.isEqual=a===void 0?function(){return!1}:a;this.values$=new sg(1);this.distinctValues$=new sg(1);this.lastValue=void 0;this.empty=!0};Ipc.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 UA=function(a,b){this.data=a;this.cfg=b;this.lastValidated=Date.now()};UA.prototype.isFresh=function(){return Date.now()-this.lastValidated<this.cfg.freshUntil};UA.prototype.isAncient=function(){return Date.now()-this.lastValidated>this.cfg.ancientAfter};UA.prototype.getStatus=function(){return this.isFresh()?"fresh":this.isAncient()?"ancient":"uncertain"};UA.prototype.toString=function(){var a=String(this.data);return Math.ceil((Date.now()-this.lastValidated)/1E3)+"s old -- "+a};
var Jpc=function(a){this.cfg=a;this.cache=new Map},Kpc=function(a,b){a=VA(a,b);return a==null?Infinity:a},VA=function(a,b){var c;return(c=a.get(b,!0))==null?void 0:Date.now()-c.lastValidated};Jpc.prototype.isFresh=function(a){return Kpc(this,a)<this.cfg.freshUntil};var Lpc=function(a,b){return Kpc(a,b)<=a.cfg.ancientAfter};g=Jpc.prototype;g.isAncient=function(){var a=VA(this);return a?a>this.cfg.ancientAfter:!1};g.getStatus=function(a){a=this.get(a,!0);if(a!=null)return a.getStatus()};
g.has=function(a,b){return!!this.get(a,b===void 0?!1:b)};g.get=function(a,b){b=b===void 0?!1:b;var c=this.cache.get(a);if(c!=null)return Date.now()-c.lastValidated>this.cfg.ancientAfter&&!b&&this.cache.delete(a),this.cache.get(a)};g.getData=function(a,b){var c;return(c=this.get(a,b===void 0?!1:b))==null?void 0:c.data};g.set=function(a,b){this.cache.set(a,new UA(b,this.cfg))};g.touch=function(a){var b=this.cache.get(a);b&&this.cache.set(a,new UA(b.data,this.cfg))};
g.validate=function(a,b,c,d){d=d===void 0?!1:d;if(!this.has(a,d))return!1;a=this.getData(a,d);return c(a,b)};g.debug=function(){return Object.assign({},this.cfg,{count:this.cache.size,keys:this.cache.keys()})};g.toString=function(){return Array.from(this.cache,function(a){a=l(a);var b=a.next().value;a=a.next().value;b=String(b).slice(-16);var c=a.toString();return a.getStatus()+"  "+b+": "+c}).join("\n")};var Mpc={trustMemory:!0},Npc=function(){},esa=["startIndex","totalSize","curPageToken","nextPageToken","prevPageToken"],Opc=function(a){this.ids=[];Object.assign(this,a)};Y(Opc,Npc);Opc.prototype.toString=function(){return JSON.stringify(Object.assign({},this,{ids:"["+this.ids.join(",")+"]"}))};
var Ppc={freshUntil:1E4,ancientAfter:792E5},WA=function(a){var b=this;a=a===void 0?{}:a;this.error$=new tg;this.watchOneError=function(c){typeof c==="number"&&(c=String(c));return b.error$.pipe(eg(function(d){return d.idOrKey===c}))};this.memoryWasSet$=new tg;this.collectiveMemoryWasSet$=new tg;this.valsById=new Map;this.collectionsById=new Map;this.setsByLabel=new Map;this.inFlightGets$=new Kn(Object.freeze({}));this.inFlightSaves$=new Kn(Object.freeze({}));this.getting$=this.inFlightGets$.pipe(C(Bza));
this.saving$=this.inFlightSaves$.pipe(C(Bza));this.thinking$=Uf(this.getting$,this.saving$).pipe(C(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c||d}),og());this.gotOne=function(c){return function(d,e){e=e===void 0?{}:e;e=e.doNotTrack?Aza:Qpc({label:c,value:VA(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));Rpc(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});Spc(b,c).next(d)}};this.gotAll=function(c){return function(d){for(var e=Qpc({label:c,value:VA(b.collectiveMemory,c)},b.recordType),f=l(d.results),h=f.next();!h.done;h=f.next())h=h.value,b.gotOne(b.idForRecord(h))(h,{doNotTrack:!0});f=b.normalize(d);b.collectiveMemory.validate(c,f,dsa);b.collectiveMemory.set(c,f);b.collectiveMemoryWasSet$.next();e("all-isChanged");(e=b.collectionsById.get(c))?(d=Tpc(b,f,d.results),
e.next(d)):xta(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&&Xj("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.isThinking=function(c){return b.isSaving(c)||b.isGetting(c)};this.isSaving=
function(c){return c==null?Bza(b.inFlightSaves()):!!b.inFlightSaves()[c]};this.isSaving$=function(c){return b.inFlightSaves$.pipe(C(function(d){return!!d[c]}),og())};this.isGetting=function(c){return c==null?Bza(b.inFlightGets()):!!b.inFlightGets()[c]};this.save=function(c){var d=b.idForRecord(c);if(d==null)throw Error("Db");c=b.doSave(c).pipe(ng(0,kp),ula(),rka());b.setIsSaving(d);b.subscriptions.add(c.subscribe(b.gotOne(d),b.gotErr(d,b.inFlightSaves$),Upc(d,b.inFlightSaves$)));return c};this.setIsSaving=
function(c){var d={};Cza(b.inFlightSaves$,(d[c]=!0,d))};this.clearIsSaving=function(c){Dza(b.inFlightSaves$,c)};this.setIsGetting=function(c){var d={};Cza(b.inFlightGets$,(d[c]=!0,d))};this.clearIsGetting=function(c){Dza(b.inFlightGets$,c)};this.peekAllRecords=function(){return Array.from(b.memory.cache.entries()).map(function(c){c=l(c);c.next();return c.next().value.data}).filter(Qj)};this.poke.bind(this);this.subscriptions=new yf;this.memory=new Jpc(Object.assign({},Ppc,a));this.collectiveMemory=
new Jpc(Object.assign({},Ppc,a))};g=WA.prototype;g.fetchOne=function(){throw Error("Eb");};g.fetchAll=function(){throw Error("Fb");};g.fetchSet=function(){throw Error("Gb");};g.doSave=function(){throw Error("Hb");};g.copy=function(){throw Error("Ib");};g.isEqual=function(a,b){return dsa(a,b,100)};g.inFlightGets=function(){return this.inFlightGets$.getValue()};g.inFlightSaves=function(){return this.inFlightSaves$.getValue()};
var Vpc=function(a,b,c){c=c===void 0?{}:c;var d=c.trustMemory;var e=c.trustUncertainMemory;c=Qpc({label:b,value:VA(a.memory,b)},a.recordType);d=d&&a.memory.isFresh(b);e=e&&Lpc(a.memory,b);if(d||e)return c("one-trustMemory"),c=a.memory.getData(b),Jza(c);if(a.inFlightGets()[b])return c("one-inFlight"),c=Rpc(a,b),Iza(c.values$).then(Jza);c("one-fetch");try{var f=a.fetchOne(b).pipe(mg(1),ng(0,kp))}catch(h){f=Of(function(){return h})}a.setIsGetting(b);return new Promise(function(h,k){a.subscriptions.add(f.subscribe(function(q){a.gotOne(b)(q);
h(q)},function(q){a.gotErr(b,a.inFlightGets$)(q);k(q)},Upc(b,a.inFlightGets$)))})},Ypc=function(a,b,c){c=(c===void 0?{}:c).trustMemory;var d="["+[].concat(p(b)).sort().join("-")+"]",e=Qpc({label:d},a.recordType);if(c&&Wpc(a,b))Xpc(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=Rpc(a,k);return Iza(k.values$)})).then(function(k){return k.filter(Qj)}).then(a.gotSet(b));else{e("set-fetch");
try{var f=a.fetchSet(b).pipe(mg(1),ng(0,kp))}catch(k){f=Of(function(){return k})}c={};c=(c[d]=!0,c);e=l(b);for(var h=e.next();!h.done;h=e.next())c[h.value]=!0;Cza(a.inFlightGets$,c);a.subscriptions.add(f.subscribe(a.gotSet(b),function(k){Eza(a.inFlightGets$,b);a.gotErr(d,a.inFlightGets$)(k)},function(){Eza(a.inFlightGets$,[d].concat(p(b)))}))}},Wpc=function(a,b){return b.every(function(c){return a.memory.isFresh(c)})},Xpc=function(a,b){var c=Zpc(a,b).filter(Qj);Spc(a,b).next(c)};
WA.prototype.getAll=function(a,b){b=(b===void 0?{}:b).trustMemory;var c=Fza(a),d=Qpc({label:c,value:VA(this.collectiveMemory,c)},this.recordType);if(b&&this.collectiveMemory.isFresh(c)){d("all-trustMemory");a=this.collectiveMemory.getData(c);var e=$pc(this,a);e.results.length!==a.ids.length&&Xj("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=aqc(this,a),Iza(a.values$);d("all-fetch");try{e=this.fetchAll(a).pipe(mg(1),ng(0,kp))}catch(f){e=Of(function(){return f})}this.setIsGetting(c);this.subscriptions.add(e.subscribe(this.gotAll(c),this.gotErr(c,this.inFlightGets$),Upc(c,this.inFlightGets$)));a=aqc(this,a);return Iza(a.values$)};WA.prototype.gotErr=function(a,b){var c=this;return function(d){d=Object.assign({},{idOrKey:a},d);yta(a+" gotErr()",d);Dza(b,a);JSON.stringify(d,null,2);c.error$.next(d)}};
var Upc=function(a,b){return function(){Dza(b,a)}};WA.prototype.normalize=function(a){var b=a.results.map(this.idForRecord);return new Opc(Object.assign({},Hza(a),{ids:b}))};
var Tpc=function(a,b,c){a=b.ids.map(a.dereferenceOne(c)).filter(Boolean);return Object.assign({},Hza(b),{results:a})},$pc=function(a,b){var c=Zpc(a,b.ids).filter(Qj);return Tpc(a,b,c)},Zpc=function(a,b){return b.map(function(c){return a.memory.getData(c)})},aqc=function(a,b){b=Fza(b);return Gza(a.collectionsById,b,new Ipc)},Spc=function(a,b){b="["+[].concat(p(b)).sort().join("-")+"]";return Gza(a.setsByLabel,b,new Ipc)},Rpc=function(a,b){var c=new Ipc(a.isEqual),d=a.memory.getData(b);d!=null&&c.next(d);
return Gza(a.valsById,b,c)};g=WA.prototype;g.watch=function(a,b){b=b===void 0?Mpc:b;if(a==null)throw Error("Jb`"+a+"`"+this.recordType);typeof b==="number"&&(b=Mpc);typeof a==="number"&&(a=String(a));var c=Rpc(this,a);Vpc(this,a,b).catch(function(){});return xv(c.distinctValues$)};g.watchSet=function(a,b){b=b===void 0?Mpc:b;typeof b==="number"&&(b=Mpc);if(a.length===0)return Nf([]);a=a.map(function(d){return typeof d==="number"?String(d):d});var c=Spc(this,a);Ypc(this,a,b);return xv(c.values$)};
g.watchMany=function(a,b){b=b===void 0?Mpc:b;a=Object.assign({},this.defaultQuery,a);var c=aqc(this,a);this.getAll(a,b);return xv(c.values$)};g.peek=function(a){if(a!=null)return this.memory.getData(String(a),!0)};g.poke=function(a,b){return a==null?Promise.reject(Error("Jb`"+a+"`"+this.recordType)):Vpc(this,String(a),b)};
var bqc=function(a,b){return b==null?Promise.resolve({results:[]}):a.getAll(Object.assign({},a.defaultQuery,b),void 0)},cqc=function(a,b){return["string","number"].includes(typeof b)?a.memory.getStatus(String(b)):a.collectiveMemory.getStatus(Fza(b))};WA.prototype.announce=function(a,b){b=b===void 0?{}:b;if(a!=null){var c=this.idForRecord(a);if(c==null)throw Error("Kb");this.gotOne(c)(a,Object.assign({},{doNotTrack:!0},b))}};
WA.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(Fza(a))};WA.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)};WA.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()};
var Qpc=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;dqc&&Vj("Fridge<"+b+">::trackEvent('"+e+"')",f)}},XA=function(){WA.apply(this,arguments);this.defaultQuery={}};Y(XA,WA);var dqc=!1;var YA=function(){XA.call(this);this.api=r(TA);this.recordType="AggregatedIssueMetadata";this.isEqual=gj;this.idForRecord=function(a){return a._rootId}};Y(YA,XA);YA.prototype.fetchOne=function(a){return this.api.get(a)};YA.\u0275fac=function(a){return new (a||YA)};YA.\u0275prov=Cd({token:YA,factory:YA.\u0275fac,providedIn:"root"});var qq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,qq.messageId)};Y(qq,n);qq.prototype.getIt=function(){return W(this,Wl,6,Nc)};qq.prototype.setIt=function(a){return X(this,Wl,6,a,Nc)};qq.messageId="b.ContentJudgement";var Oza=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Oza,n);Oza.prototype.getContent=function(){return Rc(this,1)};Oza.prototype.setContent=function(a){return Hj(this,1,a)};Oza.prototype.getFormattedContent=function(){return W(this,Am,2)};var Qza=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Qza,n);g=Qza.prototype;g.getIssueIdsList=function(){return Rj(this,1,1)};g.getIssueIdsList_asString=function(){return Ck(this,1)};g.setIssueIdsList=function(a){return ep(this,1,a)};g.addIssueIds=function(a){return Qu(this,1,a)};g.setIssueIds=function(a){Su(this,1,a)};var ZA=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ZA,n);ZA.prototype.getContent=function(){return Rc(this,1)};ZA.prototype.setContent=function(a){return Hj(this,1,a)};ZA.prototype.getFormattedContent=function(){return W(this,Am,2)};var eqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(eqc,n);g=eqc.prototype;g.getContentCase=function(){return Ml(this,Pza)};g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getCategory=function(){return Rc(this,2)};g.setCategory=function(a){return Hj(this,2,a)};
g.getSummary=function(){return im(this,ZA,5,Pza)};g.hasSummary=function(){return vm(this,ZA,5,Pza)};g.getAuthor=function(){return W(this,Gj,6)};g.setAuthor=function(a){X(this,Gj,6,a)};g.hasAuthor=function(){return tk(this,Gj,6)};g.getTimestamp=function(){return W(this,bk,7)};g.setTimestamp=function(a){return X(this,bk,7,a)};g.hasTimestamp=function(){return tk(this,bk,7)};var Pza=[3,4,5];var Tza=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Tza,n);g=Tza.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getCategory=function(){return Rc(this,2)};g.setCategory=function(a){return Hj(this,2,a)};g.getAttachmentId=function(){return xk(this,3)};
g.getAttachmentId_asString=function(){return Bk(this,3)};g.setAttachmentId=function(a){return Xl(this,3,a)};g.setFeedbackType=function(a){return Jj(this,4,a)};var fqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(fqc,n);g=fqc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getAttachmentId=function(){return xk(this,2)};g.getAttachmentId_asString=function(){return Bk(this,2)};g.setAttachmentId=function(a){return Xl(this,2,a)};
g.getCategory=function(){return Rc(this,3)};g.setCategory=function(a){return Hj(this,3,a)};var gqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gqc,n);g=gqc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getCategory=function(){return Rc(this,3)};g.setCategory=function(a){return Hj(this,3,a)};var hqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hqc,n);g=hqc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getAttachmentId=function(){return xk(this,2)};g.getAttachmentId_asString=function(){return Bk(this,2)};g.setAttachmentId=function(a){return Xl(this,2,a)};
g.getCategory=function(){return Rc(this,3)};g.setCategory=function(a){return Hj(this,3,a)};var iqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(iqc,n);iqc.prototype.getQuery=function(){return Rc(this,1)};iqc.prototype.setQuery=function(a){return Hj(this,1,a)};iqc.prototype.clearQuery=function(){Bu(this,1)};var jqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(jqc,n);jqc.prototype.getQuery=function(){return Rc(this,1)};jqc.prototype.setQuery=function(a){return Hj(this,1,a)};jqc.prototype.clearQuery=function(){Bu(this,1)};var kqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(kqc,n);kqc.prototype.getName=function(){return Rc(this,1)};kqc.prototype.setName=function(a){return Hj(this,1,a)};var lqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lqc,n);lqc.prototype.setFeedback=function(a){return X(this,Tza,1,a)};var $A=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,$A.messageId)};Y($A,n);$A.messageId="f.mt";var mqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(mqc,n);g=mqc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getAttachmentId=function(){return xk(this,2)};g.getAttachmentId_asString=function(){return Bk(this,2)};g.setAttachmentId=function(a){return Xl(this,2,a)};
g.getCategory=function(){return Rc(this,3)};g.setCategory=function(a){return Hj(this,3,a)};g.getContent=function(){return Rc(this,4)};g.setContent=function(a){return Hj(this,4,a)};g.getFormattedContent=function(){return W(this,Am,5)};g.getAuthor=function(){return W(this,Gj,6)};g.setAuthor=function(a){X(this,Gj,6,a)};g.hasAuthor=function(){return tk(this,Gj,6)};g.getTimestamp=function(){return W(this,bk,7)};g.setTimestamp=function(a){return X(this,bk,7,a)};
g.hasTimestamp=function(){return tk(this,bk,7)};g.getContentVerdict=function(){return W(this,Oo,8)};g.setContentVerdict=function(a){X(this,Oo,8,a)};var nqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,nqc.messageId)};Y(nqc,n);nqc.messageId="b.GetAttachmentEnrichmentResponse";var oqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(oqc,n);g=oqc.prototype;g.getName=function(){return Rc(this,1)};g.setName=function(a){return Qk(this,1,a)};g.hasName=function(){return mk(this,1)};g.getNameOrUndefined=function(){return Hu(this,1)};g.getDisplayName=function(){return Rc(this,2)};g.setDisplayName=function(a){return Qk(this,2,a)};g.getDescription=function(){return Rc(this,3)};g.setDescription=function(a){return Qk(this,3,a)};
g.hasDescription=function(){return mk(this,3)};var aB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,aB.messageId)};Y(aB,n);aB.prototype.getCategory=function(){return W(this,oqc,1,Nc)};aB.prototype.setCategory=function(a){return X(this,oqc,1,a,Nc)};aB.messageId="b.GetEnrichmentCategoryResponse";var pqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(pqc,n);var bB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,bB.messageId)};Y(bB,n);bB.prototype.getResponse=function(){return W(this,pqc,1,Nc)};bB.prototype.setResponse=function(a){return X(this,pqc,1,a,Nc)};bB.messageId="b.ListAttachmentEnrichmentsResponse";var qqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qqc,n);var cB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,cB.messageId)};Y(cB,n);cB.prototype.getResponse=function(){return W(this,qqc,1,Nc)};cB.prototype.setResponse=function(a){return X(this,qqc,1,a,Nc)};cB.messageId="b.ListIssueEnrichmentsResponse";var dB=function(){this.executor=r(PA)};dB.prototype.getEnrichmentCategory=function(a){var b=(new kqc).setName(a);return this.executor.post({url:"action/enrichment_category/"+a+"/get",body:b,responseConstructor:aB}).pipe(C(function(c){return c.getCategory()}),C(Nza))};
var rqc=function(a,b){var c="issueid:"+b;c=(new jqc).setQuery(c);return a.executor.post({url:"action/issues/"+b+"/listIssueEnrichments",body:c,responseConstructor:cB}).pipe(C(function(d){d=d.getResponse();return Sj(d,eqc,1,Bj()).map(Rza)}))},sqc=function(a,b,c){var d=(new gqc).setIssueId(b).setCategory(c);return a.executor.post({url:"action/issues/"+b+"/enrichments/"+c+"/delete",body:d,responseConstructor:$A}).pipe(C(function(){}))},tqc=function(a,b,c,d,e){var f={};e&&(f["X-Restricted-Content-Limit"]=
String(Kza(e)));e=(new hqc).setIssueId(b).setAttachmentId(c).setCategory(d);return a.executor.post({url:"action/issues/"+b+"/attachments/"+c+"/categories/"+d,options:{headers:f},body:e,responseConstructor:nqc}).pipe(C(function(h){return Sza(W(h,mqc,1,Nc))}))},uqc=function(a,b){var c="issueid:"+b;c=(new iqc).setQuery(c);return a.executor.post({url:"action/issues/"+b+"/listAttachmentEnrichments",body:c,responseConstructor:bB}).pipe(C(function(d){d=d.getResponse();return Sj(d,mqc,1,Bj()).map(Sza)}))},
vqc=function(a,b,c,d){var e=(new fqc).setIssueId(b).setAttachmentId(c).setCategory(d);return a.executor.post({url:"action/issues/"+b+"/attachments/"+c+"/enrichments/"+d+"/delete",body:e,responseConstructor:$A}).pipe(C(function(){}))};dB.prototype.submitEnrichmentFeedback=function(a){var b=(new lqc).setFeedback(Vza(a));return this.executor.post({url:"action/issues/"+a.issueId+"/submitEnrichmentFeedback",body:b,responseConstructor:$A}).pipe(C(function(){}))};
dB.\u0275fac=function(a){return new (a||dB)};dB.\u0275prov=Cd({token:dB,factory:dB.\u0275fac,providedIn:"root"});var eB=function(){XA.call(this);this.api=r(dB);this.recordType="AttachmentEnrichmentsForIssue";this.idForRecord=function(a){return a.issueId};this.isEqual=gj};Y(eB,XA);eB.prototype.fetchOne=function(a){return uqc(this.api,a).pipe(C(function(b){return{issueId:a,enrichments:b}}))};eB.\u0275fac=function(a){return new (a||eB)};eB.\u0275prov=Cd({token:eB,factory:eB.\u0275fac,providedIn:"root"});var fB={},Wza=(fB[1]="issue_id",fB[3]="type",fB[4]="status",fB[5]="priority",fB[6]="severity",fB[18]="title",fB[15]="modified_time",fB[14]="created_time",fB[17]="verified_time",fB[16]="resolved_time",fB[38]="deletion_time",fB[13]="blocked_by_issue_ids",fB[12]="blocking_issue_ids",fB[26]="vote_count",fB[28]="cc_count",fB[44]="collaborators_count",fB[2]="component_path",fB[27]="duplicate_count",fB[10]="ccs",fB[43]="collaborators",fB[11]="code_changes",fB[32]="postmortems",fB[8]="assignee",fB[9]="verifier",
fB[7]="reporter",fB[19]="found_in_versions",fB[20]="targeted_to_versions",fB[21]="verified_in_versions",fB[22]="in_prod",fB[30]="last_modifier",fB[25]="position",fB[24]="custom_field",fB[29]="modified_by",fB[31]="archived",fB[23]="canonical_issue_id",fB[33]="min_slo",fB[35]="assignment_slo",fB[36]="response_slo",fB[37]="closure_slo",fB[39]="team",fB[40]="estimate",fB[41]="estimate_total_open",fB[42]="estimate_total_complete",fB[45]="access_level",fB[46]="descendant_count",fB[47]="open_descendant_count",
fB[48]="one_day_view_count",fB[49]="seven_day_view_count",fB[50]="thirty_day_view_count",fB[51]="escalation_owner",fB[52]="relative_modified_time",fB[53]="alerts",fB[54]="timeframe",fB[55]="progress",fB[56]="triager",fB[57]="enrichment_categories",fB),gB={},Yza=(gB.issue_id=1,gB.type=3,gB.status=4,gB.priority=5,gB.severity=6,gB.title=18,gB.modified_time=15,gB.created_time=14,gB.verified_time=17,gB.resolved_time=16,gB.deletion_time=38,gB.blocked_by_issue_ids=13,gB.blocking_issue_ids=12,gB.vote_count=
26,gB.cc_count=28,gB.collaborators_count=44,gB.component_path=2,gB.duplicate_count=27,gB.ccs=10,gB.collaborators=43,gB.code_changes=11,gB.postmortems=32,gB.assignee=8,gB.verifier=9,gB.reporter=7,gB.found_in_versions=19,gB.targeted_to_versions=20,gB.verified_in_versions=21,gB.in_prod=22,gB.last_modifier=30,gB.position=25,gB.custom_field=24,gB.modified_by=29,gB.archived=31,gB.canonical_issue_id=23,gB.min_slo=33,gB.assignment_slo=35,gB.response_slo=36,gB.closure_slo=37,gB.team=39,gB.estimate=40,gB.estimate_total_open=
41,gB.estimate_total_complete=42,gB.access_level=45,gB.descendant_count=46,gB.open_descendant_count=47,gB.one_day_view_count=48,gB.seven_day_view_count=49,gB.thirty_day_view_count=50,gB.escalation_owner=51,gB.relative_modified_time=52,gB.alerts=53,gB.timeframe=54,gB.progress=55,gB.triager=56,gB.enrichment_categories=57,gB);var $m=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($m,n);$m.prototype.getDisplayColumns=function(){return Ku(this,1)};$m.prototype.setDisplayColumns=function(a){Tu(this,1,a)};var Zm=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Zm,n);g=Zm.prototype;g.getHotlistId=function(){return xk(this,1)};g.setHotlistId=function(a){return Xl(this,1,a)};g.getName=function(){return Rc(this,2)};g.setName=function(a){return Hj(this,2,a)};g.getDescription=function(){return Rc(this,3)};g.setDescription=function(a){return Hj(this,3,a)};g.getArchived=function(){return kk(this,4)};g.setArchived=function(a){return pm(this,4,a)};
g.getDefaultOrderBy=function(){return Rc(this,5)};g.setDefaultOrderBy=function(a){return Hj(this,5,a)};g.getDisplayPreferences=function(){return W(this,$m,6)};g.setDisplayPreferences=function(a){return X(this,$m,6,a)};g.getCreatedTime=function(){return W(this,bk,7)};g.setCreatedTime=function(a){return X(this,bk,7,a)};g.getModifiedTime=function(){return W(this,bk,8)};g.setModifiedTime=function(a){return X(this,bk,8,a)};g.getOwnersList=function(){return Sj(this,Gj,9,Bj())};
g.setOwnersList=function(a){return Bm(this,9,a)};g.getEtag=function(){return oq(this,10)};g.setEtag=function(a){return bm(this,10,a)};var bn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bn,n);g=bn.prototype;g.getSavedSearchId=function(){return xk(this,1)};g.setSavedSearchId=function(a){return Xl(this,1,a)};g.getName=function(){return Rc(this,2)};g.setName=function(a){return Hj(this,2,a)};g.getDescription=function(){return Rc(this,3)};g.setDescription=function(a){return Hj(this,3,a)};g.getQuery=function(){return Rc(this,4)};g.setQuery=function(a){return Hj(this,4,a)};
g.clearQuery=function(){Bu(this,4)};g.getDefaultOrderBy=function(){return Rc(this,5)};g.setDefaultOrderBy=function(a){return Hj(this,5,a)};g.getDisplayPreferences=function(){return W(this,$m,6)};g.setDisplayPreferences=function(a){return X(this,$m,6,a)};g.getOwnersList=function(){return Sj(this,Gj,7,Bj())};g.setOwnersList=function(a){return Bm(this,7,a)};var dn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dn,n);g=dn.prototype;g.getHotlistId=function(){return xk(this,1)};g.setHotlistId=function(a){return Xl(this,1,a)};g.getHotlist=function(){return W(this,Zm,2)};g.setHotlist=function(a){return X(this,Zm,2,a)};g.hasHotlist=function(){return tk(this,Zm,2)};var fn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(fn,n);g=fn.prototype;g.getSavedSearchId=function(){return xk(this,1)};g.setSavedSearchId=function(a){return Xl(this,1,a)};g.getSavedSearch=function(){return W(this,bn,2)};g.setSavedSearch=function(a){return X(this,bn,2,a)};g.hasSavedSearch=function(){return tk(this,bn,2)};var gn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gn,n);gn.prototype.getBookmarkGroupId=function(){return xk(this,1)};gn.prototype.setBookmarkGroupId=function(a){return Xl(this,1,a)};gn.prototype.getBookmarkGroup=function(){return W(this,hn,2)};gn.prototype.setBookmarkGroup=function(a){return X(this,hn,2,a)};var en=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(en,n);g=en.prototype;g.getHotlist=function(){return im(this,dn,1,cn)};
g.setHotlist=function(a){return nm(this,1,cn,a)};g.hasHotlist=function(){return vm(this,dn,1,cn)};g.getSavedSearch=function(){return im(this,fn,2,cn)};g.setSavedSearch=function(a){return nm(this,2,cn,a)};g.hasSavedSearch=function(){return vm(this,fn,2,cn)};g.getBookmarkGroup=function(){return im(this,gn,3,cn)};g.setBookmarkGroup=function(a){return nm(this,3,cn,a)};var hn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hn,n);g=hn.prototype;
g.getBookmarkGroupId=function(){return xk(this,1)};g.setBookmarkGroupId=function(a){return Xl(this,1,a)};g.getName=function(){return Rc(this,2)};g.setName=function(a){return Hj(this,2,a)};g.getDescription=function(){return Rc(this,3)};g.setDescription=function(a){return Hj(this,3,a)};g.getArchived=function(){return kk(this,4)};g.setArchived=function(a){return pm(this,4,a)};g.addItems=function(a,b){return Po(this,5,en,a,b)};g.setItems=function(a){Au(this,5,en,a)};
g.removeItems=function(a){return Du(this,5,en,a)};g.getOwnersList=function(){return Sj(this,Gj,6,Bj())};g.setOwnersList=function(a){return Bm(this,6,a)};var cn=[1,2,3];var hB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,hB.messageId)};Y(hB,n);hB.prototype.getIt=function(){return W(this,hn,10,Nc)};hB.prototype.setIt=function(a){return X(this,hn,10,a,Nc)};hB.messageId="b.BookmarkGroup";var wqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,wqc.messageId)};Y(wqc,n);wqc.messageId="b.BookmarkGroupListResponse";var iB=function(){this.executor=r(QA)};iB.prototype.get=function(a){return this.executor.get({url:"action/bookmark_groups/"+a,responseConstructor:hB}).then(rAa)};iB.prototype.query=function(a){return this.executor.get({url:"action/bookmark_groups",options:{params:{q:a}},responseConstructor:wqc}).then(sAa)};iB.prototype.create=function(a){a=(new hB).setIt((new hn).setName(a.name).setDescription(a.description));return this.executor.post({url:"action/bookmark_groups",body:a,responseConstructor:hB}).then(rAa)};
iB.prototype.update=function(a){var b=(new hB).setIt(nAa(a));return this.executor.post({url:"action/bookmark_groups/"+a.bookmarkGroupId,body:b,responseConstructor:hB}).then(rAa)};iB.\u0275fac=function(a){return new (a||iB)};iB.\u0275prov=Cd({token:iB,factory:iB.\u0275fac,providedIn:"root"});var jB=function(){XA.call(this,{freshUntil:3E5});this.bookmarkGroupApi=r(iB);this.recordType="bookmarkGroup";this.idForRecord=function(a){return String(a.bookmarkGroupId)}};Y(jB,XA);jB.prototype.fetchOne=function(a){var b=this;return Yf(function(){return b.bookmarkGroupApi.get(a)})};jB.prototype.fetchSet=function(a){var b=this;return Uf(a.map(function(c){return b.fetchOne(c)}))};jB.\u0275fac=function(a){return new (a||jB)};jB.\u0275prov=Cd({token:jB,factory:jB.\u0275fac,providedIn:"root"});var xqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,xqc.messageId)};Y(xqc,n);g=xqc.prototype;g.getAuthor=function(){return Rc(this,1,void 0,Nc)};g.setAuthor=function(a){Qk(this,1,a,Nc)};g.hasAuthor=function(){return mk(this,1,Nc)};g.getDescription=function(){return Rc(this,2,void 0,Nc)};g.setDescription=function(a){return Qk(this,2,a,Nc)};g.hasDescription=function(){return mk(this,2,Nc)};g.getPending=function(){return kk(this,3,void 0,Nc)};
g.getTimestamp=function(){return xk(this,4,void 0,Nc)};g.setTimestamp=function(a){return Ek(this,4,a,void 0,Nc)};g.hasTimestamp=function(){return wk(this,4,Nc)};xqc.messageId="b.ChangelistDetailsResponse";var kB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(kB,n);g=kB.prototype;g.getIssueIdsList=function(){return Rj(this,1,1)};g.getIssueIdsList_asString=function(){return Ck(this,1)};g.setIssueIdsList=function(a){return vc(this,1,a,Hb)};g.addIssueIds=function(a){return yc(this,1,Hb,a,void 0,Ob)};g.setIssueIds=function(a){Bc(this,1,Hb,a,void 0,Ob)};var yqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,yqc.messageId)};Y(yqc,n);g=yqc.prototype;g.getQuery=function(){return W(this,kB,1,Nc)};g.setQuery=function(a){return X(this,kB,1,a,Nc)};g.clearQuery=function(){Bu(this,1,Nc)};g.hasQuery=function(){return tk(this,kB,1,Nc)};g.getNextPageToken=function(){return Rc(this,2,void 0,Nc)};yqc.messageId="b.ListChangelistsRequest";var uAa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(uAa,n);g=uAa.prototype;g.getAuthor=function(){return Rc(this,1)};g.setAuthor=function(a){Qk(this,1,a)};g.hasAuthor=function(){return mk(this,1)};g.getChangelistNumber=function(){return Ej(this,2)};g.getPending=function(){return kk(this,3)};g.getTimestamp=function(){return W(this,bk,4)};g.setTimestamp=function(a){return X(this,bk,4,a)};g.hasTimestamp=function(){return tk(this,bk,4)};
g.getIssueIdsList=function(){return Rj(this,5,1)};g.getIssueIdsList_asString=function(){return Ck(this,5)};g.setIssueIdsList=function(a){return vc(this,5,a,Hb)};g.addIssueIds=function(a){return yc(this,5,Hb,a,void 0,Ob)};g.setIssueIds=function(a){Bc(this,5,Hb,a,void 0,Ob)};var zqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,zqc.messageId)};Y(zqc,n);zqc.prototype.getNextPageToken=function(){return Rc(this,2,void 0,Nc)};zqc.messageId="b.ListChangelistsResponse";var Aqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Aqc.messageId)};Y(Aqc,n);Aqc.messageId="b.PendingChangelistsResponse";var lB=function(){this.executor=r(PA)};lB.prototype.getPendingChangelistsForIssue=function(a){return this.executor.get({url:"action/issues/"+a+"/pending_changelists",responseConstructor:Aqc}).pipe(C(tAa))};lB.prototype.getChangelistDetails=function(a){return this.executor.get({url:"/action/changelists/"+a,responseConstructor:xqc}).pipe(C(xAa))};
var Bqc=function(a,b){var c=new yqc,d=c.setQuery;b=(new kB).setIssueIdsList(b);b=Rk(b,2,2);c=d.call(c,b);return a.executor.post({url:"action/changelists/list",body:c,responseConstructor:zqc}).pipe(C(wAa))};lB.\u0275fac=function(a){return new (a||lB)};lB.\u0275prov=Cd({token:lB,factory:lB.\u0275fac,providedIn:"root"});var mB=function(){this.changelistResources=r(lB)};mB.prototype.getPendingChangelistsForIssue=function(a){return Rf(this.changelistResources.getPendingChangelistsForIssue(a))};
mB.prototype.getChangelistDetails=function(a){return Rf(this.changelistResources.getChangelistDetails(a))};mB.\u0275fac=function(a){return new (a||mB)};mB.\u0275prov=Cd({token:mB,factory:mB.\u0275fac,providedIn:"root"});var nB=function(){WA.call(this);this.api=r(lB);this.defaultQuery={};this.recordType="Changelist";this.idForRecord=function(a){return String(a.changelistNumber)}};Y(nB,WA);nB.prototype.fetchAll=function(a){if(a=a.pendingForIssues)return a.length===0?Nf({results:[]}):Bqc(this.api,a).pipe(C(function(b){var c;return{results:(c=b.changelists)!=null?c:[]}}));throw Error("Rb");};nB.\u0275fac=function(a){return new (a||nB)};nB.\u0275prov=Cd({token:nB,factory:nB.\u0275fac,providedIn:"root"});var oB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,oB.messageId)};Y(oB,n);oB.prototype.getIt=function(){return W(this,Ul,2,Nc)};oB.prototype.setIt=function(a){return X(this,Ul,2,a,Nc)};oB.messageId="b.AccessLimit";var pB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,pB.messageId)};Y(pB,n);pB.prototype.getIt=function(){return W(this,Bpc,13,Nc)};pB.prototype.setIt=function(a){return X(this,Bpc,13,a,Nc)};pB.messageId="b.AccessPolicy";var ln=function(a){return"issues/"+a},Gcb=function(a){var b;return(b=a.match(/issues\/(\d+)/))==null?void 0:b[1]},Hcb=function(a){var b;return(b=a.match(/hotlists\/(\d+)/))==null?void 0:b[1]};var Cqc={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"},Dq={home:{routeDeclarationPath:"home",makeHref:function(){return"/home"}},viewDashboard:{routeDeclarationPath:"dashboard/:groupId",makeHref:function(a){return"/dashboard/"+a}},triageSettings:{routeDeclarationPath:"triage",makeHref:function(){return"/triage"}},viewTriageDashboard:{routeDeclarationPath:"teams/:teamId/triage/:triageId/dashboard",
makeHref:function(a,b){return"/teams/"+a+"/triage/"+b+"/dashboard"}},viewIssueThemes:{routeDeclarationPath:"teams/:teamId/triage/:triageId/issue-themes",makeHref:function(a,b){return"/teams/"+a+"/triage/"+b+"/issue-themes"}},viewTriage:{routeDeclarationPath:"teams/:teamId/triage/:triageId/:phase/:subphase",makeHref:function(a,b,c,d){return"/teams/"+a+"/triage/"+b+"/"+(c===void 0?"new":c)+"/"+(d===void 0?"all":d)}},createSlo:{routeDeclarationPath:"slos/new",makeHref:function(){return"/slos/new"}},
viewSlo:{routeDeclarationPath:"slos/:sloId",makeHref:function(a){return"/slos/"+a}},editSlo:{routeDeclarationPath:"slos/:sloId/edit",makeHref:function(a){return"/slos/"+a+"/edit"}},listSlos:{routeDeclarationPath:"slos",makeHref:function(){return"/slos"}},listHotlists:{routeDeclarationPath:"hotlists",makeHref:function(){return"/hotlists"}},createHotlist:{routeDeclarationPath:"hotlists/new",makeHref:function(){return"/hotlists/new"}},viewHotlist:{routeDeclarationPath:"hotlists/:hotlistId",makeHref:function(a){return"/hotlists/"+
a}},editHotlist:{routeDeclarationPath:"hotlists/:hotlistId/edit",makeHref:function(a){return"/hotlists/"+a+"/edit"}},viewIssue:{routeDeclarationPath:"issues/:issueId",makeHref:function(a){return"/issues/"+a}},listIssues:{routeDeclarationPath:"issues",makeHref:function(a){return a==null?"/issues":"/issues?"+EAa(a)}},listIssuesRecent:{routeDeclarationPath:"recent",makeHref:function(){return"/recent"}},createIssue:{routeDeclarationPath:"issues/new",makeHref:function(a){return a==null?"/issues/new":"/issues/new?"+
EAa(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?"+EAa({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#fieldConfigurations",makeHref:function(a){return"/components/"+
a+"/edit#fieldConfigurations"}},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+"?"+EAa({mimeType:c})}}};var Dqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Dqc.messageId)};Y(Dqc,n);Dqc.messageId="b.CheckPermissionResponse";var qB=function(){this.executor=r(PA)};g=qB.prototype;g.get=function(a,b){a=Xm(mn(a,b));return this.executor.get({url:"action/access_policies/"+a,responseConstructor:pB}).pipe(C(AAa))};
g.update=function(a,b,c){a=Xm(mn(a,b));var d;b=new pB;var e=b.setIt;c=Object.assign({},c,{implicitAccess:(d=c.implicitAccess)!=null?d:null,inheritedAdmins:null,implicitAppenders:null,implicitEditors:null,implicitReaders:null});var f,h,k,q,v,A;d=new Bpc;var E=((f=c.admins)!=null?f:[]).map(Sl);f=Bm(d,2,E).setAppendersList(((h=c.appenders)!=null?h:[]).map(Sl));h=((k=c.editors)!=null?k:[]).map(Sl);k=Bm(f,4,h).setReadersList(((q=c.readers)!=null?q:[]).map(Sl));q=((v=c.restrictedReaders)!=null?v:[]).map(Sl);
v=Bm(k,11,q);q=((A=c.restrictedPlusReaders)!=null?A:[]).map(Sl);A=Bm(v,12,q);if(c.implicitAccess){v=A.setImplicitAccess;a:switch(c.implicitAccess){case "IMPLICIT_ACCESS_UNSPECIFIED":c=0;break a;case "ALLOW":c=1;break a;case "DENY":c=2;break a;default:throw Error("pb");}v.call(A,c)}b=e.call(b,A);return this.executor.post({url:"action/access_policies/"+a,body:b,responseConstructor:pB}).pipe(C(AAa))};
g.checkPermission=function(a,b,c,d){a=Xm(a.join(","));b=Xm(b);c=Xm(mn(c,d));return this.executor.get({url:"action/check_permission/"+a+"/"+b+"/"+c,responseConstructor:Dqc}).pipe(C(zAa))};g.setAccessLimit=function(a,b,c){a=Xm(mn(a,b));c=(new oB).setIt(vxa(c));return this.executor.post({url:"action/access_limits/"+a,body:c,responseConstructor:oB}).pipe(C(yAa))};g.checkComponentImplicitAccessEnabled=function(a){return this.get("COMPONENT",a).pipe(C(function(b){return b.implicitAccess==="ALLOW"}))};
qB.\u0275fac=function(a){return new (a||qB)};qB.\u0275prov=Cd({token:qB,factory:qB.\u0275fac,providedIn:"root"});var rB=function(){this.observableApi=r(qB)};g=rB.prototype;g.get=function(a,b){return Rf(this.observableApi.get(a,b))};g.update=function(a,b,c){return Rf(this.observableApi.update(a,b,c))};g.checkPermission=function(a,b,c,d){return Rf(this.observableApi.checkPermission(a,b,c,d))};g.setAccessLimit=function(a,b,c){return Rf(this.observableApi.setAccessLimit(a,b,c))};
g.checkComponentImplicitAccessEnabled=function(a){return Rf(this.observableApi.checkComponentImplicitAccessEnabled(a))};rB.\u0275fac=function(a){return new (a||rB)};rB.\u0275prov=Cd({token:rB,factory:rB.\u0275fac,providedIn:"root"});var sB=function(){XA.call(this);this.accessPolicyApi=r(qB);this.recordType="componentAccessPolicy";this.isEqual=gj;this.idForRecord=function(a){return a.id}};Y(sB,XA);sB.prototype.fetchOne=function(a){return this.accessPolicyApi.get("COMPONENT",a).pipe(C(function(b){return Object.assign({},{id:a},b)}),hg(function(){return Nf(void 0)}))};sB.prototype.doSave=function(a){var b=a.id;return this.accessPolicyApi.update("COMPONENT",b,a).pipe(C(function(c){return Object.assign({},{id:b},c)}))};
sB.\u0275fac=function(a){return new (a||sB)};sB.\u0275prov=Cd({token:sB,factory:sB.\u0275fac,providedIn:"root"});var tB=function(){};tB.prototype.adapt=function(a){var b,c=new Eqc(a.call.bind(a),a.split.bind(a),(b=a.bufferTimeMs)!=null?b:500,a.maxBatchSize||100);return c.get.bind(c)};tB.\u0275fac=function(a){return new (a||tB)};tB.\u0275prov=Cd({token:tB,factory:tB.\u0275fac,providedIn:"root"});
var Eqc=function(a,b,c,d){var e=this;this.batchCall=a;this.batchSplit=b;this.bufferTimeMs=c;this.maxBatchSize=d;this.inputSubject=new tg;this.inputs$=this.inputSubject.pipe(ela(this.inputSubject.pipe(dla(this.bufferTimeMs,kp))));this.removeDuplicates=C(function(f){return[].concat(p(new Set(f)))});this.limitInputSize=C(function(f){for(var h=l(f.slice(e.maxBatchSize)),k=h.next();!k.done;k=h.next())e.inputSubject.next(k.value);return new Set(f.slice(0,e.maxBatchSize))});this.makeBatchCalls=Bf(Vf(function(f){try{return e.batchCall(f).pipe(mg(1),
C(function(h){return{inputs:f,batchResponse:h,error:void 0}}),hg(function(h){return Nf({inputs:f,batchResponse:void 0,error:h})}))}catch(h){return Nf({inputs:f,batchResponse:void 0,error:h})}}),yla());this.batchResults$=this.inputs$.pipe(this.removeDuplicates,this.limitInputSize,this.makeBatchCalls)};
Eqc.prototype.get=function(a){var b=this;return new Cf(function(c){c=b.batchResults$.pipe(eg(function(d){return d.inputs.has(a)}),mg(1),C(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 sn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(sn,n);sn.prototype.getFieldId=function(){return W(this,em,1)};sn.prototype.setFieldId=function(a){return X(this,em,1,a)};var nn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(nn,n);nn.prototype.getFieldId=function(){return W(this,em,1)};nn.prototype.setFieldId=function(a){return X(this,em,1,a)};nn.prototype.getState=function(){return pk(this,2)};nn.prototype.setState=function(a){return Jj(this,2,a)};var HAa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(HAa,n);var MAa=function(a,b){return dp(a,1,b)};HAa.prototype.getIssueTypes=function(){return Lu(this,1)};var Fqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Fqc,n);var on=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(on,n);g=on.prototype;g.getName=function(){return Rc(this,1)};g.setName=function(a){return Hj(this,1,a)};g.getComponentId=function(){return xk(this,2)};g.getComponentId_asString=function(){return Bk(this,2)};g.setComponentId=function(a){return Xl(this,2,a)};var KAa=function(a,b){return Bm(a,3,b)},NAa=function(a){var b=new Fqc;nm(a,4,IAa,b)},LAa=function(a,b){nm(a,5,IAa,b)},IAa=[4,5];var rn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(rn,n);g=rn.prototype;g.getInherit=function(){return kk(this,1)};g.setInherit=function(a){return pm(this,1,a)};g.getId=function(){return xk(this,2)};g.getId_asLegacyNumberOrString=function(){return Um(this,2)};g.getId_asString=function(){return Bk(this,2)};g.setId=function(a){return Xl(this,2,a)};var qn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qn,n);g=qn.prototype;g.getInherit=function(){return kk(this,1)};g.setInherit=function(a){return pm(this,1,a)};g.getId=function(){return xk(this,2)};g.getId_asLegacyNumberOrString=function(){return Um(this,2)};g.getId_asString=function(){return Bk(this,2)};g.setId=function(a){return Xl(this,2,a)};g.getSourceTeamId=function(){return xk(this,4)};g.getSourceTeamId_asString=function(){return Bk(this,4)};
g.setSourceTeamId=function(a){Xl(this,4,a)};g.getComment=function(){return Rc(this,3)};g.setComment=function(a){return Hj(this,3,a)};var Gqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Gqc,n);var pn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(pn,n);g=pn.prototype;g.getVersion=function(){return Ej(this,1)};g.setVersion=function(a){return Zj(this,1,a)};g.getSlo=function(){return W(this,qn,2)};g.setSlo=function(a){return X(this,qn,2,a)};g.hasSlo=function(){return tk(this,qn,2)};g.getEscalationOwner=function(){return W(this,Gj,6)};g.setEscalationOwner=function(a){X(this,Gj,6,a)};g.getDefaultEscalationOwner=function(){return W(this,Gj,7)};
g.setInheritEscalationOwner=function(a){pm(this,8,a)};var QAa=[9,10];var SAa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(SAa,n);g=SAa.prototype;g.getUser=function(){return W(this,Gj,1)};g.setUser=function(a){return X(this,Gj,1,a)};g.hasUser=function(){return tk(this,Gj,1)};g.getIsLead=function(){return kk(this,2)};g.setIsLead=function(a){return pm(this,2,a)};var uB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(uB,n);g=uB.prototype;g.getId=function(){return xk(this,1)};g.getId_asLegacyNumberOrString=function(){return Um(this,1)};g.getId_asString=function(){return Bk(this,1)};g.setId=function(a){return Xl(this,1,a)};g.getPathIdsList=function(){return Rj(this,2,1)};g.getPathIdsList_asString=function(){return Ck(this,2)};g.setPathIdsList=function(a){return ep(this,2,a)};g.getName=function(){return Rc(this,3)};
g.setName=function(a){return Hj(this,3,a)};g.getPathNamesList=function(a){return Aj(this,4,Bj(a))};g.setPathNamesList=function(a){return Ij(this,4,a)};g.getMembersList=function(){return Sj(this,SAa,6,Bj())};g.setMembersList=function(a){return Bm(this,6,a)};g.getDescription=function(){return Rc(this,8)};g.setDescription=function(a){return Hj(this,8,a)};g.getDeleted=function(){return kk(this,9)};var XAa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(XAa,n);g=XAa.prototype;g.getTeamId=function(){return xk(this,1)};g.getTeamId_asLegacyNumberOrString=function(){return Um(this,1)};g.getTeamId_asString=function(){return Bk(this,1)};g.setTeamId=function(a){return Xl(this,1,a)};g.getScore=function(){return hm(this,2)};g.setScore=function(a){return Im(this,2,a)};var tn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(tn,n);tn.prototype.getComponentPathNames=function(a){return Ku(this,2,a)};tn.prototype.getFieldConfigsV2List=function(){return Sj(this,on,6,Bj())};tn.prototype.setFieldConfigsV2List=function(a){return Bm(this,6,a)};var wn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(wn,n);g=wn.prototype;g.getComponentId=function(){return xk(this,2)};g.getComponentId_asString=function(){return Bk(this,2)};g.setComponentId=function(a){return Xl(this,2,a)};g.getName=function(){return Rc(this,4)};g.setName=function(a){return Hj(this,4,a)};g.getDescription=function(){return Rc(this,5)};g.setDescription=function(a){return Hj(this,5,a)};g.getIsArchived=function(){return kk(this,8)};
g.setIsArchived=function(a){return pm(this,8,a)};g.getAccessLimit=function(){return W(this,Ul,9)};g.setAccessLimit=function(a){return X(this,Ul,9,a)};g.setCommentEditState=function(a){return Jj(this,10,a)};g.getSlo=function(){return W(this,Fm,13)};g.setSlo=function(a){return X(this,Fm,13,a)};g.hasSlo=function(){return tk(this,Fm,13)};g.getTeam=function(){return W(this,rn,16)};g.setTeam=function(a){X(this,rn,16,a)};g.hasTeam=function(){return tk(this,rn,16)};
g.getEffortSpec=function(){return W(this,qm,18)};g.getTeamSuggestionsList=function(){return Sj(this,XAa,19,Bj())};g.setTeamSuggestionsList=function(a){Bm(this,19,a)};g.getTrackerId=function(){return xk(this,20)};g.getTrackerId_asLegacyNumberOrString=function(){return Um(this,20)};g.getTrackerId_asString=function(){return Bk(this,20)};g.setTrackerId=function(a){Xl(this,20,a)};var lBa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lBa,n);g=lBa.prototype;g.getComponentId=function(){return xk(this,2)};g.getComponentId_asString=function(){return Bk(this,2)};g.setComponentId=function(a){return Xl(this,2,a)};g.getTemplateId=function(){return xk(this,3)};g.setTemplateId=function(a){return Xl(this,3,a)};g.getName=function(){return Rc(this,4)};g.setName=function(a){return Hj(this,4,a)};g.getDescription=function(){return Rc(this,5)};
g.setDescription=function(a){return Hj(this,5,a)};g.getIssueState=function(){return W(this,Rm,6)};g.setIssueState=function(a){return X(this,Rm,6,a)};g.getComment=function(){return Rc(this,7)};g.setComment=function(a){return Hj(this,7,a)};g.getFormattingMode=function(){return pk(this,8)};g.setFormattingMode=function(a){return Jj(this,8,a)};var vB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(vB,n);vB.prototype.getComponentId=function(){return xk(this,2)};vB.prototype.getComponentId_asString=function(){return Bk(this,2)};vB.prototype.setComponentId=function(a){return Xl(this,2,a)};var xn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,xn.messageId)};Y(xn,n);xn.prototype.getIt=function(){return W(this,wn,28,Nc)};xn.prototype.setIt=function(a){return X(this,wn,28,a,Nc)};xn.messageId="b.Component";var wB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,wB.messageId)};Y(wB,n);wB.prototype.getIt=function(){return W(this,vB,1,Nc)};wB.prototype.setIt=function(a){return X(this,vB,1,a,Nc)};wB.messageId="b.ListPopularRoutingComponentsRequest";var yn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(yn,n);yn.prototype.getIt=function(){return W(this,lBa,7)};yn.prototype.setIt=function(a){return X(this,lBa,7,a)};var Hqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Hqc.messageId)};Y(Hqc,n);Hqc.messageId="b.UpdateComponentSloRequest";var Iqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Iqc.messageId)};Y(Iqc,n);Iqc.messageId="b.UpdateComponentTeamRequest";var Jqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Jqc.messageId)};Y(Jqc,n);Jqc.prototype.setComponent=function(a){return X(this,xn,1,a,Nc)};Jqc.messageId="b.CreateComponentResponse";var Kqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Kqc.messageId)};Y(Kqc,n);Kqc.prototype.setComponent=function(a,b){return Au(this,1,xn,a,b,Nc)};Kqc.messageId="b.ListComponentsResponse";var Lqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Lqc,n);Lqc.prototype.getComponentsList=function(){return Sj(this,wn,1,Bj())};var xB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,xB.messageId)};Y(xB,n);xB.prototype.getIt=function(){return W(this,Lqc,1,Nc)};xB.prototype.setIt=function(a){return X(this,Lqc,1,a,Nc)};xB.messageId="b.ListPopularRoutingComponentsResponse";var qBa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qBa,n);qBa.prototype.getComponentPath=function(){return Rc(this,1)};var Mqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Mqc.messageId)};Y(Mqc,n);Mqc.messageId="b.SubcomponentsResponse";var yB=function(){this.executor=r(PA);this.activeSession=r(Bs)};g=yB.prototype;g.get=function(a){return this.query({id:[a]}).pipe(C(function(b){return b.length?b[0]:null}))};g.getChildren=function(a,b){a={parentId:a};if(b===void 0?0:b)a.includearchived=!0;return this.query(a)};g.getDescendants=function(a){return this.executor.get({url:"action/components/"+a+"/descendants",responseConstructor:Mqc}).pipe(C(rBa))};
g.getPopularRoutingTargets=function(a){var b=this.executor,c=b.post;a=(new wB).setIt((new vB).setComponentId(a));return c.call(b,{url:"/action/components/popular_targets",body:a,responseConstructor:xB}).pipe(C(oBa))};g.fetchComponent=function(a){return this.executor.get({url:"action/components/"+a,responseConstructor:xn}).pipe(C(vn))};
g.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:Kqc}).pipe(C(nBa))};
g.create=function(a){a=gBa(a);return this.executor.post({url:"action/components",body:a,responseConstructor:Jqc}).pipe(C(function(b){return vn(W(b,xn,1,Nc))}))};
g.update=function(a){var b=a.componentId,c=new xn,d=c.setIt,e=(new wn).setComponentId(a.componentId);e=Xl(e,3,a.parentComponentId).setName(a.name).setDescription(a.description).setIsArchived(a.archived);if(a.componentPathInfo){var f=a.componentPathInfo,h=new tn;f.componentPathId&&ep(h,1,f.componentPathId);if(f.componentPathName){var k=f.componentPathName.map(String);Ij(h,2,k)}f.allCustomField&&(f=f.allCustomField.map(hya),Bm(h,5,f));X(e,tn,7,h)}a.accessLimit&&e.setAccessLimit(vxa(a.accessLimit));
a.commentEditState&&e.setCommentEditState(a.commentEditState==="ENABLED"?1:2);Xl(e,6,String(a.defaultTemplateId));a.slo&&e.setSlo(Kya(a.slo));Xl(e,14,a.bugscopeSloId);a.retentionSettings&&(h=Mxa(a.retentionSettings),X(e,$l,15,h));a.fieldOrdering&&Jj(e,17,Fnc[a.fieldOrdering]);a.effortSpec&&(h=pya(a.effortSpec),X(e,qm,18,h));a.team&&e.setTeam(VAa(a.team));var q;e.setTeamSuggestionsList(((q=a.teamSuggestions)!=null?q:[]).map(YAa));a.spamProtection!=="SPAM_PROTECTION_UNSPECIFIED"&&Jj(e,21,$Aa(a.spamProtection));
a=d.call(c,e);return this.executor.post({url:"action/components/"+b,body:a,responseConstructor:xn}).pipe(C(vn))};g.move=function(a,b){return this.executor.post({url:"action/components/"+a+"/move",body:null,options:{params:{parentId:b}},responseConstructor:xn}).pipe(C(vn))};g.updateSlo=function(a,b){var c=new Hqc;b=Kya(b);c=X(c,Fm,2,b,Nc);return this.executor.post({url:"action/components/"+a+"/updateSlo",body:c,responseConstructor:xn}).pipe(C(vn))};
g.updateTeam=function(a,b){var c=new Iqc;b=VAa(Object.assign({},b));c=X(c,rn,2,b,Nc);return this.executor.post({url:"action/components/"+a+"/updateTeam",body:c,responseConstructor:xn}).pipe(C(vn))};yB.\u0275fac=function(a){return new (a||yB)};yB.\u0275prov=Cd({token:yB,factory:yB.\u0275fac,providedIn:"root"});var zB=function(){this.observableApi=r(yB)};g=zB.prototype;g.get=function(a){return Rf(this.observableApi.get(a))};
g.getChildren=function(a,b){return Rf(this.observableApi.getChildren(a,b===void 0?!1:b))};g.getDescendants=function(a){return Rf(this.observableApi.getDescendants(a))};g.getPopularRoutingTargets=function(a){return Rf(this.observableApi.getPopularRoutingTargets(a))};g.fetchComponent=function(a){return Rf(this.observableApi.fetchComponent(a))};g.query=function(a){return Rf(this.observableApi.query(a))};g.create=function(a){return Rf(this.observableApi.create(a))};g.update=function(a){return Rf(this.observableApi.update(a))};
g.move=function(a,b){return Rf(this.observableApi.move(a,b))};g.updateSlo=function(a,b){return Rf(this.observableApi.updateSlo(a,b))};g.updateTeam=function(a,b){return Rf(this.observableApi.updateTeam(a,b))};zB.\u0275fac=function(a){return new (a||zB)};zB.\u0275prov=Cd({token:zB,factory:zB.\u0275fac,providedIn:"root"});var BB=function(){XA.call(this,{freshUntil:12E4,ancientAfter:6048E5});this.batchedComponentApi=r(AB);this.recordType="component";this.idForRecord=function(a){return a.componentId}};Y(BB,XA);BB.prototype.fetchOne=function(a){return a==="0"?Nf(void 0):this.batchedComponentApi.get(a).pipe(hg(function(){return Nf(void 0)}))};BB.prototype.fetchSet=function(a){var b=this;return Uf(a.map(function(c){return b.fetchOne(c)})).pipe(C(function(c){return c.filter(Qj)}))};
BB.\u0275fac=function(a){return new (a||BB)};BB.\u0275prov=Cd({token:BB,factory:BB.\u0275fac,providedIn:"root"});var AB=function(){var a=this;this.observableComponentApi=r(yB);this.batchApiAdapter=r(tB);this.get=this.batchApiAdapter.adapt({bufferTimeMs:0,call:function(b){return a.call(b)},split:function(b,c){return a.splitBatch(b,c)}})};
AB.prototype.call=function(a){return a.size===1?this.observableComponentApi.fetchComponent([].concat(p(a))[0]).pipe(C(function(b){return new Map(b?[[b.componentId,b]]:[])})):this.observableComponentApi.query({id:[].concat(p(a))}).pipe(C(function(b){return new Map(b.map(function(c){return[c.componentId,c]}))}))};AB.prototype.splitBatch=function(a,b){return b.get(a)};AB.\u0275fac=function(a){return new (a||AB)};AB.\u0275prov=Cd({token:AB,factory:AB.\u0275fac,providedIn:"root"});var Nqc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Nqc.messageId)};Y(Nqc,n);Nqc.messageId="b.ListTemplatesResponse";var CB=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,CB.messageId)};Y(CB,n);CB.messageId="b.TemplateResponse";var DB=function(){this.executor=r(PA)};g=DB.prototype;g.get=function(a,b){return this.executor.get({url:"action/components/"+a+"/templates/"+b,responseConstructor:CB}).pipe(C(sBa))};g.query=function(a){return this.executor.get({url:"action/components/"+a+"/templates",responseConstructor:Nqc}).pipe(C(tBa))};g.create=function(a,b){b=mBa(b);return this.executor.post({url:"action/components/"+a+"/templates",responseConstructor:CB,body:b}).pipe(C(sBa))};
g.update=function(a,b,c){c=mBa(c);return this.executor.post({url:"action/components/"+a+"/templates/"+b,responseConstructor:CB,body:c}).pipe(C(sBa))};g.delete=function(a,b){return this.executor.delete({url:"action/components/"+a+"/templates/"+b,responseConstructor:null})};DB.\u0275fac=function(a){return new (a||DB)};DB.\u0275prov=Cd({token:DB,factory:DB.\u0275fac,providedIn:"root"});var EB=function(){this.observableApi=r(DB)};g=EB.prototype;g.get=function(a,b){return Rf(this.observableApi.get(a,b))};
g.query=function(a){return Rf(this.observableApi.query(a))};g.create=function(a,b){return Rf(this.observableApi.create(a,b))};g.update=function(a,b,c){return Rf(this.observableApi.update(a,b,c))};g.delete=function(a,b){return Rf(this.observableApi.delete(a,b))};EB.\u0275fac=function(a){return new (a||EB)};EB.\u0275prov=Cd({token:EB,factory:EB.\u0275fac,providedIn:"root"});var FB=function(){this.bookmarkGroupModified=new tg;this.commentSubmitted=new tg;this.commentRendered=new tg;this.componentModified=new tg;this.contactChipsRevertChanges=new tg;this.customFieldsModified=new tg;this.dashboardPanels={moveDown:new tg,moveUp:new tg,moveToTop:new tg,moveToBottom:new tg,remove:new tg};this.favoritesModified=new tg;this.hotlistCreated=new tg;this.onClickAppMenuIcon=new tg;this.openEditField=new tg;this.sidebarWidthChanged=new tg;this.hotlistChanged=new tg;this.savedSearchModified=
new tg;this.sidebarUpdated=new tg;this.topBarEvents={browseComponents:new tg,manageHotlists:new tg,manageSlos:new tg,setDensity:new tg,openSettings:new tg};this.templateModified=new tg;this.issueViewed=new tg;this.issueEdited=new tg;this.focusCommentBox=new tg;this.scrollToCommentBox=new tg;this.recaptchaSubmitted=new tg;this.missionControlTaskCount=new Kn(void 0);this.openHelpMeFixSidebar=new tg;this.closeHelpMeFixSidebar=new tg;this.didShowIssueHovercard=new tg};
FB.\u0275fac=function(a){return new (a||FB)};FB.\u0275prov=Cd({token:FB,factory:FB.\u0275fac,providedIn:"root"});var mCa=Symbol("Ub"),GB=function(a){this.params=a||{}};GB.prototype.has=function(a){return Object.prototype.hasOwnProperty.call(this.params,a)};GB.prototype.get=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a[0]:a):null};GB.prototype.getAll=function(a){return this.has(a)?(a=this.params[a],Array.isArray(a)?a:[a]):[]};nd.Object.defineProperties(GB.prototype,{keys:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.params)}}});var xBa={exact:CBa,subset:FBa},yBa={exact:ABa,subset:DBa,ignored:function(){return!0}},Dn=function(a,b,c){a=a===void 0?new Cn([],{}):a;b=b===void 0?{}:b;this.root=a;this.queryParams=b;this.fragment=c===void 0?null:c};Dn.prototype.toString=function(){return Oqc.serialize(this)};nd.Object.defineProperties(Dn.prototype,{queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap!=null||(this._queryParamMap=new GB(this.queryParams));return this._queryParamMap}}});
var Cn=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})};Cn.prototype.hasChildren=function(){return this.numberOfChildren>0};Cn.prototype.toString=function(){return KBa(this)};nd.Object.defineProperties(Cn.prototype,{numberOfChildren:{configurable:!0,enumerable:!0,get:function(){return Object.keys(this.children).length}}});var Fn=function(a,b){this.path=a;this.parameters=b};
Fn.prototype.toString=function(){return IBa(this.path)+JBa(this.parameters)};var HB=function(){};HB.\u0275fac=function(a){return new (a||HB)};HB.\u0275prov=Cd({token:HB,factory:function(){return new Pqc},providedIn:"root"});var Pqc=function(){};
Pqc.prototype.parse=function(a){a=new Qqc(a);IB(a,"/");var b=a.remaining===""||a.remaining.startsWith("?")||a.remaining.startsWith("#")?new Cn([],{}):new Cn([],Rqc(a));var c={};if(IB(a,"?")){do{var d,e,f=a.remaining.match(Sqc);if(e=f?f[0]:"")a.capture(e),f="",IB(a,"=")&&(d=(d=a.remaining.match(Tqc))?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(IB(a,
"&"))}return new Dn(b,c,IB(a,"#")?decodeURIComponent(a.remaining):null)};Pqc.prototype.serialize=function(a){var b="/"+LBa(a.root,!0),c=OBa(a.queryParams);a=typeof a.fragment==="string"?"#"+encodeURI(a.fragment):"";return b+c+a};
var Oqc=new Pqc,PBa=/^[^\/()?;#]+/,Uqc=/^[^\/()?;=#]+/,Sqc=/^[^=?&#]+/,Tqc=/^[^&#]+/,Qqc=function(a){this.remaining=this.url=a},Rqc=function(a){if(a.remaining==="")return{};IB(a,"/");var b=[];for(a.remaining.startsWith("(")||b.push(Vqc(a));a.remaining.startsWith("/")&&!a.remaining.startsWith("//")&&!a.remaining.startsWith("/(");)a.capture("/"),b.push(Vqc(a));var c={};a.remaining.startsWith("/(")&&(a.capture("/"),c=Wqc(a,!0));var d={};a.remaining.startsWith("(")&&(d=Wqc(a,!1));if(b.length>0||Object.keys(c).length>
0)d.primary=new Cn(b,c);return d},Vqc=function(a){var b=QBa(a.remaining);if(b===""&&a.remaining.startsWith(";"))throw new Vd(4009,!1);a.capture(b);b=decodeURIComponent(b);for(var c={};IB(a,";");){var d,e=a;if(d=(d=e.remaining.match(Uqc))?d[0]:""){e.capture(d);var f="";if(IB(e,"=")){var h=QBa(e.remaining);h&&(f=h,e.capture(f))}c[decodeURIComponent(d)]=decodeURIComponent(f)}}return new Fn(b,c)},Wqc=function(a,b){var c={};for(a.capture("(");!IB(a,")")&&a.remaining.length>0;){var d=QBa(a.remaining),e=
a.remaining[d.length];if(e!=="/"&&e!==")"&&e!==";")throw new Vd(4010,!1);e=void 0;d.indexOf(":")>-1?(e=d.slice(0,d.indexOf(":")),a.capture(e),a.capture(":")):b&&(e="primary");d=Rqc(a);c[e]=Object.keys(d).length===1?d.primary:new Cn([],d);IB(a,"//")}return c},IB=function(a,b){return a.remaining.startsWith(b)?(a.remaining=a.remaining.substring(b.length),!0):!1};Qqc.prototype.capture=function(a){if(!IB(this,a))throw new Vd(4011,!1);};var cCa=function(a,b,c){this.isAbsolute=a;this.numberOfDoubleDots=b;this.commands=c;if(a&&c.length>0&&XBa(c[0]))throw new Vd(4003,!1);if((a=c.find(aCa))&&a!==(c.length>0?c[c.length-1]:null))throw new Vd(4004,!1);},WBa=function(a,b,c){this.segmentGroup=a;this.processChildren=b;this.index=c};var JB=function(a,b){this.id=a;this.url=b},Ko=function(a,b,c,d){c=c===void 0?"imperative":c;d=d===void 0?null:d;JB.call(this,a,b);this.type=0;this.navigationTrigger=c;this.restoredState=d};Y(Ko,JB);Ko.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"};var Rn=function(a,b,c){JB.call(this,a,b);this.urlAfterRedirects=c;this.type=1};Y(Rn,JB);
Rn.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"};var Sn=function(a,b,c,d){JB.call(this,a,b);this.reason=c;this.code=d;this.type=2};Y(Sn,JB);Sn.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"};var Un=function(a,b,c,d){JB.call(this,a,b);this.reason=c;this.code=d;this.type=16};Y(Un,JB);
var Tn=function(a,b,c,d){JB.call(this,a,b);this.error=c;this.target=d;this.type=3};Y(Tn,JB);Tn.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"};var Xqc=function(a,b,c,d){JB.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=4};Y(Xqc,JB);Xqc.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};
var Yqc=function(a,b,c,d){JB.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=7};Y(Yqc,JB);Yqc.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var Zqc=function(a,b,c,d,e){JB.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.shouldActivate=e;this.type=8};Y(Zqc,JB);
Zqc.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"};var $qc=function(a,b,c,d){JB.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=5};Y($qc,JB);$qc.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};
var arc=function(a,b,c,d){JB.call(this,a,b);this.urlAfterRedirects=c;this.state=d;this.type=6};Y(arc,JB);arc.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"};var brc=function(a){this.route=a;this.type=9};brc.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"};var crc=function(a){this.route=a;this.type=10};
crc.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"};var OCa=function(a){this.snapshot=a;this.type=11};OCa.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var drc=function(a){this.snapshot=a;this.type=12};drc.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};
var PCa=function(a){this.snapshot=a;this.type=13};PCa.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var erc=function(a){this.snapshot=a;this.type=14};erc.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"};var frc=function(a,b){this.position=a;this.anchor=b;this.type=15};
frc.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"};var grc=function(){},hrc=function(a,b){this.url=a;this.navigationBehaviorOptions=b};var irc=function(a){this.rootInjector=a;this.attachRef=this.route=this.outlet=null;this.children=new KB(this.rootInjector)};nd.Object.defineProperties(irc.prototype,{injector:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=Hn((a=this.route)==null?void 0:a.snapshot))!=null?b:this.rootInjector}}});
var KB=function(a){this.rootInjector=a;this.contexts=new Map},jrc=function(a,b){if(a=a.getContext(b))a.outlet=null,a.attachRef=null},krc=function(a,b){var c=a.getContext(b);c||(c=new irc(a.rootInjector),a.contexts.set(b,c));return c};KB.prototype.getContext=function(a){return this.contexts.get(a)||null};KB.\u0275fac=function(a){return new (a||KB)(be(pf))};KB.\u0275prov=Cd({token:KB,factory:KB.\u0275fac,providedIn:"root"});var LB=function(a){this._root=a};LB.prototype.parent=function(a){a=this.pathFromRoot(a);return a.length>1?a[a.length-2]:null};LB.prototype.children=function(a){return(a=jCa(a,this._root))?a.children.map(function(b){return b.value}):[]};LB.prototype.firstChild=function(a){return(a=jCa(a,this._root))&&a.children.length>0?a.children[0].value:null};LB.prototype.pathFromRoot=function(a){return kCa(a,this._root).map(function(b){return b.value})};
nd.Object.defineProperties(LB.prototype,{root:{configurable:!0,enumerable:!0,get:function(){return this._root.value}}});var In=function(a,b){this.value=a;this.children=b};In.prototype.toString=function(){return"TreeNode("+this.value+")"};var vCa=function(a,b){this._root=a;this.snapshot=b;oCa(this,a)};Y(vCa,LB);vCa.prototype.toString=function(){return this.snapshot.toString()};
var Jn=function(a,b,c,d,e,f,h,k){this.urlSubject=a;this.paramsSubject=b;this.queryParamsSubject=c;this.fragmentSubject=d;this.dataSubject=e;this.outlet=f;this.component=h;this._futureSnapshot=k;var q,v;this.title=(v=(q=this.dataSubject)==null?void 0:q.pipe(C(function(A){return A[mCa]})))!=null?v:Nf(void 0);this.url=a;this.params=b;this.queryParams=c;this.fragment=d;this.data=e};Jn.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"};
nd.Object.defineProperties(Jn.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(C(function(a){return new GB(a)})));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap!=null||(this._queryParamMap=this.queryParams.pipe(C(function(a){return new GB(a)})));return this._queryParamMap}}});
var MB=function(a,b,c,d,e,f,h,k,q){this.url=a;this.params=b;this.queryParams=c;this.fragment=d;this.data=e;this.outlet=f;this.component=h;this.routeConfig=k;this._resolve=q};MB.prototype.toString=function(){return"Route(url:'"+this.url.map(function(a){return a.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"};
nd.Object.defineProperties(MB.prototype,{title:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a[mCa]}},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 GB(this.params));return this._paramMap}},queryParamMap:{configurable:!0,enumerable:!0,get:function(){this._queryParamMap!=null||(this._queryParamMap=new GB(this.queryParams));return this._queryParamMap}}});var lrc=function(a,b){this._root=b;this.url=a;oCa(this,b)};Y(lrc,LB);lrc.prototype.toString=function(){return pCa(this._root)};var mrc=new le(""),NB=function(){this._activatedRoute=this.activated=null;this.name="primary";this.activateEvents=new nq;this.deactivateEvents=new nq;this.attachEvents=new nq;this.detachEvents=new nq;this.routerOutletData=Mh.apply(null,[void 0].concat(p([])));this.parentContexts=r(KB);this.location=r(fh);this.changeDetector=r(Hv);this.inputBinder=r(nrc,{optional:!0})};
NB.prototype.ngOnChanges=function(a){if(a.name){a=a.name;var b=a.previousValue;a.firstChange||(orc(this,b)&&(this.deactivate(),jrc(this.parentContexts,b)),prc(this))}};NB.prototype.ngOnDestroy=function(){orc(this,this.name)&&jrc(this.parentContexts,this.name);var a;(a=this.inputBinder)==null||qrc(a,this)};var orc=function(a,b){var c;return((c=a.parentContexts.getContext(b))==null?void 0:c.outlet)===a};NB.prototype.ngOnInit=function(){prc(this)};
var prc=function(a){var b=a.parentContexts,c=a.name,d=krc(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):rrc(a,b.route,b.injector))};NB.prototype.detach=function(){if(!this.activated)throw new Vd(4012,!1);this.location.detach();var a=this.activated;this._activatedRoute=this.activated=null;this.detachEvents.emit(a.instance);return a};
NB.prototype.attach=function(a,b){this.activated=a;this._activatedRoute=b;this.location.insert(a.hostView);(b=this.inputBinder)!=null&&(qrc(b,this),src(b,this));this.attachEvents.emit(a.instance)};NB.prototype.deactivate=function(){if(this.activated){var a=this.component;this.activated.destroy();this._activatedRoute=this.activated=null;this.deactivateEvents.emit(a)}};
var rrc=function(a,b,c){if(a.isActivated)throw new Vd(4013,!1);a._activatedRoute=b;var d=a.location,e=b.snapshot.component,f=krc(a.parentContexts,a.name).children;a.activated=d.createComponent(e,{index:d.length,injector:new trc(b,f,d.injector,a.routerOutletData),environmentInjector:c});a.changeDetector.markForCheck();(b=a.inputBinder)!=null&&(qrc(b,a),src(b,a));a.activateEvents.emit(a.activated.instance)};
nd.Object.defineProperties(NB.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 Vd(4012,!1);return this.activated.instance}},activatedRoute:{configurable:!0,enumerable:!0,get:function(){if(!this.activated)throw new Vd(4012,!1);return this._activatedRoute}}});
NB.\u0275fac=function(a){return new (a||NB)};NB.\u0275dir=vf({type:NB,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[ov]});var trc=function(a,b,c,d){this.route=a;this.childContexts=b;this.parent=c;this.outletData=d};
trc.prototype.get=function(a,b){return a===Jn?this.route:a===KB?this.childContexts:a===mrc?this.outletData:this.parent.get(a,b)};
var nrc=new le(""),OB=function(){this.outletDataSubscriptions=new Map},qrc=function(a,b){var c;(c=a.outletDataSubscriptions.get(b))==null||c.unsubscribe();a.outletDataSubscriptions.delete(b)},src=function(a,b){var c=b.activatedRoute,d=Uf([c.queryParams,c.params,c.data]).pipe(xg(function(e,f){var h=l(e);e=h.next().value;var k=h.next().value;h=h.next().value;h=Object.assign({},e,k,h);return f===0?Nf(h):Promise.resolve(h)})).subscribe(function(e){if(b.isActivated&&b.activatedComponentRef&&b.activatedRoute===
c&&c.component!==null){var f=loa(c.component);if(f){f=l(f.inputs);for(var h=f.next();!h.done;h=f.next())h=h.value.templateName,b.activatedComponentRef.setInput(h,e[h])}else qrc(a,b)}else qrc(a,b)});a.outletDataSubscriptions.set(b,d)};OB.\u0275fac=function(a){return new (a||OB)};OB.\u0275prov=Cd({token:OB,factory:OB.\u0275fac});var tCa=function(){};tCa.\u0275fac=function(a){return new (a||tCa)};tCa.\u0275cmp=y({type:tCa,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(a){a&1&&M(0,"router-outlet")},dependencies:[NB],encapsulation:2});var vrc=function(a,b,c,d){return C(function(e){(new urc(b,e.targetRouterState,e.currentRouterState,c,d)).activate(a);return e})},urc=function(a,b,c,d,e){this.routeReuseStrategy=a;this.futureState=b;this.currState=c;this.forwardEvent=d;this.inputBindingEnabled=e};urc.prototype.activate=function(a){var b=this.futureState._root,c=this.currState?this.currState._root:null;wrc(this,b,c,a);qCa(this.futureState.root);xrc(this,b,c,a)};
var wrc=function(a,b,c,d){var e=lCa(c);b.children.forEach(function(f){var h=f.value.outlet,k=e[h],q=f.value,v=k?k.value:null;q===v?q.component?(q=d.getContext(q.outlet))&&wrc(a,f,k,q.children):wrc(a,f,k,d):v&&yrc(a,k,d);delete e[h]});Object.values(e).forEach(function(f){yrc(a,f,d)})},yrc=function(a,b,c){var d=c.getContext(b.value.outlet);c=d&&b.value.component?d.children:c;b=lCa(b);b=l(Object.values(b));for(var e=b.next();!e.done;e=b.next())yrc(a,e.value,c);d&&(d.outlet&&(d.outlet.deactivate(),d.children.contexts=
new Map),d.attachRef=null,d.route=null)},xrc=function(a,b,c,d){var e=lCa(c);b.children.forEach(function(f){var h=e[f.value.outlet],k=f.value,q=h?h.value:null;qCa(k);k===q?k.component?(k=krc(d,k.outlet),xrc(a,f,h,k.children)):xrc(a,f,h,d):k.component?(h=krc(d,k.outlet),h.attachRef=null,h.route=k,h.outlet&&rrc(h.outlet,k,h.injector),xrc(a,f,null,h.children)):xrc(a,f,null,d);a.forwardEvent(new erc(f.value.snapshot))});b.children.length&&a.forwardEvent(new drc(b.value.snapshot))};var CCa=Symbol("Wb");var ECa=function(a){this.path=a;this.route=this.path[this.path.length-1]},GCa=function(a,b){this.component=a;this.route=b};var VCa=function(a){this.segmentGroup=a||null},zrc=function(a){var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.urlTree=a};Y(zrc,Error);
var Arc=function(a,b){this.urlSerializer=a;this.urlTree=b},Drc=function(a,b,c,d,e,f){return WCa(c,e,f).pipe(C(function(h){if(h instanceof Dn)throw new zrc(h);var k=a.urlSerializer.parse(h);var q=Brc(a,h,k.root,b,d);k=new Dn(q,Crc(k.queryParams,a.urlTree.queryParams),k.fragment);if(h[0]==="/")throw new zrc(k);return k}))},Crc=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},
Brc=function(a,b,c,d,e){var f=Erc(c.segments,d,e),h={};Object.entries(c.children).forEach(function(k){var q=l(k);k=q.next().value;q=q.next().value;h[k]=Brc(a,b,q,d,e)});return new Cn(f,h)},Erc=function(a,b,c){return a.map(function(d){if(d.path[0]===":"){if(d=c[d.path.substring(1)],!d)throw new Vd(4001,!1);}else a:for(var e=0,f=l(b),h=f.next();!h.done;h=f.next()){h=h.value;if(h.path===d.path){b.splice(e);d=h;break a}e++}return d})};var YCa={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};var Frc=function(){},gDa=function(a,b,c,d,e,f,h){this.injector=a;this.configLoader=b;this.rootComponentType=c;this.config=d;this.urlTree=e;this.paramsInheritanceStrategy=f;this.urlSerializer=h;this.absoluteRedirectCount=0;this.allowRedirects=!0;this.applyRedirects=new Arc(this.urlSerializer,this.urlTree)};
gDa.prototype.recognize=function(){var a=this,b=cDa(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(b).pipe(C(function(c){var d=c.children;c=c.rootSnapshot;d=new lrc("",new In(c,d));var e=a.urlTree.queryParams,f=a.urlTree.fragment;e=e===void 0?null:e;f=f===void 0?null:f;c=TBa(c);c=$Ba(c,[],e,f);c.queryParams=a.urlTree.queryParams;d.url=a.urlSerializer.serialize(c);return{state:d,tree:c}}))};
gDa.prototype.match=function(a){var b=this,c=new MB([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),"primary",this.rootComponentType,null,{});return Grc(this,this.injector,this.config,a,"primary",c).pipe(C(function(d){return{children:d,rootSnapshot:c}}),hg(function(d){if(d instanceof zrc)return b.urlTree=d.urlTree,b.match(d.urlTree.root);if(d instanceof VCa)throw new Vd(4002,"'"+d.segmentGroup+"'");throw d;}))};
var Grc=function(a,b,c,d,e,f){return d.segments.length===0&&d.hasChildren()?a.processChildren(b,c,d,f):Hrc(a,b,c,d,d.segments,e,!0,f).pipe(C(function(h){return h instanceof In?[h]:[]}))};
gDa.prototype.processChildren=function(a,b,c,d){for(var e=this,f=[],h=l(Object.keys(c.children)),k=h.next();!k.done;k=h.next())k=k.value,k==="primary"?f.unshift(k):f.push(k);return Ef(f).pipe(jg(function(q){var v=c.children[q],A=iCa(b,q);return Grc(e,a,A,v,q,d)}),xla(function(q,v){q.push.apply(q,p(v));return q}),kla(null),rla(),Vf(function(q){if(q===null)return Nn(c);q=fDa(q);dDa(q);return Nf(q)}))};
var Hrc=function(a,b,c,d,e,f,h,k){return Ef(c).pipe(jg(function(q){var v;return Irc(a,(v=q._injector)!=null?v:b,c,q,d,e,f,h,k).pipe(hg(function(A){if(A instanceof VCa)return Nf(null);throw A;}))}),qg(function(q){return!!q}),hg(function(q){if(JCa(q))return e.length!==0||d.children[f]?Nn(d):Nf(new Frc);throw q;}))},Irc=function(a,b,c,d,e,f,h,k,q){return Gn(d)===h||h!=="primary"&&bDa(e,f,d)?d.redirectTo===void 0?Jrc(a,b,e,d,f,h,q):a.allowRedirects&&k?Krc(a,b,e,c,d,f,h,q):Nn(e):Nn(e)},Krc=function(a,
b,c,d,e,f,h,k){var q=XCa(c,e,f),v=q.parameters,A=q.consumedSegments,E=q.positionalParamSegments,H=q.remainingSegments;if(!q.matched)return Nn(c);typeof e.redirectTo==="string"&&e.redirectTo[0]==="/"&&(a.absoluteRedirectCount++,a.absoluteRedirectCount>31&&(a.allowRedirects=!1));var L,O;f=new MB(f,v,Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,e.data||{},Gn(e),(O=(L=e.component)!=null?L:e._loadedComponent)!=null?O:null,e,e.resolve||{});L=nCa(f,k,a.paramsInheritanceStrategy);
f.params=Object.freeze(L.params);f.data=Object.freeze(L.data);return Drc(a.applyRedirects,A,e.redirectTo,E,f,b).pipe(xg(function(S){a:{var aa=[];for(S=S.root;;){aa=aa.concat(S.segments);if(S.numberOfChildren===0){aa=Nf(aa);break a}if(S.numberOfChildren>1||!S.children.primary){aa=Of(new Vd(4E3,!1));break a}S=S.children.primary}aa=void 0}return aa}),Vf(function(S){return Hrc(a,b,d,c,S.concat(H),h,!1,k)}))},Jrc=function(a,b,c,d,e,f,h){var k=ZCa(c,d,e,b);d.path==="**"&&(c.children={});return k.pipe(xg(function(q){if(!q.matched)return Nn(c);
var v;b=(v=d._injector)!=null?v:b;return Lrc(a,b,d,e).pipe(xg(function(A){A=A.routes;var E,H=(E=d._loadedInjector)!=null?E:b;E=q.consumedSegments;var L=q.remainingSegments,O,S,aa=new MB(E,q.parameters,Object.freeze(Object.assign({},a.urlTree.queryParams)),a.urlTree.fragment,d.data||{},Gn(d),(S=(O=d.component)!=null?O:d._loadedComponent)!=null?S:null,d,d.resolve||{});O=nCa(aa,h,a.paramsInheritanceStrategy);aa.params=Object.freeze(O.params);aa.data=Object.freeze(O.data);S=cDa(c,E,L,A);O=S.segmentGroup;
S=S.slicedSegments;return S.length===0&&O.hasChildren()?a.processChildren(H,A,O,aa).pipe(C(function(ka){return new In(aa,ka)})):A.length===0&&S.length===0?Nf(new In(aa,[])):Hrc(a,H,A,O,S,Gn(d)===f?"primary":f,!0,aa).pipe(C(function(ka){return new In(aa,ka instanceof In?[ka]:[])}))}))}))},Lrc=function(a,b,c,d){return c.children?Nf({routes:c.children,injector:b}):c.loadChildren?c._loadedRoutes!==void 0?Nf({routes:c._loadedRoutes,injector:c._loadedInjector}):TCa(b,c,d).pipe(Vf(function(e){return e?a.configLoader.loadChildren(b,
c).pipe(zg(function(f){c._loadedRoutes=f.routes;c._loadedInjector=f.injector})):Of(zCa(3))})):Nf({routes:[],injector:b})};var PB=function(){};Y(PB,vic);var Mrc=function(a,b,c,d){a.addEventListener(b,c,d);return function(){a.removeEventListener(b,c,d)}};PB.prototype.dispatchEvent=function(a,b){a.dispatchEvent(b)};PB.prototype.remove=function(a){a.remove()};PB.prototype.createElement=function(a,b){b=b||document;return b.createElement(a)};var xic=function(a,b){return b==="window"?window:b==="document"?a:b==="body"?a.body:null};
PB.prototype.getBaseHref=function(){var a=(Nrc=Nrc||document.head.querySelector("base"))?Nrc.getAttribute("href"):null;return a==null?null:(new URL(a,document.baseURI)).pathname};var Nrc=null;var Orc=function(){},zhc=function(a){ef.getAngularTestability=function(b,c){b=a.findTestabilityInTree(b,c===void 0?!0:c);if(b==null)throw new Vd(5103,!1);return b};ef.getAllAngularTestabilities=function(){return Array.from(a._applications.values())};ef.getAllAngularRootElements=function(){return Array.from(a._applications.keys())};ef.frameworkStabilizers||(ef.frameworkStabilizers=[]);ef.frameworkStabilizers.push(function(b){var c=ef.getAllAngularTestabilities(),d=c.length,e=function(){d--;d==0&&b()};
c.forEach(function(f){f.whenStable(e)})})};Orc.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 QB=function(){};QB.prototype.build=function(){return new XMLHttpRequest};QB.\u0275fac=function(a){return new (a||QB)};QB.\u0275prov=Cd({token:QB,factory:QB.\u0275fac});var Prc=new le(""),RB=function(a,b){var c=this;this._zone=b;this._eventNameToPlugin=new Map;a.forEach(function(d){d.manager=c});this._plugins=a.slice().reverse()};RB.prototype.addEventListener=function(a,b,c,d){return this._findPluginFor(b).addEventListener(a,b,c,d)};RB.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 Vd(5101,!1);this._eventNameToPlugin.set(a,b);return b};
RB.\u0275fac=function(a){return new (a||RB)(be(Prc),be(Ph))};RB.\u0275prov=Cd({token:RB,factory:RB.\u0275fac});var Qrc=function(a){this._doc=a};var SB=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)},
Src=function(a,b,c){b=l(b);for(var d=b.next();!d.done;d=b.next())Rrc(a,d.value,a.inline,pDa);c==null||c.forEach(function(e){return Rrc(a,e,a.external,qDa)})},Urc=function(a,b,c){b=l(b);for(var d=b.next();!d.done;d=b.next())Trc(d.value,a.inline);c==null||c.forEach(function(e){return Trc(e,a.external)})},Rrc=function(a,b,c,d){var e=c.get(b);e?e.usage++:c.set(b,{usage:1,elements:[].concat(p(a.hosts)).map(function(f){return a.addElement(f,d(b,a.doc))})})},Trc=function(a,b){var c=b.get(a);c&&(c.usage--,
c.usage<=0&&(oDa(c.elements),b.delete(a)))};SB.prototype.ngOnDestroy=function(){for(var a=l([].concat(p(this.inline),p(this.external))),b=a.next();!b.done;b=a.next())b=l(b.value),b.next(),b=b.next().value.elements,oDa(b);this.hosts.clear()};SB.prototype.addElement=function(a,b){this.nonce&&b.setAttribute("nonce",this.nonce);return a.appendChild(b)};SB.\u0275fac=function(a){return new (a||SB)(be(ui),be(wgc),be(ygc,8),be(xgc))};SB.\u0275prov=Cd({token:SB,factory:SB.\u0275fac});var Vrc={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"},rDa=/%COMP%/g,Wrc=new le("",{providedIn:"root",factory:function(){return!0}}),UB=function(a,b,c,d,e,f,h,k,q,v,A){this.eventManager=a;this.sharedStylesHost=b;this.appId=c;this.removeStylesOnCompDestroy=d;this.doc=e;this.ngZone=h;this.nonce=k===void 0?null:k;this.animationDisabled=
q;this.maxAnimationTimeout=v;this.tracingService=A===void 0?null:A;this.rendererByCompId=new Map;this.platformIsServer=!1;this.defaultRenderer=new TB(a,e,h,this.platformIsServer,this.tracingService,this.registry=qgc,this.maxAnimationTimeout)};
UB.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,h=this.sharedStylesHost,k=this.removeStylesOnCompDestroy,q=this.platformIsServer,v=this.tracingService;switch(b.encapsulation){case 0:d=new Xrc(f,h,b,this.appId,k,d,e,q,v,this.registry,this.animationDisabled,this.maxAnimationTimeout);break;case 3:b=new Yrc(f,a,b,d,e,this.nonce,q,v,this.registry,this.maxAnimationTimeout,
h);break a;case 4:b=new Yrc(f,a,b,d,e,this.nonce,q,v,this.registry,this.maxAnimationTimeout);break a;default:d=new VB(f,h,b,k,d,e,q,v,this.registry,this.animationDisabled,this.maxAnimationTimeout)}c.set(b.id,d)}b=d}b instanceof Xrc?(Src(b.sharedStylesHost,b.styles,b.styleUrls),b.setAttribute(a,b.hostAttr,"")):b instanceof VB&&Src(b.sharedStylesHost,b.styles,b.styleUrls);return b};UB.prototype.ngOnDestroy=function(){this.rendererByCompId.clear()};
UB.\u0275fac=function(a){return new (a||UB)(be(RB),be(SB),be(wgc),be(Wrc),be(ui),be(xgc),be(Ph),be(ygc),be(igc),be(jgc),be(Fg,8))};UB.\u0275prov=Cd({token:UB,factory:UB.\u0275fac});var TB=function(a,b,c,d,e,f,h){this.eventManager=a;this.doc=b;this.ngZone=c;this.platformIsServer=d;this.tracingService=e;this.registry=f;this.maxAnimationTimeout=h;this.data=Object.create(null);this.destroyNode=null};g=TB.prototype;g.destroy=function(){};
g.createElement=function(a,b){return b?this.doc.createElementNS(Vrc[b]||b,a):this.doc.createElement(a)};g.createComment=function(a){return this.doc.createComment(a)};g.createText=function(a){return this.doc.createTextNode(a)};g.appendChild=function(a,b){(a.tagName==="TEMPLATE"&&a.content!==void 0?a.content:a).appendChild(b)};g.insertBefore=function(a,b,c){a&&(a.tagName==="TEMPLATE"&&a.content!==void 0?a.content:a).insertBefore(b,c)};
g.removeChild=function(a,b){var c=this.registry.elements;c?c.animate(b,function(){return b.remove()},this.maxAnimationTimeout):b.remove()};g.selectRootElement=function(a,b){a=typeof a==="string"?this.doc.querySelector(a):a;if(!a)throw new Vd(-5104,!1);b||(a.textContent="");return a};g.parentNode=function(a){return a.parentNode};g.nextSibling=function(a){return a.nextSibling};g.setAttribute=function(a,b,c,d){d?(b=d+":"+b,(d=Vrc[d])?a.setAttributeNS(d,b,c):a.setAttribute(b,c)):a.setAttribute(b,c)};
g.removeAttribute=function(a,b,c){if(c){var d=Vrc[c];d?a.removeAttributeNS(d,b):a.removeAttribute(c+":"+b)}else a.removeAttribute(b)};g.addClass=function(a,b){a.classList.add(b)};g.removeClass=function(a,b){a.classList.remove(b)};g.setStyle=function(a,b,c,d){d&3?a.style.setProperty(b,c,d&1?"important":""):a.style[b]=c};g.removeStyle=function(a,b,c){c&2?a.style.removeProperty(b):a.style[b]=""};g.setProperty=function(a,b,c){a!=null&&(a[b]=c)};g.setValue=function(a,b){a.nodeValue=b};
g.listen=function(a,b,c,d){if(typeof a==="string"&&(a=xic(this.doc,a),!a))throw new Vd(5102,!1);c=Zrc(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 Zrc=function(a){return function(b){if(b==="__ngUnwrap__")return a;a(b)===!1&&b.preventDefault()}},Yrc=function(a,b,c,d,e,f,h,k,q,v,A){TB.call(this,a,d,e,h,k,q,v);this.hostEl=b;this.sharedStylesHost=A;this.shadowRoot=b.attachShadow({mode:"open"});if(this.sharedStylesHost){a=this.sharedStylesHost;b=this.shadowRoot;a.hosts.add(b);e=l(a.inline);for(h=e.next();!h.done;h=e.next())h=l(h.value),k=h.next().value,h.next().value.elements.push(a.addElement(b,pDa(k,a.doc)));e=l(a.external);for(h=e.next();!h.done;h=
e.next())h=l(h.value),k=h.next().value,h.next().value.elements.push(a.addElement(b,qDa(k,a.doc)))}a=c.styles;a=sDa(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 E;if(a=(E=c.getExternalStyles)==null?void 0:E.call(c))for(c=l(a),E=c.next();!E.done;E=c.next())E=qDa(E.value,d),f&&E.setAttribute("nonce",f),this.shadowRoot.appendChild(E)};Y(Yrc,TB);
var $rc=function(a,b){return b===a.hostEl?a.shadowRoot:b};g=Yrc.prototype;g.appendChild=function(a,b){return TB.prototype.appendChild.call(this,$rc(this,a),b)};g.insertBefore=function(a,b,c){return TB.prototype.insertBefore.call(this,$rc(this,a),b,c)};g.removeChild=function(a,b){return TB.prototype.removeChild.call(this,null,b)};g.parentNode=function(a){return $rc(this,TB.prototype.parentNode.call(this,$rc(this,a)))};g.destroy=function(){this.sharedStylesHost&&this.sharedStylesHost.hosts.delete(this.shadowRoot)};
var VB=function(a,b,c,d,e,f,h,k,q,v,A,E){TB.call(this,a,e,f,h,k,q,A);this.sharedStylesHost=b;this.removeStylesOnCompDestroy=d;this._animationDisabled=v;a=c.styles;this.styles=E?sDa(E,a):a;var H;this.styleUrls=(H=c.getExternalStyles)==null?void 0:H.call(c,E)};Y(VB,TB);
VB.prototype.destroy=function(){var a=this;this.removeStylesOnCompDestroy&&(!this._animationDisabled&&this.registry.elements?this.ngZone.runOutsideAngular(function(){setTimeout(function(){Urc(a.sharedStylesHost,a.styles,a.styleUrls)},a.maxAnimationTimeout)}):Urc(this.sharedStylesHost,this.styles,this.styleUrls))};
var Xrc=function(a,b,c,d,e,f,h,k,q,v,A,E){d=d+"-"+c.id;VB.call(this,a,b,c,e,f,h,k,q,v,A,E,d);this.contentAttr="_ngcontent-%COMP%".replace(rDa,d);this.hostAttr="_nghost-%COMP%".replace(rDa,d)};Y(Xrc,VB);Xrc.prototype.createElement=function(a,b){a=VB.prototype.createElement.call(this,a,b);VB.prototype.setAttribute.call(this,a,this.contentAttr,"");return a};var WB=function(a){this._doc=a};Y(WB,Qrc);WB.prototype.supports=function(){return!0};WB.prototype.addEventListener=function(a,b,c,d){var e=this;a.addEventListener(b,c,d);return function(){return e.removeEventListener(a,b,c,d)}};WB.prototype.removeEventListener=function(a,b,c,d){return a.removeEventListener(b,c,d)};WB.\u0275fac=function(a){return new (a||WB)(be(ui))};WB.\u0275prov=Cd({token:WB,factory:WB.\u0275fac});var asc=["alt","control","meta","shift"],bsc={"\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"},csc={alt:function(a){return a.altKey},control:function(a){return a.ctrlKey},meta:function(a){return a.metaKey},shift:function(a){return a.shiftKey}},XB=function(a){this._doc=a};Y(XB,Qrc);XB.prototype.supports=function(a){return dsc(a)!=null};
XB.prototype.addEventListener=function(a,b,c,d){var e=dsc(b),f=esc(e.fullKey,c,this.manager._zone);return this.manager._zone.runOutsideAngular(function(){return Mrc(a,e.domEventName,f,d)})};
var dsc=function(a){var b=a.toLowerCase().split(".");a=b.shift();if(b.length===0||a!=="keydown"&&a!=="keyup")return null;var c=fsc(b.pop()),d="",e=b.indexOf("code");e>-1&&(b.splice(e,1),d="code.");asc.forEach(function(f){var h=b.indexOf(f);h>-1&&(b.splice(h,1),d+=f+".")});d+=c;if(b.length!=0||c.length===0)return null;a={domEventName:a};a.fullKey=d;return a},gsc=function(a,b){var c=bsc[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");asc.forEach(function(e){e!==c&&(0,csc[e])(a)&&(d+=e+".")});d+=c;return d===b},esc=function(a,b,c){return function(d){gsc(d,a)&&c.runGuarded(function(){return b(d)})}},fsc=function(a){return a==="esc"?"escape":a};XB.\u0275fac=function(a){return new (a||XB)(be(ui))};XB.\u0275prov=Cd({token:XB,factory:XB.\u0275fac});var Yhc=Vna(hic,"browser",[{provide:xgc,useValue:"browser"},{provide:Xna,useValue:function(){var a=new PB;uic!=null||(uic=a)},multi:!0},{provide:ui,useFactory:function(){return pha=document}}]);new le("");
var hsc=[{provide:xhc,useClass:Orc},{provide:whc,useClass:Ev,deps:[Ph,Fv,xhc]},{provide:Ev,useClass:Ev,deps:[Ph,Fv,xhc]}],isc=[{provide:Wna,useValue:"root"},{provide:Th,useFactory:function(){return new Th}},{provide:Prc,useClass:WB,multi:!0,deps:[ui]},{provide:Prc,useClass:XB,multi:!0,deps:[ui]},UB,SB,RB,{provide:qf,useExisting:UB},{provide:Eic,useClass:QB},[]],YB=function(){};YB.\u0275fac=function(a){return new (a||YB)};YB.\u0275mod=uf({type:YB});
YB.\u0275inj=Dd({providers:[].concat(p(isc),p(hsc)),imports:[aw,Gv]});var ZB=function(a){this._doc=a};ZB.prototype.getTitle=function(){return this._doc.title};ZB.prototype.setTitle=function(a){this._doc.title=a||""};ZB.\u0275fac=function(a){return new (a||ZB)(be(ui))};ZB.\u0275prov=Cd({token:ZB,factory:ZB.\u0275fac,providedIn:"root"});new le("");new le("");var jsc=function(){},ksc=function(){};var On=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&&lsc(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){lsc(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;msc(b,c,d)})}:this.headers=
new Map};g=On.prototype;g.has=function(a){this.init();return this.headers.has(a.toLowerCase())};g.get=function(a){this.init();return(a=this.headers.get(a.toLowerCase()))&&a.length>0?a[0]:null};g.keys=function(){this.init();return Array.from(this.normalizedNames.values())};g.getAll=function(a){this.init();return this.headers.get(a.toLowerCase())||null};g.append=function(a,b){return this.clone({name:a,value:b,op:"a"})};g.set=function(a,b){return this.clone({name:a,value:b,op:"s"})};
g.delete=function(a,b){return this.clone({name:a,value:b,op:"d"})};var nsc=function(a,b,c){a.normalizedNames.has(c)||a.normalizedNames.set(c,b)};On.prototype.init=function(){var a=this;this.lazyInit&&(this.lazyInit instanceof On?osc(this,this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(b){return psc(a,b)}),this.lazyUpdate=null))};
var osc=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))})};On.prototype.clone=function(a){var b=new On;b.lazyInit=this.lazyInit&&this.lazyInit instanceof On?this.lazyInit:this;b.lazyUpdate=(this.lazyUpdate||[]).concat([a]);return b};
var psc=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;nsc(a,b.name,c);b=(b.op==="a"?a.headers.get(c):void 0)||[];b.push.apply(b,p(d));a.headers.set(c,b);break;case "d":var e=b.value;if(e){if(d=a.headers.get(c))d=d.filter(function(f){return e.indexOf(f)===-1}),d.length===0?(a.headers.delete(c),a.normalizedNames.delete(c)):a.headers.set(c,d)}else a.headers.delete(c),a.normalizedNames.delete(c)}},lsc=function(a,
b,c){var d=b.toLowerCase();nsc(a,b,d);a.headers.has(d)?a.headers.get(d).push(c):a.headers.set(d,[c])},msc=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);nsc(a,b,d)};On.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 qsc=function(){},uDa=/%(\d[a-f0-9])/gi,vDa={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"},Pn=function(a){var b=this;a=a===void 0?{}:a;this.cloneFrom=this.updates=null;this.encoder=a.encoder||new qsc;if(a.fromString){if(a.fromObject)throw new Vd(2805,!1);this.map=tDa(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(xDa):[""+d];b.map.set(c,d)})):this.map=null};g=Pn.prototype;
g.has=function(a){this.init();return this.map.has(a)};g.get=function(a){this.init();return(a=this.map.get(a))?a[0]:null};g.getAll=function(a){this.init();return this.map.get(a)||null};g.keys=function(){this.init();return Array.from(this.map.keys())};g.append=function(a,b){return this.clone({param:a,value:b,op:"a"})};g.set=function(a,b){return this.clone({param:a,value:b,op:"s"})};g.delete=function(a,b){return this.clone({param:a,value:b,op:"d"})};
g.toString=function(){var a=this;this.init();return this.keys().map(function(b){var c=wDa(b);return a.map.get(b).map(function(d){return c+"="+wDa(d)}).join("&")}).filter(function(b){return b!==""}).join("&")};g.clone=function(a){var b=new Pn({encoder:this.encoder});b.cloneFrom=this.cloneFrom||this;b.updates=(this.updates||[]).concat(a);return b};
g.init=function(){var a=this;this.map===null&&(this.map=new Map);this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(b){return a.map.set(b,a.cloneFrom.map.get(b))}),this.updates.forEach(function(b){switch(b.op){case "a":case "s":var c=(b.op==="a"?a.map.get(b.param):void 0)||[];c.push(""+b.value);a.map.set(b.param,c);break;case "d":if(b.value!==void 0){c=a.map.get(b.param)||[];var d=c.indexOf(""+b.value);d!==-1&&c.splice(d,1);c.length>0?a.map.set(b.param,c):a.map.delete(b.param)}else a.map.delete(b.param)}}),
this.cloneFrom=this.updates=null)};var rsc=function(){this.map=new Map};g=rsc.prototype;g.set=function(a,b){this.map.set(a,b);return this};g.get=function(a){this.map.has(a)||this.map.set(a,a.defaultValue());return this.map.get(a)};g.delete=function(a){this.map.delete(a);return this};g.has=function(a){return this.map.has(a)};g.keys=function(){return this.map.keys()};var Qn=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 Vd(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);this.transferCache=c.transferCache}this.headers!=
null||(this.headers=new On);this.context!=null||(this.context=new rsc);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 Pn,this.urlWithParams=b)},ssc=function(a){return a.body===null?null:typeof a.body==="string"||yDa(a.body)||zDa(a.body)||ADa(a.body)||typeof URLSearchParams!=="undefined"&&a.body instanceof URLSearchParams?a.body:a.body instanceof Pn?a.body.toString():typeof a.body===
"object"||typeof a.body==="boolean"||Array.isArray(a.body)?JSON.stringify(a.body):a.body.toString()};
Qn.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 h=a.cache||this.cache,k=a.mode||this.mode,q=a.redirect||this.redirect,v=a.credentials||this.credentials,A=a.referrer||this.referrer,E=a.integrity||this.integrity,H,L=(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 S,aa=
(S=a.withCredentials)!=null?S:this.withCredentials,ka;S=(ka=a.reportProgress)!=null?ka:this.reportProgress;ka=a.headers||this.headers;var na=a.params||this.params,za,Na=(za=a.context)!=null?za:this.context;a.setHeaders!==void 0&&(ka=Object.keys(a.setHeaders).reduce(function(Pa,hb){return Pa.set(hb,a.setHeaders[hb])},ka));a.setParams&&(na=Object.keys(a.setParams).reduce(function(Pa,hb){return Pa.set(hb,a.setParams[hb])},na));return new Qn(b,c,O,{params:na,headers:ka,context:Na,reportProgress:S,responseType:d,
withCredentials:aa,transferCache:L,keepalive:f,cache:h,priority:e,timeout:H,mode:k,redirect:q,credentials:v,referrer:A,integrity:E})};var $B=function(a,b,c){b=b===void 0?200:b;c=c===void 0?"OK":c;this.headers=a.headers||new On;this.status=a.status!==void 0?a.status:b;this.statusText=a.statusText||c;this.url=a.url||null;this.redirected=a.redirected;this.ok=this.status>=200&&this.status<300},tsc=function(a){a=a===void 0?{}:a;$B.call(this,a);this.type=2};Y(tsc,$B);
tsc.prototype.clone=function(a){a=a===void 0?{}:a;return new tsc({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 aC=function(a){a=a===void 0?{}:a;$B.call(this,a);this.type=4;this.body=a.body!==void 0?a.body:null};Y(aC,$B);
aC.prototype.clone=function(a){a=a===void 0?{}:a;var b;return new aC({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})};
var usc=function(a){$B.call(this,a,0,"Unknown Error");this.name="HttpErrorResponse";this.ok=!1;this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(a.url||"(unknown url)"):"Http failure response for "+(a.url||"(unknown url)")+": "+a.status+" "+a.statusText;this.error=a.error||null};Y(usc,$B);var bC=function(a){this.handler=a};g=bC.prototype;
g.request=function(a,b,c){var d=this;c=c===void 0?{}:c;if(a instanceof Qn)b=a;else{var e=void 0;e=c.headers instanceof On?c.headers:new On(c.headers);var f=void 0;c.params&&(f=c.params instanceof Pn?c.params:new Pn({fromObject:c.params}));b=new Qn(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,integrity:c.integrity,timeout:c.timeout})}e=Nf(b).pipe(jg(function(h){return d.handler.handle(h)}));if(a instanceof Qn||c.observe==="events")return e;a=e.pipe(eg(function(h){return h instanceof aC}));switch(c.observe||"body"){case "body":switch(b.responseType){case "arraybuffer":return a.pipe(C(function(h){if(h.body!==null&&!(h.body instanceof ArrayBuffer))throw new Vd(2806,!1);return h.body}));case "blob":return a.pipe(C(function(h){if(h.body!==
null&&!(h.body instanceof Blob))throw new Vd(2807,!1);return h.body}));case "text":return a.pipe(C(function(h){if(h.body!==null&&typeof h.body!=="string")throw new Vd(2808,!1);return h.body}));default:return a.pipe(C(function(h){return h.body}))}case "response":return a;default:throw new Vd(2809,!1);}};g.delete=function(a,b){b=b===void 0?{}:b;return this.request("DELETE",a,b)};g.get=function(a,b){b=b===void 0?{}:b;return this.request("GET",a,b)};
g.head=function(a,b){b=b===void 0?{}:b;return this.request("HEAD",a,b)};g.options=function(a,b){b=b===void 0?{}:b;return this.request("OPTIONS",a,b)};g.post=function(a,b,c){c=c===void 0?{}:c;return this.request("POST",a,BDa(c,b))};g.put=function(a,b,c){c=c===void 0?{}:c;return this.request("PUT",a,BDa(c,b))};bC.\u0275fac=function(a){return new (a||bC)(be(jsc))};bC.\u0275prov=Cd({token:bC,factory:bC.\u0275fac});var vsc=new le("");var wsc=new le(""),xsc=new le(""),ysc=new le(""),zsc=new le("",{providedIn:"root",factory:function(){return!0}}),cC=function(a,b){this.backend=a;this.injector=b;this.chain=null;this.pendingTasks=r(Cv);this.contributeToStability=r(zsc)};Y(cC,jsc);
cC.prototype.handle=function(a){var b=this;this.chain===null&&(this.chain=Array.from(new Set([].concat(p(this.injector.get(xsc)),p(this.injector.get(ysc,[]))))).reduceRight(function(d,e){return EDa(d,e,b.injector)},CDa));if(this.contributeToStability){var c=this.pendingTasks.add();return this.chain(a,function(d){return b.backend.handle(d)}).pipe(pg(c))}return this.chain(a,function(d){return b.backend.handle(d)})};cC.\u0275fac=function(a){return new (a||cC)(be(ksc),be(pf))};
cC.\u0275prov=Cd({token:cC,factory:cC.\u0275fac});var Asc=/^\)\]\}',?\n/,Bsc=RegExp("^X-Request-URL:","m"),dC=function(a){this.xhrFactory=a};
dC.prototype.handle=function(a){if(a.method==="JSONP")throw new Vd(-2800,!1);var b=this.xhrFactory;return Nf(null).pipe(xg(function(){return new Cf(function(c){var d=b.build();d.open(a.method,a.urlWithParams);a.withCredentials&&(d.withCredentials=!0);a.headers.forEach(function(O,S){return d.setRequestHeader(O,S.join(","))});a.headers.has("Accept")||d.setRequestHeader("Accept","application/json, text/plain, */*");if(!a.headers.has("Content-Type")){var e=a.body===null||ADa(a.body)?null:zDa(a.body)?
a.body.type||null:yDa(a.body)?null:typeof a.body==="string"?"text/plain":a.body instanceof Pn?"application/x-www-form-urlencoded;charset=UTF-8":typeof a.body==="object"||typeof a.body==="number"||typeof a.body==="boolean"?"application/json":null;e!==null&&d.setRequestHeader("Content-Type",e)}a.timeout&&(d.timeout=a.timeout);a.responseType&&(e=a.responseType.toLowerCase(),d.responseType=e!=="json"?e:"text");var f=ssc(a),h=null,k=function(){if(h!==null)return h;var O=d.statusText||"OK",S=new On(d.getAllResponseHeaders()),
aa=("responseURL"in d&&d.responseURL?d.responseURL:Bsc.test(d.getAllResponseHeaders())?d.getResponseHeader("X-Request-URL"):null)||a.url;return h=new tsc({headers:S,status:d.status,statusText:O,url:aa})},q=function(){var O=k(),S=O.headers,aa=O.status,ka=O.statusText;O=O.url;var na=null;aa!==204&&(na=typeof d.response==="undefined"?d.responseText:d.response);aa===0&&(aa=na?200:0);var za=aa>=200&&aa<300;if(a.responseType==="json"&&typeof na==="string"){var Na=na;na=na.replace(Asc,"");try{na=na!==""?
JSON.parse(na):null}catch(Pa){na=Na,za&&(za=!1,na={error:Pa,text:na})}}za?(c.next(new aC({body:na,headers:S,status:aa,statusText:ka,url:O||void 0})),c.complete()):c.error(new usc({error:na,headers:S,status:aa,statusText:ka,url:O||void 0}))},v=function(O){var S=k().url;O=new usc({error:O,status:d.status||0,statusText:d.statusText||"Unknown Error",url:S||void 0});c.error(O)},A=v;a.timeout&&(A=function(){var O=k().url;O=new usc({error:new DOMException("Request timed out","TimeoutError"),status:d.status||
0,statusText:d.statusText||"Request timeout",url:O||void 0});c.error(O)});var E=!1,H=function(O){E||(c.next(k()),E=!0);var S={type:3,loaded:O.loaded};O.lengthComputable&&(S.total=O.total);a.responseType==="text"&&d.responseText&&(S.partialText=d.responseText);c.next(S)},L=function(O){var S={type:1,loaded:O.loaded};O.lengthComputable&&(S.total=O.total);c.next(S)};d.addEventListener("load",q);d.addEventListener("error",v);d.addEventListener("timeout",A);d.addEventListener("abort",v);a.reportProgress&&
(d.addEventListener("progress",H),f!==null&&d.upload&&d.upload.addEventListener("progress",L));d.send(f);c.next({type:0});return function(){d.removeEventListener("error",v);d.removeEventListener("abort",v);d.removeEventListener("load",q);d.removeEventListener("timeout",A);a.reportProgress&&(d.removeEventListener("progress",H),f!==null&&d.upload&&d.upload.removeEventListener("progress",L));d.readyState!==d.DONE&&d.abort()}})}))};dC.\u0275fac=function(a){return new (a||dC)(be(Eic))};
dC.\u0275prov=Cd({token:dC,factory:dC.\u0275fac});var FDa=new le(""),Csc=new le("",{providedIn:"root",factory:function(){return"XSRF-TOKEN"}}),HDa=new le("",{providedIn:"root",factory:function(){return"X-XSRF-TOKEN"}}),GDa=function(){},eC=function(a,b){this.doc=a;this.cookieName=b;this.lastCookieString="";this.lastToken=null};
eC.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};eC.\u0275fac=function(a){return new (a||eC)(be(ui),be(Csc))};
eC.\u0275prov=Cd({token:eC,factory:eC.\u0275fac});var Dsc=new le("");var fC=function(){};fC.\u0275fac=function(a){return new (a||fC)};fC.\u0275mod=uf({type:fC});
fC.\u0275inj=Dd({providers:[function(){for(var a=[bC,dC,cC,{provide:jsc,useExisting:cC},{provide:ksc,useFactory:function(){var d;return(d=r(vsc,{optional:!0}))!=null?d:r(dC)}},{provide:xsc,useValue:IDa,multi:!0},{provide:FDa,useValue:!0},{provide:GDa,useClass:eC}],b=l(ge.apply(0,arguments)),c=b.next();!c.done;c=b.next())a.push.apply(a,p(c.value.\u0275providers));return{"\u0275providers":a}}({"\u0275kind":1,"\u0275providers":[{provide:Dsc,useFactory:function(){var a=null;return function(b,c){if(a===
null){var d;a=((d=r(wsc,{optional:!0}))!=null?d:[]).reduceRight(DDa,CDa)}d=r(Cv);return r(zsc)?(d=d.add(),a(b,c).pipe(pg(d))):a(b,c)}}},{provide:xsc,useExisting:Dsc,multi:!0}]})]});var Esc=KDa("json");Esc.arrayBuffer=KDa("arraybuffer");Esc.blob=KDa("blob");Esc.text=KDa("text");
var JDa=function(a,b,c,d,e){Ov.call(this,b,function(h){var k=h.params;var q=h.abortSignal;var v=function(){return L.unsubscribe()};q.addEventListener("abort",v);var A=nh.apply(null,[{value:void 0}].concat(p([]))),E;h=new Promise(function(O){return E=O});var H=function(O){A.set(O);var S;(S=E)==null||S(A);E=void 0};var L=f.client.request(k).subscribe({next:function(O){switch(O.type){case 4:f._headers.set(O.headers);f._statusCode.set(O.status);try{H({value:d?d(O.body):O.body})}catch(S){H({error:S instanceof
Error?S:new dic(S)})}break;case 3:f._progress.set(O)}},error:function(O){O instanceof usc&&(f._headers.set(O.headers),f._statusCode.set(O.status));H({error:O});q.removeEventListener("abort",v)},complete:function(){E&&H({error:new Vd(991,!1)});q.removeEventListener("abort",v)}});return h},c,e,a);var f=this;this._headers=goa({source:this.extRequest,computation:function(){}});this._progress=goa({source:this.extRequest,computation:function(){}});this._statusCode=goa({source:this.extRequest,computation:function(){}});
this.headers=Zh.apply(null,[function(){return f.status()==="resolved"||f.status()==="error"?f._headers():void 0}].concat(p([])));this.progress=this._progress.asReadonly();this.statusCode=this._statusCode.asReadonly();this.client=a.get(bC)};Y(JDa,Ov);JDa.prototype.set=function(a){Ov.prototype.set.call(this,a);this._headers.set(void 0);this._progress.set(void 0);this._statusCode.set(void 0)};new le("");new le("");var gC=function(){};gC.\u0275fac=function(a){return new (a||gC)};gC.\u0275prov=Cd({token:gC,factory:function(a){var b=null;return b=a?new (a||gC):be(hC)},providedIn:"root"});var hC=function(a){this._doc=a};Y(hC,gC);
hC.prototype.sanitize=function(a,b){if(b==null)return null;switch(a){case 0:return b;case 1:return df(b,"HTML")?cf(b):nia(this._doc,String(b)).toString();case 2:return df(b,"Style")?cf(b):b;case 3:if(df(b,"Script"))return cf(b);throw new Vd(5200,!1);case 4:return df(b,"URL")?cf(b):$ha(String(b));case 5:if(df(b,"ResourceURL"))return cf(b);throw new Vd(5201,!1);default:throw new Vd(5202,!1);}};hC.prototype.bypassSecurityTrustHtml=function(a){return new Fgc(a)};hC.prototype.bypassSecurityTrustUrl=function(a){return new Ggc(a)};
hC.prototype.bypassSecurityTrustResourceUrl=function(a){return new Hgc(a)};hC.\u0275fac=function(a){return new (a||hC)(be(ui))};hC.\u0275prov=Cd({token:hC,factory:hC.\u0275fac,providedIn:"root"});var iC=function(a){this.decorated=new hC(a)};Y(iC,gC);iC.prototype.sanitize=function(a,b){if(b==null)return null;if(b instanceof Wc||$c(b)||b instanceof ed){if(Fsc(b,a))return this.decorated.sanitize(a,Gsc(this,b));throw Error("Xb`"+Qgc[a]+"`"+b);}return this.decorated.sanitize(a,b)};iC.prototype.bypassSecurityTrustHtml=function(){throw Error("Yb");};iC.prototype.bypassSecurityTrustUrl=function(){throw Error("Yb");};iC.prototype.bypassSecurityTrustResourceUrl=function(){throw Error("Yb");};
var Gsc=function(a,b){if(b!=null){if(b instanceof ed)return a.decorated.bypassSecurityTrustHtml(String(b));if($c(b))return a.decorated.bypassSecurityTrustUrl(ad(b));if(b instanceof Wc)return a.decorated.bypassSecurityTrustResourceUrl(String(b))}return null},Fsc=function(a,b){switch(b){case 1:return a instanceof ed;case 4:return $c(a)||a instanceof Wc;case 5:return a instanceof Wc;case 3:return!1;default:return!1}};iC.\u0275fac=function(a){return new (a||iC)(be(ui))};iC.\u0275prov=Cd({token:iC,factory:iC.\u0275fac});var Hsc=[{provide:vja,useExisting:gC},{provide:gC,useClass:iC}],jC=function(){};jC.\u0275fac=function(a){return new (a||jC)};jC.\u0275mod=uf({type:jC});jC.\u0275inj=Dd({providers:Hsc,imports:[YB]});var kC=function(){},Isc=function(a){for(a=a.root;a!==void 0;){var b=void 0;var c=(b=a.data[mCa])!=null?b:c;a=a.children.find(function(d){return d.outlet==="primary"})}return c};kC.\u0275fac=function(a){return new (a||kC)};kC.\u0275prov=Cd({token:kC,factory:function(){return r(lC)},providedIn:"root"});var lC=function(a){this.title=a};Y(lC,kC);lC.\u0275fac=function(a){return new (a||lC)(be(ZB))};lC.\u0275prov=Cd({token:lC,factory:lC.\u0275fac,providedIn:"root"});var mC=new le("",{providedIn:"root",factory:function(){return{}}});var PDa=new le(""),nC=function(){this.componentLoaders=new WeakMap;this.childrenLoaders=new WeakMap;r(Mv)};
nC.prototype.loadComponent=function(a,b){var c=this;if(this.componentLoaders.get(b))return this.componentLoaders.get(b);if(b._loadedComponent)return Nf(b._loadedComponent);if(this.onLoadStartListener)this.onLoadStartListener(b);a=An(oe(a,function(){return b.loadComponent()})).pipe(C(LDa),xg(MDa),zg(function(d){if(c.onLoadEndListener)c.onLoadEndListener(b);b._loadedComponent=d}),pg(function(){c.componentLoaders.delete(b)}));a=(new rg(a,function(){return new tg})).pipe(rka());this.componentLoaders.set(b,
a);return a};nC.prototype.loadChildren=function(a,b){var c=this;if(this.childrenLoaders.get(b))return this.childrenLoaders.get(b);if(b._loadedRoutes)return Nf({routes:b._loadedRoutes,injector:b._loadedInjector});if(this.onLoadStartListener)this.onLoadStartListener(b);a=QDa(b,a,this.onLoadEndListener).pipe(pg(function(){c.childrenLoaders.delete(b)}));a=(new rg(a,function(){return new tg})).pipe(rka());this.childrenLoaders.set(b,a);return a};nC.\u0275fac=function(a){return new (a||nC)};
nC.\u0275prov=Cd({token:nC,factory:nC.\u0275fac,providedIn:"root"});var oC=function(){};oC.\u0275fac=function(a){return new (a||oC)};oC.\u0275prov=Cd({token:oC,factory:function(){return r(pC)},providedIn:"root"});var pC=function(){};pC.prototype.merge=function(a){return a};pC.\u0275fac=function(a){return new (a||pC)};pC.\u0275prov=Cd({token:pC,factory:pC.\u0275fac,providedIn:"root"});var Jsc=new le(""),RDa=new le("");var Ksc=new le(""),qC=function(){var a=this;this.currentNavigation=nh.apply(null,[null].concat(p([{equal:function(){return!1}}])));this.currentTransition=null;this.lastSuccessfulNavigation=nh.apply(null,[null].concat(p([])));this.events=new tg;this.transitionAbortWithErrorSubject=new tg;this.configLoader=r(nC);this.environmentInjector=r(pf);this.destroyRef=r(Gg);this.urlSerializer=r(HB);this.rootContexts=r(KB);this.location=r(Mi);this.inputBindingEnabled=r(nrc,{optional:!0})!==null;this.titleStrategy=
r(kC);this.options=r(mC,{optional:!0})||{};this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";this.urlHandlingStrategy=r(oC);this.createViewTransition=r(Jsc,{optional:!0});this.navigationErrorHandler=r(Ksc,{optional:!0});this.navigationId=0;this.afterPreactivation=function(){return Nf(void 0)};this.rootComponentType=null;this.destroyed=!1;this.configLoader.onLoadEndListener=function(b){return a.events.next(new crc(b))};this.configLoader.onLoadStartListener=function(b){return a.events.next(new brc(b))};
this.destroyRef.onDestroy(function(){a.destroyed=!0})};qC.prototype.complete=function(){var a;(a=this.transitions)==null||a.complete()};
var Lsc=function(a,b){var c=++a.navigationId;Sd(function(){var d;(d=a.transitions)==null||d.next(Object.assign({},b,{extractedUrl:b.rawUrl,targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:c}))})},Psc=function(a,b){a.transitions=new Kn(null);return a.transitions.pipe(eg(function(c){return c!==null}),xg(function(c){var d=!1;return Nf(c).pipe(xg(function(e){if(a.navigationId>c.id)return Msc(a,c,"",
1),cg;a.currentTransition=c;var f=a.lastSuccessfulNavigation();a.currentNavigation.set({id:e.id,initialUrl:e.rawUrl,extractedUrl:e.extractedUrl,targetBrowserUrl:typeof e.extras.browserUrl==="string"?a.urlSerializer.parse(e.extras.browserUrl):e.extras.browserUrl,trigger:e.source,extras:e.extras,previousNavigation:f?Object.assign({},f,{previousNavigation:null}):null,abort:function(){return e.abortController.abort()}});f=!b.navigated||Nsc(a)||Osc(a);var h,k=(h=e.extras.onSameUrlNavigation)!=null?h:b.onSameUrlNavigation;
return f||k==="reload"?Nf(e).pipe(xg(function(q){a.events.next(new Ko(q.id,a.urlSerializer.serialize(q.extractedUrl),q.source,q.restoredState));return q.id!==a.navigationId?cg:Promise.resolve(q)}),hDa(a.environmentInjector,a.configLoader,a.rootComponentType,b.config,a.urlSerializer,a.paramsInheritanceStrategy),zg(function(q){c.targetSnapshot=q.targetSnapshot;c.urlAfterRedirects=q.urlAfterRedirects;a.currentNavigation.update(function(A){A.finalUrl=q.urlAfterRedirects;return A});var v=new Xqc(q.id,
a.urlSerializer.serialize(q.extractedUrl),a.urlSerializer.serialize(q.urlAfterRedirects),q.targetSnapshot);a.events.next(v)})):(a.events.next(new Un(e.id,a.urlSerializer.serialize(e.rawUrl),"",0)),e.resolve(!1),cg)}),zg(function(e){e=new Yqc(e.id,a.urlSerializer.serialize(e.extractedUrl),a.urlSerializer.serialize(e.urlAfterRedirects),e.targetSnapshot);a.events.next(e)}),C(function(e){var f=Object,h=f.assign;var k=e.currentSnapshot;var q=e.targetSnapshot._root;k=FCa(q,k?k._root:null,a.rootContexts,
[q.value]);return a.currentTransition=c=h.call(f,{},e,{guards:k})}),MCa(a.environmentInjector,function(e){return a.events.next(e)}),zg(function(e){if((c.guardsResult=e.guardsResult)&&typeof e.guardsResult!=="boolean")throw ACa(e.guardsResult);e=new Zqc(e.id,a.urlSerializer.serialize(e.extractedUrl),a.urlSerializer.serialize(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);a.events.next(e)}),eg(function(e){return e.guardsResult?!0:(Msc(a,e,"",3),!1)}),nDa(function(e){if(e.guards.canActivateChecks.length!==
0)return Nf(e).pipe(zg(function(f){f=new $qc(f.id,a.urlSerializer.serialize(f.extractedUrl),a.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);a.events.next(f)}),xg(function(f){var h=!1;return Nf(f).pipe(kDa(a.paramsInheritanceStrategy,a.environmentInjector),zg({next:function(){return h=!0},complete:function(){h||Msc(a,f,"",2)}}))}),zg(function(f){f=new arc(f.id,a.urlSerializer.serialize(f.extractedUrl),a.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);a.events.next(f)}))}),
nDa(function(e){var f=function(h){var k=[],q;if((q=h.routeConfig)==null?0:q.loadComponent){var v;q=(v=Hn(h))!=null?v:a.environmentInjector;k.push(a.configLoader.loadComponent(q,h.routeConfig).pipe(zg(function(A){h.component=A}),C(function(){})))}v=l(h.children);for(q=v.next();!q.done;q=v.next())k.push.apply(k,p(f(q.value)));return k};return Uf(f(e.targetSnapshot.root)).pipe(kla(null),mg(1))}),nDa(function(){return a.afterPreactivation()}),xg(function(){var e=c,f=e.currentSnapshot;e=e.targetSnapshot;
var h,k=(h=a.createViewTransition)==null?void 0:h.call(a,a.environmentInjector,f.root,e.root);return k?Ef(k).pipe(C(function(){return c})):Nf(c)}),C(function(e){var f=wCa(b.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);a.currentTransition=c=Object.assign({},e,{targetRouterState:f});a.currentNavigation.update(function(h){h.targetRouterState=f;return h});return c}),zg(function(){a.events.next(new grc)}),vrc(a.rootContexts,b.routeReuseStrategy,function(e){return a.events.next(e)},a.inputBindingEnabled),
mg(1),yg((new Cf(function(e){var f=c.abortController.signal,h=function(){return e.next()};f.addEventListener("abort",h);return function(){return f.removeEventListener("abort",h)}})).pipe(eg(function(){return!d&&!c.targetRouterState}),zg(function(){Msc(a,c,c.abortController.signal.reason+"",4)}))),zg({next:function(e){d=!0;a.lastSuccessfulNavigation.set(Sd(a.currentNavigation));a.events.next(new Rn(e.id,a.urlSerializer.serialize(e.extractedUrl),a.urlSerializer.serialize(e.urlAfterRedirects)));var f;
if((f=a.titleStrategy)!=null){var h=Isc(e.targetRouterState.snapshot);h!==void 0&&f.title.setTitle(h)}e.resolve(!0)},complete:function(){d=!0}}),yg(a.transitionAbortWithErrorSubject.pipe(zg(function(e){throw e;}))),pg(function(){d||Msc(a,c,"",1);var e;((e=a.currentTransition)==null?void 0:e.id)===c.id&&(a.currentNavigation.set(null),a.currentTransition=null)}),hg(function(e){if(a.destroyed)return c.resolve(!1),cg;d=!0;if(BCa(e))a.events.next(new Sn(c.id,a.urlSerializer.serialize(c.extractedUrl),e.message,
e.cancellationCode)),BCa(e)&&En(e.url)?a.events.next(new hrc(e.url,e.navigationBehaviorOptions)):c.resolve(!1);else{var f,h=new Tn(c.id,a.urlSerializer.serialize(c.extractedUrl),e,(f=c.targetSnapshot)!=null?f:void 0);try{throw oe(a.environmentInjector,function(){var k;return(k=a.navigationErrorHandler)==null?void 0:k.call(a,h)}),a.events.next(h),e;}catch(k){a.options.resolveNavigationPromiseOnError?c.resolve(!1):c.reject(k)}}return cg}))}))},Msc=function(a,b,c,d){c=new Sn(b.id,a.urlSerializer.serialize(b.extractedUrl),
c,d);a.events.next(c);b.resolve(!1)},Nsc=function(a){var b,c;return((b=a.currentTransition)==null?void 0:b.extractedUrl.toString())!==((c=a.currentTransition)==null?void 0:c.currentUrlTree.toString())},Osc=function(a){var b=a.urlSerializer.parse(a.location.path(!0));a=Sd(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)};
nd.Object.defineProperties(qC.prototype,{hasRequestedNavigation:{configurable:!0,enumerable:!0,get:function(){return this.navigationId!==0}}});qC.\u0275fac=function(a){return new (a||qC)};qC.\u0275prov=Cd({token:qC,factory:qC.\u0275fac,providedIn:"root"});var rC=function(){};rC.\u0275fac=function(a){return new (a||rC)};rC.\u0275prov=Cd({token:rC,factory:function(){return r(sC)},providedIn:"root"});var Qsc=function(){};Qsc.prototype.store=function(){};Qsc.prototype.retrieve=function(){return null};Qsc.prototype.shouldReuseRoute=function(a,b){return a.routeConfig===b.routeConfig};var sC=function(){};Y(sC,Qsc);sC.\u0275fac=function(){var a;return function(b){return(a||(a=Re(sC)))(b||sC)}}();sC.\u0275prov=Cd({token:sC,factory:sC.\u0275fac,providedIn:"root"});var tC=function(){this.urlSerializer=r(HB);this.options=r(mC,{optional:!0})||{};this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";this.location=r(Mi);this.urlHandlingStrategy=r(oC);this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";this.rawUrlTree=this.currentUrlTree=new Dn;var a=new lrc("",new In(new MB([],{},{},"",{},"primary",null,null,{}),[])),b=new Jn(new Kn([new Fn("",{})]),new Kn({}),new Kn({}),new Kn(""),new Kn({}),"primary",null,a.root);
b.snapshot=a.root;this.routerState=new vCa(new In(b,[]),a);this.stateMemento=Rsc(this)},Ssc=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 Dn?a.urlSerializer.serialize(c):c},Tsc=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},Rsc=function(a){return{rawUrlTree:a.rawUrlTree,
currentUrlTree:a.currentUrlTree,routerState:a.routerState}},Usc=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)};tC.\u0275fac=function(a){return new (a||tC)};tC.\u0275prov=Cd({token:tC,factory:function(){return r(uC)},providedIn:"root"});var uC=function(){tC.apply(this,arguments);this.currentPageId=0;this.lastSuccessfulId=-1};Y(uC,tC);
uC.prototype.restoredState=function(){return this.location.getState()};
var Vsc=function(a,b){return a.location.subscribe(function(c){c.type==="popstate"&&setTimeout(function(){b(c.url,c.state,"popstate")})})},Xsc=function(a,b,c){var d=c.extras;c=c.id;var e=d.replaceUrl;d=d.state;var f=a.location;var h=h===void 0?"":h;f.path()==f.normalize(b+ji(h))||e?(h=Object.assign({},d,Wsc(a,c,a.browserPageId)),a.location.replaceState(b,"",h)):(h=Object.assign({},d,Wsc(a,c,a.browserPageId+1)),a.location.go(b,"",h))},Zsc=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&&(Usc(a,b),Ysc(a))):a.canceledNavigationResolution==="replace"&&(c&&Usc(a,b),Ysc(a))},Ysc=function(a){a.location.replaceState(a.urlSerializer.serialize(a.rawUrlTree),"",Wsc(a,a.lastSuccessfulId,a.currentPageId))},Wsc=function(a,b,c){return a.canceledNavigationResolution==="computed"?{navigationId:b,"\u0275routerPageId":c}:{navigationId:b}};
nd.Object.defineProperties(uC.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}}});uC.\u0275fac=function(){var a;return function(b){return(a||(a=Re(uC)))(b||uC)}}();uC.\u0275prov=Cd({token:uC,factory:uC.\u0275fac,providedIn:"root"});var $sc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},atc={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},vC=function(){var a=this;this.disposed=!1;this.console=r(uv);this.stateManager=r(tC);this.options=r(mC,{optional:!0})||{};this.pendingTasks=r(Uh);this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";this.navigationTransitions=r(qC);this.urlSerializer=r(HB);this.location=r(Mi);this.urlHandlingStrategy=r(oC);this.injector=
r(pf);this._events=new tg;this.navigated=!1;this.routeReuseStrategy=r(rC);this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";var b,c;this.config=(c=(b=r(PDa,{optional:!0}))==null?void 0:b.flat())!=null?c:[];r(nrc,{optional:!0});this.currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();this.eventsSubscription=new yf;this.config=this.config.map(sCa);this.navigated=!1;Psc(this.navigationTransitions,this).subscribe({error:function(d){a.console.warn(d)}});btc(this)},
btc=function(a){var b=a.navigationTransitions.events.subscribe(function(c){try{var d=a.navigationTransitions.currentTransition,e=Sd(a.navigationTransitions.currentNavigation);if(d!==null&&e!==null){var f=a.stateManager;c instanceof Ko?f.stateMemento=Rsc(f):c instanceof Un?Tsc(f,e):c instanceof Xqc?f.urlUpdateStrategy==="eager"&&(e.extras.skipLocationChange||Xsc(f,Ssc(f,e),e)):c instanceof grc?(Tsc(f,e),f.urlUpdateStrategy!=="deferred"||e.extras.skipLocationChange||Xsc(f,Ssc(f,e),e)):c instanceof Sn&&
c.code!==1&&c.code!==0?Zsc(f,e):c instanceof Tn?Zsc(f,e,!0):c instanceof Rn&&(f.lastSuccessfulId=c.id,f.currentPageId=f.browserPageId);if(c instanceof Sn&&c.code!==0&&c.code!==1)a.navigated=!0;else if(c instanceof Rn)a.navigated=!0;else if(c instanceof hrc){var h=c.navigationBehaviorOptions,k=a.urlHandlingStrategy.merge(c.url,d.currentRawUrl),q=Object.assign({},{browserUrl:d.extras.browserUrl,info:d.extras.info,skipLocationChange:d.extras.skipLocationChange,replaceUrl:d.extras.replaceUrl||a.urlUpdateStrategy===
"eager"||d.source!=="imperative"},h);ctc(a,k,"imperative",null,q,{resolve:d.resolve,reject:d.reject,promise:d.promise})}}c instanceof grc||c instanceof hrc||a._events.next(c)}catch(v){a.navigationTransitions.transitionAbortWithErrorSubject.next(v)}});a.eventsSubscription.add(b)};vC.prototype.initialNavigation=function(){dtc(this);this.navigationTransitions.hasRequestedNavigation||etc(this,this.location.path(!0),"imperative",this.stateManager.restoredState())};
var dtc=function(a){a.nonRouterCurrentEntryChangeSubscription!=null||(a.nonRouterCurrentEntryChangeSubscription=Vsc(a.stateManager,function(b,c,d){etc(a,b,d,c)}))},etc=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);ctc(a,b,c,f,e).catch(function(h){a.disposed||a.injector.get(lf)(h)})};vC.prototype.ngOnDestroy=function(){this.dispose()};
vC.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 wC=function(a,b,c){var d=c=c===void 0?{}:c;c=d.relativeTo;var e=d.queryParams,f=d.fragment;f=d.preserveFragment?a.currentUrlTree.fragment:f;var h;switch((h=d.queryParamsHandling)!=null?h:a.options.defaultQueryParamsHandling){case "merge":h=Object.assign({},a.currentUrlTree.queryParams,e);break;case "preserve":h=a.currentUrlTree.queryParams;break;default:h=e||null}h!==null&&(h=ftc(h));try{var k=TBa(c?c.snapshot:a.routerState.snapshot.root)}catch(q){if(typeof b[0]!=="string"||b[0][0]!=="/")b=[];
k=a.currentUrlTree.root}return $Ba(k,b,h,f!=null?f:null)},Mr=function(a,b,c){c=c===void 0?{skipLocationChange:!1}:c;b=En(b)?b:a.parseUrl(b);b=a.urlHandlingStrategy.merge(b,a.rawUrlTree);return ctc(a,b,"imperative",null,c)};vC.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 Vd(4008,!1);return Mr(this,wC(this,a,b),b)};vC.prototype.parseUrl=function(a){try{return this.urlSerializer.parse(a)}catch(b){return this.urlSerializer.parse("/")}};
vC.prototype.isActive=function(a,b){var c;b===!0?c=Object.assign({},$sc):b===!1?c=Object.assign({},atc):c=b;if(En(a))return zBa(this.currentUrlTree,a,c);a=this.parseUrl(a);return zBa(this.currentUrlTree,a,c)};
var ftc=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},{})},ctc=function(a,b,c,d,e,f){if(a.disposed)return Promise.resolve(!1);if(f){var h=f.resolve;var k=f.reject;f=f.promise}else f=new Promise(function(v,A){h=v;k=A});var q=a.pendingTasks.add();UDa(a,function(){queueMicrotask(function(){return a.pendingTasks.remove(q)})});Lsc(a.navigationTransitions,{source:c,restoredState:d,currentUrlTree:a.currentUrlTree,
currentRawUrl:a.currentUrlTree,rawUrl:b,extras:e,resolve:h,reject:k,promise:f,currentSnapshot:a.routerState.snapshot,currentRouterState:a.routerState});return f.catch(function(v){return Promise.reject(v)})};
nd.Object.defineProperties(vC.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}}});vC.\u0275fac=function(a){return new (a||vC)};vC.\u0275prov=Cd({token:vC,factory:vC.\u0275fac,providedIn:"root"});var xC=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=nh.apply(null,[null].concat(p([])));this.onChanges=new tg;this.applicationErrorHandler=r(lf);this.options=r(mC,{optional:!0});this.replaceUrl=this.skipLocationChange=this.preserveFragment=!1;this.routerLinkInput=null;this.reactiveHref.set(r(new pv("href"),{optional:!0}));var h;a=(h=e.nativeElement.tagName)==null?void 0:h.toLowerCase();var k,q,v;(this.isAnchorElement=
a==="a"||a==="area"||!!(typeof customElements==="object"&&((k=customElements.get(a))==null?0:(q=k.observedAttributes)==null?0:(v=q.includes)==null?0:v.call(q,"href"))))?gtc(this,"0"):htc(this)},htc=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
Rn&&itc(a)}))}},gtc=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")}};xC.prototype.ngOnChanges=function(){this.isAnchorElement&&(itc(this),htc(this));this.onChanges.next(this)};
xC.prototype.onClick=function(a,b,c,d,e){var f=this,h=this.urlTree;if(h===null||this.isAnchorElement&&(a!==0||b||c||d||e||typeof this.target==="string"&&this.target!="_self"))return!0;var k;(k=Mr(this.router,h,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}))==null||k.catch(function(q){f.applicationErrorHandler(q)});return!this.isAnchorElement};xC.prototype.ngOnDestroy=function(){var a;(a=this.subscription)==null||a.unsubscribe()};
var itc=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)};
nd.Object.defineProperties(xC.prototype,{href:{configurable:!0,enumerable:!0,get:function(){return Sd(this.reactiveHref)},set:function(a){this.reactiveHref.set(a)}},routerLink:{configurable:!0,enumerable:!0,set:function(a){a==null?(this.routerLinkInput=null,gtc(this,null)):(En(a)?this.routerLinkInput=a:this.routerLinkInput=Array.isArray(a)?a:[a],gtc(this,"0"))}},urlTree:{configurable:!0,enumerable:!0,get:function(){return this.routerLinkInput===null?null:En(this.routerLinkInput)?this.routerLinkInput:
wC(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})}}});xC.\u0275fac=function(a){return new (a||xC)(of(vC),of(Jn),aha("tabindex"),of(Ji),of(Te),of(dw))};
xC.\u0275dir=vf({type:xC,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&&Lg("href",b.reactiveHref(),via)("target",b.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",$h],skipLocationChange:[2,"skipLocationChange",
"skipLocationChange",$h],replaceUrl:[2,"replaceUrl","replaceUrl",$h],routerLink:"routerLink"},features:[ov]});var yC=function(a,b,c,d,e){var f=this;this.router=a;this.element=b;this.renderer=c;this.cdr=d;this.link=e;this.classes=[];this._isActive=!1;this.routerLinkActiveOptions={exact:!1};this.isActiveChange=new nq;this.routerEventsSubscription=a.events.subscribe(function(h){h instanceof Rn&&f.update()})};yC.prototype.ngAfterContentInit=function(){var a=this;Nf(this.links.changes,Nf(null)).pipe(Wf()).subscribe(function(){a.update();jtc(a)})};
var jtc=function(a){var b;(b=a.linkInputChangesSubscription)==null||b.unsubscribe();b=[].concat(p(a.links.toArray()),[a.link]).filter(function(c){return!!c}).map(function(c){return c.onChanges});a.linkInputChangesSubscription=Ef(b).pipe(Wf()).subscribe(function(c){a._isActive!==ktc(a,a.router)(c)&&a.update()})};yC.prototype.ngOnChanges=function(){this.update()};yC.prototype.ngOnDestroy=function(){this.routerEventsSubscription.unsubscribe();var a;(a=this.linkInputChangesSubscription)==null||a.unsubscribe()};
yC.prototype.update=function(){var a=this;this.links&&this.router.navigated&&queueMicrotask(function(){var b=ltc(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 ktc=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}},ltc=function(a){var b=ktc(a,a.router);return a.link&&b(a.link)||a.links.some(b)};
nd.Object.defineProperties(yC.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})}}});yC.\u0275fac=function(a){return new (a||yC)(of(vC),of(Te),of(Ji),of(Hv),of(xC,8))};
yC.\u0275dir=vf({type:yC,selectors:[["","routerLinkActive",""]],contentQueries:function(a,b,c){a&1&&ih(c,xC,5);if(a&2){var d;lh(d=mh())&&(b.links=d)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[ov]});var mtc=function(){},zC=function(a,b,c,d){this.router=a;this.injector=b;this.preloadingStrategy=c;this.loader=d},ntc=function(a){a.subscription=a.router.events.pipe(eg(function(b){return b instanceof Rn}),jg(function(){return a.preload()})).subscribe(function(){})};zC.prototype.preload=function(){return otc(this,this.injector,this.router.config)};zC.prototype.ngOnDestroy=function(){this.subscription&&this.subscription.unsubscribe()};
var otc=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=Gja(e.providers,b,"Route: "+e.path));var f=void 0,h=(f=e._injector)!=null?f:b,k=void 0;f=(k=e._loadedInjector)!=null?k:h;(e.loadChildren&&!e._loadedRoutes&&e.canLoad===void 0||e.loadComponent&&!e._loadedComponent)&&d.push(ptc(a,h,e));if(e.children||e._loadedRoutes)h=void 0,d.push(otc(a,f,(h=e.children)!=null?h:e._loadedRoutes))}return Ef(d).pipe(Wf())},ptc=function(a,b,
c){return a.preloadingStrategy.preload(c,function(){var d=(c.loadChildren&&c.canLoad===void 0?a.loader.loadChildren(b,c):Nf(null)).pipe(Vf(function(f){if(f===null)return Nf(void 0);c._loadedRoutes=f.routes;c._loadedInjector=f.injector;var h;return otc(a,(h=f.injector)!=null?h:b,f.routes)}));if(c.loadComponent&&!c._loadedComponent){var e=a.loader.loadComponent(b,c);return Ef([d,e]).pipe(Wf())}return d})};zC.\u0275fac=function(a){return new (a||zC)(be(vC),be(pf),be(mtc),be(nC))};
zC.\u0275prov=Cd({token:zC,factory:zC.\u0275fac,providedIn:"root"});var qtc=new le(""),AC=function(a,b,c,d,e){e=e===void 0?{}:e;this.urlSerializer=a;this.transitions=b;this.viewportScroller=c;this.zone=d;this.options=e;this.lastId=0;this.lastSource="imperative";this.restoredId=0;this.store={};var f;(f=e).scrollPositionRestoration||(f.scrollPositionRestoration="disabled");var h;(h=e).anchorScrolling||(h.anchorScrolling="disabled")};
AC.prototype.init=function(){if(this.options.scrollPositionRestoration!=="disabled")try{this.viewportScroller.window.history.scrollRestoration="manual"}catch(a){console.warn("NG02400")}this.routerEventsSubscription=rtc(this);this.scrollEventsSubscription=stc(this)};
var rtc=function(a){return a.transitions.events.subscribe(function(b){b instanceof Ko?(a.store[a.lastId]=a.viewportScroller.getScrollPosition(),a.lastSource=b.navigationTrigger,a.restoredId=b.restoredState?b.restoredState.navigationId:0):b instanceof Rn?(a.lastId=b.id,ttc(a,a.urlSerializer.parse(b.urlAfterRedirects).fragment)):b instanceof Un&&b.code===0&&(a.lastSource=void 0,a.restoredId=0,ttc(a,a.urlSerializer.parse(b.url).fragment))})},stc=function(a){return a.transitions.events.subscribe(function(b){if(b instanceof
frc)if(b.position)a.options.scrollPositionRestoration==="top"?Dic(a.viewportScroller,[0,0]):a.options.scrollPositionRestoration==="enabled"&&Dic(a.viewportScroller,b.position);else if(b.anchor&&a.options.anchorScrolling==="enabled"){var 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"&&Dic(a.viewportScroller,[0,0])})},ttc=function(a,b){a.zone.runOutsideAngular(function(){return z(function(c){if(c.nextAddress==
1)return B(c,new Promise(function(d){setTimeout(d);typeof requestAnimationFrame!=="undefined"&&requestAnimationFrame(d)}),2);a.zone.run(function(){a.transitions.events.next(new frc(a.lastSource==="popstate"?a.store[a.restoredId]:null,b))});Lf(c)})})};AC.prototype.ngOnDestroy=function(){var a;(a=this.routerEventsSubscription)==null||a.unsubscribe();var b;(b=this.scrollEventsSubscription)==null||b.unsubscribe()};AC.\u0275fac=function(){Via()};AC.\u0275prov=Cd({token:AC,factory:AC.\u0275fac});new le("",{providedIn:"root",factory:function(){return!1}});var utc=new le("",{factory:function(){return new tg}}),vtc=new le("",{providedIn:"root",factory:function(){return 1}}),wtc=new le("");new le("");var xtc=[Mi,{provide:HB,useClass:Pqc},vC,KB,{provide:Jn,useFactory:function(a){return a.routerState.root},deps:[vC]},nC,[]],BC=function(){};BC.\u0275fac=function(a){return new (a||BC)};BC.\u0275mod=uf({type:BC});BC.\u0275inj=Dd({});var ytc=new le("");var CC=function(){xC.apply(this,arguments)};Y(CC,xC);nd.Object.defineProperties(CC.prototype,{routerLinkObj:{configurable:!0,enumerable:!0,set:function(a){this.queryParams=a.queryParams;this.routerLink=a.path;this.fragment=a.fragment}}});CC.\u0275fac=function(){var a;return function(b){return(a||(a=Re(CC)))(b||CC)}}();CC.\u0275dir=vf({type:CC,selectors:[["a","routerLinkObj",""],["area","routerLinkObj",""]],inputs:{routerLinkObj:"routerLinkObj"},standalone:!1,features:[Bg]});var DC=function(){};
DC.\u0275fac=function(a){return new (a||DC)};DC.\u0275mod=uf({type:DC});DC.\u0275inj=Dd({imports:[BC]});var WDa;var ztc=function(a,b){this.url=a;this.svgText=null;this.options=b},EC=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},Atc=function(a,b){return a._fontCssClassesByAlias.get(b)||b},Btc=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):Of(Error("Zb`"+d))};g=EC.prototype;g.ngOnDestroy=function(){this._resolvers=[];this._svgIconConfigs.clear();this._iconSetConfigs.clear();this._cachedIconsByUrl.clear()};g._getSvgFromConfig=function(a){return a.svgText?Nf(this._svgElementFromConfig(a).cloneNode(!0)):this._loadSvgIconFromConfig(a).pipe(C(function(b){return b.cloneNode(!0)}))};
g._getSvgFromIconSetConfigs=function(a,b){var c=this,d=this._extractIconWithNameFromAnySet(a,b);if(d)return Nf(d);d=b.filter(function(e){return!e.svgText}).map(function(e){return c._loadSvgIconSetFromConfig(e).pipe(hg(function(f){f="Loading icon set URL: "+c._sanitizer.sanitize(5,e.url)+" failed: "+f.message;c._errorHandler.handleError(Error(f));return Nf(null)}))});return Zf(d).pipe(C(function(){var e=c._extractIconWithNameFromAnySet(a,b);if(!e)throw Error("Zb`"+a);return e}))};
g._extractIconWithNameFromAnySet=function(a,b){for(var c=b.length-1;c>=0;c--){var d=b[c];if(d.svgText&&d.svgText.toString().indexOf(a)>-1){var e=this._svgElementFromConfig(d);if(d=this._extractSvgIconFromSet(e,a,d.options))return d}}return null};g._loadSvgIconFromConfig=function(a){var b=this;return this._fetchIcon(a).pipe(zg(function(c){return a.svgText=c}),C(function(){return b._svgElementFromConfig(a)}))};
g._loadSvgIconSetFromConfig=function(a){return a.svgText?Nf(null):this._fetchIcon(a).pipe(zg(function(b){return a.svgText=b}))};
g._extractSvgIconFromSet=function(a,b,c){a=a.querySelector('[id="'+b+'"]');if(!a)return null;a=a.cloneNode(!0);a.removeAttribute("id");if(a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,c);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),c);b=this._svgElementFromString(YDa("<svg></svg>"));b.appendChild(a);return this._setSvgAttributes(b,c)};
g._svgElementFromString=function(a){var b=this._document.createElement("DIV");b.innerHTML=a;a=b.querySelector("svg");if(!a)throw Error("bc");return a};g._toSvgElement=function(a){for(var b=this._svgElementFromString(YDa("<svg></svg>")),c=a.attributes,d=0;d<c.length;d++){var e=c[d],f=e.name;e=e.value;f!=="id"&&b.setAttribute(f,e)}for(c=0;c<a.childNodes.length;c++)a.childNodes[c].nodeType===this._document.ELEMENT_NODE&&b.appendChild(a.childNodes[c].cloneNode(!0));return b};
g._setSvgAttributes=function(a,b){a.setAttribute("fit","");a.setAttribute("height","100%");a.setAttribute("width","100%");a.setAttribute("preserveAspectRatio","xMidYMid meet");a.setAttribute("focusable","false");b&&b.viewBox&&a.setAttribute("viewBox",b.viewBox);return a};
g._fetchIcon=function(a){var b=this,c=a.url,d,e;a=(e=(d=a.options)==null?void 0:d.withCredentials)!=null?e:!1;if(!this._httpClient)throw Error("$b");if(c==null)throw Error("cc`"+c);var f=this._sanitizer.sanitize(5,c);if(!f)throw Error("ac`"+c);if(c=this._inProgressUrlFetches.get(f))return c;c=this._httpClient.get(f,{responseType:"text",withCredentials:a}).pipe(C(function(h){return YDa(h)}),pg(function(){return b._inProgressUrlFetches.delete(f)}),yla());this._inProgressUrlFetches.set(f,c);return c};
g._addSvgIconConfig=function(a,b,c){this._svgIconConfigs.set(a+":"+b,c);return this};g._addSvgIconSetConfig=function(a,b){var c=this._iconSetConfigs.get(a);c?c.push(b):this._iconSetConfigs.set(a,[b]);return this};g._svgElementFromConfig=function(a){if(!a.svgElement){var b=this._svgElementFromString(a.svgText);this._setSvgAttributes(b,a.options);a.svgElement=b}return a.svgElement};
g._getIconConfigFromResolvers=function(a,b){for(var c=0;c<this._resolvers.length;c++){var d=this._resolvers[c](b,a);if(d)return d.url&&d.options?new ztc(d.url,d.options):new ztc(d)}};EC.\u0275fac=function(a){return new (a||EC)(be(bC,8),be(gC),be(ui,8),be(Th))};EC.\u0275prov=Cd({token:EC,factory:EC.\u0275fac,providedIn:"root"});new qv;new rv;new qv;new qv;var Ctc=new le("MAT_ICON_DEFAULT_OPTIONS"),Dtc=new le("mat-icon-location",{providedIn:"root",factory:ZDa}),Etc="clip-path color-profile src cursor fill filter marker marker-start marker-mid marker-end mask stroke".split(" "),Ftc=Etc.map(function(a){return"["+a+"]"}).join(", "),Gtc=/^url\(['"]?#(.*?)['"]?\)$/,FC=function(){this._elementRef=r(Te);this._iconRegistry=r(EC);this._location=r(Dtc);this._errorHandler=r(Th);this.inline=!1;this._previousFontSetClass=[];this._currentIconFetch=yf.EMPTY;var a=
r(new pv("aria-hidden"),{optional:!0}),b=r(Ctc,{optional:!0});b&&(b.color&&(this.color=this._defaultColor=b.color),b.fontSet&&(this.fontSet=b.fontSet));a||this._elementRef.nativeElement.setAttribute("aria-hidden","true")};g=FC.prototype;g._splitIconName=function(a){if(!a)return["",""];var b=a.split(":");switch(b.length){case 1:return["",b[0]];case 2:return b;default:throw Error("dc`"+a);}};g.ngOnInit=function(){this._updateFontIconClasses()};
g.ngAfterViewChecked=function(){var a=this._elementsWithExternalReferences;a&&a.size&&(a=this._location.getPathname(),a!==this._previousPath&&(this._previousPath=a,this._prependPathToReferences(a)))};g.ngOnDestroy=function(){this._currentIconFetch.unsubscribe();this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()};g._usingFontIcon=function(){return!this.svgIcon};
g._setSvgElement=function(a){this._clearSvgElement();var b=this._location.getPathname();this._previousPath=b;this._cacheChildrenWithExternalReferences(a);this._prependPathToReferences(b);this._elementRef.nativeElement.appendChild(a)};g._clearSvgElement=function(){var a=this._elementRef.nativeElement,b=a.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();b--;){var c=a.childNodes[b];c.nodeType===1&&c.nodeName.toLowerCase()!=="svg"||c.remove()}};
g._updateFontIconClasses=function(){if(this._usingFontIcon()){var a=this._elementRef.nativeElement,b=(this.fontSet?Atc(this._iconRegistry,this.fontSet).split(/ +/):this._iconRegistry._defaultFontSetClass).filter(function(c){return c.length>0});this._previousFontSetClass.forEach(function(c){return a.classList.remove(c)});b.forEach(function(c){return a.classList.add(c)});this._previousFontSetClass=b;this.fontIcon===this._previousFontIconClass||b.includes("mat-ligature-font")||(this._previousFontIconClass&&
a.classList.remove(this._previousFontIconClass),this.fontIcon&&a.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}};g._cleanupFontValue=function(a){return typeof a==="string"?a.trim().split(" ")[0]:a};g._prependPathToReferences=function(a){var b=this._elementsWithExternalReferences;b&&b.forEach(function(c,d){c.forEach(function(e){d.setAttribute(e.name,"url('"+a+"#"+e.value+"')")})})};
g._cacheChildrenWithExternalReferences=function(a){var b=a.querySelectorAll(Ftc),c=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(a={i$jscomp$607:0};a.i$jscomp$607<b.length;a={i$jscomp$607:a.i$jscomp$607},a.i$jscomp$607++)Etc.forEach(function(d){return function(e){var f=b[d.i$jscomp$607],h=f.getAttribute(e);if(h=h?h.match(Gtc):null){var k=c.get(f);k||(k=[],c.set(f,k));k.push({name:e,value:h[1]})}}}(a))};
g._updateSvgIcon=function(a){var b=this;this._svgName=this._svgNamespace=null;this._currentIconFetch.unsubscribe();if(a){a=l(this._splitIconName(a));var c=a.next().value,d=a.next().value;c&&(this._svgNamespace=c);d&&(this._svgName=d);this._currentIconFetch=Btc(this._iconRegistry,d,c).pipe(mg(1)).subscribe(function(e){return b._setSvgElement(e)},function(e){b._errorHandler.handleError(Error("ec`"+c+"`"+d+"`"+e.message))})}};
nd.Object.defineProperties(FC.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())}}});FC.\u0275fac=function(a){return new (a||FC)};
FC.\u0275cmp=y({type:FC,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(a,b){a&2&&(Lg("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),vh(b.color?"mat-"+b.color:""),uh("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",$h],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(ch(),dh(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 GC=function(){};GC.\u0275fac=function(a){return new (a||GC)};GC.\u0275mod=uf({type:GC});GC.\u0275inj=Dd({imports:[px,px]});var HC=function(){};HC.\u0275fac=function(a){return new (a||HC)};HC.\u0275mod=uf({type:HC});HC.\u0275inj=Dd({imports:[aw,GC,BC,DC]});var IC=function(){XA.call(this,{freshUntil:3E5,ancientAfter:6048E5});var a=this;this.templatesApi=r(EB);this.appEvents=r(FB);this.recordType="componentTemplates";this.idForRecord=function(b){return b.componentId};this.defaultTemplate$=function(b){return a.watch(b).pipe(eg(Qj),C(function(c){return c.templates}),C(function(c){var d;return(d=c.find(function(e){return e.default}))!=null?d:c[0]}))};this.appEvents.templateModified.pipe(eg(function(b){return!!b&&b!=="0"})).subscribe(function(b){a.poke(b)})};
Y(IC,XA);IC.prototype.fetchOne=function(a){var b=this;return Yf(function(){return b.templatesApi.query(a).then(function(c){return{componentId:a,templates:c}})})};IC.\u0275fac=function(a){return new (a||IC)};IC.\u0275prov=Cd({token:IC,factory:IC.\u0275fac,providedIn:"root"});var Htc=function(a,b){this.childIterator_=a[ea.Symbol.iterator]();this.mapFn_=b};Htc.prototype[Symbol.iterator]=function(){return this};Htc.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 Itc=function(a,b){return new Htc(a,b)};var JC=function(){};JC.prototype.next=function(){return Jtc};var Jtc={done:!0,value:void 0};JC.prototype.__iterator__=function(){return this};var Ktc=function(a){if(a instanceof KC||a instanceof LC||a instanceof MC)return a;if(typeof a.next=="function")return new KC(function(){return a});if(typeof a[Symbol.iterator]=="function")return new KC(function(){return a[Symbol.iterator]()});if(typeof a.__iterator__=="function")return new KC(function(){return a.__iterator__()});throw Error("fc");},KC=function(a){this.func_=a};KC.prototype.__iterator__=function(){return new LC(this.func_())};KC.prototype[Symbol.iterator]=function(){return new MC(this.func_())};
KC.prototype.toEs6=function(){return new MC(this.func_())};var LC=function(a){this.iter_=a};Y(LC,JC);LC.prototype.next=function(){return this.iter_.next()};LC.prototype[Symbol.iterator]=function(){return new MC(this.iter_)};LC.prototype.toEs6=function(){return new MC(this.iter_)};var MC=function(a){KC.call(this,function(){return a});this.iter_=a};Y(MC,KC);MC.prototype.next=function(){return this.iter_.next()};var NC=function(a,b){this.map_={};this.keys_=[];this.version_=this.size=0;var c=arguments.length;if(c>1){if(c%2)throw Error("Za");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)};g=NC.prototype;g.getCount=function(){return this.size};g.getValues=function(){Ltc(this);for(var a=[],b=0;b<this.keys_.length;b++)a.push(this.map_[this.keys_[b]]);return a};g.getKeys=function(){Ltc(this);return this.keys_.concat()};g.containsKey=function(a){return this.has(a)};
g.has=function(a){return OC(this.map_,a)};g.containsValue=function(a){for(var b=0;b<this.keys_.length;b++){var c=this.keys_[b];if(OC(this.map_,c)&&this.map_[c]==a)return!0}return!1};g.equals=function(a,b){if(this===a)return!0;if(this.size!=a.getCount())return!1;b=b||Mtc;Ltc(this);for(var c,d=0;c=this.keys_[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};var Mtc=function(a,b){return a===b};NC.prototype.isEmpty=function(){return this.size==0};
NC.prototype.clear=function(){this.map_={};this.keys_.length=0;this.setSizeInternal_(0);this.version_=0};NC.prototype.remove=function(a){return this.delete(a)};NC.prototype.delete=function(a){return OC(this.map_,a)?(delete this.map_[a],this.setSizeInternal_(this.size-1),this.version_++,this.keys_.length>2*this.size&&Ltc(this),!0):!1};
var Ltc=function(a){if(a.size!=a.keys_.length){for(var b=0,c=0;b<a.keys_.length;){var d=a.keys_[b];OC(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];OC(b,e)||(a.keys_[d++]=e,b[e]=1);c++}a.keys_.length=d}};g=NC.prototype;g.get=function(a,b){return OC(this.map_,a)?this.map_[a]:b};g.set=function(a,b){OC(this.map_,a)||(this.setSizeInternal_(this.size+1),this.keys_.push(a),this.version_++);this.map_[a]=b};
g.addAll=function(a){if(a instanceof NC)for(var b=a.getKeys(),c=0;c<b.length;c++)this.set(b[c],a.get(b[c]));else for(b in a)this.set(b,a[b])};g.forEach=function(a,b){for(var c=this.getKeys(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};g.clone=function(){return new NC(this)};g.keys=function(){return Ktc(this.__iterator__(!0)).toEs6()};g.values=function(){return Ktc(this.__iterator__(!1)).toEs6()};g.entries=function(){var a=this;return Itc(this.keys(),function(b){return[b,a.get(b)]})};
g.__iterator__=function(a){Ltc(this);var b=0,c=this.version_,d=this,e=new JC;e.next=function(){if(c!=d.version_)throw Error("gc");if(b>=d.keys_.length)return Jtc;var f=d.keys_[b++];return{value:a?f:d.map_[f],done:!1}};return e};g.setSizeInternal_=function(a){this.size=a};var OC=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var PC=function(a,b,c){this.maxCount_=a||null;this.cache_=!!b;this.evictionCallback_=c;this.map_=new NC;this.head_=new Ntc("");this.head_.next=this.head_.prev=this.head_},Ptc=function(a,b){(b=a.map_.get(b))&&a.cache_&&(b.remove(),Otc(a,b));return b};PC.prototype.get=function(a,b){return(a=Ptc(this,a))?a.value:b};var Qtc=function(a,b){return(a=a.map_.get(b))?a.value:void 0};g=PC.prototype;g.set=function(a,b){var c=Ptc(this,a);c?c.value=b:(c=new Ntc(a,b),this.map_.set(a,c),Otc(this,c))};g.peek=function(){return this.head_.next.value};
g.shift=function(){return Rtc(this,this.head_.next)};g.pop=function(){return Rtc(this,this.head_.prev)};g.remove=function(a){return(a=this.map_.get(a))?(this.removeNode(a),!0):!1};g.removeNode=function(a){a.remove();this.map_.remove(a.key)};g.getCount=function(){return this.map_.getCount()};g.isEmpty=function(){return this.map_.isEmpty()};g.getKeys=function(){return this.map(function(a,b){return b})};g.getValues=function(){return this.map(function(a){return a})};
g.contains=function(a){return this.some(function(b){return b==a})};g.containsKey=function(a){return this.map_.containsKey(a)};g.clear=function(){Stc(this,0)};g.forEach=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)a.call(b,c.value,c.key,this)};g.map=function(a,b){for(var c=[],d=this.head_.next;d!=this.head_;d=d.next)c.push(a.call(b,d.value,d.key,this));return c};g.some=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)if(a.call(b,c.value,c.key,this))return!0;return!1};
g.every=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)if(!a.call(b,c.value,c.key,this))return!1;return!0};
var Otc=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&&Stc(a,a.maxCount_)},Stc=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)}},Rtc=function(a,b){a.head_!=b&&a.removeNode(b);return b.value},Ntc=function(a,b){this.key=a;this.value=b};
Ntc.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var QC=function(){this.caches=new Map};QC.prototype.create=function(a,b){if(this.caches.has(a))throw Error("hc`"+a);b=new Ttc(b==null?void 0:b.capacity);this.caches.set(a,b);return b};QC.prototype.get=function(a){return this.caches.get(a)};QC.\u0275fac=function(a){return new (a||QC)};QC.\u0275prov=Cd({token:QC,factory:QC.\u0275fac,providedIn:"root"});var Ttc=function(a){this.lruCache=new PC(a,!0)};Ttc.prototype.get=function(a){return this.lruCache.get(a)};
Ttc.prototype.put=function(a,b){b!==void 0&&this.lruCache.set(a,b);return b};Ttc.prototype.remove=function(a){this.lruCache.remove(a)};Ttc.prototype.removeAll=function(){this.lruCache.clear()};var Vn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Vn.messageId)};Y(Vn,n);Vn.prototype.getIt=function(){return W(this,Zm,18,Nc)};Vn.prototype.setIt=function(a){return X(this,Zm,18,a,Nc)};Vn.messageId="b.Hotlist";var Utc=RegExp("action/issues/([0-9]+)/"),Vtc=new le("ETAG_URL_TRANSFORMERS"),Wtc=["POST","PUT","DELETE"],SC=function(){this.etagStore=r(RC)};SC.prototype.intercept=function(a,b){if(Wtc.includes(a.method)){var c=this.etagStore.getEtag(a);c&&a.headers&&(a=a.clone({headers:a.headers.set("If-Match",c)}))}Utc.exec(a.url);return Xtc(this,a,b)};var Xtc=function(a,b,c){return c.handle(b).pipe(zg(function(d){d instanceof aC&&(d=d.headers,d.has("etag")&&a.etagStore.setEtag(b,d.get("etag")))}))};
SC.\u0275fac=function(a){return new (a||SC)};SC.\u0275prov=Cd({token:SC,factory:SC.\u0275fac,providedIn:"root"});var RC=function(){this.transformers=r(Vtc,{optional:!0});this.etagStore={}};RC.prototype.setEtag=function(a,b){b!=null&&(a=Ytc(this,a.url),this.etagStore[a]=b)};RC.prototype.getEtag=function(a){a=Ytc(this,a.url);return this.etagStore[a]};var Ytc=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};
RC.\u0275fac=function(a){return new (a||RC)};RC.\u0275prov=Cd({token:RC,factory:RC.\u0275fac,providedIn:"root"});var Ztc={provide:wsc,useClass:SC,multi:!0};var an=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(an,n);g=an.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getPosition=function(){return Ej(this,2)};g.setPosition=function(a){return Zj(this,2,a)};g.getIssue=function(){return W(this,oo,3)};g.setIssue=function(a){return X(this,oo,3,a)};var $tc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($tc,n);g=$tc.prototype;g.getHotlistId=function(){return xk(this,1)};g.setHotlistId=function(a){return Xl(this,1,a)};g.setOrderBy=function(a){return Hj(this,2,a)};g.setPageSize=function(a){return Zj(this,3,a)};g.setPageToken=function(a){return Hj(this,4,a)};g.getFilter=function(){return Rc(this,5)};g.setFilter=function(a){return Hj(this,5,a)};g.setView=function(a){return Jj(this,6,a)};
g.setIssueDescriptionView=function(a){return Jj(this,7,a)};g.getQuery=function(){return Rc(this,8)};g.setQuery=function(a){return Hj(this,8,a)};g.clearQuery=function(){Bu(this,8)};var auc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(auc,n);g=auc.prototype;g.getHotlistId=function(){return xk(this,1)};g.setHotlistId=function(a){return Xl(this,1,a)};g.getIssueId=function(){return xk(this,2)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,2)};g.getIssueId_asString=function(){return Bk(this,2)};g.setIssueId=function(a){return Xl(this,2,a)};var TC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,TC.messageId)};Y(TC,n);TC.prototype.getIt=function(){return W(this,$tc,1,Nc)};TC.prototype.setIt=function(a){return X(this,$tc,1,a,Nc)};TC.messageId="b.ListHotlistEntriesRequest";var UC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(UC,n);UC.prototype.getNextPageToken=function(){return Rc(this,2)};UC.prototype.getTotalSize=function(){return Ej(this,3)};UC.prototype.getTotalSizeAccurate=function(){return kk(this,4)};UC.prototype.getMaySkipResults=function(){return kk(this,5)};var VC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,VC.messageId)};Y(VC,n);VC.prototype.getIt=function(){return W(this,UC,1,Nc)};VC.prototype.setIt=function(a){return X(this,UC,1,a,Nc)};VC.messageId="b.ListHotlistEntriesResponse";var WC=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,WC.messageId)};Y(WC,n);WC.prototype.addHotlists=function(a){Po(this,1,Vn,a,void 0,Nc)};WC.prototype.removeHotlists=function(a){return Du(this,1,Vn,a,Nc)};WC.messageId="b.ListHotlistsResponse";var YC=function(){this.hotlistApi=r(XC);var a=r(QC);this.hotlistCache=a.get("hotlists-second-level-cache")||a.create("hotlists-second-level-cache",{capacity:1E3})};g=YC.prototype;g.get=function(a){var b=this.hotlistCache.get(String(a))||this.hotlistApi.get(a);return this.hotlistCache.put(String(a),b)};g.repositionHotlistIssue=function(a,b,c){return this.hotlistApi.repositionHotlistIssue(a,b,c)};g.createHotlist=function(a,b){return this.hotlistApi.createHotlist(a,b)};g.queryHotlists=function(a){return this.hotlistApi.queryHotlists(a)};
g.archiveHotlist=function(a,b){return this.hotlistApi.archiveHotlist(a,b)};g.updateMetadata=function(a,b){return this.hotlistApi.updateMetadata(a,b)};g.getPagedHotlistContent=function(a,b,c,d,e){return this.hotlistApi.getPagedHotlistContent(a,b,c,d,e)};YC.\u0275fac=function(a){return new (a||YC)};YC.\u0275prov=Cd({token:YC,factory:YC.\u0275fac,providedIn:"root"});var ZC=function(){this.executor=r(PA);this.etagStore=r(RC);this.bufferTimeMs=50};
ZC.prototype.call=function(a){a=Array.from(a).map(String);return a.length===0?Nf(new Map):a.length===1?this.executor.get({url:"action/hotlists/"+a[0],responseConstructor:Vn}).pipe(C(Wn),C(function(b){var c=new Map;c.set(String(b.hotlistId),b);return c})):this.executor.get({url:"action/hotlists",responseConstructor:WC,options:{params:{id:a}}}).pipe(C(function(b){var c=new Map;b=l(Sj(b,Vn,1,Bj(),Nc).map(Wn));for(var d=b.next();!d.done;d=b.next())d=d.value,c.set(String(d.hotlistId),d);return c}))};
ZC.prototype.split=function(a,b){if(b=b.get(a)){var c=b.etag;if(c){var d=this.etagStore;c!=null&&(a=Ytc(d,"action/hotlists/"+a),d.etagStore[a]=c)}}return b};ZC.\u0275fac=function(a){return new (a||ZC)};ZC.\u0275prov=Cd({token:ZC,factory:ZC.\u0275fac,providedIn:"root"});var $C=function(){this.executor=r(PA);this.batchApiConfig=r(ZC);this.batchApiAdapter=r(tB);this.adaptedGet=this.batchApiAdapter.adapt(this.batchApiConfig)};g=$C.prototype;
g.get=function(a){var b=this;return this.adaptedGet(String(a)).pipe(xg(function(c){return c?Nf(c):b.executor.get({url:"action/hotlists/"+a,responseConstructor:Vn}).pipe(C(Wn))}))};g.bulkLoad=function(a){var b=this;return a.length===0?Nf([]):Zf(a.map(function(c){return b.adaptedGet(String(c))})).pipe(C(function(c){return c.filter(Qj)}))};
g.repositionHotlistIssue=function(a,b,c){var d=(new auc).setHotlistId(Number(a)).setIssueId(b);b=(new an).setIssueId(Number(b)).setPosition(c);d=X(d,an,3,b);return this.executor.put({url:"action/hotlists/"+a+"/entry",body:d,responseConstructor:null})};g.createHotlist=function(a,b){a=(new Zm).setName(a);b&&a.setDescription(b);return this.executor.post({url:"action/hotlists",body:(new Vn).setIt(a),responseConstructor:Vn}).pipe(C(Wn))};
g.queryHotlists=function(a){return this.executor.get({url:"action/hotlists",responseConstructor:WC,options:{params:{q:a}}}).pipe(C(function(b){var c;return((c=Sj(b,Vn,1,Bj(),Nc))!=null?c:[]).map(Wn)}))};g.archiveHotlist=function(a,b){return this.executor.post({url:"action/hotlists/"+a+"/archive",body:$Da(b),responseConstructor:Vn}).pipe(C(Wn))};
g.updateMetadata=function(a,b){var c={};b.etag&&(c["If-Match"]=String(b.etag));return this.executor.post({url:"action/hotlists/"+a,body:$Da(b),options:{headers:c},responseConstructor:Vn}).pipe(C(Wn))};
g.getPagedHotlistContent=function(a,b,c,d,e){var f={};e&&(f.trackerIds=e);d=d.map(function(h){return{field:{type:h.fieldId.type,customFieldId:h.fieldId.customFieldId,customFieldName:h.fieldId.customFieldName},direction:h.direction}});b=(new $tc).setHotlistId(a).setOrderBy(dAa(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 TC).setIt(b),responseConstructor:VC}).pipe(C(function(h){return iAa(h.getIt())}))};
$C.\u0275fac=function(a){return new (a||$C)};$C.\u0275prov=Cd({token:$C,factory:$C.\u0275fac,providedIn:"root"});var XC=function(){this.observableApi=r($C)};g=XC.prototype;g.get=function(a){return Rf(this.observableApi.get(a))};g.bulkLoad=function(a){return Rf(this.observableApi.bulkLoad(a))};g.repositionHotlistIssue=function(a,b,c){return Rf(this.observableApi.repositionHotlistIssue(a,b,c))};g.createHotlist=function(a,b){return Rf(this.observableApi.createHotlist(a,b))};g.queryHotlists=function(a){return Rf(this.observableApi.queryHotlists(a))};
g.archiveHotlist=function(a,b){return Rf(this.observableApi.archiveHotlist(a,b))};g.updateMetadata=function(a,b){return Rf(this.observableApi.updateMetadata(a,b))};g.getPagedHotlistContent=function(a,b,c,d,e){return Rf(this.observableApi.getPagedHotlistContent(a,b,c,d,e))};XC.\u0275fac=function(a){return new (a||XC)};XC.\u0275prov=Cd({token:XC,factory:XC.\u0275fac,providedIn:"root"});var aEa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(aEa,n);aEa.prototype.getIt=function(){return W(this,en,6)};aEa.prototype.setIt=function(a){return X(this,en,6,a)};var buc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,buc.messageId)};Y(buc,n);buc.messageId="b.Favorite";var cuc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,cuc.messageId)};Y(cuc,n);cuc.prototype.getComponentsList=function(){return Sj(this,xn,1,Bj(),Nc)};cuc.messageId="b.UserRecentComponentResponse";var aD=function(){this.executor=r(PA)};g=aD.prototype;g.getUserBookmarks=function(){return this.executor.post({url:"action/getUserBookmarks",body:null,responseConstructor:hB}).pipe(C(function(a){return qAa(a.getIt())}))};g.getRecentComponents=function(){return this.executor.get({url:"action/current_user/recent_components",responseConstructor:cuc}).pipe(C(hBa))};g.getUserBookmark=function(a,b){return this.executor.get({url:"action/favorites/"+a+"/"+b,responseConstructor:buc}).pipe(C(bEa))};
g.addUserBookmark=function(a){a=(new aEa).setIt(pAa(a));return this.executor.post({url:"action/favorites",body:a,responseConstructor:buc}).pipe(C(bEa))};g.removeUserBookmark=function(a){return this.executor.post({url:"action/removeUserBookmark",body:pAa(a),responseConstructor:null})};
var duc=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})};aD.\u0275fac=function(a){return new (a||aD)};aD.\u0275prov=Cd({token:aD,factory:aD.\u0275fac,providedIn:"root"});var bD=function(){this.observableApi=r(aD)};g=bD.prototype;
g.getUserBookmarks=function(){return Rf(this.observableApi.getUserBookmarks())};g.getRecentComponents=function(){return Rf(this.observableApi.getRecentComponents())};g.getUserBookmark=function(a,b){return Rf(this.observableApi.getUserBookmark(a,b))};g.addUserBookmark=function(a){return Rf(this.observableApi.addUserBookmark(a))};g.removeUserBookmark=function(a){return Rf(this.observableApi.removeUserBookmark(a))};bD.\u0275fac=function(a){return new (a||bD)};
bD.\u0275prov=Cd({token:bD,factory:bD.\u0275fac,providedIn:"root"});var cD=function(){XA.call(this,{freshUntil:3E5});this.observableHotlistResources=r($C);this.recordType="hotlist";this.idForRecord=function(a){return String(a.hotlistId)}};Y(cD,XA);cD.prototype.fetchOne=function(a){return a?this.observableHotlistResources.get(a).pipe(hg(function(b){return b.status===403?Nf(void 0):Of(function(){return b})})):Nf(void 0)};cD.prototype.fetchSet=function(a){return this.observableHotlistResources.bulkLoad(a.filter(Boolean)).pipe(C(function(b){return(b!=null?b:[]).filter(Qj)}))};
cD.prototype.doSave=function(a){return this.observableHotlistResources.updateMetadata(a.hotlistId,a)};cD.\u0275fac=function(a){return new (a||cD)};cD.\u0275prov=Cd({token:cD,factory:cD.\u0275fac,providedIn:"root"});var Xn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Xn,n);Xn.prototype.getIt=function(){return W(this,bn,12)};Xn.prototype.setIt=function(a){return X(this,bn,12,a)};var euc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,euc.messageId)};Y(euc,n);euc.prototype.setSearch=function(a,b){Au(this,1,Xn,a,b,Nc)};euc.messageId="b.BatchGetSearchesResponse";var dD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,dD.messageId)};Y(dD,n);dD.prototype.getSearch=function(){return W(this,Xn,1,Nc)};dD.prototype.setSearch=function(a){X(this,Xn,1,a,Nc)};dD.messageId="b.SearchResponse";var eD=function(){this.jspbExecutor=r(PA)};g=eD.prototype;g.get=function(a){return this.jspbExecutor.get({url:"action/saved_searches/"+a,responseConstructor:dD}).pipe(C(dEa))};g.batchGet=function(a){if(a.length>500)throw Error("ic");return this.jspbExecutor.get({url:"action/saved_searches?"+a.map(function(b){return"id="+b}).join("&"),responseConstructor:euc}).pipe(C(eEa))};
g.create=function(a,b){a=(new Xn).setIt((new bn).setName(a).setQuery(b));return this.jspbExecutor.post({url:"action/saved_searches",body:a,responseConstructor:dD}).pipe(C(dEa))};g.update=function(a,b){b=(new Xn).setIt(kAa(b));return this.jspbExecutor.post({url:"action/saved_searches/"+a,body:b,responseConstructor:dD}).pipe(C(dEa))};g.delete=function(a){return this.jspbExecutor.delete({url:"action/saved_searches/"+a,responseConstructor:null})};eD.\u0275fac=function(a){return new (a||eD)};
eD.\u0275prov=Cd({token:eD,factory:eD.\u0275fac,providedIn:"root"});var fD=function(){this.observableResources=r(eD)};g=fD.prototype;g.get=function(a){return Rf(this.observableResources.get(a))};g.batchGet=function(a){return Rf(this.observableResources.batchGet(a))};g.create=function(a,b){return Rf(this.observableResources.create(a,b))};g.update=function(a,b){return Rf(this.observableResources.update(a,b))};g.delete=function(a){return Rf(this.observableResources.delete(a))};
fD.\u0275fac=function(a){return new (a||fD)};fD.\u0275prov=Cd({token:fD,factory:fD.\u0275fac,providedIn:"root"});var gD=function(){XA.call(this);this.savedSearchApi=r(eD);this.recordType="savedSearch";this.idForRecord=function(a){return String(a.searchId)}};Y(gD,XA);gD.prototype.fetchOne=function(a){return this.savedSearchApi.get(a)};gD.prototype.fetchSet=function(a){return this.savedSearchApi.batchGet(a)};gD.\u0275fac=function(a){return new (a||gD)};gD.\u0275prov=Cd({token:gD,factory:gD.\u0275fac,providedIn:"root"});var hD=function(){XA.call(this,{freshUntil:3E5});var a=this;this.userApi=r(aD);this.hotlistApi=r($C);this.bookmarkGroupApi=r(iB);this.appEvents=r(FB);this.hotlistFridge=r(cD);this.savedSearchFridge=r(gD);this.bookmarkGroupFridge=r(jB);this.activeSession=r(Bs);this.recordType="user-bookmark";this.isEqual=gj;this.idForRecord=function(b){return b.id};this.pokeAll=function(){a.poke("current-user-bookmark-id",void 0)};dg(this.appEvents.hotlistChanged,this.appEvents.hotlistCreated,this.appEvents.bookmarkGroupModified,
this.appEvents.savedSearchModified,this.appEvents.favoritesModified).subscribe(function(){a.poke("current-user-bookmark-id")})};Y(hD,XA);var fuc=function(a){var b=a.activeSession.getUserEmail();return b?a.hotlistApi.queryHotlists("include_archived:true owner:"+b):Nf([])},guc=function(a){var b=a.activeSession.getUserEmail();return b?Yf(function(){return a.bookmarkGroupApi.query("include_archived:true owner:"+b)}):Nf([])};
hD.prototype.fetchOne=function(){var a=this;return Zf([this.userApi.getUserBookmarks(),fuc(this),guc(this)]).pipe(zg(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)}),C(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;d=lEa([].concat(p(b.hotlists),p(d)),[].concat(p(b.bookmarkGroups),p(c)),b.savedSearches);return mEa(d,b)}))};
var huc=function(a){return a.watch("current-user-bookmark-id",void 0).pipe(eg(Qj))},iD=function(a){return huc(a).pipe(C(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(Qj).filter(function(f){return f.resourceType==="HOTLIST"}))!=null?e:[];return[].concat(p(b),p(d))}),C(function(b){return rj(b,function(c){return c.id})}),C(function(b){return jEa(b)}),C(function(b){return b.map(function(c){return c.id})}),
xg(function(b){return a.hotlistFridge.watchSet(b)}))},iuc=function(a){return huc(a).pipe(C(function(b){var c;return(c=b==null?void 0:b.savedSearches.map(function(d){return Mj(d.id)}))!=null?c:[]}),C(function(b){return b.filter(Qj)}),xg(function(b){return a.savedSearchFridge.watchSet(b)}))};hD.\u0275fac=function(a){return new (a||hD)};hD.\u0275prov=Cd({token:hD,factory:hD.\u0275fac,providedIn:"root"});
var jEa=gk(function(a){return a.name},ik,"ASCENDING"),iEa=gk(function(a){return a.name},ik,"ASCENDING"),kEa=gk(function(a){return a.name},ik,"ASCENDING");var oEa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(oEa,n);oEa.prototype.getIt=function(){return W(this,om,14)};oEa.prototype.setIt=function(a){return X(this,om,14,a)};var no=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(no,n);no.prototype.getIt=function(){return W(this,mm,13)};no.prototype.setIt=function(a){return X(this,mm,13,a)};var jD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,jD.messageId)};Y(jD,n);jD.prototype.getIt=function(){return W(this,om,2,Nc)};jD.prototype.setIt=function(a){return X(this,om,2,a,Nc)};jD.messageId="b.CustomFieldResponse";var juc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(juc,n);g=juc.prototype;g.getCustomFieldsList=function(){return Sj(this,om,1,Bj())};g.setCustomFieldsList=function(a){return Bm(this,1,a)};g.addCustomFields=function(a){Po(this,1,om,a)};g.getNextPageToken=function(){return Rc(this,2)};g.getTotalSize=function(){return Ej(this,3)};var kD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,kD.messageId)};Y(kD,n);kD.prototype.getIt=function(){return W(this,juc,4,Nc)};kD.prototype.setIt=function(a){return X(this,juc,4,a,Nc)};kD.messageId="b.ListCustomFieldsResponse";var lD=function(){this.executor=r(PA)};g=lD.prototype;g.get=function(a){return this.executor.get({url:"action/custom_fields/"+Number(a),responseConstructor:jD}).pipe(C(nEa))};g.getResource=function(a){return this.executor.get({url:"action/custom_fields/"+a,responseConstructor:jD}).pipe(C(nEa))};g.create=function(a,b){b=pEa(b);return this.executor.post({url:"action/custom_fields",options:{params:{componentId:a}},body:b,responseConstructor:jD}).pipe(C(nEa))};
g.update=function(a,b,c){b=Number(b);c=pEa(c);return this.executor.post({url:"action/custom_fields/"+b,options:{params:{componentId:a}},body:c,responseConstructor:jD}).pipe(C(nEa))};g.delete=function(a,b){return this.executor.delete({url:"action/custom_fields/"+Number(b),options:{params:{componentId:a}},responseConstructor:null})};
g.query=function(a){return this.executor.get({url:"action/custom_fields",options:{params:{query:a.query,trackerIds:a.trackerIds,pageSize:a.pageSize||0,pageToken:a.pageToken||""}},responseConstructor:kD}).pipe(C(qEa))};lD.\u0275fac=function(a){return new (a||lD)};lD.\u0275prov=Cd({token:lD,factory:lD.\u0275fac,providedIn:"root"});var mD=function(){this.observableApi=r(lD)};g=mD.prototype;g.get=function(a){return Rf(this.observableApi.get(a))};g.getResource=function(a){return Rf(this.observableApi.getResource(a))};
g.create=function(a,b){return Rf(this.observableApi.create(a,b))};g.update=function(a,b,c){return Rf(this.observableApi.update(a,b,c))};g.delete=function(a,b){return Rf(this.observableApi.delete(a,b))};g.query=function(a){return Rf(this.observableApi.query(a))};mD.\u0275fac=function(a){return new (a||mD)};mD.\u0275prov=Cd({token:mD,factory:mD.\u0275fac,providedIn:"root"});var nD=function(){XA.call(this,{freshUntil:18E5,ancientAfter:2592E6});this.api=r(lD);this.recordType="customFieldResource";this.idForRecord=function(a){return String(a.customFieldId)}};Y(nD,XA);nD.prototype.fetchOne=function(a){return this.api.getResource(a).pipe(hg(function(b){console.error("error fetching custom field "+a,b);return Nf(void 0)}))};nD.\u0275fac=function(a){return new (a||nD)};nD.\u0275prov=Cd({token:nD,factory:nD.\u0275fac,providedIn:"root"});var oD=function(){XA.call(this);this.api=r(dB);this.recordType="EnrichmentCategory";this.idForRecord=function(a){return a.name};this.isEqual=gj};Y(oD,XA);oD.prototype.fetchOne=function(a){return this.api.getEnrichmentCategory(a)};oD.prototype.fetchSet=function(a){var b=this;return Uf(a.map(function(c){return b.fetchOne(c)}))};oD.\u0275fac=function(a){return new (a||oD)};oD.\u0275prov=Cd({token:oD,factory:oD.\u0275fac,providedIn:"root"});var Yn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Yn,n);var Zn=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Zn.messageId)};Y(Zn,n);g=Zn.prototype;g.getId=function(){return xk(this,1,void 0,Nc)};g.getId_asLegacyNumberOrString=function(){return Um(this,1,void 0,Nc)};g.getId_asString=function(){return Bk(this,1,void 0,Nc)};g.setId=function(a){return Ek(this,1,a,void 0,Nc)};g.setTriage=function(a){return X(this,Yn,2,a,Nc)};Zn.messageId="b.IssueExperiments";var JEa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(JEa,n);g=JEa.prototype;g.getPhasesList=function(){return Fk(this,1,Bj())};g.setPhasesList=function(a){return dp(this,1,a)};g.getSubphasesList=function(){return Fk(this,2,Bj())};g.setSubphasesList=function(a){return dp(this,2,a)};g.getValue=function(){return W(this,mm,3)};g.setValue=function(a){return X(this,mm,3,a)};g.hasValue=function(){return tk(this,mm,3)};var ao=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ao,n);ao.prototype.getCustomFieldId=function(){return xk(this,1)};ao.prototype.getCustomFieldId_asString=function(){return Bk(this,1)};ao.prototype.setCustomFieldId=function(a){return Ek(this,1,a)};ao.prototype.hasCustomFieldId=function(){return wk(this,1)};var DEa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(DEa,n);g=DEa.prototype;g.getHotlistIdsList_asLegacyNumberOrString=function(a){return bp(this,1,Bj(a))};g.getHotlistIdsList_asString=function(){return Ck(this,1)};g.setHotlistIdsList=function(a){return ep(this,1,a)};g.addHotlistIds=function(a,b){return Qu(this,1,a,b)};g.addAllHotlistIds=function(a){Ru(this,1,a)};g.removeHotlistIds=function(a){return Hec(this,1,a)};g.getPhasesList=function(){return Fk(this,3,Bj())};
g.setPhasesList=function(a){return dp(this,3,a)};g.getSubphasesList=function(){return Fk(this,4,Bj())};g.setSubphasesList=function(a){return dp(this,4,a)};var xEa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(xEa,n);var AEa=[1,2];var $n=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($n,n);g=$n.prototype;g.getScope=function(){return Rc(this,1)};g.setScope=function(a){return Qk(this,1,a)};g.setConfig=function(a){Au(this,3,xEa,a)};g.getId=function(){return xk(this,4)};g.getId_asLegacyNumberOrString=function(){return Um(this,4)};g.getId_asString=function(){return Bk(this,4)};g.setId=function(a){return Ek(this,4,a)};g.getDisplayName=function(){return Rc(this,5)};
g.setDisplayName=function(a){return Qk(this,5,a)};g.getDisplayColumns=function(){return W(this,Vk,6)};g.setDisplayColumns=function(a){X(this,Vk,6,a)};var pD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,pD.messageId)};Y(pD,n);g=pD.prototype;g.getId=function(){return xk(this,1,void 0,Nc)};g.getId_asLegacyNumberOrString=function(){return Um(this,1,void 0,Nc)};g.getId_asString=function(){return Bk(this,1,void 0,Nc)};g.setId=function(a){return Ek(this,1,a,void 0,Nc)};g.setTriage=function(a){return Au(this,2,$n,a,void 0,Nc)};pD.messageId="b.TeamExperiments";var fo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(fo,n);var go=function(a,b){yc(a,1,Qb,b,void 0,Rb)};var QEa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(QEa,n);g=QEa.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getAddMask=function(){return W(this,fo,2)};g.getMutableAddMask=function(){return Cu(this,fo,2)};g.setAddMask=function(a){return X(this,fo,2,a)};
g.getAdd=function(){return W(this,Rm,3)};g.setAdd=function(a){return X(this,Rm,3,a)};g.getRemoveMask=function(){return W(this,fo,4)};g.getMutableRemoveMask=function(){return Cu(this,fo,4)};g.setRemoveMask=function(a){return X(this,fo,4,a)};g.getRemove=function(){return W(this,Rm,5)};g.setRemove=function(a){return X(this,Rm,5,a)};g.getIssueComment=function(){return W(this,ho,6)};g.setIssueComment=function(a){X(this,ho,6,a)};g.hasIssueComment=function(){return tk(this,ho,6)};
g.setSignificanceOverride=function(a){return Jj(this,7,a)};var uo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(uo,n);uo.prototype.getQuery=function(){return Rc(this,1)};uo.prototype.setQuery=function(a){return Hj(this,1,a)};uo.prototype.clearQuery=function(){Bu(this,1)};var qD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qD,n);qD.prototype.getIssueId=function(){return xk(this,1)};qD.prototype.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};qD.prototype.getIssueId_asString=function(){return Bk(this,1)};qD.prototype.setIssueId=function(a){return Xl(this,1,a)};var ZEa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ZEa,n);g=ZEa.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getComponentId=function(){return xk(this,2)};g.getComponentId_asString=function(){return Bk(this,2)};g.setComponentId=function(a){return Xl(this,2,a)};var GFa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(GFa,n);GFa.prototype.getRelation=function(){return pk(this,1)};GFa.prototype.setRelation=function(a){return Jj(this,1,a)};var FFa=function(a,b){return pm(a,2,b)};var kuc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(kuc,n);g=kuc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getReason=function(){return pk(this,2)};g.setReason=function(a){return Jj(this,2,a)};g.setSignificanceOverride=function(a){return Jj(this,3,a)};var vFa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(vFa,n);g=vFa.prototype;g.getQuery=function(){return Rc(this,1)};g.setQuery=function(a){return Hj(this,1,a)};g.clearQuery=function(){Bu(this,1)};g.setOrderBy=function(a){return Hj(this,2,a)};g.setPageSize=function(a){return Zj(this,3,a)};g.setPageToken=function(a){return Hj(this,4,a)};g.setView=function(a){return Jj(this,5,a)};g.setIssueDescriptionView=function(a){return Jj(this,6,a)};var WEa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(WEa,n);g=WEa.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getComponentId=function(){return xk(this,2)};g.getComponentId_asString=function(){return Bk(this,2)};g.setComponentId=function(a){return Xl(this,2,a)};
g.setSignificanceOverride=function(a){return Jj(this,3,a)};var mo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(mo,n);mo.prototype.getIssueId=function(){return xk(this,1)};mo.prototype.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};mo.prototype.getIssueId_asString=function(){return Bk(this,1)};mo.prototype.setIssueId=function(a){return Xl(this,1,a)};var luc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(luc,n);g=luc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.setSignificanceOverride=function(a){return Jj(this,2,a)};var mFa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(mFa,n);g=mFa.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getRetention=function(){return pk(this,2)};g.setRetention=function(a){return Jj(this,2,a)};g.setSignificanceOverride=function(a){return Jj(this,3,a)};var rD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,rD.messageId)};Y(rD,n);rD.prototype.getIt=function(){return W(this,kuc,3,Nc)};rD.prototype.setIt=function(a){return X(this,kuc,3,a,Nc)};rD.messageId="b.DeleteIssueRequest";var BFa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(BFa,n);var bFa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bFa,n);g=bFa.prototype;g.getFieldName=function(){return Rc(this,1)};g.setFieldName=function(a){Qk(this,1,a)};g.getValue=function(){return Rc(this,2)};g.setValue=function(a){return Qk(this,2,a)};g.hasValue=function(){return mk(this,2)};g.getCustomFieldValue=function(){return W(this,no,5)};g.setCustomFieldValue=function(a){return X(this,no,5,a)};g.clearCustomFieldValue=function(){return Bu(this,5)};var ko=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,ko.messageId)};Y(ko,n);ko.prototype.getIt=function(){return W(this,SEa,5,Nc)};ko.prototype.setIt=function(a){return X(this,SEa,5,a,Nc)};ko.messageId="b.GetRetainedAccessPrincipalsRequest";var ro=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,ro.messageId)};Y(ro,n);ro.prototype.getIt=function(){return W(this,an,4,Nc)};ro.prototype.setIt=function(a){return X(this,an,4,a,Nc)};ro.messageId="b.HotlistIssue";var wo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(wo,n);wo.prototype.getIt=function(){return W(this,oo,23)};wo.prototype.setIt=function(a){return X(this,oo,23,a)};var pFa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(pFa,n);pFa.prototype.getIt=function(){return W(this,qFa,6)};pFa.prototype.setIt=function(a){return X(this,qFa,6,a)};var eFa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(eFa,n);eFa.prototype.getIt=function(){return W(this,QEa,7)};eFa.prototype.setIt=function(a){return X(this,QEa,7,a)};var so=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(so,n);so.prototype.setTrackerIdsList=function(a){return vc(this,6,a,Hb)};so.prototype.getIt=function(){return W(this,vFa,7)};so.prototype.setIt=function(a){return X(this,vFa,7,a)};var yFa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(yFa,n);var xFa=function(a,b){return X(a,so,1,b)},AFa=function(a,b){Bm(a,3,b)},DFa=function(a,b){X(a,Zn,4,b)},EFa=function(a,b){X(a,GFa,5,b)};var YEa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(YEa,n);YEa.prototype.getIt=function(){return W(this,ZEa,4)};YEa.prototype.setIt=function(a){return X(this,ZEa,4,a)};var to=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,to.messageId)};Y(to,n);to.prototype.getIt=function(){return W(this,uo,4,Nc)};to.prototype.setIt=function(a){return X(this,uo,4,a,Nc)};to.messageId="b.ListRecentEventsForIssuesRequest";var sD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,sD.messageId)};Y(sD,n);sD.prototype.getIt=function(){return W(this,qD,3,Nc)};sD.prototype.setIt=function(a){return X(this,qD,3,a,Nc)};sD.messageId="b.MarkAsVulnerabilityRequest";var VEa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(VEa,n);VEa.prototype.getIt=function(){return W(this,WEa,4)};VEa.prototype.setIt=function(a){return X(this,WEa,4,a)};var tD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,tD.messageId)};Y(tD,n);tD.prototype.getIt=function(){return W(this,Om,9,Nc)};tD.prototype.setIt=function(a){return X(this,Om,9,a,Nc)};tD.messageId="b.StatusUpdate";var lo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,lo.messageId)};Y(lo,n);lo.prototype.getIt=function(){return W(this,mo,3,Nc)};lo.prototype.setIt=function(a){return X(this,mo,3,a,Nc)};lo.messageId="b.UnCcUserActionRequest";var uD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,uD.messageId)};Y(uD,n);uD.prototype.getIt=function(){return W(this,luc,2,Nc)};uD.prototype.setIt=function(a){return X(this,luc,2,a,Nc)};uD.messageId="b.UndeleteIssueRequest";var vD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,vD.messageId)};Y(vD,n);vD.prototype.getIt=function(){return W(this,Cpc,5,Nc)};vD.prototype.setIt=function(a){return X(this,Cpc,5,a,Nc)};vD.messageId="b.UpdateIssueAccessLimitRequest";var gFa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gFa,n);gFa.prototype.setSignificanceOverride=function(a){return Rk(this,4,a)};var nFa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(nFa,n);nFa.prototype.getIt=function(){return W(this,mFa,5)};nFa.prototype.setIt=function(a){return X(this,mFa,5,a)};var NFa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(NFa,n);g=NFa.prototype;g.getIssueIdsList=function(){return Rj(this,2,1)};g.getIssueIdsList_asString=function(){return Ck(this,2)};g.setIssueIdsList=function(a){return vc(this,2,a,Hb)};g.addIssueIds=function(a){return yc(this,2,Hb,a,void 0,Ob)};g.setIssueIds=function(a){Bc(this,2,Hb,a,void 0,Ob)};var muc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(muc,n);muc.prototype.setSignificanceOverride=function(a){return Qk(this,3,a)};var nuc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(nuc,n);g=nuc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getSummaryType=function(){return pk(this,2)};g.setSummaryType=function(a){return Jj(this,2,a)};g.getModelVersion=function(){return Ej(this,3)};
g.setModelVersion=function(a){return Zj(this,3,a)};g.getIssueVersion=function(){return Ej(this,7)};g.setIssueVersion=function(a){return Zj(this,7,a)};g.setFeedbackType=function(a){return Jj(this,5,a)};var aGa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(aGa,n);aGa.prototype.getValue=function(){return Ej(this,1)};aGa.prototype.setValue=function(a){return Zj(this,1,a)};var bGa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bGa,n);bGa.prototype.getValue=function(){return xk(this,1)};bGa.prototype.setValue=function(a){return Xl(this,1,a)};var cGa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(cGa,n);cGa.prototype.getValue=function(){return Rc(this,1)};cGa.prototype.setValue=function(a){return Hj(this,1,a)};var kGa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(kGa,n);var iGa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(iGa,n);var ouc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ouc,n);ouc.prototype.getField=function(){return Rc(this,1)};ouc.prototype.clearField=function(){return Bu(this,1)};var hGa=[3,4];var nGa=new Ll("M/d/yyyy");var IGa=function(){this.updates=[];this.hasInitialUpdate=!1;this.summary=[]},JGa=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},xGa=function(a,b){a.summary.push.apply(a.summary,p(b))},FGa=function(a){var b=puc(a,a.updates.flatMap(sGa)),c=quc(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:ql(a.commentTimestamp||((f=a.updates[0])==null?void 0:f.timestamp)),userPerformingAction:Ao(a.author),userPerformingActionUser:a.author,version:a.firstUpdateVersion,isMajorEvent:!!a.comment||!!c.length||a.hasInitialUpdate||b.some(function(k){return k.important}),statusUpdate:a.statusUpdate,taggedSummary:a.summary,issueId:a.updates[0].issueId,isCommentEvent:!!a.comment};
if(a.comment){d.commentContentVerdict=a.comment.commentContentVerdict;var h;d.commentDeletionStatus=(h=a.comment.entityStatus)==null?void 0:h.status;d.commentEtag=a.comment.etag;d.commentLastModifiedAtDate=a.comment.lastModified?Math.round(ql(ak(ek(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},quc=function(a,b){if(!a.comment)return{preDiffs:b,postDiffs:[]};var c=b.filter(function(d){return d.timestamp<ql(a.commentTimestamp)});b=b.filter(function(d){return d.timestamp>=ql(a.commentTimestamp)});return{preDiffs:c,postDiffs:b}},puc=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 CGa=gk(function(a){return a.modifiedDate},hk),HGa=gk(function(a){return a.version},hk);var ruc=Symbol("mc"),suc=Symbol("nc"),tuc=Symbol("oc"),wD=function(){};wD.prototype.schedule=function(a,b){b=b===void 0?0:b;var c=pj(),d=c.promise;b=setTimeout(function(){try{var e=a()}catch(f){c.reject(f);d[tuc]=!0;return}c.resolve(e);d[tuc]=!0},b);d[ruc]=b;d[suc]=c.reject;d[tuc]=!1;return c.promise};wD.prototype.cancel=function(a){var b=a[ruc];if(b==null||a[tuc])return!1;clearTimeout(b);var c;(c=a[suc])==null||c.call(a,Error("pc"));return a[tuc]=!0};wD.\u0275fac=function(a){return new (a||wD)};
wD.\u0275prov=Cd({token:wD,factory:wD.\u0275fac,providedIn:"root"});var xD=function(){this.timeout=r(wD)};xD.prototype.adapt=function(a){return new uuc(this.timeout,a)};xD.\u0275fac=function(a){return new (a||xD)};xD.\u0275prov=Cd({token:xD,factory:xD.\u0275fac,providedIn:"root"});var uuc=function(a,b){this.timeout=a;this.bulkGet=b;this.batchedInputs=[[]];this.batchedDeferreds=[[]];this.isBatchScheduled=!1};
uuc.prototype.get=function(a){var b=pj(),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||vuc(this);return b.promise};
var vuc=function(a){a.isBatchScheduled=!0;a.timeout.schedule(function(){for(var b={},c=0;c<a.batchedInputs.length;b={batchedDeferred:void 0},c++){var d=a.batchedInputs[c];b.batchedDeferred=a.batchedDeferreds[c];a.bulkGet(d).then(function(e){return function(f){for(var h=0;h<e.batchedDeferred.length;h++)e.batchedDeferred[h].resolve(f[h])}}(b),function(e){return function(f){for(var h=l(e.batchedDeferred),k=h.next();!k.done;k=h.next())k.value.reject(f)}}(b))}a.batchedInputs=[[]];a.batchedDeferreds=[[]];
a.isBatchScheduled=!1})};var Do=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Do.messageId)};Y(Do,n);Do.prototype.getResource=function(){return Rc(this,1,void 0,Nc)};Do.prototype.setResource=function(a){return Qk(this,1,a,Nc)};Do.prototype.getRelation=function(){return pk(this,2,void 0,Nc)};Do.prototype.setRelation=function(a){return Rk(this,2,a,Nc)};Do.messageId="b.ResourceRelation";var wuc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,wuc.messageId)};Y(wuc,n);wuc.messageId="b.UserAccessBatchResponse";var yD=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+)$")};yD.prototype.validate=function(a){return this.resourceNamePattern.test(a)};yD.\u0275fac=function(a){return new (a||yD)};yD.\u0275prov=Cd({token:yD,factory:yD.\u0275fac,providedIn:"root"});
var AD=function(){var a=this;this.rawUserAccess=r(zD);this.resourceNameValidator=r(yD);this.bulkApiAdapter=r(xD);this.accesses={};this.accessGetter=this.bulkApiAdapter.adapt(function(b){return xuc(a,b)})},xuc=function(a,b){return yuc(a,b).then(function(c){return LGa(b,c)})},BD=function(a,b,c){return a.resourceNameValidator.validate(c)?zuc(a,b,c):Promise.reject(Error("qc`"+c))},Auc=function(a,b){return a.resourceNameValidator.validate(b)?Promise.all([zuc(a,"admin",b),zuc(a,"writer",b),zuc(a,"appender",
b),zuc(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("qc`"+b))},yuc=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 Rf(a.rawUserAccess.executor.get({url:"action/user_access",options:{params:{relations:c.join(","),resourceNames:d.join(",")}},responseConstructor:wuc}).pipe(C(KGa)))},
zuc=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};AD.\u0275fac=function(a){return new (a||AD)};AD.\u0275prov=Cd({token:AD,factory:AD.\u0275fac,providedIn:"root"});var zD=function(){this.executor=r(PA)};zD.\u0275fac=function(a){return new (a||zD)};zD.\u0275prov=Cd({token:zD,factory:zD.\u0275fac,providedIn:"root"});var Buc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Buc,n);g=Buc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getSummaryType=function(){return pk(this,2)};g.setSummaryType=function(a){return Jj(this,2,a)};var Cuc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Cuc,n);g=Cuc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getSummaryType=function(){return pk(this,2)};g.setSummaryType=function(a){return Jj(this,2,a)};var Duc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Duc,n);Duc.prototype.setFeedback=function(a){return X(this,nuc,1,a)};var CD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(CD,n);CD.prototype.setMaxResults=function(a){return Zj(this,1,a)};CD.prototype.setView=function(a){return Jj(this,2,a)};CD.prototype.setIssueDescriptionView=function(a){return Jj(this,3,a)};var DD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(DD,n);g=DD.prototype;g.getIssueIdsList=function(){return Rj(this,1,1)};g.getIssueIdsList_asString=function(){return Ck(this,1)};g.setIssueIdsList=function(a){return ep(this,1,a)};g.addIssueIds=function(a){return Qu(this,1,a)};g.setIssueIds=function(a){Su(this,1,a)};g.setView=function(a){return Jj(this,2,a)};g.setIssueDescriptionView=function(a){return Jj(this,3,a)};var Euc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Euc,n);g=Euc.prototype;g.getComponentId=function(){return xk(this,5)};g.getComponentId_asString=function(){return Bk(this,5)};g.setComponentId=function(a){return Xl(this,5,a)};g.getTitle=function(){return Rc(this,6)};g.setTitle=function(a){return Hj(this,6,a)};g.getComment=function(){return Rc(this,7)};g.setComment=function(a){return Hj(this,7,a)};g.getAttachmentsList=function(){return Sj(this,am,8,Bj())};
g.setAttachmentsList=function(a){return Bm(this,8,a)};g.addAllAttachments=function(a){bo(this,8,am,a)};g.setSignificanceOverride=function(a){return Jj(this,2,a)};g.getTemplateId=function(){return xk(this,4)};g.setTemplateId=function(a){return Xl(this,4,a)};var Fuc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Fuc,n);g=Fuc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.setView=function(a){return Jj(this,2,a)};g.setIssueDescriptionView=function(a){return Jj(this,3,a)};var Guc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Guc,n);g=Guc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.setTargetIdsList=function(a){return ep(this,2,a)};g.setSignificanceOverride=function(a){return Jj(this,3,a)};var Huc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Huc,n);g=Huc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.setTargetIdsList=function(a){return ep(this,2,a)};g.setSignificanceOverride=function(a){return Jj(this,3,a)};var Iuc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Iuc,n);g=Iuc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.setTargetId=function(a){return Xl(this,2,a)};g.setSignificanceOverride=function(a){return Jj(this,3,a)};var Juc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Juc,n);g=Juc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.setTargetIdsList=function(a){return ep(this,2,a)};g.setSignificanceOverride=function(a){return Jj(this,3,a)};var Kuc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Kuc,n);g=Kuc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.setTargetIdsList=function(a){return ep(this,2,a)};g.setSignificanceOverride=function(a){return Jj(this,3,a)};var Luc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Luc,n);g=Luc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.setTargetId=function(a){return Xl(this,2,a)};g.setSignificanceOverride=function(a){return Jj(this,3,a)};var ED=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,ED.messageId)};Y(ED,n);ED.prototype.getIt=function(){return W(this,DD,3,Nc)};ED.prototype.setIt=function(a){return X(this,DD,3,a,Nc)};ED.messageId="b.BatchGetIssuesRequest";var Muc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Muc,n);Muc.prototype.getIssuesList=function(){return Sj(this,oo,1,Bj())};var FD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,FD.messageId)};Y(FD,n);FD.prototype.getIt=function(){return W(this,Muc,2,Nc)};FD.prototype.setIt=function(a){return X(this,Muc,2,a,Nc)};FD.messageId="b.BatchGetIssuesResponse";var QFa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(QFa,n);g=QFa.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Iu(this,1)};g.getIssueId_asString=function(){return sk(this,1)};g.setIssueId=function(a){return Uk(this,1,a)};g.getMessage=function(){return Rc(this,2)};g.setMessage=function(a){return Qk(this,2,a)};var Nuc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Nuc.messageId)};Y(Nuc,n);Nuc.prototype.setErrors=function(a,b){Au(this,2,QFa,a,b,Nc)};Nuc.messageId="b.BulkEditResponse";var GD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,GD.messageId)};Y(GD,n);GD.prototype.getIt=function(){return W(this,Buc,1,Nc)};GD.prototype.setIt=function(a){return X(this,Buc,1,a,Nc)};GD.messageId="b.GenerateIssueSummaryRequest";var HD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(HD,n);g=HD.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getSummaryType=function(){return pk(this,2)};g.setSummaryType=function(a){return Jj(this,2,a)};g.getModelVersion=function(){return Ej(this,3)};
g.setModelVersion=function(a){return Zj(this,3,a)};g.getIssueVersion=function(){return Ej(this,7)};g.setIssueVersion=function(a){return Zj(this,7,a)};g.getVersion=function(){return Ej(this,4)};g.setVersion=function(a){return Zj(this,4,a)};g.getSummary=function(){return Rc(this,5)};var ID=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,ID.messageId)};Y(ID,n);ID.prototype.getIt=function(){return W(this,HD,1,Nc)};ID.prototype.setIt=function(a){return X(this,HD,1,a,Nc)};ID.messageId="b.GenerateIssueSummaryResponse";var JD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,JD.messageId)};Y(JD,n);JD.prototype.getIt=function(){return W(this,HD,4,Nc)};JD.prototype.setIt=function(a){return X(this,HD,4,a,Nc)};JD.messageId="b.GetIssueSummaryResponse";var KD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(KD,n);KD.prototype.getReadersList=function(){return Sj(this,Ql,1,Bj())};KD.prototype.setReadersList=function(a){return Bm(this,1,a)};KD.prototype.getAppendersList=function(){return Sj(this,Ql,2,Bj())};KD.prototype.setAppendersList=function(a){return Bm(this,2,a)};var LD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,LD.messageId)};Y(LD,n);LD.prototype.getIt=function(){return W(this,KD,4,Nc)};LD.prototype.setIt=function(a){return X(this,KD,4,a,Nc)};LD.messageId="b.GetRetainedAccessPrincipalsResponse";var MD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,MD.messageId)};Y(MD,n);MD.prototype.getIssueId=function(){return xk(this,1,void 0,Nc)};MD.prototype.getIssueId_asLegacyNumberOrString=function(){return Iu(this,1,void 0,Nc)};MD.prototype.getIssueId_asString=function(){return sk(this,1,void 0,Nc)};MD.prototype.setIssueId=function(a){return Uk(this,1,a,void 0,Nc)};MD.messageId="b.IssueCreateResponse";var Lo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Lo.messageId)};Y(Lo,n);Lo.prototype.getIssue=function(){return W(this,wo,1,Nc)};Lo.prototype.setIssue=function(a){return X(this,wo,1,a,Nc)};Lo.messageId="b.IssueFetchResponse";var Ouc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ouc,n);g=Ouc.prototype;g.getIssuesList=function(){return Sj(this,oo,1,Bj())};g.getNextPageToken=function(){return Rc(this,2)};g.getTotalSize=function(){return Ej(this,3)};g.getTotalSizeAccurate=function(){return kk(this,4)};g.getMaySkipResults=function(){return kk(this,5)};var ND=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,ND.messageId)};Y(ND,n);ND.prototype.getIt=function(){return W(this,Ouc,6,Nc)};ND.prototype.setIt=function(a){return X(this,Ouc,6,a,Nc)};ND.messageId="b.IssueSearchResponse";var Puc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Puc,n);g=Puc.prototype;g.getIssueId=function(){return xk(this,10)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,10)};g.getIssueId_asString=function(){return Bk(this,10)};g.setIssueId=function(a){return Xl(this,10,a)};g.getAuthor=function(){return W(this,Gj,1)};g.setAuthor=function(a){X(this,Gj,1,a)};g.hasAuthor=function(){return tk(this,Gj,1)};g.getTimestamp=function(){return W(this,bk,2)};
g.setTimestamp=function(a){return X(this,bk,2,a)};g.hasTimestamp=function(){return tk(this,bk,2)};g.getIssueComment=function(){return W(this,ho,3)};g.setIssueComment=function(a){X(this,ho,3,a)};g.hasIssueComment=function(){return tk(this,ho,3)};g.getCommentNumber=function(){return Ej(this,4)};g.setCommentNumber=function(a){return Zj(this,4,a)};g.getAttachmentsList=function(){return Sj(this,am,8,Bj())};g.setAttachmentsList=function(a){return Bm(this,8,a)};
g.addAllAttachments=function(a){bo(this,8,am,a)};g.getStatusUpdate=function(){return W(this,Om,9)};g.setStatusUpdate=function(a){X(this,Om,9,a)};g.hasStatusUpdate=function(){return tk(this,Om,9)};g.getFieldUpdatesList=function(){return Sj(this,ouc,6,Bj())};g.getVersion=function(){return Ej(this,7)};g.setVersion=function(a){return Zj(this,7,a)};var Quc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Quc.messageId)};Y(Quc,n);Quc.messageId="b.ListIssueEventsResponse";var OD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,OD.messageId)};Y(OD,n);OD.prototype.getIt=function(){return W(this,CD,1,Nc)};OD.prototype.setIt=function(a){return X(this,CD,1,a,Nc)};OD.messageId="b.ListRecentIssuesRequest";var Ruc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ruc,n);Ruc.prototype.getIssuesList=function(){return Sj(this,oo,1,Bj())};var PD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,PD.messageId)};Y(PD,n);PD.prototype.getIt=function(){return W(this,Ruc,2,Nc)};PD.prototype.setIt=function(a){return X(this,Ruc,2,a,Nc)};PD.messageId="b.ListRecentIssuesResponse";var kFa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(kFa,n);g=kFa.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Iu(this,1)};g.getIssueId_asString=function(){return sk(this,1)};g.setIssueId=function(a){return Uk(this,1,a)};g.getStatus=function(){return pk(this,2)};g.setStatus=function(a){return Rk(this,2,a)};g.hasStatus=function(){return nk(this,2)};g.getTitle=function(){return Rc(this,3)};
g.setTitle=function(a){return Qk(this,3,a)};g.getVersion=function(){return Ej(this,4)};g.setVersion=function(a){return Ok(this,4,a)};g.getVersionOrUndefined=function(){return Gu(this,4)};g.getIsArchived=function(){return kk(this,5)};g.setIsArchived=function(a){return Nk(this,5,a)};var Suc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Suc.messageId)};Y(Suc,n);Suc.messageId="b.RelatedIssuesResponse";var QD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,QD.messageId)};Y(QD,n);QD.prototype.getIt=function(){return W(this,Duc,1,Nc)};QD.prototype.setIt=function(a){return X(this,Duc,1,a,Nc)};QD.messageId="b.SubmitIssueSummaryFeedbackRequest";var RD=function(){this.executor=r(PA);this.userAccess=r(AD);this.activeSession=r(Bs)};g=RD.prototype;
g.createIssue=function(a){var b=this;return Yf(function(){return BD(b.userAccess,"writer","components/"+a.snapshot.componentId+"/issueDefaults")}).pipe(xg(function(c){if(c){var d=tFa(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:MD}).pipe(C(uFa))}else{c=(new Euc).setComponentId(a.snapshot.componentId).setTitle(a.snapshot.title).setComment(a.snapshot.comment);var f=Cm(a.snapshot.formattingMode);
c=Jj(c,9,f).setAttachmentsList((e=(d=a.attachments)==null?void 0:d.map(Sxa))!=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:MD}).pipe(C(uFa))}return d}))};
g.createIssueWithWizard=function(a){var b=tFa(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:MD}).pipe(C(uFa))};g.getIssueFull=function(a){var b={},c,d=(c=this.activeSession.getTracker())==null?void 0:c.trackerId;d&&(b.currentTrackerId=d);return this.executor.get({url:"action/issues/"+a,options:{params:b},responseConstructor:Lo}).pipe(C(function(e){return vo(e)}))};
g.getIssueBasic=function(a){var b={},c,d=(c=this.activeSession.getTracker())==null?void 0:c.trackerId;d&&(b.currentTrackerId=d);c=(new Fuc).setIssueId(a).setView(1).setIssueDescriptionView(1);return this.executor.post({url:"action/issues/"+a+"/getIssue",options:{params:b},body:c,responseConstructor:Lo}).pipe(C(function(e){return vo(e)}))};
g.batchGetIssuesFull=function(a){a=(new ED).setIt((new DD).setIssueIdsList(a.map(Mj).filter(Qj)).setView(2).setIssueDescriptionView(2));return this.executor.post({url:"action/issues/batch",body:a,responseConstructor:FD}).pipe(C(function(b){return b.getIt().getIssuesList().map(xza)}))};g.batchGetIssues=function(a){a=(new ED).setIt((new DD).setIssueIdsList(a.map(Mj).filter(Qj)).setView(1).setIssueDescriptionView(1));return this.executor.post({url:"action/issues/batch",body:a,responseConstructor:FD}).pipe(C(function(b){return b.getIt().getIssuesList().map(Vm)}))};
g.updateIssue=function(a,b){b.actions=b.actions.filter(function(c){return c.fieldName!=="componentId"});b=fFa(b);return this.executor.post({url:"action/issues/"+a,body:b,responseConstructor:Lo}).pipe(C(function(c){return vo(c)}))};g.moveIssueExternal=function(a,b){b=$Ea(b);return this.executor.post({url:"action/issues/"+a+"/external_move",body:b,responseConstructor:Lo}).pipe(C(function(c){return vo(c)}))};
g.moveIssue=function(a,b){b=XEa(b);return this.executor.post({url:"action/issues/"+a+"/move",body:b,responseConstructor:Lo}).pipe(C(function(c){return vo(c)}))};g.unCcUser=function(a){var b=UEa(a);return this.executor.post({url:"action/issues/"+a+"/unccuser",body:b,responseConstructor:Lo}).pipe(C(function(c){return vo(c)}))};
g.updateAccessLimit=function(a,b,c,d){var e=new vD,f=e.setIt,h=(new Cpc).setIssueId(a);b&&(b=qxa(b),h.setIssueAccessLimit(b));c&&h.setAddedCollaboratorsList(c.map(Kj));d&&h.setRemovedCollaboratorsList(d.map(Kj));c=f.call(e,h);return this.executor.post({url:"action/issues/"+a+"/accessLimit",body:c,responseConstructor:null})};
g.getRetainedAccessPrincipals=function(a,b,c,d){b=TEa(a,b,c,d);return this.executor.post({url:"action/issues/"+a+"/retainedAccessPrincipals",body:b,responseConstructor:LD}).pipe(C(function(e){e=e.getIt();return{readers:e.getReadersList().map(Pl),appenders:e.getAppendersList().map(Pl),writers:Sj(e,Ql,3,Bj()).map(Pl)}}))};
g.markAsVulnerability=function(a,b){var c=(new qD).setIssueId(Number(a));b&&(b=b.map(Kj),Bm(c,2,b));c=(new sD).setIt(c);return this.executor.post({url:"action/issues/"+a+"/markAsVulnerability",body:c,responseConstructor:null})};
g.relateIssue=function(a,b){if(b.relation==="BLOCKING"&&b.actionType==="ADD")return this.addBlocking(a,b.targetIds);if(b.relation==="BLOCKING"&&b.actionType==="REMOVE")return this.removeBlocking(a,b.targetIds);if(b.relation==="BLOCKED_BY"&&b.actionType==="ADD")return this.addBlockedBy(a,b.targetIds);if(b.relation==="BLOCKED_BY"&&b.actionType==="REMOVE")return this.removeBlockedBy(a,b.targetIds);if(b.relation==="DUPLICATE"&&b.actionType==="ADD")return this.markAsDuplicate(a,b.targetIds[0]);if(b.relation===
"DUPLICATE"&&b.actionType==="REMOVE")return Tuc(this,a);throw Error("rc");};g.addBlocking=function(a,b){b=(new Huc).setIssueId(Number(a)).setTargetIdsList(b.map(Mj).filter(Qj));return this.executor.post({url:"action/issues/"+a+"/add_blocking",body:b,responseConstructor:Lo}).pipe(C(function(c){return vo(c)}))};g.removeBlocking=function(a,b){b=(new Kuc).setIssueId(Number(a)).setTargetIdsList(b.map(Mj).filter(Qj));return this.executor.post({url:"action/issues/"+a+"/remove_blocking",body:b,responseConstructor:Lo}).pipe(C(function(c){return vo(c)}))};
g.addBlockedBy=function(a,b){b=(new Guc).setIssueId(Number(a)).setTargetIdsList(b.map(Mj).filter(Qj));return this.executor.post({url:"action/issues/"+a+"/add_blocked_by",body:b,responseConstructor:Lo}).pipe(C(function(c){return vo(c)}))};g.removeBlockedBy=function(a,b){b=(new Juc).setIssueId(Number(a)).setTargetIdsList(b.map(Mj).filter(Qj));return this.executor.post({url:"action/issues/"+a+"/remove_blocked_by",body:b,responseConstructor:Lo}).pipe(C(function(c){return vo(c)}))};
g.markAsDuplicate=function(a,b){b=(new Iuc).setIssueId(Number(a)).setTargetId(Number(b));return this.executor.post({url:"action/issues/"+a+"/mark_as_duplicate",body:b,responseConstructor:Lo}).pipe(C(function(c){return vo(c)}))};var Tuc=function(a,b){var c=(new Luc).setIssueId(Number(b));return a.executor.post({url:"action/issues/"+b+"/unmark_as_duplicate",body:c,responseConstructor:Lo}).pipe(C(function(d){return vo(d)}))};
RD.prototype.updateIssueHotlists=function(a,b){b=jFa(b);return this.executor.post({url:"action/issues/"+a+"/hotlists",body:b,responseConstructor:Lo}).pipe(C(function(c){return vo(c)}))};RD.prototype.updateIssueRetention=function(a,b){b=oFa(b);return this.executor.post({url:"action/issues/"+a+"/update_retention",body:b,responseConstructor:Lo}).pipe(C(function(c){return vo(c)}))};
RD.prototype.listIssues=function(a,b){b=b===void 0?{}:b;a=wFa(a,b);return this.executor.post({url:"action/issues/list",body:a,responseConstructor:ND}).pipe(C(YFa))};var Uuc=function(a,b,c,d){c=c===void 0?{}:c;d=d===void 0?{}:d;b=IFa(b,c,d);return a.executor.post({url:"action/issues/list_with_experiments",body:b,responseConstructor:ND}).pipe(C(YFa))},Vuc=function(a,b){var c=new CD;b&&c.setMaxResults(b);b=(new OD).setIt(c);return a.executor.post({url:"action/issues/recent",body:b,responseConstructor:PD}).pipe(C(function(d){return d.getIt().getIssuesList().map(function(e){return Vm(e)})}))};
RD.prototype.issueBulkEdit=function(a,b){var c={};b&&(c["G-Recaptcha-Response-Token"]=b);b=new muc;var d=a.bulkEditOps.map(OFa);Bm(b,4,d);a.significanceOverride&&b.setSignificanceOverride(a.significanceOverride);return this.executor.post({url:"action/issues/bulk_edit",body:b,responseConstructor:Nuc,options:{headers:c}}).pipe(C(RFa))};
RD.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:Suc}).pipe(C(lFa))};
var Xuc=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:Quc}).pipe(C(function(e){return Wuc(e,!1)}))},Yuc=function(a,b){b=KFa(b);return a.executor.post({url:"action/issues/list/events",body:b,responseConstructor:Quc}).pipe(C(function(c){return Wuc(c,!0)}))};
RD.prototype.getIssueSummary=function(a,b){b=(new Cuc).setIssueId(Number(a)).setSummaryType(Qnc[b]);return this.executor.post({url:"action/issues/"+a+"/getSummary",body:b,responseConstructor:JD}).pipe(C(function(c){return $Fa(c.getIt())}))};RD.prototype.generateIssueSummary=function(a,b){b=(new Buc).setIssueId(a).setSummaryType(Qnc[b]);b=(new GD).setIt(b);return this.executor.post({url:"action/issues/"+a+"/generateSummary",body:b,responseConstructor:ID}).pipe(C(function(c){return $Fa(c.getIt())}))};
var Wuc=function(a,b){a=Sj(a,Puc,2,Bj(),Nc).map(gGa);return b?DGa(a):BGa(a)};RD.\u0275fac=function(a){return new (a||RD)};RD.\u0275prov=Cd({token:RD,factory:RD.\u0275fac,providedIn:"root"});var SD=function(){this.observableApi=r(RD)};g=SD.prototype;g.createIssue=function(a){return Rf(this.observableApi.createIssue(a))};g.createIssueWithWizard=function(a){return Rf(this.observableApi.createIssueWithWizard(a))};g.getIssueFull=function(a){return Rf(this.observableApi.getIssueFull(a))};
g.getIssueBasic=function(a){return Rf(this.observableApi.getIssueBasic(a))};g.batchGetIssuesFull=function(a){return Rf(this.observableApi.batchGetIssuesFull(a))};g.batchGetIssues=function(a){return Rf(this.observableApi.batchGetIssues(a))};g.updateIssue=function(a,b){return Rf(this.observableApi.updateIssue(a,b))};g.moveIssueExternal=function(a,b){return Rf(this.observableApi.moveIssueExternal(a,b))};g.moveIssue=function(a,b){return Rf(this.observableApi.moveIssue(a,b))};g.unCcUser=function(a){return Rf(this.observableApi.unCcUser(a))};
g.updateAccessLimit=function(a,b,c,d){return Rf(this.observableApi.updateAccessLimit(a,b,c,d))};g.getRetainedAccessPrincipals=function(a,b,c,d){return Rf(this.observableApi.getRetainedAccessPrincipals(a,b,c,d))};g.markAsVulnerability=function(a,b){return Rf(this.observableApi.markAsVulnerability(a,b))};g.relateIssue=function(a,b){return Rf(this.observableApi.relateIssue(a,b))};g.updateIssueHotlists=function(a,b){return Rf(this.observableApi.updateIssueHotlists(a,b))};
g.updateIssueRetention=function(a,b){return Rf(this.observableApi.updateIssueRetention(a,b))};g.listIssues=function(a,b){b=b===void 0?{}:b;return Rf(this.observableApi.listIssues(a,b))};g.issueBulkEdit=function(a,b){return Rf(this.observableApi.issueBulkEdit(a,b))};g.getRelatedIssues=function(a){return Rf(this.observableApi.getRelatedIssues(a))};SD.\u0275fac=function(a){return new (a||SD)};SD.\u0275prov=Cd({token:SD,factory:SD.\u0275fac,providedIn:"root"});var TD=function(){XA.call(this);this.observableIssueResources=r(RD);this.recordType="eventsForIssue";this.idForRecord=function(a){return a.id}};Y(TD,XA);TD.prototype.isEqual=function(a,b){return(a==null?void 0:a.id)!==(b==null?void 0:b.id)?!1:$va(a==null?void 0:a.events,b==null?void 0:b.events)};TD.prototype.copy=function(a){return a&&hj(a)};TD.prototype.fetchOne=function(a){return Xuc(this.observableIssueResources,a).pipe(C(function(b){return{id:a,events:b}}))};
TD.prototype.fetchSet=function(a){var b=this;return Uf(a.map(function(c){return b.fetchOne(c)})).pipe(C(function(c){return c.filter(Qj)}))};TD.\u0275fac=function(a){return new (a||TD)};TD.\u0275prov=Cd({token:TD,factory:TD.\u0275fac,providedIn:"root"});var Zuc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Zuc,n);g=Zuc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getCommentNumbers=function(){return Ju(this,2)};g.setView=function(a){return Jj(this,3,a)};var UD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,UD.messageId)};Y(UD,n);UD.prototype.getIt=function(){return W(this,Zuc,4,Nc)};UD.prototype.setIt=function(a){return X(this,Zuc,4,a,Nc)};UD.messageId="b.BatchGetIssueCommentsRequest";var $uc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($uc,n);$uc.prototype.getIssueCommentsList=function(){return Sj(this,ho,1,Bj())};var VD=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,VD.messageId)};Y(VD,n);VD.prototype.getIt=function(){return W(this,$uc,2,Nc)};VD.prototype.setIt=function(a){return X(this,$uc,2,a,Nc)};VD.messageId="b.BatchGetIssueCommentsResponse";var WD=function(){this.jspbExecutor=r(PA);this.activeSession=r(Bs)};WD.prototype.batchGet=function(a,b){var c=new UD,d=c.setIt;a=(new Zuc).setIssueId(Number(a));b=vc(a,2,b,Cb);c=d.call(c,b.setView(2));var e;(d=(e=this.activeSession.getTracker())==null?void 0:e.trackerId)&&Uk(c,3,d,void 0,Nc);return this.jspbExecutor.post({url:"action/comments/batch",responseConstructor:VD,body:c}).pipe(C(SFa))};WD.\u0275fac=function(a){return new (a||WD)};WD.\u0275prov=Cd({token:WD,factory:WD.\u0275fac,providedIn:"root"});var XD=function(){XA.call(this);var a=this;this.issueCommentsBatchApi=r(WD);this.batchApiAdapter=r(tB);this.recordType="formattedCommentsForIssue";this.idForRecord=function(b){return b.id.issueId+"-"+b.id.commentId};this.get=this.batchApiAdapter.adapt({bufferTimeMs:0,maxBatchSize:500,call:function(b){return a.call(b)},split:function(b,c){return a.splitBatch(b,c)}})};Y(XD,XA);
XD.prototype.fetchSet=function(a){var b=this,c=a[0].split("-")[0];return Uf(a.map(function(d){return b.get(d)})).pipe(C(function(d){var e=[];d=l(d);for(var f=d.next();!f.done;f=d.next())if(f=f.value){var h=void 0,k={issueId:c,commentId:(h=f.commentNumber)!=null?h:0};e.push({id:k,formattedComment:f})}return e}))};
XD.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(C(function(f){var h=b,k=new Map;f=l(f);for(var q=f.next();!q.done;q=f.next()){q=q.value;var v=void 0,A=Number(h)+"-"+((v=q.commentNumber)!=null?v:0);k.set(A,q)}return k}))};XD.prototype.splitBatch=function(a,b){return b.get(a)};
XD.\u0275fac=function(a){return new (a||XD)};XD.\u0275prov=Cd({token:XD,factory:XD.\u0275fac,providedIn:"root"});var YD=function(){XA.call(this);this.accessPolicyApi=r(qB);this.recordType="hotlistAccessPolicy";this.isEqual=gj;this.idForRecord=function(a){return a.id}};Y(YD,XA);YD.prototype.fetchOne=function(a){return this.accessPolicyApi.get("HOTLIST",a).pipe(C(function(b){return Object.assign({},{id:a},b)}))};YD.prototype.doSave=function(a){var b=a.id;return this.accessPolicyApi.update("HOTLIST",b,a).pipe(C(function(c){return Object.assign({},{id:b},c)}))};YD.\u0275fac=function(a){return new (a||YD)};
YD.\u0275prov=Cd({token:YD,factory:YD.\u0275fac,providedIn:"root"});var ZD=function(){XA.call(this);this.api=r(dB);this.recordType="IssueEnrichmentsForIssue";this.idForRecord=function(a){return a.issueId};this.isEqual=gj};Y(ZD,XA);ZD.prototype.fetchOne=function(a){return rqc(this.api,a).pipe(C(function(b){return{issueId:a,enrichments:b}}))};ZD.\u0275fac=function(a){return new (a||ZD)};ZD.\u0275prov=Cd({token:ZD,factory:ZD.\u0275fac,providedIn:"root"});var avc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(avc,n);g=avc.prototype;g.getIssueIdsList=function(){return Rj(this,1,1)};g.getIssueIdsList_asString=function(){return Ck(this,1)};g.setIssueIdsList=function(a){return ep(this,1,a)};g.addIssueIds=function(a){return Qu(this,1,a)};g.setIssueIds=function(a){Su(this,1,a)};var bvc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bvc,n);g=bvc.prototype;g.getIssueIdsList=function(){return Rj(this,1,1)};g.getIssueIdsList_asString=function(){return Ck(this,1)};g.setIssueIdsList=function(a){return ep(this,1,a)};g.addIssueIds=function(a){return Qu(this,1,a)};g.setIssueIds=function(a){Su(this,1,a)};var cvc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(cvc,n);cvc.prototype.setExperiments=function(a){return Au(this,1,Zn,a)};var $D=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,$D.messageId)};Y($D,n);$D.prototype.getIt=function(){return W(this,cvc,1,Nc)};$D.prototype.setIt=function(a){return X(this,cvc,1,a,Nc)};$D.messageId="b.BatchGetIssueExperimentsResponse";var dvc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dvc,n);g=dvc.prototype;g.getComponentId=function(){return xk(this,1)};g.getComponentId_asString=function(){return Bk(this,1)};g.setComponentId=function(a){return Xl(this,1,a)};g.getType=function(){return pk(this,2)};g.setType=function(a){return Jj(this,2,a)};g.getPriority=function(){return pk(this,3)};g.setPriority=function(a){return Jj(this,3,a)};g.getSeverity=function(){return pk(this,4)};
g.setSeverity=function(a){return Jj(this,4,a)};g.getStatus=function(){return pk(this,5)};g.setStatus=function(a){return Jj(this,5,a)};g.getReporter=function(){return W(this,Gj,6)};g.setReporter=function(a){X(this,Gj,6,a)};g.getAssignee=function(){return W(this,Gj,7)};g.setAssignee=function(a){return X(this,Gj,7,a)};g.clearAssignee=function(){return Bu(this,7)};g.getVerifier=function(){return W(this,Gj,8)};g.setVerifier=function(a){X(this,Gj,8,a)};g.clearVerifier=function(){return Bu(this,8)};
g.getCcsList=function(){return Sj(this,Gj,9,Bj())};g.setCcsList=function(a){Bm(this,9,a)};g.addAllCcs=function(a){bo(this,9,Gj,a)};g.setCcs=function(a,b){return Au(this,9,Gj,a,b)};g.getCollaboratorsList=function(){return Sj(this,Gj,23,Bj())};g.setCollaboratorsList=function(a){Bm(this,23,a)};g.addAllCollaborators=function(a){bo(this,23,Gj,a)};g.setCollaborators=function(a,b){return Au(this,23,Gj,a,b)};g.getStaffing=function(){return W(this,Mm,27)};g.setStaffing=function(a){X(this,Mm,27,a)};
g.getHotlistIdsList_asLegacyNumberOrString=function(a){return bp(this,10,Bj(a))};g.getHotlistIdsList_asString=function(){return Ck(this,10)};g.setHotlistIdsList=function(a){return ep(this,10,a)};g.addHotlistIds=function(a,b){return Qu(this,10,a,b)};g.addAllHotlistIds=function(a){Ru(this,10,a)};g.removeHotlistIds=function(a){return Hec(this,10,a)};g.getBlockedByIssueIdsList=function(){return Rj(this,11,1)};g.getBlockedByIssueIdsList_asLegacyNumberOrString=function(){return bp(this,11,Bj())};
g.setBlockedByIssueIdsList=function(a){ep(this,11,a)};g.addAllBlockedByIssueIds=function(a){Ru(this,11,a)};g.getBlockingIssueIdsList=function(){return Rj(this,12,1)};g.getBlockingIssueIdsList_asLegacyNumberOrString=function(){return bp(this,12,Bj())};g.setBlockingIssueIdsList=function(a){ep(this,12,a)};g.addAllBlockingIssueIds=function(a){Ru(this,12,a)};g.getCanonicalIssueId_asLegacyNumberOrString=function(){return Um(this,13)};g.setCanonicalIssueId=function(a){Xl(this,13,a)};
g.getDuplicateIssueIdsList_asLegacyNumberOrString=function(){return bp(this,14,Bj())};g.setDuplicateIssueIdsList=function(a){ep(this,14,a)};g.getInProd=function(){return kk(this,15)};g.setInProd=function(a){pm(this,15,a)};g.getSloSnoozeUntil=function(){return W(this,bk,16)};g.setSloSnoozeUntil=function(a){X(this,bk,16,a)};g.getSloEndTime=function(){return W(this,bk,25)};g.setSloEndTime=function(a){X(this,bk,25,a)};g.hasSloEndTime=function(){return tk(this,bk,25)};
g.getRetention=function(){return pk(this,17)};g.setRetention=function(a){return Jj(this,17,a)};g.getEntityStatus=function(){return W(this,Yl,18)};g.setEntityStatus=function(a){return X(this,Yl,18,a)};g.getIsArchived=function(){return kk(this,19)};g.setIsArchived=function(a){return pm(this,19,a)};g.getEffort=function(){return W(this,Sm,24)};g.setEffort=function(a){X(this,Sm,24,a)};g.hasEffort=function(){return tk(this,Sm,24)};g.getAccessLimit=function(){return W(this,Tl,26)};
g.setAccessLimit=function(a){return X(this,Tl,26,a)};var evc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(evc,n);g=evc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getIssueState=function(){return W(this,dvc,2)};g.setIssueState=function(a){return X(this,dvc,2,a)};g.getVersion=function(){return Ej(this,3)};
g.setVersion=function(a){return Zj(this,3,a)};g.getEtag=function(){return oq(this,16)};g.setEtag=function(a){return bm(this,16,a)};g.getCreatedTime=function(){return W(this,bk,4)};g.setCreatedTime=function(a){return X(this,bk,4,a)};g.getModifiedTime=function(){return W(this,bk,5)};g.setModifiedTime=function(a){return X(this,bk,5,a)};g.getMajorModifiedTime=function(){return W(this,bk,14)};g.setMajorModifiedTime=function(a){return X(this,bk,14,a)};g.getResolvedTime=function(){return W(this,bk,6)};
g.setResolvedTime=function(a){return X(this,bk,6,a)};g.getVerifiedTime=function(){return W(this,bk,7)};g.setVerifiedTime=function(a){return X(this,bk,7,a)};g.getSloId=function(){return xk(this,9)};g.getSloId_asLegacyNumberOrString=function(){return Um(this,9)};g.setSloId=function(a){return Xl(this,9,a)};g.getSloStatus=function(){return W(this,po,10)};g.setSloStatus=function(a){X(this,po,10,a)};g.getTeamId=function(){return xk(this,13)};
g.getTeamId_asLegacyNumberOrString=function(){return Um(this,13)};g.getTeamId_asString=function(){return Bk(this,13)};g.setTeamId=function(a){return Xl(this,13,a)};g.getRetentionState=function(){return W(this,Zl,11)};g.setRetentionState=function(a){X(this,Zl,11,a)};g.getAccessLimit=function(){return W(this,Ul,12)};g.setAccessLimit=function(a){return X(this,Ul,12,a)};g.getParentIssueIdsList_asLegacyNumberOrString=function(){return bp(this,17,Bj())};
g.setParentIssueIdsList=function(a){return ep(this,17,a)};g.getAncestorsMap=function(){return uc(this,19,qo,Vb)};g.getChildIssueCount=function(){return Ej(this,20)};g.setChildIssueCount=function(a){return Zj(this,20,a)};g.getDescendantIssueCount=function(){return Ej(this,21)};g.setDescendantIssueCount=function(a){return Zj(this,21,a)};g.getOpenDescendantIssueCount=function(){return Ej(this,22)};g.setOpenDescendantIssueCount=function(a){return Zj(this,22,a)};
g.getIsArchived=function(){return kk(this,18)};g.setIsArchived=function(a){return pm(this,18,a)};var aE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,aE.messageId)};Y(aE,n);aE.prototype.getIt=function(){return W(this,evc,14,Nc)};aE.prototype.setIt=function(a){return X(this,evc,14,a,Nc)};aE.messageId="b.IssueMetadata";var fvc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(fvc,n);fvc.prototype.getIt=function(){return W(this,bvc,4)};fvc.prototype.setIt=function(a){return X(this,bvc,4,a)};var gvc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gvc,n);var bE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,bE.messageId)};Y(bE,n);bE.prototype.getIt=function(){return W(this,gvc,2,Nc)};bE.prototype.setIt=function(a){return X(this,gvc,2,a,Nc)};bE.messageId="b.UpdateIssueReadTimestampResponse";var cE=function(){this.executor=r(QA)};cE.prototype.delete=function(a,b){b=(new rD).setIt((new kuc).setIssueId(Number(a)).setReason(Xnc[Gxa(b)]));return this.executor.post({url:"action/issues/"+a+"/delete",body:b,responseConstructor:null})};cE.prototype.undelete=function(a){var b=(new uD).setIt((new luc).setIssueId(Number(a)));return this.executor.post({url:"action/issues/"+a+"/undelete",body:b,responseConstructor:null})};
cE.prototype.getMetadata=function(a){return this.executor.get({url:"action/issues/"+a+"/metadata",responseConstructor:aE}).then(UFa)};cE.prototype.markRead=function(a,b,c){b=b===void 0?!0:b;c=c===void 0?"USER_ACTIVITY_TYPE_UNDEFINED":c;var d=new fvc,e=d.setIt;a=(new bvc).setIssueIdsList(a.map(Number));b=pm(a,2,b);c=Jj(b,3,poc[c]);d=e.call(d,c);return this.executor.post({url:"action/issues/read_timestamp",body:d,responseConstructor:bE}).then(TFa)};
var hvc=function(a,b){return a.executor.get({url:"action/issues/"+b+"/experiments",responseConstructor:Zn}).then(tEa).then(function(c){return Object.assign({},c,{id:b})})},ivc=function(a,b){var c=(new avc).setIssueIdsList(b.map(Number));return a.executor.post({url:"action/issues/batch_experiments",body:c,responseConstructor:$D}).then(function(d){d=d.getIt();return Sj(d,Zn,1,Bj()).map(tEa)}).then(function(d){var e=oj(d,function(f){return f.id});return b.map(function(f){var h;return(h=e.get(f))!=null?
h:Eo(f)})})},jvc=function(a,b){return a.executor.post({url:"action/issues/"+b.id+"/experiments",body:wEa(b),responseConstructor:Zn}).then(tEa)};cE.\u0275fac=function(a){return new (a||cE)};cE.\u0275prov=Cd({token:cE,factory:cE.\u0275fac,providedIn:"root"});var eE=function(){XA.call(this,{freshUntil:6E4});this.activeSession=r(Bs);this.batchApiAdapter=r(tB);this.batchApiConfig=r(dE);this.issueService=r(cE);this.recordType="issue-experimental-fields";this.idForRecord=function(a){return a.id};this.isEqual=gj;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.batchApiConfig);this.isEnabled=OA(this.activeSession,"enableIssueExperimentalFields")&&this.activeSession.isInternalSession()};Y(eE,XA);
eE.prototype.fetchOne=function(a){var b=this;return this.isEnabled?Yf(function(){return b.batchAdaptedGet(a)}).pipe(hg(function(){return Nf(void 0)})):Nf(void 0)};eE.prototype.fetchSet=function(a){var b=this;return Uf(a.map(function(c){return b.fetchOne(c)})).pipe(C(function(c){return c.filter(Qj)}))};eE.prototype.copy=function(a){return a&&hj(a)};
var fE=function(a,b,c){var d,e,f,h;return z(function(k){if(k.nextAddress==1){if(!a.isEnabled)return k.return(Eo(b));a.manualUpdate(b,function(q){c(q!=null?q:Eo(b))});return B(k,Rf(a.batchAdaptedGet(b)),2)}if(k.nextAddress!=3)return d=k.yieldResult,f=(e=a.copy(d))!=null?e:Eo(b),c(f),B(k,jvc(a.issueService,f),3);h=k.yieldResult;a.announce(h);return k.return(h)})};eE.\u0275fac=function(a){return new (a||eE)};eE.\u0275prov=Cd({token:eE,factory:eE.\u0275fac,providedIn:"root"});
var dE=function(){this.issueService=r(cE);this.maxBatchSize=100;this.bufferTimeMs=0};dE.prototype.call=function(a){var b=this;return Yf(function(){return ivc(b.issueService,[].concat(p(a)))}).pipe(C(function(c){return oj(c,function(d){return d.id})}))};dE.prototype.split=function(a,b){var c;return(c=b.get(a))!=null?c:Eo(a)};dE.\u0275fac=function(a){return new (a||dE)};dE.\u0275prov=Cd({token:dE,factory:dE.\u0275fac,providedIn:"root"});var gE=function(){this.refreshRequest=new tg};gE.prototype.getObservable=function(){return this.refreshRequest};var lvc=function(a,b){return kvc(a,function(){return b})},kvc=function(a,b){return a.getObservable().pipe(wg(void 0)).pipe(xg(function(){return b()}))};gE.\u0275fac=function(a){return new (a||gE)};gE.\u0275prov=Cd({token:gE,factory:gE.\u0275fac,providedIn:"root"});var iE=function(){XA.call(this);var a=this;this.batchApiAdapter=r(tB);this.refreshMonitor=r(gE);this.issueBatchConfig=r(hE);this.issueApi=r(RD);this.issueExperimentalFieldsFridge=r(eE);this.recordType="issue-basic";this.idForRecord=function(b){return String(b.issueId)};this.isEqual=gj;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.issueBatchConfig);this.refreshMonitor.getObservable().subscribe(function(){a.invalidate()})};Y(iE,XA);g=iE.prototype;g.fetchOne=function(a){return this.batchAdaptedGet(a)};
g.fetchSet=function(a){var b=this;return Uf(a.map(function(c){return b.fetchOne(c)})).pipe(C(function(c){return c.filter(Qj)}))};
g.fetchAll=function(a){var b=a.custom;var c=a.filter;var d=a.pageSize;a={s:a.sort,count:d};if(b==="viewed")return Vuc(this.issueApi,d).pipe(C(function(e){return{results:e}}),hg(function(e){Wj("issueFullFridge -> listRecentIssues() API error",e);return Nf({results:[]})}));if(b==="byExperimentalPhase"&&c)return c=l(c.split("____b-internal____")),b=c.next().value,c=c.next().value,d=Eo("0"),d.triage.phase=c,Uuc(this.issueApi,b,a,{queryType:"QUERY_TRIAGE_PHASE",experimentalFields:d,concatenator:{relation:"AND"}}).pipe(C(function(e){return{results:e.issues,
totalSize:e.numTotalResults}}));if(c)return this.issueApi.listIssues(c,a).pipe(C(function(e){return{results:e.issues,totalSize:e.numTotalResults}}));throw Error("sc");};g.copy=function(a){return a&&hj(a)};g.watch=function(a,b){return Uf([XA.prototype.watch.call(this,a,b),this.issueExperimentalFieldsFridge.watch(a)]).pipe(C(function(c){var d=l(c);c=d.next().value;d=d.next().value;return MGa([c],[d])[0]}))};
g.watchSet=function(a,b){return Uf([XA.prototype.watchSet.call(this,a,b),this.issueExperimentalFieldsFridge.watchSet(a)]).pipe(C(function(c){var d=l(c);c=d.next().value;d=d.next().value;return MGa(c,d)}))};g.watchMany=function(a,b){var c=this;return XA.prototype.watchMany.call(this,a,b).pipe(xg(function(d){return c.issueExperimentalFieldsFridge.watchSet(d.results.map(c.idForRecord)).pipe(C(function(e){return MGa(d.results,e)}),C(function(e){return Object.assign({},d,{results:e})}))}))};
g.peek=function(a){var b=XA.prototype.peek.call(this,a);a=this.issueExperimentalFieldsFridge.peek(a);return MGa([b],[a])[0]};g.poke=function(a,b){var c=this,d,e,f,h,k,q;return z(function(v){if(v.nextAddress==1)return d=l,B(v,Promise.all([XA.prototype.poke.call(c,a,b),c.issueExperimentalFieldsFridge.poke(a,b)]),2);e=d(v.yieldResult);f=e.next().value;h=e.next().value;k=f;q=h;return v.return(MGa([k],[q])[0])})};iE.\u0275fac=function(a){return new (a||iE)};
iE.\u0275prov=Cd({token:iE,factory:iE.\u0275fac,providedIn:"root"});var hE=function(){this.issueApi=r(RD);this.maxBatchSize=100;this.bufferTimeMs=0};hE.prototype.call=function(a){var b=this;if(a.size===1){var c=[].concat(p(a))[0];return this.issueApi.getIssueBasic(c).pipe(C(function(d){return new Map([[c,d]])}))}return Yf(function(){return b.issueApi.batchGetIssues([].concat(p(a)))}).pipe(C(function(d){return oj(d,function(e){return e.issueId})}))};hE.prototype.split=function(a,b){return b.get(a)};
hE.\u0275fac=function(a){return new (a||hE)};hE.\u0275prov=Cd({token:hE,factory:hE.\u0275fac,providedIn:"root"});var NGa=window,eHa=function(){return{count:0,duration:0,transferSize:0,cacheHits:0,cacheHitRate:0}},mvc=function(a){if(OGa())try{window.performance.mark(a)}catch(b){console.warn("route_performance",b)}};var gHa=fl("debug-logging")(),YGa=window,nvc,dHa=!1,fHa={};var jHa=Yoc("last-visit"),kHa=Yoc("last-visit-count"),mHa=Zoc("last-visit"),lHa=Zoc("last-visit-count");Date.now==null&&(Date.now=function(){return(new Date).getTime()});var ovc=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("tc`"+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("uc`"+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 qvc=function(a,b,c){var d=String(ea.location.href);return d&&a&&b?[b,pvc(ovc(d),a,c||null)].join(" "):null},pvc=function(a,b,c){var d=[],e=[];if((Array.isArray(c)?2:1)==1)return e=[b,a],Ca(d,function(k){e.push(k)}),rvc(e.join(" "));var f=[],h=[];Ca(c,function(k){h.push(k.key);f.push(k.value)});c=Math.floor((new Date).getTime()/1E3);e=f.length==0?[c,b,a]:[f.join(":"),c,b,a];Ca(d,function(k){e.push(k)});a=rvc(e.join(" "));a=[c,a];h.length==0||a.push(h.join(""));return a.join("_")},rvc=function(a){var b=
oHa();b.update(a);return b.digestString().toLowerCase()};var svc=function(){this.document_=document||{cookie:""}};g=svc.prototype;g.isEnabled=function(){if(!ea.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.set=function(a,b,c){var d=!1;if(typeof c==="object"){var e=c.sameSite;d=c.secure||!1;var f=c.domain||void 0;var h=c.path||void 0;var k=c.maxAge}if(/[;=\s]/.test(a))throw Error("vc`"+a);if(/[;\r\n]/.test(b))throw Error("wc`"+b);k===void 0&&(k=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";k=k<0?"":k==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+k*1E3)).toUTCString();this.document_.cookie=a+"="+b+c+h+k+d+(e!=null?";samesite="+e:"")};
g.get=function(a,b){for(var c=a+"=",d=(this.document_.cookie||"").split(";"),e=0,f;e<d.length;e++){f=oa(d[e]);if(f.lastIndexOf(c,0)==0)return f.slice(c.length);if(f==a)return""}return b};g.remove=function(a,b,c){var d=this.containsKey(a);this.set(a,"",{maxAge:0,path:b,domain:c});return d};g.getKeys=function(){return tvc(this).keys};g.getValues=function(){return tvc(this).values};g.isEmpty=function(){return!this.document_.cookie};
g.getCount=function(){return this.document_.cookie?(this.document_.cookie||"").split(";").length:0};g.containsKey=function(a){return this.get(a)!==void 0};g.containsValue=function(a){for(var b=tvc(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};g.clear=function(){for(var a=tvc(this).keys,b=a.length-1;b>=0;b--)this.remove(a[b])};
var tvc=function(a){a=(a.document_.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=oa(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 uvc=function(a,b,c,d){(a=ea[a])||typeof document==="undefined"||(a=(new svc).get(b));return a?qvc(a,c,d):null},ALa=function(a){var b=ovc(ea==null?void 0:ea.location.href),c=[],d;(d=ea.__SAPISID||ea.__APISID||ea.__3PSAPISID||ea.__1PSAPISID||ea.__OVERRIDE_SID)?d=!0:(typeof document!=="undefined"&&(d=new svc,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)?ea.__SAPISID:ea.__APISID,d||typeof document==="undefined"||(d=new svc,d=d.get(b?"SAPISID":"APISID")||d.get("__Secure-3PAPISID")),(d=d?qvc(d,b?"SAPISIDHASH":"APISIDHASH",a):null)&&c.push(d),b&&((b=uvc("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&c.push(b),(a=uvc("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&c.push(a)));return c.length==0?null:c.join(" ")};var vvc=function(){},wvc=function(a){var b,c,d,e;return z(function(f){switch(f.nextAddress){case 1:return b=new CompressionStream("gzip"),c=(new Response(b.readable)).arrayBuffer(),d=b.writable.getWriter(),B(f,d.write((new TextEncoder).encode(a)),2);case 2:return B(f,d.close(),3);case 3:return e=Uint8Array,B(f,c,4);case 4:return f.return(new e(f.yieldResult))}})};vvc.prototype.isSupported=function(a){return a<1024?!1:typeof CompressionStream!=="undefined"};var jE=function(){this.disposed_=this.disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};jE.prototype.disposed_=!1;jE.prototype.isDisposed=function(){return this.disposed_};jE.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())};jE.prototype[Symbol.dispose]=function(){this.dispose()};var Er=function(a,b){b=yu(Io,b);a.disposed_?b():(a.onDisposeCallbacks_||(a.onDisposeCallbacks_=[]),a.onDisposeCallbacks_.push(b))};jE.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var xvc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(xvc,n);var kE=function(a,b){this.intervalMs=a;this.callback=b;this.enabled=!1;this.nowFn=function(){return Date.now()};this.lastTimeMs=this.nowFn()};kE.prototype.setInterval=function(a){this.intervalMs=a;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};kE.prototype.start=function(){var a=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){a.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
kE.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};kE.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 yvc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(yvc,n);var zvc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(zvc,n);var Avc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Avc,n);Avc.prototype.getTransmissionType=function(){return pk(this,1)};Avc.prototype.setTransmissionType=function(a){return Rk(this,1,a)};var tHa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(tHa,n);tHa.prototype.getVersion=function(){return Rc(this,2)};tHa.prototype.setVersion=function(a){return Qk(this,2,a)};tHa.prototype.getVersionOrUndefined=function(){return Hu(this,2)};var lE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lE,n);var sHa=function(a){Bm(uHa,1,a)};lE.prototype.setPlatform=function(a){Qk(this,3,a)};lE.prototype.setModel=function(a){return Qk(this,6,a)};var Bvc=Tc(lE);var mE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(mE,n);mE.prototype.getLocale=function(){return Rc(this,5)};mE.prototype.setLocale=function(a){return Qk(this,5,a)};mE.prototype.setBuildLabel=function(a){Qk(this,7,a)};var qHa=["platform","platformVersion","architecture","model","uaFullVersion"],uHa=new lE,rHa=null;var nE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(nE,n);var Cvc=function(a){return Rk(a,1,1)};nE.prototype.getMutableJsClientInfo=function(){return Cu(this,mE,11)};var Dvc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Dvc,n);g=Dvc.prototype;g.getKey=function(){return Rc(this,1)};g.hasKey=function(){return mk(this,1)};g.getValue=function(){return Rc(this,2)};g.getValue_legacyNullable=function(){return $k(this,2)};g.setValue=function(a){return Qk(this,2,a)};g.hasValue=function(){return mk(this,2)};var oE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,4)};Y(oE,n);var pE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,36)};Y(pE,n);g=pE.prototype;g.getTag=function(){return Rc(this,2)};g.getComponentId=function(){return Rc(this,26)};g.setComponentId=function(a){return Qk(this,26,a)};g.hasComponentId=function(){return mk(this,26)};g.addValue=function(){return Po(this,3,Dvc)};g.setValue=function(a,b){return Au(this,3,Dvc,a,b)};var Evc=function(a,b){return Qk(a,8,b)};pE.prototype.getExperimentIds=function(){return W(this,xvc,16)};
pE.prototype.setExperimentIds=function(a){X(this,xvc,16,a)};pE.prototype.clearExperimentIds=function(){return Bu(this,16)};var Fvc=function(a,b){Qk(a,24,b)};pE.prototype.getComplianceData=function(){return W(this,oE,33)};pE.prototype.setComplianceData=function(a){X(this,oE,33,a)};var Gvc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,19)};Y(Gvc,n);g=Gvc.prototype;g.getClientInfo=function(){return W(this,nE,1)};g.getMutableClientInfo=function(){return Cu(this,nE,1)};g.setClientInfo=function(a){X(this,nE,1,a)};g.getLogSource=function(){return pk(this,2,-1)};g.setLogSource=function(a){return Rk(this,2,a)};g.getComplianceData=function(){return W(this,oE,18)};g.setComplianceData=function(a){X(this,oE,18,a)};var Hvc=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 Gvc;Number.isInteger(a)&&this.logRequest.setLogSource(a);b||(this.locale=document.documentElement.getAttribute("lang"));this.setClientInfo(new nE)};g=Hvc.prototype;g.setLogSource=function(a){this.logRequest.setLogSource(a);return this};
g.setClientInfo=function(a){this.logRequest.setClientInfo(a);pk(a,1)||Cvc(a);this.isServiceWorkerScope||(a=this.getMutableJsClientInfo(),a.getLocale()||a.setLocale(this.locale));this.uach&&(a=this.getMutableJsClientInfo(),W(a,lE,9)||X(a,lE,9,this.uach))};g.setBuildLabel=function(a){this.getMutableJsClientInfo().setBuildLabel(a)};g.setTransmissionType=function(a){this.transmissionType=a;return this};
g.getMutableClientInfo=function(){var a=this.logRequest.getClientInfo();a||(a=new nE,this.setClientInfo(a));return a};var Ivc=function(a){var b=b===void 0?qHa:b;var c=a.isServiceWorkerScope?void 0:nz();c?vHa(c,b).then(function(d){a.uach=Bvc(d!=null?d:"[]");d=a.getMutableJsClientInfo();X(d,lE,9,a.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)};Hvc.prototype.getMutableJsClientInfo=function(){var a=this.getMutableClientInfo(),b=W(a,mE,11);b||(b=new mE,X(a,mE,11,b));return b};
Hvc.prototype.getComplianceData=function(a){var b=new yvc;a=Ok(b,13,a);b=new zvc;a=X(b,yvc,2,a);b=new oE;a=X(b,zvc,1,a);return Rk(a,2,9)};
Hvc.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 h=this.getMutableJsClientInfo();var k=(new Avc).setTransmissionType(this.transmissionType);k=Nk(k,2,this.isFinal);c=Ok(k,3,c>0?c:void 0);c=Ok(c,4,e>0?e:void 0);c=Ok(c,5,f>0?f:void 0);e=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;f=e[Ta]|0;c=fb(c,f)?c:Sca(c,e,f)?Rca(c,e):new c.constructor(hc(e,f,!0));X(h,Avc,10,c)}h=this.logRequest.clone();
c=Date.now().toString();h=Uk(h,4,c);a=Bm(h,3,a.slice());d&&a.setComplianceData(this.getComplianceData(d));b&&Ek(a,14,b);return a};var Jvc=function(){if(!ea.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{var c=function(){};ea.addEventListener("test",c,b);ea.removeEventListener("test",c,b)}catch(d){}return a}();wHa.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_};wHa.prototype.getValue=function(){return this.currValue_};var qE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qE,n);qE.prototype.getId=function(a){return Ku(this,1,a)};qE.prototype.setId=function(a){return Tu(this,1,a)};var rE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,8)};Y(rE,n);rE.prototype.getExperiments=function(){return W(this,qE,2)};rE.prototype.setExperiments=function(a){return X(this,qE,2,a)};rE.prototype.hasExperiments=function(){return tk(this,qE,2)};var Kvc=Tc(rE);var Lvc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Lvc,n);var Mvc=new Yu(175237375,rE,Lvc);var sE=function(a){jE.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 Hvc(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&&!!nz()&&!!nz().navigator&&nz().navigator.sendBeacon!==void 0;this.isBrowserSupported=typeof URLSearchParams!=="undefined"&&!!(new URL(Nvc())).searchParams&&!!(new URL(Nvc())).searchParams.set;var c=Cvc(new nE);this.logRequestBuilder.setClientInfo(c);this.flushBackoff=new wHa(1E4);a=Ovc(this,a.backgroundJobDeferrer);this.flushTimer=new kE(this.flushBackoff.getValue(),
a);this.backupTimer=new kE(6E5,a);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){Pvc(b);var d;(d=b.metalogService)==null||d.flush()}}),document.addEventListener("pagehide",function(){Pvc(b);var d;(d=b.metalogService)==null||d.flush()}))};Y(sE,jE);var Ovc=function(a,b){return a.isBrowserSupported?b?function(){b().then(function(){a.flush()})}:function(){a.flush()}:function(){}};
sE.prototype.disposeInternal=function(){Pvc(this);this.flushTimer.stop();this.backupTimer.stop();jE.prototype.disposeInternal.call(this)};sE.prototype.setClearcutUrl=function(a){this.clearcutUrl=a};sE.prototype.setUseConsistentTimezoneOffset=function(a){this.useConsistentTimezoneOffset=a};sE.prototype.getClearcutUrl=function(){this.clearcutUrl||(this.clearcutUrl=Nvc());try{return(new URL(this.clearcutUrl)).toString()}catch(a){return(new URL(this.clearcutUrl,nz().location.origin)).toString()}};
var uE=function(a,b){if(b instanceof pE)a.log(b);else try{var c=Evc(new pE,b.serialize());a.log(c)}catch(d){tE(a,4,1)}};g=sE.prototype;g.setClearcutClientInfo=function(a){this.logRequestBuilder.setClientInfo(a)};g.setComponentId=function(a){this.componentId=a};g.setProductID=function(a){this.productID=a};g.setPageId=function(a){this.pageId=a};g.setOpaqueExperimentIds=function(a){this.experimentIds||(this.experimentIds=new xvc);var b=this.experimentIds;a=[].concat(p(a));vc(b,2,a,dda)};
g.setClearExperimentIds=function(a){if(a){this.experimentIds||(this.experimentIds=new xvc);var b=this.experimentIds;a=a.serialize();Qk(b,4,a)}else this.experimentIds&&Bu(this.experimentIds,4)};g.setClientSideLogOnlyForDevelopment=function(a){this.clientSideLogOnlyForDevelopment=a};g.setCompressor=function(a){this.compressor=a};g.setBuildLabel=function(a){this.logRequestBuilder.setBuildLabel(a)};g.setFlushIntervalMs=function(a){this.clientSpecifiedFlushInterval=!0;Qvc(this,a)};g.getLogSource=function(){return this.logSource};
var Qvc=function(a,b){a.flushBackoff=new wHa(b<1?1:b);a.flushTimer.setInterval(a.flushBackoff.getValue())},tE=function(a,b,c){a.metalogService&&a.metalogService.increment(b,c)};
sE.prototype.log=function(a){tE(this,2,1);if(this.isBrowserSupported){a=a.clone();var b=this.sequencePosition++;a=Ek(a,21,b);this.componentId&&a.setComponentId(this.componentId);b=a;if(Ob(rk(b,1))==null){var c=Date.now();c=Number.isFinite(c)?c.toString():"0";Uk(b,1,c)}wk(b,15)||Ek(b,15,(new Date).getTimezoneOffset()*(this.useConsistentTimezoneOffset?-60:60));this.experimentIds&&b.setExperimentIds(this.experimentIds.clone());tE(this,1,1);b=this.pendingEvents.length-this.bufferSize+1;b>0&&(this.pendingEvents.splice(0,
b),this.numLogsDroppedSinceLastFlush+=b,tE(this,3,b));this.pendingEvents.push(a);this.maybeStartFlushTimer()}};sE.prototype.maybeStartFlushTimer=function(){this.disableAutomaticFlush||this.flushTimer.enabled||this.flushTimer.start()};
sE.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),Rvc(this);else{var d=Date.now();if(this.noFlushUntilMs>d&&this.startWaitingMs<d)b&&b("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?this.logRequestBuilder.setTransmissionType(this.network.getTransmissionType()):this.logRequestBuilder.setTransmissionType(0));var e=this.pendingEvents.length,
f=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),h=this.getAuthHeaderValue();if(h&&this.lastFailedAuth===h)b&&b("stale-auth-token");else if(this.pendingEvents=[],this.flushTimer.enabled&&this.flushTimer.stop(),this.numLogsDroppedSinceLastFlush=0,this.clientSideLogOnlyForDevelopment)a&&a();else{d=f.serialize();var k;this.compressor&&this.compressor.isSupported(d.length)&&
(k=wvc(d));var q=this.createRequestParams(d,h),v=function(H){c.flushBackoff.reset();c.flushTimer.setInterval(c.flushBackoff.getValue());if(H){var L=null;try{var O=JSON.stringify(JSON.parse(H.replace(")]}'\n","")));L=Kvc(O)}catch(S){}L&&(H=Number(xk(L,1,jb("-1"))),H>0&&(c.startWaitingMs=Date.now(),c.noFlushUntilMs=c.startWaitingMs+H),L=ifc(L,Mvc))&&(L=Ej(L,1,-1),L!==-1&&(c.clientSpecifiedFlushInterval||Qvc(c,L)))}a&&a();c.numRetriesSinceLastSuccessfulFlush=0},A=function(H,L){var O=Sj(f,pE,3,Bj());
var S=Number(xk(f,14)),aa=c.flushBackoff;aa.currBaseValue_=Math.min(3E5,aa.currBaseValue_*2);aa.currValue_=Math.min(3E5,aa.currBaseValue_+Math.round(.1*(Math.random()-.5)*2*aa.currBaseValue_));c.flushTimer.setInterval(c.flushBackoff.getValue());H===401&&h&&(c.lastFailedAuth=h);S&&(c.numLogsDroppedSinceLastFlush+=S);L===void 0&&(L=500<=H&&H<600||H===401||H===0);L&&(c.pendingEvents=O.concat(c.pendingEvents),c.maybeStartFlushTimer());tE(c,7,1);b&&b("net-send-failed",H);++c.numRetriesSinceLastSuccessfulFlush},
E=function(){c.network&&c.network.send(q,v,A)};k?k.then(function(H){tE(c,5,e);q.requestHeaders["Content-Encoding"]="gzip";q.requestHeaders["Content-Type"]="application/binary";q.body=H;q.bodyType=2;E()},function(){tE(c,6,e);E()}):E()}}}};
sE.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 Pvc=function(a){a.clientSideLogOnlyForDevelopment||(a.logRequestBuilder.isFinal=!0,a.useSendBeaconForFinalFlush&&(a.logRequestBuilder.setTransmissionType(3),Rvc(a)),a.useGetRequestForFinalFlush&&(a.logRequestBuilder.setTransmissionType(2),Svc(a)),a.flush(),a.logRequestBuilder.isFinal=!1)},Rvc=function(a){Tvc(a,32,10,function(b,c){b=new URL(b);b.searchParams.set("format","json");var d=!1;try{d=nz().navigator.sendBeacon(b.toString(),c.serialize())}catch(e){}d||(a.isSendBeaconSupported=!1);return d})},
Svc=function(a){Tvc(a,6,5,function(b,c){b=new URL(b);b.searchParams.set("format","base64json");var d=b.searchParams,e=d.set;c=c.serialize();for(var f=[],h=0,k=0;k<c.length;k++){var q=c.charCodeAt(k);q>255&&(f[h++]=q&255,q>>=8);f[h++]=q}c=gec(f,3);e.call(d,"p",c);b=b.toString();if(b.length>15360)return!1;(new Image).src=b;return!0})},Tvc=function(a,b,c,d){if(a.pendingEvents.length!==0){var e=new URL(a.getClearcutUrl());e.searchParams.delete("format");var f=a.getAuthHeaderValue();f&&e.searchParams.set("auth",
f);e.searchParams.set("authuser",a.sessionIndex||"0");for(f=0;f<c&&a.pendingEvents.length;++f){var h=a.pendingEvents.slice(0,b),k=a.logRequestBuilder.build(h,a.numLogsDroppedSinceLastFlush,a.numRetriesSinceLastSuccessfulFlush,a.productID,a.persistedLogRecoveredCount,a.persistedLogExpiredCount);if(!d(e.toString(),k)){++a.numRetriesSinceLastSuccessfulFlush;break}a.numLogsDroppedSinceLastFlush=0;a.numRetriesSinceLastSuccessfulFlush=0;a.persistedLogRecoveredCount=0;a.persistedLogExpiredCount=0;a.pendingEvents=
a.pendingEvents.slice(h.length)}a.flushTimer.enabled&&a.flushTimer.stop()}},Nvc=function(){return"https://play.google.com/log?format=json&hasfast=true"};sE.prototype.setBufferSize=function(a){this.bufferSize=a};var Uvc=function(){this.abortSupported=typeof AbortController!=="undefined"};
Uvc.prototype.send=function(a,b,c){var d=this,e,f,h,k,q,v,A,E,H,L;return z(function(O){switch(O.nextAddress){case 1:return f=(e=d.abortSupported?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,Gf(O,2,3),h=Object.assign({},{method:a.requestType,headers:Object.assign({},a.requestHeaders)},a.body&&{body:a.body},a.withCredentials&&{credentials:"include"},{signal:a.timeoutMillis&&e?e.signal:null}),B(O,fetch(a.url,h),5);case 5:k=O.yieldResult;if(k.status!==200){(q=c)==
null||q(k.status);O.jumpTo(3);break}if((v=b)==null){O.jumpTo(7);break}return B(O,k.text(),8);case 8:v(O.yieldResult);case 7:case 3:Hf(O);clearTimeout(f);Jf(O,0);break;case 2:A=Kf(O);switch((E=A)==null?void 0:E.name){case "AbortError":(H=c)==null||H(408);break;default:(L=c)==null||L(400)}O.jumpTo(3)}})};Uvc.prototype.getTransmissionType=function(){return 4};var vE=function(a,b){b=b===void 0?"0":b;jE.call(this);this.logSource=a;this.sessionIndex=b;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.compressor=void 0;this.network=null;this.componentId="";this.clearcutClientInfo=this.opaqueExperimentIds=this.clearExperimentIds=this.productID=null;this.getRequestForFinalFlush=this.sendBeaconForFinalFlush=!1;this.flushIntervalMs=null;this.sendBeaconApiEnabled=!1;this.useConsistentTimezoneOffset=
void 0;this.pageId=null;this.bufferSize=void 0};Y(vE,jE);g=vE.prototype;g.setBuildLabel=function(a){this.buildLabel=a};g.setCompressor=function(a){this.compressor=a};g.setComponentId=function(a){this.componentId=a;return this};g.setProductID=function(a){this.productID=a};g.setClearExperimentIds=function(a){this.clearExperimentIds=a};g.setOpaqueExperimentIds=function(a){this.opaqueExperimentIds=a};var Vvc=function(a,b){a.getAuthHeaderValue=b};g=vE.prototype;
g.setClearcutClientInfo=function(a){this.clearcutClientInfo=a};g.useSendBeaconForFinalFlush=function(){this.sendBeaconForFinalFlush=!0;return this};g.useGetRequestForFinalFlush=function(){this.getRequestForFinalFlush=!0;return this};g.setFlushIntervalMs=function(a){this.flushIntervalMs=Math.max(a,1E3)};g.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};g.setUseConsistentTimezoneOffset=function(a){this.useConsistentTimezoneOffset=a};
g.setPageId=function(a){this.pageId=a};g.setBufferSize=function(a){this.bufferSize=a};
g.build=function(){this.network||(this.network=new Uvc);var a=new sE({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:ALa,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});Er(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 vvc);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);Ivc(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 wE=function(){this.activeSession=r(Bs);this.transport=(new vE(2523,this.activeSession.getSessionIdentifier())).build()};wE.\u0275fac=function(a){return new (a||wE)};wE.\u0275prov=Cd({token:wE,factory:wE.\u0275fac,providedIn:"root"});var Wvc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Wvc,n);Wvc.prototype.getValueCase=function(){return Ml(this,Xvc)};var Xvc=[1,2,3];var Yvc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Yvc,n);Yvc.prototype.getValueCase=function(){return Ml(this,Zvc)};var Zvc=[1,2,3];var $vc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($vc,n);var awc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(awc,n);awc.prototype.getFieldName=function(){return Ku(this,3)};awc.prototype.setFieldName=function(a){Tu(this,3,a)};var bwc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bwc,n);var xE=function(a,b,c,d,e,f,h){a=a===void 0?-1:a;b=b===void 0?"":b;c=c===void 0?"":c;d=d===void 0?!1:d;e=e===void 0?"":e;jE.call(this);this.logSource=a;this.componentId=b;f?c=f:(a=(new vE(a,"0")).setComponentId(b),Er(this,a),c!==""&&(a.destinationUrl=c),d&&(a.serviceWorkerScopeEnabled=!0),e&&a.setBuildLabel(e),h&&(a.network=h),c=a.build());this.transport=c};Y(xE,jE);xE.prototype.getLogSource=function(){return this.logSource};xE.prototype.getComponentId=function(){return this.componentId};
xE.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new bwc,c=[],d=0;d<a.length;d++){var e=a[d],f=new awc;f=Qk(f,1,e.metricName);var h=cwc(e);f=Ij(f,3,h);h=[];var k=[];for(var q=l(e.cellMap.keys()),v=q.next();!v.done;v=q.next())k.push(v.value.split(","));for(q=0;q<k.length;q++){v=k[q];var A=e.cellType;for(var E=e.getCells(v)||[],H=[],L=0;L<E.length;L++){var O=E[L],S=O&&O.cellValue;O=new Yvc;switch(A){case 3:S=Number(S);Number.isFinite(S)&&fm(O,1,Zvc,Ib(S,0));break;case 2:$xa(O,2,Zvc,Number(S))}H.push(O)}A=
H;for(E=0;E<A.length;E++){H=A[E];L=new $vc;H=X(L,Yvc,2,H);L=v;O=[];S=dwc(e);for(var aa=0;aa<S.length;aa++){var ka=S[aa],na=L[aa],za=new Wvc;switch(ka){case 3:Rl(za,1,Xvc,String(na));break;case 2:ka=Number(na);Number.isFinite(ka)&&fm(za,2,Xvc,ka==null?ka:Cb(ka));break;case 1:ka=na==="true",fm(za,3,Xvc,ka==null?ka:vb(ka))}O.push(za)}Bm(H,1,O);h.push(H)}}Bm(f,4,h);c.push(f);e.clear()}Bm(b,1,c);uE(this.transport,b);this.transport.flush()}};var ewc=function(a){this.cellValue=a};var fwc=function(a,b,c){this.metricName=a;this.cellType=b;this.fields=c||[];this.cellMap=new Map},dwc=function(a){return a.fields.map(function(b){return b.fieldType})},cwc=function(a){return a.fields.map(function(b){return b.fieldName})};g=fwc.prototype;g.addCell=function(a){var b=ge.apply(1,arguments),c=this.getCells(b);c?c.push(new ewc(a)):this.setCell(a,b)};g.setCell=function(a){var b=this.getKey(ge.apply(1,arguments));this.cellMap.set(b,[new ewc(a)])};
g.getCells=function(){var a=this.getKey(ge.apply(0,arguments));return this.cellMap.has(a)?this.cellMap.get(a):void 0};g.getCell=function(){var a=this.getCells(ge.apply(0,arguments));return a&&a.length?a[0]:void 0};g.clear=function(){this.cellMap.clear()};g.getKey=function(){var a=ge.apply(0,arguments);return a?a.join(","):"key"};var gwc=function(a,b){fwc.call(this,a,3,b)};Y(gwc,fwc);gwc.prototype.incrementCounter=function(){this.incrementCounterBy(1,ge.apply(0,arguments))};gwc.prototype.incrementCounterBy=function(a){var b=ge.apply(1,arguments),c=0,d=this.getCell(b);d&&(c=d.cellValue);this.setCell(c+a,b)};var hwc=function(a,b){fwc.call(this,a,2,b)};Y(hwc,fwc);hwc.prototype.record=function(a){this.addCell(a,ge.apply(1,arguments))};var yE=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.propagationStopped_=!1};yE.prototype.stopPropagation=function(){this.propagationStopped_=!0};yE.prototype.preventDefault=function(){this.defaultPrevented=!0};var Ip=function(a,b){yE.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.platformModifierKey=!1;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.event_=null;a&&this.init(a,b)};zu(Ip,yE);
Ip.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=Jp||a.offsetX!==void 0?a.offsetX:a.layerX,this.offsetY=
Jp||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=ht?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&&Ip.superClass_.preventDefault.call(this)};Ip.prototype.stopPropagation=function(){Ip.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};Ip.prototype.preventDefault=function(){Ip.superClass_.preventDefault.call(this);var a=this.event_;a.preventDefault?a.preventDefault():a.returnValue=!1};var iwc="closure_listenable_"+(Math.random()*1E6|0),zE=function(a){return!(!a||!a[iwc])};var jwc=0;var kwc=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=++jwc;this.removed=this.callOnce=!1},lwc=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.handler=null};Jo.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.typeCount_++);var h=mwc(a,b,d,e);h>-1?(b=a[h],c||(b.callOnce=!1)):(b=new kwc(b,this.src,f,!!d,e),b.callOnce=c,a.push(b));return b};Jo.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=mwc(e,b,c,d);return b>-1?(lwc(e[b]),Ea(e,b),e.length==0&&(delete this.listeners[a],this.typeCount_--),!0):!1};
var nwc=function(a,b){var c=b.type;if(!(c in a.listeners))return!1;var d=Fa(a.listeners[c],b);d&&(lwc(b),a.listeners[c].length==0&&(delete a.listeners[c],a.typeCount_--));return d};Jo.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,lwc(d[e]);delete this.listeners[c];this.typeCount_--}};
Jo.prototype.getListener=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=mwc(a,b,c,d));return e>-1?a[e]:null};Jo.prototype.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return Gra(this.listeners,function(f){for(var h=0;h<f.length;++h)if(!(c&&f[h].type!=d||e&&f[h].capture!=b))return!0;return!1})};var mwc=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 owc="closure_lm_"+(Math.random()*1E6|0),pwc={},qwc=0,Ep=function(a,b,c,d,e){if(d&&d.once)return AE(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Ep(a,b[f],c,d,e);return null}c=rwc(c);return zE(a)?a.listen(b,c,La(d)?!!d.capture:!!d,e):swc(a,b,c,!1,d,e)},swc=function(a,b,c,d,e,f){if(!b)throw Error("yc");var h=La(e)?!!e.capture:!!e,k=twc(a);k||(a[owc]=k=new Jo(a));c=k.add(b,c,d,h,f);if(c.proxy)return c;d=uwc();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)Jvc||(e=h),e===void 0&&
(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(vwc(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("zc");qwc++;return c},uwc=function(){var a=wwc,b=function(c){return a.call(b.src,b.listener,c)};return b},AE=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)AE(a,b[f],c,d,e);return null}c=rwc(c);return zE(a)?a.listenOnce(b,c,La(d)?!!d.capture:!!d,e):swc(a,b,c,!0,d,e)},BE=function(a,b,c,d,e){if(Array.isArray(b))for(var f=
0;f<b.length;f++)BE(a,b[f],c,d,e);else d=La(d)?!!d.capture:!!d,c=rwc(c),zE(a)?a.unlisten(b,c,d,e):a&&(a=twc(a))&&(b=a.getListener(b,c,d,e))&&CE(b)},CE=function(a){if(typeof a==="number"||!a||a.removed)return!1;var b=a.src;if(zE(b))return b.unlistenByKey(a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(vwc(c),d):b.addListener&&b.removeListener&&b.removeListener(d);qwc--;(c=twc(b))?(nwc(c,a),c.typeCount_==0&&(c.src=null,b[owc]=null)):lwc(a);
return!0},vwc=function(a){return a in pwc?pwc[a]:pwc[a]="on"+a},wwc=function(a,b){if(a.removed)a=!0;else{b=new Ip(b,this);var c=a.listener,d=a.handler||a.src;a.callOnce&&CE(a);a=c.call(d,b)}return a},twc=function(a){a=a[owc];return a instanceof Jo?a:null},xwc="__closure_events_fn_"+(Math.random()*1E9>>>0),rwc=function(a){if(typeof a==="function")return a;a[xwc]||(a[xwc]=function(b){return a.handleEvent(b)});return a[xwc]};umc(function(a){wwc=a(wwc)});var Cp=function(){jE.call(this);this.eventTargetListeners_=new Jo(this);this.actualEventTarget_=this;this.parentEventTarget_=null};zu(Cp,jE);Cp.prototype[iwc]=!0;g=Cp.prototype;g.getParentEventTarget=function(){return this.parentEventTarget_};g.setParentEventTarget=function(a){this.parentEventTarget_=a};g.addEventListener=function(a,b,c,d){Ep(this,a,b,c,d)};g.removeEventListener=function(a,b,c,d){BE(this,a,b,c,d)};
g.dispatchEvent=function(a){var b,c=this.getParentEventTarget();if(c)for(b=[];c;c=c.getParentEventTarget())b.push(c);c=this.actualEventTarget_;var d=a.type||a;if(typeof a==="string")a=new yE(a,c);else if(a instanceof yE)a.target=a.target||c;else{var e=a;a=new yE(d,c);Qra(a,e)}e=!0;var f;if(b)for(f=b.length-1;!a.propagationStopped_&&f>=0;f--){var h=a.currentTarget=b[f];e=h.fireListeners(d,!0,a)&&e}a.propagationStopped_||(h=a.currentTarget=c,e=h.fireListeners(d,!0,a)&&e,a.propagationStopped_||(e=h.fireListeners(d,
!1,a)&&e));if(b)for(f=0;!a.propagationStopped_&&f<b.length;f++)h=a.currentTarget=b[f],e=h.fireListeners(d,!1,a)&&e;return e};g.disposeInternal=function(){Cp.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};g.listen=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!1,c,d)};g.listenOnce=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!0,c,d)};
g.unlisten=function(a,b,c,d){return this.eventTargetListeners_.remove(String(a),b,c,d)};g.unlistenByKey=function(a){return nwc(this.eventTargetListeners_,a)};g.removeAllListeners=function(){this.eventTargetListeners_&&this.eventTargetListeners_.removeAll()};
g.fireListeners=function(a,b,c){a=this.eventTargetListeners_.listeners[String(a)];if(!a)return!0;a=a.concat();for(var d=!0,e=0;e<a.length;++e){var f=a[e];if(f&&!f.removed&&f.capture==b){var h=f.listener,k=f.handler||f.src;f.callOnce&&this.unlistenByKey(f);d=h.call(k,c)!==!1&&d}}return d&&!c.defaultPrevented};g.getListener=function(a,b,c,d){return this.eventTargetListeners_.getListener(String(a),b,c,d)};
g.hasListener=function(a,b){return this.eventTargetListeners_.hasListener(a!==void 0?String(a):void 0,b)};var DE=function(a,b){Cp.call(this);this.interval_=a||1;this.timerObject_=b||ea;this.boundTick_=bt(this.tick_,this);this.last_=Date.now()};zu(DE,Cp);g=DE.prototype;g.enabled=!1;g.timer_=null;g.setInterval=function(a){this.interval_=a;this.timer_&&this.enabled?(this.stop(),this.start()):this.timer_&&this.stop()};
g.tick_=function(){if(this.enabled){var a=Date.now()-this.last_;a>0&&a<this.interval_*.8?this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_-a):(this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};g.start=function(){this.enabled=!0;this.timer_||(this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_),this.last_=Date.now())};
g.stop=function(){this.enabled=!1;this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null)};g.disposeInternal=function(){DE.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
var Vq=function(a,b,c){if(typeof a==="function")c&&(a=bt(a,c));else if(a&&typeof a.handleEvent=="function")a=bt(a.handleEvent,a);else throw Error("Ac");return Number(b)>2147483647?-1:ea.setTimeout(a,b||0)},Wq=function(a){ea.clearTimeout(a)},ywc=function(a,b){var c=null;return(new xz(function(d,e){c=Vq(function(){d(b)},a);c==-1&&e(Error("Bc"))})).thenCatch(function(d){Wq(c);throw d;})};var zwc=function(a){jE.call(this);this.streamzLogger=a;this.invocationCount=0;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.flushTimer=new DE(this.flushInterval);this.flushTimer.listen("tick",this.snapshotAndFlush,!1,this);Er(this,this.flushTimer)};Y(zwc,jE);var Awc=function(a){a.maybeStartFlushTimer();a.invocationCount++;a.invocationCount>=100&&a.snapshotAndFlush()};g=zwc.prototype;
g.snapshotAndFlush=function(){var a=this.metricMap.values();a=[].concat(p(a)).filter(function(b){return b.cellMap.size});a.length&&this.streamzLogger.flush(a,!1);Bwc(a);this.invocationCount=0;this.flushTimer.enabled&&this.flushTimer.stop()};g.addNewCounter=function(a){var b=ge.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new gwc(a,b))};g.addNewEventMetric=function(a){var b=ge.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new hwc(a,b))};
g.getMetric=function(a){return this.disabledMetrics.has(a)?void 0:this.metricMap.get(a)};g.incrementCounter=function(a){this.incrementCounterBy(a,1,ge.apply(1,arguments))};g.incrementCounterBy=function(a,b){var c=ge.apply(2,arguments),d=this.getMetric(a);d&&d instanceof gwc&&(d.incrementCounterBy(b,c),Awc(this))};g.record=function(a,b){var c=ge.apply(2,arguments),d=this.getMetric(a);d&&d instanceof hwc&&(d.record(b,c),Awc(this))};g.maybeStartFlushTimer=function(){this.flushTimer.enabled||this.flushTimer.start()};
var Bwc=function(a){for(var b=0;b<a.length;b++)a[b].clear()};var EE=function(){var a=new vE(852,"0");a.setComponentId("");a.useSendBeaconForFinalFlush();a.useGetRequestForFinalFlush();a.sendBeaconApiEnabled=!0;a=new xE(852,void 0,void 0,void 0,void 0,a.build());a=this.service=new zwc(a);a.flushInterval=3E3;a.flushTimer.setInterval(3E3)};EE.\u0275fac=function(a){return new (a||EE)};EE.\u0275prov=Cd({token:EE,factory:EE.\u0275fac,providedIn:"root"});var Cwc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Cwc,n);var Dwc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Dwc,n);var Ewc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ewc,n);g=Ewc.prototype;g.setUserAction=function(a){return Rk(this,1,a)};g.getIssueId=function(){return xk(this,3)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,3)};g.getIssueId_asString=function(){return Bk(this,3)};g.setIssueId=function(a){return Ek(this,3,a)};g.getEnvironmentType=function(){return Rc(this,4)};g.setEnvironmentType=function(a){return Qk(this,4,a)};
g.getFrontendAccessMode=function(){return Rc(this,5)};g.setFrontendAccessMode=function(a){return Qk(this,5,a)};var Fwc=fl("debug-logging")(),FE=function(){this.activeSession=r(Bs);this.streamz=r(EE);this.clearcutTransport=r(wE);this.pageLoadTime=new Rlc(this.streamz.service);this.userLatency=new Tlc(this.streamz.service);this.userActionCounter=new Slc(this.streamz.service);this.frontendAccessMode=this.activeSession.getFrontendAccessMode();this.environmentType=this.activeSession.getEnvironmentType()};
FE.prototype.timePageLoad=function(a,b){this.pageLoadTime.record(a,b,this.frontendAccessMode,this.environmentType);Fwc&&console.log("Clearcut stub",{action:b,duration:a})};var GE=function(a,b,c){a.userLatency.record(b,c,a.frontendAccessMode,a.environmentType);Fwc&&console.log("Clearcut stub",{action:c,duration:b})},Gwc=function(a,b){a.userActionCounter.increment(b,a.frontendAccessMode,a.environmentType);Fwc&&console.log("Clearcut stub",{action:b})};FE.\u0275fac=function(a){return new (a||FE)};
FE.\u0275prov=Cd({token:FE,factory:FE.\u0275fac,providedIn:"root"});var Hwc=hl("journey-log"),Iwc=ova("journey-log"),Jwc=[{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"}],HE={startEvents:["ilp-search"],successEvents:["edit","ixn","comment"],abortEvents:["ilp-filter",
"idle"],successMarker:"SUCCESS-search",count:["nav"]},IE=function(){this.clearcut=r(FE)},Kwc=function(a,b){var c=c===void 0?Date.now():c;var d,e=(d=Iwc())!=null?d:[];e.push([b,c]);e.length>100&&(e=e.slice(-100));Hwc(e);if(HE.successEvents.includes(b)){b=e;c=HE.abortEvents;d=HE.successEvents;e=HE.startEvents;for(var f=HE.successMarker,h,k=b.length-1;k>=0;k--){var q=l(b[k]),v=q.next().value;q=q.next().value;if(c.includes(v))break;if(f===v)break;if(d.includes(v)){if(h&&A)break;var A=q}else A&&e.includes(v)&&
(h=q)}A=h&&A?[h,A]:void 0;A&&(A=l(A),h=A.next().value,A=A.next().value-h,GE(a.clearcut,A,xHa("journey","global-search-text")),Fo("journey","global-search-text","duration",A),Kwc(a,HE.successMarker))}};IE.\u0275fac=function(a){return new (a||IE)};IE.\u0275prov=Cd({token:IE,factory:IE.\u0275fac,providedIn:"root"});var JE=function(){var a=this;this.clearcut=r(FE);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)))}},Lwc=function(a){OGa()&&(a.observer!=null&&a.observer.disconnect(),a.observer=new NGa.PerformanceObserver(a.onMeasurement),a.observer.observe({entryTypes:["measure"]}))};
JE.\u0275fac=function(a){return new (a||JE)};JE.\u0275prov=Cd({token:JE,factory:JE.\u0275fac,providedIn:"root"});var yHa={},Mwc={logInfo:function(){console.log(AHa());console.log("\nDuplicate Requests:");console.table(zHa())},getCounts:function(){return yHa},getDupes:zHa,getAggregates:AHa};var Nwc={attributes:!1,childList:!0,subtree:!0},KE=function(){var a=this;this.ngZone=r(Ph);this.router=r(vC);this.activatedRoute=r(Jn);this.dom$=new tg;this.cdr$=this.ngZone.onStable;this.xhr$=new tg;this.render$=dg(this.dom$,this.cdr$);this.renderSettled$=this.render$.pipe(kg(200));this.navigatedTo$=this.router.events.pipe(eg(CHa),C(function(){return BHa(a.activatedRoute.snapshot)}));this.navigatedTo$.pipe(xg(function(b){return a.renderSettled$.pipe(mg(1),C(function(){return b}))}),ug(1));this.domObserver=
new MutationObserver(function(){return void a.dom$.next()})},Owc=function(a){a.domObserver.disconnect();a.domObserver.observe(document.body,Nwc)};KE.prototype.intercept=function(a,b){var c=a.method+" "+a.urlWithParams;yHa[c]=~~yHa[c]+1;this.xhr$.next(c);return b.handle(a)};KE.\u0275fac=function(a){return new (a||KE)};KE.\u0275prov=Cd({token:KE,factory:KE.\u0275fac,providedIn:"root"});var Pwc={provide:wsc,useExisting:KE,multi:!0};var LE=function(){nq.apply(this,arguments)};Y(LE,nq);LE.create=nq.create;LE.prototype.emit=function(a){nq.prototype.emit.call(this,a)};var Z=function(){this.destroyed$=new sg(1);this.subscriptions=new yf};Z.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.subscriptions.unsubscribe()};Z.\u0275fac=function(a){return new (a||Z)};Z.\u0275dir=vf({type:Z});var ME=function(){};g=ME.prototype;g.debug=function(){Vj.apply(null,p(ge.apply(0,arguments)))};g.error=function(){yta.apply(null,p(ge.apply(0,arguments)))};g.info=function(){Wj.apply(null,p(ge.apply(0,arguments)))};g.log=function(){xta.apply(null,p(ge.apply(0,arguments)))};g.warn=function(){Xj.apply(null,p(ge.apply(0,arguments)))};ME.\u0275fac=function(a){return new (a||ME)};ME.\u0275prov=Cd({token:ME,factory:ME.\u0275fac,providedIn:"root"});var NE=function(){this.cdr=r(Hv);this.zone=r(Ph);this.destroyed=!1};NE.prototype.ngOnDestroy=function(){this.destroyed=!0};NE.prototype.detectChanges=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.detectChanges()})};NE.prototype.markForCheck=function(){var a=this;this.destroyed||this.zone.run(function(){a.cdr.markForCheck()})};NE.\u0275fac=function(a){return new (a||NE)};NE.\u0275prov=Cd({token:NE,factory:NE.\u0275fac});var OE=function(){Z.apply(this,arguments);var a=this;this.ngZone=r(Ph);this.activeSubject$=new Kn(!1);this.active$=this.activeSubject$.pipe(og(),yg(this.destroyed$),EHa(this.ngZone));this.onUserEvent=Cmc(function(){a.activeSubject$.next(!0);Qwc(a)},200);this.onVisibilityChange=function(){document.visibilityState==="hidden"?(a.activeSubject$.next(!1),clearTimeout(a.activeTimeoutId)):(a.activeSubject$.next(!0),Qwc(a))}};Y(OE,Z);OE.\u0275dir=Z.\u0275dir;
OE.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)};
OE.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);clearTimeout(this.activeTimeoutId);window.removeEventListener("click",this.onUserEvent);window.removeEventListener("keydown",this.onUserEvent);window.removeEventListener("mousemove",this.onUserEvent);window.removeEventListener("wheel",this.onUserEvent);window.removeEventListener("touchstart",this.onUserEvent);window.removeEventListener("focus",this.onUserEvent);document.removeEventListener("visibilitychange",this.onVisibilityChange)};
var Qwc=function(a){clearTimeout(a.activeTimeoutId);a.activeTimeoutId=setTimeout(function(){a.activeSubject$.next(!1)},1E4)};OE.\u0275fac=function(){var a;return function(b){return(a||(a=Re(OE)))(b||OE)}}();OE.\u0275prov=Cd({token:OE,factory:OE.\u0275fac,providedIn:"root"});var Rwc=[Rn,Tn,Sn],QE=function(){Z.call(this);var a=this;this.router=r(vC);this.routeChangeStart=new tg;this.routeChangeSuccess=new tg;this.locationChangeStart=new tg;this.locationChangeSuccess=new tg;this.routeUpdate=new tg;this.viewContentLoaded=new tg;this.navigationEnd$=this.router.events.pipe(eg(CHa));this.navigationOver$=this.router.events.pipe(eg(function(c){return Rwc.some(function(d){return c instanceof d})}));PE(this,PCa).subscribe(function(c){a.routeChangeStart.next({params:Object.assign({},
c.snapshot.queryParams,c.snapshot.params)})});var b=PE(this,erc);dg(this.navigationOver$.pipe(lg(Bv)),this.routeChangeStart.pipe(lg(b))).pipe(xg(Af),eg(function(c){return c.snapshot.routeConfig.isRootRoute}),C(function(c){return{params:Object.assign({},c.snapshot.queryParams,c.snapshot.params)}}),yg(this.destroyed$)).subscribe(function(c){a.routeChangeSuccess.next(c)});PE(this,Ko).pipe(C(function(c){return c.url}),og()).subscribe(function(){a.locationChangeStart.next()});PE(this,Rn).pipe(C(function(c){return c.url}),
og()).subscribe(function(){a.locationChangeSuccess.next()});b=r(Jn).queryParams.pipe(Ag(PE(this,Xqc)));dg(this.routeChangeStart.pipe(lg(Bv)),this.navigationOver$.pipe(lg(b))).pipe(xg(Af),yg(this.destroyed$)).subscribe(function(c){c=l(c);c.next();c=c.next().value;a.routeUpdate.next({params:c.state.root.params})});PE(this,Rn).subscribe(function(){a.viewContentLoaded.next()})};Y(QE,Z);QE.\u0275dir=Z.\u0275dir;
var PE=function(a,b){return a.router.events.pipe(eg(function(c){return c instanceof b}),C(function(c){return c}),yg(a.destroyed$))};QE.\u0275fac=function(a){return new (a||QE)};QE.\u0275prov=Cd({token:QE,factory:QE.\u0275fac,providedIn:"root"});var Swc=fl("onedev-darkmode"),RE=function(){var a=r(QE),b=r(Bs),c=r(Jn);Z.call(this);var d=this;this.journeyTracker=r(IE);this.preapply=function(){return function(k){return function(q,v){d.trackEvent("editIssue",k,q,v)}}};nHa();hHa(b.getUserTypeLabel());b=b.getUserPreferences();Go("dimension7",Swc()?"dark":"default");var e;Go("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 h;e=(h=b.commentFilterPreferences)==
null?void 0:h.commentFilter}Go("dimension2",e);Go("dimension5",b.showRecentEventsFirst?"newestFirst":"oldestFirst");this.subscriptions.add(a.viewContentLoaded.pipe(wg(void 0)).subscribe(function(){var k=BHa(c.snapshot);iHa("page_location",k);aHa("page_view",{page_path:k})}))};Y(RE,Z);RE.\u0275dir=Z.\u0275dir;
RE.prototype.trackEvent=function(a,b,c,d){Fo(a,b,c,typeof d==="boolean"?d?1:0:d);d=this.journeyTracker;a=xHa(a,b,c);b=l(Jwc);for(c=b.next();!c.done;c=b.next()){c=c.value;var e=c.outputEvent;if(a.match(c.matcher)){Kwc(d,e);break}}};var Twc=function(a,b,c){aHa("timing",Object.assign({},{timing_category:"userAction",timing_var:a,timing_value:b},c!==void 0?{timing_label:c}:{}))},Uwc=function(a,b){a.trackEvent("editIssue","updateStatus",b)};RE.\u0275fac=function(a){return new (a||RE)};
RE.\u0275prov=Cd({token:RE,factory:RE.\u0275fac,providedIn:"root"});var GHa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(GHa,n);var Vwc=!1;var TE=function(){XA.call(this);var a=this;this.batchApiAdapter=r(tB);this.issueApi=r(RD);this.userResources=r(aD);this.refreshMonitor=r(gE);this.issueService=r(cE);this.activeSession=r(Bs);this.hotlistFridge=r(cD);this.analytics=r(RE);this.issueExperimentalFieldsFridge=r(eE);this.issueFullBatchConfig=r(SE);this.issueFridge=r(iE);this.recordType="issue-full";this.idForRecord=function(c){return String(c.issueId)};this.isEqual=gj;this.batchAdaptedGet=this.batchApiAdapter.adapt(this.issueFullBatchConfig);
if(Vwc)var b=void 0;else Vwc=!0,b=IHa();b&&this.announce(b);this.refreshMonitor.getObservable().subscribe(function(){a.invalidate()})};Y(TE,XA);g=TE.prototype;g.announce=function(a,b){XA.prototype.announce.call(this,JHa(a));this.issueFridge.announce(ywa(a),b)};
g.fetchOne=function(a){var b=this;this.issueFridge.setIsGetting(a);return this.batchAdaptedGet(a).pipe(zg(function(c){b.issueFridge.clearIsGetting(a);b.issueFridge.announce(ywa(c))}),C(function(c){return JHa(c)}),hg(function(c){b.issueFridge.clearIsGetting(a);return Of(function(){return c})}))};g.fetchSet=function(a){var b=this;return Uf(a.map(function(c){return b.fetchOne(c).pipe(hg(function(){return Nf(void 0)}))})).pipe(C(function(c){return c.filter(Qj)}))};
g.watch=function(a,b){return Uf([XA.prototype.watch.call(this,a,b),this.issueFridge.watch(a,b)]).pipe(C(function(c){var d=l(c);c=d.next().value;d=d.next().value;return zwa(d,c)}))};g.watchSet=function(a){return Uf([XA.prototype.watchSet.call(this,a),this.issueFridge.watchSet(a)]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d=oj(c,function(e){return e.issueId});return b.map(function(e){return zwa(d.get(e.issueId),e)})}),C(function(b){return b.filter(Qj)}))};
g.peek=function(a){var b=XA.prototype.peek.call(this,a);a=this.issueFridge.peek(a);return zwa(a,b)};g.poke=function(a,b){var c=this;return z(function(d){return d.nextAddress==1?B(d,Promise.all([XA.prototype.poke.call(c,a,b),c.issueFridge.poke(a,b)]),2):d.return(c.peek(a))})};g.manualUpdate=function(a,b){if(a=(a=this.peek(a))&&hj(a))b(a),this.announce(a)};g.copy=function(a){return a&&hj(a)};
var Wwc=function(a,b,c){a.analytics.trackEvent("issue","light-ixn","star");var d={starred:c,voted:null,notificationSubscription:null};NA(a.activeSession)&&(d.voted=c);return duc(a.userResources,b,d).pipe(zg(function(){a.manualUpdate(b,function(e){e.userData&&(e.userData.starred=c,NA(a.activeSession)&&(e.userData.voted=c))})}))},Xwc=function(a,b,c){a.analytics.trackEvent("issue","light-ixn","vote",c);return duc(a.userResources,b,{voted:c,starred:null,notificationSubscription:null}).pipe(zg(function(){a.manualUpdate(b,
function(d){d.userData&&(d.userData.voted=c)})}))};TE.prototype.setNotificationSubscription=function(a,b){var c=this,d;return z(function(e){if(e.nextAddress==1)return c.analytics.trackEvent("issue","light-ixn","notifs",Number(b)),d={voted:null,starred:null,notificationSubscription:b},B(e,Rf(duc(c.userResources,a,d)),2);c.manualUpdate(a,function(f){f.userData&&(f.userData.notificationSubscription=b)});Lf(e)})};
var Ywc=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(zg(function(e){e&&a.announce(e)}))};TE.prototype.removeHotlists=function(a,b){return this.updateHotlists(a,[],b)};
TE.prototype.updateHotlists=function(a,b,c){var d=this,e,f,h,k,q,v;return z(function(A){if(A.nextAddress==1){d.analytics.trackEvent("issue","edit","hotlists");e={removeHotlistIds:c,addHotlistIds:b,hotlistIssue:{issueId:a}};f=l([].concat(p(b),p(c)));for(h=f.next();!h.done;h=f.next())k=h.value,d.hotlistFridge.setIsSaving(k);Gf(A,2);return B(A,Rf(d.issueApi.updateIssueHotlists(a,e)).finally(function(){for(var E=l([].concat(p(b),p(c))),H=E.next();!H.done;H=E.next())d.hotlistFridge.clearIsSaving(H.value)}),
4)}if(A.nextAddress!=2)return(q=A.yieldResult)&&d.announce(q),A.return(q);v=Kf(A);d.poke(a);throw v;})};var Zwc=function(a,b,c){return UE(a,"ADD","DUPLICATE",c,[b]).then(function(){c!=null&&Uwc(a.analytics,"DUPLICATE");return a.poke(b)})};g=TE.prototype;g.removeDuplicate=function(a,b){var c=this;return UE(this,"REMOVE","DUPLICATE",b,[a]).then(function(){return c.poke(a)})};g.addBlocking=function(a,b){return UE(this,"ADD","BLOCKING",a,b)};
g.removeBlocking=function(a,b){return UE(this,"REMOVE","BLOCKING",a,b)};g.addBlockedBy=function(a,b){return UE(this,"ADD","BLOCKED_BY",a,b)};g.removeBlockedBy=function(a,b){return UE(this,"REMOVE","BLOCKED_BY",a,b)};
var UE=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};$wc(a,b);var f=[d].concat(p(e));e=l(f);for(c=e.next();!c.done;c=e.next())a.setIsSaving(c.value);return Rf(a.issueApi.relateIssue(d,b)).then(function(h){h&&a.announce(h)}).catch(function(h){a.poke(d);throw h;}).finally(function(){for(var h=l(f),k=h.next();!k.done;k=h.next())a.clearIsSaving(k.value)})},VE=function(a,
b,c){c=c===void 0?{}:c;var d=c.markRead===void 0?!0:c.markRead;var e=c.eagerUpdate===void 0?!0:c.eagerUpdate;var f=c.userActivityType===void 0?"USER_ACTIVITY_TYPE_UNDEFINED":c.userActivityType;var h,k,q,v;return z(function(A){if(A.nextAddress==1)return a.activeSession.isAnonymous()?A.return():B(A,a.issueService.markRead(b,d,f),2);h=A.yieldResult;if(e)for(k=l(b),q=k.next();!q.done;q=k.next())v=q.value,a.manualUpdate(String(v),function(E){E.userData&&(E.userData.lastViewedTimeMicros=h.readTimestamp)});
return A.return(h.readTimestamp?Math.round(h.readTimestamp/1E3):void 0)})},$wc=function(a,b){a.manualUpdate(b.issueId,function(c){switch(b.relation){case "BLOCKED_BY":if(b.actionType==="ADD"){var d;c.snapshot[0].blockedByIssueId=[].concat(p((d=c.snapshot[0].blockedByIssueId)!=null?d:[]),p(b.targetIds.map(String)))}else if(b.actionType==="REMOVE"){var e,f;c.snapshot[0].blockedByIssueId=(f=(e=c.snapshot[0].blockedByIssueId)==null?void 0:e.filter(function(h){return!b.targetIds.includes(String(h))}))!=
null?f:[]}}})};TE.\u0275fac=function(a){return new (a||TE)};TE.\u0275prov=Cd({token:TE,factory:TE.\u0275fac,providedIn:"root"});var SE=function(){this.issueApi=r(RD);this.maxBatchSize=100;this.bufferTimeMs=0};SE.prototype.call=function(a){var b=this;if(a.size===1){var c=[].concat(p(a))[0];return this.issueApi.getIssueFull(c).pipe(C(function(d){return new Map([[c,d]])}))}return Yf(function(){return b.issueApi.batchGetIssuesFull([].concat(p(a)))}).pipe(C(function(d){return oj(d,function(e){return e.issueId})}))};
SE.prototype.split=function(a,b){return b.get(a)};SE.\u0275fac=function(a){return new (a||SE)};SE.\u0275prov=Cd({token:SE,factory:SE.\u0275fac,providedIn:"root"});var SHa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(SHa,n);g=SHa.prototype;g.getAddMask=function(){return W(this,fo,1)};g.getMutableAddMask=function(){return Cu(this,fo,1)};g.setAddMask=function(a){return X(this,fo,1,a)};g.getAdd=function(){return W(this,Rm,2)};g.setAdd=function(a){return X(this,Rm,2,a)};g.getComment=function(){return W(this,ho,3)};g.setComment=function(a){return X(this,ho,3,a)};g.getRemoveMask=function(){return W(this,fo,5)};
g.getMutableRemoveMask=function(){return Cu(this,fo,5)};g.setRemoveMask=function(a){return X(this,fo,5,a)};g.getRemove=function(){return W(this,Rm,6)};g.setRemove=function(a){return X(this,Rm,6,a)};var axc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(axc,n);g=axc.prototype;g.getText=function(){return Rc(this,1)};g.setText=function(a){return Hj(this,1,a)};g.getFormattingMode=function(){return pk(this,2)};g.setFormattingMode=function(a){return Jj(this,2,a)};g.getCreateTime=function(){return W(this,bk,4)};var bxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bxc,n);bxc.prototype.getIssue=function(){return W(this,oo,1)};bxc.prototype.setIssue=function(a){return X(this,oo,1,a)};bxc.prototype.getRecommendation=function(){return Rc(this,2)};var KHa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(KHa,n);KHa.prototype.getName=function(){return Rc(this,1)};KHa.prototype.setName=function(a){return Hj(this,1,a)};KHa.prototype.getEntriesList=function(){return Sj(this,bxc,3,Bj())};var UHa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(UHa,n);g=UHa.prototype;g.getContentCase=function(){return Ml(this,Mo)};g.getName=function(){return Rc(this,1)};g.setName=function(a){return Hj(this,1,a)};g.getSource=function(){return Rc(this,2)};g.setSource=function(a){return Hj(this,2,a)};g.getResource=function(){return Rc(this,3)};g.setResource=function(a){return Hj(this,3,a)};g.getType=function(){return pk(this,4)};g.setType=function(a){return Jj(this,4,a)};
g.getRecommendation=function(){return Rc(this,5)};g.getScore=function(){return hm(this,6)};g.setScore=function(a){return Im(this,6,a)};g.getConfidence=function(){return pk(this,7)};g.getCreateTime=function(){return W(this,bk,8)};g.getIssueModification=function(){return im(this,SHa,12,Mo)};g.setIssueModification=function(a){nm(this,12,Mo,a)};g.getRationale=function(){return W(this,axc,13)};var Mo=[9,10,11,12];var No=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(No,n);No.prototype.getType=function(){return pk(this,2)};No.prototype.setType=function(a){return Jj(this,2,a)};No.prototype.getIssueModification=function(){return im(this,SHa,4,cxc)};No.prototype.setIssueModification=function(a){nm(this,4,cxc,a)};var cxc=[4];var PHa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(PHa,n);PHa.prototype.getParent=function(){return Rc(this,1)};PHa.prototype.setParent=function(a){return Hj(this,1,a)};var dxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dxc,n);g=dxc.prototype;g.getResource=function(){return Rc(this,1)};g.setResource=function(a){return Hj(this,1,a)};g.getType=function(){return pk(this,2)};g.setType=function(a){return Jj(this,2,a)};g.setPageSize=function(a){return Zj(this,4,a)};g.setPageToken=function(a){return Hj(this,5,a)};g.setView=function(a){return Jj(this,6,a)};var WE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,WE.messageId)};Y(WE,n);WE.prototype.getParent=function(){return Rc(this,1,void 0,Nc)};WE.prototype.setParent=function(a){return Hj(this,1,a,Nc)};WE.prototype.setRequestsList=function(a){return Bm(this,2,a,Nc)};WE.prototype.addAndReturnRequests=function(){return Fc(this,2,PHa,Nc)};WE.messageId="b.BatchCreateUserEngagementsRequest";var XE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,XE.messageId)};Y(XE,n);XE.prototype.getNextPageToken=function(){return Rc(this,2,void 0,Nc)};XE.prototype.getTotalSize=function(){return xk(this,3,void 0,Nc)};XE.messageId="b.LookupRecommendationsResponse";var YE=function(){this.executor=r(PA)};YE.prototype.lookupRecommendations=function(a){var b=(new dxc).setResource(a.resource).setType(ooc[a.type]).setPageSize(a.pageSize).setPageToken(a.pageToken).setView(roc[a.view]);a.minConfidence!==void 0&&Jj(b,3,snc[a.minConfidence]);return this.executor.post({url:"action/recommendations/lookup",body:b,responseConstructor:XE}).pipe(C(VHa))};
YE.prototype.createUserEngagements=function(a){a=(new WE).setRequestsList(a.map(THa));return this.executor.post({url:"action/recommendations/engagements/batch",body:a,responseConstructor:null})};YE.\u0275fac=function(a){return new (a||YE)};YE.\u0275prov=Cd({token:YE,factory:YE.\u0275fac,providedIn:"root"});var ZE=function(){this.observableApi=r(YE)};ZE.prototype.lookupRecommendations=function(a){return Rf(this.observableApi.lookupRecommendations(a))};ZE.prototype.createUserEngagements=function(a){return Rf(this.observableApi.createUserEngagements(a))};
ZE.\u0275fac=function(a){return new (a||ZE)};ZE.\u0275prov=Cd({token:ZE,factory:ZE.\u0275fac,providedIn:"root"});var exc=new Map;var $E=function(){XA.call(this);var a=this;this.api=r(YE);this.activeSession=r(Bs);this.refreshMonitor=r(gE);this.recordType="issue-recommendation";this.isEqual=gj;this.idForRecord=function(b){return b.issueId+"-"+b.recommendationType};this.refreshMonitor.getObservable().subscribe(function(){a.invalidate()})};Y($E,XA);
$E.prototype.fetchOne=function(a){if(this.activeSession.isExternalSession())return Nf(void 0);a=WHa(a);var b=a.issueId,c=a.recommendationType;return c==="NEEDS_INFO"&&!OA(this.activeSession,"enableNeedsInfoUi")||c==="COMPONENT_ROUTING"&&!OA(this.activeSession,"enableComponentRoutingUi")?Nf(void 0):this.api.lookupRecommendations({resource:"issues/"+b,type:c,minConfidence:"MEDIUM",view:"FULL",pageSize:10}).pipe(C(function(d){return{issueId:b,recommendationType:c,recommendations:d.recommendations}}),
hg(function(d){console.error("IssueRecommendationFridge error",d);return Nf(void 0)}))};$E.prototype.watch=function(a){if(!a.includes("-"))throw Error("Cc");return XA.prototype.watch.call(this,a)};$E.prototype.poke=function(a){if(!a.includes("-"))throw Error("Dc");return XA.prototype.poke.call(this,a)};$E.\u0275fac=function(a){return new (a||$E)};$E.\u0275prov=Cd({token:$E,factory:$E.\u0275fac,providedIn:"root"});var fxc=function(a){var b=Error.call(this,a);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.data={message:a};Object.setPrototypeOf(this,this.constructor.prototype)};Y(fxc,Error);var So=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(So,n);var gxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gxc,n);g=gxc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.setRelationshipType=function(a){return Jj(this,2,a)};g.getIssueRelationship=function(){return W(this,So,3)};g.setIssueRelationship=function(a){return X(this,So,3,a)};
g.setSignificanceOverride=function(a){return Jj(this,4,a)};var hxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hxc,n);g=hxc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.setRelationshipType=function(a){return Jj(this,2,a)};g.setRequestsList=function(a){return Bm(this,3,a)};g.addAndReturnRequests=function(){return Fc(this,3,gxc)};
g.setSignificanceOverride=function(a){return Jj(this,4,a)};var ixc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ixc,n);g=ixc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.setRelationshipType=function(a){return Jj(this,2,a)};g.setSignificanceOverride=function(a){return Jj(this,4,a)};var jxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(jxc,n);g=jxc.prototype;g.setRelationshipType=function(a){return Jj(this,1,a)};g.getSourceIssueIdsList_asLegacyNumberOrString=function(){return bp(this,2,Bj())};g.setSourceIssueIdsList=function(a){return ep(this,2,a)};g.getQuery=function(){return Rc(this,3)};g.setQuery=function(a){return Hj(this,3,a)};g.clearQuery=function(){Bu(this,3)};var aF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(aF,n);var kxc=function(a,b){return ep(a,1,b)};aF.prototype.setRelationshipType=function(a){return Jj(this,2,a)};var lxc=function(a,b){return Zj(a,3,b)},mxc=function(a,b){return Zj(a,4,b)};aF.prototype.getQuery=function(){return Rc(this,5)};aF.prototype.setQuery=function(a){return Hj(this,5,a)};aF.prototype.clearQuery=function(){Bu(this,5)};var bF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,bF.messageId)};Y(bF,n);bF.prototype.getIt=function(){return W(this,hxc,5,Nc)};bF.prototype.setIt=function(a){return X(this,hxc,5,a,Nc)};bF.messageId="b.BatchCreateIssueRelationshipsRequest";var nxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,nxc.messageId)};Y(nxc,n);nxc.prototype.getIssueRelationshipsList=function(){return Sj(this,So,1,Bj(),Nc)};nxc.messageId="b.BatchCreateIssueRelationshipsResponse";var cF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,cF.messageId)};Y(cF,n);cF.prototype.getIt=function(){return W(this,ixc,5,Nc)};cF.prototype.setIt=function(a){return X(this,ixc,5,a,Nc)};cF.messageId="b.BatchDeleteIssueRelationshipsRequest";var dF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,dF.messageId)};Y(dF,n);dF.prototype.getIt=function(){return W(this,jxc,4,Nc)};dF.prototype.setIt=function(a){return X(this,jxc,4,a,Nc)};dF.messageId="b.BatchGetIssueRelationshipsRequest";var oxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(oxc,n);oxc.prototype.getIssueRelationshipsList=function(){return Sj(this,So,1,Bj())};oxc.prototype.getTotalSize=function(){return Ej(this,2)};var pxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,pxc.messageId)};Y(pxc,n);pxc.messageId="b.BatchGetIssueRelationshipsResponse";var eF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,eF.messageId)};Y(eF,n);eF.prototype.getIssueRelationship=function(){return W(this,So,1,Nc)};eF.prototype.setIssueRelationship=function(a){return X(this,So,1,a,Nc)};eF.messageId="b.CreateIssueRelationshipResponse";var fF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,fF.messageId)};Y(fF,n);fF.prototype.getIt=function(){return W(this,aF,6,Nc)};fF.prototype.setIt=function(a){return X(this,aF,6,a,Nc)};fF.messageId="b.GetIssueDescendantsRequest";var qxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,qxc.messageId)};Y(qxc,n);qxc.messageId="b.GetIssueDescendantsResponse";var rxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,rxc.messageId)};Y(rxc,n);rxc.prototype.getIssueRelationshipsList=function(){return Sj(this,So,1,Bj(),Nc)};rxc.messageId="b.ListIssueRelationshipsResponse";var gF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,gF.messageId)};Y(gF,n);gF.prototype.getIssueRelationship=function(){return W(this,So,1,Nc)};gF.prototype.setIssueRelationship=function(a){return X(this,So,1,a,Nc)};gF.messageId="b.UpdateIssueRelationshipResponse";var hF=function(){this.executor=r(PA)};g=hF.prototype;g.list=function(a,b){return this.executor.get({url:"action/issues/"+a+"/relationships?relationshipType="+Oz[b],responseConstructor:rxc}).pipe(C(function(c){return c.getIssueRelationshipsList().map(ZHa)}))};g.create=function(a,b,c){b=Oz[b];c=YHa(c);return this.executor.post({url:"action/issues/"+a+"/relationships?relationshipType="+b,body:c,responseConstructor:eF}).pipe(C(function(d){return ZHa(d.getIssueRelationship())}))};
g.update=function(a,b,c){b=Oz[b];var d=YHa(c);return this.executor.put({url:"action/issues/"+a+"/relationships/"+c.targetIssueId+"?relationshipType="+b,body:d,responseConstructor:gF}).pipe(C(function(e){return ZHa(e.getIssueRelationship())}))};g.delete=function(a,b,c){return this.executor.delete({url:"action/issues/"+a+"/relationships/"+c+"?relationshipType="+Oz[b],responseConstructor:null})};
g.batchGet=function(a,b){b=Oz[b];a=(new dF).setIt((new jxc).setSourceIssueIdsList(a).setRelationshipType(b).setQuery(this.getQuery(void 0)));return this.executor.post({url:"action/issues/batch_relationships",body:a,responseConstructor:pxc}).pipe(C(function(c){return Sj(c,oxc,1,Bj(),Nc).map($Ha)}))};
var sxc=function(a,b,c){var d=Oz.CHILD;c=c.map(function(e){e=YHa(e);return(new gxc).setIssueRelationship(e)});b=(new bF).setIt((new hxc).setIssueId(b).setRelationshipType(d).setSignificanceOverride(c.length>1?4:0).setRequestsList(c));return a.executor.post({url:"action/issues/relationships_batchCreate",body:b,responseConstructor:nxc}).pipe(C(function(e){return e.getIssueRelationshipsList().map(ZHa)}))},txc=function(a,b,c){var d=Oz.CHILD,e=new cF,f=e.setIt;b=(new ixc).setIssueId(b).setRelationshipType(d);
c=ep(b,3,c);e=f.call(e,c);return a.executor.post({url:"action/issues/relationships_batchDelete",body:e,responseConstructor:null})};
hF.prototype.getDescendants=function(a){var b=a.issueIds;var c=a.relationshipType;var d=a.includeArchived;var e=a.depthLimit;a=a.prefixSizeLimit;c=Oz[c];b=(new fF).setIt(mxc(lxc(kxc(new aF,b).setRelationshipType(c).setQuery(this.getQuery(d)),e),a));return this.executor.post({url:"action/issues/descendants",body:b,responseConstructor:qxc}).pipe(C(function(f){var h=new Map;f=l(uc(f,1,oxc,Vb,Nc).entries());for(var k=f.next();!k.done;k=f.next()){var q=l(k.value);k=q.next().value;q=q.next().value;h.set(String(k),
$Ha(q))}return h}))};hF.prototype.getQuery=function(a){return a?"include_archived:true":"include_archived:false"};hF.\u0275fac=function(a){return new (a||hF)};hF.\u0275prov=Cd({token:hF,factory:hF.\u0275fac,providedIn:"root"});var iF={},uxc=(iF.BUG="BUG",iF.FEATURE_REQUEST="FEATURE_REQUEST",iF.CUSTOMER_ISSUE="CUSTOMER_ISSUE",iF.INTERNAL_CLEANUP="INTERNAL_CLEANUP",iF.PROCESS="PROCESS",iF.VULNERABILITY="VULNERABILITY",iF.PRIVACY_ISSUE="PRIVACY_ISSUE",iF.EPIC="STORY",iF.STORY="TASK",iF.TASK="TASK",iF.PROJECT="TASK",iF.FEATURE="TASK",iF.MILESTONE="TASK",iF.PROGRAM="PROJECT",iF);var jF=function(){WA.call(this,{freshUntil:6E4,ancientAfter:792E5});var a=this;this.issueRelationshipService=r(hF);this.issueFullFridge=r(TE);this.refreshMonitor=r(gE);this.recordType="issueRelationships";this.idForRecord=function(b){return b.issueId};this.isEqual=gj;this.activeMoveOperation$=new Kn(new Set);this.defaultQuery={type:"descendants",depth:1};this.assignParentToIssues=Csa(function(b,c){return vxc(a,b,c)});this.assignParentToOneIssue=function(b,c){return vxc(a,String(b),[{issueId:c}])};
this.moveChildrenInAPI=Bsa(function(b){return a.moveChildrenInAPISequentially(b)});this.moveChildrenInAPISequentially=Csa(function(b){var c,d,e,f,h,k,q,v,A,E,H,L,O,S,aa,ka,na,za,Na,Pa,hb,ua,Ha,Ia,tb,rb;return z(function(dc){switch(dc.nextAddress){case 1:d=fIa(b);if(d.length===0)return dc.return();e=d.map(function(bc){return bc.issues.map(function(Ac){return Ac.parentId})}).flat();f=d.map(function(bc){return bc.newParentId});h=sj([].concat(p(e),p(f)));k=l(h);for(q=k.next();!q.done;q=k.next())v=q.value,
a.setIsSaving(v);Gf(dc,2);A=l(d);E=A.next();case 4:if(E.done){uu(dc,3);break}H=E.value;L=l(H.newRelations);O=L.next();S={};case 7:if(O.done){E=A.next();dc.jumpTo(4);break}S.newRelation=O.value;aa=H.issues.find(function(bc){return function(Ac){return Ac.issueId===bc.newRelation.targetIssueId}}(S)).parentId;return H.newParentId===aa?B(dc,Rf(a.issueRelationshipService.update(H.newParentId,"CHILD",{afterIssueId:S.newRelation.afterIssueId,targetIssueId:S.newRelation.targetIssueId})),8):B(dc,Rf(a.issueRelationshipService.create(H.newParentId,
"CHILD",{afterIssueId:S.newRelation.afterIssueId,targetIssueId:S.newRelation.targetIssueId})).catch(function(bc){var Ac,ic;if(!(bc==null?0:(Ac=bc.error)==null?0:(ic=Ac.details)==null?0:ic.includes("ALREADY_EXISTS")))throw bc;}),12);case 12:return B(dc,Rf(a.issueRelationshipService.delete(aa,"CHILD",S.newRelation.targetIssueId)),8);case 8:S={newRelation:void 0};O=L.next();dc.jumpTo(7);break;case 2:c=ka=Kf(dc);case 3:na=a.activeMoveOperation$.value;za=l(b.map(function(bc){return bc.eventTimestamps}).flat());
for(Na=za.next();!Na.done;Na=za.next())Pa=Na.value,na.delete(Pa);a.activeMoveOperation$.next(na);hb=l(h);for(ua=hb.next();!ua.done;ua=hb.next())Ha=ua.value,a.clearIsSaving(Ha);Promise.all(h.map(function(bc){return a.poke(bc)}));Ia=l(d);for(tb=Ia.next();!tb.done;tb=Ia.next())rb=tb.value,c&&rb.done.reject(c),rb.done.resolve();Lf(dc)}})});this.refreshMonitor.getObservable().subscribe(function(){a.invalidate()})};Y(jF,WA);
jF.prototype.fetchOne=function(a){var b=this;return wxc(this,function(){return b.issueRelationshipService.list(a,"CHILD").pipe(C(function(c){return{issueId:a,relatedChildren:c,totalChildCount:c.length}}),hg(function(c){return Qo(c)&&c.status===403?Nf(void 0):Of(function(){return c})}))})};
jF.prototype.fetchAll=function(a){var b=this;switch(a.type){case "descendants":var c,d=[].concat(p((c=a.ids)!=null?c:[]));return d.length===0?Nf({results:[]}):wxc(this,function(){return b.issueRelationshipService.getDescendants({issueIds:d,relationshipType:"CHILD",includeArchived:!!a.includeArchived,depthLimit:a.depth,prefixSizeLimit:500}).pipe(C(aIa),C(function(e){return{results:e}}))});default:pb(a.type)}};jF.prototype.copy=function(a){return a&&hj(a)};
var wxc=function(a,b){var c=function(){return a.activeMoveOperation$.pipe(eg(function(d){return d.size===0}),xg(function(){return b()}),xg(function(d){return a.activeMoveOperation$.value.size===0?Nf(d):c()}),mg(1))};return c()},xxc=function(a,b){return a.watch(b).pipe(xg(function(c){return c&&c.totalChildCount===c.relatedChildren.length?Nf(c):a.watch(b,{trustMemory:!1})}))},yxc=function(a,b,c){return a.watchMany({type:"descendants",ids:new Set([b]),depth:c===void 0?100:c})},zxc=function(a,b,c){return bqc(a,
{type:"descendants",ids:new Set([b]),depth:c===void 0?100:c})};
jF.prototype.unlinkFromParent=function(a,b,c){c=c===void 0?!1:c;var d=this,e;return z(function(f){switch(f.nextAddress){case 1:d.issueFullFridge.manualUpdate(b,function(h){--h.childIssueCount});d.issueFullFridge.manualUpdate(a,function(h){h.parentIssueIds=h.parentIssueIds.filter(function(k){return k!==b})});d.manualUpdate(b,function(h){var k=h.relatedChildren;h.relatedChildren=eIa(k,a);h.totalChildCount-=k.length-h.relatedChildren.length});if(c)return f.return();Gf(f,2);return B(f,Rf(d.issueRelationshipService.delete(b,
"CHILD",a)),4);case 4:uu(f,0);break;case 2:return e=Kf(f),B(f,Promise.all([d.poke(b),d.issueFullFridge.poke(b),d.issueFullFridge.poke(a)]),5);case 5:throw e;}})};
var vxc=function(a,b,c){var d,e,f,h,k,q,v,A,E;return z(function(H){switch(H.nextAddress){case 1:d=[];e=[];f=[];if(c.length===0)return H.return({added:d,notAdded:e});h=Axc(a,b);k=c.map(function(L,O){var S=L.afterIssueId==="-1"?h:L.afterIssueId;return{targetIssueId:L.issueId,afterIssueId:O?c[O-1].issueId:S}});Bxc(a,b,k);q=l(k);v=q.next();case 2:if(v.done){H.jumpTo(4);break}A=v.value;Gf(H,5);return B(H,Rf(a.issueRelationshipService.create(b,"CHILD",{targetIssueId:A.targetIssueId,afterIssueId:A.afterIssueId})),
7);case 7:d.push(A.targetIssueId);uu(H,3);break;case 5:E=Kf(H);if(!Qo(E))throw E;f.push(E);e.push(A.targetIssueId);case 3:v=q.next();H.jumpTo(2);break;case 4:return Promise.all([a.poke(b),a.issueFullFridge.poke(b)]),H.return(Object.assign({},{added:d,notAdded:e},f.length?{errors:f}:{}))}})},Bxc=function(a,b,c){var d=0;a.manualUpdate(b,function(e){var f=dIa(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})},Cxc=function(a,b,c){var d,e,f,h,k,q,v,A,E,H,L,O;return z(function(S){if(S.nextAddress==1)return d=[],e=[],f=[],c.length===0?S.return({added:d,notAdded:e}):B(S,Promise.allSettled(c.map(function(aa){return Rf(a.issueRelationshipService.create(aa,"CHILD",{targetIssueId:b,afterIssueId:Axc(a,aa)}))})),2);h=S.yieldResult;k=l(h.entries());for(q=k.next();!q.done;q=k.next())v=q.value,A=l(v),E=A.next().value,H=A.next().value,L=E,O=H,O.status==="fulfilled"&&
d.push(c[L]),O.status==="rejected"&&(e.push(c[L]),f.push(O.reason));Promise.all(c.map(function(aa){return a.poke(aa)}));return S.return({added:d,notAdded:e,errors:f})})},Dxc=function(a,b,c){var d=b.parentId,e=Date.now();a.activeMoveOperation$.next(a.activeMoveOperation$.value.add(e));for(var f=l(c),h=f.next(),k={};!h.done;k={issue$jscomp$73:void 0},h=f.next())k.issue$jscomp$73=h.value,a.manualUpdate(k.issue$jscomp$73.parentId,function(ka){return function(na){na.relatedChildren=eIa(na.relatedChildren,
ka.issue$jscomp$73.issueId);--na.totalChildCount}}(k));var q=void 0,v;if((v=b.position)==null?0:v.issueId){var A;if(((A=b.position)==null?void 0:A.position)==="after")q=b.position.issueId;else{var E;if(((E=b.position)==null?void 0:E.position)==="before"){var H,L;f=(L=(H=a.memory.getData(d))==null?void 0:H.relatedChildren)!=null?L:[];H=l(f.entries());for(L=H.next();!L.done;L=H.next())if(h=l(L.value),L=h.next().value,h=h.next().value,h.targetIssueId===b.position.issueId){b=void 0;q=(b=f[L-1])==null?
void 0:b.targetIssueId;break}}}}var O=c.map(function(ka,na){return{targetIssueId:ka.issueId,afterIssueId:na?c[na-1].issueId:q}});cqc(a,d)!==void 0?a.manualUpdate(d,function(ka){ka.relatedChildren=dIa(ka.relatedChildren,O);ka.totalChildCount+=O.length},{evenWhenInFlight:!0}):a.announce({issueId:d,relatedChildren:dIa([],O),totalChildCount:O.length});b=new Asa;var S,aa;a.moveChildrenInAPI({newParentId:d,newRelations:O,issues:c,eventTimestamps:[e],newParentChildrenSnapshot:(aa=(S=a.memory.getData(d))==
null?void 0:S.relatedChildren)!=null?aa:[],done:b});return b.promise},Axc=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};jF.\u0275fac=function(a){return new (a||jF)};jF.\u0275prov=Cd({token:jF,factory:jF.\u0275fac,providedIn:"root"});var Exc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Exc,n);var kF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(kF,n);g=kF.prototype;g.getTrackerId=function(){return xk(this,2)};g.getTrackerId_asLegacyNumberOrString=function(){return Um(this,2)};g.getTrackerId_asString=function(){return Bk(this,2)};g.setTrackerId=function(a){Ek(this,2,a)};g.setFilterSignalsList=function(a){return dp(this,3,a)};var Uo=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 Fxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Fxc,n);g=Fxc.prototype;g.getIterationId_asString=function(){return Bk(this,1)};g.getWorkspaceId=function(){return xk(this,2)};g.getWorkspaceId_asString=function(){return Bk(this,2)};g.getType=function(){return pk(this,3)};g.setType=function(a){return Jj(this,3,a)};g.getName=function(){return Rc(this,4)};g.setName=function(a){return Hj(this,4,a)};g.getHotlistId=function(){return xk(this,7)};
g.setHotlistId=function(a){return Xl(this,7,a)};g.getStatus=function(){return pk(this,8)};g.setStatus=function(a){return Jj(this,8,a)};g.getTagsList=function(a){return Fk(this,9,Bj(a))};g.getTags=function(a){return Lu(this,9,a)};g.setVelocity=function(a){return Im(this,11,a)};g.getStartTime=function(){return W(this,bk,12)};g.setStartTime=function(a){X(this,bk,12,a)};g.getEndTime=function(){return W(this,bk,13)};g.setEndTime=function(a){X(this,bk,13,a)};g.getEtag=function(){return Rc(this,18)};
g.setEtag=function(a){return Hj(this,18,a)};var lF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lF,n);lF.prototype.setContextsList=function(a){return dp(this,1,a)};lF.prototype.addContexts=function(a){return yc(this,1,zb,a,void 0,Ab)};var Gxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Gxc,n);var Hxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Hxc,n);var Ixc=function(a){var b=new Hxc;return Bm(b,1,a)};var mF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(mF,n);mF.prototype.getTitle=function(){return Rc(this,2)};mF.prototype.setTitle=function(a){return Hj(this,2,a)};var Jxc=function(a,b){return Hj(a,3,b)},Kxc=function(a,b){return Xl(a,4,b)},Lxc=function(a,b){return Hj(a,5,b)};mF.prototype.getClientId=function(){return Ej(this,6)};mF.prototype.setClientId=function(a){return Zj(this,6,a)};mF.prototype.getWorkspaceId=function(){return Rc(this,7)};var Mxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Mxc.messageId)};Y(Mxc,n);Mxc.prototype.setTaskIdsList=function(a){return Ij(this,1,a,Nc)};Mxc.messageId="mc.BatchUpdateTasksDismissStateRequest";var Nxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Nxc.messageId)};Y(Nxc,n);Nxc.prototype.setTaskIdsList=function(a){return Ij(this,1,a,Nc)};Nxc.messageId="mc.BatchUpdateTasksManualSignalStateRequest";var nF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,nF.messageId)};Y(nF,n);nF.prototype.setTaskIdsList=function(a){return Ij(this,1,a,Nc)};nF.prototype.setTaskStatus=function(a){return Jj(this,2,a,Nc)};nF.messageId="mc.BatchUpdateTaskSnoozeStateRequest";var Oxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Oxc,n);Oxc.prototype.setFilterSignalsList=function(a){return dp(this,1,a)};var Pxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Pxc,n);Pxc.prototype.setFilterSignalsList=function(a){return dp(this,1,a)};var Qxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Qxc,n);Qxc.prototype.setFilterSignalsList=function(a){return dp(this,1,a)};var Rxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Rxc,n);Rxc.prototype.getCommentId=function(){return Rc(this,2)};Rxc.prototype.setCommentId=function(a){return Hj(this,2,a)};var Sxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Sxc,n);Sxc.prototype.setTaskResourceTypesList=function(a){return dp(this,1,a)};Sxc.prototype.setMaxTaskAgeDays=function(a){return Zj(this,2,a)};Sxc.prototype.setIssueFilters=function(a){return X(this,kF,3,a)};var Txc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Txc,n);Txc.prototype.setFilterSignalsList=function(a){return dp(this,1,a)};var Uxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Uxc,n);Uxc.prototype.setFilterSignalsList=function(a){return dp(this,1,a)};var Vxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Vxc,n);Vxc.prototype.setTaskResourceTypesList=function(a){return dp(this,1,a)};Vxc.prototype.setMaxTaskAgeDays=function(a){return Zj(this,2,a)};Vxc.prototype.setIssueFilters=function(a){return X(this,kF,4,a)};var oF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(oF,n);oF.prototype.getId=function(){return Rc(this,1)};oF.prototype.setId=function(a){return Hj(this,1,a)};oF.prototype.getTitle=function(){return Rc(this,2)};oF.prototype.setTitle=function(a){return Hj(this,2,a)};var Wxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Wxc,n);var pF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,pF.messageId)};Y(pF,n);pF.prototype.getResponse=function(){return W(this,Wxc,1,Nc)};pF.prototype.setResponse=function(a){return X(this,Wxc,1,a,Nc)};pF.messageId="b.GetGoogleTasksTaskListsResponse";var qF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qF,n);qF.prototype.getCommentId=function(){return Rc(this,1)};qF.prototype.setCommentId=function(a){return Hj(this,1,a)};qF.prototype.getContent=function(){return Rc(this,3)};qF.prototype.setContent=function(a){return Hj(this,3,a)};var rF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,rF.messageId)};Y(rF,n);rF.prototype.getResponse=function(){return W(this,qF,1,Nc)};rF.prototype.setResponse=function(a){return X(this,qF,1,a,Nc)};rF.messageId="b.LatestDriveMentionResponse";var sF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(sF,n);sF.prototype.getCreatedTimestamp=function(){return xk(this,1)};sF.prototype.setOwnedByMe=function(a){return pm(this,3,a)};sF.prototype.getMimeType=function(){return Rc(this,15)};sF.prototype.setMimeType=function(a){Hj(this,15,a)};var Xxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Xxc,n);g=Xxc.prototype;g.setResourceId=function(a){Hj(this,17,a)};g.getTitle=function(){return Rc(this,2)};g.setTitle=function(a){return Hj(this,2,a)};g.getLastModifiedTimestamp=function(){return xk(this,3)};g.getIconName=function(){return Rc(this,10)};g.getExternalLink=function(){return Rc(this,16)};g.getIsDeleted=function(){return kk(this,19)};g.setIsDeleted=function(a){pm(this,19,a)};
g.getDriveResource=function(){return im(this,sF,5,Yxc)};g.hasDriveResource=function(){return vm(this,sF,5,Yxc)};var Yxc=[5,6,7,8,9,18,22,23,24];var tF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(tF,n);tF.prototype.getName=function(){return Rc(this,1)};tF.prototype.setName=function(a){return Hj(this,1,a)};tF.prototype.getContent=function(){return Rc(this,2)};tF.prototype.setContent=function(a){return Hj(this,2,a)};var Zxc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Zxc,n);g=Zxc.prototype;g.getTaskId=function(){return Rc(this,1)};g.setTaskStatus=function(a){return Jj(this,3,a)};g.getResource=function(){return W(this,Xxc,6)};g.setResource=function(a){return X(this,Xxc,6,a)};g.getNote=function(){return W(this,tF,22)};g.getCreatedTimestamp=function(){return xk(this,7)};var $xc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($xc,n);$xc.prototype.getTask=function(){return W(this,Zxc,1)};$xc.prototype.hasTask=function(){return tk(this,Zxc,1)};var uF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,uF.messageId)};Y(uF,n);uF.prototype.getResponse=function(){return W(this,$xc,1,Nc)};uF.prototype.setResponse=function(a){return X(this,$xc,1,a,Nc)};uF.messageId="b.TasksCreateGoogleTasksResponse";var ayc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ayc,n);var yIa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(yIa,n);g=yIa.prototype;g.getPriority=function(){return pk(this,1)};g.setPriority=function(a){return Jj(this,1,a)};g.getAccessLevel=function(){return pk(this,2)};g.setAccessLevel=function(a){return Jj(this,2,a)};g.getHotlistIdsList_asLegacyNumberOrString=function(a){return bp(this,3,Bj(a))};g.getHotlistIdsList_asString=function(){return Ck(this,3)};g.setHotlistIdsList=function(a){return ep(this,3,a)};
g.addHotlistIds=function(a,b){return Qu(this,3,a,b)};g.addAllHotlistIds=function(a){Ru(this,3,a)};g.removeHotlistIds=function(a){return Hec(this,3,a)};var vIa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(vIa,n);vIa.prototype.getCategory=function(){return pk(this,1)};vIa.prototype.setCategory=function(a){return Jj(this,1,a)};var sIa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(sIa,n);g=sIa.prototype;g.getTaskId=function(){return Rc(this,1)};g.getTitle=function(){return Rc(this,3)};g.setTitle=function(a){return Hj(this,3,a)};g.getCreatedTimestamp=function(){return W(this,bk,4)};g.getLastModifiedTimestamp=function(){return W(this,bk,5)};g.getExternalLink=function(){return Rc(this,6)};g.getDriveResource=function(){return im(this,ayc,8,zIa)};
g.hasDriveResource=function(){return vm(this,ayc,8,zIa)};var zIa=[8,9,10,11,12,16,17];var byc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(byc,n);var cyc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,cyc.messageId)};Y(cyc,n);cyc.prototype.getResponsesList=function(){return Sj(this,byc,1,Bj(),Nc)};cyc.messageId="b.TasksMyTasksResponse";var dyc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dyc,n);dyc.prototype.getCommentNumber=function(){return Ju(this,1)};dyc.prototype.setCommentNumber=function(a){return Gec(this,1,a)};var LIa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(LIa,n);var JIa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(JIa,n);g=JIa.prototype;g.getDataCase=function(){return Ml(this,MIa)};g.clearData=function(){return Aec(this,MIa)};g.getSignal=function(){return pk(this,1)};g.setSignal=function(a){return Jj(this,1,a)};g.getCommentNumbers=function(){return im(this,dyc,2,MIa)};var MIa=[2,3];var GIa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(GIa,n);GIa.prototype.getComeBackTimestamp=function(){return W(this,bk,1)};var IIa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(IIa,n);IIa.prototype.getComeBackTimestamp=function(){return W(this,bk,2)};var FIa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(FIa,n);FIa.prototype.hasFutureAvailability=function(){return vm(this,IIa,1,HIa)};var HIa=[1,2];var Wo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Wo,n);Wo.prototype.getDataCase=function(){return Ml(this,eyc)};Wo.prototype.clearData=function(){return Aec(this,eyc)};Wo.prototype.getSignal=function(){return pk(this,1)};Wo.prototype.setSignal=function(a){return Jj(this,1,a)};var eyc=[2,3];var BIa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(BIa,n);g=BIa.prototype;g.getDataCase=function(){return Ml(this,DIa)};g.clearData=function(){return Aec(this,DIa)};g.getSignal=function(){return pk(this,1)};g.setSignal=function(a){return Jj(this,1,a)};g.getCommentId=function(){return Ol(this,2,DIa)};g.setCommentId=function(a){return Rl(this,2,DIa,a)};var DIa=[2];var NIa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(NIa,n);NIa.prototype.getSignal=function(){return pk(this,1)};NIa.prototype.setSignal=function(a){return Jj(this,1,a)};var PIa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(PIa,n);PIa.prototype.getSignal=function(){return pk(this,1)};PIa.prototype.setSignal=function(a){return Jj(this,1,a)};var QIa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(QIa,n);QIa.prototype.getSignal=function(){return pk(this,1)};QIa.prototype.setSignal=function(a){return Jj(this,1,a)};var qIa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qIa,n);g=qIa.prototype;g.getTimestamp=function(){return W(this,bk,1)};g.setTimestamp=function(a){return X(this,bk,1,a)};g.hasTimestamp=function(){return tk(this,bk,1)};g.getUrl=function(){return W(this,HA,2)};g.setUrl=function(a){return X(this,HA,2,a)};g.hasUrl=function(){return tk(this,HA,2)};var To=[3,4,5,6,7,9,10];var mIa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(mIa,n);mIa.prototype.getTask=function(){return W(this,sIa,1)};mIa.prototype.hasTask=function(){return tk(this,sIa,1)};var fyc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(fyc,n);var gyc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,gyc.messageId)};Y(gyc,n);gyc.prototype.getResponsesList=function(){return Sj(this,fyc,1,Bj(),Nc)};gyc.messageId="b.TasksNeedsAttentionResponse";var hyc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hyc,n);hyc.prototype.getRationale=function(){return Rc(this,2)};var vF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(vF,n);vF.prototype.getValue=function(){return Ej(this,1)};vF.prototype.setValue=function(a){return Ok(this,1,a)};vF.prototype.hasValue=function(){return lk(this,1)};var wF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(wF,n);wF.prototype.getUrl=function(){return W(this,HA,2)};wF.prototype.setUrl=function(a){return X(this,HA,2,a)};wF.prototype.hasUrl=function(){return tk(this,HA,2)};var iIa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(iIa,n);g=iIa.prototype;g.getId=function(){return Rc(this,1)};g.setId=function(a){return Qk(this,1,a)};g.getTitle=function(){return Rc(this,2)};g.setTitle=function(a){return Qk(this,2,a)};g.getUrl=function(){return W(this,HA,3)};g.setUrl=function(a){return X(this,HA,3,a)};g.hasUrl=function(){return tk(this,HA,3)};g.getDescription=function(){return Rc(this,4)};g.setDescription=function(a){return Qk(this,4,a)};
g.hasDescription=function(){return mk(this,4)};g.getPriority=function(){return W(this,Exc,5)};g.setPriority=function(a){return X(this,Exc,5,a)};g.getScore=function(){return W(this,vF,6)};g.setScore=function(a){return X(this,vF,6,a)};g.getConfidence=function(){return W(this,hyc,10)};var iyc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(iyc,n);g=iyc.prototype;g.getId=function(){return Rc(this,1)};g.setId=function(a){return Qk(this,1,a)};g.getTitle=function(){return Rc(this,2)};g.setTitle=function(a){return Qk(this,2,a)};g.getUrl=function(){return W(this,HA,3)};g.setUrl=function(a){return X(this,HA,3,a)};g.hasUrl=function(){return tk(this,HA,3)};g.getDescription=function(){return Rc(this,4)};g.setDescription=function(a){return Qk(this,4,a)};
g.hasDescription=function(){return mk(this,4)};g.getPriority=function(){return W(this,Exc,5)};g.setPriority=function(a){return X(this,Exc,5,a)};g.getScore=function(){return W(this,vF,6)};g.setScore=function(a){return X(this,vF,6,a)};var kIa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(kIa,n);g=kIa.prototype;g.getUri=function(){return W(this,gz,1)};g.setUri=function(a){return X(this,gz,1,a)};g.getUrl=function(){return W(this,HA,2)};g.setUrl=function(a){return X(this,HA,2,a)};g.hasUrl=function(){return tk(this,HA,2)};g.getLabel=function(){return Rc(this,3)};g.setLabel=function(a){return Qk(this,3,a)};g.hasLabel=function(){return mk(this,3)};var gIa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gIa,n);g=gIa.prototype;g.getUri=function(){return W(this,gz,2)};g.setUri=function(a){return X(this,gz,2,a)};g.getObjective=function(){return W(this,iyc,1)};g.setObjective=function(a){return X(this,iyc,1,a)};g.getTeam=function(){return W(this,wF,3)};g.setTeam=function(a){X(this,wF,3,a)};g.hasTeam=function(){return tk(this,wF,3)};var jyc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(jyc,n);var xF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,xF.messageId)};Y(xF,n);xF.prototype.getResponse=function(){return W(this,jyc,1,Nc)};xF.prototype.setResponse=function(a){return X(this,jyc,1,a,Nc)};xF.messageId="b.TeamObjectivesResponse";var hJa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hJa,n);var kyc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(kyc,n);kyc.prototype.getIssue=function(){return W(this,oo,1)};kyc.prototype.setIssue=function(a){return X(this,oo,1,a)};var lyc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lyc,n);lyc.prototype.getIssue=function(){return im(this,kyc,1,myc)};lyc.prototype.setIssue=function(a){return nm(this,1,myc,a)};var myc=[1];var Xo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Xo,n);Xo.prototype.getId=function(){return Rc(this,1)};Xo.prototype.setId=function(a){return Hj(this,1,a)};Xo.prototype.getPayloadOrUndefined=function(){return Cec(this,lyc,9)};var yF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(yF,n);yF.prototype.getWorkspaceId=function(){return xk(this,1)};yF.prototype.getWorkspaceId_asString=function(){return Bk(this,1)};yF.prototype.getType=function(){return pk(this,2)};yF.prototype.setType=function(a){return Jj(this,2,a)};var nyc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(nyc,n);nyc.prototype.getTypedWorkspaceIdsList=function(){return Sj(this,yF,1,Bj())};nyc.prototype.getIterationIdsList_asString=function(){return Ck(this,2)};var oyc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(oyc,n);oyc.prototype.getEmail=function(){return Rc(this,1)};oyc.prototype.setEmail=function(a){return Hj(this,1,a)};var Zo=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Zo,n);Zo.prototype.getId=function(){return Rc(this,1)};Zo.prototype.setId=function(a){return Hj(this,1,a)};Zo.prototype.getVersion=function(){return Rc(this,2)};Zo.prototype.setVersion=function(a){return Hj(this,2,a)};var pyc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(pyc,n);g=pyc.prototype;g.getWorkspaceId=function(){return xk(this,1)};g.getWorkspaceId_asString=function(){return Bk(this,1)};g.getName=function(){return Rc(this,2)};g.setName=function(a){return Hj(this,2,a)};g.getTimeZone=function(){return W(this,Zo,8)};g.setTimeZone=function(a){return X(this,Zo,8,a)};g.hasTimeZone=function(){return tk(this,Zo,8)};g.getMembersList=function(){return Sj(this,oyc,9,Bj())};
g.setMembersList=function(a){return Bm(this,9,a)};g.getUpdateTime=function(){return W(this,bk,12)};g.setUpdateTime=function(a){X(this,bk,12,a)};g.hasUpdateTime=function(){return tk(this,bk,12)};g.getBookmarkGroupId=function(){return xk(this,14)};g.setBookmarkGroupId=function(a){return Xl(this,14,a)};g.getTeamId=function(){return Rc(this,20)};g.setTeamId=function(a){return Hj(this,20,a)};var qyc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qyc,n);qyc.prototype.getWorkspacesMap=function(){return uc(this,1,pyc,Vb)};qyc.prototype.getIterationsMap=function(){return uc(this,2,Fxc,Vb)};var gJa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gJa,n);g=gJa.prototype;g.getContextsMap=function(){return uc(this,1,nyc,Wb)};g.getData=function(){return W(this,qyc,2)};g.setData=function(a){return X(this,qyc,2,a)};g.clearData=function(){return Bu(this,2)};g.getFilter=function(){return W(this,lF,3)};g.setFilter=function(a){return X(this,lF,3,a)};var ryc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ryc,n);var zF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,zF.messageId)};Y(zF,n);zF.prototype.getResponse=function(){return W(this,ryc,1,Nc)};zF.prototype.setResponse=function(a){return X(this,ryc,1,a,Nc)};zF.messageId="b.WorkItemsResponse";var syc=[1,2],AF=function(){this.executor=r(PA);this.activeSession=r(Bs)},tyc=function(a,b,c){c=c===void 0?!0:c;b=(new Mxc).setTaskIdsList(b);c=pm(b,2,c,Nc);return a.executor.post({url:"action/tasks/dismiss",body:c,responseConstructor:null})},uyc=function(a,b,c){c=c===void 0?!0:c;b=(new Nxc).setTaskIdsList(b);c=pm(b,2,c,Nc);return a.executor.post({url:"action/tasks/manual_signal",body:c,responseConstructor:null})},vyc=function(a,b,c){b=(new nF).setTaskIdsList(b);if(c!==void 0){var d=b.setTaskStatus(2);
c=ck(c);X(d,bk,3,c,Nc)}else b.setTaskStatus(0);return a.executor.post({url:"action/tasks/snooze",body:b,responseConstructor:null})},wyc=function(a,b,c,d,e){b=(new Vxc).setTaskResourceTypesList(b.map(RIa));c=Jj(b,3,SIa(d)).setMaxTaskAgeDays(c);b=new kF;var f;d=(f=a.activeSession.getTracker())==null?void 0:f.trackerId;b.setTrackerId(d);c.setIssueFilters(b);b.setFilterSignalsList(e.buganizerSignals.map(VIa));var h=(new Pxc).setFilterSignalsList(e.driveSignals.map(XIa)),k=(new Oxc).setFilterSignalsList(e.changelistSignals.map(ZIa));
d=(new Qxc).setFilterSignalsList(e.gerritSignals.map(aJa));f=(new Txc).setFilterSignalsList(e.googleTasksSignals.map(bJa));b=c.setIssueFilters(b);b=X(b,Pxc,5,h);b=X(b,Oxc,6,k);d=X(b,Qxc,7,d);X(d,Txc,8,f);OA(a.activeSession,"enableIrmTasks")&&(e=(new Uxc).setFilterSignalsList(e.irmSignals.map(cJa)),X(c,Uxc,9,e));return a.executor.post({url:"action/tasks/needs_attention",responseConstructor:gyc,body:c}).pipe(C(oIa))},xyc=function(a,b,c,d){var e=new kF;d=Jj(e,1,TIa(d));var f;e=(f=a.activeSession.getTracker())==
null?void 0:f.trackerId;d.setTrackerId(e);b=(new Sxc).setTaskResourceTypesList(b.map(RIa)).setMaxTaskAgeDays(c).setIssueFilters(d);return a.executor.post({url:"action/tasks/my_tasks",responseConstructor:cyc,body:b}).pipe(C(tIa))},yyc=function(a,b){if(!b.length)return Nf([]);var c=new Gxc;b=Ij(c,1,b);c=(new lF).setContextsList(syc);b=X(b,lF,2,c);return a.executor.post({url:"action/work_items/batch_get_work_items",responseConstructor:zF,body:b}).pipe(C(iJa))},zyc=function(a,b){if(!b.length)return Nf([]);
b=b.map(function(c){return(new gz).setResourcePath(c)});b=Ixc(b);return a.executor.post({url:"action/okrs/batch_get_okrs",body:b,responseConstructor:xF}).pipe(C(lIa))};
AF.prototype.saveGTask=function(a){a=Kxc(Lxc(Jxc((new mF).setTitle(a.title),a.details),a.taskListId),a.dueDateMs);return this.executor.post({url:"action/tasks/create_gtask",body:a,responseConstructor:uF}).pipe(C(function(b){var c,d;b=(c=b.getResponse())==null?void 0:(d=c.getTask())==null?void 0:d.getTaskId();if(!b)throw Error("Ec");return b}))};
var Ayc=function(a){return a.executor.get({url:"action/tasks/get_gtask_task_lists",responseConstructor:pF}).pipe(C(function(b){var c,d;return((d=(c=b.getResponse())==null?void 0:Sj(c,oF,1,Bj()))!=null?d:[]).map(function(e){return{id:e.getId(),title:e.getTitle()}})}))};AF.\u0275fac=function(a){return new (a||AF)};AF.\u0275prov=Cd({token:AF,factory:AF.\u0275fac,providedIn:"root"});var Byc={sources:["CHANGELIST","DRIVE","ISSUE"],maxTaskAgeDays:30,issueFilter:"ISSUE_TYPE_GROUPS_UNSPECIFIED"},BF=function(){WA.call(this);this.api=r(AF);this.recordType="myTasks";this.idForRecord=function(a){return a.taskId};this.defaultQuery=Byc};Y(BF,WA);BF.prototype.fetchAll=function(a){return a.sources.length===0?Nf({results:[]}):xyc(this.api,a.sources,a.maxTaskAgeDays,a.issueFilter).pipe(C(function(b){b=b===void 0?[]:b;return{results:b}}))};BF.\u0275fac=function(a){return new (a||BF)};
BF.\u0275prov=Cd({token:BF,factory:BF.\u0275fac,providedIn:"root"});var xab=["assigned-to-me","recent-stuff-i-follow"],Cyc=["BUGANIZER","CRITIQUE","DRIVE"],Dyc=["BUGANIZER"],Eyc=["NON_WTDM","WTDM","CRITIQUE","DRIVE"],Fyc={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"}},Gyc={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"]},Hyc={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:[]},Iyc;Iyc={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 Jyc={sources:["CHANGELIST","DRIVE","ISSUE"],signalFilter:0,maxTaskAgeDays:30,filterSignals:Gyc},CF=function(){WA.call(this);this.api=r(AF);this.recordType="needsAttentionTask";this.idForRecord=function(a){return a.task.taskId};this.defaultQuery=Jyc};Y(CF,WA);CF.prototype.fetchAll=function(a){return a.sources.length===0?Nf({results:[]}):wyc(this.api,a.sources,a.maxTaskAgeDays,a.signalFilter,a.filterSignals).pipe(C(function(b){b=b===void 0?[]:b;return{results:b}}))};
CF.\u0275fac=function(a){return new (a||CF)};CF.\u0275prov=Cd({token:CF,factory:CF.\u0275fac,providedIn:"root"});var DF=function(){XA.call(this);this.userAccess=r(AD);this.recordType="permissions";this.idForRecord=function(a){return a.id}};Y(DF,XA);DF.prototype.fetchOne=function(a){return this.fetchSet([a]).pipe(C(function(b){return l(b).next().value}))};DF.prototype.fetchSet=function(a){var b=this;return Uf(a.map(function(c){return Yf(function(){return Auc(b.userAccess,c).then(function(d){return Object.assign({},d,{id:c})})})}))};DF.\u0275fac=function(a){return new (a||DF)};
DF.\u0275prov=Cd({token:DF,factory:DF.\u0275fac,providedIn:"root"});var jJa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(jJa,n);var Kyc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Kyc.messageId)};Y(Kyc,n);Kyc.messageId="b.PrincipalTypeInfoBatchResponse";var FF=function(){this.principalResources=r(EF);this.bulkApiAdapter=r(xD);this.principalTypeGetter=this.bulkApiAdapter.adapt(Lyc(this,!1));this.principalTypeWithDetailGetter=this.bulkApiAdapter.adapt(Lyc(this,!0))},Lyc=function(a,b){return function(c){return Myc(a.principalResources,c,b).then(function(d){return nJa(c,d)})}};FF.prototype.get=function(a){return GF(this,a,!1)};
var GF=function(a,b,c){return(c?a.principalTypeWithDetailGetter.get(b):a.principalTypeGetter.get(b)).then(function(d){return d!=null?d:oJa()})};FF.\u0275fac=function(a){return new (a||FF)};FF.\u0275prov=Cd({token:FF,factory:FF.\u0275fac,providedIn:"root"});
var EF=function(){this.executor=r(QA)},Myc=function(a,b,c){if(b.length===0)return Promise.resolve({});var d={};d.email=sj(b);c&&(d.includeDetailedUserType="true");return a.executor.get({url:"action/principal_types",options:{params:d},responseConstructor:Kyc}).then(mJa).then(function(e){for(var f={},h=l(b),k=h.next();!k.done;k=h.next()){k=k.value;var q=void 0;f[k]=(q=e[k])!=null?q:oJa()}return f})};EF.\u0275fac=function(a){return new (a||EF)};EF.\u0275prov=Cd({token:EF,factory:EF.\u0275fac,providedIn:"root"});var HF=function(){XA.call(this,{freshUntil:36E5,ancientAfter:864E5});this.principalTypesApi=r(FF);this.recordType="principalTypes";this.idForRecord=function(a){return a.email}};Y(HF,XA);HF.prototype.fetchOne=function(a){var b=this;return Yf(function(){return b.principalTypesApi.get(a)}).pipe(C(function(c){return Object.assign({},{email:a},c)}),hg(function(){return Nf(void 0)}))};HF.prototype.fetchSet=function(a){var b=this;return Uf(a.map(function(c){return b.fetchOne(c)})).pipe(C(function(c){return c.filter(Qj)}))};
HF.\u0275fac=function(a){return new (a||HF)};HF.\u0275prov=Cd({token:HF,factory:HF.\u0275fac,providedIn:"root"});var IF=function(){XA.call(this);this.api=r(RD);this.recordType="recentEventsForIssues";this.idForRecord=function(a){return a.id.query+"-"+a.id.pageSize}};Y(IF,XA);IF.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:$va(a==null?void 0:a.events,b==null?void 0:b.events)};
IF.prototype.fetchOne=function(a){var b=l(a.split("___")),c=b.next().value;b=b.next().value;Mj(b)||console.error("RecentEventsForIssuesFridge failed to parse maximumSize from query, using default. input: '"+a+"'");var d,e=(d=Mj(b))!=null?d:50;return Yuc(this.api,{query:c,maximumSize:e,minimumSignificance:"MAJOR"}).pipe(C(function(f){return{id:{query:c,pageSize:e},events:f}}))};IF.\u0275fac=function(a){return new (a||IF)};IF.\u0275prov=Cd({token:IF,factory:IF.\u0275fac,providedIn:"root"});var Nyc=["ASSIGNMENT","RESPONSE","CLOSURE"],Oyc=new Map([["ASSIGNMENT","Assignment"],["RESPONSE","Response"],["CLOSURE","Closure"]]),Pyc=new Map([["name","Name"],["description","Description"],["parentId","Parent ID"],["elements","SLO rules"]]),zFb=new Map([["DAY_TYPE_UNSPECIFIED","Calendar"],["CALENDAR","Calendar"],["BUSINESS","Business"]]);var $o=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($o,n);g=$o.prototype;g.getHours=function(){return Ej(this,1)};g.setHours=function(a){return Zj(this,1,a)};g.getMinutes=function(){return Ej(this,2)};g.setMinutes=function(a){return Zj(this,2,a)};g.getSeconds=function(){return Ej(this,3)};g.setSeconds=function(a){return Zj(this,3,a)};g.getNanos=function(){return Ej(this,4)};g.setNanos=function(a){return Zj(this,4,a)};var cp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(cp,n);g=cp.prototype;g.getId=function(){return xk(this,1)};g.getId_asLegacyNumberOrString=function(){return Um(this,1)};g.getId_asString=function(){return Bk(this,1)};g.setId=function(a){return Ek(this,1,a)};g.getFrequency=function(){return pk(this,3)};g.setFrequency=function(a){return Jj(this,3,a)};g.getOrdinal=function(){return Ej(this,4)};g.setOrdinal=function(a){return Zj(this,4,a)};
g.getTimeZone=function(){return W(this,Zo,5)};g.setTimeZone=function(a){return X(this,Zo,5,a)};g.hasTimeZone=function(){return tk(this,Zo,5)};g.getTimeOfDay=function(){return W(this,$o,6)};g.setTimeOfDay=function(a){return X(this,$o,6,a)};g.setDaysRemaining=function(a){return Im(this,7,a)};var Qyc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Qyc,n);g=Qyc.prototype;g.getTeamId=function(){return xk(this,1)};g.getTeamId_asLegacyNumberOrString=function(){return Um(this,1)};g.getTeamId_asString=function(){return Bk(this,1)};g.setTeamId=function(a){return Xl(this,1,a)};g.getEffectiveSloEditPolicy=function(){return pk(this,3)};var fp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,fp.messageId)};Y(fp,n);fp.prototype.getIt=function(){return W(this,gp,10,Nc)};fp.prototype.setIt=function(a){return X(this,gp,10,a,Nc)};fp.messageId="b.SloState";var Ryc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ryc,n);Ryc.prototype.getQuery=function(){return Rc(this,1)};Ryc.prototype.setQuery=function(a){return Hj(this,1,a)};Ryc.prototype.clearQuery=function(){Bu(this,1)};var ap=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ap,n);ap.prototype.getComponentId=function(){return xk(this,1)};ap.prototype.getComponentId_asString=function(){return Bk(this,1)};ap.prototype.setComponentId=function(a){return Xl(this,1,a)};ap.prototype.getEffectiveSloEditPolicy=function(){return pk(this,2)};var Syc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Syc.messageId)};Y(Syc,n);Syc.messageId="b.GetComponentSloEditPolicyResponse";var Tyc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Tyc.messageId)};Y(Tyc,n);Tyc.prototype.getTeamSloEditPolicy=function(){return W(this,Qyc,1,Nc)};Tyc.messageId="b.GetTeamSloEditPolicyResponse";var Uyc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Uyc,n);var JF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,JF.messageId)};Y(JF,n);JF.prototype.getIt=function(){return W(this,Uyc,1,Nc)};JF.prototype.setIt=function(a){return X(this,Uyc,1,a,Nc)};JF.messageId="b.ListSlosResponse";var Vyc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Vyc.messageId)};Y(Vyc,n);Vyc.prototype.getTeamSloEditPolicy=function(){return W(this,Qyc,1,Nc)};Vyc.messageId="b.UpdateTeamSloEditPolicyResponse";var KF=function(){this.activeSession=r(Bs);this.executor=r(PA)};g=KF.prototype;g.get=function(a){return this.executor.get({url:"action/slos/"+a,responseConstructor:fp}).pipe(C(zJa))};g.getOwnedSlos=function(){return this.search("owner:"+this.activeSession.getUserEmail()+" include_archived:true")};g.search=function(a){a=(new Ryc).setQuery(a);return this.executor.post({url:"action/listSlos",body:a,responseConstructor:JF}).pipe(C(function(b){b=b.getIt();b=Sj(b,gp,1,Bj());return(b!=null?b:[]).map(Lya)}))};
g.create=function(a){a=AJa(a);return this.executor.post({url:"action/slos",body:a,responseConstructor:fp}).pipe(C(zJa))};g.update=function(a){var b=a.sloId;a=AJa(a);return this.executor.post({url:"action/slos/"+b,body:a,responseConstructor:fp}).pipe(C(zJa))};KF.\u0275fac=function(a){return new (a||KF)};KF.\u0275prov=Cd({token:KF,factory:KF.\u0275fac,providedIn:"root"});
var LF=function(){this.observableSlosService=r(KF);var a=r(QC),b;this.slosCache=(b=a.get("slos-second-level-cache"))!=null?b:a.create("slos-second-level-cache",{capacity:25})};g=LF.prototype;g.get=function(a){var b=this.slosCache.get(a);return b!==void 0?b:this.slosCache.put(String(a),Rf(this.observableSlosService.get(a)))};g.getOwnedSlos=function(){return Rf(this.observableSlosService.getOwnedSlos())};g.search=function(a){return Rf(this.observableSlosService.search(a))};g.create=function(a){return Rf(this.observableSlosService.create(a))};
g.update=function(a){return Rf(this.observableSlosService.update(a))};LF.\u0275fac=function(a){return new (a||LF)};LF.\u0275prov=Cd({token:LF,factory:LF.\u0275fac,providedIn:"root"});var MF=function(){XA.call(this);this.observableSlosService=r(KF);this.recordType="slo";this.idForRecord=function(a){return a.sloId}};Y(MF,XA);g=MF.prototype;g.fetchOne=function(a){return this.observableSlosService.get(a)};g.getOwnedSlos=function(){return this.observableSlosService.getOwnedSlos()};g.search=function(a){return this.observableSlosService.search(a)};g.create=function(a){return this.observableSlosService.create(a)};g.update=function(a){return this.observableSlosService.update(a)};
MF.\u0275fac=function(a){return new (a||MF)};MF.\u0275prov=Cd({token:MF,factory:MF.\u0275fac,providedIn:"root"});var Wyc=function(a,b){this.rawGet=a;this.cacheSize=b;this.lruCache=new PC(this.cacheSize,!0,function(c,d){d.subscription.unsubscribe()})};Wyc.prototype.get=function(a){var b=this;return new Cf(function(c){var d=b.lruCache.get(a);d||(d=Xyc(b,a));return d.obs$.subscribe(c)})};
var Xyc=function(a,b){var c=a.rawGet(b).pipe(ug({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 Yyc(c,d);a.lruCache.set(b,c);return c},Yyc=function(a,b){this.obs$=a;this.subscription=b};var NF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,NF.messageId)};Y(NF,n);NF.prototype.getIt=function(){return W(this,uB,14,Nc)};NF.prototype.setIt=function(a){return X(this,uB,14,a,Nc)};NF.messageId="b.TeamState";var Zyc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Zyc,n);g=Zyc.prototype;g.getPathIdsList=function(){return Rj(this,1,1)};g.getPathIdsList_asString=function(){return Ck(this,1)};g.setPathIdsList=function(a){return vc(this,1,a,Hb)};g.getPathNamesList=function(a){return Aj(this,2,Bj(a))};g.setPathNamesList=function(a){return Ij(this,2,a)};g.getId=function(){return xk(this,3)};g.getId_asLegacyNumberOrString=function(){return Iu(this,3)};
g.getId_asString=function(){return sk(this,3)};g.setId=function(a){return Uk(this,3,a)};g.getName=function(){return Rc(this,4)};g.setName=function(a){return Qk(this,4,a)};g.hasName=function(){return mk(this,4)};g.getNameOrUndefined=function(){return Hu(this,4)};g.getDescription=function(){return Rc(this,5)};g.setDescription=function(a){return Qk(this,5,a)};g.hasDescription=function(){return mk(this,5)};var $yc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($yc,n);g=$yc.prototype;g.getId=function(){return xk(this,1)};g.getId_asLegacyNumberOrString=function(){return Iu(this,1)};g.getId_asString=function(){return sk(this,1)};g.setId=function(a){return Uk(this,1,a)};g.getName=function(){return Rc(this,2)};g.setName=function(a){return Qk(this,2,a)};g.hasName=function(){return mk(this,2)};g.getNameOrUndefined=function(){return Hu(this,2)};
g.getDescription=function(){return Rc(this,3)};g.setDescription=function(a){return Qk(this,3,a)};g.hasDescription=function(){return mk(this,3)};var azc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(azc,n);azc.prototype.setTeamIdsList=function(a){return ep(this,1,a)};azc.prototype.setView=function(a){return Jj(this,2,a)};var bzc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,bzc.messageId)};Y(bzc,n);bzc.prototype.setTeamIdsList=function(a){return vc(this,1,a,Hb,Nc)};bzc.messageId="b.BatchChildTeamsRequest";var czc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(czc,n);var dzc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,dzc.messageId)};Y(dzc,n);dzc.messageId="b.BatchChildTeamsResponse";var ezc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ezc,n);var fzc=function(a){return Sj(a,uB,1,Bj())};var OF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,OF.messageId)};Y(OF,n);OF.prototype.getIt=function(){return W(this,ezc,2,Nc)};OF.prototype.setIt=function(a){return X(this,ezc,2,a,Nc)};OF.messageId="b.BatchGetTeamsResponse";var PF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,PF.messageId)};Y(PF,n);PF.prototype.getTeamSuggestionsList=function(){return Sj(this,Zyc,1,Bj(),Nc)};PF.prototype.setTeamSuggestionsList=function(a){Bm(this,1,a,Nc)};PF.messageId="b.TeamSuggestionResult";var QF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,QF.messageId)};Y(QF,n);QF.prototype.getIt=function(){return W(this,qn,3,Nc)};QF.prototype.setIt=function(a){return X(this,qn,3,a,Nc)};QF.messageId="b.UpdateTeamSloRequest";var SF=function(){var a=this;this.executor=r(PA);this.teamsBatchApiConfig=r(RF);this.batchApiAdapter=r(tB);this.batchAdaptedGet=this.batchApiAdapter.adapt(this.teamsBatchApiConfig);this.memoizingTeamStateMap=new Wyc(function(b){return a.batchAdaptedGet(b)},100)};SF.prototype.get=function(a){return this.executor.get({url:"action/teams/"+a,responseConstructor:NF}).pipe(C(CJa))};SF.prototype.getTeam=function(a){return this.memoizingTeamStateMap.get(a)};
var UF=function(a,b){return a.getTeam(b).pipe(C(function(c){return c!=null?c:EJa(b)}),hg(function(){return Nf(EJa(b))}))},gzc=function(a,b){b=b.filter(function(c){return c!=="0"}).map(function(c){return a.getTeam(c)});return Zf(b).pipe(C(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}))};
SF.prototype.getChildTeams=function(a){a=(new bzc).setTeamIdsList(a);return this.executor.post({url:"action/child_teams",body:a,responseConstructor:dzc}).pipe(C(function(b){b=[].concat(p(uc(b,1,czc,Wb,Nc).entries()));return new Map(b.map(function(c){var d=l(c);c=d.next().value;d=d.next().value;d=Sj(d,$yc,1,Bj());return[c,d.map(BJa)]}))}))};
var VF=function(a,b){return a.executor.get({url:"action/suggest_teams",options:{params:{query:b}},responseConstructor:PF}).pipe(C(function(c){return c.getTeamSuggestionsList().map(DJa)}))},hzc=function(a,b){return a.executor.get({url:"action/teams/"+b+"/experiments",responseConstructor:pD}).pipe(C(zEa))},izc=function(a,b){a=a.executor;var c=a.post,d="action/teams/"+b.id+"/experiments",e=b.triage.map(LEa);b=(new pD).setId(b.id);b=bo(b,2,$n,e,Nc);return c.call(a,{url:d,body:b,responseConstructor:pD}).pipe(C(zEa))},
jzc=function(a,b,c){return b==="0"?Nf(!1):a.memoizingTeamStateMap.get(b).pipe(C(function(d){return(d==null?void 0:d.members.find(function(e){return e&&zj(e.user)===c}))!==void 0}))},kzc=function(a,b){b=(new azc).setTeamIdsList([].concat(p(b))).setView(2);return a.executor.post({url:"action/batchGetTeams",responseConstructor:OF,body:b}).pipe(C(function(c){return fzc(c.getIt())}),C(function(c){return new Map(c.map(function(d){var e,f;return[String(d.getId()),(f=Vc((e=W(d,pn,7))==null?void 0:xk(e,3)))!=
null?f:0]}))}))};
SF.prototype.updateTeam=function(a){var b=new NF,c=new uB,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(Mj).filter(Qj));d=Ij(f,5,a.collapsedPathNames).setMembersList((e=a.members)==null?void 0:e.map(TAa));pm(d,9,a.deleted);e=new pn;d=a.extra;e.setVersion(a.version).setSlo(UAa(a.slo)).setInheritEscalationOwner(!0);(d==null?0:d.escalationOwner)&&e.setEscalationOwner(Kj(d.escalationOwner));if(d==
null?0:d.defaultEscalationOwner)f=Kj(d.defaultEscalationOwner),X(e,Gj,7,f);if(d==null?0:d.escalationOwnerOverride)d.escalationOwnerOverride.emailAddress===""?(d=new Gqc,nm(e,10,QAa,d)):(d=Kj(d.escalationOwnerOverride),nm(e,9,QAa,d));X(c,pn,7,e);b.setIt(c);return this.executor.post({url:"action/teams/"+a.teamId,body:b,responseConstructor:NF}).pipe(C(CJa))};SF.\u0275fac=function(a){return new (a||SF)};SF.\u0275prov=Cd({token:SF,factory:SF.\u0275fac,providedIn:"root"});
var RF=function(){this.executor=r(PA)};RF.prototype.call=function(a){a=(new azc).setTeamIdsList([].concat(p(a))).setView(1);return this.executor.post({url:"action/batchGetTeams",responseConstructor:OF,body:a}).pipe(C(function(b){return fzc(b.getIt()).map(RAa)}),C(function(b){return oj(b,function(c){return c.teamId})}),hg(function(){return Nf(new Map)}))};RF.prototype.split=function(a,b){return b.get(a)};RF.\u0275fac=function(a){return new (a||RF)};RF.\u0275prov=Cd({token:RF,factory:RF.\u0275fac,providedIn:"root"});var WF=function(){WA.call(this);this.teamsApi=r(SF);this.defaultQuery={};this.recordType="TeamDigest";this.idForRecord=function(a){var b;return(b=a.teamId)!=null?b:"NO_ID"}};Y(WF,WA);WF.prototype.fetchAll=function(a){if(a.myTeams)return VF(this.teamsApi,"").pipe(C(function(b){b=b===void 0?[]:b;return{results:b}}));throw Error("Kc");};WF.\u0275fac=function(a){return new (a||WF)};WF.\u0275prov=Cd({token:WF,factory:WF.\u0275fac,providedIn:"root"});var XF=function(){XA.call(this,{freshUntil:6E4});this.activeSession=r(Bs);this.teamsApi=r(SF);this.recordType="team-experimental-fields";this.idForRecord=function(a){return a.id};this.isEqual=gj};Y(XF,XA);XF.prototype.fetchOne=function(a){var b=this;return OA(this.activeSession,"enableTeamScope")&&this.activeSession.isInternalSession()?Yf(function(){return hzc(b.teamsApi,a).pipe(C(function(c){return c!=null?c:{id:a,triage:[{id:0}]}}),hg(function(){return Nf(void 0)}))}):Nf(void 0)};
XF.prototype.fetchSet=function(a){var b=this;return Uf(a.map(function(c){return b.watch(c)})).pipe(C(function(c){return c.filter(Qj)}))};XF.prototype.copy=function(a){return a&&hj(a)};XF.\u0275fac=function(a){return new (a||XF)};XF.\u0275prov=Cd({token:XF,factory:XF.\u0275fac,providedIn:"root"});var YF=function(){XA.call(this);this.teamsApi=r(SF);this.recordType="team";this.idForRecord=function(a){return a.teamId}};Y(YF,XA);YF.prototype.fetchOne=function(a){return a==="0"?Nf(void 0):this.teamsApi.getTeam(a).pipe(hg(function(){return Nf(void 0)}))};YF.prototype.fetchSet=function(a){var b=this;return Uf(a.map(function(c){return b.fetchOne(c)})).pipe(C(function(c){return c.filter(Qj)}))};YF.\u0275fac=function(a){return new (a||YF)};YF.\u0275prov=Cd({token:YF,factory:YF.\u0275fac,providedIn:"root"});var lzc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lzc,n);lzc.prototype.setTrackerIdsList=function(a){return ep(this,1,a)};var mzc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(mzc,n);mzc.prototype.getTrackersList=function(){return Sj(this,FA,1,Bj())};var ZF=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,ZF.messageId)};Y(ZF,n);ZF.prototype.getIt=function(){return W(this,mzc,9,Nc)};ZF.prototype.setIt=function(a){return X(this,mzc,9,a,Nc)};ZF.messageId="b.BatchGetTrackersResponse";var $F=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($F,n);$F.prototype.getTrackersList=function(){return Sj(this,FA,1,Bj())};$F.prototype.getNextPageToken=function(){return Rc(this,2)};$F.prototype.getTotalSize=function(){return Ej(this,3)};var aG=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,aG.messageId)};Y(aG,n);aG.prototype.getIt=function(){return W(this,$F,4,Nc)};aG.prototype.setIt=function(a){return X(this,$F,4,a,Nc)};aG.messageId="b.ListTrackersResponse";var bG=function(){this.jspbExecutor=r(PA)};bG.prototype.get=function(a){return this.jspbExecutor.get({url:"action/trackers/"+a,responseConstructor:kl}).pipe(C(rta))};bG.prototype.batchGet=function(a){a=(new lzc).setTrackerIdsList(a);return this.jspbExecutor.post({url:"action/trackers/batch",responseConstructor:ZF,body:a}).pipe(C(sta))};
bG.prototype.query=function(a,b,c){return this.jspbExecutor.get({url:"action/trackers",responseConstructor:aG,options:{params:{query:a,pageSize:String(b),pageToken:c===void 0?"":c}}}).pipe(C(tta))};bG.\u0275fac=function(a){return new (a||bG)};bG.\u0275prov=Cd({token:bG,factory:bG.\u0275fac,providedIn:"root"});var cG=function(){XA.call(this,{freshUntil:36E5,ancientAfter:2592E5});this.trackerApi=r(bG);this.activeSession=r(Bs);this.recordType="tracker";this.idForRecord=function(a){return a.trackerId};nzc(this)};Y(cG,XA);var nzc=function(a){var b=a.activeSession.getTracker();b&&a.announce(b)};cG.prototype.fetchOne=function(a){return this.trackerApi.get(a)};cG.prototype.fetchSet=function(a){return this.trackerApi.batchGet(a)};
cG.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(C(function(d){var e;return{results:(e=d==null?void 0:d.trackers)!=null?e:[]}}))};cG.\u0275fac=function(a){return new (a||cG)};cG.\u0275prov=Cd({token:cG,factory:cG.\u0275fac,providedIn:"root"});var dG=function(){Z.apply(this,arguments);this.teamsService=r(SF);this.activeSession=r(Bs);this.teamMembers=new Map;this.teamChildren=new Map};Y(dG,Z);dG.\u0275dir=Z.\u0275dir;
var qzc=function(a,b,c){return OA(a.activeSession,"enableTeamScope")&&a.activeSession.isInternalSession()&&b&&c&&pl(c)?ozc(a,b).pipe(xg(function(d){return d.has(c)?Nf(!0):pzc(a,b).pipe(xg(function(e){return e.length===0?Nf(!1):Zf(e.map(function(f){return qzc(a,f,c)})).pipe(C(function(f){return f.some(Boolean)}))}))})):Nf(!1)},pzc=function(a,b){if(a.teamChildren.has(b))return a.teamChildren.get(b);var c=new sg(1);a.subscriptions.add(a.teamsService.getChildTeams([b]).pipe(C(function(d){var e,f;return(f=
(e=d.get(b))==null?void 0:e.map(function(h){return h.id}))!=null?f:[]})).subscribe(c));a.teamChildren.set(b,c);return c},ozc=function(a,b){if(a.teamMembers.has(b))return a.teamMembers.get(b);var c=new sg(1);a.subscriptions.add(a.teamsService.getTeam(b).pipe(C(function(d){var e;return(e=d==null?void 0:d.members)!=null?e:[]}),C(function(d){return d.map(function(e){return zj(e==null?void 0:e.user)}).filter(Qj)}),C(function(d){return new Set(d)})).subscribe(c));a.teamMembers.set(b,c);return c};
dG.\u0275fac=function(){var a;return function(b){return(a||(a=Re(dG)))(b||dG)}}();dG.\u0275prov=Cd({token:dG,factory:dG.\u0275fac,providedIn:"root"});var eG=function(){this.issueFridge=r(iE);this.issueExperimentalFieldsFridge=r(eE);this.activeSession=r(Bs);this.teamMembershipService=r(dG)},vzc=function(a,b,c){var d,e,f,h,k,q;z(function(v){switch(v.nextAddress){case 1:return B(v,a.issueFridge.poke(b),2);case 2:d=v.yieldResult;if(!d)return v.return();Gf(v,3);e=c.some(function(A){return["comment","attachments"].includes(A.fieldName)});if(!e){v.jumpTo(5);break}return B(v,rzc(a,d),5);case 5:if(OA(a.activeSession,"enableTriageAutomationBe"))return v.return();
f=c.some(function(A){return A.fieldName==="assignee"});if(!f){v.jumpTo(7);break}return B(v,szc(a,d),7);case 7:h=c.some(function(A){return A.fieldName==="status"});if(!h){v.jumpTo(9);break}return B(v,tzc(a,d),9);case 9:k=c.some(function(A){return A.fieldName==="changelists"||A.fieldName==="gerritChanges"});if(!k){v.jumpTo(11);break}return B(v,uzc(a,d),11);case 11:uu(v,0);break;case 3:q=Kf(v),console.error(q),Lf(v)}})},rzc=function(a,b){return z(function(c){return El(b)!=="NEW"||Fl(b)!=="NEEDS_INFO"||
a.activeSession.getUserEmail()!==zj(b.snapshot[0].reporterUser)?c.jumpTo(0):B(c,fE(a.issueExperimentalFieldsFridge,b.issueId,function(d){d.triage.subphase="REPORTER_RESPONDED"}),0)})},szc=function(a,b){var c,d;return z(function(e){switch(e.nextAddress){case 1:if(El(b)!=="NEW"||!b.snapshot[0].assigneeUser||a.activeSession.getUserEmail()===zj(b.snapshot[0].assigneeUser)||zj(b.snapshot[0].assigneeUser)!==zj(b.snapshot[0].reporterUser)){e.jumpTo(2);break}return B(e,fE(a.issueExperimentalFieldsFridge,
b.issueId,function(f){f.triage.subphase="NEEDS_INFO"}),2);case 2:if(El(b)!=="NEW"||Fl(b)!=="PENDING_TRIAGE"||zj(b.snapshot[0].assigneeUser)===zj(b.snapshot[0].reporterUser)||a.activeSession.getUserEmail()===zj(b.snapshot[0].assigneeUser)||(c=b.aggregatedData)==null||!c.teamId){e.jumpTo(4);break}return B(e,Rf(qzc(a.teamMembershipService,String(b.aggregatedData.teamId),a.activeSession.getUserEmail())),5);case 5:d=e.yieldResult;if(!d){e.jumpTo(4);break}return B(e,fE(a.issueExperimentalFieldsFridge,b.issueId,
function(f){f.triage.phase="CONFIRMED";f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),4);case 4:if(El(b)!=="NEW"||a.activeSession.getUserEmail()!==zj(b.snapshot[0].assigneeUser))e.jumpTo(0);else return B(e,fE(a.issueExperimentalFieldsFridge,b.issueId,function(f){f.triage.triagerEmail=a.activeSession.getUserEmail()}),0)}})},tzc=function(a,b){return z(function(c){return c.nextAddress==1?b.snapshot[0].status!=="ACCEPTED"?c.jumpTo(2):B(c,fE(a.issueExperimentalFieldsFridge,b.issueId,function(d){d.triage.phase=
"IN_PROGRESS";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):b.snapshot[0].status!=="NOT_REPRODUCIBLE"&&b.snapshot[0].status!=="INTENDED_BEHAVIOR"&&b.snapshot[0].status!=="OBSOLETE"&&b.snapshot[0].status!=="INFEASIBLE"?c.jumpTo(0):B(c,fE(a.issueExperimentalFieldsFridge,b.issueId,function(d){d.triage.phase="WONT_FIX";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),0)})},uzc=function(a,b){return z(function(c){return El(b)!=="NEW"&&El(b)!=="CONFIRMED"?c.jumpTo(0):B(c,fE(a.issueExperimentalFieldsFridge,
b.issueId,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),0)})};eG.\u0275fac=function(a){return new (a||eG)};eG.\u0275prov=Cd({token:eG,factory:eG.\u0275fac,providedIn:"root"});var fG=function(){Z.apply(this,arguments);var a=this;this.issueFridge=r(iE);this.teamFridge=r(YF);this.recentIssues$=Yf(function(){return a.issueFridge.watchMany({filter:"modified:60d (modifier:me | assignee:me)",pageSize:500})});this.recentTeamIds$=this.recentIssues$.pipe(C(function(b){return b.results}),C(function(b){return b.map(function(c){var d;return(d=c.aggregatedData)==null?void 0:d.teamId}).filter(Qj).filter(Boolean).map(String)}));this.mostActiveTeamIds$=this.recentTeamIds$.pipe(C(function(b){return Msa(b,
function(c){return c})}),C(function(b){return b.filter(function(c){return c.length>=2})}),C(function(b){return b.sort(function(c,d){return d.length-c.length})}),C(function(b){return b.map(function(c){return c[0]})}));this.mostActiveTeams$=this.mostActiveTeamIds$.pipe(xg(function(b){return a.teamFridge.watchSet(b).pipe(C(function(c){var d=oj(c,function(e){return e.teamId});return b.map(function(e){return{teamId:e,team:d.get(e)}})}))}),ug({refCount:!0,bufferSize:1}))};Y(fG,Z);fG.\u0275dir=Z.\u0275dir;
fG.\u0275fac=function(){var a;return function(b){return(a||(a=Re(fG)))(b||fG)}}();fG.\u0275prov=Cd({token:fG,factory:fG.\u0275fac,providedIn:"root"});var gG=function(){this.executor=r(PA)},wzc=function(a,b){return a.executor.post({url:"action/current_user/preferences",responseConstructor:Mk,body:Fua(b)}).pipe(C(function(c){return aua(c)}))};gG.\u0275fac=function(a){return new (a||gG)};gG.\u0275prov=Cd({token:gG,factory:gG.\u0275fac,providedIn:"root"});var iG=function(){var a=this;this.userPreferencesManagerBase=r(hG);this.activeSession=r(Bs);this.destroyed$=new sg(1);this.preferencesSubject$=this.userPreferencesManagerBase.preferences$;this.preferences$=this.preferencesSubject$.pipe(C(hj));this.textDisplayPreferences$=this.preferences$.pipe(C(function(b){return b.textDisplayPreferences||{}}));this.commentFormattingPreferences$=this.preferences$.pipe(C(function(b){return b.commentFormattingPreferences||{}}));this.isCfpCommentCreateOverrideSet$=
this.commentFormattingPreferences$.pipe(C(function(b){return b.commentCreateOverride==="LITERAL_FORMATTING_MODE"}),og());this.cfpLastPublishCommentFormattingMode$=this.commentFormattingPreferences$.pipe(C(function(b){return b.lastPublishMode}),og());this.cfpLastPublishFormattingMode$=this.cfpLastPublishCommentFormattingMode$.pipe(C(Tj));this.lastPublishOrUpdatedFormattingModeSubject$=FJa(this.cfpLastPublishFormattingMode$.pipe(yg(this.destroyed$)),"PLAIN");this.currentCommentFormattingMode$=Uf([this.isCfpCommentCreateOverrideSet$,
this.lastPublishOrUpdatedFormattingModeSubject$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b&&a.activeSession.isInternalSession()?"LITERAL":c}));this.currentCommentFormattingModeSubject$=FJa(this.currentCommentFormattingMode$.pipe(yg(this.destroyed$)),"UNSPECIFIED_FORMATTING_MODE");this.lastPublishMode$=this.textDisplayPreferences$.pipe(C(function(b){return b.lastPublishMode}),og());this.lastPublishModeProto$=this.lastPublishMode$.pipe(C(Tj));this.themePreferences$=this.preferences$.pipe(C(function(b){var c;
return(c=b.themePreferences)!=null?c:hj(GA.themePreferences)}),jp());this.listViewPreferences$=this.preferences$.pipe(C(function(b){var c;return(c=b.listViewPreferences)!=null?c:hj(GA.listViewPreferences)}),jp());this.layoutPreferences$=this.preferences$.pipe(C(function(b){return a.getLayoutPreferences(b)}),jp());this.dateTimePreferences$=this.preferences$.pipe(C(function(b){var c;return(c=b.dateTimePreferences)!=null?c:hj(GA.dateTimePreferences)}),jp());this.homepagePreferences$=this.preferences$.pipe(C(function(b){return a.getHomepagePreferences(b)}),
jp());this.keyboardPrefs$=this.preferences$.pipe(C(function(b){var c;return(c=b.keyboardPreferences)!=null?c:hj(GA.keyboardPreferences)}),jp());this.displayColumnsPreferences$=this.preferences$.pipe(C(function(b){var c,d;return(d=(c=b.displayColumns)==null?void 0:c.column)!=null?d:[]}),jp());this.sortColumnsPreferences$=this.preferences$.pipe(C(function(b){var c,d;return(d=(c=b.sortColumns)==null?void 0:c.column)!=null?d:[]}),jp());this.bugScreensaverPreferences$=this.preferences$.pipe(C(function(b){var c;
return(c=b.bugScreensaverPreferences)!=null?c:hj(GA.bugScreensaverPreferences)}),jp());this.teamWarningPreferences$=this.preferences$.pipe(C(function(b){var c;return(c=b.teamWarningPreferences)!=null?c:hj(GA.teamWarningPreferences)}),jp());this.commentFilterPreferences$=this.preferences$.pipe(C(function(b){var c;return(c=b.commentFilterPreferences)!=null?c:hj(GA.commentFilterPreferences)}),jp());this.codeFont$=this.preferences$.pipe(C(function(b){return!!b.useCodefont}),og());this.autoCcOnComment$=
this.preferences$.pipe(C(function(b){var c;return(c=b.autoCcOnComment)!=null?c:!1}),og());this.showFullHistory$=this.preferences$.pipe(C(function(b){return!!b.showFullHistory}),og());this.resultsPerPage$=this.preferences$.pipe(C(function(b){var c;return(c=b.resultsPerPage)!=null?c:GA.resultsPerPage}),og());this.showRecentEventsFirst$=this.preferences$.pipe(C(function(b){return!!b.showRecentEventsFirst}),og());this.showInlineImages$=this.preferences$.pipe(C(function(b){var c;return(c=b.showInlineImages)!=
null?c:GA.showInlineImages}),og())};iG.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};iG.prototype.save=function(a){return this.userPreferencesManagerBase.save(a)};
var xzc=function(a,b){b=Object.assign({},a.getLayoutPreferences(a.preferencesSubject$.value),b);return a.save({layoutPreferences:b}).pipe(C(a.getLayoutPreferences))},yzc=function(a,b){var c,d,e;return z(function(f){if(f.nextAddress==1)return b==="LITERAL"?f.jumpTo(0):B(f,Rf(a.preferences$),3);c=f.yieldResult;d=Object.assign({},c.textDisplayPreferences||{},{lastPublishMode:vta(b)});e=Object.assign({},c.commentFormattingPreferences||{},{lastPublishMode:vta(b)});return B(f,Rf(a.save({textDisplayPreferences:d,
commentFormattingPreferences:e})),0)})},zzc=function(a,b){return a.save({homepagePreferences:b}).pipe(C(a.getHomepagePreferences))};iG.prototype.getDateTimePreferences=function(){var a;return(a=(void 0).dateTimePreferences)!=null?a:hj(GA.dateTimePreferences)};var Azc=function(a,b){b=Object.assign({},a.preferencesSubject$.value.collapsed,b);return a.save({collapsed:b})},Bzc=function(a,b){var c;return(c=a.preferencesSubject$.value.collapsed)==null?void 0:c[b]};
iG.prototype.saveResultsPerPage=function(a){return this.save({resultsPerPage:a}).pipe(C(function(b){var c;return(c=b.resultsPerPage)!=null?c:GA.resultsPerPage}))};var Czc=function(a,b){return a.save({displayColumns:{column:b}}).pipe(C(function(c){var d,e;return(e=(d=c.displayColumns)==null?void 0:d.column)!=null?e:[]}))};iG.prototype.saveSortColumns=function(a){return this.save({sortColumns:{column:a}}).pipe(C(function(b){var c,d;return(d=(c=b.sortColumns)==null?void 0:c.column)!=null?d:[]}))};
var Dzc=function(a,b){return a.save({teamWarningPreferences:b}).pipe(C(function(c){var d;return(d=c.teamWarningPreferences)!=null?d:hj(GA.teamWarningPreferences)}))};iG.prototype.getLayoutPreferences=function(a){var b;return(b=a.layoutPreferences)!=null?b:hj(GA.layoutPreferences)};iG.prototype.getHomepagePreferences=function(a){var b;return(b=a.homepagePreferences)!=null?b:hj(GA.homepagePreferences)};var jG=function(a){return hj(a.preferencesSubject$.getValue())};
iG.\u0275fac=function(a){return new (a||iG)};iG.\u0275prov=Cd({token:iG,factory:iG.\u0275fac,providedIn:"root"});var hG=function(){this.activeSession=r(Bs);this.userPreferencesResources=r(gG);this.preferences$=new Kn(hj(GA));var a=this.preferences$.value,b=this.activeSession.getUserPreferences();b&&(a=Object.assign({},a,b),Ezc(a));this.preferences$.next(a)};
hG.prototype.save=function(a){var b=this;return this.activeSession.isAnonymous()?Nf(Fzc(this,a)):wzc(this.userPreferencesResources,a).pipe(C(function(){return Fzc(b,a)}))};
var Fzc=function(a,b){var c=hj(a.preferences$.value);c=Object.assign({},c,b);Ezc(c);a.preferences$.next(c);return c},Ezc=function(a){a.dateTimePreferences&&(a.dateTimePreferences.calendarFormat||(a.dateTimePreferences.calendarFormat=GA.dateTimePreferences.calendarFormat),a.dateTimePreferences.timeFormat||(a.dateTimePreferences.timeFormat=GA.dateTimePreferences.timeFormat),a.dateTimePreferences.sloEtaViewAs||(a.dateTimePreferences.sloEtaViewAs=GA.dateTimePreferences.sloEtaViewAs));!a.notificationPreferences||
a.notificationPreferences.collaboratorPriority&&a.notificationPreferences.collaboratorPriority!=="UNKNOWN_PRIORITY"||(a.notificationPreferences.collaboratorPriority=GA.notificationPreferences.collaboratorPriority)};hG.\u0275fac=function(a){return new (a||hG)};hG.\u0275prov=Cd({token:hG,factory:hG.\u0275fac,providedIn:"root"});var kG=function(){var a=this;this.teamFridge=r(YF);this.userPrefsManager=r(iG);this.teamUserActivity=r(fG);this.activeSession=r(Bs);this.destroyRef=r(Gg);this.enableTeamScope=OA(this.activeSession,"enableTeamScope")&&this.activeSession.isInternalSession();this.scopePrefs$=this.userPrefsManager.preferences$.pipe(C(function(b){var c;return(c=b==null?void 0:b.scopePreferences)!=null?c:{starredTeams:[],starredTriageViews:[]}}));this.starredTeamIds$=this.scopePrefs$.pipe(C(function(b){return b.starredTeams}));
this.starredTeamIds$.pipe(C(function(b){return b.map(function(c){var d=a.teamFridge.watch(c);return{teamId:c,name$:d.pipe(C(function(e){return(e==null?void 0:e.name)||c})),team$:d}})}));this.starredTriageViews$=this.scopePrefs$.pipe(C(function(b){return b.starredTriageViews}));this.starredTriageViews$.pipe(C(function(b){return b.map(function(c){return c})}));this.starredTeamIds=[];this.starredTriageViews=[];Gzc(this);this.starredTeamIds$.pipe(lp(this.destroyRef)).subscribe(function(b){a.starredTeamIds=
b});this.starredTriageViews$.pipe(lp(this.destroyRef)).subscribe(function(b){a.starredTriageViews=b})},Gzc=function(a){var b,c,d,e;z(function(f){switch(f.nextAddress){case 1:return a.enableTeamScope?B(f,Rf(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 B(f,a.save({lastAutomaticStarsUpdate:Eta(Date.now())}),4);case 4:return f.return();case 3:return B(f,Rf(a.teamUserActivity.mostActiveTeams$),5);
case 5:return c=f.yieldResult,d=c.slice(0,3).map(function(h){return h.teamId}),e=d.map(function(h){return{teamId:h,triageId:"0"}}),B(f,a.save({lastAutomaticStarsUpdate:Eta(Date.now()),starredTeams:d,starredTriageViews:e}),0)}})};kG.prototype.save=function(a){var b=this,c;return z(function(d){if(d.nextAddress==1)return B(d,Rf(b.scopePrefs$),2);c=d.yieldResult;return B(d,Rf(b.userPrefsManager.save({scopePreferences:Object.assign({},c,a)})),0)})};
kG.prototype.toggle=function(a){return this.starredTeamIds.includes(a)?this.save({starredTeams:this.starredTeamIds.filter(function(b){return b!==a})}):this.save({starredTeams:[].concat(p(this.starredTeamIds),[a])})};kG.prototype.reset=function(){var a=this;return z(function(b){return B(b,a.save({lastAutomaticStarsUpdate:void 0,starredTeams:[]}),0)})};
var Hzc=function(a,b,c){if(a.starredTriageViews.some(function(e){return e.triageId===b&&e.teamId===c})){var d=[].concat(p(a.starredTriageViews)).filter(function(e){return e.triageId!==b||e.teamId!==c});return a.save({starredTriageViews:d})}return a.save({starredTriageViews:[].concat(p(a.starredTriageViews),[{teamId:c,triageId:b}])})};kG.\u0275fac=function(a){return new (a||kG)};kG.\u0275prov=Cd({token:kG,factory:kG.\u0275fac,providedIn:"root"});var Izc={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"},Jzc={key:"SET_NEEDS_INFO",displayAs:"Needs more info",fieldsToShow:["ASSIGNEE","CUSTOM_FIELDS","COMMENT"]},Kzc={key:"SET_CONFIRMED",
displayAs:"Confirmed",fieldsToShow:"COMMENT SEVERITY PRIORITY TYPE HOTLISTS ASSIGNEE COLLABORATORS CC_LIST CUSTOM_FIELDS".split(" ")},Lzc={key:"SET_PENDING_OWNER",displayAs:"Pending owner",fieldsToShow:["COMMENT"]},Mzc={key:"SET_IN_PROGRESS",displayAs:"In progress",fieldsToShow:["COMMENT","SEVERITY","PRIORITY","TYPE","ASSIGNEE"],showAssignToSelf:!0},Nzc={key:"SET_EXPECTED",displayAs:"Expected",fieldsToShow:["COMMENT"],showAssignToSelf:!0},Ozc={key:"SET_PLANNED",displayAs:"Planned",fieldsToShow:["COMMENT"],
showAssignToSelf:!0},Pzc={key:"SET_COMMITTED",displayAs:"Committed",fieldsToShow:["COMMENT"],showAssignToSelf:!0},Qzc={key:"SET_WONT_FIX",displayAs:"Won't fix",fieldsToShow:["STATUS","COMMENT"],automaticChanges:[{field:"STATUS",value:"INTENDED_BEHAVIOR"}]},Rzc={key:"SET_NEW",displayAs:"New",fieldsToShow:["CUSTOM_FIELDS","STATUS","COMMENT"],automaticChanges:[{field:"STATUS",value:"NEW"}]},Szc={key:"SET_FIXED",displayAs:"Fixed",fieldsToShow:["COMMENT","STATUS","CODE_CHANGES"],automaticChanges:[{field:"STATUS",
value:"FIXED"}]},Tzc={key:"CHANGE_COMPONENT",displayAs:"Route",fieldsToShow:["COMMENT","COMPONENT","HOTLISTS","ASSIGNEE"]},Uzc=new Map([["NEW",[Tzc,{key:"MARK_AS_DUPLICATE",displayAs:"Mark as duplicate"}]],["CONFIRMED",[]],["IN_PROGRESS",[]],["FIXED",[]],["WONT_FIX",[]]]);var lG={displayAs:"Open",queryAtom:"status:open",tooltip:'Issues that match "status:open"'};var Wzc=function(a,b,c,d,e,f){var h=this;this.teamId=a;this.triageId=b;this.teamFridge=c;this.issueFullFridge=d;this.issueFridge=e;this.teamExperimentalFieldsFridge=f;this.isLoading$=new Kn(!1);this.setLoading=function(){h.isLoading$.next(!0)};this.setNotLoading=function(){h.isLoading$.next(!1)};this.team$=Yf(function(){return Nf(h.teamId)}).pipe(zg(this.setLoading),xg(function(k){return h.teamFridge.watch(k)}),zg(this.setNotLoading),ug({refCount:!0,bufferSize:1}));this.teamName$=this.team$.pipe(C(function(k){return(k==
null?void 0:k.name)||h.teamId}));this.teamExperiments$=Yf(function(){return Nf(h.teamId)}).pipe(zg(this.setLoading),xg(function(k){return h.teamExperimentalFieldsFridge.watch(k)}),zg(this.setNotLoading),ug({refCount:!0,bufferSize:1}));this.triageScope$=this.teamExperiments$.pipe(C(function(k){var q,v;return(k==null?void 0:(q=k.triage.find(function(A){return A.id===Number(h.triageId)}))==null?void 0:(v=q.scope)==null?void 0:v.trim())||"teamid:"+h.teamId+"+"}),ug({refCount:!0,bufferSize:1}));this.teamTriageViewExperiments$=
this.teamExperiments$.pipe(C(function(k){return k==null?void 0:k.triage.find(function(q){return""+q.id===h.triageId})}));this.triageFieldConfigs$=this.teamTriageViewExperiments$.pipe(C(function(k){var q;return(q=k==null?void 0:k.config)!=null?q:[]}));this.byPhase=new Map(Aoc.map(function(k){return[k,Vzc(h,k)]}));this.allIssues$=Uf([].concat(p(this.byPhase.values())).map(function(k){return k.issues$})).pipe(C(function(k){return k.flat()}),C(function(k){return rj(k,function(q){return q.issueId})}),
ug({refCount:!0,bufferSize:1}));this.triageName$=Uf([this.teamName$,this.teamExperiments$]).pipe(C(function(k){var q=l(k);k=q.next().value;q=q.next().value;q=q==null?void 0:q.triage.find(function(v){return v.id===Number(h.triageId)});return mp(k,q)}))};Wzc.prototype.phase=function(a){return this.byPhase.get(a)};
var Vzc=function(a,b){var c=a.triageScope$.pipe(C(function(q){q=op(q,"modified:365d");q=op(q,"-status:duplicate");switch(b){case "NEW":case "CONFIRMED":case "IN_PROGRESS":q=op(q,"status:open")}return[q,b].join("____b-internal____")}),og()),d=c.pipe(C(KJa),zg(a.setLoading),xg(function(q){return a.issueFridge.watchMany(q)}),zg(a.setNotLoading),ug({refCount:!0,bufferSize:1})),e=d.pipe(C(function(q){return q.results}),C(function(q){return q.map(function(v){return v.issueId})}),og(gj)).pipe(xg(function(q){return q.length?
Uf(q.map(function(v){return a.issueFridge.watch(v)})):Nf([])}));d=d.pipe(C(function(q){var v;return(v=q.totalSize)!=null?v:0}));e=e.pipe(C(function(q){return LJa(q,b)}),ug({refCount:!0,bufferSize:1}));var f=e.pipe(C(function(q){return Psa(q).length})),h=Uf([e,f,epc]).pipe(C(function(q){var v=l(q);q=v.next().value;v=v.next().value;return oxa(q,Lob.get(b)).length+v}),C(function(q){return q===0?"":q>=250?"250+":""+q}));d=Uf([d,f]).pipe(C(function(q){var v=l(q);q=v.next().value;v=v.next().value;return q+
v}));var k;return{phase:b,displayName:(k=lr.get(b))!=null?k:"",query$:c,issues$:e,attentionCount$:h,totalCount$:d}};
Wzc.prototype.reload=function(){var a=this,b;return z(function(c){if(c.nextAddress==1)return a.setLoading(),B(c,Promise.all(sj([].concat(p(a.byPhase.values())).map(function(d){return ip(d.query$)})).map(function(d){return bqc(a.issueFridge,KJa(d))})),2);if(c.nextAddress!=3)return b=c.yieldResult,B(c,Promise.all(sj(b.flatMap(function(d){return d.results}).map(function(d){return d.issueId})).map(function(d){return a.issueFullFridge.poke(d)})),3);a.setNotLoading();Lf(c)})};
var Xzc=function(a,b,c){return a.triageFieldConfigs$.pipe(C(function(d){d=d||[];var e=[];d=l(d);for(var f=d.next();!f.done;f=d.next())if(f=f.value,f.type==="CUSTOM_FIELD"){f=f.customFieldConfig;var h=f.defaultValues.find(function(k){var q;if(b&&((q=k.phases)==null||!q.includes(b)))return!1;var v;return!c||(v=k.subphases)!=null&&v.includes(c)?!0:!1});h&&e.push({customFieldId:f.customFieldId,defaultValues:[h]})}return e}))},Yzc=function(a,b,c){return a.triageFieldConfigs$.pipe(C(function(d){var e=[];
d=l(d);for(var f=d.next();!f.done;f=d.next())if(f=f.value,f.type==="HOTLIST"){f=f.hotlistConfig;var h=void 0;if(!b||(h=f.phases)!=null&&h.includes(b))h=void 0,(!c||(h=f.subphases)!=null&&h.includes(c))&&e.push(f)}return e}))},mG=function(){this.teamFridge=r(YF);this.issueFullFridge=r(TE);this.issueFridge=r(iE);this.teamExperimentalFieldsFridge=r(XF);this.cache=new Map};mG.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)};
mG.prototype.create=function(a,b){return new Wzc(a,b,this.teamFridge,this.issueFullFridge,this.issueFridge,this.teamExperimentalFieldsFridge)};mG.\u0275fac=function(a){return new (a||mG)};mG.\u0275prov=Cd({token:mG,factory:mG.\u0275fac,providedIn:"root"});var nG=function(){this.triageDataFactory=r(mG);this.isSidebarOpen$=new Kn(!1);this.internalCurrentIssueIds$=new Kn([]);this.currentIssueIds$=this.internalCurrentIssueIds$.pipe(og(gj));this.currentIssueId$=this.currentIssueIds$.pipe(C(function(a){return a[0]}),og());this.internalSelectedIssueIds$=new Kn([]);this.selectedIssueIds$=this.internalSelectedIssueIds$.pipe(og(gj));this.mode=0};nG.prototype.openSidebar=function(){this.isSidebarOpen$.next(!0)};nG.prototype.closeSidebar=function(){this.isSidebarOpen$.next(!1)};
nG.prototype.setIssueIds=function(a){this.internalCurrentIssueIds$.next(a);this.internalSelectedIssueIds$.next([])};nG.prototype.setMode=function(a){this.mode=a};nG.\u0275fac=function(a){return new (a||nG)};nG.\u0275prov=Cd({token:nG,factory:nG.\u0275fac,providedIn:"root"});var Zzc={ACTIVATION:0,SELECTION:1,0:"ACTIVATION",1:"SELECTION"};var $zc=new le("GMAT_BUTTON_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var oG=function(a,b){this.elementRef=a;this.options=b;if(b.disableGmatStyle)throw Error("Mc");};oG.prototype.ngOnInit=function(){var a=this.elementRef.nativeElement;a.querySelector(".mat-icon, .material-icons")&&a.classList.add("gmat-mdc-button-with-prefix")};oG.\u0275fac=function(a){return new (a||oG)(of(Te),of($zc))};
oG.\u0275dir=vf({type:oG,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 aAc=new le("GMAT_MENU_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var pG=function(){this.gmatOptions=r(aAc)},bAc=function(a,b){if(a.gmatOptions.disableGmatStyle)throw Error("Mc");b&&(b.overlayPanelClass=oi(b.overlayPanelClass||[]).concat("gmat-mdc-menu"))};nd.Object.defineProperties(pG.prototype,{deprecatedPanel:{configurable:!0,enumerable:!0,set:function(a){bAc(this,a)}},panel:{configurable:!0,enumerable:!0,set:function(a){bAc(this,a)}}});pG.\u0275fac=function(a){return new (a||pG)};
pG.\u0275dir=vf({type:pG,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],inputs:{deprecatedPanel:[0,"mat-menu-trigger-for","deprecatedPanel"],panel:[0,"matMenuTriggerFor","panel"]},standalone:!1});var cAc=new le("MAT_MENU_PANEL");var dAc=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],qG=function(){this._elementRef=r(Te);this._document=r(ui);this._focusMonitor=r(jw);this._parentMenu=r(cAc,{optional:!0});this._changeDetectorRef=r(Hv);this.role="menuitem";this.disableRipple=this.disabled=!1;this._hovered=new tg;this._focused=new tg;this._triggersSubmenu=this._highlighted=!1;r(Di).load(wx);var a,b;(a=this._parentMenu)==null||(b=a.addItem)==null||b.call(a,this)};g=qG.prototype;
g.focus=function(a,b){this._focusMonitor&&a?kw(this._focusMonitor,this._getHostElement(),a,b):this._getHostElement().focus(b);this._focused.next(this)};g.ngAfterViewInit=function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)};g.ngOnDestroy=function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef);this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this);this._hovered.complete();this._focused.complete()};
g._getTabIndex=function(){return this.disabled?"-1":"0"};g._getHostElement=function(){return this._elementRef.nativeElement};g._checkDisabled=function(a){this.disabled&&(a.preventDefault(),a.stopPropagation())};g._handleMouseEnter=function(){this._hovered.next(this)};g.getLabel=function(){for(var a=this._elementRef.nativeElement.cloneNode(!0),b=a.querySelectorAll("mat-icon, .material-icons"),c=0;c<b.length;c++)b[c].remove();var d;return((d=a.textContent)==null?void 0:d.trim())||""};
g._setHighlighted=function(a){this._highlighted=a;this._changeDetectorRef.markForCheck()};g._setTriggersSubmenu=function(a){this._triggersSubmenu=a;this._changeDetectorRef.markForCheck()};g._hasFocus=function(){return this._document&&this._document.activeElement===this._getHostElement()};qG.\u0275fac=function(a){return new (a||qG)};
qG.\u0275cmp=y({type:qG,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&&(Lg("role",b.role)("tabindex",b._getTabIndex())("aria-disabled",b.disabled)("disabled",b.disabled||null),uh("mat-mdc-menu-item-highlighted",b._highlighted)("mat-mdc-menu-item-submenu-trigger",b._triggersSubmenu))},inputs:{role:"role",
disabled:[2,"disabled","disabled",$h],disableRipple:[2,"disableRipple","disableRipple",$h]},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&&(ch(dAc),dh(0),J(1,
"span",0),dh(2,1),K(),M(3,"div",1),F(4,MJa,2,0,":svg:svg",2));a&2&&(x(3),I("matRippleDisabled",b.disableRipple||b.disabled)("matRippleTrigger",b._getHostElement()),x(),G(b._triggersSubmenu?4:-1))},dependencies:[zx],encapsulation:2,changeDetection:0});var eAc=new le("MatMenuContent"),rG=function(){this._template=r(eh);this._appRef=r(Wh);this._injector=r(Cg);this._viewContainerRef=r(fh);this._document=r(ui);this._changeDetectorRef=r(Hv);this._attached=new tg};
rG.prototype.attach=function(a){a=a===void 0?{}:a;this._portal||(this._portal=new gx(this._template,this._viewContainerRef));this.detach();this._outlet||(this._outlet=new Hi(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()};
rG.prototype.detach=function(){var a;((a=this._portal)==null?0:a.isAttached)&&this._portal.detach()};rG.prototype.ngOnDestroy=function(){this.detach();var a;(a=this._outlet)==null||a.dispose()};rG.\u0275fac=function(a){return new (a||rG)};rG.\u0275dir=vf({type:rG,selectors:[["ng-template","matMenuContent",""]],features:[Fh([{provide:eAc,useExisting:rG}])]});var fAc=new le("mat-menu-default-options",{providedIn:"root",factory:OJa}),sG=function(){this._elementRef=r(Te);this._changeDetectorRef=r(Hv);this._injector=r(Cg);this._animationsDisabled=Ri();this._directDescendantItems=new gh;this._classList={};this._panelAnimationState="void";this._animationDone=new tg;this._isAnimating=!1;this.close=this.closed=new nq;this.panelId=r(Fi).getId("mat-menu-panel-");var a=r(fAc);this.overlayPanelClass=a.overlayPanelClass||"";this._xPosition=a.xPosition;this._yPosition=
a.yPosition;this.backdropClass=a.backdropClass;this.overlapTrigger=a.overlapTrigger;this.hasBackdrop=a.hasBackdrop};g=sG.prototype;g.ngOnInit=function(){this.setPositionClasses()};
g.ngAfterContentInit=function(){var a=this;this._updateDirectDescendants();this._keyManager=Lw(ajc(Iw(new Ow(this._directDescendantItems))));this._keyManager.tabOut.subscribe(function(){return a.closed.emit("tab")});this._directDescendantItems.changes.pipe(wg(this._directDescendantItems),xg(function(b){return dg.apply(null,p(b.map(function(c){return c._focused})))})).subscribe(function(b){return Mw(a._keyManager,b)});this._directDescendantItems.changes.subscribe(function(b){var c=a._keyManager,d;
a._panelAnimationState==="enter"&&((d=c.activeItem)==null?0:d._hasFocus())&&(b=b.toArray(),d=Math.max(0,Math.min(b.length-1,c.activeItemIndex||0)),b[d]&&!b[d].disabled?c.setActiveItem(d):c.setNextItemActive())})};g.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();this._directDescendantItems.destroy();this.closed.complete();var b;(b=this._firstItemFocusRef)==null||b.destroy();clearTimeout(this._exitFallbackTimeout)};
g._hovered=function(){return this._directDescendantItems.changes.pipe(wg(this._directDescendantItems),xg(function(a){return dg.apply(null,p(a.map(function(b){return b._hovered})))}))};g.addItem=function(){};g.removeItem=function(){};
g._handleKeydown=function(a){var b=a.keyCode,c=this._keyManager;switch(b){case 27:ki(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||djc(c,"keyboard"),c.onKeydown(a)}};
var gAc=function(a,b){b=b===void 0?"program":b;var c;(c=a._firstItemFocusRef)==null||c.destroy();a._firstItemFocusRef=Ig(function(){var d=a._resolvePanel();if(!d||!d.contains(document.activeElement)){var e=a._keyManager;djc(e,b)._setActiveItemByIndex(0,1);!e.activeItem&&d&&d.focus()}},{injector:a._injector})};g=sG.prototype;
g.setPositionClasses=function(a,b){a=a===void 0?this.xPosition:a;b=b===void 0?this.yPosition:b;var c={};this._classList=Object.assign({},this._classList,(c["mat-menu-before"]=a==="before",c["mat-menu-after"]=a==="after",c["mat-menu-above"]=b==="above",c["mat-menu-below"]=b==="below",c));this._changeDetectorRef.markForCheck()};
g._onAnimationDone=function(a){var b=a==="_mat-menu-exit";if(b||a==="_mat-menu-enter")b&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(b?"void":"enter"),this._isAnimating=!1};g._onAnimationStart=function(a){if(a==="_mat-menu-enter"||a==="_mat-menu-exit")this._isAnimating=!0};
g._setIsOpen=function(a){var b=this;this._panelAnimationState=a?"enter":"void";if(a){if(this._keyManager.activeItemIndex===0){var c=this._resolvePanel();c&&(c.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(function(){return b._onAnimationDone("_mat-menu-exit")},200));this._animationsDisabled&&setTimeout(function(){b._onAnimationDone(a?"_mat-menu-enter":"_mat-menu-exit")});this._changeDetectorRef.markForCheck()};
g._updateDirectDescendants=function(){var a=this;this._allItems.changes.pipe(wg(this._allItems)).subscribe(function(b){a._directDescendantItems.reset(b.filter(function(c){return c._parentMenu===a}));kh(a._directDescendantItems)})};g._resolvePanel=function(){var a=null;this._directDescendantItems.length&&(a=this._directDescendantItems.first._getHostElement().closest('[role="menu"]'));return a};
nd.Object.defineProperties(sG.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}}});sG.\u0275fac=function(a){return new (a||sG)};
sG.\u0275cmp=y({type:sG,selectors:[["mat-menu"]],contentQueries:function(a,b,c){a&1&&(ih(c,eAc,5),ih(c,qG,5),ih(c,qG,4));if(a&2){var d;lh(d=mh())&&(b.lazyContent=d.first);lh(d=mh())&&(b._allItems=d);lh(d=mh())&&(b.items=d)}},viewQuery:function(a,b){a&1&&hh(eh,5);if(a&2){var c;lh(c=mh())&&(b.templateRef=c.first)}},hostVars:3,hostBindings:function(a){a&2&&Lg("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",$h],hasBackdrop:[2,"hasBackdrop","hasBackdrop",function(a){return a==null?null:$h(a)}],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Fh([{provide:cAc,useExisting:sG}])],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&&(ch(),dma(0,NJa,3,12,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],
encapsulation:2,changeDetection:0});var hAc=new le("mat-menu-scroll-strategy",{providedIn:"root",factory:function(){var a=r(Cg);return function(){return xi(a)}}}),iAc={provide:hAc,deps:[],useFactory:function(){var a=r(Cg);return function(){return xi(a)}}},jAc=new WeakMap,tG=function(a){this._canHaveBackdrop=a;this._element=r(Te);this._viewContainerRef=r(fh);this._menuItemInstance=r(qG,{optional:!0,self:!0});this._dir=r(Gi,{optional:!0});this._focusMonitor=r(jw);this._ngZone=r(Ph);this._injector=r(Cg);this._scrollStrategy=r(hAc);this._changeDetectorRef=
r(Hv);this._animationsDisabled=Ri();this._overlayRef=null;this._menuOpen=!1;this._menuCloseSubscription=this._closingActionsSubscription=yf.EMPTY;this._openedBy=void 0;var b=r(cAc,{optional:!0});this._parentMaterialMenu=b instanceof sG?b:void 0};g=tG.prototype;
g.ngOnDestroy=function(){this._menu&&this._ownsMenu(this._menu)&&jAc.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)};g._triggersSubmenu=function(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)};g._closeMenu=function(){var a;(a=this._menu)==null||a.close.emit()};
g._openMenu=function(a){var b=this,c=this._menu;if(!this._menuOpen&&c){var d;(d=this._pendingRemoval)==null||d.unsubscribe();d=jAc.get(c);jAc.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 h;(h=c.lazyContent)==null||h.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&&gAc(c,this._openedBy||"program");this._setIsMenuOpen(!0);c instanceof sG&&(c._setIsOpen(!0),c._directDescendantItems.changes.pipe(yg(c.close)).subscribe(function(){tjc(xjc(f,!1));xjc(f,!0)}))}};g.focus=function(a,b){this._focusMonitor&&a?kw(this._focusMonitor,this._element,a,b):this._element.nativeElement.focus(b)};
g._destroyMenu=function(a){var b=this._overlayRef,c=this._menu;if(b&&this.menuOpen){this._closingActionsSubscription.unsubscribe();var d;(d=this._pendingRemoval)==null||d.unsubscribe();if(c instanceof sG&&this._ownsMenu(c))this._pendingRemoval=c._animationDone.pipe(mg(1)).subscribe(function(){b.detach();var f;(f=c.lazyContent)==null||f.detach()}),c._setIsOpen(!1);else{b.detach();var e;c==null||(e=c.lazyContent)==null||e.detach()}c&&this._ownsMenu(c)&&jAc.delete(c);!this.restoreFocus||a!=="keydown"&&
this._openedBy&&this._triggersSubmenu()||this.focus(this._openedBy);this._openedBy=void 0;this._setIsMenuOpen(!1)}};g._setIsMenuOpen=function(a){a!==this._menuOpen&&((this._menuOpen=a)?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(a),this._changeDetectorRef.markForCheck())};
g._createOverlay=function(a){var b=this;if(!this._overlayRef){var c=this._getOverlayConfig(a);this._subscribeToPositions(a,c.positionStrategy);this._overlayRef=Pi(this._injector,c);this._overlayRef.keydownEvents().subscribe(function(d){b._menu instanceof sG&&b._menu._handleKeydown(d)})}return this._overlayRef};
g._getOverlayConfig=function(a){return new Ii({positionStrategy:yjc(vjc(xjc(Bi(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})};
g._subscribeToPositions=function(a,b){var c=this;a.setPositionClasses&&b.positionChanges.subscribe(function(d){c._ngZone.run(function(){a.setPositionClasses(d.connectionPair.overlayX==="start"?"after":"before",d.connectionPair.overlayY==="top"?"below":"above")})})};
g._setPosition=function(a,b){var c=l(a.xPosition==="before"?["end","start"]:["start","end"]),d=c.next().value;c=c.next().value;var e=l(a.yPosition==="above"?["bottom","top"]:["top","bottom"]),f=e.next().value;e=e.next().value;var h=l([f,e]),k=h.next().value;h=h.next().value;var q=l([d,c]),v=q.next().value;q=q.next().value;var A=0;this._triggersSubmenu()?(q=d=a.xPosition==="before"?"start":"end",c=v=d==="end"?"start":"end",this._parentMaterialMenu&&(this._parentInnerPadding==null&&(this._parentInnerPadding=
(a=this._parentMaterialMenu.items.first)?a._getHostElement().offsetTop:0),A=f==="bottom"?this._parentInnerPadding:-this._parentInnerPadding)):a.overlapTrigger||(k=f==="top"?"bottom":"top",h=e==="top"?"bottom":"top");Yw(b,[{originX:d,originY:k,overlayX:v,overlayY:f,offsetY:A},{originX:c,originY:k,overlayX:q,overlayY:f,offsetY:A},{originX:d,originY:h,overlayX:v,overlayY:e,offsetY:-A},{originX:c,originY:h,overlayX:q,overlayY:e,offsetY:-A}])};
g._menuClosingActions=function(){var a=this,b=this._getOutsideClickStream(this._overlayRef),c=this._overlayRef._detachments,d=this._parentMaterialMenu?this._parentMaterialMenu.closed:Nf(),e=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(eg(function(f){return a._menuOpen&&f!==a._menuItemInstance})):Nf();return dg(b,d,e,c)};g._getPortal=function(a){this._portal&&this._portal.templateRef===a.templateRef||(this._portal=new gx(a.templateRef,this._viewContainerRef));return this._portal};
g._ownsMenu=function(a){return jAc.get(a)===this};
nd.Object.defineProperties(tG.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"}}});tG.\u0275fac=function(){Via()};tG.\u0275dir=vf({type:tG});var uG=function(){tG.call(this,!0);var a=this;this._hoverSubscription=yf.EMPTY;this.restoreFocus=!0;this.onMenuOpen=this.menuOpened=new nq;this.onMenuClose=this.menuClosed=new nq;this._cleanupTouchstart=r(Ji).listen(this._element.nativeElement,"touchstart",function(b){Zoa(b)||(a._openedBy="touch")},{passive:!0})};Y(uG,tG);g=uG.prototype;g.openMenu=function(){this._openMenu(!0)};g.closeMenu=function(){this._closeMenu()};g.updatePosition=function(){var a;(a=this._overlayRef)==null||a.updatePosition()};
g.ngAfterContentInit=function(){this._handleHover()};g.ngOnDestroy=function(){tG.prototype.ngOnDestroy.call(this);this._cleanupTouchstart();this._hoverSubscription.unsubscribe()};g._getOverlayOrigin=function(){return this._element};g._getOutsideClickStream=function(a){return a.backdropClick()};g._handleMousedown=function(a){Yoa(a)||(this._openedBy=a.button===0?"mouse":void 0,tG.prototype._triggersSubmenu.call(this)&&a.preventDefault())};
g._handleKeydown=function(a){a=a.keyCode;if(a===13||a===32)this._openedBy="keyboard";tG.prototype._triggersSubmenu.call(this)&&(a===39&&this.dir==="ltr"||a===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())};g._handleClick=function(a){tG.prototype._triggersSubmenu.call(this)?(a.stopPropagation(),this.openMenu()):this.menuOpen?this.closeMenu():this.openMenu()};
g._handleHover=function(){var a=this;tG.prototype._triggersSubmenu.call(this)&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(function(b){b!==a._menuItemInstance||b.disabled||(a._openedBy="mouse",a._openMenu(!1))}))};
nd.Object.defineProperties(uG.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}}});uG.\u0275fac=function(a){return new (a||uG)};
uG.\u0275dir=vf({type:uG,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&&Lg("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:[Bg]});var QJa=function(a,b){return b.key},vG=function(){this.phase=void 0;this.actions=[Rzc,Kzc,Mzc,Szc,Qzc];this.onSelect=new LE},SJa=function(a){var b=P();return b.phase==="NEW"&&a===Rzc?[Jzc]:b.phase==="CONFIRMED"&&a===Kzc?[Lzc]:b.phase==="IN_PROGRESS"&&a===Mzc?[Nzc,Ozc,Pzc]:[]};vG.\u0275fac=function(a){return new (a||vG)};
vG.\u0275cmp=y({type:vG,selectors:[["triage-action-selector"]],inputs:{phase:"phase"},outputs:{onSelect:"onSelect"},standalone:!1,decls:6,vars:1,consts:[["phaseSelector","matMenu"],["type","button","mat-button","",1,"gmat-button",3,"matMenuTriggerFor"],["type","button","mat-menu-item","",3,"click"],["type","button","mat-menu-item","",1,"subAction"],["type","button","mat-menu-item","",1,"subAction",3,"click"]],template:function(a,b){a&1&&(J(0,"button",1),R(1,"Change triage phase"),K(),J(2,"mat-menu",
null,0),Pg(4,TJa,4,3,null,null,QJa),K());a&2&&(a=Q(3),I("matMenuTriggerFor",a),x(4),Qg(b.actions))},dependencies:[oG,Jx,pG,sG,qG,uG],styles:["button.subAction[_ngcontent-%COMP%]{padding-left:32px}"],changeDetection:0});var kAc=new le("GMAT_TOOLTIP_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var lAc=["tooltip"],mAc=new le("mat-tooltip-scroll-strategy",{providedIn:"root",factory:function(){var a=r(Cg);return function(){return xi(a,{scrollThrottle:20})}}}),nAc={provide:mAc,deps:[],useFactory:function(){var a=r(Cg);return function(){return xi(a,{scrollThrottle:20})}}},oAc=new le("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),pAc=li({passive:!0}),xG=function(){this._elementRef=r(Te);this._ngZone=r(Ph);this._platform=
r(zi);this._ariaDescriber=r(Cw);this._focusMonitor=r(jw);this._dir=r(Gi);this._injector=r(Cg);this._viewContainerRef=r(fh);this._animationsDisabled=Ri();this._defaultOptions=r(oAc,{optional:!0});this._position="below";this._pointerExitEventsInitialized=this._viewInitialized=this._disabled=this._positionAtOrigin=!1;this._tooltipComponent=wG;this._viewportMargin=8;this._cssClassPrefix="mat-mdc";this._dirSubscribed=!1;this.touchGestures="auto";this._message="";this._passiveListeners=[];this._touchstartTimeout=
null;this._destroyed=new tg;this._isDestroyed=!1;var a=this._defaultOptions;a&&(this._showDelay=a.showDelay,this._hideDelay=a.hideDelay,a.position&&(this.position=a.position),a.positionAtOrigin&&(this.positionAtOrigin=a.positionAtOrigin),a.touchGestures&&(this.touchGestures=a.touchGestures),a.tooltipClass&&(this.tooltipClass=a.tooltipClass));this._viewportMargin=8};g=xG.prototype;
g.ngAfterViewInit=function(){var a=this;this._viewInitialized=!0;this._setupPointerEnterEventsIfNeeded();this._focusMonitor.monitor(this._elementRef).pipe(yg(this._destroyed)).subscribe(function(b){b?b==="keyboard"&&a._ngZone.run(function(){return a.show()}):a._ngZone.run(function(){return a.hide(0)})})};
g.ngOnDestroy=function(){var a=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null);this._passiveListeners.forEach(function(b){var c=l(b);b=c.next().value;c=c.next().value;a.removeEventListener(b,c,pAc)});this._passiveListeners.length=0;this._destroyed.next();this._destroyed.complete();this._isDestroyed=!0;Dw(this._ariaDescriber,a,this.message,"tooltip");this._focusMonitor.stopMonitoring(a)};
g.show=function(a,b){var c=this;a=a===void 0?this.showDelay:a;if(this.disabled||!this.message||this._isTooltipVisible()){var d;(d=this._tooltipInstance)==null||d._cancelPendingAnimations()}else b=this._createOverlay(b),this._detach(),this._portal=this._portal||new fx(this._tooltipComponent,this._viewContainerRef),b=this._tooltipInstance=b.attach(this._portal).instance,b._triggerElement=this._elementRef.nativeElement,b._mouseLeaveHideDelay=this._hideDelay,b.afterHidden().pipe(yg(this._destroyed)).subscribe(function(){return c._detach()}),
this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),b.show(a)};g.hide=function(a){a=a===void 0?this.hideDelay:a;var b=this._tooltipInstance;b&&(b.isVisible()?b.hide(a):(b._cancelPendingAnimations(),this._detach()))};g.toggle=function(a){this._isTooltipVisible()?this.hide():this.show(void 0,a)};g._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()};
g._createOverlay=function(a){var b=this;if(this._overlayRef){var c=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!a)&&c._origin instanceof Te)return this._overlayRef;this._detach()}var d=hjc(this._injector.get(wi),this._elementRef);c=this._cssClassPrefix+"-tooltip-panel";a=ujc(Zw($w(yjc(Bi(this._injector,this.positionAtOrigin?a||this._elementRef:this._elementRef),"."+this._cssClassPrefix+"-tooltip"),!1),this._viewportMargin),d);a.positionChanges.pipe(yg(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=Pi(this._injector,{direction:this._dir,positionStrategy:a,panelClass:this._overlayPanelClass?[].concat(p(this._overlayPanelClass),[c]):c,scrollStrategy:this._injector.get(mAc)(),disableAnimations:this._animationsDisabled});this._updatePosition(this._overlayRef);this._overlayRef._detachments.pipe(yg(this._destroyed)).subscribe(function(){return b._detach()});
this._overlayRef.outsidePointerEvents().pipe(yg(this._destroyed)).subscribe(function(){var f;return(f=b._tooltipInstance)==null?void 0:f._handleBodyInteraction()});this._overlayRef.keydownEvents().pipe(yg(this._destroyed)).subscribe(function(f){b._isTooltipVisible()&&f.keyCode===27&&!ki(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(yg(this._destroyed)).subscribe(function(){b._overlayRef&&b._updatePosition(b._overlayRef)}));return this._overlayRef};g._detach=function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach();this._tooltipInstance=null};
g._updatePosition=function(a){a=a.getConfig().positionStrategy;var b=this._getOrigin(),c=this._getOverlayPosition();Yw(a,[this._addOffset(Object.assign({},b.main,c.main)),this._addOffset(Object.assign({},b.fallback,c.fallback))])};g._addOffset=function(a){var b=!this._dir||this._dir.value=="ltr";a.originY==="top"?a.offsetY=-8:a.originY==="bottom"?a.offsetY=8:a.originX==="start"?a.offsetX=b?-8:8:a.originX==="end"&&(a.offsetX=b?8:-8);return a};
g._getOrigin=function(){var a=!this._dir||this._dir.value=="ltr",b=this.position;if(b=="above"||b=="below")var c={originX:"center",originY:b=="above"?"top":"bottom"};else if(b=="before"||b=="left"&&a||b=="right"&&!a)c={originX:"start",originY:"center"};else if(b=="after"||b=="right"&&a||b=="left"&&!a)c={originX:"end",originY:"center"};a=this._invertPosition(c.originX,c.originY);return{main:c,fallback:{originX:a.x,originY:a.y}}};
g._getOverlayPosition=function(){var a=!this._dir||this._dir.value=="ltr",b=this.position;if(b=="above")var c={overlayX:"center",overlayY:"bottom"};else if(b=="below")c={overlayX:"center",overlayY:"top"};else if(b=="before"||b=="left"&&a||b=="right"&&!a)c={overlayX:"end",overlayY:"center"};else if(b=="after"||b=="right"&&a||b=="left"&&!a)c={overlayX:"start",overlayY:"center"};a=this._invertPosition(c.overlayX,c.overlayY);return{main:c,fallback:{overlayX:a.x,overlayY:a.y}}};
g._updateTooltipMessage=function(){var a=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Ig(function(){a._tooltipInstance&&a._overlayRef.updatePosition()},{injector:this._injector}))};g._setTooltipClass=function(a){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=a,this._tooltipInstance._markForCheck())};
g._invertPosition=function(a,b){this.position==="above"||this.position==="below"?b==="top"?b="bottom":b==="bottom"&&(b="top"):a==="end"?a="start":a==="start"&&(a="end");return{x:a,y:b}};
g._updateCurrentPositionClass=function(a){var b=a.overlayY,c=a.originX;a=a.originY;b=b==="center"?this._dir&&this._dir.value==="rtl"?c==="end"?"left":"right":c==="start"?"left":"right":b==="bottom"&&a==="top"?"above":"below";if(b!==this._currentPosition){if(c=this._overlayRef)a=this._cssClassPrefix+"-tooltip-panel-",c.removePanelClass(a+this._currentPosition),c.addPanelClass(a+b);this._currentPosition=b}};
g._setupPointerEnterEventsIfNeeded=function(){var a=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(b){a._setupPointerExitEventsIfNeeded();var c=void 0;b.x!==void 0&&b.y!==void 0&&(c=b);a.show(void 0,c)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(b){var c,d=(b=(c=b.targetTouches)==null?void 0:
c[0])?{x:b.clientX,y:b.clientY}:void 0;a._setupPointerExitEventsIfNeeded();a._touchstartTimeout&&clearTimeout(a._touchstartTimeout);var e,f;a._touchstartTimeout=setTimeout(function(){a._touchstartTimeout=null;a.show(void 0,d)},(f=(e=a._defaultOptions)==null?void 0:e.touchLongPressShowDelay)!=null?f:500)}])),this._addListeners(this._passiveListeners))};
g._setupPointerExitEventsIfNeeded=function(){var a=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var b=[];if(this._platformSupportsMouseEvents())b.push(["mouseleave",function(d){d=d.relatedTarget;var e;d&&((e=a._overlayRef)==null?0:e.overlayElement.contains(d))||a.hide()}],["wheel",function(d){return a._wheelListener(d)}]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();var c=function(){a._touchstartTimeout&&clearTimeout(a._touchstartTimeout);
var d;a.hide((d=a._defaultOptions)==null?void 0:d.touchendHideDelay)};b.push(["touchend",c],["touchcancel",c])}this._addListeners(b);this._passiveListeners.push.apply(this._passiveListeners,p(b))}};g._addListeners=function(a){var b=this;a.forEach(function(c){var d=l(c);c=d.next().value;d=d.next().value;b._elementRef.nativeElement.addEventListener(c,d,pAc)})};g._platformSupportsMouseEvents=function(){return!this._platform.IOS&&!this._platform.ANDROID};
g._wheelListener=function(a){if(this._isTooltipVisible()){a=this._injector.get(ui).elementFromPoint(a.clientX,a.clientY);var b=this._elementRef.nativeElement;a===b||b.contains(a)||this.hide()}};
g._disableNativeGesturesIfNecessary=function(){var a=this.touchGestures;if(a!=="off"){var b=this._elementRef.nativeElement,c=b.style;if(a==="on"||b.nodeName!=="INPUT"&&b.nodeName!=="TEXTAREA")c.userSelect=c.msUserSelect=c.webkitUserSelect=c.MozUserSelect="none";a!=="on"&&b.draggable||(c.webkitUserDrag="none");c.touchAction="none";c.webkitTapHighlightColor="transparent"}};
g._syncAriaDescription=function(a){var b=this;this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,Dw(this._ariaDescriber,this._elementRef.nativeElement,a,"tooltip"),this._isDestroyed||Ig({write:function(){b._ariaDescriptionPending=!1;b.message&&!b.disabled&&Vic(b._ariaDescriber,b._elementRef.nativeElement,b.message,"tooltip")}},{injector:this._injector}))};
nd.Object.defineProperties(xG.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=pi(a);this._detach();this._overlayRef=null}},disabled:{configurable:!0,
enumerable:!0,get:function(){return this._disabled},set:function(a){a=pi(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=si(a)}},hideDelay:{configurable:!0,enumerable:!0,get:function(){return this._hideDelay},set:function(a){this._hideDelay=si(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)}}});
xG.\u0275fac=function(a){return new (a||xG)};
xG.\u0275dir=vf({type:xG,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(a,b){a&2&&uh("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 wG=function(){this._changeDetectorRef=r(Hv);this._elementRef=r(Te);this._isMultiline=!1;this._animationsDisabled=Ri();this._isVisible=this._closeOnInteraction=!1;this._onHide=new tg;this._showAnimation="mat-mdc-tooltip-show";this._hideAnimation="mat-mdc-tooltip-hide"};g=wG.prototype;
g.show=function(a){var b=this;this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId);this._showTimeoutId=setTimeout(function(){b._toggleVisibility(!0);b._showTimeoutId=void 0},a)};g.hide=function(a){var b=this;this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId);this._hideTimeoutId=setTimeout(function(){b._toggleVisibility(!1);b._hideTimeoutId=void 0},a)};g.afterHidden=function(){return this._onHide};g.isVisible=function(){return this._isVisible};
g.ngOnDestroy=function(){this._cancelPendingAnimations();this._onHide.complete();this._triggerElement=null};g._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)};g._markForCheck=function(){this._changeDetectorRef.markForCheck()};g._handleMouseLeave=function(a){(a=a.relatedTarget)&&this._triggerElement.contains(a)||(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))};g._onShow=function(){this._isMultiline=this._isTooltipMultiline();this._markForCheck()};
g._isTooltipMultiline=function(){var a=this._elementRef.nativeElement.getBoundingClientRect();return a.height>24&&a.width>=200};g._handleAnimationEnd=function(a){a=a.animationName;a!==this._showAnimation&&a!==this._hideAnimation||this._finalizeAnimation(a===this._showAnimation)};g._cancelPendingAnimations=function(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId);this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId);this._showTimeoutId=this._hideTimeoutId=void 0};
g._finalizeAnimation=function(a){a?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()};
g._toggleVisibility=function(a){var b=this._tooltip.nativeElement,c=this._showAnimation,d=this._hideAnimation;b.classList.remove(a?d:c);b.classList.add(a?c:d);this._isVisible!==a&&(this._isVisible=a,this._changeDetectorRef.markForCheck());a&&!this._animationsDisabled&&typeof getComputedStyle==="function"&&(c=getComputedStyle(b),c.getPropertyValue("animation-duration")==="0s"||c.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0);a&&this._onShow();this._animationsDisabled&&
(b.classList.add("_mat-animation-noopable"),this._finalizeAnimation(a))};wG.\u0275fac=function(a){return new (a||wG)};
wG.\u0275cmp=y({type:wG,selectors:[["mat-tooltip-component"]],viewQuery:function(a,b){a&1&&hh(lAc,7);if(a&2){var c;lh(c=mh())&&(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();J(0,"div",1,0);N("animationend",
function(d){u(c);return w(b._handleAnimationEnd(d))});J(2,"div",2);R(3);K()()}a&2&&(uh("mdc-tooltip--multiline",b._isMultiline),I("ngClass",b.tooltipClass),x(3),wh(b.message))},dependencies:[Pv],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 yG=function(){};yG.\u0275fac=function(a){return new (a||yG)};yG.\u0275mod=uf({type:yG});yG.\u0275inj=Dd({providers:[nAc],imports:[Bw,ox,px,px,Vw]});var zG=function(){if(r(kAc).disableGmatStyle)throw Error("Mc");var a=r(xG,{self:!0,optional:!0});a&&(a._overlayPanelClass=["gmat-mdc-tooltip"])};zG.\u0275fac=function(a){return new (a||zG)};zG.\u0275dir=vf({type:zG,selectors:[["","matTooltip",""]]});var qAc=["button"],AG=function(){this.color="primary";this.format="hairline";this.disabled=!1;this.size="medium";this.onAction=new LE};AG.prototype.onClick=function(a){this.onAction.emit(a)};AG.prototype.focus=function(){this.nativeButton.focus()};AG.\u0275fac=function(a){return new (a||AG)};
AG.\u0275cmp=y({type:AG,selectors:[["b-button"]],viewQuery:function(a,b){a&1&&hh(qAc,5);if(a&2){var c;lh(c=mh())&&(b.nativeButton=c.first)}},inputs:{color:"color",format:"format",disabled:"disabled",size:"size",bAriaLabel:"bAriaLabel",bAriaExpanded:"bAriaExpanded",tooltip:"tooltip"},outputs:{onAction:"onAction"},standalone:!1,ngContentSelectors:["*"],decls:7,vars:1,consts:[["buttonContent",""],["button",""],["type","button","mat-stroked-button","",3,"color","disabled","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&&(ch(),D(0,UJa,1,0,"ng-template",null,0,Lh),F(2,WJa,3,8,"button",2)(3,YJa,3,8,"button",3)(4,$Ja,3,8,"button",4)(5,bKa,3,8,"button",5)(6,dKa,3,8,"button",2));if(a&2){var c;x(2);G((c=b.format)==="hairline"?2:c==="flat"?3:c==="fill"?4:c==="icon"?5:6)}},dependencies:[oG,Jx,Kx,zG,xG,Sv],encapsulation:2,changeDetection:0});var BG=function(){};BG.\u0275fac=function(a){return new (a||BG)};BG.\u0275mod=uf({type:BG});BG.\u0275inj=Dd({providers:[{provide:mkc,useValue:{color:"primary"}}],imports:[Lx]});var CG=function(){};CG.\u0275fac=function(a){return new (a||CG)};CG.\u0275mod=uf({type:CG});CG.\u0275inj=Dd({imports:[yG]});var DG=function(){};DG.\u0275fac=function(a){return new (a||DG)};DG.\u0275mod=uf({type:DG});DG.\u0275inj=Dd({imports:[BG,CG,HC]});var rAc=new le("GMAT_SLIDE_TOGGLE_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var EG=function(a){this.options=a;if(a.disableGmatStyle)throw Error("Mc");};EG.\u0275fac=function(a){return new (a||EG)(of(rAc))};EG.\u0275dir=vf({type:EG,selectors:[["mat-slide-toggle"]],hostAttrs:[1,"gmat-mdc-slide-toggle"],standalone:!1});var sAc=new le("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1}}});var tAc=["switch"],uAc=function(a,b){this.source=a;this.checked=b},FG=function(){this._elementRef=r(Te);this._focusMonitor=r(jw);this._changeDetectorRef=r(Hv);this.defaults=r(sAc);this._onChange=function(){};this._onTouched=function(){};this._validatorOnChange=function(){};this._checked=!1;this._noopAnimations=Ri();this.name=null;this.labelPosition="after";this.ariaLabelledby=this.ariaLabel=null;this.disableRipple=this.disabled=!1;this.tabIndex=0;this.change=new nq;this.toggleChange=new nq;r(Di).load(wx);
var a=r(new pv("tabindex"),{optional:!0}),b=this.defaults;this.tabIndex=a==null?0:parseInt(a)||0;this.color=b.color||"accent";this.id=this._uniqueId=r(Fi).getId("mat-mdc-slide-toggle-");var c;this.hideIcon=(c=b.hideIcon)!=null?c:!1;var d;this.disabledInteractive=(d=b.disabledInteractive)!=null?d:!1;this._labelId=this._uniqueId+"-label"};g=FG.prototype;g._createChangeEvent=function(a){return new uAc(this,a)};g.focus=function(){this._switchElement.nativeElement.focus()};
g.ngAfterContentInit=function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){b==="keyboard"||b==="program"?(a._focused=!0,a._changeDetectorRef.markForCheck()):b||Promise.resolve().then(function(){a._focused=!1;a._onTouched();a._changeDetectorRef.markForCheck()})})};g.ngOnChanges=function(a){a.required&&this._validatorOnChange()};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};g.writeValue=function(a){this.checked=!!a};
g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};g.validate=function(a){return this.required&&a.value!==!0?{required:!0}:null};g.registerOnValidatorChange=function(a){this._validatorOnChange=a};g.setDisabledState=function(a){this.disabled=a;this._changeDetectorRef.markForCheck()};g.toggle=function(){this.checked=!this.checked;this._onChange(this.checked)};g._emitChangeEvent=function(){this._onChange(this.checked);this.change.emit(this._createChangeEvent(this.checked))};
g._handleClick=function(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new uAc(this,this.checked))))};g._getAriaLabelledBy=function(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId};
nd.Object.defineProperties(FG.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"}}});FG.\u0275fac=function(a){return new (a||FG)};
FG.\u0275cmp=y({type:FG,selectors:[["mat-slide-toggle"]],viewQuery:function(a,b){a&1&&hh(tAc,5);if(a&2){var c;lh(c=mh())&&(b._switchElement=c.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(a,b){a&2&&(Rg("id",b.id),Lg("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),vh(b.color?"mat-"+b.color:""),uh("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",$h],color:"color",disabled:[2,"disabled","disabled",$h],disableRipple:[2,"disableRipple","disableRipple",$h],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:ai(a)}],checked:[2,"checked","checked",$h],hideIcon:[2,"hideIcon","hideIcon",$h],disabledInteractive:[2,"disabledInteractive",
"disabledInteractive",$h]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[Fh([{provide:Yx,useExisting:$d(function(){return FG}),multi:!0},{provide:Zx,useExisting:FG,multi:!0}]),ov],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();ch();J(0,"div",1)(1,"button",2,0);N("click",function(){u(c);return w(b._handleClick())});M(3,"div",3)(4,"span",4);J(5,"span",5)(6,"span",6)(7,"span",7);M(8,"span",8);K();J(9,"span",9);M(10,"span",10);K();F(11,eKa,5,0,"span",11);K()()();J(12,"label",12);N("click",function(d){u(c);return w(d.stopPropagation())});dh(13);K()()}a&2&&(a=Q(2),I("labelPosition",b.labelPosition),x(),uh("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),Lg("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),x(9),I("matRippleTrigger",a)("matRippleDisabled",b.disableRipple||b.disabled)("matRippleCentered",!0),x(),G(b.hideIcon?-1:11),x(),I("for",b.buttonId),Lg("id",b._labelId))},dependencies:[zx,xx],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: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 GG=function(){};GG.\u0275fac=function(a){return new (a||GG)};GG.\u0275mod=uf({type:GG});GG.\u0275inj=Dd({imports:[FG,px,px]});var HG=function(){};HG.\u0275fac=function(a){return new (a||HG)};HG.\u0275mod=uf({type:HG});HG.\u0275inj=Dd({providers:[{provide:sAc,useValue:{color:"primary"}}],imports:[GG]});var vAc=0,IG=function(){this.id="b-slide-toggle-"+ ++vAc;this.ariaLabel=this.label="";this.labelPosition="before";this.model=!1;this.tooltip=void 0;this.disabled=!1;this.modelChange=new LE};IG.\u0275fac=function(a){return new (a||IG)};
IG.\u0275cmp=y({type:IG,selectors:[["b-slide-toggle"]],hostAttrs:[1,"vertical-centered"],inputs:{id:"id",label:"label",ariaLabel:[0,"aria-label","ariaLabel"],labelPosition:"labelPosition",model:"model",tooltip:"tooltip",disabled:"disabled"},outputs:{modelChange:"modelChange"},standalone:!1,decls:2,vars:7,consts:[[3,"change","id","disabled","checked","aria-label","matTooltip","labelPosition"]],template:function(a,b){a&1&&(J(0,"mat-slide-toggle",0),N("change",function(d){b.model=d.checked;b.modelChange.emit(d.checked)}),
R(1),K());if(a&2){I("id",b.id)("disabled",b.disabled)("checked",b.model);Kg("aria-label",b.ariaLabel||b.label);var c;I("matTooltip",(c=b.tooltip)!=null?c:"")("labelPosition",b.label?b.labelPosition:"after");x();wh(b.label)}},dependencies:[EG,FG,zG,xG],styles:["mat-slide-toggle[_ngcontent-%COMP%] { vertical-align: middle; }"],changeDetection:0});var JG=function(){};JG.\u0275fac=function(a){return new (a||JG)};JG.\u0275mod=uf({type:JG});JG.\u0275inj=Dd({imports:[HG,CG]});/*

 Copyright 2016 Craig Campbell

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Nick Richardson

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
var wAc=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||""};
nd.Object.defineProperties(wAc.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 xAc=new le("HotkeyOptions");var KG=function(a){this.options=a;this.hotkeys=[];this.pausedHotkeys=[];this.cheatSheetToggle=new tg;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 wAc(this.options.cheatSheetHotkey||"?",function(){this.cheatSheetToggle.next()}.bind(this),[],this.options.cheatSheetDescription||
"Show / hide this help menu"));this.options.cheatSheetCloseEsc&&this.add(new wAc("esc",function(){this.cheatSheetToggle.next(!1)}.bind(this),["HOTKEYS-CHEATSHEET"],this.options.cheatSheetCloseEscDescription||"Hide this help menu"))};g=KG.prototype;
g.add=function(a,b){var c=this;if(Array.isArray(a)){for(var d=[],e=l(a),f=e.next();!f.done;f=e.next())d.push(this.add(f.value,b));return d}this.remove(a);this.hotkeys.push(a);this.mousetrap.bind(a.combo,function(h,k){var q=!0;if(h){var v=h.target,A=v.nodeName.toUpperCase();(" "+v.className+" ").indexOf(" mousetrap ")>-1?q=!0:c.preventIn.indexOf(A)>-1&&a.allowIn.map(function(E){return E.toUpperCase()}).indexOf(A)===-1&&(q=!1)}if(q)return a.callback.apply(c,[h,k])},b);return a};
g.remove=function(a){var b=[];if(!a){a=l(this.hotkeys);for(var c=a.next();!c.done;c=a.next())b.push(this.remove(c.value));return b}if(Array.isArray(a)){a=l(a);for(c=a.next();!c.done;c=a.next())b.push(this.remove(c.value));return b}b=this.hotkeys.indexOf(a);return b>-1?(this.hotkeys.splice(b,1),this.mousetrap.unbind(a.combo),a):null};
g.get=function(a){if(!a)return this.hotkeys;if(Array.isArray(a)){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next())b.push(this.get(c.value));return b}for(b=0;b<this.hotkeys.length;b++)if(this.hotkeys[b].combo.indexOf(a)>-1)return this.hotkeys[b];return null};g.pause=function(a){if(!a)return this.pause(this.hotkeys);if(Array.isArray(a)){var b=[];a=l(a.slice());for(var c=a.next();!c.done;c=a.next())b.push(this.pause(c.value));return b}this.remove(a);this.pausedHotkeys.push(a);return a};
g.unpause=function(a){if(!a)return this.unpause(this.pausedHotkeys);if(Array.isArray(a)){var b=[];a=l(a.slice());for(var c=a.next();!c.done;c=a.next())b.push(this.unpause(c.value));return b}b=this.pausedHotkeys.indexOf(a);return b>-1?(this.add(a),this.pausedHotkeys.splice(b,1)):null};g.reset=function(){this.mousetrap.reset()};KG.\u0275fac=function(a){return new (a||KG)(be(xAc))};KG.\u0275prov=Cd({token:KG,factory:KG.\u0275fac});var LG=function(){};LG.\u0275fac=function(a){return new (a||LG)};LG.\u0275mod=uf({type:LG});LG.\u0275inj=Dd({imports:[aw]});var yAc;var zAc="combobox grid group listbox menu menubar radiogroup row rowgroup tablist textbox toolbar tree treegrid".split(" "),MG=function(a,b){b?a.setAttribute("role",b):a.removeAttribute("role")},NG=function(a,b,c){Array.isArray(c)&&(c=c.join(" "));var d="aria-"+b;c===""||c==void 0?(yAc||(c={},yAc=(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=yAc,b in c?a.setAttribute(d,c[b]):a.removeAttribute(d)):a.setAttribute(d,c)},AAc=function(a,b){a=a.getAttribute("aria-"+b);return a==null||a==void 0?"":String(a)},OG=function(a,b){var c="";b&&(c=b.id);NG(a,"activedescendant",c)},BAc=function(a,b){NG(a,"label",b)};var PG=function(){var a=r(QE),b=r(iG);Z.call(this);var c=this;this.rawHotkeysService=r(KG);this.ngZone=r(Ph);this.enabled=!0;this.paused=!1;this.hotkeyGroups=new Map;b.keyboardPrefs$.pipe(yg(this.destroyed$)).subscribe(function(d){d&&(c.enabled=!!d.enableAllHotkeys)});a.routeChangeStart.pipe(yg(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=Da(zAc,d)>=0;e=d||e.contentEditable==="true"||e.tagName==="INPUT"&&e.type==="text"||e.tagName==="SELECT"||e.tagName==="TEXTAREA"||CAc(e)?!0:!1}return e};this.destroyed$.subscribe(function(){DAc(c)})};Y(PG,Z);PG.\u0275dir=Z.\u0275dir;PG.prototype.isEnabled=function(){return this.enabled};PG.prototype.isPaused=function(){return this.paused};
var QG=function(a,b){var c=b.title;var d=b.hotkeys;var e;b=(e=a.hotkeyGroups.get(c))!=null?e:[];a.hotkeyGroups.set(c,[].concat(p(b),p(d)));EAc(a);return function(){var f=new Set(d.map(function(q){return q.onPress})),h,k=((h=a.hotkeyGroups.get(c))!=null?h:[]).filter(function(q){return!f.has(q.onPress)});k.length?a.hotkeyGroups.set(c,k):a.hotkeyGroups.delete(c);EAc(a)}},DAc=function(a){var b=[].concat(p(a.rawHotkeysService.hotkeys));b=l(b);for(var c=b.next();!c.done;c=b.next())a.rawHotkeysService.remove(c.value);
a.rawHotkeysService.reset()},EAc=function(a){DAc(a);for(var b=l(a.hotkeyGroups.values()),c=b.next();!c.done;c=b.next()){c=FAc(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 wAc(jKa(e.binding$jscomp$9.key),function(f){return function(h){a.ngZone.run(function(){f.binding$jscomp$9.command()});h.stopPropagation();return!1}}(e),e.binding$jscomp$9.allowIn),a.rawHotkeysService.add(d)}},CAc=function(a){return[].concat(p(document.getElementsByClassName("cdk-overlay-pane"))).filter(function(b){return b.style.position===
"static"}).some(function(b){return b.contains(a)})},FAc=function(a,b){var c=[];b=l(b);for(var d=b.next(),e={};!d.done;e={hotkeySpec:void 0},d=b.next()){e.hotkeySpec=d.value;d=l(e.hotkeySpec.keys.entries());for(var f=d.next(),h={};!f.done;h={index$jscomp$2672:void 0},f=d.next()){var k=l(f.value);f=k.next().value;k=k.next().value;h.index$jscomp$2672=f;c.push(new GAc(k,function(q,v){return function(){a.ngZone.run(function(){q.hotkeySpec.onPress(v.index$jscomp$2672)})}}(e,h),e.hotkeySpec.allowIn))}}Naa(c,
function(q,v){return q.strokeLength>v.strokeLength?-1:q.strokeLength<v.strokeLength?1:0});return c};PG.prototype.pause=function(){this.paused=!0};PG.prototype.unpause=function(){this.paused=!1};var HAc=function(a){return[].concat(p(a.hotkeyGroups.entries())).map(function(b){var c=l(b);b=c.next().value;c=c.next().value;return{title:b,hotkeys:rj(c,kKa)}})};PG.\u0275fac=function(a){return new (a||PG)};PG.\u0275prov=Cd({token:PG,factory:PG.\u0275fac,providedIn:"root"});
var GAc=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 RG=function(){Z.apply(this,arguments);this.hotkeys=r(PG);this.tooltip=r(xG,{optional:!0});this.hotkeyEnabled=!0;this.onHotkey=new LE};Y(RG,Z);RG.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+")"}};
RG.prototype.ngOnInit=function(){var a=this;this.hotkey&&this.hotkeyEnabled&&this.subscriptions.add(QG(this.hotkeys,{title:this.hotkey.category,hotkeys:[Object.assign({},this.hotkey,{onPress:function(b){a.onHotkey.next(b)}})]}))};RG.\u0275fac=function(){var a;return function(b){return(a||(a=Re(RG)))(b||RG)}}();
RG.\u0275dir=vf({type:RG,selectors:[["","hotkey",""]],hostVars:2,hostBindings:function(a,b){a&2&&uh("has-hotkey",b.hotkey)},inputs:{hotkey:"hotkey",hotkeyEnabled:"hotkeyEnabled",matTooltip:"matTooltip"},outputs:{onHotkey:"onHotkey"},standalone:!1,features:[Bg,ov]});var IAc={category:"Edit Issue Page",keys:[qp("r")],displayAs:"Shift+r",description:"Refresh"},JAc={category:"Issue List",keys:["u",qp("r")],displayAs:"u / Shift+r",description:"Refresh search results"},sp={ASSIGN_ISSUE_TO_DEFAULT_ASSIGNEE:{category:"Edit Issue Page",keys:[qp("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:IAc,REFRESH_ISSUE_LIST:JAc,TOGGLE_LEFT_SIDEBAR:{category:"General",keys:["<"],
displayAs:"<",description:"Toggle left sidebar"},TOGGLE_MARK_AS_DUPLICATE:{category:"Edit Issue Page",keys:["d"],displayAs:"d",description:"Mark/unmark issue as duplicate"},TOGGLE_RIGHT_SIDEBAR:{category:"General",keys:[">"],displayAs:">",description:"Toggle right sidebar"},TOGGLE_STAR:{category:"Edit Issue Page",keys:["s"],displayAs:"s",description:"Star/Unstar this issue"}};var SG=function(){};SG.\u0275fac=function(a){return new (a||SG)};SG.\u0275mod=uf({type:SG});SG.\u0275inj=Dd({});var TG=function(){Z.call(this);this.templateRef=r(eh);this.viewContainer=r(fh);this.cdr=r(Hv);this.isViewInitialized=!1;this.viewContainer.createEmbeddedView(this.templateRef)};Y(TG,Z);TG.prototype.ngAfterViewInit=function(){this.isViewInitialized=!0};
nd.Object.defineProperties(TG.prototype,{refreshable:{configurable:!0,enumerable:!0,set:function(a){var b=this;a.pipe(yg(this.destroyed$)).subscribe(function(){b.isViewInitialized&&(b.viewContainer.clear(),b.viewContainer.createEmbeddedView(b.templateRef),b.cdr.detectChanges())})}}});TG.\u0275fac=function(a){return new (a||TG)};TG.\u0275dir=vf({type:TG,selectors:[["","refreshable",""]],inputs:{refreshable:"refreshable"},standalone:!1,features:[Bg]});var KAc=function(){};var up=function(){this.Serializable$values={}},tp=function(a,b){return a.Serializable$values.hasOwnProperty(b)?a.Serializable$values[b]:null},UG=function(a,b){return a.Serializable$values[b]!=null};var LAc=function(a){if(a.getCount&&typeof a.getCount=="function")a=a.getCount();else if(Ka(a)||typeof a==="string")a=a.length;else{var b=0,c;for(c in a)b++;a=b}return a},VG=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(Ka(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Hra(a)},MAc=
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(Ka(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}}},NAc=function(a,b,c){if(a.forEach&&typeof a.forEach=="function")a.forEach(b,c);else if(Ka(a)||typeof a==="string")Array.prototype.forEach.call(a,
b,c);else for(var d=MAc(a),e=VG(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)},OAc=function(a,b,c){if(typeof a.every=="function")return a.every(b,c);if(Ka(a)||typeof a==="string")return Array.prototype.every.call(a,b,c);for(var d=MAc(a),e=VG(a),f=e.length,h=0;h<f;h++)if(!b.call(c,e[h],d&&d[h],a))return!1;return!0};var PAc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),QAc=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," ")):"")}}},RAc=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]},SAc=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)SAc(a,String(b[d]),c);else b!=null&&c.push(a+(b===""?"":"="+fv(b)))},TAc=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)SAc(a[b],a[b+1],c);return c.join("&")},UAc=function(a){var b=[],c;for(c in a)SAc(c,a[c],b);return b.join("&")},KWa=function(a,b){var c=arguments.length==2?TAc(arguments[1],0):TAc(arguments,1);return RAc(a,c)},MWa=
function(a,b){b=UAc(b);return RAc(a,b)},VAc=function(a,b,c){c=c!=null?"="+fv(c):"";return RAc(a,b+c)},WAc=/#|$/,thb=function(a,b){var c=a.search(WAc);a:{var d=0;for(var e=b.length;(d=a.indexOf(b,d))>=0&&d<c;){var f=a.charCodeAt(d-1);if(f==38||f==63)if(f=a.charCodeAt(d+e),!f||f==61||f==38||f==35)break a;d+=e+1}d=-1}if(d<0)return null;e=a.indexOf("&",d);if(e<0||e>c)e=c;d+=b.length+1;return decodeURIComponent(a.slice(d,e!==-1?e:0).replace(/\+/g," "))};var Mp=function(a,b){this.domain_=this.userInfo_=this.scheme_="";this.port_=null;this.fragment_=this.path_="";this.ignoreCase_=!1;var c;a instanceof Mp?(this.ignoreCase_=b!==void 0?b:a.ignoreCase_,WG(this,a.scheme_),this.setUserInfo(a.getUserInfo()),XG(this,a.getDomain()),YG(this,a.port_),this.setPath(a.getPath()),XAc(this,a.queryData_.clone()),YAc(this,a.fragment_)):a&&(c=String(a).match(PAc))?(this.ignoreCase_=!!b,WG(this,c[1]||"",!0),this.setUserInfo(c[2]||"",!0),XG(this,c[3]||"",!0),YG(this,c[4]),
this.setPath(c[5]||"",!0),XAc(this,c[6]||"",!0),YAc(this,c[7]||"",!0)):(this.ignoreCase_=!!b,this.queryData_=new ZG(null,this.ignoreCase_))};
Mp.prototype.toString=function(){var a=[],b=this.scheme_;b&&a.push(ZAc(b,$Ac,!0),":");var c=this.getDomain();if(c||b=="file")a.push("//"),(b=this.getUserInfo())&&a.push(ZAc(b,$Ac,!0),"@"),a.push(fv(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(ZAc(c,c.charAt(0)=="/"?aBc:bBc,!0));(c=this.queryData_.toString())&&a.push("?",c);(c=this.fragment_)&&a.push("#",ZAc(c,cBc));return a.join("")};
Mp.prototype.resolve=function(a){var b=this.clone(),c=!!a.scheme_;c?WG(b,a.scheme_):c=a.hasUserInfo();c?b.setUserInfo(a.getUserInfo()):c=!!a.domain_;c?XG(b,a.getDomain()):c=a.port_!=null;var d=a.getPath();if(c)YG(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(la(e,"./")||la(e,"/.")){d=e.lastIndexOf("/",0)==0;e=e.split("/");for(var f=[],h=
0;h<e.length;){var k=e[h++];k=="."?d&&h==e.length&&f.push(""):k==".."?((f.length>1||f.length==1&&f[0]!="")&&f.pop(),d&&h==e.length&&f.push("")):(f.push(k),d=!0)}d=f.join("/")}else d=e}c?b.setPath(d):c=a.hasQuery();c?XAc(b,a.queryData_.clone()):c=!!a.fragment_;c&&YAc(b,a.fragment_);return b};Mp.prototype.clone=function(){return new Mp(this)};var WG=function(a,b,c){a.scheme_=c?$G(b,!0):b;a.scheme_&&(a.scheme_=a.scheme_.replace(/:$/,""));return a};Mp.prototype.getUserInfo=function(){return this.userInfo_};
Mp.prototype.setUserInfo=function(a,b){this.userInfo_=b?$G(a):a;return this};Mp.prototype.hasUserInfo=function(){return!!this.userInfo_};Mp.prototype.getDomain=function(){return this.domain_};var XG=function(a,b,c){a.domain_=c?$G(b,!0):b;return a},YG=function(a,b){if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Qc`"+b);a.port_=b}else a.port_=null;return a};Mp.prototype.getPath=function(){return this.path_};Mp.prototype.setPath=function(a,b){this.path_=b?$G(a,!0):a;return this};
Mp.prototype.hasPath=function(){return!!this.path_};Mp.prototype.hasQuery=function(){return this.queryData_.toString()!==""};var XAc=function(a,b,c){b instanceof ZG?(a.queryData_=b,a.queryData_.setIgnoreCase(a.ignoreCase_)):(c||(b=ZAc(b,dBc)),a.queryData_=new ZG(b,a.ignoreCase_));return a};Mp.prototype.setQuery=function(a){return XAc(this,a)};Mp.prototype.getQuery=function(){return this.queryData_.toString()};
var Ir=function(a,b,c){a.queryData_.set(b,c);return a},Hr=function(a,b){return a.queryData_.get(b)},YAc=function(a,b,c){a.fragment_=c?$G(b):b;return a},eBc=function(a){Ir(a,"zx",vhb());return a};Mp.prototype.removeParameter=function(a){this.queryData_.remove(a);return this};Mp.prototype.isReadOnly=function(){return!1};Mp.prototype.setIgnoreCase=function(a){this.ignoreCase_=a;this.queryData_&&this.queryData_.setIgnoreCase(a)};
var Gr=function(a,b){return a instanceof Mp?a.clone():new Mp(a,b)},fBc=function(a,b,c,d,e){var f=new Mp(null);a&&WG(f,a);b&&f.setUserInfo(b);c&&XG(f,c);d&&YG(f,d);e&&f.setPath(e);return f},$G=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""},ZAc=function(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,gBc),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null},gBc=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)},
$Ac=/[#\/\?@]/g,bBc=/[#\?:]/g,aBc=/[#\?]/g,dBc=/[#\?@]/g,cBc=/#/g,ZG=function(a,b){this.count_=this.keyMap_=null;this.encodedQuery_=a||null;this.ignoreCase_=!!b},aH=function(a){a.keyMap_||(a.keyMap_=new Map,a.count_=0,a.encodedQuery_&&QAc(a.encodedQuery_,function(b,c){a.add(decodeURIComponent(b.replace(/\+/g," ")),c)}))};g=ZG.prototype;g.getCount=function(){aH(this);return this.count_};
g.add=function(a,b){aH(this);this.encodedQuery_=null;a=bH(this,a);var c=this.keyMap_.get(a);c||this.keyMap_.set(a,c=[]);c.push(b);this.count_+=1;return this};g.remove=function(a){aH(this);a=bH(this,a);return this.keyMap_.has(a)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(a).length,this.keyMap_.delete(a)):!1};g.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};g.isEmpty=function(){aH(this);return this.count_==0};g.containsKey=function(a){aH(this);a=bH(this,a);return this.keyMap_.has(a)};
g.containsValue=function(a){var b=this.getValues();return Da(b,a)>=0};g.forEach=function(a,b){aH(this);this.keyMap_.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};g.getKeys=function(){aH(this);for(var a=Array.from(this.keyMap_.values()),b=Array.from(this.keyMap_.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.getValues=function(a){aH(this);var b=[];if(typeof a==="string")this.containsKey(a)&&(b=b.concat(this.keyMap_.get(bH(this,a))));else{a=Array.from(this.keyMap_.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};g.set=function(a,b){aH(this);this.encodedQuery_=null;a=bH(this,a);this.containsKey(a)&&(this.count_-=this.keyMap_.get(a).length);this.keyMap_.set(a,[b]);this.count_+=1;return this};g.get=function(a,b){if(!a)return b;a=this.getValues(a);return a.length>0?String(a[0]):b};
g.setValues=function(a,b){this.remove(a);b.length>0&&(this.encodedQuery_=null,this.keyMap_.set(bH(this,a),Ja(b)),this.count_+=b.length)};g.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var a=[],b=Array.from(this.keyMap_.keys()),c=0;c<b.length;c++){var d=b[c],e=fv(d);d=this.getValues(d);for(var f=0;f<d.length;f++){var h=e;d[f]!==""&&(h+="="+fv(d[f]));a.push(h)}}return this.encodedQuery_=a.join("&")};
g.clone=function(){var a=new ZG;a.encodedQuery_=this.encodedQuery_;this.keyMap_&&(a.keyMap_=new Map(this.keyMap_),a.count_=this.count_);return a};var bH=function(a,b){b=String(b);a.ignoreCase_&&(b=b.toLowerCase());return b};ZG.prototype.setIgnoreCase=function(a){a&&!this.ignoreCase_&&(aH(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};
ZG.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)NAc(arguments[b],function(c,d){this.add(d,c)},this)};var hBc=function(a){var b="";bj(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});return b},iBc=function(a,b,c){if(Lra(c))return a;c=hBc(c);if(typeof a==="string")return VAc(a,fv(b),c);Ir(a,b,c);return a};var jBc=function(){};var kBc=function(a,b){this.requestService=a;this.hookFactory=b===void 0?null:b};Y(kBc,jBc);
var lBc=function(a,b,c){var d=nKa(a.hookFactory,b);return d==null?c:cg.pipe(zg({complete:function(){d.onBeforeSend()}}),hla(c.pipe(zg(function(e){d.onSuccess(e)},function(e){d.onError(e)}))),pg(function(){var e;(e=d.onFinalize)==null||e.call(d)}))},mBc=function(a,b){var c=b.responseCtor||void 0,d=a.requestService,e=d.send,f=b.body instanceof up?sKa(b.body,pKa,qKa,rKa):b.body;return lBc(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 nBc=function(){};nBc.prototype.send=function(a,b){AKa(a);return this.makeRequest(a).pipe(C(function(c){return b?wKa(b,c):c}))};var oBc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.dayOfWeek=a.dayOfWeek==null?null:a.dayOfWeek;this.Serializable$values.periodStartMinutes=a.periodStartMinutes==null?null:a.periodStartMinutes;this.Serializable$values.periodEndMinutes=a.periodEndMinutes==null?null:a.periodEndMinutes};Y(oBc,up);oBc.prototype.getPartialClassMetadata=function(){return{keys:["dayOfWeek","periodEndMinutes","periodStartMinutes"]}};
nd.Object.defineProperties(oBc.prototype,{dayOfWeek:{configurable:!0,enumerable:!0,get:function(){return UG(this,"dayOfWeek")?tp(this,"dayOfWeek"):0},set:function(a){this.Serializable$values.dayOfWeek=a}},periodEndMinutes:{configurable:!0,enumerable:!0,get:function(){return UG(this,"periodEndMinutes")?tp(this,"periodEndMinutes"):0},set:function(a){this.Serializable$values.periodEndMinutes=a}},periodStartMinutes:{configurable:!0,enumerable:!0,get:function(){return UG(this,"periodStartMinutes")?tp(this,
"periodStartMinutes"):0},set:function(a){this.Serializable$values.periodStartMinutes=a}}});var pBc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.userIds=a.userIds==null?null:a.userIds;this.Serializable$values.debugOptions=a.debugOptions==null?null:a.debugOptions};Y(pBc,up);pBc.prototype.getPartialClassMetadata=function(){return{arrays:{userIds:cH},keys:["debugOptions","userIds"],objects:{debugOptions:qBc}}};
nd.Object.defineProperties(pBc.prototype,{debugOptions:{configurable:!0,enumerable:!0,get:function(){return UG(this,"debugOptions")?tp(this,"debugOptions"):this.debugOptions=new qBc},set:function(a){this.Serializable$values.debugOptions=a}},userIds:{configurable:!0,enumerable:!0,get:function(){return UG(this,"userIds")?tp(this,"userIds"):this.userIds=[]},set:function(a){this.Serializable$values.userIds=a}}});
var rBc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.results=a.results==null?null:a.results};Y(rBc,up);rBc.prototype.getPartialClassMetadata=function(){return{arrays:{results:sBc},keys:["results"]}};
nd.Object.defineProperties(rBc.prototype,{hasResults:{configurable:!0,enumerable:!0,get:function(){return tp(this,"results")!==null}},results:{configurable:!0,enumerable:!0,get:function(){return UG(this,"results")?tp(this,"results"):this.results=[]},set:function(a){this.Serializable$values.results=a}}});
var tBc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.eventSummary=a.eventSummary==null?null:a.eventSummary;this.Serializable$values.occupiedUntil=a.occupiedUntil==null?null:a.occupiedUntil;this.Serializable$values.nextAvailable=a.nextAvailable==null?null:a.nextAvailable;this.Serializable$values.committedUntil=a.committedUntil==null?null:a.committedUntil};Y(tBc,up);
tBc.prototype.getPartialClassMetadata=function(){return{keys:["committedUntil","eventSummary","nextAvailable","occupiedUntil"]}};
nd.Object.defineProperties(tBc.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return UG(this,"committedUntil")?tp(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return UG(this,"eventSummary")?tp(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return UG(this,"nextAvailable")?tp(this,
"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return UG(this,"occupiedUntil")?tp(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});
var uBc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.location=a.location==null?null:a.location;this.Serializable$values.geoCoordinates=a.geoCoordinates==null?null:a.geoCoordinates;this.Serializable$values.label=a.label==null?null:a.label};Y(uBc,up);uBc.prototype.getPartialClassMetadata=function(){return{keys:["geoCoordinates","label","location"],objects:{geoCoordinates:vBc}}};
nd.Object.defineProperties(uBc.prototype,{geoCoordinates:{configurable:!0,enumerable:!0,get:function(){return UG(this,"geoCoordinates")?tp(this,"geoCoordinates"):this.geoCoordinates=new vBc},set:function(a){this.Serializable$values.geoCoordinates=a}},label:{configurable:!0,enumerable:!0,get:function(){return UG(this,"label")?tp(this,"label"):""},set:function(a){this.Serializable$values.label=a}},location:{configurable:!0,enumerable:!0,get:function(){return UG(this,"location")?tp(this,"location"):
""},set:function(a){this.Serializable$values.location=a}}});var wBc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.occupiedUntil=a.occupiedUntil==null?null:a.occupiedUntil;this.Serializable$values.committedUntil=a.committedUntil==null?null:a.committedUntil;this.Serializable$values.nextAvailable=a.nextAvailable==null?null:a.nextAvailable};Y(wBc,up);wBc.prototype.getPartialClassMetadata=function(){return{keys:["committedUntil","nextAvailable","occupiedUntil"]}};
nd.Object.defineProperties(wBc.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return UG(this,"committedUntil")?tp(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return UG(this,"nextAvailable")?tp(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return UG(this,"occupiedUntil")?tp(this,
"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var xBc=function(){this.Serializable$values={}};Y(xBc,up);xBc.prototype.getPartialClassMetadata=function(){return{keys:[]}};
var yBc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.eventSummary=a.eventSummary==null?null:a.eventSummary;this.Serializable$values.inMeetingsUntil=a.inMeetingsUntil==null?null:a.inMeetingsUntil;this.Serializable$values.occupiedUntil=a.occupiedUntil==null?null:a.occupiedUntil;this.Serializable$values.committedUntil=a.committedUntil==null?null:a.committedUntil;this.Serializable$values.nextAvailable=a.nextAvailable==null?null:a.nextAvailable};Y(yBc,up);
yBc.prototype.getPartialClassMetadata=function(){return{keys:["committedUntil","eventSummary","inMeetingsUntil","nextAvailable","occupiedUntil"]}};
nd.Object.defineProperties(yBc.prototype,{committedUntil:{configurable:!0,enumerable:!0,get:function(){return UG(this,"committedUntil")?tp(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return UG(this,"eventSummary")?tp(this,"eventSummary"):""},set:function(a){this.Serializable$values.eventSummary=a}},inMeetingsUntil:{configurable:!0,enumerable:!0,get:function(){return UG(this,"inMeetingsUntil")?tp(this,
"inMeetingsUntil"):""},set:function(a){this.Serializable$values.inMeetingsUntil=a}},nextAvailable:{configurable:!0,enumerable:!0,get:function(){return UG(this,"nextAvailable")?tp(this,"nextAvailable"):""},set:function(a){this.Serializable$values.nextAvailable=a}},occupiedUntil:{configurable:!0,enumerable:!0,get:function(){return UG(this,"occupiedUntil")?tp(this,"occupiedUntil"):""},set:function(a){this.Serializable$values.occupiedUntil=a}}});var zBc=function(){this.Serializable$values={}};Y(zBc,up);
zBc.prototype.getPartialClassMetadata=function(){return{keys:[]}};var vBc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.latitude=a.latitude==null?null:a.latitude;this.Serializable$values.longitude=a.longitude==null?null:a.longitude};Y(vBc,up);vBc.prototype.getPartialClassMetadata=function(){return{keys:["latitude","longitude"]}};
nd.Object.defineProperties(vBc.prototype,{latitude:{configurable:!0,enumerable:!0,get:function(){return UG(this,"latitude")?tp(this,"latitude"):0},set:function(a){this.Serializable$values.latitude=a}},longitude:{configurable:!0,enumerable:!0,get:function(){return UG(this,"longitude")?tp(this,"longitude"):0},set:function(a){this.Serializable$values.longitude=a}}});var ABc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.timeZone=a.timeZone==null?null:a.timeZone};
Y(ABc,up);ABc.prototype.getPartialClassMetadata=function(){return{keys:["timeZone"]}};nd.Object.defineProperties(ABc.prototype,{timeZone:{configurable:!0,enumerable:!0,get:function(){return UG(this,"timeZone")?tp(this,"timeZone"):""},set:function(a){this.Serializable$values.timeZone=a}}});
var BBc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.experimentalBuildingId=a.experimentalBuildingId==null?null:a.experimentalBuildingId;this.Serializable$values.experimentalDeskId=a.experimentalDeskId==null?null:a.experimentalDeskId;this.Serializable$values.experimentalFloorId=a.experimentalFloorId==null?null:a.experimentalFloorId;this.Serializable$values.label=a.label==null?null:a.label};Y(BBc,up);
BBc.prototype.getPartialClassMetadata=function(){return{keys:["experimentalBuildingId","experimentalDeskId","experimentalFloorId","label"]}};
nd.Object.defineProperties(BBc.prototype,{experimentalBuildingId:{configurable:!0,enumerable:!0,get:function(){return UG(this,"experimentalBuildingId")?tp(this,"experimentalBuildingId"):""},set:function(a){this.Serializable$values.experimentalBuildingId=a}},experimentalDeskId:{configurable:!0,enumerable:!0,get:function(){return UG(this,"experimentalDeskId")?tp(this,"experimentalDeskId"):""},set:function(a){this.Serializable$values.experimentalDeskId=a}},experimentalFloorId:{configurable:!0,enumerable:!0,
get:function(){return UG(this,"experimentalFloorId")?tp(this,"experimentalFloorId"):""},set:function(a){this.Serializable$values.experimentalFloorId=a}},label:{configurable:!0,enumerable:!0,get:function(){return UG(this,"label")?tp(this,"label"):""},set:function(a){this.Serializable$values.label=a}}});
var CBc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.comeBackTime=a.comeBackTime==null?null:a.comeBackTime;this.Serializable$values.eventSummary=a.eventSummary==null?null:a.eventSummary;this.Serializable$values.committedUntil=a.committedUntil==null?null:a.committedUntil};Y(CBc,up);CBc.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime","committedUntil","eventSummary"]}};
nd.Object.defineProperties(CBc.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return UG(this,"comeBackTime")?tp(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}},committedUntil:{configurable:!0,enumerable:!0,get:function(){return UG(this,"committedUntil")?tp(this,"committedUntil"):""},set:function(a){this.Serializable$values.committedUntil=a}},eventSummary:{configurable:!0,enumerable:!0,get:function(){return UG(this,"eventSummary")?tp(this,"eventSummary"):
""},set:function(a){this.Serializable$values.eventSummary=a}}});var DBc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.comeBackTime=a.comeBackTime==null?null:a.comeBackTime};Y(DBc,up);DBc.prototype.getPartialClassMetadata=function(){return{keys:["comeBackTime"]}};
nd.Object.defineProperties(DBc.prototype,{comeBackTime:{configurable:!0,enumerable:!0,get:function(){return UG(this,"comeBackTime")?tp(this,"comeBackTime"):""},set:function(a){this.Serializable$values.comeBackTime=a}}});var EBc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.code=a.code==null?null:a.code;this.Serializable$values.message=a.message==null?null:a.message;this.Serializable$values.details=a.details==null?null:a.details};Y(EBc,up);
EBc.prototype.getPartialClassMetadata=function(){return{keys:["code","details","message"],objectMaps:{details:{ctor:null,isPropertyArray:!0,isSerializable:!1,isValueArray:!1}}}};
nd.Object.defineProperties(EBc.prototype,{code:{configurable:!0,enumerable:!0,get:function(){return UG(this,"code")?tp(this,"code"):0},set:function(a){this.Serializable$values.code=a}},details:{configurable:!0,enumerable:!0,get:function(){return UG(this,"details")?tp(this,"details"):this.details=[]},set:function(a){this.Serializable$values.details=a}},message:{configurable:!0,enumerable:!0,get:function(){return UG(this,"message")?tp(this,"message"):""},set:function(a){this.Serializable$values.message=
a}}});var dH=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.startTime=a.startTime==null?null:a.startTime;this.Serializable$values.endTime=a.endTime==null?null:a.endTime};Y(dH,up);dH.prototype.getPartialClassMetadata=function(){return{keys:["endTime","startTime"]}};
nd.Object.defineProperties(dH.prototype,{endTime:{configurable:!0,enumerable:!0,get:function(){return UG(this,"endTime")?tp(this,"endTime"):""},set:function(a){this.Serializable$values.endTime=a}},startTime:{configurable:!0,enumerable:!0,get:function(){return UG(this,"startTime")?tp(this,"startTime"):""},set:function(a){this.Serializable$values.startTime=a}}});
var FBc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.overrideCurrentTime=a.overrideCurrentTime==null?null:a.overrideCurrentTime;this.Serializable$values.computationDuration=a.computationDuration==null?null:a.computationDuration};Y(FBc,up);FBc.prototype.getPartialClassMetadata=function(){return{keys:["computationDuration","overrideCurrentTime"]}};
nd.Object.defineProperties(FBc.prototype,{computationDuration:{configurable:!0,enumerable:!0,get:function(){return UG(this,"computationDuration")?tp(this,"computationDuration"):""},set:function(a){this.Serializable$values.computationDuration=a}},overrideCurrentTime:{configurable:!0,enumerable:!0,get:function(){return UG(this,"overrideCurrentTime")?tp(this,"overrideCurrentTime"):""},set:function(a){this.Serializable$values.overrideCurrentTime=a}}});
var GBc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.nextCommitmentTime=a.nextCommitmentTime==null?null:a.nextCommitmentTime;this.Serializable$values.nextCommitmentStatus=a.nextCommitmentStatus==null?null:a.nextCommitmentStatus};Y(GBc,up);GBc.prototype.getPartialClassMetadata=function(){return{keys:["nextCommitmentStatus","nextCommitmentTime"],objects:{nextCommitmentStatus:eH}}};
nd.Object.defineProperties(GBc.prototype,{nextCommitmentStatus:{configurable:!0,enumerable:!0,get:function(){return UG(this,"nextCommitmentStatus")?tp(this,"nextCommitmentStatus"):this.nextCommitmentStatus=new eH},set:function(a){this.Serializable$values.nextCommitmentStatus=a}},nextCommitmentTime:{configurable:!0,enumerable:!0,get:function(){return UG(this,"nextCommitmentTime")?tp(this,"nextCommitmentTime"):""},set:function(a){this.Serializable$values.nextCommitmentTime=a}}});
var HBc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.timeRange=a.timeRange==null?null:a.timeRange};Y(HBc,up);HBc.prototype.getPartialClassMetadata=function(){return{keys:["timeRange"],objects:{timeRange:dH}}};nd.Object.defineProperties(HBc.prototype,{timeRange:{configurable:!0,enumerable:!0,get:function(){return UG(this,"timeRange")?tp(this,"timeRange"):this.timeRange=new dH},set:function(a){this.Serializable$values.timeRange=a}}});
var IBc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.availabilities=a.availabilities==null?null:a.availabilities;this.Serializable$values.workingHours=a.workingHours==null?null:a.workingHours;this.Serializable$values.nextPollTime=a.nextPollTime==null?null:a.nextPollTime};Y(IBc,up);IBc.prototype.getPartialClassMetadata=function(){return{arrays:{availabilities:JBc},keys:["availabilities","nextPollTime","workingHours"],objects:{workingHours:KBc}}};
nd.Object.defineProperties(IBc.prototype,{availabilities:{configurable:!0,enumerable:!0,get:function(){return UG(this,"availabilities")?tp(this,"availabilities"):this.availabilities=[]},set:function(a){this.Serializable$values.availabilities=a}},nextPollTime:{configurable:!0,enumerable:!0,get:function(){return UG(this,"nextPollTime")?tp(this,"nextPollTime"):""},set:function(a){this.Serializable$values.nextPollTime=a}},workingHours:{configurable:!0,enumerable:!0,get:function(){return UG(this,"workingHours")?
tp(this,"workingHours"):this.workingHours=new KBc},set:function(a){this.Serializable$values.workingHours=a}}});var qBc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.forceEnableUserStatusCache=a.forceEnableUserStatusCache==null?null:a.forceEnableUserStatusCache;this.Serializable$values.timeSettings=a.timeSettings==null?null:a.timeSettings};Y(qBc,up);qBc.prototype.getPartialClassMetadata=function(){return{keys:["forceEnableUserStatusCache","timeSettings"],objects:{timeSettings:FBc}}};
nd.Object.defineProperties(qBc.prototype,{forceEnableUserStatusCache:{configurable:!0,enumerable:!0,get:function(){return UG(this,"forceEnableUserStatusCache")?tp(this,"forceEnableUserStatusCache"):!1},set:function(a){this.Serializable$values.forceEnableUserStatusCache=a}},timeSettings:{configurable:!0,enumerable:!0,get:function(){return UG(this,"timeSettings")?tp(this,"timeSettings"):this.timeSettings=new FBc},set:function(a){this.Serializable$values.timeSettings=a}}});
var sBc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.userId=a.userId==null?null:a.userId;this.Serializable$values.status=a.status==null?null:a.status;this.Serializable$values.userAvailabilities=a.userAvailabilities==null?null:a.userAvailabilities};Y(sBc,up);sBc.prototype.getPartialClassMetadata=function(){return{keys:["status","userAvailabilities","userId"],objects:{status:EBc,userAvailabilities:IBc,userId:cH}}};
nd.Object.defineProperties(sBc.prototype,{hasStatus:{configurable:!0,enumerable:!0,get:function(){return tp(this,"status")!==null}},status:{configurable:!0,enumerable:!0,get:function(){return UG(this,"status")?tp(this,"status"):this.status=new EBc},set:function(a){this.Serializable$values.status=a}},hasUserAvailabilities:{configurable:!0,enumerable:!0,get:function(){return tp(this,"userAvailabilities")!==null}},userAvailabilities:{configurable:!0,enumerable:!0,get:function(){return UG(this,"userAvailabilities")?
tp(this,"userAvailabilities"):this.userAvailabilities=new IBc},set:function(a){this.Serializable$values.userAvailabilities=a}},hasUserId:{configurable:!0,enumerable:!0,get:function(){return tp(this,"userId")!==null}},userId:{configurable:!0,enumerable:!0,get:function(){return UG(this,"userId")?tp(this,"userId"):this.userId=new cH},set:function(a){this.Serializable$values.userId=a}}});
var JBc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.timeRange=a.timeRange==null?null:a.timeRange;this.Serializable$values.status=a.status==null?null:a.status;this.Serializable$values.contexts=a.contexts==null?null:a.contexts};Y(JBc,up);JBc.prototype.getPartialClassMetadata=function(){return{keys:["contexts","status","timeRange"],objects:{contexts:LBc,status:eH,timeRange:dH}}};
nd.Object.defineProperties(JBc.prototype,{hasContexts:{configurable:!0,enumerable:!0,get:function(){return tp(this,"contexts")!==null}},contexts:{configurable:!0,enumerable:!0,get:function(){return UG(this,"contexts")?tp(this,"contexts"):this.contexts=new LBc},set:function(a){this.Serializable$values.contexts=a}},hasStatus:{configurable:!0,enumerable:!0,get:function(){return tp(this,"status")!==null}},status:{configurable:!0,enumerable:!0,get:function(){return UG(this,"status")?tp(this,"status"):
this.status=new eH},set:function(a){this.Serializable$values.status=a}},timeRange:{configurable:!0,enumerable:!0,get:function(){return UG(this,"timeRange")?tp(this,"timeRange"):this.timeRange=new dH},set:function(a){this.Serializable$values.timeRange=a}}});
var LBc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.workingElsewhere=a.workingElsewhere==null?null:a.workingElsewhere;this.Serializable$values.upcomingOoo=a.upcomingOoo==null?null:a.upcomingOoo;this.Serializable$values.localTime=a.localTime==null?null:a.localTime;this.Serializable$values.upcomingCommitmentContext=a.upcomingCommitmentContext==null?null:a.upcomingCommitmentContext};Y(LBc,up);
LBc.prototype.getPartialClassMetadata=function(){return{keys:["localTime","upcomingCommitmentContext","upcomingOoo","workingElsewhere"],objects:{localTime:ABc,upcomingCommitmentContext:GBc,upcomingOoo:HBc,workingElsewhere:MBc}}};
nd.Object.defineProperties(LBc.prototype,{hasLocalTime:{configurable:!0,enumerable:!0,get:function(){return tp(this,"localTime")!==null}},localTime:{configurable:!0,enumerable:!0,get:function(){return UG(this,"localTime")?tp(this,"localTime"):this.localTime=new ABc},set:function(a){this.Serializable$values.localTime=a}},upcomingCommitmentContext:{configurable:!0,enumerable:!0,get:function(){return UG(this,"upcomingCommitmentContext")?tp(this,"upcomingCommitmentContext"):this.upcomingCommitmentContext=
new GBc},set:function(a){this.Serializable$values.upcomingCommitmentContext=a}},upcomingOoo:{configurable:!0,enumerable:!0,get:function(){return UG(this,"upcomingOoo")?tp(this,"upcomingOoo"):this.upcomingOoo=new HBc},set:function(a){this.Serializable$values.upcomingOoo=a}},workingElsewhere:{configurable:!0,enumerable:!0,get:function(){return UG(this,"workingElsewhere")?tp(this,"workingElsewhere"):this.workingElsewhere=new MBc},set:function(a){this.Serializable$values.workingElsewhere=a}}});
var cH=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.obfuscatedGaiaId=a.obfuscatedGaiaId==null?null:a.obfuscatedGaiaId;this.Serializable$values.email=a.email==null?null:a.email};Y(cH,up);cH.prototype.getPartialClassMetadata=function(){return{keys:["email","obfuscatedGaiaId"]}};
nd.Object.defineProperties(cH.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return UG(this,"email")?tp(this,"email"):""},set:function(a){this.Serializable$values.email=a}},obfuscatedGaiaId:{configurable:!0,enumerable:!0,get:function(){return UG(this,"obfuscatedGaiaId")?tp(this,"obfuscatedGaiaId"):""},set:function(a){this.Serializable$values.obfuscatedGaiaId=a}}});
var NBc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.homeLocation=a.homeLocation==null?null:a.homeLocation;this.Serializable$values.customLocation=a.customLocation==null?null:a.customLocation;this.Serializable$values.officeLocation=a.officeLocation==null?null:a.officeLocation};Y(NBc,up);NBc.prototype.getPartialClassMetadata=function(){return{keys:["customLocation","homeLocation","officeLocation"],objects:{customLocation:uBc,homeLocation:xBc,officeLocation:BBc}}};
nd.Object.defineProperties(NBc.prototype,{customLocation:{configurable:!0,enumerable:!0,get:function(){return UG(this,"customLocation")?tp(this,"customLocation"):this.customLocation=new uBc},set:function(a){this.Serializable$values.customLocation=a}},homeLocation:{configurable:!0,enumerable:!0,get:function(){return UG(this,"homeLocation")?tp(this,"homeLocation"):this.homeLocation=new xBc},set:function(a){this.Serializable$values.homeLocation=a}},officeLocation:{configurable:!0,enumerable:!0,get:function(){return UG(this,
"officeLocation")?tp(this,"officeLocation"):this.officeLocation=new BBc},set:function(a){this.Serializable$values.officeLocation=a}}});
var eH=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.inactive=a.inactive==null?null:a.inactive;this.Serializable$values.doNotDisturb=a.doNotDisturb==null?null:a.doNotDisturb;this.Serializable$values.outsideWorkingHours=a.outsideWorkingHours==null?null:a.outsideWorkingHours;this.Serializable$values.outOfOffice=a.outOfOffice==null?null:a.outOfOffice;this.Serializable$values.inMeeting=a.inMeeting==null?null:a.inMeeting;this.Serializable$values.calendarBusy=a.calendarBusy==
null?null:a.calendarBusy};Y(eH,up);eH.prototype.getPartialClassMetadata=function(){return{keys:"calendarBusy doNotDisturb inMeeting inactive outOfOffice outsideWorkingHours".split(" "),objects:{calendarBusy:tBc,doNotDisturb:wBc,inMeeting:yBc,inactive:zBc,outOfOffice:CBc,outsideWorkingHours:DBc}}};
nd.Object.defineProperties(eH.prototype,{calendarBusy:{configurable:!0,enumerable:!0,get:function(){return UG(this,"calendarBusy")?tp(this,"calendarBusy"):this.calendarBusy=new tBc},set:function(a){this.Serializable$values.calendarBusy=a}},doNotDisturb:{configurable:!0,enumerable:!0,get:function(){return UG(this,"doNotDisturb")?tp(this,"doNotDisturb"):this.doNotDisturb=new wBc},set:function(a){this.Serializable$values.doNotDisturb=a}},inMeeting:{configurable:!0,enumerable:!0,get:function(){return UG(this,
"inMeeting")?tp(this,"inMeeting"):this.inMeeting=new yBc},set:function(a){this.Serializable$values.inMeeting=a}},inactive:{configurable:!0,enumerable:!0,get:function(){return UG(this,"inactive")?tp(this,"inactive"):this.inactive=new zBc},set:function(a){this.Serializable$values.inactive=a}},hasOutOfOffice:{configurable:!0,enumerable:!0,get:function(){return tp(this,"outOfOffice")!==null}},outOfOffice:{configurable:!0,enumerable:!0,get:function(){return UG(this,"outOfOffice")?tp(this,"outOfOffice"):
this.outOfOffice=new CBc},set:function(a){this.Serializable$values.outOfOffice=a}},outsideWorkingHours:{configurable:!0,enumerable:!0,get:function(){return UG(this,"outsideWorkingHours")?tp(this,"outsideWorkingHours"):this.outsideWorkingHours=new DBc},set:function(a){this.Serializable$values.outsideWorkingHours=a}}});var MBc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.location=a.location==null?null:a.location};Y(MBc,up);
MBc.prototype.getPartialClassMetadata=function(){return{keys:["location"],objects:{location:NBc}}};nd.Object.defineProperties(MBc.prototype,{location:{configurable:!0,enumerable:!0,get:function(){return UG(this,"location")?tp(this,"location"):this.location=new NBc},set:function(a){this.Serializable$values.location=a}}});var KBc=function(a){a=a===void 0?{}:a;this.Serializable$values={};this.Serializable$values.availableTime=a.availableTime==null?null:a.availableTime};Y(KBc,up);
KBc.prototype.getPartialClassMetadata=function(){return{arrays:{availableTime:oBc},keys:["availableTime"]}};nd.Object.defineProperties(KBc.prototype,{availableTime:{configurable:!0,enumerable:!0,get:function(){return UG(this,"availableTime")?tp(this,"availableTime"):this.availableTime=[]},set:function(a){this.Serializable$values.availableTime=a}}});var OBc=new le("API_VERSION"),PBc=new le("REQUEST_SERVICE for waldo_service_api"),fH=function(){};fH.\u0275fac=function(a){return new (a||fH)};
fH.\u0275mod=uf({type:fH});fH.\u0275inj=Dd({});var QBc={$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"},gH=function(a,b,c){this.gapiVersion=a;this.gapiVersion=a==null?"v1alpha":a;this.$apiClient=new kBc(b,c)};gH.\u0275fac=function(a){return new (a||gH)(be(OBc,8),be(PBc),be(KAc,8))};gH.\u0275prov=Cd({token:gH,factory:gH.\u0275fac});
var RBc=function(){};RBc.\u0275fac=function(a){return new (a||RBc)};RBc.\u0275prov=Cd({token:RBc,factory:function(a){return gH.\u0275fac(a)},providedIn:fH});var hH=function(a){var b=this;this.apiStub=a;this.result=new tg;this.destroyed=new sg(1);this.trigger=new tg;this.batchedTrigger=this.trigger.pipe(ela(this.trigger.pipe(dla(200))));this.responseHandler=function(c){if(c.hasResults){c=l(c.results);for(var d=c.next();!d.done;d=c.next()){var e=d.value;d="";e.hasUserId&&e.userId.email&&(d=e.userId.email);if(d)if(e.hasUserAvailabilities){e=e.userAvailabilities.availabilities[0];if(e.hasStatus&&e.status.hasOutOfOffice){var f=e.status.outOfOffice;if(f.comeBackTime){var h=
f=new Date(f.comeBackTime),k=new Date;f=k.getFullYear()===h.getFullYear()&&k.getMonth()===h.getMonth()&&k.getDate()===h.getDate()?"at "+f.toLocaleString("en-Us",{hour:"numeric",minute:"2-digit",hour12:!0}):"on "+(f.getFullYear()!==(new Date).getFullYear()?f.toLocaleString("en-Us",{weekday:"short",month:"short",day:"numeric",year:"numeric"}):f.toLocaleString("en-Us",{weekday:"short",month:"short",day:"numeric"}));f=" - back "+f}else f="";f="Out of Office"+f}else f="";b.result.next({emailAddress:d,
availability:f,timezone:e.hasContexts&&e.contexts.hasLocalTime?e.contexts.localTime.timeZone:""})}else b.result.next({emailAddress:d,availability:"",timezone:""})}}};this.batchedTrigger.pipe(yg(this.destroyed)).subscribe(function(c){c=[].concat(p(new Set(c)));SBc(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)})},SBc=function(a,b){var c,d;z(function(e){for(var f=new pBc,h=[],k=l(b),q=k.next();!q.done;q=k.next()){q=q.value;var v=new cH;v.email=q;h.push(v)}f.userIds=
h;c=f;f=a.apiStub;var A=A===void 0?{}:A;var E=E===void 0?{}:E;d=mBc(f.$apiClient,{body:c,httpMethod:"POST",methodId:"waldo_service_api_from_stubby_sandbox.useravailabilities.batchget",path:"/"+f.gapiVersion+"/useravailabilities:batchget",queryParams:BKa(A,QBc,E),responseCtor:rBc});d.pipe(yg(a.destroyed)).subscribe(a.responseHandler);Lf(e)})},TBc=function(a,b){if(!b)return Nf({emailAddress:b,availability:"",timezone:""});a.trigger.next(b);return a.result.pipe(eg(function(c){return c.emailAddress===
b}))},UBc=function(a,b){return TBc(a,b).pipe(C(function(c){return c.availability}))};hH.prototype.ngOnDestroy=function(){this.destroyed.next()};hH.\u0275fac=function(a){return new (a||hH)(be(RBc))};hH.\u0275prov=Cd({token:hH,factory:hH.\u0275fac});var iH=function(){var a=this;this.waldoAvailabilityService=r(hH);this.user="";this.userSubject=new sg(1);this.availability=this.userSubject.pipe(xg(function(b){return UBc(a.waldoAvailabilityService,b)}))};iH.prototype.ngOnChanges=function(){this.userSubject.next(this.user)};iH.\u0275fac=function(a){return new (a||iH)};
iH.\u0275cmp=y({type:iH,selectors:[["waldo-availability-chip"]],inputs:{user:"user"},standalone:!1,features:[ov],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&&(D(0,CKa,6,3,"div",0),U(1,"async"));a&2&&I("ngIf",V(1,1,b.availability))},dependencies:[Rv,Tv],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 jH=function(){this.refreshMonitor=r(gE);this.user="";this.coinonly=null};jH.\u0275fac=function(a){return new (a||jH)};jH.\u0275cmp=y({type:jH,selectors:[["b-availability-chip"]],inputs:{user:"user",coinonly:"coinonly"},standalone:!1,decls:1,vars:1,consts:[[3,"refreshable"],[3,"user"]],template:function(a,b){a&1&&D(0,DKa,1,2,"ng-template",0);a&2&&I("refreshable",b.refreshMonitor.getObservable())},dependencies:[iH,TG],styles:["waldo-availability-chip[_ngcontent-%COMP%] { margin-left: 5px; }"],changeDetection:0});var kH=function(){this.segments=[];this.clickMain=new LE;this.clickSegment=new LE};kH.prototype.ngOnInit=function(){};nd.Object.defineProperties(kH.prototype,{showMoreButton:{configurable:!0,enumerable:!0,get:function(){return this.segments.length>0}}});kH.\u0275fac=function(a){return new (a||kH)};
kH.\u0275cmp=y({type:kH,selectors:[["b-fab-segmented"]],inputs:{label:"label",icon:"icon",segments:"segments",href:"href"},outputs:{clickMain:"clickMain",clickSegment:"clickSegment"},standalone:!1,decls:5,vars:6,consts:[["createMenu","matMenu"],[1,"shrink-wrap"],["mat-button","","role","button",1,"main","button-xl",3,"click"],[1,"icon-xl",3,"svgIcon"],["type","button","mat-button","","aria-label","More options",1,"more","button-xl","square-left",3,"matMenuTriggerFor"],["svgIcon","arrow-dropdown"],
["mat-menu-item","",3,"href"],["mat-menu-item","",3,"click","href"]],template:function(a,b){a&1&&(J(0,"span",1)(1,"a",2),N("click",function(){return b.clickMain.emit(b.label)}),M(2,"mat-icon",3),R(3),K(),F(4,FKa,6,1),K());a&2&&(x(),uh("square-right",b.showMoreButton),Lg("href",b.href||void 0,hf),x(),I("svgIcon",b.icon),x(),T(" ",b.label," "),x(),G(b.showMoreButton?4:-1))},dependencies:[FC,oG,Jx,pG,sG,qG,uG],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 VBc=function(a,b){return b.value},WBc=function(){this.choices=[];this.value="";this.valueChange=new LE};WBc.\u0275fac=function(a){return new (a||WBc)};
WBc.\u0275cmp=y({type:WBc,selectors:[["button-toggle"]],inputs:{choices:"choices",value:"value"},outputs:{valueChange:"valueChange"},standalone:!1,decls:2,vars:0,consts:[["type","button","mat-button","","color","primary","role","radio",1,"medium",3,"disableRipple","matTooltip"],["type","button","mat-button","","color","primary","role","radio",1,"medium",3,"click","disableRipple","matTooltip"],[1,"icon-s",3,"svgIcon"]],template:function(a,b){a&1&&Pg(0,HKa,3,5,"button",0,VBc);a&2&&Qg(b.choices)},dependencies:[FC,
oG,Jx,zG,xG],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 lH=function(){};lH.\u0275fac=function(a){return new (a||lH)};lH.\u0275mod=uf({type:lH});lH.\u0275inj=Dd({providers:[iAc],imports:[Cx,px,ox,Vw,px]});var mH=function(){};mH.\u0275fac=function(a){return new (a||mH)};mH.\u0275mod=uf({type:mH});mH.\u0275inj=Dd({imports:[lH]});var XBc=[kH,WBc],nH=function(){};nH.\u0275fac=function(a){return new (a||nH)};nH.\u0275mod=uf({type:nH});nH.\u0275inj=Dd({imports:[HC,BG,mH,CG]});var oH=function(){};oH.prototype.onPressBack=function(){var a;(a=window.history)==null||a.back()};oH.\u0275fac=function(a){return new (a||oH)};
oH.\u0275cmp=y({type:oH,selectors:[["empty-toolbar"]],standalone:!1,decls:3,vars:0,consts:[[1,"button-bar","flex-kids-x","align-items-center","border-bottom","padded-s"],["type","button","mat-icon-button","","color","primary","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward"]],template:function(a,b){a&1&&(J(0,"section",0)(1,"button",1),N("click",function(){return b.onPressBack()}),M(2,"mat-icon",2),K()())},dependencies:[FC,oG,Kx,zG,xG],styles:[".button-bar[_ngcontent-%COMP%] {\n      height: 46px;\n      box-sizing: border-box;\n    }"]});var pH=function(){};pH.\u0275fac=function(a){return new (a||pH)};pH.\u0275cmp=y({type:pH,selectors:[["b-glue"]],standalone:!1,ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"no-wrapping"]],template:function(a){a&1&&(ch(),J(0,"span",0),dh(1),K())},styles:['.no-wrapping[_ngcontent-%COMP%] {\n  white-space: nowrap;\n}\n\n.no-wrapping[_ngcontent-%COMP%]::after {\n  content: "\\002060"\n}'],changeDetection:0});var qH=function(){var a=this;this.cdr=r(NE,{self:!0});this.events=r(FB);this.ngZone=r(Ph);this.HOTKEYS=sp;this.lastOpenPosition=this.width=220;this.direction="ltr";this.maxWidth=700;this.widthChanged=new LE;this.widthAtDragStart=this.width;this.startDragging=function(b){a.dragStart=b;a.widthAtDragStart=a.width};this.minSnapWidth=185;this.onMousemove=function(b){a.isDragging&&(a.setWidth(a.widthAtDragStart+(b.pageX-(a.dragStart||0))*(a.isLTR?1:-1)),a.cdr.detectChanges())};this.onMouseup=function(){a.dragStart=
void 0;a.cdr.detectChanges()};this.broadcastWidthChange=vz(function(b){a.widthChanged.emit(b);a.events.sidebarWidthChanged.next(b)},400);this.trackKeyboardResizing=vz(function(){Fo("sidebar","resizeKeyboard")},2E3)};qH.prototype.ngOnInit=function(){var a=this;this.ngZone.runOutsideAngular(function(){document.addEventListener("mousemove",a.onMousemove)});document.addEventListener("mouseup",this.onMouseup,!0)};
qH.prototype.ngOnDestroy=function(){document.removeEventListener("mousemove",this.onMousemove);document.removeEventListener("mouseup",this.onMouseup,!0)};var YBc=function(a,b){var c=a.width+b;c<a.minSnapWidth&&(c=b<0?0:a.minSnapWidth);a.setWidth(c);a.trackKeyboardResizing()};qH.prototype.toggle=function(){this.setWidth(this.isClosed?this.lastOpenPosition:0)};
qH.prototype.setWidth=function(a){var b=this.minSnapWidth,c=this.maxWidth;a=a<90?8:a<b?b:Math.min(a,c===void 0?700:c);a>=this.minSnapWidth&&(this.lastOpenPosition=a);this.width=a;this.broadcastWidthChange(a);this.cdr.detectChanges()};
nd.Object.defineProperties(qH.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}}});qH.\u0275fac=function(a){return new (a||qH)};
qH.\u0275cmp=y({type:qH,selectors:[["b-resizable-sidebar"]],hostVars:2,hostBindings:function(a,b){a&2&&vh(b.direction)},inputs:{minWidth:"minWidth",direction:"direction",size:"size",maxWidth:"maxWidth"},outputs:{widthChanged:"widthChanged"},standalone:!1,features:[Fh([NE])],ngContentSelectors:["*"],decls:4,vars:13,consts:[["cdkScrollable","",1,"inner"],[1,"content"],["tabindex","0","role","slider","aria-label","Resize side navigation bar","aria-orientation","horizontal",1,"resizeHandle",3,"onHotkey",
"mousedown","keyup.arrowleft","keyup.arrowright","keyup.space","keyup.enter","dblclick","hotkey"]],template:function(a,b){a&1&&(ch(),J(0,"div",0)(1,"div",1),dh(2),K(),J(3,"div",2),N("onHotkey",function(){return b.toggle()})("mousedown",function(c){return b.startDragging(c.pageX)})("keyup.arrowleft",function(){return YBc(b,-10)})("keyup.arrowright",function(){return YBc(b,10)})("keyup.space",function(){return b.toggle()})("keyup.enter",function(){return b.toggle()})("dblclick",function(){return b.toggle()}),
K()());a&2&&(vh(b.direction),th("width",b.width+"px"),uh("isDragging",b.isDragging)("isClosed",b.isClosed),x(),th("width",b.lastOpenPosition+"px"),x(2),I("hotkey",b.direction==="rtl"?b.HOTKEYS.TOGGLE_RIGHT_SIDEBAR:b.HOTKEYS.TOGGLE_LEFT_SIDEBAR),Lg("aria-valuenow",b.width)("aria-valuetext",b.width+" pixels"))},dependencies:[RG,Sw],styles:['[_nghost-%COMP%]{position:relative}.inner[_ngcontent-%COMP%]{height:100%;overflow-y:auto;overflow-x:hidden;transition:width .2s cubic-bezier(0.165, 0.84, 0.44, 1);display:flex;flex-direction:column}.inner.ltr[_ngcontent-%COMP%]{border-right:1px solid;border-color:#dadce0;border-color:var(--divider)}.inner.rtl[_ngcontent-%COMP%]{border-left:1px solid;border-color:#dadce0;border-color:var(--divider)}.inner.isDragging[_ngcontent-%COMP%]{transition:none}.content[_ngcontent-%COMP%]{position:relative;flex:1;opacity:1;transition:opacity .1s ease-in-out;transition-delay:.1s}.isClosed[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]{display:none;opacity:0;transition-delay:0s}.isDragging[_ngcontent-%COMP%]{user-select:none}.resizeHandle[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;width:8px;cursor:col-resize}.ltr[_ngcontent-%COMP%]   .resizeHandle[_ngcontent-%COMP%]{right:0}.rtl[_ngcontent-%COMP%]   .resizeHandle[_ngcontent-%COMP%]{left:0}.resizeHandle[_ngcontent-%COMP%]:hover, .resizeHandle[_ngcontent-%COMP%]:focus, .isClosed[_ngcontent-%COMP%]   .resizeHandle[_ngcontent-%COMP%]{background:url("https://www.gstatic.com/buganizer/img/v0/grippy_large.png") no-repeat 1px 50%}.resizeHandle[_ngcontent-%COMP%]:hover, .resizeHandle[_ngcontent-%COMP%]:focus{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}/*# sourceMappingURL=resizable_sidebar.css.map */'],
changeDetection:0});var ZBc=new le("intersectionObserverFactory",{factory:function(){return function(a,b){return new IntersectionObserver(a,b)}}}),$Bc=new le("isScrolledOnScreen",{factory:function(){return{fully:IKa,partially:JKa}}}),rH=function(){this.intersectionObserverBuilder=r(ZBc);this.isScrolledOnScreen=r($Bc)};rH.prototype.getObservable=function(a,b){b=b===void 0?!1:b;return window.IntersectionObserver!=null?KKa(a,this.intersectionObserverBuilder,this.isScrolledOnScreen,b):LKa(a,this.isScrolledOnScreen,b)};
var aCc=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(xla(function(f,h){return{cumulativeTime:f.cumulativeTime+(f.wasPreviouslyOnScreen?Date.now()-f.lastTimestamp:0),wasPreviouslyOnScreen:h,lastTimestamp:Date.now()}},d),xg(function(f){if(e===0&&f.wasPreviouslyOnScreen)return Nf(void 0);var h=e-f.cumulativeTime;
return h<0?Nf(void 0):f.wasPreviouslyOnScreen?Nf(void 0).pipe(ng(h)):Bv}),C(function(){}),mg(1))};rH.\u0275fac=function(a){return new (a||rH)};rH.\u0275prov=Cd({token:rH,factory:rH.\u0275fac,providedIn:"root"});var sH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,sH.messageId)};Y(sH,n);sH.prototype.getUrl=function(){return Rc(this,1,void 0,Nc)};sH.prototype.setUrl=function(a){return Qk(this,1,a,Nc)};sH.prototype.hasUrl=function(){return mk(this,1,Nc)};sH.messageId="b.ImageRedirectRequest";var tH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,tH.messageId)};Y(tH,n);tH.prototype.getUrl=function(){return Rc(this,1,void 0,Nc)};tH.prototype.setUrl=function(a){return Qk(this,1,a,Nc)};tH.prototype.hasUrl=function(){return mk(this,1,Nc)};tH.messageId="b.ImageRedirectResponse";var uH=function(){this.executor=r(PA)},bCc=function(a,b){var c=new sH;c.setUrl(b);return a.executor.post({url:"action/imageRedirect",body:c,responseConstructor:tH}).pipe(C(function(d){return d.getUrl()}))};uH.\u0275fac=function(a){return new (a||uH)};uH.\u0275prov=Cd({token:uH,factory:uH.\u0275fac,providedIn:"root"});var MKa=RegExp("^https?:\\/\\/((?:screenshot\\.googleplex\\.com|screenshot\\.corp\\.google\\.com|3p-screenshot\\.corp\\.google\\.com|screen\\.corp\\.google\\.com|screenshot|screen)\\/([\\w-]+)(?:\\.png)?$)"),NKa=RegExp("^http(?:s?):\\/\\/(?:za|za\\.corp\\.google\\.com|alerts|plx-alerts\\.corp\\.google\\.com)\\/chart(?:\\/?)\\?(.*)"),QKa=RegExp("^(https?:\\/\\/)(www\\.)?(go|goto|goto\\.google\\.com)\\/([A-Za-z0-9-]+$)");var YKa={"\u2705":"good","\u26a0\ufe0f":"warn","\u26a0":"warn","\u26d4":"bad","\u274c":"bad","\ud83d\uded1":"bad","\ud83d\udeab":"bad"},$Ka=RegExp("(^|[/;,\\-\\s])+(\\d+)","g"),aLa=RegExp("(b|b-qa|issues)\\/(\\d+)","g");var vH=function(){var a=this;this.imageRedirector=r(uH);this.src$=new Kn("");this.showImage$=new Kn(!1);this.error$=new Kn(!1);this.srcTruncated$=this.src$.pipe(C(function(b){var c=b;c=c===void 0?"":c;var d=d===void 0?48:d;b=[].concat(p(c));if(b.length<=d)d=c;else{var e=Math.floor(d/2);c=b.slice(0,e-1).join("");d=b.slice(-(e-(d%2!==0?1:2))).join("");String.prototype.trimEnd!=null&&String.prototype.trimStart!=null&&(c=c.trimEnd(),d=d.trimStart());d=c+"..."+d}return d}));this.srcRedirected$=Uf([this.src$,
this.showImage$]).pipe(eg(function(b){b=l(b);b.next();return b.next().value}),xg(function(b){var c=l(b).next().value;return(b=SKa(c,!0))?Nf(b):bCc(a.imageRedirector,c).pipe(hg(function(){a.error$.next(!0);return c}))}))};vH.prototype.trigger=function(a){a.preventDefault();a.stopPropagation();this.showImage$.next(!0)};
nd.Object.defineProperties(vH.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}}});vH.\u0275fac=function(a){return new (a||vH)};
vH.\u0275cmp=y({type:vH,selectors:[["b-secure-image-widget"]],inputs:{showByDefault:"showByDefault",src:"src",alt:"alt"},standalone:!1,decls:3,vars:3,consts:[["svgIcon","broken-image",1,"icon-l",3,"matTooltip"],[3,"src"],["tabindex","0",1,"normal-link",3,"href","title"],["tabindex","0",1,"normal-link",3,"click","keydown.enter","href","title"],["svgIcon","image",1,"icon-s"]],template:function(a,b){a&1&&(F(0,fLa,3,3),U(1,"async"),Mg(2,gLa,2,4,"mat-icon",0));a&2&&G(V(1,1,b.error$)===!1?0:2)},dependencies:[FC,
zG,xG,pH,Tv],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 wH=function(){};wH.prototype.onClick=function(a,b){cCc(b)&&a.preventDefault()};var cCc=function(a){if(window.getSelection){var b=window.getSelection();if(b&&!b.isCollapsed&&a.contains(b.focusNode))return!0}return!1};wH.\u0275fac=function(a){return new (a||wH)};wH.\u0275dir=vf({type:wH,selectors:[["","selectionPreventsClick",""]],hostBindings:function(a,b){a&1&&N("click",function(c){return b.onClick(c,c.target)})},standalone:!1});var dCc={HIDE:"HIDE",COLLAPSE:"COLLAPSE",SHOW:"SHOW"},xH=function(){var a=this;this.activeSession=r(Bs);this.userPreferencesManager=r(iG);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.DisplayMode=dCc;this.src$=new Kn("");this.isMarkdownImage$=new Kn(!1);this.displayMode$=Uf([this.src$,this.userPreferencesManager.showInlineImages$,this.isMarkdownImage$]).pipe(C(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"}),wg("HIDE"))};nd.Object.defineProperties(xH.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}}});xH.\u0275fac=function(a){return new (a||xH)};
xH.\u0275cmp=y({type:xH,selectors:[["b-trusted-image"]],inputs:{src:"src",isMarkdownImage:"isMarkdownImage",alt:"alt"},standalone:!1,decls:2,vars:3,consts:[[3,"src","alt","showByDefault"],["target","_blank",3,"href","rel"],[1,"thumbnail",3,"src","alt","showByDefault"]],template:function(a,b){a&1&&(F(0,jLa,3,3),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.src$))?0:-1,c)}},dependencies:[vH,Tv],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});p(XBc);var yH=function(){};yH.\u0275fac=function(a){return new (a||yH)};yH.\u0275mod=uf({type:yH});yH.\u0275inj=Dd({imports:[HC,SG,BG,CG,Vw,nH]});/*

 Copyright 2005, 2007 Bob Ippolito. All Rights Reserved.
 Copyright The Closure Library Authors.
 SPDX-License-Identifier: MIT
*/
var zH=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};
zH.prototype.cancel=function(a){if(this.fired_)this.result_ instanceof zH&&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_||eCc(this,new fCc(this))}};zH.prototype.continue_=function(a,b){this.blocked_=!1;gCc(this,a,b)};
var gCc=function(a,b,c){a.fired_=!0;a.result_=c;a.hadError_=!b;hCc(a)},jCc=function(a){if(a.fired_){if(!a.silentlyCanceled_)throw new iCc(a);a.silentlyCanceled_=!1}};zH.prototype.callback=function(a){jCc(this);gCc(this,!0,a)};var eCc=function(a,b){jCc(a);gCc(a,!1,b)};zH.prototype.addCallback=function(a,b){return kCc(this,a,null,b)};zH.prototype.finally=function(a){var b=this;return lCc(new Promise(function(c,d){kCc(b,function(e){a();c(e)},function(e){a();d(e)})}))};
var kCc=function(a,b,c,d){var e=a.fired_;e||(b===c?b=c=sz(b):(b=sz(b),c=sz(c)));a.sequence_.push([b,c,d]);e&&hCc(a);return a};zH.prototype.then=function(a,b,c){var d,e,f=new xz(function(h,k){e=h;d=k});kCc(this,e,function(h){h instanceof fCc?f.cancel():d(h);return mCc},this);return f.then(a,b,c)};zH.prototype.$goog_Thenable=!0;zH.prototype.isError=function(a){return a instanceof Error};
var nCc=function(a){return Edc(a.sequence_,function(b){return typeof b[1]==="function"})},mCc={},hCc=function(a){if(a.unhandledErrorId_&&a.fired_&&nCc(a)){var b=a.unhandledErrorId_,c=oCc[b];c&&(ea.clearTimeout(c.id_),delete oCc[b]);a.unhandledErrorId_=0}a.parent_&&(a.parent_.branches_--,delete a.parent_);b=a.result_;for(var d=c=!1;a.sequence_.length&&!a.blocked_;){var e=a.sequence_.shift(),f=e[0],h=e[1];e=e[2];if(f=a.hadError_?h:f)try{var k=f.call(e||a.defaultScope_,b);k===mCc&&(k=void 0);k!==void 0&&
(a.hadError_=a.hadError_&&(k==b||a.isError(k)),a.result_=b=k);if(Emc(b)||typeof ea.Promise==="function"&&b instanceof ea.Promise)d=!0,a.blocked_=!0}catch(q){b=q,a.hadError_=!0,nCc(a)||(c=!0)}}a.result_=b;d&&(k=bt(a.continue_,a,!0),d=bt(a.continue_,a,!1),b instanceof zH?(kCc(b,k,d),b.blocking_=!0):b.then(k,d));c&&(b=new pCc(b),oCc[b.id_]=b,a.unhandledErrorId_=b.id_)},lCc=function(a){var b=new zH;a.then(function(c){b.callback(c)},function(c){eCc(b,c)});return b},iCc=function(){ca.call(this)};
zu(iCc,ca);iCc.prototype.message="Deferred has already fired";iCc.prototype.name="AlreadyCalledError";var fCc=function(){ca.call(this)};zu(fCc,ca);fCc.prototype.message="Deferred was canceled";fCc.prototype.name="CanceledError";var pCc=function(a){this.id_=ea.setTimeout(bt(this.throwError,this),0);this.error_=a};pCc.prototype.throwError=function(){delete oCc[this.id_];throw this.error_;};var oCc={};var oLa=function(a,b){var c=b||{};b=c.document||document;var d=Yc(a).toString(),e=(new iz(b)).createElement("SCRIPT"),f={script_:e,timeout_:void 0},h=new zH(qCc,f),k=null,q=c.timeout!=null?c.timeout:5E3;q>0&&(k=window.setTimeout(function(){rCc(e,!0);eCc(h,new sCc(1,"Timeout reached for loading script "+d))},q),f.timeout_=k);e.onload=e.onreadystatechange=function(){e.readyState&&e.readyState!="loaded"&&e.readyState!="complete"||(rCc(e,c.cleanupWhenDone||!1,k),h.callback(null))};e.onerror=function(){rCc(e,
!0,k);eCc(h,new sCc(0,"Error while loading script "+d))};f=c.attributes||{};Qra(f,{type:"text/javascript",charset:"UTF-8"});cmc(e,f);jd(e,a);tCc(b).appendChild(e);return h},tCc=function(a){var b=kz("HEAD",a);return b&&b.length!==0?b[0]:a.documentElement},qCc=function(){if(this&&this.script_){var a=this.script_;a&&a.tagName=="SCRIPT"&&rCc(a,!0,this.timeout_)}},rCc=function(a,b,c){c!=null&&ea.clearTimeout(c);a.onload=function(){};a.onerror=function(){};a.onreadystatechange=function(){};b&&window.setTimeout(function(){pz(a)},
0)},sCc=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ca.call(this,c);this.code=a};zu(sCc,ca);var kLa=null,qLa=new WeakMap;var AH=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=Yf(function(){return mLa().then(function(f){f=f||window.gapi;e.setGapiConfig(f);return sLa(f,{apiKey:e.gapiKey,clientId:e.gapiAuthParams.clientId,scope:e.gapiAuthParams.scope}).then(function(){return f})})})};Y(AH,nBc);
AH.prototype.makeRequest=function(a){var b=this;return this.gapi.pipe(Vf(function(c){var d=Nf(void 0);b.gapiAuthParams.minAuthTokenTimeRemaining!==void 0&&(d=Ef(rLa(c,b.gapiAuthParams.minAuthTokenTimeRemaining)));return d.pipe(Vf(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}))}))}))};
AH.prototype.parseResponse=function(a){return new Cf(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)})})};AH.prototype.setGapiConfig=function(a){for(var b in this.gapiConfigUpdates)this.gapiConfigUpdates.hasOwnProperty(b)&&pLa(a,b,this.gapiConfigUpdates[b])};var uCc=function(a,b,c,d,e){d=d===void 0?{}:d;e=e===void 0?{}:e;AH.call(this,a,c,d,e);this.waldoApiKey=b};Y(uCc,AH);uCc.prototype.makeRequest=function(a){var b=AH.prototype.makeRequest,c=b.call;(a.queryParams||(a.queryParams={})).key=this.waldoApiKey;return c.call(b,this,a)};var vCc=function(a){this.proxiedService=a};Y(vCc,nBc);vCc.prototype.makeRequest=function(a){var b=this;return Yf(function(){return b.proxiedService.makeRequest(a)})};var wCc=new le("environment"),xCc={"client/cors":!0,"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0},BH=function(){};BH.\u0275fac=function(a){return new (a||BH)};BH.\u0275mod=uf({type:BH});BH.\u0275inj=Dd({imports:[aw,fH]});var CH=function(){};CH.\u0275fac=function(a){return new (a||CH)};CH.\u0275mod=uf({type:CH});CH.\u0275inj=Dd({imports:[BH,HC,yH]});var yCc=function(a){this.allowExecution=a;this.queue=[]};yCc.prototype.addTask=function(a){this.queue.push(a);zCc(this)};var zCc=function(a){if(a.queue.length!==0)if(a.allowExecution()){var b=l(a.queue),c=b.next().value;a.queue=aAa(b);c();zCc(a)}else setTimeout(function(){zCc(a)},0)};var DH=function(){var a=this;this.location=r(Mi);this.platformLocation=r(bw);this.activatedRoute=r(Jn);this.router=r(vC);this.scheduler=new yCc(function(){return!Sd(a.router.navigationTransitions.currentNavigation)})};DH.prototype.hash=function(a,b){typeof a!=="undefined"&&ACc(this,a!=null?a:"",b);var c;return(c=this.activatedRoute.snapshot.fragment)!=null?c:""};var ACc=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})})};
DH.prototype.path=function(a,b){typeof a!=="undefined"&&this.setPath(a,b);return this.getPath()};var BCc=function(a,b){a.path(b,!0)};g=DH.prototype;g.getPath=function(){var a=l(this.location.path().split("?")).next().value;return l(a.split("#")).next().value};g.setPath=function(a,b){var c=this;a=a===void 0?"":a;b=b===void 0?!1:b;this.addTask(function(){c.router.navigate([a],{replaceUrl:b,queryParamsHandling:"preserve"})});return this};
g.search=function(a,b,c){typeof a!=="undefined"&&this.setSearch(a,b,c);return this.getSearch()};g.getSearch=function(){return tLa(this.activatedRoute.snapshot.queryParamMap)};g.setSearch=function(a,b,c){var d=this;c=c===void 0?!1:c;this.addTask(function(){var e={};d.router.navigate([],{relativeTo:d.activatedRoute,queryParams:(e[a]=b,e),queryParamsHandling:"merge",replaceUrl:c})})};g.replaceUrl=function(a){return this.setUrl(a,!0)};
g.setUrl=function(a,b){var c=this;b=b===void 0?!1:b;return new Promise(function(d,e){c.addTask(function(){Mr(c.router,a,{replaceUrl:b}).then(d).catch(e)})})};g.getUrl=function(){return this.location.path(!0)};g.addTask=function(a){this.scheduler.addTask(a)};DH.\u0275fac=function(a){return new (a||DH)};DH.\u0275prov=Cd({token:DH,factory:DH.\u0275fac,providedIn:"root"});var EH=function(){this.activeSession=r(Bs);this.createIframe=Bmc(function(){var a=document.createElement("iframe");a.id="first_party_auth_helper";a.setAttribute("aria-hidden","true");a.setAttribute("style","width:1px;height:1px;position:absolute;top:-100px;display:none;");document.body.appendChild(a);return a})},CCc=function(a){var b,c;z(function(d){if(d.nextAddress==1){if(a.activeSession.isAnonymous()||!a.activeSession.getPassiveLoginIframeUrl())return d.return();Gf(d,2);b=a.createIframe();return B(d,
new Promise(function(e,f){var h=function(){try{var q,v,A;if((q=b.contentWindow)==null?0:(v=q.location)==null?0:(A=v.href)==null?0:A.includes("/action/yes"))b.removeEventListener("load",h),clearTimeout(k),e()}catch(E){}},k=setTimeout(function(){b.removeEventListener("load",h);f(Error("Tc"))},5E3);b.addEventListener("load",h);Xda(b,a.activeSession.getPassiveLoginIframeUrl())}),4)}if(d.nextAddress!=2)return uu(d,0);c=Kf(d);console.log("first party auth passive login "+c);Lf(d)})};
EH.\u0275fac=function(a){return new (a||EH)};EH.\u0275prov=Cd({token:EH,factory:EH.\u0275fac,providedIn:"root"});var FH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(FH,n);FH.prototype.getSocialApplication=function(){return pk(this,3)};FH.prototype.getSocialApplicationOrUndefined=function(){return Nm(this,3)};FH.prototype.getAffinityType=function(){return Rc(this,12,"CONTACT_STORE_DEFAULT_AFFINITY")};FH.prototype.setAffinityType=function(a){return Qk(this,12,a)};var GH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(GH,n);GH.prototype.getExperimentIdsList=function(a){return Fj(this,4,Bj(a))};GH.prototype.setExperimentIdsList=function(a){return vc(this,4,a,Cb)};GH.prototype.getExperimentIds=function(){return Ju(this,4)};GH.prototype.setExperimentIds=function(a){Gec(this,4,a)};var DCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(DCc,n);g=DCc.prototype;g.getClientInfo=function(){return W(this,FH,1)};g.getMutableClientInfo=function(){return Cu(this,FH,1)};g.setClientInfo=function(a){X(this,FH,1,a)};g.getExperiments=function(){return W(this,GH,2)};g.setExperiments=function(a){return X(this,GH,2,a)};g.hasExperiments=function(){return tk(this,GH,2)};var ECc=Kda(DCc);var FCc;var GCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(GCc,n);g=GCc.prototype;g.getDelegatorId=function(){return Rc(this,2)};g.getEnvType=function(){return pk(this,5)};g.getEnvType_legacyNullable=function(){return Ut(this,5)};g.setEnvType=function(a){Rk(this,5,a)};g.getCacheSize=function(){return Ej(this,7)};g.setCacheSize=function(a){Ok(this,7,a)};g.hasCacheSize=function(){return lk(this,7)};var xLa=/^https?:\/\/(?:\w|[\-\.])+\.google\.(?:\w|[\-:\.])+(?:\/[^\?#]*)?\/u\/(\d)\//,vLa=/([#].*?&|[#])authuser=([^&#]*)\b/,wLa=/([?][^#]*?&|[?])authuser=([^&#]*)\b/;var HH=function(){this.config_=H9b(FCc||(FCc=ECc('[["AIzaSyBuUpn1wi2-0JpM3S-tq2csYx0z2_m_pqc","ANVavNLWozk6oXyP9qguyx4QAuef5j_qQw4Y3Rw",740,"BUGANIZER","BUGANIZER",null,null,null,null,true,true],[]]')));this.userInfo_=new GCc;this.onAuthError_=this.gapiClientThenable_=null};HH.prototype.getClientInfo=function(){return this.config_.getClientInfo()};HH.prototype.getExperiments=function(){return this.config_.getExperiments()};HH.prototype.getUserInfo=function(){return this.userInfo_};
var HCc=function(a){a.gapiClientThenable_||(a.gapiClientThenable_=DLa(10,5E3).then(function(b){return b.client}));return a.gapiClientThenable_};HH.prototype.getAuthErrorHandler=function(){return this.onAuthError_};HH.prototype.setAuthErrorHandler=function(a){this.onAuthError_=a};var ICc=function(){};var JCc=[];JCc.push=function(){throw Error("Vc");};var IH={cancel:function(){},isPending:function(){return!1}};var KCc=function(a){this.response_=a||function(){};this.timer_=Vq(this.onTimer_,0,this);this.addressBookId_=""};g=KCc.prototype;g.setResponse=function(a){this.response_=a};g.setAddressBookId=function(a){this.addressBookId_=a};g.getAddressBookId=function(){return this.addressBookId_};g.cancel=function(){Wq(this.timer_);this.timer_=null};g.isPending=function(){return!!this.timer_};g.onTimer_=function(){this.timer_=null;this.response_()};g.setQuery=function(a){this.query_=a};g.getQuery=function(){return this.query_};var LCc=new Map([["personal",2],["domain",4],["pcab",3]]);var yp=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(yp,n);g=yp.prototype;g.getEventType=function(){return pk(this,1)};g.setEventType=function(a){return Rk(this,1,a)};g.getApiType=function(){return pk(this,2)};g.setApiType=function(a){return Rk(this,2,a)};g.getCacheStatus=function(){return pk(this,3)};g.setCacheStatus=function(a){return Rk(this,3,a)};g.getAddressBook=function(){return pk(this,4)};g.setAddressBook=function(a){return Rk(this,4,a)};
g.getRpcType=function(){return pk(this,5)};g.setRpcType=function(a){return Rk(this,5,a)};g.getLookupType=function(){return pk(this,6)};g.setLookupType=function(a){return Rk(this,6,a)};g.getToken=function(){return Rc(this,7)};g.setToken=function(a){return Qk(this,7,a)};var JH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(JH,n);g=JH.prototype;g.setDevice=function(a){return Rk(this,1,a)};g.getApplication=function(){return pk(this,2)};g.setApplication=function(a){return Rk(this,2,a)};g.getApplicationOrUndefined=function(){return Nm(this,2)};g.setPlatform=function(a){Rk(this,3,a)};var KH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(KH,n);g=KH.prototype;g.setEventSource=function(a){Rk(this,2,a)};g.getEventSourceOrUndefined=function(){return Nm(this,2)};g.setEventSourceId=function(a){Ok(this,15,a)};g.getEventSourceIdOrUndefined=function(){return Gu(this,15)};g.getSocialClient=function(){return W(this,JH,3)};g.setSocialClient=function(a){return X(this,JH,3,a)};g.setVersionName=function(a){return Qk(this,5,a)};
g.getBaselineCl=function(){return Nu(this,7)};g.setBaselineCl=function(a){return Ek(this,7,a)};g.hasBaselineCl=function(){return wk(this,7)};g.getBaselineClOrUndefined=function(){return Pb(rk(this,7))};g.setClientAgent=function(a){return Rk(this,9,a)};g.getClientAgentOrUndefined=function(){return Nm(this,9)};g.getPeoplekitEntryPoint=function(){return Ut(this,11)};g.setPeoplekitEntryPoint=function(a){return Rk(this,11,a)};g.getPeoplekitEntryPointOrUndefined=function(){return Nm(this,11)};
g.setEnvironment=function(a){return Rk(this,13,a)};g.getEnvironmentOrUndefined=function(){return Nm(this,13)};g.setSharekitEntryPoint=function(a){Rk(this,14,a)};g.getSharekitEntryPointOrUndefined=function(){return Nm(this,14)};var MCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(MCc,n);g=MCc.prototype;g.getApiType=function(){return pk(this,1)};g.setApiType=function(a){return Rk(this,1,a)};g.getItemCount=function(){return Ej(this,2)};g.setItemCount=function(a){return Ok(this,2,a)};g.hasItemCount=function(){return lk(this,2)};var NCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(NCc,n);g=NCc.prototype;g.getApiType=function(){return pk(this,1)};g.setApiType=function(a){return Rk(this,1,a)};g.getItemCount=function(){return Ej(this,2)};g.setItemCount=function(a){return Ok(this,2,a)};g.hasItemCount=function(){return lk(this,2)};g.getStatus=function(){return pk(this,4,2)};g.setStatus=function(a){return Rk(this,4,a)};g.hasStatus=function(){return nk(this,4)};
g.setTotalUsec=function(a){return Ek(this,5,a)};g.setBlockedUsec=function(a){return Ek(this,6,a)};g.setNetworkUsec=function(a){Ek(this,7,a)};g.getCacheStatus=function(){return pk(this,8)};g.setCacheStatus=function(a){return Rk(this,8,a)};g.getAddressBook=function(){return pk(this,9)};g.setAddressBook=function(a){return Rk(this,9,a)};var LH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(LH,n);LH.prototype.getStatus=function(){return pk(this,1,2)};LH.prototype.setStatus=function(a){return Rk(this,1,a)};LH.prototype.hasStatus=function(){return nk(this,1)};LH.prototype.setTotalUsec=function(a){return Ek(this,2,a)};var MH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(MH,n);MH.prototype.getRpcType=function(){return pk(this,1)};MH.prototype.setRpcType=function(a){return Rk(this,1,a)};MH.prototype.getLookupType=function(){return pk(this,2)};MH.prototype.setLookupType=function(a){return Rk(this,2,a)};var OCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(OCc,n);g=OCc.prototype;g.getRpcType=function(){return pk(this,1)};g.setRpcType=function(a){return Rk(this,1,a)};g.getLookupType=function(){return pk(this,2)};g.setLookupType=function(a){return Rk(this,2,a)};g.getStatus=function(){return pk(this,3,2)};g.setStatus=function(a){return Rk(this,3,a)};g.hasStatus=function(){return nk(this,3)};g.setTotalUsec=function(a){return Ek(this,4,a)};
g.setBlockedUsec=function(a){return Ek(this,5,a)};g.setNetworkUsec=function(a){Ek(this,6,a)};var NH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(NH,n);g=NH.prototype;g.getEnvType=function(){return pk(this,1)};g.getEnvType_legacyNullable=function(){return Ut(this,1)};g.setEnvType=function(a){Rk(this,1,a)};g.getCacheSize=function(){return Ej(this,2)};g.setCacheSize=function(a){Ok(this,2,a)};g.hasCacheSize=function(){return lk(this,2)};var OH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(OH,n);g=OH.prototype;g.getClientInterface=function(){return W(this,KH,1)};g.setClientInterface=function(a){return X(this,KH,1,a)};g.getSource=function(){return pk(this,2)};g.setSource=function(a){return Rk(this,2,a)};g.hasSource=function(){return nk(this,2)};g.getSourceOrUndefined=function(){return Nm(this,2)};g.getEventType=function(){return pk(this,3)};g.getEventType_legacyNullable=function(){return Ut(this,3)};
g.setEventType=function(a){return Rk(this,3,a)};g.setRpcRequest=function(a){return nm(this,5,PCc,a)};g.setRpcResponse=function(a){return nm(this,6,PCc,a)};g.setApiCall=function(a){return nm(this,7,PCc,a)};g.setApiResult=function(a){return nm(this,8,PCc,a)};g.getUserInfo=function(){return W(this,NH,9)};g.setUserInfo=function(a){return X(this,NH,9,a)};g.hasUserInfo=function(){return tk(this,NH,9)};var PCc=[4,5,6,7,8];var QCc=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]]),RCc=new Map([[0,0],[1,11],[2,1],[3,3],[4,10],[5,8],[6,7],[7,2],[16,2],[8,6],[9,7],[10,11],[11,9],[12,5],[13,9],[14,4],[15,6]]),SCc=new Map([[0,0],[11,1],[1,2],[3,3],[10,4],[8,5],[2,16],[6,8],[7,9],[5,12],[9,13],[4,14]]),TCc=function(a){return RCc.has(a)?RCc.get(a):1},UCc=function(a){return SCc.has(a)?SCc.get(a):2};var VCc=function(a,b,c){jE.call(this);this.scheduler=a;this.runFunction_=b;this.group=c||a.createGroup()};Y(VCc,jE);g=VCc.prototype;g.getGroup=function(){return this.group};g.setGroup=function(a){this.group=a};g.isSuccess=function(){return this.getState().isSuccess()};g.setSuccess=function(a){this.getState().setSuccess(a)};g.getMaxNumRetries=function(){this.getState().getMaxNumRetries()};g.setMaxNumRetries=function(a){this.getState().setMaxNumRetries(a)};g.reset=function(){this.getState().reset()};
g.getNumTriesLeft=function(){return this.getState().getNumTriesLeft()};g.setRunState=function(a){this.getState().setRunState(a)};g.setRunTime=function(a){this.getState().setRunTime(a)};g.setRunTimerId=function(a){this.getState().setRunTimerId(a)};g.incNumSuccesses=function(){this.getState().incNumSuccesses()};g.incNumFailures=function(){this.getState().incNumFailures()};g.incNumExecutions=function(){this.getState().incNumExecutions()};g.decNumTriesLeft=function(){this.getState().decNumTriesLeft()};
g.isPending=function(){return this.getState().isPending()};g.cancel=function(){this.scheduler.cancel(this.getState())};g.getState=function(){return this.scheduler.getState(this.group)};g.run=function(){this.incNumExecutions();this.runFunction_(this)};g.isDone=function(a){return this.scheduler.isDone(this,a)};var WCc=function(a){jE.call(this);this.scheduler=a;this.maxNumRetries_=0;this.reset()};Y(WCc,jE);g=WCc.prototype;g.reset=function(){this.numTriesLeft=this.maxNumRetries_;this.success=!1;this.runState=1;this.runTimerId=this.runTime=-1};g.isSuccess=function(){return this.success};g.setSuccess=function(a){this.success=a};g.getMaxNumRetries=function(){return this.maxNumRetries_};g.setRunState=function(a){this.runState=a};g.setRunTime=function(a){this.runTime=a};
g.setRunTimerId=function(a){this.runTimerId=a};g.setMaxNumRetries=function(a){this.maxNumRetries_=a};g.getNumTriesLeft=function(){return this.numTriesLeft};g.decNumTriesLeft=function(){--this.numTriesLeft};g.incNumSuccesses=function(){};g.incNumFailures=function(){};g.incNumExecutions=function(){};g.isPending=function(){return!(this.runState==4||this.runState==5)};g.disposeInternal=function(){jE.prototype.disposeInternal.call(this);this.scheduler=null};var XCc=function(){jE.call(this);this.states={};this.currentGroup=1};Y(XCc,jE);XCc.prototype.schedule=function(a,b,c,d){b=b||0;var e=Date.now()+b,f=this.states[a.getGroup()];f||(f=new WCc(this),this.states[a.getGroup()]=f);f.setMaxNumRetries(Math.max(c||1,f.getMaxNumRetries()));switch(f.runState){case 1:case 5:f.reset();YCc(a,b,e);break;case 6:YCc(a,b,e);break;case 4:d&&(f.reset(),YCc(a,b,e));break;case 2:e<f.runTime?(this.cancel(f),f.reset(),YCc(a,b,e)):f.numTriesLeft=f.maxNumRetries_}};
var YCc=function(a,b,c){b==0?(a.setRunState(3),a.run()):(a.setRunState(2),a.setRunTime(c),a.setRunTimerId(Vq(a.run,b,a)))};g=XCc.prototype;g.getState=function(a){return this.states[a]};g.createGroup=function(){return""+this.currentGroup++};g.disposeInternal=function(){jE.prototype.disposeInternal.call(this);for(var a in this.states){var b=this.states[a];this.cancel(b);Io(b)}this.states={}};g.cancel=function(a){a.runState==2&&Wq(a.runTimerId)};
g.isDone=function(a,b){b?a.incNumSuccesses():a.incNumFailures();a.setSuccess(b);a.decNumTriesLeft();if(!b&&a.getNumTriesLeft()>0)return a.setRunState(6),this.schedule(a,Math.max(100,Math.round(Math.random()*45E3))),!1;a.setRunState(b?4:5);return!0};var PH=function(a){this.map_=new NC;this.size=0;a&&this.addAll(a)},ZCc=function(a){var b=typeof a;return b=="object"&&a||b=="function"?"o"+Ma(a):b.charAt(0)+a};g=PH.prototype;g.getCount=function(){return this.map_.size};g.add=function(a){this.map_.set(ZCc(a),a);this.setSizeInternal_(this.map_.size)};g.addAll=function(a){a=VG(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c]);this.setSizeInternal_(this.map_.size)};g.removeAll=function(a){a=VG(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c]);this.setSizeInternal_(this.map_.size)};
g.delete=function(a){a=this.map_.remove(ZCc(a));this.setSizeInternal_(this.map_.size);return a};g.remove=function(a){return this.delete(a)};g.clear=function(){this.map_.clear();this.setSizeInternal_(0)};g.isEmpty=function(){return this.map_.size===0};g.has=function(a){return this.map_.containsKey(ZCc(a))};g.contains=function(a){return this.map_.containsKey(ZCc(a))};g.intersection=function(a){var b=new PH;a=VG(a);for(var c=0;c<a.length;c++){var d=a[c];this.contains(d)&&b.add(d)}return b};
g.difference=function(a){var b=this.clone();b.removeAll(a);return b};g.getValues=function(){return this.map_.getValues()};g.values=function(){return this.map_.values()};g.clone=function(){return new PH(this)};g.equals=function(a){return this.getCount()==LAc(a)&&this.isSubsetOf(a)};
g.isSubsetOf=function(a){var b=LAc(a);if(this.getCount()>b)return!1;!(a instanceof PH)&&b>5&&(a=new PH(a));return OAc(this,function(c){var d=a;if(d.contains&&typeof d.contains=="function")c=d.contains(c);else if(d.containsValue&&typeof d.containsValue=="function")c=d.containsValue(c);else if(Ka(d)||typeof d==="string")c=Da(d,c)>=0;else a:{for(var e in d)if(d[e]==c){c=!0;break a}c=!1}return c})};g.__iterator__=function(){return this.map_.__iterator__(!1)};PH.prototype[Symbol.iterator]=function(){return this.values()};
PH.prototype.setSizeInternal_=function(a){this.size=a};var QH=function(a,b,c){this.fields_=a;this.name_=b;this.contains_=new PH(c);this.extraFields_=[]};QH.prototype.toString=function(){var a=this.name_?"g"+this.name_:this.fields_.join(",");this.name_&&this.extraFields_.length&&(a+=","+this.extraFields_.join(","));return a};var $Cc=function(a){a.fieldSet_||(a.fieldSet_=new PH(a.fields_));return a.fieldSet_};
QH.prototype.contains=function(a){if(this.contains_.contains(a))return!0;this.doesntContain_||(this.doesntContain_=new PH);if(this.doesntContain_.has(a))return!1;var b=$Cc(this),c=$Cc(a);if(OAc(c,b.contains,b))return this.contains_.add(a),!0;this.doesntContain_.add(a);return!1};var aDc=new QH(["6","12"],"1"),bDc=new QH("2 1f 1c 12 16 13 14 1d 22 1b 20".split(" "),"4",[aDc]);new QH("6 12 16 17 18 1a".split(" "),"3",[aDc]);
new QH("2 4 2a 5 6 9 b 1c d e f 11 12 29 13 14 15 1d 22 16 17 19 28 1e 1b".split(" "),"2",[aDc,bDc]);new QH([]);var cDc=function(a){try{return ea.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("Wc`"+a);},dDc=function(){this.replacer_=void 0};
dDc.prototype.serialize=function(a){var b=[];eDc(this,a,b);return b.join("")};
var eDc=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],eDc(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),fDc(d,c),c.push(":"),eDc(a,a.replacer_?a.replacer_.call(b,
d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":fDc(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("Xc`"+typeof b);}}},gDc={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},hDc=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g,fDc=function(a,b){b.push('"',a.replace(hDc,
function(c){var d=gDc[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),gDc[c]=d);return d}),'"')};var iDc={token:"",addressBookId:"personal",matchType:1,includeContacts:!0,includeGroups:!0,isAutoCompleteMode:!0,delayMillis:5E3,maxMatches:-1,maxTries:10,name:"Load All Contacts"};var jDc={SOMETHING_CHANGED:"a",ERROR:"b"},kDc=function(a){yE.call(this,"a");this.source_=a||"d"};Y(kDc,yE);kDc.prototype.getSource=function(){return this.source_};var RH=function(a){this.serviceId_=a};RH.prototype.toString=function(){return this.serviceId_};new RH("hU2nnc");new RH("IW8Usd");new RH("jbDgG");new RH("tLnxq");new RH("ZtVrH");var lDc={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 oDc=function(a){a=mDc(a);for(var b=2654435769,c=2654435769,d=314159265,e=a.length,f=e,h=0,k=function(){b-=c;b-=d;b^=d>>>13;c-=d;c-=b;c^=b<<8;d-=b;d-=c;d^=c>>>13;b-=c;b-=d;b^=d>>>12;c-=d;c-=b;c^=b<<16;d-=b;d-=c;d^=c>>>5;b-=c;b-=d;b^=d>>>3;c-=d;c-=b;c^=b<<10;d-=b;d-=c;d^=c>>>15};f>=12;f-=12,h+=12)b+=nDc(a,h),c+=nDc(a,h+4),d+=nDc(a,h+8),k();d+=e;switch(f){case 11:d+=a[h+10]<<24;case 10:d+=a[h+9]<<16;case 9:d+=a[h+8]<<8;case 8:c+=a[h+7]<<24;case 7:c+=a[h+6]<<16;case 6:c+=a[h+5]<<8;case 5:c+=a[h+4];
case 4:b+=a[h+3]<<24;case 3:b+=a[h+2]<<16;case 2:b+=a[h+1]<<8;case 1:b+=a[h]}k();return lDc.toString(d)},pDc=function(a){return a},mDc=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b},nDc=function(a,b){return a[b]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};new RH("rJmJrc");new RH("fJuxOc");new RH("NGntwf");new RH("FENZqe");new RH("ofuapc");new RH("BWETze");new RH("ZmXAm");new RH("n73qwf");new RH("zZa4xc");new RH("pVbxBc");new RH("yu4DA");new RH("MpJwZc");new RH("UUJqVe");new RH("GHAeAc");new RH("amY3Td");new RH("AzG0ke");new RH("WSziFf");new RH("o1bZcd");new RH("LEikZe");new RH("lsjVmc");new RH("klpyYe");new RH("pg9hFd");new RH("IaqD3e");new RH("Xpw1of");new RH("v5BQle");var Fs=function(a){jE.call(this);this.handler_=a;this.keys_={}};zu(Fs,jE);var qDc=[];Fs.prototype.listen=function(a,b,c,d){Array.isArray(b)||(b&&(qDc[0]=b.toString()),b=qDc);for(var e=0;e<b.length;e++){var f=Ep(a,b[e],c||this.handleEvent,d||!1,this.handler_||this);if(!f)break;this.keys_[f.key]=f}return this};Fs.prototype.listenOnce=function(a,b,c,d){return rDc(this,a,b,c,d)};
var rDc=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)rDc(a,b,c[h],d,e,f);else{b=AE(b,c,d||a.handleEvent,e,f||a.handler_||a);if(!b)return a;a.keys_[b.key]=b}return a};
Fs.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=La(d)?!!d.capture:!!d,e=e||this.handler_||this,c=rwc(c),d=!!d,b=zE(a)?a.getListener(b,c,d,e):a?(a=twc(a))?a.getListener(b,c,d,e):null:null,b&&(CE(b),delete this.keys_[b.key]);return this};Fs.prototype.removeAll=function(){bj(this.keys_,function(a,b){this.keys_.hasOwnProperty(b)&&CE(a)},this);this.keys_={}};
Fs.prototype.disposeInternal=function(){Fs.superClass_.disposeInternal.call(this);this.removeAll()};Fs.prototype.handleEvent=function(){throw Error("Zc");};new RH("tdUkaf");var sDc=function(){jE.call(this);this.eventTarget_=new Cp;this.updateCacheEventTarget_=new Cp;new PC};Y(sDc,jE);sDc.prototype.dispatchEvent=function(a){this.updateCacheEventTarget_.dispatchEvent(a);this.eventTarget_.dispatchEvent(a)};sDc.prototype.getEventTarget=function(){return this.eventTarget_};sDc.prototype.disposeInternal=function(){jE.prototype.disposeInternal.call(this);this.eventTarget_.dispose();this.eventTarget_=null;this.updateCacheEventTarget_.dispose();this.updateCacheEventTarget_=null};var gu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gu,n);var fu=function(a,b){return Qk(a,1,b)};g=gu.prototype;g.getLogSource=function(){return pk(this,2,-1)};g.setLogSource=function(a){return Rk(this,2,a)};g.getApplication=function(){return pk(this,3)};g.setApplication=function(a){return Rk(this,3,a)};g.getApplicationOrUndefined=function(){return Nm(this,3)};g.getVersion=function(){return Rc(this,4)};g.setVersion=function(a){return Qk(this,4,a)};
g.getVersionOrUndefined=function(){return Hu(this,4)};g.getBaselineCl=function(){return Ej(this,5)};g.setBaselineCl=function(a){return Ok(this,5,a)};g.hasBaselineCl=function(){return lk(this,5)};g.getBaselineClOrUndefined=function(){return Gu(this,5)};g.getEnableClearcut=function(){return kk(this,6)};g.setEnableClearcut=function(a){return Nk(this,6,a)};var Xbc=function(a,b){return vc(a,7,b,Cb)};g=gu.prototype;g.setClientAgent=function(a){return Rk(this,8,a)};
g.getClientAgentOrUndefined=function(){return Nm(this,8)};g.setEventSource=function(a){Rk(this,9,a)};g.getEventSourceOrUndefined=function(){return Nm(this,9)};g.setEventSourceId=function(a){Ok(this,14,a)};g.getEventSourceIdOrUndefined=function(){return Gu(this,14)};g.getClearcutUrl=function(){return Rc(this,10)};g.setClearcutUrl=function(a){Qk(this,10,a)};g.setEnvironment=function(a){return Rk(this,11,a)};g.getEnvironmentOrUndefined=function(){return Nm(this,11)};
g.getPeoplekitEntryPoint=function(){return pk(this,12)};g.setPeoplekitEntryPoint=function(a){return Rk(this,12,a)};g.getPeoplekitEntryPointOrUndefined=function(){return Nm(this,12)};g.setSharekitEntryPoint=function(a){Rk(this,13,a)};g.getSharekitEntryPointOrUndefined=function(){return Nm(this,13)};var tDc,uDc=(tDc=window)==null?void 0:tDc.performance,vDc,wDc=uDc==null?void 0:(vDc=uDc.timing)==null?void 0:vDc.navigationStart,xDc=wDc&&uDc?function(){var a;return wDc+((a=uDc==null?void 0:uDc.now())!=null?a:0)}:function(){return Date.now()};var yDc=function(a){this.start_=a;this.end_=NaN};yDc.prototype.duration=function(){return this.end_-this.start_};yDc.prototype.stop=function(a){this.end_=a;return this.duration()};var SH=function(a){var b=b===void 0?xDc:b;this.source_=a;this.nowFn_=b;this.durations_=new Map;this.lastLabel_="_"};SH.prototype.source=function(){return this.source_};var zDc=function(a,b){b&&(a.lastLabel_=b);return a.lastLabel_};
SH.prototype.duration=function(a){a=zDc(this,a===void 0?"":a);return this.durations_.has(a)?this.durations_.get(a).duration():NaN};var TH=function(a,b){return HLa(a.duration(b===void 0?"":b))};SH.prototype.toString=function(a,b){b=b===void 0?1:b;return this.duration(a===void 0?"":a).toFixed(b)};SH.prototype.start=function(a){a=a===void 0?"":a;var b=this.nowFn_();a=zDc(this,a);this.durations_.set(a,new yDc(b));return this};
SH.prototype.stop=function(a){a=a===void 0?"":a;var b=this.nowFn_();a=zDc(this,a);this.durations_.has(a)&&this.durations_.get(a).stop(b);return this};SH.prototype.clear=function(){this.durations_.clear();return this};var ADc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ADc,n);var Rbc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Rbc,n);g=Rbc.prototype;g.getQueryId=function(){return Nu(this,1)};g.setQueryId=function(a){return Ek(this,1,a)};g.setSelectionId=function(a){return Ek(this,2,a)};g.getInstanceId=function(){return $k(this,4)};g.setInstanceId=function(a){return Qk(this,4,a)};g.clearInstanceId=function(){Bu(this,4)};g.hasInstanceId=function(){return mk(this,4)};g.getInstanceIdOrUndefined=function(){return Hu(this,4)};
g.getAffinityVersion=function(){return Mu(this,5)};g.setAffinityVersion=function(a){Ok(this,5,a)};g.getAffinityVersionOrUndefined=function(){return Gu(this,5)};var BDc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(BDc,n);g=BDc.prototype;g.getQueryLength=function(){return Mu(this,1)};g.setQueryLength=function(a){return Ok(this,1,a)};g.hasQueryLength=function(){return lk(this,1)};g.getQuery=function(){return $k(this,2)};g.setQuery=function(a){return Qk(this,2,a)};g.clearQuery=function(){Bu(this,2)};g.hasQuery=function(){return mk(this,2)};var CDc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(CDc,n);CDc.prototype.setLatencyUsec=function(a){Ok(this,1,a)};var UH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(UH,n);g=UH.prototype;g.getColumn=function(){return Mu(this,2)};g.setColumn=function(a){return Ok(this,2,a)};g.getType=function(){return Ut(this,3)};g.setType=function(a){return Rk(this,3,a)};g.hasType=function(){return nk(this,3)};var VH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(VH,n);VH.prototype.getExistingSelectionsCount=function(){return Mu(this,1)};VH.prototype.setExistingSelectionsCount=function(a){Ok(this,1,a)};VH.prototype.getPosition=function(){return W(this,UH,2)};VH.prototype.setPosition=function(a){return X(this,UH,2,a)};var WH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(WH,n);g=WH.prototype;g.getType=function(){return Ut(this,5)};g.setType=function(a){return Rk(this,5,a)};g.hasType=function(){return nk(this,5)};g.getEmail=function(){return $k(this,1)};g.getEmail_legacyNullable=function(){return $k(this,1)};g.setEmail=function(a){return Qk(this,1,a)};g.hasEmail=function(){return mk(this,1)};g.getPhone=function(){return $k(this,2)};
g.getPhone_legacyNullable=function(){return $k(this,2)};g.setPhone=function(a){return Qk(this,2,a)};g.hasPhone=function(){return mk(this,2)};g.getObfuscatedGaiaId=function(){return $k(this,3)};g.getObfuscatedGaiaId_legacyNullable=function(){return $k(this,3)};g.setObfuscatedGaiaId=function(a){return Qk(this,3,a)};g.getContactId=function(){return Nu(this,4)};g.setContactId=function(a){return Ek(this,4,a)};g.getGroupId=function(){return $k(this,6)};g.setGroupId=function(a){Qk(this,6,a)};
g.hasGroupId=function(){return mk(this,6)};var XH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(XH,n);XH.prototype.getName=function(){return $k(this,1)};XH.prototype.setName=function(a){return Qk(this,1,a)};XH.prototype.hasName=function(){return mk(this,1)};XH.prototype.getNameOrUndefined=function(){return Hu(this,1)};var YH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(YH,n);g=YH.prototype;g.getPosition=function(){return W(this,UH,1)};g.setPosition=function(a){return X(this,UH,1,a)};g.getProvenance=function(){return Lu(this,3)};g.setProvenance=function(a){return Bc(this,3,zb,a,void 0,Ab)};g.getIsBoosted=function(){return Mt(this,6)};g.setIsBoosted=function(a){Nk(this,6,a)};g.getIsPlaceholder=function(){return Mt(this,7)};g.setIsPlaceholder=function(a){Nk(this,7,a)};
g.getIsSelf=function(){return Mt(this,11)};g.getQueryId=function(){return Nu(this,15)};g.setQueryId=function(a){return Ek(this,15,a)};g.setSelectionId=function(a){return Ek(this,16,a)};var DDc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(DDc,n);g=DDc.prototype;g.getLoggingId=function(){return $k(this,1)};g.setLoggingId=function(a){Qk(this,1,a)};g.getMetadata=function(){return W(this,YH,3)};g.getMutableMetadata=function(){return Cu(this,YH,3)};g.setMetadata=function(a){X(this,YH,3,a)};g.hasMetadata=function(){return tk(this,YH,3)};var ZH=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ZH,n);ZH.prototype.getAffinityVersion=function(){return Mu(this,2)};ZH.prototype.setAffinityVersion=function(a){Ok(this,2,a)};ZH.prototype.getAffinityVersionOrUndefined=function(){return Gu(this,2)};var EDc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(EDc,n);g=EDc.prototype;g.getEventType=function(){return Ut(this,1)};g.getEventType_legacyNullable=function(){return Ut(this,1)};g.setEventType=function(a){return Rk(this,1,a)};g.getMetadata=function(){return W(this,ZH,4)};g.getMutableMetadata=function(){return Cu(this,ZH,4)};g.setMetadata=function(a){X(this,ZH,4,a)};g.hasMetadata=function(){return tk(this,ZH,4)};
g.getClientInterface=function(){return W(this,KH,5)};g.setClientInterface=function(a){return X(this,KH,5,a)};var FDc=new Map([[1,4],[2,2],[3,1],[4,7]]),GDc=function(a,b){b=b===void 0?0:b;this.clientConfig_=a;this.transportType_=b;switch(b){case 1:b="ppl.store.peopleapi";var c=a.getExperiments();c=kk(c,1,!0);break;case 2:b="ppl.store.ppl.store.ozcontactstore";c=a.getExperiments();c=kk(c,2,!0);break;default:b="ppl.store",c=!1}var d=FDc.get(a.getUserInfo().getEnvType_legacyNullable())||0;b=fu(new gu,b).setLogSource(932).setApplication(a.getClientInfo().getSocialApplicationOrUndefined()).setEnvironment(d).setVersion("1013").setBaselineCl(336195648).setClientAgent(3).setEnableClearcut(c);
a=a.getExperiments().getExperimentIdsList();a=zc(b,7,Cb,a,Db);this.logContext_=yc(a,7,Cb,20090307,void 0,Db)};g=GDc.prototype;g.getLogContext=function(){return this.logContext_};
g.createCountMetric=function(a,b){b=b.source();var c=HDc(this);switch(b.getEventType()){case 2:case 3:return(new OH).setClientInterface(a).setUserInfo(c).setSource(2).setEventType(2).setRpcRequest((new MH).setRpcType(b.getRpcType()).setLookupType(b.getLookupType()));case 4:case 5:return(new OH).setClientInterface(a).setUserInfo(c).setEventType(4).setApiCall((new MCc).setApiType(b.getApiType()));default:return null}};
g.createStatusMetric=function(a,b,c){var d=b.source(),e=HDc(this);switch(d.getEventType()){case 1:d=(new OH).setClientInterface(a).setUserInfo(e).setSource(1).setEventType(1);a=this.transportType_;e=(new LH).setStatus(c);if(c==0||c==4)c=e.setTotalUsec(TH(b,"total")),b=TH(b,"blocked"),b=Ek(c,3,b),Rk(b,5,a);return nm(d,4,PCc,e);case 2:case 3:return a=(new OH).setClientInterface(a).setUserInfo(e).setSource(2).setEventType(3),e=a.setRpcResponse,d=(new OCc).setRpcType(d.getRpcType()).setLookupType(d.getLookupType()).setStatus(c),
c!=0&&c!=4||d.setTotalUsec(TH(b,"total")).setBlockedUsec(TH(b,"blocked")).setNetworkUsec(TH(b,"network")),e.call(a,d);case 4:case 5:a=(new OH).setClientInterface(a).setUserInfo(e).setEventType(5);e=a.setApiResult;var f=new NCc;f.setApiType(d.getApiType()).setCacheStatus(d.getCacheStatus()).setAddressBook(d.getAddressBook()).setStatus(c);c!==0&&c!==4||f.setTotalUsec(TH(b,"total"));return e.call(a,f);default:return null}};g.createErrorMetric=function(){return null};g.createLatencyMetric=function(){return null};
var HDc=function(a){a=a.clientConfig_.getUserInfo();var b=new NH;var c=!!a.getDelegatorId();b=Nk(b,4,c);a.hasCacheSize()&&b.setCacheSize(a.getCacheSize());b.setEnvType(pk(a,6)||0);return b};var yt=function(a,b){this.name_=b||"";this.address=a||""},IDc=/"/g,JDc=/\\"/g,KDc=/\\/g,LDc=/\\\\/g,MDc=RegExp("^[+a-zA-Z0-9_.!#$%&'*\\/=?^`{|}~-]+@([a-zA-Z0-9-]+\\.)+[a-zA-Z0-9]{2,63}$"),NDc=new RegExp("["+Hra({LRE:"\u202a",RLE:"\u202b",PDF:"\u202c",LRM:"\u200e",RLM:"\u200f"}).join("")+"]","g");yt.prototype.getName=function(){return this.name_};yt.prototype.getAddress=function(){return this.address};yt.prototype.setName=function(a){this.name_=a};yt.prototype.toString=function(){return ODc(this,'()<>@:\\".[],;')};
var ODc=function(a,b){var c=a.getName();c=c.replace(IDc,"");a:{for(var d=c,e=0;e<b.length;e++)if(la(d,b[e])){b=!0;break a}b=!1}b&&(c='"'+c.replace(KDc,"\\\\")+'"');return c==""?a.address:a.address==""?c:c+" <"+a.address+">"};yt.prototype.isValid=function(){return MDc.test(this.address)};
var mt=function(a){var b=PDc;a=a.replace(NDc,"");for(var c="",d="",e=0;e<a.length;){var f=a;var h=e,k=f.charAt(h),q='"<(['.indexOf(k);if(q==-1||QDc(f,h))f=k;else{q='">)]'.charAt(q);for(var v=f.indexOf(q,h+1);v>=0&&QDc(f,v);)v=f.indexOf(q,v+1);f=v>=0?f.substring(h,v+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=Ffc(c);c=Gfc(c,"'");c=Gfc(c,'"');c=c.replace(JDc,'"');c=c.replace(LDc,"\\");d=Ffc(d);return new b(d,
c)},QDc=function(a,b){if(a.charAt(b)!='"')return!1;var c=0;for(--b;b>=0&&a.charAt(b)=="\\";b--)c++;return c%2!=0};var PDc=function(a,b){yt.call(this,a,b)};zu(PDc,yt);var RDc=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}$");PDc.prototype.isValid=function(){return SDc(this.address)};var SDc=function(a){return a==null?!1:RDc.test(a)};PDc.prototype.toString=function(){return ODc(this,'()<>@:\\".[],;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a')};var TDc=/[^a-z0-9]+/ig,UDc=[9,11,10,12,13,14,19],VDc=[9,19,11],WDc=[1,6],XDc=[2,7],YDc=[3,8],ZDc=[1,2,6,7,8,9,11,10,12,13,14,18,19],ncc=[3,4,5,17,20],It=function(a,b,c){this.type_=a;this.normalizedValue_=zp(b);this.originalValue_=zp(c===void 0?b:c)};It.prototype.getType=function(){return this.type_};It.prototype.getValue=function(){return this.normalizedValue_};It.prototype.getOriginalValue=function(){return this.originalValue_};
var Et=function(a){return UDc.includes(a.getType())},$Dc=function(a){return VDc.includes(a.getType())},aEc=function(a){return WDc.includes(a.getType())},lcc=function(a,b){switch(a){case 1:return Gt(b);case 6:return new It(6,zp(b).toLowerCase(),b);case 2:return kac(b);case 7:return mac(b);case 3:return pac(b);case 8:return new It(8,zp(b).toLowerCase(),b);case 5:return new It(5,zp(b).toLowerCase(),b);case 4:return qac(b);case 9:return bEc(b);case 12:return new It(12,zp(b),b);case 13:return new It(13,
zp(b),b);case 14:return new It(14,zp(b),b);case 10:return new It(10,zp(b),b);case 11:return new It(11,zp(b),b);case 18:return mcc(b);case 19:return new It(19,zp(b),b);case 20:return new It(20,zp(b),b);case 17:return cEc;default:return new It(0,b)}},Gt=function(a){return new It(1,zp(a).toLowerCase(),a)},kac=function(a){var b=zp(a).toLowerCase().replace(TDc,"");return new It(2,b,a)},pac=function(a){var b=zp(a).toLowerCase();return b==="me"?cEc:new It(3,b,a)},qac=function(a){return new It(4,zp(a).toLowerCase(),
a)},mac=function(a){var b=zp(a).toLowerCase().replace(TDc,"");return new It(7,b,a)},bEc=function(a){return new It(9,zp(a).toLowerCase(),a)},mcc=function(a){return new It(18,zp(a),a)},xt=function(a){var b=a.indexOf(":");return lcc(b>0?parseInt(a.substring(0,b),10):0,a.substring(b+1))};It.prototype.toString=function(){return this.type_+":"+this.normalizedValue_};It.prototype.serialize=function(){return this.type_+":"+this.originalValue_};
It.prototype.equals=function(a){return a?this===a?!0:this.type_===a.type_&&this.normalizedValue_===a.normalizedValue_:!1};var dEc=function(a){switch(a.getType()){case 1:case 6:return SDc(a.originalValue_);case 2:case 7:return a=a.originalValue_.replace(TDc,""),a.length>=3&&a[0]>="0"&&a[0]<="9";case 3:case 8:return!!zp(a.originalValue_);default:return!0}},Kt=lcc(0,""),cEc=new It(17,"me");var eEc=function(a,b){this.apiEnv_=a;this.experimentsConfig_=b};var fEc=function(a){this.profileId_=a};fEc.prototype.getProfileId=function(){return this.profileId_};var gEc=Object.freeze({preferOauth:!1}),$H=Object.freeze({userProfileId:"",apiEnv:4,userEmail:"",clearcut:gEc});var hEc=function(){return qa&&ra?!ra.mobile&&(sa("iPad")||sa("Android")||sa("Silk")):sa("iPad")||sa("Android")&&!sa("Mobile")||sa("Silk")};var E9b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(E9b,n);var D9b=function(a,b){return vc(a,3,b,Cb)};var JLa=new WeakMap,ILa=function(a,b){a=[a];for(var c=b.length-1;c>=0;--c)a.push(typeof b[c],b[c]);return a.join("\v")};var iEc=Ap(function(a,b,c,d,e,f){f=f===void 0?"":f;a=new vE(a,b);f&&(a.destinationUrl=f);d&&Vvc(a,function(){return BLa().Authorization});a.setProductID(e||109303191);if(c==null?0:c.length)c=D9b(new E9b,c),a.setClearExperimentIds(c);return a.build()});var jEc=function(a,b){this.clearcut_=a;this.logContextFactory_=b;this.device_=Aaa()||sa("iPod")?4:sa("iPad")?5:zaa()?hEc()?3:2:(qa&&ra?ra.mobile:!hEc()&&(sa("iPod")||sa("iPhone")||sa("Android")||sa("IEMobile")))||hEc()?0:1},kEc=function(a){var b=a.getLogContext(),c=null;if(b.getEnableClearcut()){var d,e;c=b.getLogSource();var f=yLa();var h=Fj(b,7,Bj(Cj));c=iEc(c,f,h,(e=(d=$H.clearcut)==null?void 0:d.preferOauth)!=null?e:!1,Ej(b,15),b.getClearcutUrl())}return new jEc(c,a)},lEc=function(a){var b=a.logContextFactory_.getLogContext(),
c=new JH;c.setApplication(b.getApplicationOrUndefined());c.setDevice(a.device_);a=new KH;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},mEc=function(a,b){var c=new pE;Evc(c,b.serialize());a.clearcut_&&uE(a.clearcut_,c)};var nEc=function(a,b){this.clearcut_=a;this.logEventFactory_=b};nEc.prototype.logError=function(a){var b=lEc(this.clearcut_);(a=this.logEventFactory_.createErrorMetric(b,a))&&mEc(this.clearcut_,a)};var oEc=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 pEc=function(){this.logContext_=fu(new gu,"ppl.store")};g=pEc.prototype;g.getLogContext=function(){return this.logContext_};g.createCountMetric=function(){return null};g.createStatusMetric=function(){return null};g.createErrorMetric=function(){return null};g.createLatencyMetric=function(){return null};var qEc=function(a){this.clearcut_=a},at=function(a){a=new nEc(kEc(a),a);return new qEc(a)};g=qEc.prototype;g.start=function(a,b){a.start(b);return this};g.stop=function(a,b){a.stop(b);return this};
g.count=function(a,b){var c=this.clearcut_;b=b===void 0?1:b;var d=lEc(c.clearcut_);(a=c.logEventFactory_.createCountMetric(d,a,b))&&mEc(c.clearcut_,a);return this};g.status=function(a,b){var c=this.clearcut_,d=lEc(c.clearcut_);(a=c.logEventFactory_.createStatusMetric(d,a,b))&&mEc(c.clearcut_,a);return this};g.latency=function(a){var b=this.clearcut_,c=lEc(b.clearcut_);(a=b.logEventFactory_.createLatencyMetric(c,a))&&mEc(b.clearcut_,a);return this};g.error=function(a){this.clearcut_.logError(a);return this};
g.logError=function(){};g.logInfo=function(){return this};var aI=function(a,b){this.addressBookMap_={};this.addressBooks=[];this.ownedAddressBooks_=[];this.scheduler_=new XCc;this.eventHandler_=new Fs(this);this.ownsContactNotificationService_=!a;this.queryFilters_=[];this.contactNotificationService_=a||new sDc;(a=b)||(a=at(new pEc));this.metrics=a;this.queryFilters_.push(this.contactNotificationService_)};zu(aI,jE);g=aI.prototype;
g.addAddressBook=function(a,b){this.addressBooks.push(a);b&&this.ownedAddressBooks_.push(a);this.addressBookMap_[a.getId()]=a;this.eventHandler_.listen(a,Hra(jDc),bt(this.forwardEvent_,this))};g.forwardEvent_=function(a){this.contactNotificationService_.dispatchEvent(a)};g.getEventTarget=function(){return this.contactNotificationService_.getEventTarget()};g.invalidate=function(){this.contactNotificationService_.dispatchEvent(new kDc("c"))};
g.loadContactRows=function(a,b){var c=this,d=(new yp).setEventType(4).setApiType(2),e=new SH(d);this.metrics.count(e);this.metrics.start(e,"total");return rEc(this,a,function(f){return f.loadContactRows},function(f,h,k,q,v){sEc(function(A,E,H,L){var O=E===IH||E instanceof KCc?2:1;e.source().setCacheStatus(O);e.source().setAddressBook(H?LCc.get(H)||1:1);c.metrics.stop(e,"total");c.metrics.status(e,UCc(v||0));b&&b(A,E,H,L,v)},f,h,k,q)})};
var rEc=function(a,b,c,d){var e=new tEc(d,a.metrics),f;if(b.addressBookId){var h=a.addressBookMap_[b.addressBookId];b.delayMillis>0||b.maxTries>1?f=uEc(a,h,c(h),b,d):f=c(h).call(h,b,d);f&&e.add(f)}else for(var k=0;k<a.addressBooks.length;k++)h=a.addressBooks[k],b.delayMillis>0||b.maxTries>1?f=uEc(a,h,c(h),b,d):f=c(h).call(h,b,d),f&&e.add(f);return e};
aI.prototype.execute=function(a){var b=this,c=(new yp).setEventType(4).setApiType(1),d=new SH(c);this.metrics.count(d);this.metrics.start(d,"total");vEc(this);a.addSuccessOrFailureCallback(function(e){var f=e?UCc(e.getErrorCode()):2;e=(e=e?e.request_:null)?e.getAddressBookId():"";d.source().setCacheStatus(e?1:2);d.source().setAddressBook(e?e?LCc.get(e)||1:1:0);b.metrics.stop(d,"total");b.metrics.status(d,f)});return this.cache_&&(c=a.executeFromCache(this.cache_,function(e){return wEc(b,e,d)}))?c:
wEc(this,a,d)};var vEc=function(a){Ca(a.queryFilters_,function(){})},wEc=function(a,b,c){var d=b.getAddressBookId();if(d&&(d=a.addressBookMap_[d]))return d.execute(b);c=new tEc(void 0,a.metrics,c);c.setQuery(b);for(var e=0;e<a.addressBooks.length;e++)d=a.addressBooks[e],d.execute&&c.add(d.execute(b));return c},uEc=function(a,b,c,d,e){var f=a.scheduler_;b=bt(a.runScheduledQuery_,a,b,c,d,e);f=new VCc(f,b,d.name);a.scheduler_.schedule(f,d.delayMillis,d.maxTries,d.force);return new xEc(f)};
aI.prototype.runScheduledQuery_=function(a,b,c,d,e){e.request=b.call(a,c,function(f,h,k,q,v){e.isDone(!v)&&d&&d(f,h,k,q,v)})};var sEc=function(a,b,c,d,e){a&&(b&&(e.filter&&(b=e.filter(b,e.token)),yEc(b)),a(b||[],c,d,e))},yEc=function(a){if(a.length>0)for(var b=a[0].getPriority(),c=1;c<a.length;c++){var d=a[c],e=d.getPriority();e<b&&(d.flags|=1,b=e)}};
aI.prototype.disposeInternal=function(){aI.superClass_.disposeInternal.call(this);Io(this.scheduler_);this.scheduler_=null;Ca(this.ownedAddressBooks_,Io);this.ownedAddressBooks_=this.addressBookMap_=this.addressBooks=null;Io(this.eventHandler_);this.eventHandler_=null;Ca(this.queryFilters_,function(a){a!=this.contactNotificationService_&&Io(a)},this);this.queryFilters_=null;this.ownsContactNotificationService_&&(Io(this.contactNotificationService_),this.contactNotificationService_=null)};
var zEc=function(a){var b=new GDc(a,0);fu(b.getLogContext(),"ppl.store");var c=b.getLogContext(),d=c.setEnableClearcut;a=a.getExperiments();a=kk(a,3,!0);d.call(c,a);return at(b)},tEc=function(a,b,c){this.requests_=[];this.handler=a;this.metrics_=b;this.state_=c;this.addressBookId_=""};g=tEc.prototype;g.setAddressBookId=function(a){this.addressBookId_=a};g.getAddressBookId=function(){return this.addressBookId_};g.add=function(a){this.requests_.push(a)};
g.isEmpty=function(){return this.requests_.length==0};g.cancel=function(){this.isPending()&&this.metrics_&&this.state_&&this.metrics_.status(this.state_,1);for(var a=0;a<this.requests_.length;a++)this.requests_[a].cancel()};g.isPending=function(){for(var a=0;a<this.requests_.length;a++)if(this.requests_[a].isPending())return!0;return!1};g.getQuery=function(){return this.query_};g.setQuery=function(a){this.query_=a};var xEc=function(a){this.op=a;this.request=null};
xEc.prototype.cancel=function(){this.op.cancel();this.request&&this.request.cancel()};xEc.prototype.isPending=function(){return this.op.isPending()||this.op.request&&this.op.request.isPending()};zu(KLa,ICc);g=KLa.prototype;g.getName=function(){return null};g.getEmail=function(){return null};g.getType=function(){return"sr"};g.getPriority=function(){return 0};g.getLoggingId=function(){return"sr"};var AEc=function(a,b){aI.call(this,a,b)};Y(AEc,aI);AEc.prototype.addAddressBook=function(a,b){this.addressBooks.length==1&&(this.combiner_=new BEc(this.metrics),this.combiner_.addAddressBook(this.addressBooks[0]));aI.prototype.addAddressBook.call(this,a,b);this.combiner_&&this.combiner_.addAddressBook(a)};AEc.prototype.loadContactRows=function(a,b){return this.combiner_&&a.isAutoCompleteMode&&!a.addressBookId?this.combiner_.loadContactRows(a,b):aI.prototype.loadContactRows.call(this,a,b)};
var BEc=function(a){this.addrBooks_=[];this.rowSets_=null;this.metrics_=a};BEc.prototype.addAddressBook=function(a){this.addrBooks_.push(new CEc(this,this.addrBooks_.length,a))};BEc.prototype.loadContactRows=function(a,b){a=new DEc(a,this.metrics_,b);EEc(this,a);return a};
var EEc=function(a,b,c,d){a.rowSets_=[];for(var e=0;e<a.addrBooks_.length&&!(e==c?a.rowSets_[e]=d:a.addrBooks_[e].loadContactRows(b),e==0&&a.rowSets_[e]&&a.rowSets_[e].length>=b.query.maxMatches);e++);c=b.query;d=a.rowSets_;var f=[];e=!1;for(var h,k=0;k<d.length&&f.length<c.maxMatches;k++)if(d[k]){h=f.length;e=!0;var q=d[k],v=c.maxMatches,A=f.length;if(A==0)f=q.length>v?q.slice(0,v):q;else for(var E=0;E<q.length;E++){var H=null,L;for(L=0;L<A&&!(H=FEc(f[L],q[E]));L++);if(H)H===q[E]&&(f[L]=H);else if(f.length==
A?f=f.concat(q[E]):f.push(q[E]),f.length==v)break}h>0&&f.length>h&&(f[h].flags|=1)}e?(yEc(f),c=f):c=null;c&&b.handler&&a.addrBooks_[0]&&a.addrBooks_[0].madeCallback_&&b.handler(c,b,null,b.query);a.rowSets_=null},FEc=function(a,b){if(a.specialRowHandler||b.specialRowHandler)return null;if(a.text==b.text)return a;if(a.getEmail()==b.getEmail()&&a.getType()==b.getType()){if(!b.getName())return a;if(!a.getName())return b}return null},GEc=function(a,b,c,d){a.rowSets_?a.rowSets_[c]=d:EEc(a,b,c,d)};
BEc.prototype.handleSpecialRow=function(){};var CEc=function(a,b,c){this.combiner_=a;this.id_=b;this.addrBook_=c;this.lastAsyncLatency_=0;this.isSynchronous_=!1};
CEc.prototype.loadContactRows=function(a){var b=this,c=a.storedResults_[this.id_];if(!c){this.isSynchronous_=!0;this.madeCallback_=!1;var d=Date.now(),e=this.addrBook_.loadContactRows(a.query,function(f,h,k,q,v){b.matchListener_(a,d,f,v)});a.addRequest(this.id_,e);this.isSynchronous_=!1;this.madeCallback_||a.query.isAutoCompleteMode&&this.lastAsyncLatency_>300&&(c=[HEc(this)])}c&&GEc(this.combiner_,a,this.id_,c)};
var HEc=function(a){var b=a.addrBook_.title_;return new KLa(b?"Searching for matches from "+b:"Searching for more matches.",a.combiner_.handleSpecialRow)};
CEc.prototype.matchListener_=function(a,b,c,d){d=d===void 0?0:d;this.madeCallback_=!0;this.isSynchronous_||(this.lastAsyncLatency_=Date.now()-b);a.query.filter&&c&&(c=a.query.filter(c,a.query.token));b=this.id_;var e=this.addrBook_.getId();a.storedResults_[b]=c;a.storedErrorCodes_[b]=d;a.addressBooksToReport_[b]=e;GEc(this.combiner_,a,this.id_,c)};CEc.prototype.dispose=function(){this.combiner_=this.matcher_=null};
var DEc=function(a,b,c){var d=this;this.query=a;this.activeRequests_={};this.storedResults_={};this.addressBooksToReport_=[];this.storedErrorCodes_=[];var e=new SH((new yp).setEventType(4).setApiType(2));b.count(e);b.start(e,"total");this.handler=function(f,h,k,q){d.addressBooksToReport_.forEach(function(v,A){var E=d.activeRequests_[A];E=E===IH||E instanceof KCc?2:1;e.source().setCacheStatus(E);e.source().setAddressBook(v?LCc.get(v)||1:1);b.stop(e,"total");b.status(e,UCc(d.storedErrorCodes_[A]))});
d.addressBooksToReport_=[];c&&c(f,h,k,q)}};DEc.prototype.cancel=function(){for(var a in this.activeRequests_)this.activeRequests_[a].cancel();this.activeRequests_={}};DEc.prototype.isPending=function(){for(var a in this.activeRequests_)if(this.activeRequests_[a].isPending())return!0;return!1};DEc.prototype.addRequest=function(a,b){this.activeRequests_[a]=b};var LLa={198:"AE",230:"ae",306:"IJ",307:"ij",338:"AE",339:"ae"};var bI=function(a,b,c,d,e,f){Cp.call(this);this.cacheMaxSize_=e||0;this.rowMatchingFunction_=f||IEc;this.cache_=new PC(this.cacheMaxSize_,!0);this.cacheSize_=a||0;this.cacheMinExpiryAge_=b||0;this.cacheMaxExpiryAge_=c||0;this.cacheByType_=!!d};zu(bI,Cp);bI.prototype.disposeInternal=function(){bI.superClass_.disposeInternal.call(this);this.cache_=null};bI.prototype.clear=function(){this.cache_.clear()};
var IEc=function(a){var b=sq(Bp(a.token));return function(c){var d=new RegExp("(^|\\W+)"+b,"i");(d=Bp(String(c[1])).match(d)!=null)||(d=c[0],d=c[2].match(new RegExp("^"+b,"i"))!=null&&String(d)!="cl");return d}},JEc=function(a,b){var c="^"+a.token.toLowerCase();b&&(a.includeContacts||(c="nc"+c),a.includeGroups||(c="ng"+c),a.includePhoneContacts||(c="np"+c),a.isContactAutoComplete||(c="na"+c));a.includeProfileAddresses&&(c="pa"+c);return c},KEc=function(a,b,c){a.cache_.set(JEc(b,a.cacheByType_),c);
if(a.cacheSize_&&(b=a.cache_.getCount(),b>a.cacheSize_)){c=Date.now()-a.cacheMinExpiryAge_;do{if(a.cache_.head_.prev.value.created>=c)break;a.cache_.pop()}while(--b>a.cacheSize_)}},LEc=function(a,b,c){c=c?a.cache_.get(b):Qtc(a.cache_,b);return a.isStale(c)?(a.cache_.remove(b),null):c},MEc=function(a,b,c){c=b.length-c.length;for(var d=b.length;d>=c;d--){var e=LEc(a,b,!1);if(e)return e;b=b.substr(0,d-1)}return null},NEc=function(a,b){if(b.isContactAutoComplete)return null;var c=JEc(b,a.cacheByType_),
d=MEc(a,c,b.token);return d?d:a.cacheByType_&&c.lastIndexOf("^",0)!=0?(c=JEc(b,!1),MEc(a,c,b.token)):null};bI.prototype.isStale=function(a){return!!a&&!!this.cacheMaxExpiryAge_&&a.created+this.cacheMaxExpiryAge_<Date.now()};bI.prototype.invalidateCache=function(a){for(var b=this.cache_.getKeys(),c=0;c<b.length;c++){var d=b[c],e={token:Qtc(this.cache_,d).token};this.rowMatchingFunction_(e)(a)&&this.cache_.remove(d)}};
var OEc=function(a,b,c){this.token=a;this.matches_=b;this.partialResult_=!!c;this.count=1;this.created=Date.now()};OEc.prototype.getMatches=function(a){a&&this.count++;return this.matches_};OEc.prototype.isComplete=function(a){return!this.partialResult_||a>=0&&a<=this.matches_.length};zu(Fp,Cp);g=Fp.prototype;g.configure=function(a,b){this.title_=b;this.initialized_||(this.initialized_=!0)};g.getId=function(){return this.id_};
g.loadContactRows=function(a,b){if(this.initialized_){var c=this.cache_;if(ja(a.token)&&!c.allowEmptyQueries_)var d=JCc;else{d=a.maxMatches;var e=LEc(c,JEc(a,c.cacheByType_),!0);(d=e&&d&&!e.isComplete(d)?null:e)?d=d.getMatches():(d=NEc(c,a))&&d.getMatches().length==0?(KEc(c,a,new OEc(a.token,JCc)),d=JCc):d&&!d.partialResult_&&c.clientFilteringOk_?(d=d.getMatches(),d=Cdc(d,c.rowMatchingFunction_(a),c),KEc(c,a,new OEc(a.token,d))):d=null}d&&a.maxMatches>=0&&d.length>a.maxMatches&&(d=d.slice(0,a.maxMatches));
return(c=d)?(b&&b(c,IH,this.getId(),a),IH):this.transport_.loadContactRows(a,this.getId(),bt(this.cacheContactRowsAndInvokeHandler_,this,b))}b&&b(JCc,IH,this.getId(),a,4);return IH};g.cacheContactRowsAndInvokeHandler_=function(a,b,c,d,e,f){f||KEc(this.cache_,e,new OEc(e.token,b,e.maxMatches!=-1&&b.length>=e.maxMatches));a&&(b&&e.maxMatches>=0&&b.length>e.maxMatches&&(b=b.slice(0,e.maxMatches)),a(b,c,d,e,f))};g.onContactsChange_=function(){this.cache_.clear()};
g.disposeInternal=function(){Fp.superClass_.disposeInternal.call(this);this.cache_.dispose();this.cache_=null;PEc(this.transport_,this.id_);this.transport_=null};var REc=function(a,b,c){bI.call(this,100,18E5,432E5,!0,0,c||QEc);this.clientFilteringOk_=a;this.allowEmptyQueries_=b};Y(REc,bI);var QEc=function(a){return function(b){var c=b.getType(),d;if(d=SEc(a,c)){d=new RegExp("(^|\\W+)"+sq(Bp(a.token)),"i");var e=Bp(b.getName()||"");(d=d.test(e))||(d=a.token,d=((b=b.getEmail())?(new RegExp("^"+sq(Bp(d)),"i")).test(b):!1)&&c!="cl")}return d}},SEc=function(a,b){switch(b){case "ct":return a.includeContacts;case "cl":case "li":return a.includeGroups;case "pt":return a.includePhoneContacts}return!1};var UEc=function(a,b,c){this.includeDomainGroups_=!!c;b=b||new REc(!0,!1,TEc);Fp.call(this,a,b,"domain")};zu(UEc,Fp);UEc.prototype.loadContactRows=function(a,b){a.includeGroups&&!this.includeDomainGroups_&&(a=ej(a),a.includeGroups=!1);return UEc.superClass_.loadContactRows.call(this,a,b)};
var TEc=function(a){for(var b=Ffc(a.token).toLowerCase().split(/\s+/),c=[],d=[],e=0;e<b.length;e++){var f=sq(b[e]),h=new RegExp("^"+f,"i");c.push(new RegExp("(^|\\W+)"+f,"i"));d.push(h)}return function(k){if(SEc(a,k.getType())){for(var q=0;q<c.length;q++)if(!k.getName().match(c[q])&&!k.getEmail().match(d[q]))return!1;return!0}return!1}};UEc.prototype.execute=function(a){a=this.transport_.execute(a);a.setAddressBookId(this.getId());return a};var VEc=function(a,b){this.personId=a;this.contactId=b.CONTACT||"";this.syntheticId=b.DOMAIN_CONTACT||"";this.profileId=b.PROFILE||b.DOMAIN_PROFILE||"";this.loggingId=""},XEc=function(a){if(!a)return WEc;var b=NLa(xp("metadata.identityInfo.sourceIds",a)),c=xp("metadata.contactId",a);c&&c[0]?b.CONTACT=c[0]:b.CONTACT&&(c=parseInt(b.CONTACT,16),isFinite(c)&&(b.CONTACT=String(c)));return new VEc(a.personId||"",b)},WEc=new VEc("",{});var YEc=function(a,b){this.isLocal_=a;this.edgeIndex_=b};YEc.prototype.toString=function(){return""};var cI=function(a,b){this.metadata_=a||{};this.edgeCollection_=b};cI.prototype.toString=function(){return""};var $Ec=function(a){return ZEc(a).some(function(b){return!b.isLocal_})};cI.prototype.getSource=function(a){return ZEc(this)[a]};cI.prototype.hasSource=function(){return void 0<ZEc(this).length};var ZEc=function(a){return a.edgeCollection_?a.edgeCollection_.getSources(a.metadata_.encodedContainerId,a.metadata_.containerType):[]};cI.prototype.getCause=function(a){return aFc(this)[a]};
var aFc=function(a){return a.edgeCollection_?bFc(a.edgeCollection_,a.metadata_.edgeKeyInfo):[]};cI.prototype.getContainerType=function(){return this.metadata_.containerType};var cFc=new cI({},null);var dFc=function(a,b){this.email_=a;this.edgeCollection_=b;this.metadata_=null};g=dFc.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new cI(this.email_.metadata,this.edgeCollection_):cFc);return this.metadata_};g.hasMetaData=function(){return"metadata"in this.email_};g.getValue=function(){return this.email_.value||""};g.hasValue=function(){return!!this.getValue()};
g.getPrimary=function(){var a=this.email_.metadata;return!(!a||!a.primary)};g.getDisplayName=function(){return""};var eFc=new dFc({},null);var fFc=function(a,b){this.emails_=[];a=l(a);for(var c=a.next();!c.done;c=a.next())this.emails_.push(new dFc(c.value,b))};g=fFc.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.emails_[a]||eFc};g.getFieldLength=function(){return this.emails_.length};var gFc=new fFc([],null);var hFc=function(a,b){this.name_=a||{};this.edgeCollection_=b;this.metadata_=null};g=hFc.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=new cI(this.name_.metadata,this.edgeCollection_));return this.metadata_};g.hasMetaData=function(){return!!this.getMetaData()};g.getValue=function(){return this.name_.displayName||this.name_.formattedName||this.name_.formattedValue||this.name_.value||""};g.hasValue=function(){return!!this.getValue()};
g.getFamilyName=function(){return this.name_.familyName||""};g.hasFamilyName=function(){return!!this.getFamilyName()};g.getGivenName=function(){return this.name_.givenName||""};g.hasGivenName=function(){return!!this.getGivenName()};var iFc=new hFc({},null);var jFc=function(a){this.field_=a};g=jFc.prototype;g.toString=function(){return""};g.getField=function(){return this.field_};g.getMetaData=function(){return this.field_.getMetaData()};g.hasMetaData=function(){return this.field_.hasMetaData()};g.getValue=function(){return this.field_.getValue()};g.hasValue=function(){return this.field_.hasValue()};g.getFamilyName=function(){return this.field_.getFamilyName()};g.hasFamilyName=function(){return this.field_.hasFamilyName()};g.getGivenName=function(){return this.field_.getGivenName()};
g.hasGivenName=function(){return this.field_.hasGivenName()};var kFc=new jFc(iFc);var lFc=["CONTACT","PROFILE","DOMAIN_PROFILE"],mFc=function(a,b){this.names_=[];a=l(a);for(var c=a.next();!c.done;c=a.next())this.names_.push(new hFc(c.value,b))};g=mFc.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.names_[a]||iFc};g.getFieldLength=function(){return this.names_.length};var nFc=new mFc([],null);var oFc=function(a,b){this.phone_=a;this.edgeCollection_=b;this.metadata_=null};g=oFc.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new cI(this.phone_.metadata,this.edgeCollection_):cFc);return this.metadata_};g.hasMetaData=function(){return"metadata"in this.phone_};g.getValue=function(){return this.phone_.value||""};g.hasValue=function(){return!!this.getValue()};
g.getPrimary=function(){var a=this.phone_.metadata;return!(!a||!a.primary)};var pFc=new oFc({},null);var qFc=function(a,b){this.phones_=[];a=l(a);for(var c=a.next();!c.done;c=a.next())this.phones_.push(new oFc(c.value,b))};g=qFc.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.phones_[a]||pFc};g.getFieldLength=function(){return this.phones_.length};var rFc=new qFc([],null);var sFc=function(a,b){this.photo_=a;this.edgeCollection_=b;this.metadata_=null};g=sFc.prototype;g.toString=function(){return""};g.getMetaData=function(){this.metadata_||(this.metadata_=this.hasMetaData()?new cI(this.photo_.metadata,this.edgeCollection_):cFc);return this.metadata_};g.hasMetaData=function(){return"metadata"in this.photo_};g.getUrl=function(){return this.photo_.url||""};g.hasUrl=function(){return!!this.getUrl()};var tFc=new sFc({},null);var uFc=function(a,b){this.photos_=[];a=l(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.isMonogram||c.isDefault||this.photos_.push(new sFc(c,b))};g=uFc.prototype;g.toString=function(){return""};g.getMetaData=function(){return null};g.hasMetaData=function(){return!!this.getMetaData()};g.getField=function(a){return this.photos_[a]||tFc};g.getFieldLength=function(){return this.photos_.length};var vFc=new uFc([],null);var dI=function(a,b,c,d,e){this.person_=a;this.googleGroup_=b;this.contactLabel_=c;this.edgeCollection_=d;this.email_=this.name_=this.nameRepeated_=this.text_=null;this.emailIndex_=e===void 0?0:e;this.photo_=this.phone_=null};
dI.prototype.toString=function(){if(this.text_==null){if(this.contactLabel_){var a=this.contactLabel_.extendedData&&this.contactLabel_.extendedData.contactPreferences?this.contactLabel_.extendedData.contactPreferences.length:0;a=a==1?"(1 contact)":"("+a+" contacts)";a=this.getName().getValue()+" "+a}else a=this.person_||this.googleGroup_?OLa(this.getName().getValue(),this.getEmail().getField(this.emailIndex_).getValue()):"";this.text_=a}return this.text_};dI.prototype.hasName=function(){return!!this.getName()};
dI.prototype.getName=function(){if(!this.name_){a:{var a=TLa(this);if(a.names_.length){for(var b=l(lFc),c=b.next();!c.done;c=b.next()){c=c.value;for(var d=l(a.names_),e=d.next();!e.done;e=d.next())if(e=e.value,e.getMetaData().getContainerType()===c){a=new jFc(e);break a}}a=new jFc(a.names_[0])}else a=kFc}this.name_=a}return this.name_};
var TLa=function(a){if(!a.nameRepeated_){var b;a.person_?b=a.person_.name:a.googleGroup_?b=a.googleGroup_.names:a.contactLabel_&&(b=[a.contactLabel_.name]);a.nameRepeated_=b?new mFc(b,a.edgeCollection_):nFc}return a.nameRepeated_};g=dI.prototype;g.hasEmail=function(){return!!this.getEmail().getField(0).getValue()};
g.getEmail=function(){if(!this.email_){var a=null;this.person_?a=this.person_.email:this.googleGroup_?a=this.googleGroup_.emails:this.contactLabel_&&(a=[{value:PLa(this.contactLabel_)}]);this.email_=a?new fFc(a,this.edgeCollection_):gFc}return this.email_};g.hasPhone=function(){return!!this.getPhone().getField(0).getValue()};g.getPhone=function(){if(!this.phone_){var a;this.person_?a=this.person_.phone:this.googleGroup_&&(a=this.googleGroup_.phones);this.phone_=a?new qFc(a,this.edgeCollection_):rFc}return this.phone_};
g.hasPhoto=function(){return!!this.getPhoto().getField(0).getUrl()};g.getPhoto=function(){if(!this.photo_){var a;this.person_&&(a=this.person_.photo);this.photo_=a?new uFc(a,this.edgeCollection_):vFc}return this.photo_};g.getAddress=function(){return null};g.getStatus=function(){return null};g.hasStatus=function(){return!!this.getStatus()};g.hasAttribute=function(a){return!!this.getAttribute(a)};g.getAttribute=function(){return null};g.getDisplayName=function(){return null};g.getRelation=function(){return null};
var OLa=function(a,b){return a?b&&a!=b?'"'+a.replace(/[\\"]/g,"\\$&")+'" <'+b+">":a:b||""},wFc=new dI(null,null,null,null);var xFc=function(){this.keyToIndex_=new Map},yFc=function(a,b,c){return c.map(function(d){return a.get(b,d)}).filter(function(d){return d!=null})};xFc.prototype.get=function(a,b){b==="DOMAIN_PROFILE"&&(b="PROFILE");return this.contains(a,b)?this.keyToIndex_.get(a+"="+b):null};xFc.prototype.set=function(a,b,c){b==="DOMAIN_PROFILE"&&(b="PROFILE");this.keyToIndex_.set(a+"="+b,c)};xFc.prototype.contains=function(a,b){b==="DOMAIN_PROFILE"&&(b="PROFILE");return this.keyToIndex_.has(a+"="+b)};var RLa=function(a){this.evergreenProfile_=a?new dI(a,null,null,null):wFc};RLa.prototype.toString=function(){return""};var zFc=new RLa(null);var AFc=new YEc(!0,null),eI=function(a){this.edgeIndexResolver_=new xFc;this.sourcesCache_=new Map;this.encodedContainerIds_=[];this.readonlyOutgoingEdges_=SLa(a,this.edgeIndexResolver_,this.encodedContainerIds_)};eI.prototype.get=function(a){return this.readonlyOutgoingEdges_[a]||zFc};eI.prototype.getContainerId=function(){return this.encodedContainerIds_[void 0]||""};
var bFc=function(a,b){return b?b.map(function(c){return a.edgeIndexResolver_.get(c.containerId,c.containerType)}).filter(function(c){return c!=null}):[]};eI.prototype.getSize=function(){return this.readonlyOutgoingEdges_.length};eI.prototype.getSources=function(a,b){if(!a||!b)return[];if(b==="CONTACT")return[AFc];var c=a+"="+b;this.sourcesCache_.has(c)||this.sourcesCache_.set(c,yFc(this.edgeIndexResolver_,a,[b]).map(function(d){return new YEc(!1,d)}));return this.sourcesCache_.get(c)};var BFc=new eI(null);var CFc=function(a,b,c){a=a===void 0?null:a;b=b===void 0?0:b;c=c===void 0?!1:c;this.person_=a&&a.person||null;this.googleGroup_=a&&a.googleGroup||null;this.contactLabel_=a&&a.contactGroup||null;this.edgeCollection_=new eI(this.person_);this.emailIndex_=b;this.profile_=new dI(this.person_,this.googleGroup_,this.contactLabel_,this.edgeCollection_,this.emailIndex_);this.photoUrl_=this.phone_=this.name_=this.allIds_=null;this.text=c?this.getName()||"":this.profile_.toString()};Y(CFc,ICc);g=CFc.prototype;
g.toString=function(){return this.getType()==="cl"?this.getEmail()||"":this.text};g.getAllIds_=function(){if(!this.allIds_){if(this.person_)var a=XEc(this.person_);else if(this.googleGroup_)if(a=this.googleGroup_){var b=NLa(a.sourceIds);a=new VEc(a.personId||"",b)}else a=WEc;else this.contactLabel_?(a=this.contactLabel_)?(b={},b.CONTACT=xp("id.id",a)||"",a=new VEc("",b)):a=WEc:a=WEc;this.allIds_=a}return this.allIds_};g.getId=function(){return this.getAllIds_().contactId};
g.getName=function(){this.name_===null&&(this.name_=ULa(this.profile_,function(a){return!!a&&!$Ec(a)}),this.name_===null&&(this.name_=DFc(this,ULa)));return this.name_};g.getEmail=function(){return this.profile_.getEmail().getField(this.emailIndex_).getValue()};g.getType=function(){var a=this.profile_;return a.contactLabel_?"cl":a.googleGroup_?"li":!a.hasEmail()&&a.hasPhone()?"pt":"ct"};g.getPriority=function(){return 0};
g.getPhotoUrl=function(){this.photoUrl_===null&&(this.photoUrl_=VLa(this.profile_,function(a){return!!a&&!$Ec(a)}),this.photoUrl_===null&&(this.photoUrl_=DFc(this,VLa)));return this.photoUrl_};g.getEncryptionSupport=function(){var a=1,b=EFc(this);if(b){(b=b.extendedData)&&b.smtpServerSupportsTls&&(a=2);b=0;var c=EFc(this);if(c&&(c=c.certificate)){c=l(c);for(var d=c.next();!d.done;d=c.next())if(d=xp("status.statusCode",d.value),d===1){b=1;break}else d&&(b=d)}b===1&&(a=a===2?3:4)}return a};
g.getLoggingId=function(){return this.getAllIds_().loggingId};
var EFc=function(a){var b=xp("email",a.person_)||xp("emails",a.googleGroup_);return b?b[a.emailIndex_]||null:null},DFc=function(a,b){for(var c=a.profile_.getEmail().getField(a.emailIndex_).getMetaData(),d=0;d<aFc(c).length;d++){var e=c.getCause(d);e=a.edgeCollection_.get(e).evergreenProfile_;e=b(e);if(e!==null)return e}for(d=0;d<ZEc(c).length;d++)if(e=c.getSource(d),e.edgeIndex_!==null&&(e=a.edgeCollection_.get(e.edgeIndex_||0).evergreenProfile_,e=b(e),e!==null))return e;return""},FFc=function(a,
b,c){c=c===void 0?!1:c;if(b===void 0?0:b)return a.map(function(q){return new CFc(q,void 0,!0)});b=new Set;var d=[];a=l(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=xp("person.email",e)||xp("googleGroup.emails",e)||[];if(c||f&&f.length)for(var h=0;h<f.length;h++){var k=(xp("value",f[h])||"").trim().toLowerCase();if(c){if(b.has(k))continue;b.add(k)}d.push(new CFc(e,h))}else d.push(new CFc(e))}return d};var GFc=function(a,b,c,d,e,f,h,k,q,v,A,E,H,L,O,S){O=O===void 0?new GH:O;S=S===void 0?!1:S;this.metrics=a;this.peopleRoot=b;this.gapiApiKey=c;this.clientId=d;this.clientName=e;this.clientVersion=f||"contact_store_336195648";this.affinityType=h;this.delegatorId=k;this.timeoutMs=q;this.onAuthError=v?v:function(){};this.autocompletePageSize=A;this.rankedTargetsPageSize=E;this.peopleContainerMask=H.split(/[\s,]+/).filter(function(aa){return!!aa});this.peopleFieldMask=L;this.experiments=O;this.includeOnlyNames=
S};GFc.prototype.setTimeout=function(a){var b=this.timeoutMs;a>0&&(this.timeoutMs=a);return b};var HFc=function(a,b){b=Error.call(this,b===void 0?"":b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a};Y(HFc,Error);var fI=function(a,b,c){this.config=a;this.onAuthError_=a.onAuthError;this.timeoutMs_=a.timeoutMs;this.metrics_=a.metrics;this.metric_=new SH(b);this.handler_=c;this.promise_=this.query_=null;this.state_=0;this.addressBookId_="";this.metrics_.start(this.metric_,"total");this.metrics_.start(this.metric_,"blocked")};g=fI.prototype;g.setAddressBookId=function(a){this.addressBookId_=a};g.getAddressBookId=function(){return this.addressBookId_};g.isPending=function(){return this.state_==1};g.getQuery=function(){return this.query_};
g.setQuery=function(a){this.query_=a};g.cancel=function(){switch(this.state_){case 1:this.promise_.cancel();break;case 0:this.state_=2,this.promise_=Jmc(new yz),IFc(this,null,11)}};
g.send=function(a){var b=this;if(this.state_!==0)return this.promise_;this.metrics_.count(this.metric_);this.metrics_.stop(this.metric_,"blocked");this.metrics_.start(this.metric_,"network");this.state_=1;var c=this.buildRequest();if(c&&c.path){var d=this.config.gapiApiKey||"";d&&!zLa()&&(c.params=c.params||{},c.params.key=d);c.headers=BLa(d);c.root=this.config.peopleRoot;c.authType="auto";a=a.request(c)}else a=Promise.resolve({result:{}});return this.promise_=Umc(Mmc([a,ywc(this.timeoutMs_,"TIMEOUT")]),
function(){b.state_=2;b.metrics_.stop(b.metric_,"network")}).then(function(e){return b.onResponse_(e)},function(e){return b.onError_(e)})};g.onResponse_=function(a){if(a==="TIMEOUT")this.onError_(a);else{var b=a&&a.result;if(!b||"error"in b)this.onError_(a);else{try{var c=this.processResponse(b)}catch(d){this.onError_(d);return}try{IFc(this,c,0)}finally{this.metrics_.stop(this.metric_,"total"),this.metrics_.status(this.metric_,0)}}}};
g.onError_=function(a){var b=!1,c=2,d=1;try{if(a==="TIMEOUT")c=4,d=10;else if(a instanceof yz)c=1,d=11;else if(a instanceof HFc)c=a.code,d=TCc(c);else if(a&&typeof a==="object"){var e=xp("result.error.code",a)||a.status,f=e;f=Number(f);c=QCc.has(f)?QCc.get(f):f>=200&&f<300?0:f>=400&&f<500?9:f>=500&&f<600?13:2;d=TCc(c);b=e==401||e==403;c===2&&this.metrics_.logError("Bad status code (HTTP="+e+")",a)}else c=2,d=1}finally{this.metrics_.status(this.metric_,c),IFc(this,null,d,b)}};
var IFc=function(a,b,c,d){if(d===void 0?0:d)try{a.onAuthError_()}catch(e){throw a.metrics_.logError("AuthError handler: "+e,e),e;}try{a.handler_(b||[],c)}catch(e){throw a.metrics_.logError("Client handler: "+e,e),e;}};var JFc=function(a,b,c){var d=(new yp).setEventType(2).setRpcType(1).setToken(b);fI.call(this,a,d,c);this.clientId_=a.clientId;this.clientName_=a.clientName;this.clientVersion_=a.clientVersion;this.delegatorId_=a.delegatorId;this.token_=b;this.pageSize_=a.autocompletePageSize};Y(JFc,fI);
JFc.prototype.buildRequest=function(){var a={query:this.token_,client:this.clientId_,"clientVersion.clientAgent":"CONTACT_STORE","clientVersion.clientType":this.clientName_,"clientVersion.clientVersion":this.clientVersion_,pageSize:this.pageSize_};this.delegatorId_&&(a["authDelegationContext.delegationType"]="GMAIL",a["authDelegationContext.obfuscatedOwnerId"]=this.delegatorId_);return{method:"GET",path:"v2/people/autocomplete",params:a}};
JFc.prototype.processResponse=function(a){var b=a.status;if(b){if(b.personalResultsNotReady)throw new HFc(14,"PersonalResultsNotReady");if(b.requestThrottled)throw new HFc(8,"RequestThrottled");if(b.containsPartialResults)throw new HFc(8,"ContainsPartialResults");}return FFc(a.results||[],this.config.includeOnlyNames)};var KFc=function(a,b){this.person_=a;this.allIds_=null;this.edgeCollection_=b;this.profile_=this.person_?new dI(this.person_,null,null,this.edgeCollection_):wFc};g=KFc.prototype;g.toString=function(){return""};g.getAllIds_=function(){this.allIds_||(this.allIds_=XEc(this.person_));return this.allIds_};g.getId=function(){return this.getAllIds_().contactId||this.getAllIds_().profileId||this.getAllIds_().syntheticId};g.hasAttribute=function(a){return!!this.getAttribute(a)};g.getAttribute=function(){return null};
g.getAffinity=function(){return null};g.hasAffinity=function(){return!!this.getAffinity()};g.getDeleted=function(){return!1};var LFc=new KFc(null,BFc);var MFc=function(a){a=a===void 0?null:a;this.edgeCollection_=new eI(a);this.contact_=a?new KFc(a,this.edgeCollection_):LFc};g=MFc.prototype;g.toString=function(){return""};g.getId=function(){return this.contact_.getId()};g.getAttribute=function(a){return this.contact_.getAttribute(a)};g.hasAttribute=function(a){return this.contact_.hasAttribute(a)};g.getAffinity=function(){return this.contact_.getAffinity()};g.hasAffinity=function(){return this.contact_.hasAffinity()};g.getDeleted=function(){return this.contact_.getDeleted()};var NFc=function(a,b,c){fI.call(this,a,(new yp).setEventType(2).setRpcType(3).setLookupType(4),c);this.clientName_=a.clientName;this.clientVersion_=a.clientVersion;this.delegatorId_=a.delegatorId;this.personIds_=b.filter(function(d){return!!d});this.peopleContainerMask_=a.peopleContainerMask;this.peopleFieldMask_=a.peopleFieldMask};Y(NFc,fI);
NFc.prototype.buildRequest=function(){if(!this.personIds_.length)return{};var a={personId:this.personIds_,context:{clientVersion:{clientAgent:"CONTACT_STORE",clientType:this.clientName_,clientVersion:this.clientVersion_}},mergedPersonSourceOptions:{includedProfileStates:"CORE_ID",personModelParams:{personModel:"CONTACT_CENTRIC"}},requestMask:{imageUrlType:"FIFE_URL",includeContainer:this.peopleContainerMask_,includeField:this.peopleFieldMask_}};this.delegatorId_&&(a.context.authDelegationContext=
{delegationType:"GMAIL",obfuscatedOwnerId:this.delegatorId_});return{method:"POST",path:"v2/people:batchGet",body:a}};NFc.prototype.processResponse=function(a){return(a.personResponse||[]).filter(function(b){return b.status=="SUCCESS"}).map(function(b){return new MFc(b.person)})};var gI=function(a,b,c,d){fI.call(this,a,GLa(b),d);this.clientName_=a.clientName;this.clientVersion_=a.clientVersion;this.delegatorId_=a.delegatorId;this.lookupType_=OFc(b);this.knownIds_=c.filter(function(e){return!!e});this.peopleContainerMask_=a.peopleContainerMask;this.peopleFieldMask_=a.peopleFieldMask};Y(gI,fI);
gI.prototype.buildRequest=function(){if(!this.knownIds_.length||!this.lookupType_)return{};var a={"context.clientVersion.clientAgent":"CONTACT_STORE","context.clientVersion.clientType":this.clientName_,"context.clientVersion.clientVersion":this.clientVersion_,id:this.knownIds_,"mergedPersonSourceOptions.includedProfileStates":"CORE_ID","mergedPersonSourceOptions.personModelParams.personModel":"CONTACT_CENTRIC","profileLookupOptions.emailLookupOption":"INCLUDE_EMAIL_LOOKUP_KEY","requestMask.includeContainer":this.peopleContainerMask_,
"requestMask.includeField":this.peopleFieldMask_,"requestMask.imageUrlType":"FIFE_URL",type:this.lookupType_};this.delegatorId_&&(a["context.authDelegationContext.delegationType"]="GMAIL",a["context.authDelegationContext.obfuscatedOwnerId"]=this.delegatorId_);return{method:"GET",path:"v2/people/lookup",params:a}};
gI.prototype.processResponse=function(a){var b=a.matches,c=a.people,d=[];b&&c&&b.forEach(function(e){e=l(e.personId);for(var f=e.next();!f.done;f=e.next())(f=c[f.value])&&d.push(new MFc(f))});return d};var OFc=function(a){switch(a){case 1:return"EMAIL";case 2:return"PHONE";case 3:return"CONTACT";case 5:return"SYNTHETIC";default:return""}};var PFc=function(a,b){fI.call(this,a,(new yp).setEventType(2).setRpcType(9),b);this.affinityType_=a.affinityType;this.clientName_=a.clientName;this.clientVersion_=a.clientVersion;this.pageSize_=a.rankedTargetsPageSize;this.peopleContainerMask_=a.peopleContainerMask;this.peopleFieldMask_=a.peopleFieldMask;this.peopleExtensionNames_=[];kk(a.experiments,6,!0)&&this.peopleExtensionNames_.push("FILTER_TO_PRIMARY")};Y(PFc,fI);
PFc.prototype.buildRequest=function(){var a={"affinity.type":this.affinityType_,"context.clientVersion.clientAgent":"CONTACT_STORE","context.clientVersion.clientType":this.clientName_,"context.clientVersion.clientVersion":this.clientVersion_,"pagingOptions.pageSize":this.pageSize_,"requestMask.includeContainer":this.peopleContainerMask_,"requestMask.includeField":this.peopleFieldMask_,"mergedPersonSourceOptions.includedProfileStates":"CORE_ID","mergedPersonSourceOptions.personModelParams.personModel":"CONTACT_CENTRIC"};
this.peopleExtensionNames_.length&&(a["extensionSet.extensionNames"]=this.peopleExtensionNames_);return{method:"GET",path:"v2/people/rankedTargets",params:a}};PFc.prototype.processResponse=function(a){return FFc(a.rankedTarget||[],this.config.includeOnlyNames,!0)};g=WLa.prototype;g.getQuery=function(){return this.query_};g.setQuery=function(a){this.query_=a};g.getError=function(){return this.error_};g.setError=function(a){this.error_=a};g.getConfiguration=function(){return this.config_};g.setConfiguration=function(a){this.config_=a};g.getUserData=function(){return this.userData_};g.setUserData=function(a){this.userData_=a};var QFc=function(a){this.request_=a;this.errorCode_=0},RFc=function(a,b){b=new QFc(b);b.errorCode_=a;b.errorMessage_="A server error has occurred.";return b};g=QFc.prototype;g.hasChanges=function(){return!1};g.getError=function(){return this.errorCode_};g.getErrorCode=function(){return this.errorCode_};g.getQuery=function(){return this.request_.getQuery()};g.getConfiguration=function(){return this.queryResponse_.getConfiguration()};
g.getUserData=function(){return this.queryResponse_?this.queryResponse_.getUserData():null};var SFc=new Map([[1,4],[2,2],[3,1],[4,7]]),VFc=function(a,b){jE.call(this);var c=this;this.config_=a;this.queuedRequests_=new Map;this.gapiClient_=null;this.gapiFailed_=!1;this.metrics_=a.metrics;this.gapiMetric_=new SH((new yp).setEventType(1));this.metrics_.start(this.gapiMetric_,"total");this.metrics_.start(this.gapiMetric_,"blocked");b.then(function(d){c.metrics_.stop(c.gapiMetric_,"blocked");d?TFc(c,d):UFc(c,5)},function(d){c.metrics_.logError("gapi.client failed to load: "+d,d);UFc(c,5)})};
Y(VFc,jE);var TFc=function(a,b){b&&b.request?(FLa(),a.metrics_.stop(a.gapiMetric_,"total"),a.metrics_.status(a.gapiMetric_,0),a.gapiClient_=b,a.queuedRequests_.forEach(function(c,d){return c.forEach(function(e){return WFc(a,d,e)})})):UFc(a,9)};VFc.prototype.disposeInternal=function(){for(var a=l(this.queuedRequests_.keys()),b=a.next();!b.done;b=a.next())PEc(this,b.value)};
var UFc=function(a,b){a.metrics_.status(a.gapiMetric_,b);a.gapiFailed_=!0;a.disposeInternal()},PEc=function(a,b){b=b||"";a.queuedRequests_.has(b)&&(XFc(a.queuedRequests_.get(b)),a.queuedRequests_.delete(b))},YFc=function(a,b,c){a.gapiFailed_?c.cancel():(MLa(a,b).push(c),WFc(a,b,c))},WFc=function(a,b,c){a.gapiClient_&&Umc(c.send(a.gapiClient_),function(){var d=b;d=d||"";if(a.queuedRequests_.has(d)){d=a.queuedRequests_.get(d);var e=d.indexOf(c);e>=0&&d.splice(e,1)}})},MLa=function(a,b){b=b||"";if(a.queuedRequests_.has(b))return a.queuedRequests_.get(b);
var c=[];a.queuedRequests_.set(b,c);return c},XFc=function(a){a&&a.length&&(a.forEach(function(b){return b.cancel()}),a.length=0)};VFc.prototype.loadContactRows=function(a,b,c){var d=a&&a.token||"",e=function(h,k){return c(h,f,b,a,k)},f=d?new JFc(this.config_,d,e):new PFc(this.config_,e);YFc(this,b,f);return f};
VFc.prototype.execute=function(a){var b=a.getQueryParameters&&a.getQueryParameters()||{},c=b.addressBookId,d=function(A,E){if(E)a.setResponse(RFc(E,h));else{A=a.setResponse;E=new WLa(b);var H=new QFc(h);H.queryResponse_=E;H.errorCode_=E.getError();A.call(a,H)}},e=this.config_.setTimeout(ZFc(a));try{var f=b.emailAddresses||[];if(f.length)var h=new gI(this.config_,1,f,d);else{var k=b.contactIds||[];if(k.length)h=new gI(this.config_,3,k,d);else{var q=b.profileIds||[];if(q.length)h=new NFc(this.config_,
q,d);else{var v=b.syntheticIds||[];if(v.length)h=new gI(this.config_,5,v,d);else return this.metrics_.status(new SH((new yp).setEventType(2)),12),$Fc(a)}}}}finally{this.config_.setTimeout(e)}h.setQuery(a);YFc(this,c,h);return h};var $Fc=function(a){var b=new KCc(function(){return a.setResponse(RFc(5,b))});b.setQuery(a);return b};var aGc=function(a,b,c,d){Fp.call(this,a,b,c,d)};Y(aGc,Fp);aGc.prototype.execute=function(a){a=this.transport_.execute(a);a.setAddressBookId(this.getId());return a};var bGc=function(a,b,c){b=b||new REc(!0,!0);Fp.call(this,a,b,"personal",c)};Y(bGc,aGc);bGc.prototype.configure=function(a,b){aGc.prototype.configure.call(this,a,b)};var cGc={},dGc={},eGc={},fGc={},gGc={},hI=function(){throw Error("$c");};hI.prototype.contentDir=null;hI.prototype.getContent=function(){return this.content};hI.prototype.toString=function(){return this.content};hI.prototype.toSafeHtml=function(){if(this.contentKind!==cGc)throw Error("ad");return fd(this.toString())};var hGc=function(){hI.call(this)};zu(hGc,hI);hGc.prototype.contentKind=cGc;var iGc=function(){hI.call(this)};zu(iGc,hI);iGc.prototype.contentKind=dGc;iGc.prototype.contentDir=1;var jGc=function(a){if(a!=null)switch(a.contentDir){case 1:return 1;case -1:return-1;case 0:return 0}return null},ot=function(a){return iI(a,cGc)?a:a instanceof ed?qt(hd(a).toString()):qt(String(String(a)).replace(kGc,lGc),jGc(a))},qt=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}}(hGc),mGc=function(a){function b(c){this.content=c}b.prototype=a.prototype;return function(c){return new b(String(c))}}(iGc),
jI=function(a){return a instanceof hI?!!a.getContent():!!a},q$b=function(a){return ot(a)},vt=function(a){return iI(a,cGc)?a:qt(nGc(a,oGc),jGc(a))},pGc=RegExp("^<(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\\b"),nGc=function(a,b){if(!b)return ZLa(String(a),function(){return""}).replace(qGc,"&lt;");a=String(a).replace(/\[/g,"&#91;");var c=[],d=[];a=ZLa(a,function(f,h){if(h&&(h=h.toLowerCase(),b.hasOwnProperty(h)&&b[h])){var k=c.length,q="</",v="";if(f.charAt(1)!==
"/"){q="<";for(var A;A=rGc.exec(f);)if(A[1]&&A[1].toLowerCase()==="dir"){if(f=A[2]){if(f.charAt(0)==="'"||f.charAt(0)==='"')f=f.substr(1,f.length-2);f=f.toLowerCase();if(f==="ltr"||f==="rtl"||f==="auto")v=' dir="'+f+'"'}break}rGc.lastIndex=0}c[k]=q+h+">";d[k]=v;return"["+k+"]"}return""});a=String(a).replace(sGc,lGc);var e=tGc(c);a=a.replace(/\[(\d+)\]/g,function(f,h){return d[h]&&c[h]?c[h].substr(0,c[h].length-1)+d[h]+">":c[h]});return a+e},XLa=RegExp.prototype.hasOwnProperty("sticky"),YLa=new RegExp((XLa?
"":"^")+"(?:!|/?([a-zA-Z][a-zA-Z0-9:-]*))",XLa?"gy":"g"),uGc=function(a,b){a=a.replace(/<\//g,"<\\/").replace(/\]\]>/g,"]]\\>");return b?a.replace(/{/g," \\{").replace(/}/g," \\}").replace(/\/\*/g,"/ *").replace(/\\$/,"\\ "):a},tGc=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]="":pGc.test(e)||b.push("</"+e.substring(1))}return b.reverse().join("")},
nt=function(a){iI(a,cGc)?(a=nGc(a.getContent()),a=String(a).replace(sGc,lGc)):a=String(a).replace(kGc,lGc);return a},vGc=function(a){iI(a,fGc)&&(a=a.getContent());return(a&&!a.startsWith(" ")?" ":"")+a},yGc=function(a){return String(a).replace(wGc,xGc)},pt=function(a){iI(a,dGc)||iI(a,eGc)?a=String(a).replace(wGc,xGc):$c(a)?a=yGc(ad(a)):a instanceof Wc?a=yGc(Yc(a).toString()):(a=String(a),a=zGc.test(a)?a.replace(wGc,xGc):"about:invalid#zSoyz");return a},BGc=function(a){iI(a,dGc)||iI(a,eGc)?a=String(a).replace(wGc,
xGc):$c(a)?a=yGc(ad(a)):a instanceof Wc?a=yGc(Yc(a).toString()):(a=String(a),a=AGc.test(a)?a.replace(wGc,xGc):"about:invalid#zSoyz");return a},kI=function(a){return iI(a,gGc)?uGc(a.getContent(),!1):a==null?"":uGc(String(a),!0)},iI=function(a,b){return a!=null&&a.contentKind===b},CGc=function(){hI.call(this)};Y(CGc,hGc);
var rt=function(a,b){a.parts!==void 0?a.parts.push(b):a.content+=b;return a},tt=function(a,b){a.parts!==void 0?a.parts.push(b):b instanceof CGc?b.content!==void 0?a.content+=b.getContent():(a.parts=[a.content,b],a.content=void 0):a.content+=b;return a};CGc.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};CGc.prototype.toString=function(){return this.getContent()};
var st=function(){function a(){this.content=""}a.prototype=CGc.prototype;return function(){return new a}}(),DGc={"\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;"},lGc=function(a){return DGc[a]},EGc={"\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"},xGc=function(a){return EGc[a]},kGc=/[\x00\x22\x26\x27\x3c\x3e]/g,sGc=/[\x00\x22\x27\x3c\x3e]/g,
wGc=/[\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,zGc=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,AGc=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^ftp:|^data:image\/[a-z0-9+-]+;base64,[a-z0-9+\/]+=*$|^blob:/i,FGc=/^(?!on|src|(?:action|archive|background|cite|classid|codebase|content|data|dsync|href|http-equiv|longdesc|style|usemap)\s*$)(?:[a-z0-9_$:-]*)$/i,GGc=function(a){a=String(a);return FGc.test(a)?
a:"zSoyz"},qGc=/</g,oGc={b:!0,br:!0,em:!0,i:!0,s:!0,strong:!0,sub:!0,sup:!0,u:!0},rGc=/([a-zA-Z][a-zA-Z0-9:\-]*)[\t\n\r\u0020]*=[\t\n\r\u0020]*("[^"]*"|'[^']*')/g;var $La={};var lI=function(a,b,c){Cp.call(this);this.matcher_=a;this.selectionHandler_=c;this.renderer_=b;Ep(b,["hilite","select","canceldismiss","dismiss"],this.handleEvent,!1,this);this.token_=null;this.rows_=[];this.hiliteId_=-1;this.firstRowId_=0;this.dismissTimer_=this.target_=null;this.inputToAnchorMap_={}};zu(lI,Cp);g=lI.prototype;g.maxMatches_=10;g.getMatcher=function(){return this.matcher_};g.setMatcher=function(a){this.matcher_=a};g.getToken=function(){return this.token_};
g.handleEvent=function(a){var b=this.matcher_;if(a.target==this.renderer_)switch(a.type){case "hilite":this.hiliteId(a.row);break;case "select":var c=!1;if(typeof a.row==="number"){a=a.row;var d=this.rows_[HGc(this,a)];c=!!d&&b.isRowDisabled&&b.isRowDisabled(d);d&&!c&&this.hiliteId_!=a&&this.hiliteId(a)}c||this.selectHilited();break;case "canceldismiss":IGc(this);break;case "dismiss":JGc(this)}};
g.setToken=function(a){this.token_!=a&&(this.token_=a,this.matcher_.requestMatchingRows(this.token_,this.maxMatches_,bt(this.matchListener_,this)),IGc(this))};g.getTarget=function(){return this.target_};g.setTarget=function(a){this.target_=a};g.isOpen=function(){return this.renderer_.isVisible()};var KGc=function(a){for(var b=a.firstRowId_+a.rows_.length-1,c=a.hiliteId_,d=0;d<a.rows_.length;d++){if(c>=a.firstRowId_&&c<b)c++;else if(c==-1)c=a.firstRowId_;else break;if(a.hiliteId(c))break}};
lI.prototype.hiliteId=function(a){var b=HGc(this,a),c=this.rows_[b];return c&&this.matcher_.isRowDisabled&&this.matcher_.isRowDisabled(c)?!1:(this.hiliteId_=a,this.renderer_.hiliteId(a),b!=-1)};
lI.prototype.selectHilited=function(){var a=HGc(this,this.hiliteId_);if(a!=-1){var b=this.rows_[a],c=this.selectionHandler_;if(c.activeElement_){var d=b.toString();if(c.multi_){var e=LGc(c,c.getValue(),c.getCursorPosition()),f=MGc(c,c.getValue());c.separatorCheck_&&!c.separatorCheck_.test(d)&&(d=d.replace(/[\s\xa0]+$/,"")+c.defaultSeparator_);e==0||ja(f[e-1])||(d=" "+d);e==f.length-1&&(d+=" ");if(d!=f[e]){f[e]=d;d=c.activeElement_;d.value=f.join("");for(var h=0,k=0;k<=e;k++)h+=f[k].length;d.focus();
e=h;f=c.activeElement_;bMa(f)&&(f.selectionStart=e);f=c.activeElement_;bMa(f)&&(f.selectionEnd=e)}}else c.setValue(d);c.rowJustSelected_=!0}this.dismiss();this.dispatchEvent({type:"update",row:b,index:a});return!0}this.dismiss();this.dispatchEvent({type:"update",row:null,index:null});return!1};
lI.prototype.dismiss=function(){this.hiliteId_=-1;this.token_=null;this.firstRowId_+=this.rows_.length;this.rows_=[];window.clearTimeout(this.dismissTimer_);this.dismissTimer_=null;this.renderer_.dismiss();this.dispatchEvent("suggestionsupdate");this.dispatchEvent("dismiss")};var JGc=function(a){a.dismissTimer_||(a.dismissTimer_=window.setTimeout(bt(a.dismiss,a),100))};
lI.prototype.immediatelyCancelDelayedDismiss_=function(){return this.dismissTimer_?(window.clearTimeout(this.dismissTimer_),this.dismissTimer_=null,!0):!1};var IGc=function(a){a.immediatelyCancelDelayedDismiss_()||window.setTimeout(bt(a.immediatelyCancelDelayedDismiss_,a),10)};lI.prototype.disposeInternal=function(){lI.superClass_.disposeInternal.call(this);delete this.inputToAnchorMap_;this.renderer_.dispose();this.selectionHandler_.dispose();this.matcher_=null};
lI.prototype.matchListener_=function(a,b,c){this.token_==a&&this.renderRows(b,c)};
lI.prototype.renderRows=function(a,b){var c=ub(b)=="object"&&b;b=(c?c.getPreserveHilited():b)?HGc(this,this.hiliteId_):-1;this.firstRowId_+=this.rows_.length;this.rows_=a;for(var d=[],e=0;e<a.length;++e)d.push({id:this.firstRowId_+e,data:a[e]});a=null;this.target_&&(a=this.inputToAnchorMap_[Ma(this.target_)]||this.target_);this.renderer_.anchorElement_=a;this.renderer_.renderRows(d,this.token_,this.target_);a=!0;c&&c.getAutoHilite()!==void 0&&(a=c.getAutoHilite());this.hiliteId_=-1;(a||b>=0)&&d.length!=
0&&this.token_&&(b>=0?this.hiliteId(this.firstRowId_+b):KGc(this));this.dispatchEvent("suggestionsupdate")};var HGc=function(a,b){b-=a.firstRowId_;return b<0||b>=a.rows_.length?-1:b};lI.prototype.attachInputs=function(a){var b=this.selectionHandler_;b.attachInputs.apply(b,arguments)};lI.prototype.detachInputs=function(a){var b=this.selectionHandler_;b.detachInputs.apply(b,arguments);Array.prototype.forEach.call(arguments,function(c){dj(this.inputToAnchorMap_,Ma(c))},this)};lI.prototype.update=function(a){this.selectionHandler_.update(a)};var PGc=function(a,b,c,d,e,f){if(ht&&e)return NGc(a);if(e&&!d)return!1;if(!Kp){typeof b==="number"&&(b=OGc(b));var h=b==17||b==18||ht&&b==91;if((!c||ht)&&h||ht&&b==16&&(d||f))return!1}if(Jp&&d&&c)switch(a){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}switch(a){case 13:return Kp?f||e?!1:!(c&&d):!0;case 27:return!Jp&&!Kp}return Kp&&(d||e||f)?!1:NGc(a)},NGc=function(a){if(a>=48&&a<=57||a>=96&&a<=106||a>=65&&a<=90||Jp&&a==0)return!0;
switch(a){case 32:case 43:case 63:case 64:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:case 163:case 58:return!0;case 173:case 171:return Kp;default:return!1}},OGc=function(a){if(Kp)a=QGc(a);else if(ht&&Jp)switch(a){case 93:a=91}return a},QGc=function(a){switch(a){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return a}};zu(dMa,Ip);var RGc=function(a,b){Cp.call(this);a&&this.attach(a,b)};zu(RGc,Cp);g=RGc.prototype;g.element_=null;g.keyPressKey_=null;g.keyDownKey_=null;g.keyUpKey_=null;g.lastKey_=-1;g.keyCode_=-1;g.altKey_=!1;
var SGc={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},TGc={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},UGc=ht&&Kp;g=RGc.prototype;
g.handleKeyDown_=function(a){Jp&&(this.lastKey_==17&&!a.ctrlKey||this.lastKey_==18&&!a.altKey||ht&&this.lastKey_==91&&!a.metaKey)&&this.resetState();this.lastKey_==-1&&(a.ctrlKey&&a.keyCode!=17?this.lastKey_=17:a.altKey&&a.keyCode!=18?this.lastKey_=18:a.metaKey&&a.keyCode!=91&&(this.lastKey_=91));PGc(a.keyCode,this.lastKey_,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey)?(this.keyCode_=OGc(a.keyCode),UGc&&(this.altKey_=a.altKey)):this.handleEvent(a)};g.resetState=function(){this.keyCode_=this.lastKey_=-1};
g.handleKeyup_=function(a){this.resetState();this.altKey_=a.altKey};
g.handleEvent=function(a){var b=a.event_,c=b.altKey;if(Jp&&a.type=="keypress"){var d=this.keyCode_;var e=b.charCode>=0&&b.charCode<63232&&NGc(d)?b.charCode:0}else a.type=="keypress"?(UGc&&(c=this.altKey_),b.keyCode==b.charCode?b.keyCode<32?(d=b.keyCode,e=0):(d=this.keyCode_,e=b.charCode):(d=b.keyCode||this.keyCode_,e=b.charCode||0)):(d=b.keyCode||this.keyCode_,e=b.charCode||0),ht&&e==63&&d==224&&(d=191);var f=d=OGc(d);d?d>=63232&&d in SGc?f=SGc[d]:d==25&&a.shiftKey&&(f=9):b.keyIdentifier&&b.keyIdentifier in
TGc&&(f=TGc[b.keyIdentifier]);if(!Kp||a.type!="keypress"||PGc(f,this.lastKey_,a.shiftKey,a.ctrlKey,c,a.metaKey))a=f==this.lastKey_,this.lastKey_=f,b=new dMa(f,e,a,b),b.altKey=c,this.dispatchEvent(b)};g.getElement=function(){return this.element_};
g.attach=function(a,b){this.keyUpKey_&&this.detach();this.element_=a;this.keyPressKey_=Ep(this.element_,"keypress",this,b);this.keyDownKey_=Ep(this.element_,"keydown",this.handleKeyDown_,b,this);this.keyUpKey_=Ep(this.element_,"keyup",this.handleKeyup_,b,this)};g.detach=function(){this.keyPressKey_&&(CE(this.keyPressKey_),CE(this.keyDownKey_),CE(this.keyUpKey_),this.keyUpKey_=this.keyDownKey_=this.keyPressKey_=null);this.element_=null;this.keyCode_=this.lastKey_=-1};
g.disposeInternal=function(){RGc.superClass_.disposeInternal.call(this);this.detach()};var mI=function(a,b,c,d){jE.call(this);d=d||150;this.multi_=c!=null?c:!0;this.separators_=a||",;";this.defaultSeparator_=this.separators_.charAt(0);a=this.multi_?"[\\s"+this.separators_+"]+":"[\\s]+";this.trimmer_=new RegExp("^"+a+"|"+a+"$","g");this.separatorCheck_=new RegExp("\\s*["+this.separators_+"]$");this.literals_=b||"";this.preventDefaultOnTab_=this.multi_;this.timer_=d>0?new DE(d):null;this.eh_=new Fs(this);this.activateHandler_=new Fs(this);this.keyHandler_=new RGc;this.lastKeyCode_=-1};
zu(mI,jE);g=mI.prototype;g.activeElement_=null;g.lastValue_="";g.waitingForIme_=!1;g.rowJustSelected_=!1;g.getValue=function(){return this.activeElement_.value};g.setValue=function(a){this.activeElement_.value=a};g.getCursorPosition=function(){return cMa(this.activeElement_,!0)[0]};
g.attachInputs=function(a){for(var b=0;b<arguments.length;b++){var c=arguments[b];qz(c)&&(MG(c,"combobox"),NG(c,"autocomplete","list"));this.eh_.listen(c,"focus",this.handleFocus);this.eh_.listen(c,"blur",this.handleBlur);if(!this.activeElement_&&(this.activateHandler_.listen(c,"keydown",this.onKeyDownOnInactiveElement_),qz(c))){var d=jz(c);try{var e=d&&d.activeElement;var f=e&&e.nodeName?e:null}catch(h){f=null}f==c&&VGc(this,c)}}};
g.detachInputs=function(a){for(var b=0;b<arguments.length;b++){var c=arguments[b];qz(c)&&(c.removeAttribute("role"),c.removeAttribute("aria-autocomplete"));c==this.activeElement_&&this.handleBlur();this.eh_.unlisten(c,"focus",this.handleFocus);this.eh_.unlisten(c,"blur",this.handleBlur);this.activeElement_||this.activateHandler_.unlisten(c,"keydown",this.onKeyDownOnInactiveElement_)}};
g.disposeInternal=function(){mI.superClass_.disposeInternal.call(this);this.eh_.dispose();delete this.eh_;this.activateHandler_.dispose();this.keyHandler_.dispose();Io(this.timer_)};
var WGc=function(a,b){switch(b.keyCode){case 40:if(a.ac_.isOpen()){KGc(a.ac_);b.preventDefault();return}if(!a.multi_){a.update(!0);b.preventDefault();return}break;case 38:if(a.ac_.isOpen()){a:{a=a.ac_;for(var c=a.hiliteId_,d=0;d<a.rows_.length;d++){if(c>a.firstRowId_)c--;else break;if(a.hiliteId(c))break a}}b.preventDefault();return}break;case 9:if(!a.ac_.isOpen()||b.shiftKey)a.ac_.dismiss();else if(a.update(),a.ac_.selectHilited()&&a.preventDefaultOnTab_){b.preventDefault();return}break;case 13:if(a.ac_.isOpen()){if(a.update(),
a.ac_.selectHilited()){b.preventDefault();b.stopPropagation();return}}else a.ac_.dismiss();break;case 27:if(a.ac_.isOpen()){a.ac_.dismiss();b.preventDefault();b.stopPropagation();return}break;case 229:if(!a.waitingForIme_){a.waitingForIme_||(a.eh_.listen(a.activeElement_,"keyup",a.onKeyUp_),a.eh_.listen(a.activeElement_,"keypress",a.onKeyPress_),a.waitingForIme_=!0);return}}(c=a.multi_&&b.charCode&&a.separators_.indexOf(String.fromCharCode(b.charCode))!=-1)&&a.update();c&&a.ac_.selectHilited()&&b.preventDefault()};
mI.prototype.handleKeyUp=function(){return!1};mI.prototype.handleFocus=function(a){VGc(this,a.target||null)};var VGc=function(a,b){a.activateHandler_.removeAll();a.ac_&&IGc(a.ac_);b!=a.activeElement_&&(a.activeElement_=b,a.timer_&&(a.timer_.start(),a.eh_.listen(a.timer_,"tick",a.onTick_)),a.lastValue_=a.getValue(),a.keyHandler_.attach(a.activeElement_),a.eh_.listen(a.keyHandler_,"key",a.onKey_),a.eh_.listen(a.activeElement_,"mousedown",a.onMouseDown_))};g=mI.prototype;
g.handleBlur=function(){this.activeElement_&&(this.eh_.unlisten(this.keyHandler_,"key",this.onKey_),this.keyHandler_.detach(),this.eh_.unlisten(this.activeElement_,"keyup",this.handleKeyUp),this.eh_.unlisten(this.activeElement_,"mousedown",this.onMouseDown_),this.waitingForIme_&&XGc(this),this.activeElement_=null,this.timer_&&(this.timer_.stop(),this.eh_.unlisten(this.timer_,"tick",this.onTick_)),this.ac_&&JGc(this.ac_))};g.onTick_=function(){this.update()};g.onKeyDownOnInactiveElement_=function(a){this.handleFocus(a)};
g.onKey_=function(a){this.lastKeyCode_=a.keyCode;this.ac_&&WGc(this,a)};g.onKeyPress_=function(){this.waitingForIme_&&this.lastKeyCode_!=229&&XGc(this)};g.onKeyUp_=function(a){this.waitingForIme_&&(a.keyCode==13||a.keyCode==77&&a.ctrlKey)&&XGc(this)};g.onMouseDown_=function(){};var XGc=function(a){a.waitingForIme_&&(a.waitingForIme_=!1,a.eh_.unlisten(a.activeElement_,"keypress",a.onKeyPress_),a.eh_.unlisten(a.activeElement_,"keyup",a.onKeyUp_))};
mI.prototype.update=function(a){if(this.activeElement_&&(a||this.getValue()!=this.lastValue_)){if(a||!this.rowJustSelected_){a=this.getCursorPosition();var b=this.getValue();a=MGc(this,b)[LGc(this,b,a)];a=this.trimmer_?String(a).replace(this.trimmer_,""):a;this.ac_&&(this.ac_.setTarget(this.activeElement_),this.ac_.setToken(a,this.getValue()))}this.lastValue_=this.getValue()}this.rowJustSelected_=!1};
var LGc=function(a,b,c){a=MGc(a,b);if(c==b.length)return a.length-1;for(var d=b=0,e=0;e<a.length&&d<=c;e++)d+=a[e].length,b=e;return b},MGc=function(a,b){if(!a.multi_)return[b];b=String(b).split("");for(var c=[],d=[],e=!1,f=0;f<b.length;f++)a.literals_&&a.literals_.indexOf(b[f])!=-1?(e||(c.push(d.join("")),d.length=0),d.push(b[f]),e=!e):e||a.separators_.indexOf(b[f])==-1?d.push(b[f]):(d.push(b[f]),c.push(d.join("")),d.length=0);c.push(d.join(""));return c};var YGc=function(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""},ZGc=function(a){return a.classList?a.classList:YGc(a).match(/\S+/g)||[]},$Gc=function(a,b){typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)},aHc=function(a,b){a.classList?b=a.classList.contains(b):(a=ZGc(a),b=Da(a,b)>=0);return b},bHc=function(a,b){if(a.classList)a.classList.add(b);else if(!aHc(a,b)){var c=YGc(a);$Gc(a,c+(c.length>0?" "+b:b))}},nI=function(a,
b){if(a.classList)Array.prototype.forEach.call(b,function(e){bHc(a,e)});else{var c={};Array.prototype.forEach.call(ZGc(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;$Gc(a,b)}},cHc=function(a,b){a.classList?a.classList.remove(b):aHc(a,b)&&$Gc(a,Array.prototype.filter.call(ZGc(a),function(c){return c!=b}).join(" "))},dHc=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){cHc(a,c)}):$Gc(a,Array.prototype.filter.call(ZGc(a),
function(c){return!(Da(b,c)>=0)}).join(" "))};g=Lp.prototype;g.getWidth=function(){return this.right-this.left};g.getHeight=function(){return this.bottom-this.top};g.clone=function(){return new Lp(this.top,this.right,this.bottom,this.left)};g.contains=function(a){return this&&a?a instanceof Lp?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.expand=function(a,b,c,d){La(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=Number(b),this.bottom+=Number(c),this.left-=Number(d));return this};g.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
g.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};g.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
g.translate=function(a,b){a instanceof Is?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.right+=a,typeof b==="number"&&(this.top+=b,this.bottom+=b));return this};g.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};var oI=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};oI.prototype.clone=function(){return new oI(this.left,this.top,this.width,this.height)};var m6b=function(a){return new oI(a.left,a.top,a.right-a.left,a.bottom-a.top)};
oI.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 eHc=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 oI(c,e,d-c,a-e)}return null};
g=oI.prototype;g.difference=function(a){var b=eHc(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,h=a.left+a.width,k=a.top+a.height;a.top>this.top&&(b.push(new oI(this.left,this.top,this.width,a.top-this.top)),c=a.top,d-=a.top-this.top);k<f&&(b.push(new oI(this.left,k,this.width,f-k)),d=k-c);a.left>this.left&&b.push(new oI(this.left,c,a.left-this.left,d));h<e&&b.push(new oI(h,c,e-h,d));a=b}else a=[this.clone()];return a};
g.contains=function(a){return a instanceof Is?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};g.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};g.getSize=function(){return new hz(this.width,this.height)};
g.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};g.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};g.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.translate=function(a,b){a instanceof Is?(this.left+=a.x,this.top+=a.y):(this.left+=a,typeof b==="number"&&(this.top+=b));return this};g.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var E$b={},pI=function(a,b){var c=jz(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""},Fr=function(a,b){return pI(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]},fHc=function(a){return Fr(a,"position")},Js=function(a,b,c){if(b instanceof Is){var d=b.x;b=b.y}else d=b,b=c;a.style.left=qI(d,!1);a.style.top=qI(b,!1)},gHc=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,
right:0,bottom:0}}},a7b=function(a){var b=jz(a),c=Fr(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=Fr(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},l6b=function(a){for(var b=new Lp(0,Infinity,Infinity,0),c=Gp(a),d=c.document_.body,e=c.document_.documentElement,f=dmc(c.document_);a=
a7b(a);)if((!Jp||a.clientHeight!=0||a!=d)&&a!=d&&a!=e&&Fr(a,"overflow")!="visible"){var h=rI(a),k=new Is(a.clientLeft,a.clientTop);h.x+=k.x;h.y+=k.y;b.top=Math.max(b.top,h.y);b.right=Math.min(b.right,h.x+a.clientWidth);b.bottom=Math.min(b.bottom,h.y+a.clientHeight);b.left=Math.max(b.left,h.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,f);c=c.getViewportSize();b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return b.top>=0&&b.left>=0&&b.bottom>
b.top&&b.right>b.left?b:null},b7b=function(a,b){b=b||dmc(document);var c=b||dmc(document);var d=rI(a),e=rI(c),f=pI(c,"borderLeftWidth");var h=pI(c,"borderRightWidth");var k=pI(c,"borderTopWidth"),q=pI(c,"borderBottomWidth");h=new Lp(parseFloat(k),parseFloat(h),parseFloat(q),parseFloat(f));c==dmc(document)?(f=d.x-c.scrollLeft,d=d.y-c.scrollTop):(f=d.x-e.x-h.left,d=d.y-e.y-h.top);a=hHc(a);e=c.clientHeight-a.height;h=c.scrollLeft;k=c.scrollTop;h+=Math.min(f,Math.max(f-(c.clientWidth-a.width),0));k+=
Math.min(d,Math.max(d-e,0));c=new Is(h,k);b.scrollLeft=c.x;b.scrollTop=c.y},rI=function(a){var b=jz(a),c=new Is(0,0);if(a==(b?jz(b):document).documentElement)return c;a=gHc(a);b=pmc(Gp(b));c.x=a.left+b.x;c.y=a.top+b.y;return c},n6b=function(a,b,c){if(b.document_!=c.document_){b=b.document_.body;c=c.getWindow();var d=new Is(0,0),e=nz(jz(b));if(Gdc(e,"parent")){var f=b;do{if(e==c)var h=rI(f);else h=gHc(f),h=new Is(h.left,h.top);d.x+=h.x;d.y+=h.y}while(e&&e!=c&&e!=e.parent&&(f=e.frameElement)&&(e=e.parent))}b=
p6b(d,rI(b));a.left+=b.x;a.top+=b.y}},iHc=function(a,b,c){if(b instanceof hz)c=b.height,b=b.width;else if(c==void 0)throw Error("dd");a.style.width=qI(b,!0);a.style.height=qI(c,!0)},qI=function(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a},jHc=function(a){return r6b(a)},r6b=function(a){var b=hHc;if(Fr(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},hHc=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=Jp&&!b&&!c;return(b===void 0||d)&&a.getBoundingClientRect?(a=gHc(a),new hz(a.right-a.left,a.bottom-a.top)):new hz(b,c)},k6b=function(a){var b=rI(a);a=r6b(a);return new oI(b.x,b.y,a.width,a.height)},kHc=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+")")},Kr=function(a,b){a.style.display=b?"":"none"},At=function(a){return"rtl"==
Fr(a,"direction")},lHc=Kp?"MozUserSelect":Jp||Idc?"WebkitUserSelect":null,mHc=function(a){var b=a.getElementsByTagName("*");if(lHc&&(a.style&&(a.style[lHc]="none"),b))for(var c=0;a=b[c];c++)a.style&&(a.style[lHc]="none")},u6b=function(a,b){a=a.style;Kp?a.MozBoxSizing="border-box":Jp?a.WebkitBoxSizing="border-box":a.boxSizing="border-box";a.width=Math.max(b.width,0)+"px";a.height=Math.max(b.height,0)+"px"},nHc=function(a){var b=pI(a,"marginLeft"),c=pI(a,"marginRight"),d=pI(a,"marginTop");a=pI(a,"marginBottom");
return new Lp(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};var oHc=function(){if(Kdc){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(pa()))?a[1]:"0"}return ht?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(pa()))?a[0].replace(/_/g,"."):"10"):Mdc?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(pa()))?a[1]:""):Ndc||Odc||Pdc?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(pa()))?a[1].replace(/_/g,"."):""):""}();var sI=function(a){return(a=a.exec(pa()))?a[1]:""},pHc=function(){if(Xdc)return sI(/Firefox\/([0-9.]+)/);if(Ps||Idc||Hdc)return Wdc;if(aec){if(ya()||Aa()){var a=sI(/CriOS\/([0-9.]+)/);if(a)return a}return sI(/Chrome\/([0-9.]+)/)}if(bec&&!ya())return sI(/Version\/([0-9.]+)/);if(Ydc||Zdc){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(pa()))return a[1]+"."+a[2]}else if($dc)return(a=sI(/Android\s+([0-9.]+)/))?a:sI(/Version\/([0-9.]+)/);return""}();var j6b=function(a){if(a=a.offsetParent){var b=a.tagName=="HTML"||a.tagName=="BODY";if(!b||fHc(a)!="static"){var c=rI(a);if(!b){b=At(a);var d;if(d=b){d=bec&&raa(pHc,10)>=0;var e;if(e=Qdc)e=raa(oHc,10)>=0;var f=aec&&raa(pHc,85)>=0;d=Kp||d||e||f}b=d?-a.scrollLeft:b&&Fr(a,"overflowX")!="visible"?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft;c=p6b(c,new Is(b,a.scrollTop))}}}return c||new Is},q6b=function(a,b,c,d,e,f){a=a.clone();b=b.clone();var h=0;if(d||c!=0)c&4?a.x-=b.width+(d?d.right:0):c&
2?a.x-=b.width/2:d&&(a.x+=d.left),c&1?a.y-=b.height+(d?d.bottom:0):d&&(a.y+=d.top);if(f){if(e){h=a;c=b;d=0;(f&65)==65&&(h.x<e.left||h.x>=e.right)&&(f&=-2);(f&132)==132&&(h.y<e.top||h.y>=e.bottom)&&(f&=-5);h.x<e.left&&f&1&&(h.x=e.left,d|=1);if(f&16){var k=h.x;h.x<e.left&&(h.x=e.left,d|=4);h.x+c.width>e.right&&(c.width=Math.min(e.right-h.x,k+c.width-e.left),c.width=Math.max(c.width,0),d|=4)}h.x+c.width>e.right&&f&1&&(h.x=Math.max(e.right-c.width,e.left),d|=1);f&2&&(d|=(h.x<e.left?16:0)|(h.x+c.width>
e.right?32:0));h.y<e.top&&f&4&&(h.y=e.top,d|=2);f&32&&(k=h.y,h.y<e.top&&(h.y=e.top,d|=8),h.y+c.height>e.bottom&&(c.height=Math.min(e.bottom-h.y,k+c.height-e.top),c.height=Math.max(c.height,0),d|=8));h.y+c.height>e.bottom&&f&4&&(h.y=Math.max(e.bottom-c.height,e.top),d|=2);f&8&&(d|=(h.y<e.top?64:0)|(h.y+c.height>e.bottom?128:0));e=d}else e=256;h=e}e=new oI(0,0,0,0);e.left=a.x;e.top=a.y;e.width=b.width;e.height=b.height;return{rect:e,status:h}},o6b=function(a,b){return(b&8&&At(a)?b^4:b)&-9};var Qs=function(){};Qs.instance_=void 0;Qs.getInstance=function(){return Qs.instance_?Qs.instance_:Qs.instance_=new Qs};Qs.prototype.nextId_=0;Qs.prototype.idPrefix_="";Qs.prototype.setIdPrefix=function(a){this.idPrefix_=a};var Es=function(a){return a.idPrefix_+":"+(a.nextId_++).toString(36)};var tI=function(a,b,c,d){Cp.call(this);this.parent_=a||document.body;this.dom_=Gp(this.parent_);this.reposition_=!a;this.element_=null;this.token_="";this.rows_=[];this.rowDivs_=[];this.startRenderingRows_=this.hilitedRow_=-1;this.visible_=!1;this.className="ac-renderer";this.highlightedClassName="ac-highlighted";this.customRenderer_=b||null;this.useStandardHighlighting_=d!=null?d:!0;this.highlightAllTokens_=!1;this.rightAlign_=!!c};zu(tI,Cp);g=tI.prototype;g.getElement=function(){return this.element_};
g.getAnchorElement=function(){return this.anchorElement_};g.renderRows=function(a,b,c){this.token_=b;this.rows_=a;this.hilitedRow_=-1;this.startRenderingRows_=Date.now();this.target_=c;this.rowDivs_=[];qHc(this)};g.dismiss=function(){this.visible_&&(this.visible_=!1,rHc(this,!1),Kr(this.element_,!1))};g.show=function(){this.visible_||(this.visible_=!0,rHc(this,!0),Kr(this.element_,!0))};
var rHc=function(a,b){a.target_&&(NG(a.target_,"haspopup",b),NG(a.element_,"expanded",b),NG(a.target_,"expanded",b),b?NG(a.target_,"owns",a.element_.id):(a.target_.removeAttribute("aria-owns"),OG(a.target_,null)))};tI.prototype.isVisible=function(){return this.visible_};
var sHc=function(a,b){var c=b>=0&&b<a.rows_.length?a.rows_[b]:void 0,d=b>=0&&b<a.rowDivs_.length?a.rowDivs_[b]:void 0;a.dispatchEvent({type:"rowhilite",rowNode:d,row:c?c.data:null})&&(a.hilitedRow_>=0&&dHc(a.rowDivs_[a.hilitedRow_],["ac-active","active"]),a.hilitedRow_=b,d&&(nI(d,["ac-active","active"]),a.target_&&OG(a.target_,d),b7b(d,a.element_)))};tI.prototype.hiliteId=function(a){if(a==-1)sHc(this,-1);else for(var b=0;b<this.rows_.length;b++)if(this.rows_[b].id==a){sHc(this,b);break}};
var tHc=function(a){if(!a.element_){var b=a.dom_.createDom("DIV",{style:"display:none"});a.element_=b;nI(b,oa(a.className).split(" "));MG(b,"listbox");b.id=Es(Qs.getInstance());a.dom_.appendChild(a.parent_,b);Ep(b,"click",a.handleClick_,!1,a);Ep(b,"mousedown",a.handleMouseDown_,!1,a);Ep(b,"mouseover",a.handleMouseOver_,!1,a)}},qHc=function(a){tHc(a);a.widthProvider_&&(a.element_.style.minWidth=a.widthProvider_.clientWidth-0+"px");a.maxWidthProvider_&&(a.element_.style.maxWidth=a.maxWidthProvider_.clientWidth-
0+"px");a.rowDivs_.length=0;a.dom_.removeChildren(a.element_);a.customRenderer_&&a.customRenderer_.render?a.customRenderer_.render(a,a.element_,a.rows_,a.token_):a.rows_.forEach(function(b){var c=this.token_,d=this.dom_.createDom("DIV",{className:"ac-row",id:Es(Qs.getInstance())});MG(d,"option");this.customRenderer_&&this.customRenderer_.renderRow?this.customRenderer_.renderRow(b,c,d):rz(d,b.data.toString());c&&this.useStandardHighlighting_&&(this.wasHighlightedAtLeastOnce_=!1,uHc(this,d,c));bHc(d,
"ac-row");this.rowDivs_.push(d);b=d;this.dom_.appendChild(this.element_,b)},a);a.rows_.length==0?a.dismiss():(a.show(),a.reposition(),mHc(a.element_))};
tI.prototype.reposition=function(){if(this.target_&&this.reposition_){var a=this.anchorElement_||this.target_;var b=this.rightAlign_?5:1;var c=this.element_,d=b^1,e=j6b(c),f=k6b(a),h=l6b(a);h&&f.intersection(m6b(h));n6b(f,Gp(a),Gp(c));a=o6b(a,b);b=f.left;a&4?b+=f.width:a&2&&(b+=f.width/2);a=new Is(b,f.top+(a&1?f.height:0));a=p6b(a,e);if(f=l6b(c))f.top-=e.y,f.right-=e.x,f.bottom-=e.y,f.left-=e.x;e=a.clone();a=o6b(c,d);d=r6b(c);b=d.clone();e=q6b(e,b,a,null,f,65);e.status&496||(f=e.rect,Js(c,new Is(f.left,
f.top)),b=e.rect.getSize(),t6b(d,b)||u6b(c,b))}};tI.prototype.getTarget=function(){return this.target_||null};tI.prototype.disposeInternal=function(){this.element_&&(BE(this.element_,"click",this.handleClick_,!1,this),BE(this.element_,"mousedown",this.handleMouseDown_,!1,this),BE(this.element_,"mouseover",this.handleMouseOver_,!1,this),this.dom_.removeNode(this.element_),this.element_=null,this.visible_=!1);Io(this.animation_);this.parent_=null;tI.superClass_.disposeInternal.call(this)};
var uHc=function(a,b,c){if(a.highlightAllTokens_||!a.wasHighlightedAtLeastOnce_)if(b.nodeType==3){var d=null;Array.isArray(c)&&c.length>1&&!a.highlightAllTokens_&&(d=c.slice(1));c=vHc(a,c);if(c.length!=0){var e=b.nodeValue,f=new RegExp("\\b(?:"+c+")","gi");c=[];for(var h=0,k=f.exec(e),q=0;k;)q++,c.push(e.substring(h,k.index)),c.push(e.substring(k.index,f.lastIndex)),h=f.lastIndex,k=f.exec(e);c.push(e.substring(h));if(c.length>1){d=a.highlightAllTokens_?q:1;for(e=0;e<d;e++)f=2*e,b.nodeValue=c[f],h=
a.dom_.createElement("B"),h.className=a.highlightedClassName,a.dom_.appendChild(h,a.dom_.createTextNode(c[f+1])),h=b.parentNode.insertBefore(h,b.nextSibling),b.parentNode.insertBefore(a.dom_.createTextNode(""),h.nextSibling),b=h.nextSibling;b.nodeValue=c.slice(d*2).join("");a.wasHighlightedAtLeastOnce_=!0}else d&&uHc(a,b,d)}}else for(b=b.firstChild;b;)d=b.nextSibling,uHc(a,b,c),b=d},vHc=function(a,b){var c="";if(!b)return c;Array.isArray(b)&&(b=b.filter(function(d){return!ja(Ur(d))}));a.highlightAllTokens_?
Array.isArray(b)?c=b.map(sq).join("|"):(c=Ffc(b),c=sq(c),c=c.replace(/ /g,"|")):Array.isArray(b)?c=b.length>0?sq(b[0]):"":/^\W/.test(b)||(c=sq(b));return c},wHc=function(a,b){for(;b&&b!=a.element_&&!aHc(b,"ac-row");)b=b.parentNode;return b?a.rowDivs_.indexOf(b):-1};tI.prototype.handleClick_=function(a){var b=wHc(this,a.target);b>=0&&this.dispatchEvent({type:"select",row:this.rows_[b].id});a.stopPropagation()};tI.prototype.handleMouseDown_=function(a){a.stopPropagation();a.preventDefault()};
tI.prototype.handleMouseOver_=function(a){a=wHc(this,a.target);a>=0&&!(Date.now()-this.startRenderingRows_<300)&&this.dispatchEvent({type:"hilite",row:this.rows_[a].id})};var uI=function(a,b,c,d,e,f,h,k,q,v){f=f||new mI(",;",'"');h=new tI(h||null,q||this,v);h.reposition_=!0;h.className=b;h.highlightAllTokens_=!0;lI.call(this,this,h,f);this.inputHandler_=this.selectionHandler_;this.inputHandler_.ac_=this;this.contactStore_=a;this.addressBookId_=c;this.filter_=d||null;this.maxMatches_=e||15;this.ownsContactStore_=!!k};zu(uI,lI);
var yHc=function(a,b,c,d,e,f,h){b=new uI(null,b,void 0,f,c,d,e,void 0,void 0,h);c=xHc;d=a.getClientInfo();(e=kk(d,10))||(e=a.getExperiments(),e=kk(e,5,!0));e=(f=e)?new AEc(void 0,zEc(a)):new aI(void 0,zEc(a));h=at(new GDc(a,1));var k=a.getUserInfo().getEnvType()||1;var q=SFc.get(k)||4;q=CLa("people-pa",q===void 0?0:q);k===4?(k=a.getClientInfo(),k=Rc(k,2)||""):(k=a.getClientInfo(),k=Rc(k,1)||"");var v=a.getClientInfo();v=Rc(v,4);var A=a.getClientInfo();A=Rc(A,5);var E=a.getClientInfo();E=Rc(E,6)||
"";var H=a.getClientInfo().getAffinityType()||"";var L=a.getUserInfo();L=$k(L,2);var O=a.getAuthErrorHandler();var S=a.getClientInfo();S=Ej(S,8,3E4);var aa=a.getClientInfo();aa=kk(aa,17);var ka=a.getClientInfo();ka=Ej(ka,13,15);var na=a.getClientInfo();na=Ej(na,14,500);var za=a.getClientInfo();za=Rc(za,15,"CONTACT,PROFILE,DOMAIN_CONTACT,DOMAIN_PROFILE,AFFINITY");var Na=a.getClientInfo();Na=Rc(Na,16,"person.name,person.photo,person.email,person.phone,person.email.certificate,person.metadata");h=new GFc(h,
q,k,v,A,E,H,L,S,O,ka,na,za,Na,a.getExperiments(),aa);a=new VFc(h,HCc(a));h=new bGc(a);h.configure(null,"Personal Contacts");e.addAddressBook(h,!0);f&&(a=new UEc(a,null,!!kk(d,11)),a.configure(null,"Domain Contacts"),e.addAddressBook(a,!0));c(b,!0,e);return b},xHc=function(a,b,c){b&&c.loadContactRows(iDc,function(){});zHc(a,c)};uI.prototype.disposeInternal=function(){this.inputHandler_.dispose();this.contactStore_&&this.ownsContactStore_&&Io(this.contactStore_);uI.superClass_.disposeInternal.call(this)};
var zHc=function(a,b){a.contactStore_=b;a.ownsContactStore_=!0;a.savedQuery_&&a.savedHandler_&&(a.currentRequest_=a.contactStore_.loadContactRows(a.savedQuery_,a.savedHandler_),a.savedQuery_=null,a.savedHandler_=null)};g=uI.prototype;g.savedQuery_=null;g.savedHandler_=null;g.inputHandler_=null;g.includeGroups_=!0;g.isRowDisabled=function(a){return!!a.rowDisabled};
g.requestMatchingRows=function(a,b,c){a={token:a,maxMatches:b,includeContacts:!0,includeGroups:this.includeGroups_,matchType:1,matchFieldList:aDc,addressBookId:this.addressBookId_,filter:this.filter_,isAutoCompleteMode:!0,isContactAutoComplete:!!this.returnFullContacts,includeEvergreenData:!1};c=bt(this.handleAutoCompleteContacts_,this,c);if(a.token&&a.token!="")this.contactStore_?(this.currentRequest_&&(this.currentRequest_.cancel(),this.currentRequest_=null),this.currentRequest_=this.contactStore_.loadContactRows(a,
c)):(this.savedQuery_=a,this.savedHandler_=c);else{b=new KCc;var d=[];this.filter_&&(d=this.filter_(d,a.token));b.setResponse(yu(c,d,b,null,a))}};g.handleAutoCompleteContacts_=function(a,b,c,d,e){a(e.token,b)};g.renderRows=function(a,b){uI.superClass_.renderRows.call(this,a,b)};g.dismiss=function(){uI.superClass_.dismiss.call(this)};
g.renderRow=function(a,b,c){b=b={displayName:a.data.text,newSection:!!(a.data.flags&1)};a=b.displayName;b=b.newSection;(a=qt('<div class="'+nt("goog-contacts-ui-autocomplete-name-nochat")+(jI(b)?" "+nt("goog-contacts-ui-autocomplete-new-section"):"")+'">'+ot(a)+"</div>"))&&a.renderElement&&c?a.renderElement(c):(a=aMa(a),c.innerHTML=hd(a))};g.selectHilited=function(){var a=HGc(this,this.hiliteId_);return a!=-1&&(a=this.rows_[a],a.specialRowHandler)?(a.specialRowHandler(),!0):uI.superClass_.selectHilited.call(this)};
g.fireSelectionEvent=function(a){this.dispatchEvent(new AHc(a))};var AHc=function(a){yE.call(this,"g");this.row=a};zu(AHc,yE);var vI=function(){this.eventHandler_=new Fs(this);vI.prototype.addInput=vI.prototype.addInput;vI.prototype.removeInput=vI.prototype.removeInput;vI.prototype.setTarget=vI.prototype.setTarget},BHc=function(a,b){var c=new vI;c.create(a,b);return c};g=vI.prototype;
g.create=function(a,b){a=amc(document,a);if(b.contactStoreConfig)var c=yHc(b.contactStoreConfig,b.acCssName||"ac-renderer",b.maxMatches||15,b.inputHandler,a.ownerDocument.body,b.filter,b.rightAlign);else throw Error("fd");this.acWidget_=c;"groups"in b&&(this.acWidget_.includeGroups_=b.groups);var d=b.onComplete;typeof d==="function"&&this.eventHandler_.listen(this.acWidget_,"update",function(e){e.row&&d.call(ea,e.target.getTarget())});this.addInput(a)};g.dispose=function(){pHa(this.acWidget_,this.eventHandler_)};
g.setTarget=function(a){this.acWidget_.setTarget(a)};g.addInput=function(a){if(Array.isArray(a))for(var b=0;b<a.length;b++)this.acWidget_.inputHandler_.attachInputs(a[b]);else this.acWidget_.inputHandler_.attachInputs(a)};g.removeInput=function(a){if(Array.isArray(a))for(var b=0;b<a.length;b++)this.acWidget_.inputHandler_.detachInputs(a[b]);else this.acWidget_.inputHandler_.detachInputs(a)};g.acWidget_=null;ea._EmailAc_create=BHc;var CHc=function(a,b){return new Np("/",a,void 0,void 0,void 0,void 0,b)};Np.prototype.setLocale=function(){};var DHc=function(a){this.params=a;this.pendingInputs=new Set;this.emailac=null};DHc.prototype.setTarget=function(a){this.emailac&&this.emailac.setTarget(a)};
Np.prototype.initAutocomplete=function(a){if(this.emailAcInitialized_)throw Error("gd");this.emailAcInitialized_=!0;this.commonAcParams_=a||{};for(var b in this.acWrappers_)EHc(this,this.acWrappers_[b]);this.focusedElement_&&(a=Ma(this.focusedElement_),(a=this.inputToAcWrapper_[a])&&a.setTarget(this.focusedElement_));for(var c in this.acWrappers_)for(a=[].concat(p(this.acWrappers_[c].pendingInputs.values())),b=1;b<a.length;b++)BE(a[b],"focus",this.onTargetFocus_,!1,this)};
var EHc=function(a,b){var c=b.params;c.serverBase=a.serverBase_;c.onComplete=bt(a.onCompleteCallback_,a);c.ua=a.useApiary_;c.acd=a.apiaryClientDeferred_;c.onAuthError=a.onAuthError_;c.tg=a.testGaia_;c.contactStoreConfig=a.contactStoreConfig_;for(var d in a.commonAcParams_)c[d]=a.commonAcParams_[d];a=[].concat(p(b.pendingInputs.values()));b.emailac=BHc(a[0],c);for(c=1;c<a.length;c++)b.emailac.addInput(a[c]);b.pendingInputs.clear()};g=Np.prototype;
g.attachAutocomplete=function(a,b,c){a=amc(document,a);var d=b||{};b=Ma(a);this.onAcCompleteListeners_[b]=c;c="";for(var e in d)c+=e+"="+d[e]+";";e=this.acWrappers_[c];e||(e=new DHc(d),this.acWrappers_[c]=e);d=e;c=a;d.emailac?d.emailac.addInput(c):d.pendingInputs.add(c);this.inputToAcWrapper_[b]=e;e.emailac||(this.emailAcInitialized_?EHc(this,e):Ep(a,"focus",this.onTargetFocus_,!1,this))};g.onTargetFocus_=function(a){this.focusedElement_=a.target;this.emailAcInitialized_||this.initAutocomplete()};
g.onCompleteCallback_=function(a){var b=this.onAcCompleteListeners_[Ma(a)];b&&b(a)};g.detachAutocomplete=function(a){a=amc(document,a);BE(a,"focus",this.onTargetFocus_,!1,this);var b=Ma(a);delete this.onAcCompleteListeners_[b];var c=this.inputToAcWrapper_[b];c&&(c.emailac?c.emailac.removeInput(a):c.pendingInputs.delete(a),delete this.inputToAcWrapper_[b])};g.attachAutocompleteTo=function(a,b){this.initAutocomplete(b);this.attachAutocomplete(a,b)};ldc("goog.NewContactTools",Np);
ldc("goog.NewContactTools.create",CHc);Np.prototype.setLocale=Np.prototype.setLocale;Np.prototype.attachAutocompleteTo=Np.prototype.attachAutocompleteTo;Np.prototype.initAutocomplete=Np.prototype.initAutocomplete;Np.prototype.attachAutocomplete=Np.prototype.attachAutocomplete;Np.prototype.detachAutocomplete=Np.prototype.detachAutocomplete;gMa.prototype.requestMatchingRows=function(a,b,c){var d=this.rows_;var e=[];if(a!="")for(var f=new RegExp("(^|\\W+)"+sq(a),"i"),h=0;h<d.length&&e.length<b;h++){var k=d[h];String(k).match(f)&&e.push(k)}e.length==0&&(e=FHc(a,b,d));c(a,e)};
var jMa=function(a,b,c){return FHc(b,c,a.rows_)},FHc=function(a,b,c){for(var d=[],e=0;e<c.length;e++){var f=c[e],h=a.toLowerCase(),k=String(f).toLowerCase(),q=0;if(k.indexOf(h)!=-1)q=parseInt((k.indexOf(h)/4).toString(),10);else for(var v=h.split(""),A=-1,E=10,H=void 0,L=0;H=v[L];L++)H=k.indexOf(H),H>A?(A=H-A-1,A>E-5&&(A=E-5),q+=A,A=H):(q+=E,E+=5);q<h.length*6&&d.push({str:f,score:q,index:e})}d.sort(function(O,S){var aa=O.score-S.score;return aa!=0?aa:O.index-S.index});a=[];for(c=0;c<b&&c<d.length;c++)a.push(d[c].str);
return a};var xI=function(){var a=this;this.activeSession=r(Bs);this.firstPartyAuthHelper=r(EH);this.acReadyDeferred=pj();this.contactTools=null;this.subscription=new yf;var b=r(DH),c=r(wI);window.gapi&&uLa().then(function(d){d.config.update("googleapis.config/auth/useFirstPartyAuth",!0);d.config.update("googleapis.config/auth/useFirstPartyAuthV2",!0);var e=a.activeSession.getEnvironmentType()==="QA";e&&d.config.update("googleapis.config/root-1p","https://content-googleapis-test.sandbox.google.com");var f=
"0",h=/\/u\/(\d+)\//.exec(b.platformLocation.href);h&&(f=h[1]);d.config.update("googleapis.config/sessionIndex",f);a.acReadyDeferred.resolve(void 0);a.contactTools=c.create(e,function(){CCc(a.firstPartyAuthHelper)});a.contactTools.initAutocomplete()})};xI.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()};
xI.prototype.attach=function(a,b,c){var d=this,e=function(h,k){return kMa(h,k,c)},f=new yf;this.acReadyDeferred.promise.then(function(){d.contactTools&&(d.contactTools.attachAutocomplete(a,{ac2:!0,groups:!0,extendedInterface:!1,filter:e,cacheBusting:[c]},b),f.add(function(){var h;(h=d.contactTools)==null||h.detachAutocomplete(a)}))});return f};xI.\u0275fac=function(a){return new (a||xI)};xI.\u0275prov=Cd({token:xI,factory:xI.\u0275fac,providedIn:"root"});var wI=function(){};
wI.prototype.create=function(a,b){var c=new HH,d=c.getUserInfo();Rk(d,6,a?5:1);a=c.getExperiments();a=Nk(a,5,!0);a=Nk(a,1,!0);a=Nk(a,3,!0);Nk(a,2,!0);c.setAuthErrorHandler(b);return CHc("xapi",c)};wI.\u0275fac=function(a){return new (a||wI)};wI.\u0275prov=Cd({token:wI,factory:wI.\u0275fac,providedIn:"root"});var nMa=new RegExp("ALIAS:("+Object.values({GOOGLERS_UNRESTRICTED:"googlers_unrestricted",GOOGLE_DOMAIN:"google_domain",PUBLIC_NON_GOOGLE:"public_non_google",PUBLIC:"public"}).join("|")+")");var yI=function(){};yI.prototype.transform=function(a){return Wp(a)};yI.\u0275fac=function(a){return new (a||yI)};yI.\u0275pipe=wf({name:"appendDomain",type:yI,pure:!0,standalone:!1});var zI=function(){this.element=r(Te);this.focusContacts=r(xI);this.activeSession=r(Bs);this.logger=r(ME);this.destroyRef=r(Gg);this.autocompleteActive=new LE;this.additionalContactsCallback=function(){return[]};this.$element=this.element.nativeElement;OA(this.activeSession,"enablePeoplekitUserAc")&&this.logger.warn("Use of deprecated bContactAutocomplete detected.")};
zI.prototype.ngOnInit=function(){var a=this;this.$element.setAttribute("autocomplete","off");this.$element.setAttribute("spellcheck","off");this.$element.setAttribute("aria-autocomplete","list");this.$element.setAttribute("role","combobox");this.$element.setAttribute("name","ac-workaround-"+vhb());if(!this.activeSession.isAnonymous()){if(this.fieldType==="SINGLE")var b=function(){a.$element.value=mMa(oMa(a.$element.value));a.autocompleteActive.emit(!1);a.$element.dispatchEvent(new Event("change"));
a.$element.dispatchEvent(new Event("input"))};else if(this.fieldType==="MULTI")b=function(){a.$element.value=pMa(a.$element.value);a.autocompleteActive.emit(!1);a.$element.dispatchEvent(new Event("change"));a.$element.dispatchEvent(new Event("input"))};else throw Error("kd`"+this.fieldType);var c=this.additionalContactsCallback();c=GHc(c);var d=this.focusContacts.attach(this.$element,b,c);this.destroyRef.onDestroy(function(){d.unsubscribe()})}};
var HHc=function(a){bg(150).pipe(lp(a.destroyRef)).subscribe(function(){var b=document.querySelector(".ac-renderer"),c;b=!!b&&((c=window.getComputedStyle(b))==null?void 0:c.display)!=="none";a.autocompleteActive.emit(b)})},GHc=function(a){return a.map(function(b){return{text:b.text,getEmail:function(){return b.text},toString:function(){return b.id},getPriority:function(){}}})};zI.\u0275fac=function(a){return new (a||zI)};
zI.\u0275dir=vf({type:zI,selectors:[["","bContactAutocomplete",""]],hostBindings:function(a,b){a&1&&N("keydown",function(){return HHc(b)},Ve)("mousedown",function(){return HHc(b)})},inputs:{fieldType:[0,"bContactAutocomplete","fieldType"],additionalContactsCallback:"additionalContactsCallback"},outputs:{autocompleteActive:"autocompleteActive"},standalone:!1});var AI=function(){};AI.\u0275fac=function(a){return new (a||AI)};AI.\u0275mod=uf({type:AI});AI.\u0275inj=Dd({imports:[HC]});var qMa;var BI=function(a){var b=this;this.elementRef=a;this.eventType="click";this.clickOutside=new nq;this.clickHandler=function(c){if(c instanceof MouseEvent){var d=c.target;d&&(b.elementRef.nativeElement.contains(d)||b.clickOutside.emit(c))}}};BI.prototype.ngOnInit=function(){this.getRoot().addEventListener(this.eventType,this.clickHandler,!0)};BI.prototype.ngOnDestroy=function(){this.getRoot().removeEventListener(this.eventType,this.clickHandler,!0)};
BI.prototype.getRoot=function(){var a;return(a=rMa(this.elementRef.nativeElement))!=null?a:document};BI.\u0275fac=function(a){return new (a||BI)(of(Te))};BI.\u0275dir=vf({type:BI,selectors:[["","clickOutside",""]],inputs:{eventType:[0,"clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"},standalone:!1});var CI=function(){};CI.\u0275fac=function(a){return new (a||CI)};CI.\u0275mod=uf({type:CI});CI.\u0275inj=Dd({});var IHc=Symbol("ld"),JHc=Symbol("md"),DI=function(a){this.viewContainerRef=a;this.className="onedev-hovercard";this.onHide=new nq;this[IHc]=new sg(1);this.wasTriggeredByKeyboard=!1;this.isOnHover$=new Kn(!1);this.closeHovercard$=new tg};DI.prototype.ngOnInit=function(){};var KHc=function(a){var b=a[JHc];return b?(b.loaded||(b.viewContainerRef.createEmbeddedView(b.templateRef),b.cdr.detectChanges(),b.loaded=!0),a[IHc].pipe(ng(0))):Nf(void 0)};DI.\u0275fac=function(a){return new (a||DI)(of(fh))};
DI.\u0275cmp=y({type:DI,selectors:[["onedev-hovercard"]],viewQuery:function(a,b){a&1&&hh(eh,7);if(a&2){var c;lh(c=mh())&&(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&&(ch(),D(0,sMa,2,3,"ng-template"))},dependencies:[sw,BI],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 EI=function(a,b,c,d){this.templateRef=a;this.viewContainerRef=b;this.cdr=c;this.loaded=!1;d[JHc]=this};EI.\u0275fac=function(a){return new (a||EI)(of(eh),of(fh),of(Hv),of(DI))};EI.\u0275dir=vf({type:EI,selectors:[["","onedevHovercardLazyBody",""]],standalone:!1});var FI=function(a){this.hovercard=a;this.destroyed$=new sg(1)};FI.prototype.ngOnDestroy=function(){this.destroyed$.next()};FI.prototype.ngOnInit=function(){this.isHovercardReady$.pipe(yg(this.destroyed$)).subscribe(this.hovercard[IHc])};
FI.\u0275fac=function(a){return new (a||FI)(of(DI))};FI.\u0275dir=vf({type:FI,selectors:[["","onedevIsHovercardReady",""]],inputs:{isHovercardReady$:[0,"onedevIsHovercardReady","isHovercardReady$"]},standalone:!1});var LHc={originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:10},MHc={originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-10},NHc={originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-10},OHc=[{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:10},LHc,NHc,{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 GI=function(){this.showDelay=600;this.hideDelay=400;this.position=OHc;this.triggerKey=[]},HI=function(a,b){var c=this;this.overlay=a;this.origin=b;this.waitFor$=void 0;this.enabled=!0;this.config=new GI;this.active=!1;this.hovercardShown$=new sg(1);this.hide$=new tg;this.hovercard$=new Kn(null);this.isHovered$=new Kn(!1);this.isKeyboardActivated$=new Kn(!1);this.destroyed$=new sg(1);this.onDocumentKeyDown=function(e){e.key==="Escape"&&(PHc(c),e.stopPropagation(),e.preventDefault())};QHc(this);
this.handleClose();var d;(d=this.waitFor$)==null||d.pipe(yg(this.destroyed$)).subscribe()},QHc=function(a){RHc(a).pipe(yg(a.destroyed$)).subscribe(function(b){(a.active=b)?a.show():a.hide()})};HI.prototype.handleClose=function(){var a=this;this.hovercard$.pipe(xg(function(b){return(b==null?void 0:b.closeHovercard$)||Bv}),yg(this.destroyed$)).subscribe(function(){PHc(a)})};HI.prototype.dispose=function(){SHc(this);var a;(a=this.overlayRef)==null||a.dispose();this.destroyed$.next();this.destroyed$.complete()};
HI.prototype.isExpanded=function(){return this.hovercard$.getValue()?this.active:void 0};HI.prototype.toggle=function(a){this.isHovered$.next(a)};var PHc=function(a){a.isKeyboardActivated$.next(!1);a.isHovered$.next(!1);var b;(b=a.hovercard$.getValue())==null||b.isOnHover$.next(!1)};
HI.prototype.show=function(){var a=this;this.enabled&&this.overlayRef&&!this.overlayRef.hasAttached()&&this.hovercard$.getValue()&&(this.hovercard$.getValue().wasTriggeredByKeyboard=this.isKeyboardActivated$.value,KHc(this.hovercard$.getValue()).pipe(mg(1),yg(this.destroyed$)).subscribe(function(){a.overlayRef&&a.templatePortal&&a.overlayRef.attach(a.templatePortal);document.addEventListener("keydown",a.onDocumentKeyDown);a.hovercardShown$.next()}))};HI.prototype.hide=function(){SHc(this);this.hide$.next()};
var SHc=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()}};HI.prototype.getPositionStrategy=function(){return Yw(Zw($w(dx(this.overlay.position(),this.origin)),8),this.config.position)};
var RHc=function(a){return Uf([THc(a).pipe(wg(!1)),a.isKeyboardActivated$]).pipe(vg(1),C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b||c}),xg(function(b){var c;return((c=a.waitFor$)==null?void 0:c.pipe(lg(b)))||Nf(b)}))},THc=function(a){return a.hovercard$.pipe(xg(function(b){return Uf([a.isHovered$,(b==null?void 0:b.isOnHover$)||Nf(!1)]).pipe(C(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c||d}),jla(function(c){return c?bg(a.config.showDelay):bg(a.config.hideDelay)}),
yg(a.destroyed$))}))};var UHc=new le("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(" ")}}),VHc=new le("STREAMZ_PRODUCT_IDENTIFIER"),WHc=new le("STREAMZ_ALLOWLIST_IDENTIFIER"),XHc=new le("one_developer_workflow.streamz_service",{providedIn:"root",factory:function(){return r(Ph).runOutsideAngular(function(){var a=new xE(1503);a=new zwc(a);a.flushInterval=1E4;a.flushTimer.setInterval(1E4);
return a})}}),II=function(a,b,c,d,e){this.streamzService=a;this.zone=b;this.oneDeveloperWorkflowUsageMetrics=new Ulc(this.streamzService);new Vlc(this.streamzService);new Wlc(this.streamzService);new Xlc(this.streamzService);this.productIdentifier=d||window.location.hostname;this.productionAllowlist=c.map(pDc);this.allowlistIdentifier=oDc(e!=null?e:this.productIdentifier)},ZHc=function(a,b,c){a.zone.runOutsideAngular(function(){YHc(a)&&a.oneDeveloperWorkflowUsageMetrics.increment(b,a.productIdentifier,
c)})},YHc=function(a){return a.productionAllowlist.some(function(b){return a.allowlistIdentifier===b})};II.\u0275fac=function(a){return new (a||II)(be(XHc),be(Ph),be(UHc),be(VHc,8),be(WHc,8))};II.\u0275prov=Cd({token:II,factory:II.\u0275fac,providedIn:"root"});var $Hc=new le("onedevHovercardLoggingOn"),JI=function(a,b,c,d,e){var f=this;this.viewContainerRef=c;this.injector=e;this.config=new GI;this.onHovercardShown=new nq;this.destroyed$=new sg(1);this.triggerControl=new HI(a,b);this.triggerControl.hovercardShown$.pipe(Ag(d||Nf(!1)),yg(this.destroyed$)).subscribe(function(h){h=l(h);h.next();h=h.next().value;f.onHovercardShown.emit();h&&(f.clientStreamzService||(f.clientStreamzService=f.injector.get(II)),ZHc(f.clientStreamzService,"hovercardShown",!0))})};
g=JI.prototype;g.ngOnChanges=function(a){if(a.hovercard){var b;a=(b=a.hovercard)==null?void 0:b.currentValue;this.triggerControl.hovercard$.next(a);if(a){b=this.triggerControl;var c=this.viewContainerRef;b.config=this.config;b.overlayRef=b.overlay.create({positionStrategy:b.getPositionStrategy(),scrollStrategy:b.overlay.scrollStrategies.reposition()});b.templatePortal=new gx(a.templateRef,c);b.hovercard$.next(a)}}};g.ngOnDestroy=function(){this.triggerControl.dispose();this.destroyed$.next();this.destroyed$.complete()};
g.isExpanded=function(){return this.triggerControl.isExpanded()};g.onKeyDown=function(a){if(this.config.triggerKey.includes(a.key)){var b=this.triggerControl;a.stopPropagation();a.preventDefault();b.isKeyboardActivated$.next(!0)}};g.toggle=function(a){this.triggerControl.toggle(a)};g.hide=function(){this.triggerControl.hide()};nd.Object.defineProperties(JI.prototype,{enabled:{configurable:!0,enumerable:!0,set:function(a){this.triggerControl.enabled=a}}});
JI.\u0275fac=function(a){return new (a||JI)(of(lx),of(Te),of(fh),of($Hc,8),of(Cg))};
JI.\u0275dir=vf({type:JI,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&&Lg("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:[ov]});var aIc=function(a){return["chip","gmat-caption",a]},KI=function(){this.variant="grey";this.isTall=!1};KI.\u0275fac=function(a){return new (a||KI)};
KI.\u0275cmp=y({type:KI,selectors:[["onedev-chip"]],hostVars:2,hostBindings:function(a,b){a&2&&uh("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&&(ch(),J(0,"div",0)(1,"div",1),dh(2),K()());a&2&&I("ngClass",Hh(1,aIc,b.variant))},dependencies:[Pv],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 bIc=function(a){this.chip=a};bIc.\u0275fac=function(a){return new (a||bIc)(of(KI))};bIc.\u0275dir=vf({type:bIc,selectors:[["","onedevChipIcon",""]],hostVars:10,hostBindings:function(a,b){a&2&&th("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 LI=function(){};LI.\u0275fac=function(a){return new (a||LI)};LI.\u0275mod=uf({type:LI});LI.\u0275inj=Dd({imports:[aw]});var cIc=function(){};cIc.\u0275fac=function(a){return new (a||cIc)};cIc.\u0275cmp=y({type:cIc,selectors:[["","onedevDot",""]],hostVars:1,hostBindings:function(a){a&2&&Lg("aria-hidden",!0)},standalone:!1,attrs:["onedevDot",""],decls:1,vars:0,template:function(a){a&1&&R(0,"\u00a0\u00b7\u00a0")},encapsulation:2});var MI=function(){};MI.\u0275fac=function(a){return new (a||MI)};MI.\u0275mod=uf({type:MI});MI.\u0275inj=Dd({});var dIc=[[["","onedev-additional-content",""]],[["onedev-hovercard-action"]]],eIc=function(a){return{"with-avatar":a}},NI=function(){};NI.prototype.ngOnInit=function(){};NI.\u0275fac=function(a){return new (a||NI)};
NI.\u0275cmp=y({type:NI,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&&(ch(dIc),J(0,"div",0)(1,"div",1)(2,"div",2),D(3,tMa,1,2,"img",3),J(4,"div",4),R(5),K(),D(6,uMa,2,1,"div",5),K(),D(7,vMa,4,1,"div",6),J(8,"div",7),D(9,zMa,7,3,"ng-container",8)(10,AMa,4,1,"ng-container",8)(11,BMa,23,5,"ng-container",8),dh(12),K()(),dh(13,1),K());a&2&&(x(2),I("ngClass",Hh(8,eIc,b.person.imageUrl)),x(),I("ngIf",b.person.imageUrl),x(2),wh(b.person.name||b.person.email),x(),I("ngIf",b.person.name),x(),I("ngIf",b.outOfOfficeDescription),x(2),I("ngIf",b.person.title||b.person.department),
x(),I("ngIf",b.person.location),x(),I("ngIf",b.person.ldap))},dependencies:[LI,KI,bIc,aw,Pv,Rv,MI,cIc,GC,FC],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 fIc=new le("API_VERSION"),gIc=new le("REQUEST_SERVICE for people-pa_api_client"),hIc={$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",
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"},OI=function(a,b,c){this.gapiVersion=a;this.gapiVersion=a==null?"v2":
a;this.$apiClient=new kBc(b,c)};OI.prototype.list=function(a,b){a=a===void 0?{}:a;b=b===void 0?{}:b;return mBc(this.$apiClient,{body:null,httpMethod:"GET",methodId:"people_pa.people.lookup.list",path:"/"+this.gapiVersion+"/people/lookup",queryParams:BKa(a,hIc,b)})};OI.\u0275fac=function(a){return new (a||OI)(be(fIc,8),be(gIc),be(KAc,8))};OI.\u0275prov=Cd({token:OI,factory:OI.\u0275fac,providedIn:"root"});var iIc=function(){};iIc.\u0275fac=function(a){return new (a||iIc)};
iIc.\u0275prov=Cd({token:iIc,factory:function(a){return OI.\u0275fac(a)},providedIn:"root"});var PI=function(a,b,c){this.gapiVersion=a;this.gapiVersion=a==null?"v2":a;this.$apiClient=new kBc(b,c)};PI.\u0275fac=function(a){return new (a||PI)(be(fIc,8),be(gIc),be(KAc,8))};PI.\u0275prov=Cd({token:PI,factory:PI.\u0275fac,providedIn:"root"});var jIc=function(){};jIc.\u0275fac=function(a){return new (a||jIc)};jIc.\u0275prov=Cd({token:jIc,factory:function(a){return PI.\u0275fac(a)},providedIn:"root"});var CMa=/.*@google.com/,kIc=new le("onedevPeopleServiceConfig"),lIc={},QI=function(){},nIc=function(a,b){return mIc(a,[b]).pipe(C(function(c){return c[0]}))};QI.\u0275fac=function(a){return new (a||QI)};QI.\u0275prov=Cd({token:QI,factory:QI.\u0275fac});
var RI=function(a,b,c){var d=this;this.lookupApiClient=a;this.destroy$=new tg;this.config=lIc;c&&c.pipe(zg(function(e){window.gapi&&e.accessToken&&window.gapi.auth.setToken({access_token:e.accessToken})}),yg(this.destroy$)).subscribe({next:function(e){d.config=e}})};Y(RI,QI);
var mIc=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(C(function(c){return GMa(b,c)}))};RI.prototype.ngOnDestroy=function(){this.destroy$.next()};RI.\u0275fac=function(a){return new (a||RI)(be(iIc),be(jIc),be(kIc,8))};
RI.\u0275prov=Cd({token:RI,factory:RI.\u0275fac});var SI=function(){};SI.\u0275fac=function(a){return new (a||SI)};SI.\u0275mod=uf({type:SI});SI.\u0275inj=Dd({providers:[RI,{provide:QI,useExisting:RI}]});var oIc=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,y,z]|-testonly)?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(lh[3-6]\\.(googleadsserving\\.cn|xn--9kr7l\\.com))|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer)))\\/",
"i"),pIc=/^(https?:)?\/\/sp[1-4]\.((ggpht)|(googleusercontent))\.com\//i,qIc=/^(https?:)?\/\/(qa(-red|-blue)?|dev2?|image-dev)(-|\.)lighthouse(-auth)?\.sandbox\.google\.com\//i,rIc=/^(https?:)?\/\/lighthouse-(qa(-red|-blue)?|dev2)\.corp\.google\.com\//i,sIc=function(a){return oIc.test(a)||pIc.test(a)||qIc.test(a)||rIc.test(a)};var tIc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(tIc,n);g=tIc.prototype;g.getSize=function(){return Mu(this,1)};g.setSize=function(a){return Ok(this,1,a)};g.getWidth=function(){return Mu(this,12)};g.setWidth=function(a){return Ok(this,12,a)};g.getHeight=function(){return Mu(this,13)};g.setHeight=function(a){return Ok(this,13,a)};g.setStretch=function(a){return Nk(this,33,a)};g.setCrop=function(a){return Nk(this,2,a)};
g.setCircleCrop=function(a){return Nk(this,51,a)};g.setImageCrop=function(a){return Nk(this,32,a)};g.setSmartCrop=function(a){return Nk(this,19,a)};g.setSmartCropNoClip=function(a){return Nk(this,52,a)};g.setSmartCropUseFace=function(a){return Nk(this,67,a)};g.setDetectFaces=function(a){Nk(this,80,a)};g.setCenterCrop=function(a){return Nk(this,20,a)};g.setPad=function(a){return Nk(this,60,a)};g.setDownload=function(a){Nk(this,3,a)};g.setHtml=function(a){Nk(this,4,a)};
g.setObjectId=function(a){Fec(this,7,a)};g.setLooseFaceCrop=function(a){return Nk(this,65,a)};g.setFaceCropVersion=function(a){Ok(this,94,a)};g.setFrameId=function(a){Fec(this,29,a)};g.setTileX=function(a){Ok(this,9,a)};g.setTileY=function(a){Ok(this,10,a)};g.setTileZoom=function(a){Ok(this,11,a)};g.setTileGeneration=function(a){Nk(this,14,a)};g.setForceTileGeneration=function(a){Nk(this,34,a)};g.setTilePyramidAsProto=function(a){Nk(this,72,a)};g.setExpirationTime=function(a){Ok(this,15,a)};
g.setExpirationTimeInMinutes=function(a){Ok(this,107,a)};g.setImageFilter=function(a){return Qk(this,16,a)};g.setKillAnimation=function(a){return Nk(this,17,a)};g.setUnfiltered=function(a){Nk(this,18,a)};g.setUnfilteredWithTransforms=function(a){Nk(this,45,a)};g.setIncludeMetadata=function(a){Nk(this,22,a)};g.setIncludePublicMetadata=function(a){Nk(this,54,a)};g.setStripGoogleData=function(a){Nk(this,82,a)};g.setPreserveGoogleData=function(a){Nk(this,83,a)};
g.setStripMetadata=function(a){Nk(this,93,a)};g.setStripGeoinfo=function(a){Nk(this,95,a)};g.setEsPortraitApprovedOnly=function(a){return Nk(this,21,a)};g.setBypassTakedown=function(a){Nk(this,23,a)};g.getToken=function(){return $k(this,24)};g.setToken=function(a){return Qk(this,24,a)};g.setVersionedToken=function(a){Qk(this,36,a)};g.setSkipRefererCheck=function(a){Nk(this,6,a)};g.setRotate=function(a){return Ok(this,26,a)};g.setHorizontalFlip=function(a){Nk(this,30,a)};
g.setVerticalFlip=function(a){Nk(this,31,a)};g.getOverlay=function(){return Mt(this,27)};g.setOverlay=function(a){return Nk(this,27,a)};g.setQueryString=function(a){Qk(this,28,a)};g.setRequestJpeg=function(a){return Nk(this,57,a)};g.setRequestPng=function(a){return Nk(this,58,a)};g.setRequestGif=function(a){Nk(this,59,a)};g.setRequestAvif=function(a){Nk(this,103,a)};g.setRequestWebp=function(a){return Nk(this,35,a)};g.setRequestWebpUnlessMaybeTransparent=function(a){Nk(this,41,a)};
g.setRequestAnimatedWebp=function(a){Nk(this,64,a)};g.setNoWebp=function(a){Nk(this,48,a)};g.setRequestH264=function(a){return Nk(this,49,a)};g.setLossy=function(a){Nk(this,97,a)};g.setNoOverlay=function(a){return Nk(this,37,a)};g.setBorderSize=function(a){Ok(this,38,a)};g.setBorderRadius=function(a){Ok(this,86,a)};g.setBorderColor=function(a){Ok(this,39,a)};g.setBackgroundColor=function(a){Ok(this,87,a)};g.setPadColor=function(a){Ok(this,88,a)};g.setSubstitutionColor=function(a){Ok(this,89,a)};
g.setNoSilhouette=function(a){Nk(this,40,a)};g.setFocusBlur=function(a){Ok(this,42,a)};g.setFocalPlane=function(a){Ok(this,43,a)};g.setQualityLevel=function(a){return Ok(this,44,a)};g.setQualityBucket=function(a){return Ok(this,62,a)};g.setNoUpscale=function(a){Nk(this,46,a)};g.setPreserveAspectRatio=function(a){Nk(this,61,a)};g.setForceTransformation=function(a){Nk(this,50,a)};g.setNoDefaultImage=function(a){Nk(this,53,a)};g.setNoCorrectExifOrientation=function(a){Nk(this,55,a)};
g.setSelectFrameNumber=function(a){Ok(this,56,a)};g.setVideoFormat=function(a){Ok(this,63,a)};g.setVideoMultiFormat=function(a){Qk(this,81,a)};g.setVideoManifest=function(a){Nk(this,98,a)};g.setDownloadVideo=function(a){Nk(this,90,a)};g.setVideoBegin=function(a){Ek(this,68,a)};g.setVideoLength=function(a){Ek(this,69,a)};g.setMatchVersion=function(a){Nk(this,66,a)};g.setImageDigest=function(a){Nk(this,70,a)};g.setInternalClient=function(a){Ok(this,71,a)};g.setMonogram=function(a){Nk(this,73,a)};
g.setForceMonogram=function(a){return Nk(this,84,a)};g.setMonogramDogfood=function(a){Nk(this,91,a)};g.setIgnoreLowResProfilePhoto=function(a){Nk(this,96,a)};g.setAutoloop=function(a){Nk(this,74,a)};g.getImageVersion=function(){return Nu(this,75)};g.setImageVersion=function(a){Ek(this,75,a)};g.setPitchDegrees=function(a){Pu(this,76,a)};g.setYawDegrees=function(a){Pu(this,77,a)};g.setRollDegrees=function(a){Pu(this,78,a)};g.setFovDegrees=function(a){Pu(this,79,a)};
g.setBadge=function(a){Ok(this,85,a)};g.setColorProfile=function(a){Ok(this,92,a)};g.setToneMap=function(a){Nk(this,113,a)};g.setNoToneMap=function(a){Nk(this,114,a)};g.setDeepCrop=function(a){Qk(this,99,a)};g.setRequestVideoFast=function(a){Nk(this,100,a)};g.setVideoFormatFilters=function(a){Qk(this,102,a)};g.setDummyCacheKeyModifier=function(a){Nk(this,104,a)};g.setGainMap=function(a){Nk(this,105,a)};g.setNoGainMap=function(a){Nk(this,106,a)};g.setForceCookieRedirect=function(a){Nk(this,108,a)};
g.setStoryboardLevel=function(a){Ok(this,109,a)};g.setStoryboardMosaic=function(a){Ok(this,110,a)};g.setPregenTimestamps=function(a){Qk(this,111,a)};g.setClientExperimentLabel=function(a){Qk(this,112,a)};g.setMediaProvenance=function(a){Ok(this,115,a)};var TI=function(a){this.value_=void 0;this.childNodes_={};a&&this.setAll(a)};TI.prototype.set=function(a,b){uIc(this,a,b,!1)};TI.prototype.setValue=function(a){this.value_=a};TI.prototype.add=function(a,b){uIc(this,a,b,!0)};var uIc=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 TI);a=a.childNodes_[f]}if(d&&a.value_!==void 0)throw Error("nd`"+b);a.value_=c};
TI.prototype.setAll=function(a){var b=MAc(a);a=VG(a);for(var c=0;c<b.length;c++)this.set(b[c],a[c])};var vIc=function(a,b){for(var c=0;c<b.length;c++)if(a=a.childNodes_[b.charAt(c)],!a)return;return a};TI.prototype.get=function(a){return(a=vIc(this,a))?a.value_:void 0};TI.prototype.getValues=function(){var a=[];wIc(this,a);return a};var wIc=function(a,b){a.value_!==void 0&&b.push(a.value_);for(var c in a.childNodes_)wIc(a.childNodes_[c],b)};
TI.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]}xIc(c,a,b)}else xIc(this,"",b);return b};var xIc=function(a,b,c){a.value_!==void 0&&c.push(b);for(var d in a.childNodes_)xIc(a.childNodes_[d],b+d,c)};g=TI.prototype;g.containsKey=function(a){return this.get(a)!==void 0};
g.containsValue=function(a){if(this.value_===a)return!0;for(var b in this.childNodes_)if(this.childNodes_[b].containsValue(a))return!0;return!1};g.clear=function(){this.childNodes_={};this.value_=void 0};g.remove=function(a){for(var b=this,c=[],d=0;d<a.length;d++){var e=a.charAt(d);if(!b.childNodes_[e])throw Error("od`"+a);c.push([b,e]);b=b.childNodes_[e]}a=b.value_;for(delete b.value_;c.length>0;)if(d=c.pop(),b=d[0],d=d[1],b.childNodes_[d].isEmpty())delete b.childNodes_[d];else break;return a};
g.clone=function(){return new TI(this)};g.getCount=function(){return LAc(this.getValues())};g.isEmpty=function(){return this.value_===void 0&&Lra(this.childNodes_)};var AIc=function(){if(!yIc){var a=yIc=new TI,b;for(b in zIc)a.add(b,zIc[b])}},yIc,UI=function(a,b){this.types=a;this.setters=b},zIc={a:new UI([3,0],[function(a,b){a.setEsPortraitApprovedOnly(b)},function(a,b){a.setSelectFrameNumber(b)}]),al:new UI([3],[function(a,b){a.setAutoloop(b)}]),b:new UI([3,0],[function(a,b){a.setBypassTakedown(b)},function(a,b){a.setBorderSize(b)}]),ba:new UI([0],[function(a,b){a.setBadge(b)}]),bc:new UI([0],[function(a,b){a.setBackgroundColor(b)}]),br:new UI([0],[function(a,
b){a.setBorderRadius(b)}]),c:new UI([3,0],[function(a,b){a.setCrop(b)},function(a,b){a.setBorderColor(b)}]),cc:new UI([3],[function(a,b){a.setCircleCrop(b)}]),ci:new UI([3],[function(a,b){a.setImageCrop(b)}]),ckm:new UI([3],[function(a,b){a.setDummyCacheKeyModifier(b)}]),cp:new UI([0],[function(a,b){a.setColorProfile(b)}]),cr:new UI([3],[function(a,b){a.setForceCookieRedirect(b)}]),cv:new UI([0],[function(a,b){a.setFaceCropVersion(b)}]),d:new UI([3],[function(a,b){a.setDownload(b)}]),dc:new UI([5],
[function(a,b){a.setDeepCrop(b)}]),df:new UI([3],[function(a,b){a.setDetectFaces(b)}]),dv:new UI([3],[function(a,b){a.setDownloadVideo(b)}]),e:new UI([0],[function(a,b){a.setExpirationTime(b)}]),em:new UI([0],[function(a,b){a.setExpirationTimeInMinutes(b)}]),f:new UI([4],[function(a,b){a.setImageFilter(b)}]),fg:new UI([3],[function(a,b){a.setForceTileGeneration(b)}]),fh:new UI([3],[function(a,b){a.setHorizontalFlip(b)}]),fm:new UI([3],[function(a,b){a.setForceMonogram(b)}]),fo:new UI([2],[function(a,
b){a.setFovDegrees(b)}]),ft:new UI([3],[function(a,b){a.setForceTransformation(b)}]),fv:new UI([3],[function(a,b){a.setVerticalFlip(b)}]),g:new UI([3],[function(a,b){a.setTileGeneration(b)}]),gce:new UI([4],[function(a,b){a.setClientExperimentLabel(b)}]),gd:new UI([3],[function(a,b){a.setPreserveGoogleData(b)}]),gm:new UI([3],[function(a,b){a.setGainMap(b)}]),h:new UI([3,0],[function(a,b){a.setHtml(b)},function(a,b){a.setHeight(b)}]),i:new UI([3],[function(a,b){a.setIncludeMetadata(b)}]),ic:new UI([0],
[function(a,b){a.setInternalClient(b)}]),id:new UI([3],[function(a,b){a.setImageDigest(b)}]),il:new UI([3],[function(a,b){a.setIgnoreLowResProfilePhoto(b)}]),ip:new UI([3],[function(a,b){a.setIncludePublicMetadata(b)}]),iv:new UI([0],[function(a,b){a.setImageVersion(b)}]),j:new UI([1],[function(a,b){a.setFrameId(b)}]),k:new UI([3,0],[function(a,b){a.setKillAnimation(b)},function(a,b){a.setFocusBlur(b)}]),l:new UI([0],[function(a,b){a.setQualityLevel(b)}]),lf:new UI([3],[function(a,b){a.setLooseFaceCrop(b)}]),
lo:new UI([3],[function(a,b){a.setLossy(b)}]),m:new UI([0],[function(a,b){a.setVideoFormat(b)}]),md:new UI([3],[function(a,b){a.setMonogramDogfood(b)}]),mm:new UI([4],[function(a,b){a.setVideoMultiFormat(b)}]),mo:new UI([3],[function(a,b){a.setMonogram(b)}]),mp:new UI([0],[function(a,b){a.setMediaProvenance(b)}]),mv:new UI([3],[function(a,b){a.setMatchVersion(b)}]),n:new UI([3],[function(a,b){a.setCenterCrop(b)}]),nc:new UI([3],[function(a,b){a.setNoCorrectExifOrientation(b)}]),nd:new UI([3],[function(a,
b){a.setNoDefaultImage(b)}]),ng:new UI([3],[function(a,b){a.setStripGeoinfo(b)}]),ngm:new UI([3],[function(a,b){a.setNoGainMap(b)}]),no:new UI([3],[function(a,b){a.setNoOverlay(b)}]),ns:new UI([3],[function(a,b){a.setNoSilhouette(b)}]),nt0:new UI([4],[function(a,b){a.setVersionedToken(b)}]),ntm:new UI([3],[function(a,b){a.setNoToneMap(b)}]),nu:new UI([3],[function(a,b){a.setNoUpscale(b)}]),nw:new UI([3],[function(a,b){a.setNoWebp(b)}]),o:new UI([1,3],[function(a,b){a.setObjectId(b)},function(a,b){a.setOverlay(b)}]),
p:new UI([3,0],[function(a,b){a.setSmartCrop(b)},function(a,b){a.setFocalPlane(b)}]),pa:new UI([3],[function(a,b){a.setPreserveAspectRatio(b)}]),pc:new UI([0],[function(a,b){a.setPadColor(b)}]),pd:new UI([3],[function(a,b){a.setPad(b)}]),pf:new UI([3],[function(a,b){a.setSmartCropUseFace(b)}]),pg:new UI([3],[function(a,b){a.setTilePyramidAsProto(b)}]),pi:new UI([2],[function(a,b){a.setPitchDegrees(b)}]),pp:new UI([3],[function(a,b){a.setSmartCropNoClip(b)}]),pt:new UI([4],[function(a,b){a.setPregenTimestamps(b)}]),
q:new UI([4],[function(a,b){a.setQueryString(b)}]),r:new UI([3,0],[function(a,b){a.setSkipRefererCheck(b)},function(a,b){a.setRotate(b)}]),ra:new UI([3],[function(a,b){a.setRequestAvif(b)}]),rf:new UI([3],[function(a,b){a.setRequestVideoFast(b)}]),rg:new UI([3],[function(a,b){a.setRequestGif(b)}]),rh:new UI([3],[function(a,b){a.setRequestH264(b)}]),rj:new UI([3],[function(a,b){a.setRequestJpeg(b)}]),ro:new UI([2],[function(a,b){a.setRollDegrees(b)}]),rp:new UI([3],[function(a,b){a.setRequestPng(b)}]),
rw:new UI([3],[function(a,b){a.setRequestWebp(b)}]),rwa:new UI([3],[function(a,b){a.setRequestAnimatedWebp(b)}]),rwu:new UI([3],[function(a,b){a.setRequestWebpUnlessMaybeTransparent(b)}]),s:new UI([3,0],[function(a,b){a.setStretch(b)},function(a,b){a.setSize(b)}]),sb:new UI([0],[function(a,b){a.setStoryboardMosaic(b)}]),sc:new UI([0],[function(a,b){a.setSubstitutionColor(b)}]),sg:new UI([3],[function(a,b){a.setStripGoogleData(b)}]),sl:new UI([0],[function(a,b){a.setStoryboardLevel(b)}]),sm:new UI([3],
[function(a,b){a.setStripMetadata(b)}]),t:new UI([4],[function(a,b){a.setToken(b)}]),tm:new UI([3],[function(a,b){a.setToneMap(b)}]),u:new UI([3],[function(a,b){a.setUnfiltered(b)}]),ut:new UI([3],[function(a,b){a.setUnfilteredWithTransforms(b)}]),v:new UI([0],[function(a,b){a.setQualityBucket(b)}]),vb:new UI([0],[function(a,b){a.setVideoBegin(b)}]),vf:new UI([4],[function(a,b){a.setVideoFormatFilters(b)}]),vl:new UI([0],[function(a,b){a.setVideoLength(b)}]),vm:new UI([3],[function(a,b){a.setVideoManifest(b)}]),
w:new UI([0],[function(a,b){a.setWidth(b)}]),x:new UI([0],[function(a,b){a.setTileX(b)}]),y:new UI([0],[function(a,b){a.setTileY(b)}]),ya:new UI([2],[function(a,b){a.setYawDegrees(b)}]),z:new UI([0],[function(a,b){a.setTileZoom(b)}])};
AIc.prototype.parse=function(a){var b=new tIc,c=new tIc;if(a=="")a=!0;else{a=a.split("-");for(var d=!0,e=0;e<a.length;e++){var f=a[e];if(f.length==0)d=!1;else{var h=f,k=!1;var q=h;var v=h.charAt(0);v!=v.toLowerCase()&&(k=!0,q=h.charAt(0).toLowerCase()+h.substring(1));var A=yIc;for(v=1;v<=q.length;++v){var E=A,H=q.substring(0,v);if(H.length==0?E.isEmpty():!vIc(E,H))break}q=v==1?null:(q=A.get(q.substring(0,v-1)))?{option:h.substring(0,v-1),value:h.substring(v-1),signed:k,attributes:q}:null;if(q){h=
[];k=[];v=!1;for(A=0;A<q.attributes.types.length;A++){E=q.attributes.types[A];var L=q.value;H=e;if(q.signed&&E==1)for(var O=L.length;O<12&&H<a.length-1;)L+="-"+a[H+1],O=L.length,++H;else if(E==2)for(;H<a.length-1&&a[H+1].match(/^[\d\.]/);)L+="-"+a[H+1],++H;O=q.attributes.setters[A];L=BIc(this,E)(q.option,L,b,c,O);if(L===null){v=!0;e=H;break}else h.push(E),k.push(L)}if(!v)for(q=0;q<k.length;q++)A=h[q],L=k[q],CIc(this,A)(f,L);d=d&&v}else d=!1}}a=d}return new DIc(b,c,a)};
var EIc=function(a,b,c,d,e,f){e(c,b);a=a.charAt(0);f=f(a==a.toUpperCase());e(d,f)};g=AIc.prototype;g.parseAndSetIntOption_=function(a,b,c,d,e){if(b=="")return 0;b=kj(b);if(isNaN(b))return 1;EIc(a,b,c,d,e,Number);return null};g.logIntParseError_=function(){};g.parseAndSetFloatOption_=function(a,b,c,d,e){if(b=="")return 0;b=Ym(b);if(isNaN(b))return 1;EIc(a,b,c,d,e,Number);return null};g.logFloatParseError_=function(){};
g.parseAndSetBoolOption_=function(a,b,c,d,e){if(b!="")return 2;EIc(a,!0,c,d,e,Boolean);return null};g.logBoolParseError_=function(){};g.parseAndSetStringOption_=function(a,b,c,d,e){if(b=="")return 0;EIc(a,b,c,d,e,function(f){return f?"1":""});return null};g.logStringParseError_=function(){};g.parseAndSetUint64Base64Option_=function(a,b,c,d,e){if(b=="")return 0;EIc(a,b,c,d,e,function(f){return f?1:0});return null};
var BIc=function(a,b){switch(b){case 0:return bt(a.parseAndSetIntOption_,a);case 2:return bt(a.parseAndSetFloatOption_,a);case 3:return bt(a.parseAndSetBoolOption_,a);case 4:return bt(a.parseAndSetStringOption_,a);case 1:return bt(a.parseAndSetUint64Base64Option_,a);default:return function(){}}},CIc=function(a,b){switch(b){case 0:return bt(a.logIntParseError_,a);case 2:return bt(a.logFloatParseError_,a);case 3:return bt(a.logBoolParseError_,a);case 4:case 1:return bt(a.logStringParseError_,a);default:return function(){}}},
DIc=function(a,b,c){this.valueProto_=a;this.signatureFlagProto_=b;this.valid_=c};DIc.prototype.isValid=function(){return this.valid_};g=HMa.prototype;g.buffer_="";g.set=function(a){this.buffer_=""+a};g.append=function(a,b,c){this.buffer_+=String(a);if(b!=null)for(var d=1;d<arguments.length;d++)this.buffer_+=arguments[d];return this};g.clear=function(){this.buffer_=""};g.getLength=function(){return this.buffer_.length};g.toString=function(){return this.buffer_};var IMa=function(a){this.parser_=null;this.components_=[];this.parsedOptions_=null;FIc(this,a)};IMa.prototype.getParsedOptions=function(){return this.parsedOptions_};var GIc=function(a){a.parser_==null&&(a.parser_=new AIc);return a.parser_},FIc=function(a,b){a.parsedOptions_=b?typeof b==="string"?GIc(a).parse(b):b:GIc(a).parse("")},VI=function(a,b){return a==b?!1:!0};g=IMa.prototype;
g.setEsPortraitApprovedOnly=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,21),Mt(b.signatureFlagProto_,21))&&c.setEsPortraitApprovedOnly(a);return this};g.setSelectFrameNumber=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,56),Mu(b.signatureFlagProto_,56))&&c.setSelectFrameNumber(a)};g.setAutoloop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,74),Mt(b.signatureFlagProto_,74))&&c.setAutoloop(a)};
g.setBypassTakedown=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,kk(c,23),kk(b.signatureFlagProto_,23))&&c.setBypassTakedown(a)};g.setBorderSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,38),Mu(b.signatureFlagProto_,38))&&c.setBorderSize(a)};g.setBadge=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,85),Mu(b.signatureFlagProto_,85))&&c.setBadge(a)};
g.setBackgroundColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,87),Mu(b.signatureFlagProto_,87))&&c.setBackgroundColor(a)};g.setBorderRadius=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,86),Mu(b.signatureFlagProto_,86))&&c.setBorderRadius(a)};g.setCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,kk(c,2),kk(b.signatureFlagProto_,2))&&c.setCrop(a);return this};
g.setBorderColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,39),Mu(b.signatureFlagProto_,39))&&c.setBorderColor(a)};g.setCircleCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,51),Mt(b.signatureFlagProto_,51))&&c.setCircleCrop(a);return this};g.setImageCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,32),Mt(b.signatureFlagProto_,32))&&c.setImageCrop(a);return this};
g.setDummyCacheKeyModifier=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,104),Mt(b.signatureFlagProto_,104))&&c.setDummyCacheKeyModifier(a)};g.setColorProfile=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,92),Mu(b.signatureFlagProto_,92))&&c.setColorProfile(a)};g.setForceCookieRedirect=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,108),Mt(b.signatureFlagProto_,108))&&c.setForceCookieRedirect(a)};
g.setFaceCropVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,94),Mu(b.signatureFlagProto_,94))&&c.setFaceCropVersion(a)};g.setDownload=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,kk(c,3),kk(b.signatureFlagProto_,3))&&c.setDownload(a)};g.setDeepCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,$k(c,99),$k(b.signatureFlagProto_,99))&&c.setDeepCrop(a)};
g.setDetectFaces=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,80),Mt(b.signatureFlagProto_,80))&&c.setDetectFaces(a)};g.setDownloadVideo=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,90),Mt(b.signatureFlagProto_,90))&&c.setDownloadVideo(a)};g.setExpirationTime=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,15),Mu(b.signatureFlagProto_,15))&&c.setExpirationTime(a)};
g.setExpirationTimeInMinutes=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,107),Mu(b.signatureFlagProto_,107))&&c.setExpirationTimeInMinutes(a)};g.setImageFilter=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,$k(c,16),$k(b.signatureFlagProto_,16))&&c.setImageFilter(a);return this};g.setForceTileGeneration=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,kk(c,34),kk(b.signatureFlagProto_,34))&&c.setForceTileGeneration(a)};
g.setHorizontalFlip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,30),Mt(b.signatureFlagProto_,30))&&c.setHorizontalFlip(a)};g.setForceMonogram=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,84),Mt(b.signatureFlagProto_,84))&&c.setForceMonogram(a);return this};g.setFovDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Ou(c,79),Ou(b.signatureFlagProto_,79))&&c.setFovDegrees(a)};
g.setForceTransformation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,50),Mt(b.signatureFlagProto_,50))&&c.setForceTransformation(a)};g.setVerticalFlip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,31),Mt(b.signatureFlagProto_,31))&&c.setVerticalFlip(a)};g.setTileGeneration=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,kk(c,14),kk(b.signatureFlagProto_,14))&&c.setTileGeneration(a)};
g.setClientExperimentLabel=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,$k(c,112),$k(b.signatureFlagProto_,112))&&c.setClientExperimentLabel(a)};g.setPreserveGoogleData=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,83),Mt(b.signatureFlagProto_,83))&&c.setPreserveGoogleData(a)};g.setGainMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,105),Mt(b.signatureFlagProto_,105))&&c.setGainMap(a)};
g.setHtml=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,kk(c,4),kk(b.signatureFlagProto_,4))&&c.setHtml(a)};g.setHeight=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,c.getHeight(),b.signatureFlagProto_.getHeight())&&c.setHeight(a);return this};g.setIncludeMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,22),Mt(b.signatureFlagProto_,22))&&c.setIncludeMetadata(a)};
g.setInternalClient=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,71),Mu(b.signatureFlagProto_,71))&&c.setInternalClient(a)};g.setImageDigest=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,70),Mt(b.signatureFlagProto_,70))&&c.setImageDigest(a)};g.setIgnoreLowResProfilePhoto=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,96),Mt(b.signatureFlagProto_,96))&&c.setIgnoreLowResProfilePhoto(a)};
g.setIncludePublicMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,54),Mt(b.signatureFlagProto_,54))&&c.setIncludePublicMetadata(a)};g.setImageVersion=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,c.getImageVersion(),b.signatureFlagProto_.getImageVersion())&&c.setImageVersion(a)};g.setFrameId=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Fu(c,29,Wt),Fu(b.signatureFlagProto_,29,Wt))&&c.setFrameId(a)};
g.setKillAnimation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,17),Mt(b.signatureFlagProto_,17))&&c.setKillAnimation(a);return this};g.setFocusBlur=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,42),Mu(b.signatureFlagProto_,42))&&c.setFocusBlur(a)};g.setQualityLevel=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,44),Mu(b.signatureFlagProto_,44))&&c.setQualityLevel(a);return this};
g.setLooseFaceCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,65),Mt(b.signatureFlagProto_,65))&&c.setLooseFaceCrop(a);return this};g.setLossy=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,97),Mt(b.signatureFlagProto_,97))&&c.setLossy(a)};g.setVideoFormat=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,63),Mu(b.signatureFlagProto_,63))&&c.setVideoFormat(a)};
g.setMonogramDogfood=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,91),Mt(b.signatureFlagProto_,91))&&c.setMonogramDogfood(a)};g.setVideoMultiFormat=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,$k(c,81),$k(b.signatureFlagProto_,81))&&c.setVideoMultiFormat(a)};g.setMonogram=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,73),Mt(b.signatureFlagProto_,73))&&c.setMonogram(a)};
g.setMediaProvenance=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,115),Mu(b.signatureFlagProto_,115))&&c.setMediaProvenance(a)};g.setMatchVersion=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,66),Mt(b.signatureFlagProto_,66))&&c.setMatchVersion(a)};g.setCenterCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,kk(c,20),kk(b.signatureFlagProto_,20))&&c.setCenterCrop(a);return this};
g.setNoCorrectExifOrientation=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,55),Mt(b.signatureFlagProto_,55))&&c.setNoCorrectExifOrientation(a)};g.setNoDefaultImage=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,53),Mt(b.signatureFlagProto_,53))&&c.setNoDefaultImage(a)};g.setStripGeoinfo=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,95),Mt(b.signatureFlagProto_,95))&&c.setStripGeoinfo(a)};
g.setNoGainMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,106),Mt(b.signatureFlagProto_,106))&&c.setNoGainMap(a)};g.setNoOverlay=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,kk(c,37),kk(b.signatureFlagProto_,37))&&c.setNoOverlay(a);return this};g.setNoSilhouette=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,40),Mt(b.signatureFlagProto_,40))&&c.setNoSilhouette(a)};
g.setVersionedToken=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,$k(c,36),$k(b.signatureFlagProto_,36))&&c.setVersionedToken(a)};g.setNoToneMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,114),Mt(b.signatureFlagProto_,114))&&c.setNoToneMap(a)};g.setNoUpscale=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,46),Mt(b.signatureFlagProto_,46))&&c.setNoUpscale(a)};
g.setNoWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,kk(c,48),kk(b.signatureFlagProto_,48))&&c.setNoWebp(a)};g.setObjectId=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Fu(c,7,Wt),Fu(b.signatureFlagProto_,7,Wt))&&c.setObjectId(a)};g.setOverlay=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,c.getOverlay(),b.signatureFlagProto_.getOverlay())&&c.setOverlay(a);return this};
g.setSmartCrop=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,kk(c,19),kk(b.signatureFlagProto_,19))&&c.setSmartCrop(a);return this};g.setFocalPlane=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,43),Mu(b.signatureFlagProto_,43))&&c.setFocalPlane(a)};g.setPreserveAspectRatio=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,61),Mt(b.signatureFlagProto_,61))&&c.setPreserveAspectRatio(a)};
g.setPadColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,88),Mu(b.signatureFlagProto_,88))&&c.setPadColor(a)};g.setPad=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,60),Mt(b.signatureFlagProto_,60))&&c.setPad(a);return this};g.setSmartCropUseFace=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,kk(c,67),kk(b.signatureFlagProto_,67))&&c.setSmartCropUseFace(a);return this};
g.setTilePyramidAsProto=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,kk(c,72),kk(b.signatureFlagProto_,72))&&c.setTilePyramidAsProto(a)};g.setPitchDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Ou(c,76),Ou(b.signatureFlagProto_,76))&&c.setPitchDegrees(a)};g.setSmartCropNoClip=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,kk(c,52),kk(b.signatureFlagProto_,52))&&c.setSmartCropNoClip(a);return this};
g.setPregenTimestamps=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,$k(c,111),$k(b.signatureFlagProto_,111))&&c.setPregenTimestamps(a)};g.setQueryString=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,$k(c,28),$k(b.signatureFlagProto_,28))&&c.setQueryString(a)};g.setSkipRefererCheck=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,kk(c,6),kk(b.signatureFlagProto_,6))&&c.setSkipRefererCheck(a)};
g.setRotate=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,26),Mu(b.signatureFlagProto_,26))&&c.setRotate(a);return this};g.setRequestAvif=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,kk(c,103),kk(b.signatureFlagProto_,103))&&c.setRequestAvif(a)};g.setRequestVideoFast=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,100),Mt(b.signatureFlagProto_,100))&&c.setRequestVideoFast(a)};
g.setRequestGif=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,59),Mt(b.signatureFlagProto_,59))&&c.setRequestGif(a)};g.setRequestH264=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,kk(c,49),kk(b.signatureFlagProto_,49))&&c.setRequestH264(a);return this};g.setRequestJpeg=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,57),Mt(b.signatureFlagProto_,57))&&c.setRequestJpeg(a);return this};
g.setRollDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Ou(c,78),Ou(b.signatureFlagProto_,78))&&c.setRollDegrees(a)};g.setRequestPng=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,58),Mt(b.signatureFlagProto_,58))&&c.setRequestPng(a);return this};g.setRequestWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,kk(c,35),kk(b.signatureFlagProto_,35))&&c.setRequestWebp(a);return this};
g.setRequestAnimatedWebp=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,kk(c,64),kk(b.signatureFlagProto_,64))&&c.setRequestAnimatedWebp(a)};g.setRequestWebpUnlessMaybeTransparent=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,kk(c,41),kk(b.signatureFlagProto_,41))&&c.setRequestWebpUnlessMaybeTransparent(a)};g.setStretch=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,33),Mt(b.signatureFlagProto_,33))&&c.setStretch(a);return this};
g.setSize=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,c.getSize(),b.signatureFlagProto_.getSize())&&c.setSize(a);return this};g.setStoryboardMosaic=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,110),Mu(b.signatureFlagProto_,110))&&c.setStoryboardMosaic(a)};g.setSubstitutionColor=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,89),Mu(b.signatureFlagProto_,89))&&c.setSubstitutionColor(a)};
g.setStripGoogleData=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,82),Mt(b.signatureFlagProto_,82))&&c.setStripGoogleData(a)};g.setStoryboardLevel=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,109),Mu(b.signatureFlagProto_,109))&&c.setStoryboardLevel(a)};g.setStripMetadata=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,93),Mt(b.signatureFlagProto_,93))&&c.setStripMetadata(a)};
g.setToken=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,c.getToken(),b.signatureFlagProto_.getToken())&&c.setToken(a);return this};g.setToneMap=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,113),Mt(b.signatureFlagProto_,113))&&c.setToneMap(a)};g.setUnfiltered=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,18),Mt(b.signatureFlagProto_,18))&&c.setUnfiltered(a)};
g.setUnfilteredWithTransforms=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,45),Mt(b.signatureFlagProto_,45))&&c.setUnfilteredWithTransforms(a)};g.setQualityBucket=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,62),Mu(b.signatureFlagProto_,62))&&c.setQualityBucket(a);return this};g.setVideoBegin=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Nu(c,68),Nu(b.signatureFlagProto_,68))&&c.setVideoBegin(a)};
g.setVideoFormatFilters=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,$k(c,102),$k(b.signatureFlagProto_,102))&&c.setVideoFormatFilters(a)};g.setVideoLength=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Nu(c,69),Nu(b.signatureFlagProto_,69))&&c.setVideoLength(a)};g.setVideoManifest=function(a){a=a||void 0;var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mt(c,98),Mt(b.signatureFlagProto_,98))&&c.setVideoManifest(a)};
g.setWidth=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,c.getWidth(),b.signatureFlagProto_.getWidth())&&c.setWidth(a);return this};g.setTileX=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,9),Mu(b.signatureFlagProto_,9))&&c.setTileX(a)};g.setTileY=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,10),Mu(b.signatureFlagProto_,10))&&c.setTileY(a)};
g.setYawDegrees=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Ou(c,77),Ou(b.signatureFlagProto_,77))&&c.setYawDegrees(a)};g.setTileZoom=function(a){var b=this.parsedOptions_,c=b.valueProto_;VI(a,Mu(c,11),Mu(b.signatureFlagProto_,11))&&c.setTileZoom(a)};g.setOptions=function(a){FIc(this,a)};
g.build=function(){this.components_.length=0;var a=this.parsedOptions_,b=a.valueProto_;a=a.signatureFlagProto_;WI(this,"s",b.getSize(),a.getSize());WI(this,"w",b.getWidth(),a.getWidth());XI(this,"c",kk(b,2),kk(a,2));XI(this,"d",kk(b,3),kk(a,3));WI(this,"h",b.getHeight(),a.getHeight());XI(this,"s",Mt(b,33),Mt(a,33));XI(this,"h",kk(b,4),kk(a,4));XI(this,"p",kk(b,19),kk(a,19));XI(this,"pp",kk(b,52),kk(a,52));XI(this,"pf",kk(b,67),kk(a,67));XI(this,"n",kk(b,20),kk(a,20));WI(this,"r",Mu(b,26),Mu(a,26));
XI(this,"r",kk(b,6),kk(a,6));XI(this,"o",b.getOverlay(),a.getOverlay());var c=Fu(b,7,Wt);YI(this,"o",c,Fu(a,7,Wt));c=Fu(b,29,Wt);YI(this,"j",c,Fu(a,29,Wt));WI(this,"x",Mu(b,9),Mu(a,9));WI(this,"y",Mu(b,10),Mu(a,10));WI(this,"z",Mu(b,11),Mu(a,11));XI(this,"g",kk(b,14),kk(a,14));WI(this,"e",Mu(b,15),Mu(a,15));YI(this,"f",$k(b,16),$k(a,16));XI(this,"k",Mt(b,17),Mt(a,17));XI(this,"u",Mt(b,18),!0);XI(this,"ut",Mt(b,45),!0);XI(this,"i",Mt(b,22),!0);XI(this,"a",Mt(b,21),Mt(a,21));XI(this,"b",kk(b,23),kk(a,
23));WI(this,"b",Mu(b,38),Mu(a,38));WI(this,"c",Mu(b,39),Mu(a,39),16,8);YI(this,"q",$k(b,28),$k(a,28));XI(this,"fh",Mt(b,30),Mt(a,30));XI(this,"fv",Mt(b,31),Mt(a,31));XI(this,"fg",kk(b,34),kk(a,34));XI(this,"ci",Mt(b,32),Mt(a,32));YI(this,"t",b.getToken(),a.getToken());YI(this,"nt0",$k(b,36),$k(a,36));XI(this,"rw",kk(b,35),kk(a,35));XI(this,"rwu",kk(b,41),kk(a,41));XI(this,"rwa",kk(b,64),kk(a,64));XI(this,"nw",kk(b,48),kk(a,48));XI(this,"rh",kk(b,49),kk(a,49));XI(this,"no",kk(b,37),kk(a,37));XI(this,
"ns",Mt(b,40),Mt(a,40));WI(this,"k",Mu(b,42),Mu(a,42));WI(this,"p",Mu(b,43),Mu(a,43));WI(this,"l",Mu(b,44),Mu(a,44));WI(this,"v",Mu(b,62),Mu(a,62));XI(this,"nu",Mt(b,46),Mt(a,46));XI(this,"ft",Mt(b,50),Mt(a,50));XI(this,"cc",Mt(b,51),Mt(a,51));XI(this,"nd",Mt(b,53),Mt(a,53));XI(this,"ip",Mt(b,54),Mt(a,54));XI(this,"nc",Mt(b,55),Mt(a,55));WI(this,"a",Mu(b,56),Mu(a,56));XI(this,"rj",Mt(b,57),Mt(a,57));XI(this,"rp",Mt(b,58),Mt(a,58));XI(this,"rg",Mt(b,59),Mt(a,59));XI(this,"pd",Mt(b,60),Mt(a,60));XI(this,
"pa",Mt(b,61),Mt(a,61));WI(this,"m",Mu(b,63),Mu(a,63));WI(this,"vb",Nu(b,68),Nu(a,68));WI(this,"vl",Nu(b,69),Nu(a,69));XI(this,"lf",Mt(b,65),Mt(a,65));XI(this,"mv",Mt(b,66),Mt(a,66));XI(this,"id",Mt(b,70),Mt(a,70));WI(this,"ic",Mu(b,71),!0);XI(this,"pg",kk(b,72),kk(a,72));XI(this,"mo",Mt(b,73),Mt(a,73));XI(this,"al",Mt(b,74),Mt(a,74));WI(this,"iv",b.getImageVersion(),a.getImageVersion());WI(this,"pi",Ou(b,76),Ou(a,76));WI(this,"ya",Ou(b,77),Ou(a,77));WI(this,"ro",Ou(b,78),Ou(a,78));WI(this,"fo",Ou(b,
79),Ou(a,79));XI(this,"df",Mt(b,80),Mt(a,80));YI(this,"mm",$k(b,81),$k(a,81));XI(this,"sg",Mt(b,82),Mt(a,82));XI(this,"gd",Mt(b,83),Mt(a,83));XI(this,"fm",Mt(b,84),Mt(a,84));WI(this,"ba",Mu(b,85),Mu(a,85));WI(this,"br",Mu(b,86),Mu(a,86));WI(this,"bc",Mu(b,87),Mu(a,87),16,8);WI(this,"pc",Mu(b,88),Mu(a,88),16,8);WI(this,"sc",Mu(b,89),Mu(a,89),16,8);XI(this,"dv",Mt(b,90),Mt(a,90));XI(this,"md",Mt(b,91),Mt(a,91));WI(this,"cp",Mu(b,92),Mu(a,92));XI(this,"sm",Mt(b,93),Mt(a,93));WI(this,"cv",Mu(b,94),Mu(a,
94));XI(this,"ng",Mt(b,95),Mt(a,95));XI(this,"il",Mt(b,96),Mt(a,96));XI(this,"lo",Mt(b,97),Mt(a,97));XI(this,"vm",Mt(b,98),Mt(a,98));YI(this,"dc",$k(b,99),$k(a,99));XI(this,"rf",Mt(b,100),Mt(a,100));YI(this,"vf",$k(b,102),$k(a,102));XI(this,"ra",kk(b,103),kk(a,103));XI(this,"ckm",Mt(b,104),Mt(a,104));XI(this,"gm",Mt(b,105),Mt(a,105));XI(this,"ngm",Mt(b,106),Mt(a,106));WI(this,"em",Mu(b,107),Mu(a,107));XI(this,"cr",Mt(b,108),Mt(a,108));WI(this,"sl",Mu(b,109),Mu(a,109));WI(this,"sb",Mu(b,110),Mu(a,
110));YI(this,"pt",$k(b,111),$k(a,111));YI(this,"gce",$k(b,112),$k(a,112));XI(this,"tm",Mt(b,113),Mt(a,113));XI(this,"ntm",Mt(b,114),Mt(a,114));WI(this,"mp",Mu(b,115),Mu(a,115));return this.components_.join("-")};
var WI=function(a,b,c,d,e,f){if(c!=null){var h=e==void 0||e!=10&&e!=16?10:e;c=Number(c).toString(h);e=new HMa;e.append(h==16?"0x":"");h=e.append;f==void 0?f="":(f-=c.length,f=f<=0?"":Hfc("0",f));h.call(e,f);e.append(c);HIc(a,b,e.toString(),!!Number(d))}},XI=function(a,b,c,d){c&&HIc(a,b,"",!!d)},YI=function(a,b,c,d){c&&HIc(a,b,String(c),!!Number(d))},HIc=function(a,b,c,d){d&&(b=b.charAt(0).toUpperCase()+b.substring(1));a.components_.push(b+c)};zu(Xp,IMa);g=Xp.prototype;g.setCrop=function(a){a&&ZI(this);return Xp.superClass_.setCrop.call(this,a)};g.setHeight=function(a){a=a==null||a<0?void 0:a;a!=null&&this.setSize();return Xp.superClass_.setHeight.call(this,a)};g.setStretch=function(a){a&&ZI(this);return Xp.superClass_.setStretch.call(this,a)};g.setQualityLevel=function(a){return Xp.superClass_.setQualityLevel.call(this,a)};g.setImageFilter=function(a){a&&(a=a.replace(";",":"));return Xp.superClass_.setImageFilter.call(this,a)};
g.setImageCrop=function(a){a&&ZI(this);return Xp.superClass_.setImageCrop.call(this,a)};g.setCircleCrop=function(a){a&&ZI(this);return Xp.superClass_.setCircleCrop.call(this,a)};g.setSize=function(a){La(a)&&(a=Math.max(a.width,a.height));a=a==null||a<0?void 0:a;a!=null&&(this.setWidth(),this.setHeight());return Xp.superClass_.setSize.call(this,a)};g.setSmartCrop=function(a){a&&ZI(this);return Xp.superClass_.setSmartCrop.call(this,a)};
g.setSmartCropNoClip=function(a){a&&ZI(this);return Xp.superClass_.setSmartCropNoClip.call(this,a)};g.setSmartCropUseFace=function(a){a&&ZI(this);return Xp.superClass_.setSmartCropUseFace.call(this,a)};g.setCenterCrop=function(a){a&&ZI(this);return Xp.superClass_.setCenterCrop.call(this,a)};g.setPad=function(a){a&&ZI(this);return Xp.superClass_.setPad.call(this,a)};g.setWidth=function(a){a=a==null||a<0?void 0:a;a!=null&&this.setSize();return Xp.superClass_.setWidth.call(this,a)};
var ZI=function(a){a.setCenterCrop();a.setCircleCrop();a.setCrop();a.setImageCrop();a.setPad();a.setSmartCrop();a.setSmartCropNoClip();a.setSmartCropUseFace()};Xp.prototype.build=function(){var a=this.getParsedOptions().valueProto_;Mt(a,18)||Mt(a,45)?a.getSize()||this.setSize(0):(a=this.getParsedOptions().valueProto_,a.getSize()||a.getWidth()||a.getHeight()||(this.setSize(),this.setHeight(),this.setWidth(),ZI(this)));return Xp.superClass_.build.call(this)};var IIc=/^[^\/]*\/\//,$I=function(a,b){b=b===void 0?!1:b;this.original_=a;this.originalPrefix_="";(a=this.original_.match(IIc))&&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_=Gr(a,!0);this.isFreeformUrl_=b;this.valid_=!0;this.obfuscated_=!1},JIc=function(a,b){a.pathPrefix_=a.pathPrefix_?a.pathPrefix_+("/"+b):b},aJ=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"&&(JIc(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)JIc(a,
a.components_[0]);else if(a.components_[0]=="image")JIc(a,a.components_[0]);else if(b==7||b==3)return a.valid_=!1,a.components_;if(b<=3){a.obfuscated_=!0;b==3&&(JIc(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_};$I.prototype.isValid=function(){aJ(this);return this.valid_};var KIc=function(a){aJ(a);return a.obfuscated_},LIc=function(a){aJ(a);return a.isFreeformUrl_};
$I.prototype.getDomain=function(){var a=this.uri_.port_;return this.uri_.getDomain()+(a?":"+a:"")};$I.prototype.getQuery=function(){return this.uri_.queryData_.toString()};var bJ=function(a){aJ(a);a.pathPrefix_==void 0&&(a.pathPrefix_=null);return a.pathPrefix_};$I.prototype.hasOptions=function(){switch(aJ(this).length){case 7:return!0;case 6:return bJ(this)==null;case 5:return!1;case 3:return!0;case 2:return bJ(this)==null;case 1:return!1;default:return!1}};
var cJ=function(a,b){if(LIc(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=aJ(a)[b]}else if(KIc(a))a:{var c=bJ(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=aJ(a)[b]}else a:{c=bJ(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=aJ(a)[b]}return a};g=$I.prototype;g.getObfuscatedGaiaId=function(){this.obfuscatedGaiaId_==void 0&&(this.obfuscatedGaiaId_=cJ(this,0));return this.obfuscatedGaiaId_};g.getPhotoId=function(){this.photoId_==void 0&&(this.photoId_=cJ(this,1));return this.photoId_};g.getImageVersion=function(){this.imageVersion_==void 0&&(this.imageVersion_=cJ(this,2));return this.imageVersion_};g.getOptions=function(){this.options_==void 0&&(this.options_=cJ(this,4));return this.options_};
g.getFilename=function(){this.filename_==void 0&&(this.filename_=cJ(this,5));return this.filename_};var LMa=function(){};LMa.prototype.parse=function(a,b){return new JMa(a,b===void 0?!1:b)};var JMa=function(a,b){$I.call(this,a,b===void 0?!1:b)};Y(JMa,$I);JMa.prototype.getParsedOptions=function(){if(this.parsedOptions_==void 0){var a=this.getOptions();a||(a="");this.parsedOptions_=(new AIc).parse(a)}return this.parsedOptions_};zu(Yp,Xp);var KMa;Yp.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
Yp.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var a=Yp.superClass_.build.call(this),b=[];bJ(this.parsedImageUrl_)!=null&&b.push(bJ(this.parsedImageUrl_));var c=LIc(this.parsedImageUrl_);if(KIc(this.parsedImageUrl_)){var d=this.parsedImageUrl_;d.obfuscatedData_==void 0&&(d.obfuscatedData_=cJ(d,6));b.push(d.obfuscatedData_+(a?"="+a:""))}else if(c){d=b.push;var e=this.parsedImageUrl_;e.freeformUrlPath_===void 0&&(e.freeformUrlPath_=cJ(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_=cJ(e,3)),d.call(b,e.signature_),a&&b.push(a),b.push(this.parsedImageUrl_.getFilename());a=Gr(this.protocolPrefix_+this.domain_+"/"+(c?b.join("="):b.join("/"))+(this.query_?"?"+this.query_:"")).toString();a.startsWith("%3a//")&&(a=a.replace("%3a//","://"));
return a};var MIc=/\/\/lh[3-6]\./,NIc=function(a,b,c,d){if(!a||!sIc(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(MIc,"//lh3.");return(new Yp(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 OIc=[[["onedev-hovercard-action"]],[["","onedev-additional-content",""]]],dJ=function(a,b){var c=this;this.peopleService=a;this.waldoService=b;this.enableWaldo=!1;this.providedEmail$=new sg(1);this.person$=this.providedEmail$.pipe(xg(function(d){return nIc(c.peopleService,d)}),C(function(d){if(d){var e=Object,f=e.assign;if(d.imageUrl){var h=d.imageUrl;if(sIc(h)){var k=new Yp(h);k.setSize(48).setCrop(!0);h=k.build()||h}}else h=d.imageUrl;d=f.call(e,{},d,{imageUrl:h})}return d}),ug(1));this.outOfOfficeDescription$=
new sg;this.init=new sg(1);this.destroyed$=new sg(1)};dJ.prototype.ngOnInit=function(){var a=this;this.person$.pipe(mg(1),yg(this.destroyed$)).subscribe(function(){a.init.next()});this.enableWaldo&&PIc(this)};var PIc=function(a){a.waldoService&&a.person$.pipe(xg(function(b){return b?UBc(a.waldoService,b.email):Nf("")}),yg(a.destroyed$)).subscribe(function(b){a.outOfOfficeDescription$.next(b)})};
nd.Object.defineProperties(dJ.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.emailInternal},set:function(a){this.emailInternal=a;this.providedEmail$.next(a)}}});dJ.\u0275fac=function(a){return new (a||dJ)(of(QI),of(hH,8))};
dJ.\u0275cmp=y({type:dJ,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&&(ch(OIc),D(0,MMa,4,4,"onedev-person-hovercard-body",0),U(1,"async"));a&2&&I("ngIf",V(1,1,b.person$))},dependencies:[aw,Rv,SI,NI,BH,Tv],encapsulation:2,changeDetection:0});var QIc=[[["onedev-hovercard-action"],["",8,"actions"]]],eJ=function(){};eJ.prototype.ngOnInit=function(){};eJ.\u0275fac=function(a){return new (a||eJ)};
eJ.\u0275cmp=y({type:eJ,selectors:[["b-person-card"]],inputs:{email:"email"},standalone:!1,ngContentSelectors:["onedev-hovercard-action, .actions"],decls:1,vars:0,consts:[["cardBody",""],[3,"email","enableWaldo","onedevIsHovercardReady",4,"onedevHovercardLazyBody"],[3,"email","enableWaldo","onedevIsHovercardReady"]],template:function(a){a&1&&(ch(QIc),D(0,NMa,3,3,"onedev-person-hovercard",1))},dependencies:[dJ,EI,FI],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 fJ=function(){this.isNonObfuscatedEmail=pl};fJ.\u0275fac=function(a){return new (a||fJ)};
fJ.\u0275cmp=y({type:fJ,selectors:[["b-person-hovercard"]],inputs:{email:"email"},standalone:!1,ngContentSelectors:["*"],decls:4,vars:1,consts:[["content",""],["card",""],["role","button","tabindex","0",1,"keep-focus-ring",3,"onedevHovercardTrigger","onedevHovercardActive"],[4,"ngTemplateOutlet"],[3,"email"]],template:function(a,b){a&1&&(ch(),F(0,PMa,5,4)(1,RMa,1,1,"ng-container"),D(2,SMa,1,0,"ng-template",null,0,Lh));a&2&&G(b.email&&b.isNonObfuscatedEmail(b.email)?0:1)},dependencies:[Sv,DI,JI,eJ],
encapsulation:2,changeDetection:0});var RIc=function(){};var gq=function(a,b){this._onDoneFns=[];this._onStartFns=[];this._onDestroyFns=[];this._originalOnDoneFns=[];this._originalOnStartFns=[];this._finished=this._destroyed=this._started=!1;this._position=0;this.parentPlayer=null;this.totalTime=(a===void 0?0:a)+(b===void 0?0:b)};g=gq.prototype;g._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};g.onStart=function(a){this._originalOnStartFns.push(a);this._onStartFns.push(a)};
g.onDone=function(a){this._originalOnDoneFns.push(a);this._onDoneFns.push(a)};g.onDestroy=function(a){this._onDestroyFns.push(a)};g.hasStarted=function(){return this._started};g.init=function(){};g.play=function(){this.hasStarted()||(this._onStart(),SIc(this));this._started=!0};var SIc=function(a){queueMicrotask(function(){return a._onFinish()})};g=gq.prototype;g._onStart=function(){this._onStartFns.forEach(function(a){return a()});this._onStartFns=[]};g.pause=function(){};g.restart=function(){};
g.finish=function(){this._onFinish()};g.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])};g.reset=function(){this._finished=this._started=!1;this._onStartFns=this._originalOnStartFns;this._onDoneFns=this._originalOnDoneFns};g.setPosition=function(a){this._position=this.totalTime?a*this.totalTime:1};
g.getPosition=function(){return this.totalTime?this._position/this.totalTime:1};g.triggerCallback=function(a){a=a=="start"?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};var hNa=function(a){var b=this;this._onDoneFns=[];this._onStartFns=[];this._destroyed=this._started=this._finished=!1;this._onDestroyFns=[];this.parentPlayer=null;this.totalTime=0;this.players=a;var c=0,d=0,e=0,f=this.players.length;f==0?queueMicrotask(function(){return b._onFinish()}):this.players.forEach(function(h){h.onDone(function(){++c==f&&b._onFinish()});h.onDestroy(function(){++d==f&&b._onDestroy()});h.onStart(function(){++e==f&&b._onStart()})});this.totalTime=this.players.reduce(function(h,
k){return Math.max(h,k.totalTime)},0)};g=hNa.prototype;g._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};g.init=function(){this.players.forEach(function(a){return a.init()})};g.onStart=function(a){this._onStartFns.push(a)};g._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[])};g.onDone=function(a){this._onDoneFns.push(a)};g.onDestroy=function(a){this._onDestroyFns.push(a)};
g.hasStarted=function(){return this._started};g.play=function(){this.parentPlayer||this.init();this._onStart();this.players.forEach(function(a){return a.play()})};g.pause=function(){this.players.forEach(function(a){return a.pause()})};g.restart=function(){this.players.forEach(function(a){return a.restart()})};g.finish=function(){this._onFinish();this.players.forEach(function(a){return a.finish()})};g.destroy=function(){this._onDestroy()};
g._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(a){return a.destroy()}),this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])};g.reset=function(){this.players.forEach(function(a){return a.reset()});this._started=this._finished=this._destroyed=!1};g.setPosition=function(a){var b=a*this.totalTime;this.players.forEach(function(c){c.setPosition(c.totalTime?Math.min(1,b/c.totalTime):1)})};
g.getPosition=function(){var a=this.players.reduce(function(b,c){return b===null||c.totalTime>b.totalTime?c:b},null);return a!=null?a.getPosition():0};g.beforeDestroy=function(){this.players.forEach(function(a){a.beforeDestroy&&a.beforeDestroy()})};g.triggerCallback=function(a){a=a=="start"?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};var WMa=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,cNa=RegExp("{{\\s*(.+?)\\s*}}","g"),eNa=/-+([a-z0-9])/g;var TIc=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(" ")),UIc=function(){};Y(UIc,RIc);
var iNa=function(a,b,c){var d="",e=b.toString().trim();TIc.has(a)&&b!==0&&b!=="0"&&(typeof b==="number"?d="px":(a=b.match(/^[+-]?[\d\.]+([a-z]*)$/))&&a[1].length==0&&c.push(new Vd(3005,!1)));return e+d};var oNa=typeof document==="undefined"?null:document.documentElement;var VIc=function(){};var uNa=new Set(["true","1"]),vNa=new Set(["false","0"]);var wNa=RegExp("s*:selfs*,?","g"),WIc=function(a){this._driver=a};g=WIc.prototype;g.build=function(a,b){b=new XIc(b);this._resetContextStyleTimingState(b);return fq(this,$Ma(a),b)};g._resetContextStyleTimingState=function(a){a.currentQuerySelector="";a.collectedStyles=new Map;a.collectedStyles.set("",new Map);a.currentTime=0};
g.visitTrigger=function(a,b){var c=this,d=b.queryCount=0,e=b.depCount=0,f=[],h=[];a.name.charAt(0)=="@"&&b.errors.push(new Vd(3006,!1));a.definitions.forEach(function(k){c._resetContextStyleTimingState(b);if(k.type==0){var q=k.name;q.toString().split(/\s*,\s*/).forEach(function(v){k.name=v;f.push(c.visitState(k,b))});k.name=q}else k.type==1?(q=c.visitTransition(k,b),d+=q.queryCount,e+=q.depCount,h.push(q)):b.errors.push(new Vd(3007,!1))});return{type:7,name:a.name,states:f,transitions:h,queryCount:d,
depCount:e,options:null}};g.visitState=function(a,b){var c=this.visitStyle(a.styles,b),d=a.options&&a.options.params||null;if(c.containsDynamicStyles){var e=new Set,f=d||{};c.styles.forEach(function(h){h instanceof Map&&h.forEach(function(k){aNa(k).forEach(function(q){f.hasOwnProperty(q)||e.add(q)})})});e.size&&b.errors.push(TMa([].concat(p(e.values()))))}return{type:0,name:a.name,style:c,options:d?{params:d}:null}};
g.visitTransition=function(a,b){b.queryCount=0;b.depCount=0;var c=fq(this,$Ma(a.animation),b);return{type:1,matchers:tNa(a.expr,b.errors),animation:c,queryCount:b.queryCount,depCount:b.depCount,options:jq(a.options)}};g.visitSequence=function(a,b){var c=this;return{type:2,steps:a.steps.map(function(d){return fq(c,d,b)}),options:jq(a.options)}};
g.visitGroup=function(a,b){var c=this,d=b.currentTime,e=0,f=a.steps.map(function(h){b.currentTime=d;h=fq(c,h,b);e=Math.max(e,b.currentTime);return h});b.currentTime=e;return{type:3,steps:f,options:jq(a.options)}};
g.visitAnimate=function(a,b){var c=zNa(a.timings,b.errors);b.currentAnimateTimings=c;var d=a.styles?a.styles:$p({});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=$p(d));b.currentTime+=c.duration+c.delay;var e=this.visitStyle(d,b);e.isEmptyStep=a;a=e}b.currentAnimateTimings=null;return{type:4,timings:c,style:a,options:null}};g.visitStyle=function(a,b){a=this._makeStyleAst(a,b);this._validateStyleAst(a,b);return a};
g._makeStyleAst=function(a,b){for(var c=[],d=l(Array.isArray(a.styles)?a.styles:[a.styles]),e=d.next();!e.done;e=d.next())e=e.value,typeof e==="string"?e==="*"?c.push(e):b.errors.push(new Vd(3002,!1)):c.push(new Map(Object.entries(e)));var f=!1,h=null;c.forEach(function(k){if(k instanceof Map&&(k.has("easing")&&(h=k.get("easing"),k.delete("easing")),!f)){k=l(k.values());for(var q=k.next();!q.done;q=k.next())if(q.value.toString().indexOf("{{")>=0){f=!0;break}}});return{type:6,styles:c,easing:h,offset:a.offset,
containsDynamicStyles:f,options:null}};g._validateStyleAst=function(a,b){var c=b.currentAnimateTimings,d=b.currentTime,e=b.currentTime;c&&e>0&&(e-=c.duration+c.delay);a.styles.forEach(function(f){typeof f!=="string"&&f.forEach(function(h,k){var q=b.collectedStyles.get(b.currentQuerySelector),v=q.get(k),A=!0;v&&(e!=d&&e>=v.startTime&&d<=v.endTime&&(b.errors.push(new Vd(3010,!1)),A=!1),e=v.startTime);A&&q.set(k,{startTime:e,endTime:d});b.options&&bNa(h,b.options,b.errors)})})};
g.visitKeyframes=function(a,b){var c=this,d={type:5,styles:[],options:null};if(!b.currentAnimateTimings)return b.errors.push(new Vd(3011,!1)),d;var e=0,f=[],h=!1,k=!1,q=0,v=a.steps.map(function(S){S=c._makeStyleAst(S,b);var aa=S.offset!=null?S.offset:yNa(S.styles),ka=0;aa!=null&&(e++,ka=S.offset=aa);k=k||ka<0||ka>1;h=h||ka<q;q=ka;f.push(ka);return S});k&&b.errors.push(new Vd(3012,!1));h&&b.errors.push(new Vd(3200,!1));a=a.steps.length;var A=0;e>0&&e<a?b.errors.push(new Vd(3202,!1)):e==0&&(A=1/(a-
1));var E=a-1,H=b.currentTime,L=b.currentAnimateTimings,O=L.duration;v.forEach(function(S,aa){aa=A>0?aa==E?1:A*aa:f[aa];var ka=aa*O;b.currentTime=H+L.delay+ka;L.duration=ka;c._validateStyleAst(S,b);S.offset=aa;d.styles.push(S)});return d};g.visitReference=function(a,b){return{type:8,animation:fq(this,$Ma(a.animation),b),options:jq(a.options)}};g.visitAnimateChild=function(a,b){b.depCount++;return{type:9,options:jq(a.options)}};
g.visitAnimateRef=function(a,b){return{type:10,animation:this.visitReference(a.animation,b),options:jq(a.options)}};
g.visitQuery=function(a,b){var c=b.currentQuerySelector,d=a.options||{};b.queryCount++;b.currentQuery=a;var e=l(xNa(a.selector)),f=e.next().value;e=e.next().value;b.currentQuerySelector=c.length?c+" "+f:f;iq(b.collectedStyles,b.currentQuerySelector,new Map);var h=fq(this,$Ma(a.animation),b);b.currentQuery=null;b.currentQuerySelector=c;return{type:11,selector:f,limit:d.limit||0,optional:!!d.optional,includeSelf:e,animation:h,originalSelector:a.selector,options:jq(a.options)}};
g.visitStagger=function(a,b){b.currentQuery||b.errors.push(new Vd(3013,!1));var c=a.timings==="full"?{duration:0,delay:0,easing:"full"}:XMa(a.timings,b.errors,!0);return{type:12,animation:fq(this,$Ma(a.animation),b),timings:c,options:null}};var XIc=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 gJ=function(){this._map=new Map};gJ.prototype.get=function(a){return this._map.get(a)||[]};gJ.prototype.append=function(a,b){var c=this._map.get(a);c||this._map.set(a,c=[]);c.push.apply(c,p(b))};gJ.prototype.has=function(a){return this._map.has(a)};gJ.prototype.clear=function(){this._map.clear()};var YIc=RegExp(":enter","g"),ZIc=RegExp(":leave","g"),BNa=function(){};g=BNa.prototype;
g.buildKeyframes=function(a,b,c,d,e,f,h,k,q,v){v=v===void 0?[]:v;q=q||new gJ;a=new $Ic(a,b,q,d,e,v,[]);a.options=k;d=k.delay?cq(k.delay):0;a.currentTimeline.delayNextStep(d);aJc(a.currentTimeline,[f],null,a.errors,k);fq(this,c,a);c=a.timelines.filter(function(E){return E.containsAnimation()});if(c.length&&h.size){for(f=c.length-1;f>=0;f--)if(e=c[f],e.element===b){var A=e;break}A&&A._currentEmptyStepKeyframe===A._currentKeyframe&&aJc(A,[h],null,a.errors,k)}return c.length?c.map(function(E){return E.buildKeyframes()}):
[ANa(b,[],[],[],0,d,"",!1)]};g.visitTrigger=function(){};g.visitState=function(){};g.visitTransition=function(){};g.visitAnimateChild=function(a,b){var c=b.subInstructions.get(b.element);if(c){var d=hJ(b,a.options),e=b.currentTimeline.currentTime;c=this._visitSubInstructions(c,d,d.options);e!=c&&iJ(b,c)}b.previousNode=a};
g.visitAnimateRef=function(a,b){var c=hJ(b,a.options);iJ(c);this._applyAnimationRefDelays([a.options,a.animation.options],b,c);this.visitReference(a.animation,c);iJ(b,c.currentTimeline.currentTime);b.previousNode=a};g._applyAnimationRefDelays=function(a,b,c){a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=void 0,f=(e=d)==null?void 0:e.delay;if(f){var h=e=void 0;d=typeof f==="number"?f:cq(dNa(f,(h=(e=d)==null?void 0:e.params)!=null?h:{},b.errors));c.delayNextStep(d)}}};
g._visitSubInstructions=function(a,b,c){var d=b.currentTimeline.currentTime,e=c.duration!=null?cq(c.duration):null,f=c.delay!=null?cq(c.delay):null;e!==0&&a.forEach(function(h){var k={duration:e!=null?e:h.duration,delay:b.currentTimeline.currentTime+(f!=null?f:0)+h.delay,easing:""};h=new bJc(b._driver,h.element,h.keyframes,h.preStyleProps,h.postStyleProps,k,h.stretchStartingKeyframe);b.timelines.push(h);d=Math.max(d,k.duration+k.delay)});return d};
g.visitReference=function(a,b){cJc(b,a.options,!0);fq(this,a.animation,b);b.previousNode=a};g.visitSequence=function(a,b){var c=this,d=b.subContextCount,e=b,f=a.options;f&&(f.params||f.delay)&&(e=hJ(b,f),iJ(e),f.delay!=null&&(e.previousNode.type==6&&(dJc(e.currentTimeline),e.previousNode=eJc),e.delayNextStep(cq(f.delay))));a.steps.length&&(a.steps.forEach(function(h){return fq(c,h,e)}),jJ(e.currentTimeline),e.subContextCount>d&&iJ(e));b.previousNode=a};
g.visitGroup=function(a,b){var c=this,d=[],e=b.currentTimeline.currentTime,f=a.options&&a.options.delay?cq(a.options.delay):0;a.steps.forEach(function(h){var k=hJ(b,a.options);f&&k.delayNextStep(f);fq(c,h,k);e=Math.max(e,k.currentTimeline.currentTime);d.push(k.currentTimeline)});d.forEach(function(h){return fJc(b.currentTimeline,h)});iJ(b,e);b.previousNode=a};
g._visitTiming=function(a,b){return a.dynamic?(a=a.strValue,a=b.params?dNa(a,b.params,b.errors):a,XMa(a,b.errors)):{duration:a.duration,delay:a.delay,easing:a.easing}};
g.visitAnimate=function(a,b){var c=b.currentAnimateTimings=this._visitTiming(a.timings,b),d=b.currentTimeline;c.delay&&(gJc(b.currentTimeline,b.currentTimeline.duration+c.delay),dJc(d));var e=a.style;e.type==5?this.visitKeyframes(e,b):(gJc(b.currentTimeline,b.currentTimeline.duration+c.duration),this.visitStyle(e,b),jJ(d));b.currentAnimateTimings=null;b.previousNode=a};
g.visitStyle=function(a,b){var c=b.currentTimeline,d=b.currentAnimateTimings;!d&&c._currentKeyframe.size>0&&(c.duration+=1,c._loadKeyframe());d=d&&d.easing||a.easing;if(a.isEmptyStep){d&&c._previousKeyframe.set("easing",d);d=l(c._globalTimelineStyles);for(var e=d.next();!e.done;e=d.next()){var f=l(e.value);e=f.next().value;f=f.next().value;c._backFill.set(e,f||"*");c._currentKeyframe.set(e,"*")}c._currentEmptyStepKeyframe=c._currentKeyframe}else aJc(c,a.styles,d,b.errors,b.options);b.previousNode=
a};g.visitKeyframes=function(a,b){var c=b.currentAnimateTimings,d=b.currentTimeline.duration,e=c.duration,f=hJ(b).currentTimeline;f.easing=c.easing;a.styles.forEach(function(h){gJc(f,(h.offset||0)*e);aJc(f,h.styles,h.easing,b.errors,b.options);jJ(f)});fJc(b.currentTimeline,f);iJ(b,d+e);b.previousNode=a};
g.visitQuery=function(a,b){var c=this,d=b.currentTimeline.currentTime,e=a.options||{},f=e.delay?cq(e.delay):0;f&&(b.previousNode.type===6||d==0&&b.currentTimeline._currentKeyframe.size>0)&&(dJc(b.currentTimeline),b.previousNode=eJc);var h=d;d=hJc(b,a.selector,a.limit,a.includeSelf,e.optional?!0:!1,b.errors);b.currentQueryTotal=d.length;var k=null;d.forEach(function(q,v){b.currentQueryIndex=v;v=hJ(b,a.options,q);f&&v.delayNextStep(f);q===b.element&&(k=v.currentTimeline);fq(c,a.animation,v);jJ(v.currentTimeline);
h=Math.max(h,v.currentTimeline.currentTime)});b.currentQueryIndex=0;b.currentQueryTotal=0;iJ(b,h);k&&(fJc(b.currentTimeline,k),dJc(b.currentTimeline));b.previousNode=a};
g.visitStagger=function(a,b){var c=b.parentContext,d=b.currentTimeline,e=a.timings,f=Math.abs(e.duration),h=f*(b.currentQueryTotal-1);f*=b.currentQueryIndex;switch(e.duration<0?"reverse":e.easing){case "reverse":f=h-f;break;case "full":f=c.currentStaggerTime}e=b.currentTimeline;f&&e.delayNextStep(f);e=e.currentTime;fq(this,a.animation,b);b.previousNode=a;c.currentStaggerTime=d.currentTime-e+(d.startTime-c.currentTimeline.startTime)};
var eJc={},$Ic=function(a,b,c,d,e,f,h,k){this._driver=a;this.element=b;this.subInstructions=c;this._enterClassName=d;this._leaveClassName=e;this.errors=f;this.timelines=h;this.currentAnimateTimings=this.parentContext=null;this.previousNode=eJc;this.subContextCount=0;this.options={};this.currentStaggerTime=this.currentQueryTotal=this.currentQueryIndex=0;this.currentTimeline=k||new kJ(this._driver,b,0);h.push(this.currentTimeline)},cJc=function(a,b,c){if(b){var d=a.options;b.duration!=null&&(d.duration=
cq(b.duration));b.delay!=null&&(d.delay=cq(b.delay));var e=b.params;if(e){var f=d.params;f||(f=a.options.params={});Object.keys(e).forEach(function(h){c&&f.hasOwnProperty(h)||(f[h]=dNa(e[h],f,a.errors))})}}};$Ic.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 hJ=function(a,b,c){b=b===void 0?null:b;c=c||a.element;c=new $Ic(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();cJc(c,b);c.currentQueryIndex=a.currentQueryIndex;c.currentQueryTotal=a.currentQueryTotal;c.parentContext=a;a.subContextCount++;return c},iJ=function(a,b){a.previousNode=eJc;a.currentTimeline=a.currentTimeline.fork(a.element,
b);a.timelines.push(a.currentTimeline)};$Ic.prototype.delayNextStep=function(a){a>0&&this.currentTimeline.delayNextStep(a)};var hJc=function(a,b,c,d,e,f){var h=[];d&&h.push(a.element);b.length>0&&(b=b.replace(YIc,"."+a._enterClassName),b=b.replace(ZIc,"."+a._leaveClassName),a=a._driver.query(a.element,b,c!=1),c!==0&&(a=c<0?a.slice(a.length+c,a.length):a.slice(0,c)),h.push.apply(h,p(a)));e||h.length!=0||f.push(new Vd(3014,!1));return h};
nd.Object.defineProperties($Ic.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});
var kJ=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()};kJ.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this._currentKeyframe.size>0;default:return!0}};kJ.prototype.delayNextStep=function(a){var b=this._keyframes.size===1&&this._pendingStyles.size;this.duration||b?(gJc(this,this.currentTime+a),b&&dJc(this)):this.startTime+=a};
kJ.prototype.fork=function(a,b){jJ(this);return new kJ(this._driver,a,b||this.currentTime,this._elementTimelineStylesLookup)};kJ.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 gJc=function(a,b){jJ(a);a.duration=b;a._loadKeyframe()};
kJ.prototype._updateStyle=function(a,b){this._localTimelineStyles.set(a,b);this._globalTimelineStyles.set(a,b);this._styleSummary.set(a,{time:this.currentTime,value:b})};
var aJc=function(a,b,c,d,e){c&&a._previousKeyframe.set("easing",c);c=e&&e.params||{};b=DNa(b,a._globalTimelineStyles);b=l(b);for(e=b.next();!e.done;e=b.next()){var f=l(e.value);e=f.next().value;f=f.next().value;f=dNa(f,c,d);a._pendingStyles.set(e,f);if(!a._localTimelineStyles.has(e)){var h=void 0;a._backFill.set(e,(h=a._globalTimelineStyles.get(e))!=null?h:"*")}a._updateStyle(e,f)}},jJ=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)}))},dJc=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)}},fJc=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)})};
kJ.prototype.buildKeyframes=function(){var a=this;jJ(this);var b=new Set,c=new Set,d=this._keyframes.size===1&&this.duration===0,e=[];this._keyframes.forEach(function(v,A){v=new Map([].concat(p(a._backFill),p(v)));v.forEach(function(E,H){E==="!"?b.add(H):E==="*"&&c.add(H)});d||v.set("offset",A/a.duration);e.push(v)});var f=[].concat(p(b.values())),h=[].concat(p(c.values()));if(d){var k=e[0],q=new Map(k);k.set("offset",0);q.set("offset",1);e=[k,q]}return ANa(this.element,e,f,h,this.duration,this.startTime,
this.easing,!1)};nd.Object.defineProperties(kJ.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 bJc=function(a,b,c,d,e,f,h){h=h===void 0?!1:h;kJ.call(this,a,b,f.delay);this.keyframes=c;this.preStyleProps=d;this.postStyleProps=e;this._stretchStartingKeyframe=h;this.timings={duration:f.duration,delay:f.delay,easing:f.easing}};
Y(bJc,kJ);bJc.prototype.containsAnimation=function(){return this.keyframes.length>1};
bJc.prototype.buildKeyframes=function(){var a=this.keyframes,b=this.timings,c=b.delay,d=b.duration,e=b.easing;if(this._stretchStartingKeyframe&&c){b=[];e=d+c;var f=c/e,h=new Map(a[0]);h.set("offset",0);b.push(h);h=new Map(a[0]);h.set("offset",Math.round(f*100)/100);b.push(h);f=a.length-1;for(h=1;h<=f;h++){var k=new Map(a[h]),q=k.get("offset");k.set("offset",Math.round((c+q*d)/e*100)/100);b.push(k)}d=e;c=0;e="";a=b}return ANa(this.element,a,this.preStyleProps,this.postStyleProps,d,c,e,!0)};var iJc={},HNa=function(a,b,c){this._triggerName=a;this.ast=b;this._stateStyles=c};HNa.prototype.match=function(a,b,c,d){return FNa(this.ast.matchers,a,b,c,d)};HNa.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};
HNa.prototype.build=function(a,b,c,d,e,f,h,k,q,v){var A=[],E=this.ast.options&&this.ast.options.params||iJc;h=this.buildStyles(c,h&&h.params||iJc,A);var H=k&&k.params||iJc;k=this.buildStyles(d,H,A);var L=new Set,O=new Map,S=new Map,aa=d==="void",ka;E={params:GNa(H,E),delay:(ka=this.ast.options)==null?void 0:ka.delay};a=v?[]:CNa(a,b,this.ast.animation,e,f,h,k,E,q,A);var na=0;a.forEach(function(za){na=Math.max(za.duration+za.delay,na)});if(A.length)return ENa(b,this._triggerName,c,d,aa,h,k,[],[],O,
S,na,A);a.forEach(function(za){var Na=za.element,Pa=iq(O,Na,new Set);za.preStyleProps.forEach(function(ua){return Pa.add(ua)});var hb=iq(S,Na,new Set);za.postStyleProps.forEach(function(ua){return hb.add(ua)});Na!==b&&L.add(Na)});return ENa(b,this._triggerName,c,d,aa,h,k,a,[].concat(p(L.values())),O,S,na)};var jJc=function(a,b){this.styles=a;this.defaultParams=b};
jJc.prototype.buildStyles=function(a,b){var c=new Map,d=GNa(a,this.defaultParams);this.styles.styles.forEach(function(e){typeof e!=="string"&&e.forEach(function(f,h){f&&(f=dNa(f,d,b));var k=ZMa(h);f=iNa(k,f,b);c.set(h,f)})});return c};var kJc=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 jJc(e.style,e.options&&e.options.params||{}))});JNa(this.states,"true","1");JNa(this.states,"false","0");b.transitions.forEach(function(e){d.transitionFactories.push(new HNa(a,e,d.states))});this.fallbackTransition=INa(a,this.states)},lJc=function(a,b,c,d,e){return a.transitionFactories.find(function(f){return f.match(b,c,
d,e)})||null};var mJc=new gJ,nJc=function(a,b,c){this.bodyNode=a;this._driver=b;this._normalizer=c;this._animations=new Map;this._playersById=new Map;this.players=[]};g=nJc.prototype;g.register=function(a,b){var c=[];b=(new WIc(this._driver)).build(b,c,[]);if(c.length)throw new Vd(3503,!1);this._animations.set(a,b)};g._buildPlayer=function(a,b,c){var d=a.element;b=jNa(a.keyframes,b,c);return this._driver.animate(d,b,a.duration,a.delay,a.easing,[],!0)};
g.create=function(a,b,c){var d=this;c=c===void 0?{}:c;var e=[],f=this._animations.get(a),h=new Map;f?(b=CNa(this._driver,b,f,"ng-enter","ng-leave",new Map,new Map,c,mJc,e),b.forEach(function(k){var q=iq(h,k.element,new Map);k.postStyleProps.forEach(function(v){return q.set(v,null)})})):(e.push(new Vd(3300,!1)),b=[]);if(e.length)throw new Vd(3504,!1);h.forEach(function(k,q){k.forEach(function(v,A){k.set(A,fNa(q,A))})});e=b.map(function(k){var q=h.get(k.element);return d._buildPlayer(k,new Map,q)});
e=hq(e);this._playersById.set(a,e);e.onDestroy(function(){return d.destroy(a)});this.players.push(e);return e};g.destroy=function(a){var b=this._getPlayer(a);b.destroy();this._playersById.delete(a);a=this.players.indexOf(b);a>=0&&this.players.splice(a,1)};g._getPlayer=function(a){a=this._playersById.get(a);if(!a)throw new Vd(3301,!1);return a};g.listen=function(a,b,c,d){b=mNa(b,"","","");lNa(this._getPlayer(a),c,b,d);return function(){}};
g.command=function(a,b,c,d){if(c=="register")this.register(a,d[0]);else if(c=="create")this.create(a,b,d[0]||{});else switch(b=this._getPlayer(a),c){case "play":b.play();break;case "pause":b.pause();break;case "reset":b.reset();break;case "restart":b.restart();break;case "finish":b.finish();break;case "init":b.init();break;case "setPosition":b.setPosition(parseFloat(d[0]));break;case "destroy":this.destroy(a)}};var oJc=[],pJc={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},MNa={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},qJc=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={})},rJc=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])})}};nd.Object.defineProperties(qJc.prototype,{params:{configurable:!0,enumerable:!0,get:function(){return this.options.params}}});var sJc=new qJc("void"),lJ=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;kq(b,this._hostClassName)};g=lJ.prototype;
g.listen=function(a,b,c,d){var e=this;if(!this._triggers.has(b))throw new Vd(3302,!1);if(c==null||c.length==0)throw new Vd(3303,!1);if(c!="start"&&c!="done")throw new Vd(3400,!1);var f=iq(this._elementListeners,a,[]),h={name:b,phase:c,callback:d};f.push(h);var k=iq(this._engine.statesByElement,a,new Map);k.has(b)||(kq(a,"ng-trigger"),kq(a,"ng-trigger-"+b),k.set(b,sJc));return function(){tJc(e._engine,function(){var q=f.indexOf(h);q>=0&&f.splice(q,1);e._triggers.has(b)||k.delete(b)})}};
g.register=function(a,b){if(this._triggers.has(a))return!1;this._triggers.set(a,b);return!0};g._getTrigger=function(a){a=this._triggers.get(a);if(!a)throw new Vd(3401,!1);return a};
g.trigger=function(a,b,c,d){var e=this;d=d===void 0?!0:d;var f=this._getTrigger(b),h=new uJc(this.id,b,a),k=this._engine.statesByElement.get(a);k||(kq(a,"ng-trigger"),kq(a,"ng-trigger-"+b),this._engine.statesByElement.set(a,k=new Map));var q=k.get(b),v=new qJc(c,this.id);c&&c.hasOwnProperty("value")||!q||rJc(v,q.options);k.set(b,v);q||(q=sJc);if(v.value!=="void"&&q.value===v.value){if(!TNa(q.params,v.params)){d=[];var A=f.fallbackTransition.buildStyles(q.value,q.params,d),E=f.fallbackTransition.buildStyles(v.value,
v.params,d);d.length?this._engine.reportError(d):tJc(this._engine,function(){eq(a,A);dq(a,E)})}}else{c=iq(this._engine.playersByElement,a,[]);c.forEach(function(L){L.namespaceId==e.id&&L.triggerName==b&&L.queued&&L.destroy()});k=lJc(f,q.value,v.value,a,v.params);var H=!1;if(!k){if(!d)return;k=f.fallbackTransition;H=!0}this._engine.totalQueuedPlayers++;this._queue.push({element:a,triggerName:b,transition:k,fromState:q,toState:v,player:h,isFallbackTransition:H});H||(kq(a,"ng-animate-queued"),h.onStart(function(){lq(a,
"ng-animate-queued")}));h.onDone(function(){var L=e.players.indexOf(h);L>=0&&e.players.splice(L,1);if(L=e._engine.playersByElement.get(a)){var O=L.indexOf(h);O>=0&&L.splice(O,1)}});this.players.push(h);c.push(h);return h}};g.deregister=function(a){var b=this;this._triggers.delete(a);this._engine.statesByElement.forEach(function(c){return c.delete(a)});this._elementListeners.forEach(function(c,d){b._elementListeners.set(d,c.filter(function(e){return e.name!=a}))})};
var vJc=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))};
lJ.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=wJc(c._engine,e);f.size?f.forEach(function(h){return xJc(h,e,b,!1,!0)}):vJc(c,e)}});this._engine.afterFlushAnimationsDone(function(){return d.forEach(function(e){return vJc(c,e)})})};
var xJc=function(a,b,c,d,e){var f=a._engine.statesByElement.get(b),h=new Map;if(f){var k=[];f.forEach(function(q,v){h.set(v,q.value);a._triggers.has(v)&&(q=a.trigger(b,v,"void",e))&&k.push(q)});if(k.length){yJc(a._engine,a.id,b,!0,c,h);if(d)hq(k).onDone(function(){return PNa(a._engine,b)});return!0}}return!1},zJc=function(a,b){var c=a._elementListeners.get(b),d=a._engine.statesByElement.get(b);if(c&&d){var e=new Set;c.forEach(function(f){f=f.name;if(!e.has(f)){e.add(f);var h=a._triggers.get(f).fallbackTransition,
k=d.get(f)||sJc,q=new qJc("void"),v=new uJc(a.id,f,b);a._engine.totalQueuedPlayers++;a._queue.push({element:b,triggerName:f,transition:h,fromState:k,toState:q,player:v,isFallbackTransition:!0})}})}};
lJ.prototype.removeNode=function(a,b){var c=this,d=this._engine;a.childElementCount&&this._signalRemovalForInnerTriggers(a,b);if(!xJc(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}}zJc(this,a);e?yJc(d,this.id,a,!1,b):(e=a.__ng_removed,e&&e!==pJc||(tJc(d,function(){return vJc(c,a)}),AJc(d,a),d._onRemovalComplete(a,b)))}};
lJ.prototype.insertNode=function(a){kq(a,this._hostClassName)};
var BJc=function(a,b){var c=[];a._queue.forEach(function(d){var e=d.player;if(!e.destroyed){var f=d.element,h=a._elementListeners.get(f);h&&h.forEach(function(k){if(k.name==d.triggerName){var q=mNa(f,d.triggerName,d.fromState.value,d.toState.value);q._data=b;lNa(d.player,k.phase,q,k.callback)}});e.markedForDestroy?tJc(a._engine,function(){e.destroy()}):c.push(d)}});a._queue=[];return c.sort(function(d,e){var f=d.transition.ast.depCount,h=e.transition.ast.depCount;return f==0||h==0?f-h:qNa(d.element,
e.element)?1:-1})};lJ.prototype.destroy=function(a){this.players.forEach(function(b){return b.destroy()});this._signalRemovalForInnerTriggers(this.hostElement,a)};
var mJ=function(a,b,c){this.bodyNode=a;this.driver=b;this._normalizer=c;this.players=[];this.newHostElements=new Map;this.playersByElement=new Map;this.playersByQueriedElement=new Map;this.statesByElement=new Map;this.disabledNodes=new Set;this.totalQueuedPlayers=this.totalAnimations=0;this._namespaceLookup={};this._namespaceList=[];this._flushFns=[];this._whenQuietFns=[];this.namespacesByHostElement=new Map;this.collectedEnterElements=[];this.collectedLeaveElements=[];this.onRemovalComplete=function(){}};
g=mJ.prototype;g._onRemovalComplete=function(a,b){this.onRemovalComplete(a,b)};g._balanceNamespaceList=function(a,b){var c=this._namespaceList,d=this.namespacesByHostElement;if(c.length-1>=0){for(var e=!1,f=this.driver.getParentElement(b);f;){var h=d.get(f);if(h){e=c.indexOf(h);c.splice(e+1,0,a);e=!0;break}f=this.driver.getParentElement(f)}e||c.unshift(a)}else c.push(a);d.set(b,a);return a};
g.register=function(a,b){var c=this._namespaceLookup[a];c||(c=new lJ(a,b,this),this.bodyNode&&qNa(this.bodyNode,b)?this._balanceNamespaceList(c,b):(this.newHostElements.set(b,c),this.collectedEnterElements.push(b)),c=this._namespaceLookup[a]=c);return c};g.registerTrigger=function(a,b,c){(a=this._namespaceLookup[a])&&a.register(b,c)&&this.totalAnimations++};
g.destroy=function(a,b){var c=this;a&&(tJc(this,function(){}),this.afterFlushAnimationsDone(function(){var d=c._fetchNamespace(a);c.namespacesByHostElement.delete(d.hostElement);var e=c._namespaceList.indexOf(d);e>=0&&c._namespaceList.splice(e,1);d.destroy(b);delete c._namespaceLookup[a]}))};g._fetchNamespace=function(a){return this._namespaceLookup[a]};
var wJc=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};mJ.prototype.trigger=function(a,b,c,d){return KNa(b)&&(a=this._fetchNamespace(a))?(a.trigger(b,c,d),!0):!1};
mJ.prototype.insertNode=function(a,b,c,d){if(KNa(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 CJc=function(a,b,c){c?a.disabledNodes.has(b)||(a.disabledNodes.add(b),kq(b,"ng-animate-disabled")):a.disabledNodes.has(b)&&(a.disabledNodes.delete(b),lq(b,"ng-animate-disabled"))};
mJ.prototype.removeNode=function(a,b,c){if(KNa(b)){var d=a?this._fetchNamespace(a):null;d?d.removeNode(b,c):yJc(this,a,b,!1,c);(d=this.namespacesByHostElement.get(b))&&d.id!==a&&d.removeNode(b,c)}else this._onRemovalComplete(b,c)};var yJc=function(a,b,c,d,e,f){a.collectedLeaveElements.push(c);c.__ng_removed={namespaceId:b,setForRemoval:e,hasAnimation:d,removedBeforeQueried:!1,previousTriggersValues:f}};mJ.prototype.listen=function(a,b,c,d,e){return KNa(b)?this._fetchNamespace(a).listen(b,c,d,e):function(){}};
mJ.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 AJc=function(a,b){var c=a.driver.query(b,".ng-trigger",!0);c.forEach(function(d){return DJc(a,d)});a.playersByQueriedElement.size!=0&&(c=a.driver.query(b,".ng-animating",!0),c.forEach(function(d){return EJc(a,d)}))},DJc=function(a,b){(a=a.playersByElement.get(b))&&a.forEach(function(c){c.queued?c.markedForDestroy=!0:c.destroy()})},EJc=function(a,b){(a=a.playersByQueriedElement.get(b))&&a.forEach(function(c){return c.finish()})},PNa=function(a,b){var c=b.__ng_removed;if(c&&c.setForRemoval){b.__ng_removed=
pJc;if(c.namespaceId){AJc(a,b);var d=a._fetchNamespace(c.namespaceId);d&&vJc(d,b)}a._onRemovalComplete(b,c.setForRemoval)}var e;((e=b.classList)==null?0:e.contains("ng-animate-disabled"))&&CJc(a,b,!1);a.driver.query(b,".ng-animate-disabled",!0).forEach(function(f){CJc(a,f,!1)})};
mJ.prototype.flush=function(a){var b=this;a=a===void 0?-1:a;var c=[];this.newHostElements.size&&(this.newHostElements.forEach(function(f,h){return b._balanceNamespaceList(f,h)}),this.newHostElements.clear());if(this.totalAnimations&&this.collectedEnterElements.length)for(var d=0;d<this.collectedEnterElements.length;d++)kq(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++)PNa(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)hq(c).onDone(function(){e.forEach(function(f){return f()})});else e.forEach(function(f){return f()})}};
mJ.prototype.reportError=function(){throw new Vd(3402,!1);};
mJ.prototype._flushAnimations=function(a,b){var c=this,d=new gJ,e=[],f=new Map,h=[],k=new Map,q=new Map,v=new Map,A=new Set;this.disabledNodes.forEach(function(bb){A.add(bb);bb=c.driver.query(bb,".ng-animate-queued",!0);for(var ec=0;ec<bb.length;ec++)A.add(bb[ec])});var E=this.bodyNode,H=Array.from(this.statesByElement.keys()),L=ONa(H,this.collectedEnterElements),O=new Map,S=0;L.forEach(function(bb,ec){var wc="ng-enter"+S++;O.set(ec,wc);bb.forEach(function(pd){return kq(pd,wc)})});for(var aa=[],ka=
new Set,na=new Set,za=0;za<this.collectedLeaveElements.length;za++){var Na=this.collectedLeaveElements[za],Pa=Na.__ng_removed;Pa&&Pa.setForRemoval&&(aa.push(Na),ka.add(Na),Pa.hasAnimation?this.driver.query(Na,".ng-star-inserted",!0).forEach(function(bb){return ka.add(bb)}):na.add(Na))}var hb=new Map,ua=ONa(H,Array.from(ka));ua.forEach(function(bb,ec){var wc="ng-leave"+S++;hb.set(ec,wc);bb.forEach(function(pd){return kq(pd,wc)})});a.push(function(){L.forEach(function(bb,ec){var wc=O.get(ec);bb.forEach(function(pd){return lq(pd,
wc)})});ua.forEach(function(bb,ec){var wc=hb.get(ec);bb.forEach(function(pd){return lq(pd,wc)})});aa.forEach(function(bb){PNa(c,bb)})});var Ha=[],Ia=[];for(a=this._namespaceList.length-1;a>=0;a--)BJc(this._namespaceList[a],b).forEach(function(bb){var ec=bb.player,wc=bb.element;Ha.push(ec);if(c.collectedEnterElements.length){var pd=wc.__ng_removed;if(pd&&pd.setForMove){if(pd.previousTriggersValues&&pd.previousTriggersValues.has(bb.triggerName)){pd=pd.previousTriggersValues.get(bb.triggerName);var Lb=
c.statesByElement.get(bb.element);if(Lb&&Lb.has(bb.triggerName)){var Dc=Lb.get(bb.triggerName);Dc.value=pd;Lb.set(bb.triggerName,Dc)}}ec.destroy();return}}pd=!E||!qNa(E,wc);Lb=hb.get(wc);Dc=O.get(wc);var Hc=c._buildInstruction(bb,d,Dc,Lb,pd);if(Hc.errors&&Hc.errors.length)Ia.push(Hc);else if(pd)ec.onStart(function(){return eq(wc,Hc.fromStyles)}),ec.onDestroy(function(){return dq(wc,Hc.toStyles)}),e.push(ec);else if(bb.isFallbackTransition)ec.onStart(function(){return eq(wc,Hc.fromStyles)}),ec.onDestroy(function(){return dq(wc,
Hc.toStyles)}),e.push(ec);else{var Od=[];Hc.timelines.forEach(function(Hd){Hd.stretchStartingKeyframe=!0;c.disabledNodes.has(Hd.element)||Od.push(Hd)});Hc.timelines=Od;d.append(wc,Hc.timelines);h.push({instruction:Hc,player:ec,element:wc});Hc.queriedElements.forEach(function(Hd){return iq(k,Hd,[]).push(ec)});Hc.preStyleProps.forEach(function(Hd,Ff){if(Hd.size){var Bh=q.get(Ff);Bh||q.set(Ff,Bh=new Set);Hd.forEach(function(Vg,Sh){return Bh.add(Sh)})}});Hc.postStyleProps.forEach(function(Hd,Ff){var Bh=
v.get(Ff);Bh||v.set(Ff,Bh=new Set);Hd.forEach(function(Vg,Sh){return Bh.add(Sh)})})}});if(Ia.length){var tb=[];Ia.forEach(function(){tb.push(new Vd(3505,!1))});Ha.forEach(function(bb){return bb.destroy()});this.reportError(tb)}var rb=new Map,dc=new Map;h.forEach(function(bb){var ec=bb.element;d.has(ec)&&(dc.set(ec,ec),c._beforeAnimationBuild(bb.player.namespaceId,bb.instruction,rb))});e.forEach(function(bb){var ec=bb.element;c._getPreviousPlayers(ec,!1,bb.namespaceId,bb.triggerName,null).forEach(function(wc){iq(rb,
ec,[]).push(wc);wc.destroy()})});var bc=aa.filter(function(bb){return UNa(bb,q,v)}),Ac=new Map;NNa(Ac,na,v).forEach(function(bb){UNa(bb,q,v)&&bc.push(bb)});var ic=new Map;L.forEach(function(bb){NNa(ic,new Set(bb),q)});bc.forEach(function(bb){var ec=Ac.get(bb),wc=ic.get(bb),pd,Lb;Ac.set(bb,new Map([].concat(p((pd=ec==null?void 0:ec.entries())!=null?pd:[]),p((Lb=wc==null?void 0:wc.entries())!=null?Lb:[]))))});var ye=[],Bb=[],Sb={};h.forEach(function(bb){var ec=bb.element,wc=bb.player,pd=bb.instruction;
if(d.has(ec))if(A.has(ec))wc.onDestroy(function(){return dq(ec,pd.toStyles)}),wc.disabled=!0,wc.totalTime=pd.totalTime,e.push(wc);else{var Lb=Sb;if(dc.size>1){bb=ec;for(var Dc=[];bb=bb.parentNode;){var Hc=dc.get(bb);if(Hc){Lb=Hc;break}Dc.push(bb)}Dc.forEach(function(Od){return dc.set(Od,Lb)})}bb=c._buildAnimation(wc.namespaceId,pd,rb,f,ic,Ac);FJc(wc,bb);Lb===Sb?ye.push(wc):((bb=c.playersByElement.get(Lb))&&bb.length&&(wc.parentPlayer=hq(bb)),e.push(wc))}else eq(ec,pd.fromStyles),wc.onDestroy(function(){return dq(ec,
pd.toStyles)}),Bb.push(wc),A.has(ec)&&e.push(wc)});Bb.forEach(function(bb){var ec=f.get(bb.element);ec&&ec.length&&(ec=hq(ec),FJc(bb,ec))});e.forEach(function(bb){bb.parentPlayer?GJc(bb,bb.parentPlayer):bb.destroy()});for(b=0;b<aa.length;b++)if(na=aa[b],a=na.__ng_removed,lq(na,"ng-leave"),!a||!a.hasAnimation){a=[];if(k.size)for((H=k.get(na))&&H.length&&a.push.apply(a,p(H)),H=this.driver.query(na,".ng-animating",!0),za=0;za<H.length;za++)(Na=k.get(H[za]))&&Na.length&&a.push.apply(a,p(Na));a=a.filter(function(bb){return!bb.destroyed});
a.length?QNa(this,na,a):PNa(this,na)}aa.length=0;ye.forEach(function(bb){c.players.push(bb);bb.onDone(function(){bb.destroy();var ec=c.players.indexOf(bb);c.players.splice(ec,1)});bb.play()});return ye};var tJc=function(a,b){a._flushFns.push(b)};g=mJ.prototype;g.afterFlushAnimationsDone=function(a){this._whenQuietFns.push(a)};
g._getPreviousPlayers=function(a,b,c,d,e){var f=[];if(b)(e=this.playersByQueriedElement.get(a))&&(f=e);else if(a=this.playersByElement.get(a)){var h=!e||e=="void";a.forEach(function(k){k.queued||(h||k.triggerName==d)&&f.push(k)})}if(c||d)f=f.filter(function(k){return c&&c!=k.namespaceId||d&&d!=k.triggerName?!1:!0});return f};
g._beforeAnimationBuild=function(a,b,c){var d=b.triggerName,e=b.element;a=b.isRemovalTransition?void 0:a;d=b.isRemovalTransition?void 0:d;for(var f=l(b.timelines),h=f.next(),k={};!h.done;k={players$jscomp$10:void 0},h=f.next()){h=h.value.element;var q=h!==e;k.players$jscomp$10=iq(c,h,[]);this._getPreviousPlayers(h,q,a,d,b.toState).forEach(function(v){return function(A){var E=A._player;E.beforeDestroy&&E.beforeDestroy();A.destroy();v.players$jscomp$10.push(A)}}(k))}eq(e,b.fromStyles)};
g._buildAnimation=function(a,b,c,d,e,f){var h=this,k=b.triggerName,q=b.element,v=[],A=new Set,E=new Set,H=b.timelines.map(function(O){var S=O.element;A.add(S);var aa=S.__ng_removed;if(aa&&aa.removedBeforeQueried)return new gq(O.duration,O.delay);aa=S!==q;var ka=SNa((c.get(S)||oJc).map(function(Na){return Na._player})).filter(function(Na){return Na.element?Na.element===S:!1}),na=e.get(S),za=f.get(S);na=jNa(O.keyframes,na,za);ka=h._buildPlayer(O,na,ka);O.subTimeline&&d&&E.add(S);aa&&(O=new uJc(a,k,
S),FJc(O,ka),v.push(O));return ka});v.forEach(function(O){iq(h.playersByQueriedElement,O.element,[]).push(O);O.onDone(function(){var S=h.playersByQueriedElement,aa=O.element,ka=S.get(aa);if(ka){if(ka.length){var na=ka.indexOf(O);ka.splice(na,1)}ka.length==0&&S.delete(aa)}return ka})});A.forEach(function(O){return kq(O,"ng-animating")});var L=hq(H);L.onDestroy(function(){A.forEach(function(O){return lq(O,"ng-animating")});dq(q,b.toStyles)});E.forEach(function(O){iq(d,O,[]).push(L)});return L};
g._buildPlayer=function(a,b,c){return b.length>0?this.driver.animate(a.element,b,a.duration,a.delay,a.easing,c):new gq(a.duration,a.delay)};
var uJc=function(a,b,c){this.namespaceId=a;this.triggerName=b;this.element=c;this._player=new gq;this._containsRealPlayer=!1;this._queuedCallbacks=new Map;this.destroyed=!1;this.parentPlayer=null;this.disabled=this.markedForDestroy=!1;this.queued=!0;this.totalTime=0},FJc=function(a,b){a._containsRealPlayer||(a._player=b,a._queuedCallbacks.forEach(function(c,d){c.forEach(function(e){return lNa(b,d,void 0,e)})}),a._queuedCallbacks.clear(),a._containsRealPlayer=!0,a.totalTime=b.totalTime,a.queued=!1)},
GJc=function(a,b){var c=a._player;if(c.triggerCallback)b.onStart(function(){return c.triggerCallback("start")});b.onDone(function(){return a.finish()});b.onDestroy(function(){return a.destroy()})};g=uJc.prototype;g._queueEvent=function(a,b){iq(this._queuedCallbacks,a,[]).push(b)};g.onDone=function(a){this.queued&&this._queueEvent("done",a);this._player.onDone(a)};g.onStart=function(a){this.queued&&this._queueEvent("start",a);this._player.onStart(a)};
g.onDestroy=function(a){this.queued&&this._queueEvent("destroy",a);this._player.onDestroy(a)};g.init=function(){this._player.init()};g.hasStarted=function(){return this.queued?!1:this._player.hasStarted()};g.play=function(){!this.queued&&this._player.play()};g.pause=function(){!this.queued&&this._player.pause()};g.restart=function(){!this.queued&&this._player.restart()};g.finish=function(){this._player.finish()};g.destroy=function(){this.destroyed=!0;this._player.destroy()};
g.reset=function(){!this.queued&&this._player.reset()};g.setPosition=function(a){this.queued||this._player.setPosition(a)};g.getPosition=function(){return this.queued?0:this._player.getPosition()};g.triggerCallback=function(a){var b=this._player;b.triggerCallback&&b.triggerCallback(a)};var nJ=function(a,b,c){var d=this;this._driver=b;this._normalizer=c;this._triggerCache={};this.onRemovalComplete=function(){};this._transitionEngine=new mJ(a.body,b,c);this._timelineEngine=new nJc(a.body,b,c);this._transitionEngine.onRemovalComplete=function(e,f){return d.onRemovalComplete(e,f)}};g=nJ.prototype;
g.registerTrigger=function(a,b,c,d,e){a=a+"-"+d;c=this._triggerCache[a];if(!c){c=[];e=(new WIc(this._driver)).build(e,c,[]);if(c.length)throw new Vd(3404,!1);c=new kJc(d,e,this._normalizer);this._triggerCache[a]=c}this._transitionEngine.registerTrigger(b,d,c)};g.register=function(a,b){this._transitionEngine.register(a,b)};g.destroy=function(a,b){this._transitionEngine.destroy(a,b)};g.disableAnimations=function(a,b){CJc(this._transitionEngine,a,b)};
g.process=function(a,b,c,d){c.charAt(0)=="@"?(c=l(nNa(c)),a=c.next().value,c=c.next().value,this._timelineEngine.command(a,b,c,d)):this._transitionEngine.trigger(a,b,c,d)};g.listen=function(a,b,c,d,e){return c.charAt(0)=="@"?(c=l(nNa(c)),a=c.next().value,c=c.next().value,this._timelineEngine.listen(a,b,c,e)):this._transitionEngine.listen(a,b,c,d,e)};g.flush=function(a){this._transitionEngine.flush(a===void 0?-1:a)};g.afterFlushAnimationsDone=function(a){this._transitionEngine.afterFlushAnimationsDone(a)};
nd.Object.defineProperties(nJ.prototype,{players:{configurable:!0,enumerable:!0,get:function(){return[].concat(p(this._transitionEngine.players),p(this._timelineEngine.players))}}});var WNa=function(a,b,c){this._element=a;this._startStyles=b;this._endStyles=c;this._state=0;var d=HJc.get(a);d||HJc.set(a,d=new Map);this._initialStyles=d};WNa.prototype.start=function(){this._state<1&&(this._startStyles&&dq(this._element,this._startStyles,this._initialStyles),this._state=1)};WNa.prototype.finish=function(){this.start();this._state<2&&(dq(this._element,this._initialStyles),this._endStyles&&(dq(this._element,this._endStyles),this._endStyles=null),this._state=1)};
WNa.prototype.destroy=function(){this.finish();this._state<3&&(HJc.delete(this._element),this._startStyles&&(eq(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(eq(this._element,this._endStyles),this._endStyles=null),dq(this._element,this._initialStyles),this._state=3)};var HJc=new WeakMap;var IJc=function(a,b,c,d){this.element=a;this.keyframes=b;this.options=c;this._specialStyles=d;this._onDoneFns=[];this._onStartFns=[];this._onDestroyFns=[];this._destroyed=this._started=this._finished=this._initialized=!1;this._originalOnDoneFns=[];this._originalOnStartFns=[];this.time=0;this.parentPlayer=null;this.currentSnapshot=new Map;this._duration=c.duration;this._delay=c.delay||0;this.time=this._duration+this._delay};g=IJc.prototype;
g._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};g.init=function(){this._buildPlayer();this._preparePlayerBeforeStart()};
g._buildPlayer=function(){var a=this;if(!this._initialized){this._initialized=!0;var b=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,b,this.options);this._finalKeyframe=b.length?b[b.length-1]:new Map;var c=function(){return a._onFinish()};this.domPlayer.addEventListener("finish",c);this.onDestroy(function(){a.domPlayer.removeEventListener("finish",c)})}};g._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()};
g._convertKeyframesToObject=function(a){var b=[];a.forEach(function(c){b.push(Object.fromEntries(c))});return b};g._triggerWebAnimation=function(a,b,c){return a.animate(this._convertKeyframesToObject(b),c)};g.onStart=function(a){this._originalOnStartFns.push(a);this._onStartFns.push(a)};g.onDone=function(a){this._originalOnDoneFns.push(a);this._onDoneFns.push(a)};g.onDestroy=function(a){this._onDestroyFns.push(a)};
g.play=function(){this._buildPlayer();this.hasStarted()||(this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start());this.domPlayer.play()};g.pause=function(){this.init();this.domPlayer.pause()};g.finish=function(){this.init();this._specialStyles&&this._specialStyles.finish();this._onFinish();this.domPlayer.finish()};
g.reset=function(){this._resetDomPlayerState();this._started=this._finished=this._destroyed=!1;this._onStartFns=this._originalOnStartFns;this._onDoneFns=this._originalOnDoneFns};g._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()};g.restart=function(){this.reset();this.play()};g.hasStarted=function(){return this._started};
g.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(a){return a()}),this._onDestroyFns=[])};g.setPosition=function(a){this.domPlayer===void 0&&this.init();this.domPlayer.currentTime=a*this.time};g.getPosition=function(){var a;return+((a=this.domPlayer.currentTime)!=null?a:0)/this.time};
g.beforeDestroy=function(){var a=this,b=new Map;this.hasStarted()&&this._finalKeyframe.forEach(function(c,d){d!=="offset"&&b.set(d,a._finished?c:fNa(a.element,d))});this.currentSnapshot=b};g.triggerCallback=function(a){a=a==="start"?this._onStartFns:this._onDoneFns;a.forEach(function(b){return b()});a.length=0};nd.Object.defineProperties(IJc.prototype,{totalTime:{configurable:!0,enumerable:!0,get:function(){return this._delay+this._duration}}});var JJc=function(){};JJc.prototype.getParentElement=function(a){return pNa(a)};JJc.prototype.query=function(a,b,c){a=c?Array.from(a.querySelectorAll(b)):(a=a.querySelector(b))?[a]:[];return a};
JJc.prototype.animate=function(a,b,c,d,e,f){f=f===void 0?[]:f;var h={duration:c,delay:d,fill:d==0?"both":"forwards"};e&&(h.easing=e);var k=new Map;e=f.filter(function(v){return v instanceof IJc});c!==0&&d!==0||e.forEach(function(v){v.currentSnapshot.forEach(function(A,E){return k.set(E,A)})});var q=YMa(b).map(function(v){return new Map(v)});q=gNa(a,q,k);b=XNa(a,q);return new IJc(a,q,h,b)};var KJc=function(a,b,c,d){this.namespaceId=a;this.delegate=b;this.engine=c;this._onDestroy=d};g=KJc.prototype;g.destroyNode=function(a){var b,c;(c=(b=this.delegate).destroyNode)==null||c.call(b,a)};g.destroy=function(){var a=this;this.engine.destroy(this.namespaceId,this.delegate);this.engine.afterFlushAnimationsDone(function(){queueMicrotask(function(){a.delegate.destroy()})});var b;(b=this._onDestroy)==null||b.call(this)};g.createElement=function(a,b){return this.delegate.createElement(a,b)};
g.createComment=function(a){return this.delegate.createComment(a)};g.createText=function(a){return this.delegate.createText(a)};g.appendChild=function(a,b){this.delegate.appendChild(a,b);this.engine._transitionEngine.insertNode(this.namespaceId,b,a,!1)};g.insertBefore=function(a,b,c,d){d=d===void 0?!0:d;this.delegate.insertBefore(a,b,c);this.engine._transitionEngine.insertNode(this.namespaceId,b,a,d)};
g.removeChild=function(a,b){this.parentNode(b)&&this.engine._transitionEngine.removeNode(this.namespaceId,b,this.delegate)};g.selectRootElement=function(a,b){return this.delegate.selectRootElement(a,b)};g.parentNode=function(a){return this.delegate.parentNode(a)};g.nextSibling=function(a){return this.delegate.nextSibling(a)};g.setAttribute=function(a,b,c,d){this.delegate.setAttribute(a,b,c,d)};g.removeAttribute=function(a,b,c){this.delegate.removeAttribute(a,b,c)};
g.addClass=function(a,b){this.delegate.addClass(a,b)};g.removeClass=function(a,b){this.delegate.removeClass(a,b)};g.setStyle=function(a,b,c,d){this.delegate.setStyle(a,b,c,d)};g.removeStyle=function(a,b,c){this.delegate.removeStyle(a,b,c)};g.setProperty=function(a,b,c){b.charAt(0)=="@"&&b=="@.disabled"?this.disableAnimations(a,!!c):this.delegate.setProperty(a,b,c)};g.setValue=function(a,b){this.delegate.setValue(a,b)};g.listen=function(a,b,c,d){return this.delegate.listen(a,b,c,d)};
g.disableAnimations=function(a,b){this.engine.disableAnimations(a,b)};nd.Object.defineProperties(KJc.prototype,{data:{configurable:!0,enumerable:!0,get:function(){return this.delegate.data}}});var LJc=function(a,b,c,d,e){KJc.call(this,b,c,d,e);this.factory=a;this.namespaceId=b};Y(LJc,KJc);
LJc.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)};
LJc.prototype.listen=function(a,b,c,d){var e=this;return b.charAt(0)=="@"?(a=YNa(a),b=b.slice(1),d="",b.charAt(0)!="@"&&(d=l(ZNa(b)),b=d.next().value,d=d.next().value),this.engine.listen(this.namespaceId,a,b,d,function(f){MJc(e.factory,f._data||-1,c,f)})):this.delegate.listen(a,b,c,d)};var NJc=function(a,b,c){this.delegate=a;this.engine=b;this._zone=c;this._currentId=0;this._microtaskId=1;this._animationCallbacksBuffer=[];this._rendererCache=new Map;this._cdRecurDepth=0;b.onRemovalComplete=function(d,e){e==null||e.removeChild(null,d)}};
NJc.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 KJc("",d,this.engine,function(){return f.delete(d)}),f.set(d,b));return b}var h=b.id,k=b.id+"-"+this._currentId;this._currentId++;this.engine.register(k,a);var q=function(v){Array.isArray(v)?v.forEach(q):c.engine.registerTrigger(h,k,a,v.name,v)};b.data.animation.forEach(q);return new LJc(this,k,d,this.engine)};
NJc.prototype.begin=function(){this._cdRecurDepth++;this.delegate.begin&&this.delegate.begin()};NJc.prototype._scheduleCountTask=function(){var a=this;queueMicrotask(function(){a._microtaskId++})};
var MJc=function(a,b,c,d){if(b>=0&&b<a._microtaskId)a._zone.run(function(){return c(d)});else{var e=a._animationCallbacksBuffer;e.length==0&&queueMicrotask(function(){a._zone.run(function(){e.forEach(function(f){var h=l(f);f=h.next().value;h=h.next().value;f(h)});a._animationCallbacksBuffer=[]})});e.push([c,d])}};
NJc.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 oJ=function(a,b,c){nJ.call(this,a,b,c)};Y(oJ,nJ);oJ.prototype.ngOnDestroy=function(){this.flush()};oJ.\u0275fac=function(a){return new (a||oJ)(be(ui),be(VIc),be(RIc))};oJ.\u0275prov=Cd({token:oJ,factory:oJ.\u0275fac});var OJc=[{provide:RIc,useFactory:function(){return new UIc}},{provide:nJ,useClass:oJ},{provide:qf,useFactory:function(a,b,c){return new NJc(a,b,c)},deps:[UB,nJ,Ph]}];p(OJc);var PJc=[{provide:VIc,useFactory:function(){return new JJc}},{provide:Oi,useFactory:function(){return"BrowserAnimations"}}].concat(p(OJc));var pJ=function(){};pJ.\u0275fac=function(a){return new (a||pJ)};pJ.\u0275mod=uf({type:pJ});pJ.\u0275inj=Dd({providers:PJc,imports:[jC]});bOa(function(){});li({passive:!0,capture:!0});li({passive:!0,capture:!0});var QJc="mat-button mat-flat-button mat-icon-button mat-raised-button mat-stroked-button mat-mini-fab mat-fab".split(" "),RJc=$Na(bOa(aOa(function(a){this._elementRef=a}))),qJ=function(a,b,c){var d=RJc.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(QJc),f=e.next();!f.done;f=e.next())f=f.value,d._hasHostAttributes(f)&&d._getHostElement().classList.add(f);a.nativeElement.classList.add("mat-button-base");
d.isRoundButton&&(d.color="accent");return d};Y(qJ,RJc);g=qJ.prototype;g.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0)};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)};g.focus=function(a,b){a?kw(this._focusMonitor,this._getHostElement(),a,b):this._getHostElement().focus(b)};g._getHostElement=function(){return this._elementRef.nativeElement};g._isRippleDisabled=function(){return this.disableRipple||this.disabled};
g._hasHostAttributes=function(){var a=this;return ge.apply(0,arguments).some(function(b){return a._getHostElement().hasAttribute(b)})};qJ.\u0275fac=function(a){return new (a||qJ)(of(Te),of(jw),of(Oi,8))};
qJ.\u0275cmp=y({type:qJ,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&&hh(zx,5);if(a&2){var c;lh(c=mh())&&(b.ripple=c.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:6,hostBindings:function(a,b){a&2&&(Lg("disabled",b.disabled||null)("mat-id-collision",null),uh("_mat-animation-noopable",b._animationMode===
"NoopAnimations")("mat-button-disabled",b.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],standalone:!1,features:[Bg],attrs:["mat-button",""],ngContentSelectors:["*"],decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(a,b){a&1&&(ch(),J(0,"span",0),dh(1),K(),M(2,"span",1)(3,"span",2));a&2&&(x(2),
uh("mat-button-ripple-round",b.isRoundButton||b.isIconButton),I("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",b.isIconButton)("matRippleTrigger",b._getHostElement()))},dependencies:[zx],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}@media(forced-colors: active){.mat-button,.mat-flat-button,.mat-raised-button,.mat-icon-button,.mat-fab,.mat-mini-fab{outline:solid 1px}}.mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}\n"],
encapsulation:2,changeDetection:0});var rJ=function(){this.onAction=new nq;this.disabled=!1};rJ.prototype.handleClick=function(){this.onAction.emit()};rJ.\u0275fac=function(a){return new (a||rJ)};
rJ.\u0275cmp=y({type:rJ,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&&(ch(),J(0,"button",0),N("click",function(){return b.handleClick()}),dh(1),K());a&2&&I("disabled",b.disabled)},dependencies:[qJ],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 sJ=function(){};sJ.\u0275fac=function(a){return new (a||sJ)};sJ.\u0275mod=uf({type:sJ});sJ.\u0275inj=Dd({imports:[Cx,px,px]});var tJ=function(){};tJ.\u0275fac=function(a){return new (a||tJ)};tJ.\u0275mod=uf({type:tJ});tJ.\u0275inj=Dd({imports:[Bw,CI,aw,sJ,ox]});var uJ=function(){};uJ.\u0275fac=function(a){return new (a||uJ)};uJ.\u0275mod=uf({type:uJ});uJ.\u0275inj=Dd({imports:[HC,dJ,tJ]});var SJc=["spanElement"],vJ=function(){this.modelValue="";this.maxWidth=0;this.disabled=!1;this.displayString=""};vJ.prototype.ngOnChanges=function(a){if(a.modelValue||a.disabled)this.displayString=this.modelValue||""};vJ.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)+"...")};
vJ.prototype.getTooltip=function(){return this.displayString!==this.modelValue?this.modelValue:""};vJ.\u0275fac=function(a){return new (a||vJ)};
vJ.\u0275cmp=y({type:vJ,selectors:[["b-truncated-span"]],viewQuery:function(a,b){a&1&&hh(SJc,5);if(a&2){var c;lh(c=mh())&&(b.spanElement=c.first)}},inputs:{modelValue:"modelValue",maxWidth:"maxWidth",disabled:"disabled"},standalone:!1,features:[ov],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,gf)},dependencies:[zG,xG],encapsulation:2});var wJ=function(){};wJ.\u0275fac=function(a){return new (a||wJ)};wJ.\u0275mod=uf({type:wJ});wJ.\u0275inj=Dd({imports:[HC,CG]});var TJc=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};
TJc.prototype.setData=function(a){a=UJc(a);this.originalIssue=hj(a);var b=hj(this.originalIssue.snapshot[0]);this.issueId=a.issueId;this.assignee=wj(b.assigneeUser);this.assigneeUser=b.assigneeUser;this.blockedByIssueId=b.blockedByIssueId;this.blockingIssueId=b.blockingIssueId;this.cc=yj(b.ccUsers)||[];this.ccUsers=b.ccUsers||[];this.collaborators=yj(b.collaboratorsUsers)||[];this.collaboratorsUsers=b.collaboratorsUsers||[];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=wj(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=wj(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 VJc(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 VJc({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 UJc=function(a){a=hj(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},WJc=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,h;a.blockedByIssueId=(h=(f=a.blockedByIssueId)==null?void 0:f.filter(function(Jh){return!e.has(Jh)}))!=null?h:[]}else{var k,q,v=(q=(k=b.value)==null?void 0:k.split(","))!=null?
q:[],A;a.blockedByIssueId=sj([].concat(p((A=a.blockedByIssueId)!=null?A:[]),p(v)))}break;case "blockingIssueId":if(b.actionType==="REMOVE"){var E,H,L=new Set((H=(E=b.value)==null?void 0:E.split(","))!=null?H:[]),O,S;a.blockingIssueId=(S=(O=a.blockingIssueId)==null?void 0:O.filter(function(Jh){return!L.has(Jh)}))!=null?S:[]}else{var aa,ka,na=(ka=(aa=b.value)==null?void 0:aa.split(","))!=null?ka:[],za;a.blockingIssueId=sj([].concat(p((za=a.blockingIssueId)!=null?za:[]),p(na)))}break;case "ccs":if(b.actionType===
"REMOVE"){var Na,Pa,hb=new Set((Pa=(Na=b.value)==null?void 0:Na.split(","))!=null?Pa:[]),ua,Ha;a.cc=(Ha=(ua=a.cc)==null?void 0:ua.filter(function(Jh){return!hb.has(Jh)}))!=null?Ha:[]}else{var Ia,tb,rb=(tb=(Ia=b.value)==null?void 0:Ia.split(","))!=null?tb:[],dc;a.cc=sj([].concat(p((dc=a.cc)!=null?dc:[]),p(rb)))}break;case "changelists":if(b.actionType==="REMOVE"){var bc,Ac,ic=new Set((Ac=(bc=b.value)==null?void 0:bc.split(","))!=null?Ac:[]),ye,Bb;a.changelist=(Bb=(ye=a.changelist)==null?void 0:ye.filter(function(Jh){return!ic.has(Jh)}))!=
null?Bb:[]}else{var Sb,bb,ec=(bb=(Sb=b.value)==null?void 0:Sb.split(","))!=null?bb:[],wc;a.changelist=sj([].concat(p((wc=a.changelist)!=null?wc:[]),p(ec)))}break;case "collaborators":if(b.actionType==="REMOVE"){var pd,Lb,Dc=new Set((Lb=(pd=b.value)==null?void 0:pd.split(","))!=null?Lb:[]),Hc,Od;a.collaborators=(Od=(Hc=a.collaborators)==null?void 0:Hc.filter(function(Jh){return!Dc.has(Jh)}))!=null?Od:[]}else{var Hd,Ff,Bh=(Ff=(Hd=b.value)==null?void 0:Hd.split(","))!=null?Ff:[],Vg;a.collaborators=sj([].concat(p((Vg=
a.collaborators)!=null?Vg:[]),p(Bh)))}break;case "comment":break;case "componentId":a.componentId=b.value||null;break;case "customField":var Sh=b.customFieldValue,G$,AA,io,fw,TF=Sh.textValue||Sh.dateValue||Sh.enumValue||Sh.numericValue||((G$=Sh.repeatedTextValue)==null?void 0:G$.values)||((AA=Sh.repeatedDateValue)==null?void 0:AA.values)||((io=Sh.repeatedEnumValue)==null?void 0:io.values)||((fw=Sh.repeatedNumericValue)==null?void 0:fw.values)||null;a.setCustomField(Sh.customFieldId,TF);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 Ula,Dp,ut=new Set((Dp=(Ula=b.value)==null?void 0:Ula.split(","))!=null?Dp:[]),gw,QM;a.foundInVersion=(QM=(gw=a.foundInVersion)==null?void 0:gw.filter(function(Jh){return!ut.has(Jh)}))!=null?QM:[]}else{var H$,jo,Vla=(jo=(H$=b.value)==null?void 0:H$.split(","))!=
null?jo:[],Cmb;a.foundInVersion=sj([].concat(p((Cmb=a.foundInVersion)!=null?Cmb:[]),p(Vla)))}break;case "gerritChanges":if(b.actionType==="REMOVE"){var Dmb,Emb,p9c=new Set((Emb=(Dmb=b.value)==null?void 0:Dmb.split(","))!=null?Emb:[]),Fmb;a.gerritChanges=((Fmb=a.gerritChanges)!=null?Fmb:[]).map(function(Jh){return Gl(Jh)}).filter(function(Jh){return!p9c.has(Jh)}).map(Hl).filter(Qj)}else{var Gmb,Hmb,q9c=(Hmb=(Gmb=b.value)==null?void 0:Gmb.split(","))!=null?Hmb:[],Imb,r9c=((Imb=a.gerritChanges)!=null?
Imb:[]).map(function(Jh){return Gl(Jh)});a.gerritChanges=sj([].concat(p(r9c),p(q9c))).map(Hl).filter(Qj)}break;case "hotlists":if(b.actionType==="REMOVE"){var Jmb,Kmb,s9c=new Set((Kmb=(Jmb=b.value)==null?void 0:Jmb.split(",").map(Number))!=null?Kmb:[]),Lmb,Mmb;a.hotlistId=(Mmb=(Lmb=a.hotlistId)==null?void 0:Lmb.filter(function(Jh){return!s9c.has(Jh)}))!=null?Mmb:[]}else{var Nmb,Omb,t9c=(Omb=(Nmb=b.value)==null?void 0:Nmb.split(",").map(Number))!=null?Omb:[],Pmb;a.hotlistId=sj([].concat(p((Pmb=a.hotlistId)!=
null?Pmb:[]),p(t9c)))}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":var Qmb=b.value?Mj(b.value):null;Qmb?a.sloEndTime={seconds:Qmb,nanos:0}:a.sloEndTime=null;break;case "sloSnoozeType":b.value?a.sloSnoozeType=
b.value:a.sloSnoozeType=null;break;case "sloStartTime":if(b.actionType==="REMOVE")a.sloStartTime=null;else{var Rmb=Mj(b.value);Rmb?a.sloStartTime={seconds:Rmb,nanos:0}:a.sloStartTime=null}break;case "staffing":var Smb;a.staffing=(Smb=b.staffingValue)!=null?Smb:null;break;case "status":a.setStatus(b.value);break;case "targetedToVersion":if(b.actionType==="REMOVE"){var Tmb,Umb,u9c=new Set((Umb=(Tmb=b.value)==null?void 0:Tmb.split(","))!=null?Umb:[]),Vmb,Wmb;a.targetedToVersion=(Wmb=(Vmb=a.targetedToVersion)==
null?void 0:Vmb.filter(function(Jh){return!u9c.has(Jh)}))!=null?Wmb:[]}else{var Xmb,Ymb,v9c=(Ymb=(Xmb=b.value)==null?void 0:Xmb.split(","))!=null?Ymb:[],Zmb;a.targetedToVersion=sj([].concat(p((Zmb=a.targetedToVersion)!=null?Zmb:[]),p(v9c)))}break;case "title":a.title=b.value||"";break;case "type":a.type=b.value;break;case "verifiedInVersion":if(b.actionType==="REMOVE"){var $mb,anb,w9c=new Set((anb=($mb=b.value)==null?void 0:$mb.split(","))!=null?anb:[]),bnb,cnb;a.verifiedInVersion=(cnb=(bnb=a.verifiedInVersion)==
null?void 0:bnb.filter(function(Jh){return!w9c.has(Jh)}))!=null?cnb:[]}else{var dnb,enb,x9c=(enb=(dnb=b.value)==null?void 0:dnb.split(","))!=null?enb:[],fnb;a.verifiedInVersion=sj([].concat(p((fnb=a.verifiedInVersion)!=null?fnb:[]),p(x9c)))}break;case "verifier":a.verifier=b.value||null;break;default:pb(b.fieldName)}},$Jc=function(a){for(var b=[],c=l(Object.values(a.customFieldMap)),d=c.next();!d.done;d=c.next()){d=d.value;var e=XJc(a,d.customFieldId);if(!gj(e?yo(e):null,yo(d))){if(e=zo(d))d.textValue=
"";b.push({fieldName:"customField",customFieldValue:d,actionType:e?"REMOVE":"ADD"})}}if(a.originalIssue){c=a.originalIssue.snapshot[0];xJ(wj(c.assigneeUser),a.assignee,"assignee",b);xJ(c.componentId,a.componentId,"componentId",b);xJ(c.deletionReason,a.deletionReason,"deletionReason",b);xJ(c.duplicateOfIssueId,a.duplicateOfIssueId,"duplicateOfIssueId",b);xJ(c.inProd,a.inProd,"inProd",b);xJ(c.isArchived,a.isArchived,"isArchived",b);xJ(c.isDeleted,a.isDeleted,"isDeleted",b);xJ(c.priority,a.priority,
"priority",b);xJ(wj(c.reporterUser),a.reporter,"reporter",b);xJ(c.severity,a.severity,"severity",b);xJ(c.status,a.status,"status",b);xJ(c.title,a.title,"title",b);xJ(c.type,a.type,"type",b);xJ(wj(c.verifierUser),a.verifier,"verifier",b);var f,h,k,q;xJ((k=(f=c.sloStartTime)==null?void 0:f.seconds)!=null?k:null,(q=(h=a.sloStartTime)==null?void 0:h.seconds)!=null?q:null,"sloStartTime",b);var v,A,E,H;xJ((E=(v=c.sloEndTime)==null?void 0:v.seconds)!=null?E:null,(H=(A=a.sloEndTime)==null?void 0:A.seconds)!=
null?H:null,"sloEndTime",b);xJ(c.sloSnoozeType,a.sloSnoozeType,"sloSnoozeType",b);var L,O;xJ((O=(L=c.effort)==null?void 0:L.estimate)!=null?O:null,a.effortEstimate,"effortEstimate",b);yJ(yj(c.ccUsers),a.cc,"ccs",b);yJ(yj(c.collaboratorsUsers),a.collaborators,"collaborators",b);YJc(c.staffing,a.staffing,b);yJ(c.changelist,a.changelist,"changelists",b);ZJc(c.gerritChanges,a.gerritChanges,b);yJ(c.blockedByIssueId,a.blockedByIssueId,"blockedByIssueId",b);yJ(c.blockingIssueId,a.blockingIssueId,"blockingIssueId",
b);yJ(c.foundInVersion,a.foundInVersion,"foundInVersion",b);yJ(c.targetedToVersion,a.targetedToVersion,"targetedToVersion",b);yJ(c.verifiedInVersion,a.verifiedInVersion,"verifiedInVersion",b);yJ(c.hotlistId,a.hotlistId,"hotlists",b)}return b.length?{issueId:a.issueId,actions:b}:null},xJ=function(a,b,c,d){a!==b&&d.push({fieldName:c,value:b!=null?String(b):void 0})},yJ=function(a,b,c,d){var e=psa(b||[],new Set(a));a=psa(a||[],new Set(b));e.length&&d.push({fieldName:c,value:e.join(","),actionType:"ADD"});
a.length&&d.push({fieldName:c,value:a.join(","),actionType:"REMOVE"})},ZJc=function(a,b,c){var d=Nwa(b!=null?b:[],a!=null?a:[]);a=Nwa(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"})},YJc=function(a,b,c){var d,e=Cwa((d=b==null?void 0:b.plannedAllocations)!=null?d:[]),f,h=Cwa((f=a==null?void 0:a.plannedAllocations)!=
null?f:[]);a=[].concat(p(e.entries())).filter(function(k){var q=l(k);k=q.next().value;q=q.next().value;var v,A=new (Function.prototype.bind.apply(Set,[null,((v=h.get(k))!=null?v:[]).map(function(E){return Dl(E)})]));return!h.has(k)||q.some(function(E){return!A.has(Dl(E))})}).map(function(k){k=l(k);k.next();return k.next().value});b=a.map(function(k){var q=k[0];return q.user?Dl(q,k.length>1):q.placeholder?"Placeholder: "+q.placeholder.count+" "+q.placeholder.role:""}).join(", ");d=[].concat(p(h.entries())).filter(function(k){k=
l(k).next().value;return!e.has(k)}).map(function(k){k=l(k);k.next();return k.next().value});f=d.map(function(k){k=l(k).next().value;if(k.user){var q;return(q=k.user.user)==null?void 0:q.emailAddress}return k.placeholder?"Placeholder: "+k.placeholder.role:""}).join(", ");a.length&&c.push({fieldName:"staffing",staffingValue:{plannedAllocations:a.flat()},actionType:"ADD",value:b});d.length&&c.push({fieldName:"staffing",staffingValue:{plannedAllocations:d.flat()},actionType:"REMOVE",value:f})};g=TJc.prototype;
g.setCustomField=function(a,b){a=String(a);if(this.customFieldMap[a]){var c=this.customFieldMap[a].type;if(c)switch(c){case "TYPE_UNSPECIFIED":break;case "TEXT":this.customFieldMap[a].textValue=b||"";break;case "DATE":this.customFieldMap[a].dateValue=b||void 0;break;case "ENUM":this.customFieldMap[a].enumValue=b||"";break;case "NUMERIC":this.customFieldMap[a].numericValue=b;break;case "REPEATED_TEXT":this.customFieldMap[a].repeatedTextValue={values:b};break;case "REPEATED_DATE":this.customFieldMap[a].repeatedDateValue=
{values:b};break;case "REPEATED_ENUM":this.customFieldMap[a].repeatedEnumValue={values:b};break;case "REPEATED_NUMERIC":this.customFieldMap[a].repeatedNumericValue={values:b};break;default:Xj("Unexpected custom field type: "+c)}}};
g.setCustomFieldValue=function(a,b){a=String(a);if(this.customFieldMap[a]){var c=this.customFieldMap[a].type;if(c)switch(c){case "TYPE_UNSPECIFIED":break;case "TEXT":this.customFieldMap[a].textValue=b.textValue||"";break;case "DATE":this.customFieldMap[a].dateValue=b.dateValue||void 0;break;case "ENUM":this.customFieldMap[a].enumValue=b.enumValue||"";break;case "NUMERIC":this.customFieldMap[a].numericValue=b.numericValue;break;case "REPEATED_TEXT":this.customFieldMap[a].repeatedTextValue=b.repeatedTextValue;
break;case "REPEATED_DATE":this.customFieldMap[a].repeatedDateValue=b.repeatedDateValue;break;case "REPEATED_ENUM":this.customFieldMap[a].repeatedEnumValue=b.repeatedEnumValue;break;case "REPEATED_NUMERIC":this.customFieldMap[a].repeatedNumericValue=b.repeatedNumericValue;break;default:Xj("Unexpected custom field type: "+c)}}};g.setIsDeleted=function(a){this.isDeleted=a};g.setIsArchived=function(a){this.isArchived=a};g.setDeletionReason=function(a){this.deletionReason=a};
g.setReporter=function(a){this.reporter=a};g.setType=function(a){this.type=a};g.setPriority=function(a){this.priority=a};g.setSeverity=function(a){this.severity=a};g.setAssignee=function(a){this.assignee=a;a=wl.get(this.status);!this.assignee&&this.originalIssue&&(a==null?void 0:a.assigneeRequirement)==="REQUIRED"?this.status="NEW":this.assignee&&this.status!=="FIXED"&&this.status!=="VERIFIED"&&(this.status="ASSIGNED")};
g.setVerifier=function(a){this.verifier=a;!this.verifier&&this.originalIssue&&wj(this.originalIssue.snapshot[0].verifierUser)&&this.originalIssue.snapshot[0].status==="VERIFIED"&&(this.status="FIXED")};
g.setStatus=function(a){this.status=a;a=wl.get(this.status);(a==null?void 0:a.assigneeRequirement)==="FORBIDDEN"&&this.assigneeUser?this.assignee="":(a==null?void 0:a.assigneeRequirement)!=="REQUIRED"||this.assigneeUser||(this.assignee=this.currentUserEmail);this.status!=="VERIFIED"||this.verifier||(this.verifier=this.currentUserEmail)};g.setInProd=function(a){this.inProd=a};g.setCollaborators=function(a){this.collaborators=a};g.setStaffing=function(a){this.staffing=a};
g.setSloEndTime=function(a){this.sloEndTime=a};g.setSloSnoozeType=function(a){this.sloSnoozeType=a};g.setCodeChanges=function(a){var b=[],c=[];a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=Hl(d);e?b.push(e):c.push(d)}this.changelist=c!=null?c:[];this.gerritChanges=b!=null?b:[]};
var XJc=function(a,b){return a.originalIssue?(a=(a.originalIssue.snapshot[0].customField||[]).find(function(c){return c.customFieldId===b}))?a:null:null},R2a=function(a,b){var c=[];b!==void 0&&!b&&a.changelist&&c.push.apply(c,p(a.changelist));a.gerritChanges&&c.push.apply(c,p(a.gerritChanges.filter(function(d){return d.state==="MERGED"}).map(function(d){return Gl(d)})));return c},aKc=function(a){return a.gerritChanges?a.gerritChanges.filter(function(b){return b.state==="PENDING"}).map(function(b){return Gl(b)}):
[]},VJc=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};
VJc.prototype.isRepeated=function(){return this.type==null?!1:["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};var bKc=new Map([["assignee",function(a,b){a.assigneeUser=Dj(b.assignee)}],["ccs",function(a,b){a.ccUsers=b.cc.map(Dj).filter(Qj)}],["changelists",function(a,b){a.changelist=b.changelist}],["hotlists",function(a,b){a.hotlistId=b.hotlistId}],["reporter",function(a,b){a.reporterUser=Dj(b.reporter)}],["verifier",function(a,b){a.verifierUser=Dj(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 zJ=new le("MatSnackBarData"),cKc=function(){this.politeness="polite";this.announcementMessage="";this.duration=0;this.data=null;this.horizontalPosition="center";this.verticalPosition="bottom"};var dKc=function(){};dKc.\u0275fac=function(a){return new (a||dKc)};dKc.\u0275dir=vf({type:dKc,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]});var eKc=function(){};eKc.\u0275fac=function(a){return new (a||eKc)};eKc.\u0275dir=vf({type:eKc,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]});var fKc=function(){};fKc.\u0275fac=function(a){return new (a||fKc)};
fKc.\u0275dir=vf({type:fKc,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]});var AJ=function(a,b){var c=this;this._overlayRef=b;this._afterDismissed=new tg;this._afterOpened=new tg;this._onAction=new tg;this._dismissedByAction=!1;this.containerInstance=a;a._onExit.subscribe(function(){return c._finishDismiss()})};g=AJ.prototype;g.dismiss=function(){this._afterDismissed.closed||this.containerInstance.exit();clearTimeout(this._durationTimeoutId)};
g.dismissWithAction=function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss());clearTimeout(this._durationTimeoutId)};g._dismissAfter=function(a){var b=this;this._durationTimeoutId=setTimeout(function(){return b.dismiss()},Math.min(a,2147483647))};g._open=function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())};
g._finishDismiss=function(){this._overlayRef.dispose();this._onAction.closed||this._onAction.complete();this._afterDismissed.next({dismissedByAction:this._dismissedByAction});this._afterDismissed.complete();this._dismissedByAction=!1};g.afterDismissed=function(){return this._afterDismissed};g.afterOpened=function(){return this.containerInstance._onEnter};g.onAction=function(){return this._onAction};var BJ=function(){this.snackBarRef=r(AJ);this.data=r(zJ)};BJ.prototype.action=function(){this.snackBarRef.dismissWithAction()};nd.Object.defineProperties(BJ.prototype,{hasAction:{configurable:!0,enumerable:!0,get:function(){return!!this.data.action}}});BJ.\u0275fac=function(a){return new (a||BJ)};
BJ.\u0275cmp=y({type:BJ,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&&(J(0,"div",0),R(1),K(),F(2,cOa,3,1,"div",1));a&2&&(x(),T(" ",b.data.message,"\n"),x(),G(b.hasAction?2:-1))},dependencies:[Jx,dKc,eKc,fKc],styles:[".mat-mdc-simple-snack-bar{display:flex}\n"],encapsulation:2,changeDetection:0});var gKc=["label"],CJ=function(){this._isDisposed=!1;this._ngZone=r(Ph);this._elementRef=r(Te);this._changeDetectorRef=r(Hv);this._platform=r(zi);this._animationsDisabled=Ri();this.snackBarConfig=r(cKc);this._document=r(ui);this._trackedModals=new Set;this._injector=r(Cg);this._announceDelay=150;this._destroyed=!1;this._onAnnounce=new tg;this._onExit=new tg;this._onEnter=new tg;this._animationState="void";this._liveElementId=r(Fi).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"))};Y(CJ,hx);g=CJ.prototype;g.attachComponentPortal=function(a){a=this._portalOutlet.attachComponentPortal(a);this._afterPortalAttached();return a};g.attachTemplatePortal=function(a){a=this._portalOutlet.attachTemplatePortal(a);this._afterPortalAttached();return a};
g.onAnimationEnd=function(a){var b=this;a==="_mat-snack-bar-exit"?this._completeExit():a==="_mat-snack-bar-enter"&&(clearTimeout(this._enterFallback),this._ngZone.run(function(){b._onEnter.next();b._onEnter.complete()}))};
g.enter=function(){var a=this;this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?Ig(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)))};
g.exit=function(){var a=this;this._destroyed?Nf(void 0):this._ngZone.run(function(){a._animationState="hidden";a._changeDetectorRef.markForCheck();a._elementRef.nativeElement.setAttribute("mat-exit","");clearTimeout(a._announceTimeoutId);a._animationsDisabled?Ig(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))})};g.ngOnDestroy=function(){this._destroyed=!0;this._clearFromModals();this._completeExit()};g._completeExit=function(){var a=this;clearTimeout(this._exitFallback);queueMicrotask(function(){a._onExit.next();a._onExit.complete()})};
g._afterPortalAttached=function(){var a=this._elementRef.nativeElement,b=this.snackBarConfig.panelClass;b&&(Array.isArray(b)?b.forEach(function(c){return a.classList.add(c)}):a.classList.add(b));this._exposeToModals();b=this._label.nativeElement;b.classList.toggle("mdc-snackbar__label",!b.querySelector(".mdc-snackbar__label"))};
g._exposeToModals=function(){for(var a=this._liveElementId,b=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]'),c=0;c<b.length;c++){var d=b[c],e=d.getAttribute("aria-owns");this._trackedModals.add(d);e?e.indexOf(a)===-1&&d.setAttribute("aria-owns",e+" "+a):d.setAttribute("aria-owns",a)}};
g._clearFromModals=function(){var a=this;this._trackedModals.forEach(function(b){var c=b.getAttribute("aria-owns");c&&(c=c.replace(a._liveElementId,"").trim(),c.length>0?b.setAttribute("aria-owns",c):b.removeAttribute("aria-owns"))});this._trackedModals.clear()};g._assertNotAttached=function(){};
g._screenReaderAnnounce=function(){var a=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){a._announceTimeoutId=setTimeout(function(){if(!a._destroyed){var b=a._elementRef.nativeElement,c=b.querySelector("[aria-hidden]");b=b.querySelector("[aria-live]");if(c&&b){var d=null;a._platform.isBrowser&&document.activeElement instanceof HTMLElement&&c.contains(document.activeElement)&&(d=document.activeElement);c.removeAttribute("aria-hidden");b.appendChild(c);var e;(e=d)==null||e.focus();
a._onAnnounce.next();a._onAnnounce.complete()}}},a._announceDelay)})};CJ.\u0275fac=function(a){return new (a||CJ)};
CJ.\u0275cmp=y({type:CJ,selectors:[["mat-snack-bar-container"]],viewQuery:function(a,b){a&1&&(hh(jx,7),hh(gKc,7));if(a&2){var c;lh(c=mh())&&(b._portalOutlet=c.first);lh(c=mh())&&(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&&uh("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:[Bg],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&&(J(0,"div",1)(1,"div",2,0)(3,"div",3),D(4,dOa,0,0,"ng-template",4),K(),M(5,"div"),K()());a&2&&(x(5),Lg("aria-live",b._live)("role",b._role)("id",b._liveElementId))},
dependencies:[jx],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 hKc=new le("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new cKc}}),DJ=function(){this._live=r(Aw);this._injector=r(Cg);this._breakpointObserver=r(uw);this._parentSnackBar=r(DJ,{optional:!0,skipSelf:!0});this._defaultConfig=r(hKc);this._animationsDisabled=Ri();this._snackBarRefAtThisLevel=null;this.simpleSnackBarComponent=BJ;this.snackBarContainerComponent=CJ;this.handsetCssClass="mat-mdc-snack-bar-handset"};g=DJ.prototype;
g.openFromComponent=function(a,b){return this._attach(a,b)};g.open=function(a,b,c){b=b===void 0?"":b;var d=Object.assign({},this._defaultConfig,c);d.data={message:a,action:b};d.announcementMessage===a&&(d.announcementMessage=void 0);return this.openFromComponent(this.simpleSnackBarComponent,d)};g.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()};g.ngOnDestroy=function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()};
g._attachSnackBarContainer=function(a,b){var c=Yh({parent:b&&b.viewContainerRef&&b.viewContainerRef.injector||this._injector,providers:[{provide:cKc,useValue:b}]});a=a.attach(new fx(this.snackBarContainerComponent,b.viewContainerRef,c));a.instance.snackBarConfig=b;return a.instance};
g._attach=function(a,b){var c=this,d=Object.assign({},new cKc,this._defaultConfig,b),e=this._createOverlay(d);b=this._attachSnackBarContainer(e,d);var f=new AJ(b,e);if(a instanceof eh)f.instance=b.attachTemplatePortal(new gx(a,null,{$implicit:d.data,snackBarRef:f}));else{var h=this._createInjector(d,f);a=b.attachComponentPortal(new fx(a,void 0,h));f.instance=a.instance}this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(yg(e._detachments)).subscribe(function(k){e.overlayElement.classList.toggle(c.handsetCssClass,
k.matches)});d.announcementMessage&&b._onAnnounce.subscribe(function(){c._live.announce(d.announcementMessage,d.politeness)});this._animateSnackBar(f,d);return this._openedSnackBarRef=f};
g._animateSnackBar=function(a,b){var c=this;a.afterDismissed().subscribe(function(){c._openedSnackBarRef==a&&(c._openedSnackBarRef=null);b.announcementMessage&&c._live.clear()});b.duration&&b.duration>0&&a.afterOpened().subscribe(function(){return a._dismissAfter(b.duration)});this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){a.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):a.containerInstance.enter()};
g._createOverlay=function(a){var b=new Ii;b.direction=a.direction;var c=new ax,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"):bx(c);a.verticalPosition==="top"?c.top("0"):c.bottom("0");b.positionStrategy=c;b.disableAnimations=this._animationsDisabled;return Pi(this._injector,b)};
g._createInjector=function(a,b){return Yh({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:AJ,useValue:b},{provide:zJ,useValue:a.data}]})};nd.Object.defineProperties(DJ.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}}});
DJ.\u0275fac=function(a){return new (a||DJ)};DJ.\u0275prov=Cd({token:DJ,factory:DJ.\u0275fac,providedIn:"root"});var EJ=function(){};EJ.\u0275fac=function(a){return new (a||EJ)};EJ.\u0275mod=uf({type:EJ});EJ.\u0275inj=Dd({providers:[DJ],imports:[ox,kx,Lx,px,BJ,px]});var FJ=function(){this.snackBar=r(DJ)};FJ.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(iKc,b)};FJ.\u0275fac=function(a){return new (a||FJ)};FJ.\u0275prov=Cd({token:FJ,factory:FJ.\u0275fac,providedIn:"root"});
var iKc=function(){this.data=r(zJ);this.snackBarRef=r(AJ)};iKc.\u0275fac=function(a){return new (a||iKc)};
iKc.\u0275cmp=y({type:iKc,selectors:[["ng-component"]],standalone:!1,decls:7,vars:3,consts:[[1,"snackbar-content"],[1,"message",3,"innerHtml"],[1,"message"],[1,"actions"],["type","button","mat-button",""],"type button mat-icon-button  aria-label Dismiss".split(" "),["type","button","mat-button","",3,"click"],["type","button","mat-icon-button","","aria-label","Dismiss",3,"click"],["svgIcon","close"]],template:function(a,b){a&1&&(J(0,"div",0),F(1,eOa,1,1,"span",1)(2,fOa,2,1,"span",2),J(3,"div",3),F(4,
gOa,2,1,"button",4),F(5,hOa,2,1,"button",4)(6,iOa,2,0,"button",5),K()());a&2&&(x(),G(b.data.htmlMessage?1:2),x(3),G(b.data.actionLabel?4:-1),x(),G(b.data.dismissLabel?5:6))},dependencies:[FC,oG,Jx,Kx],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 GJ=function(){this.snackbar=r(FJ)};GJ.prototype.dismiss=function(){this.lastSnackbar&&this.lastSnackbar.dismiss()};var Kq=function(a,b,c){a.open({message:b,duration:c===void 0?1E4:c})},jKc=function(a,b,c){a.open({message:b,duration:c===void 0?1E4:c})};GJ.prototype.showWarning=function(a,b){this.open({message:a,duration:b===void 0?0:b,snackbarType:"ERROR"})};GJ.prototype.open=function(a){return this.lastSnackbar=a=this.snackbar.open(a)};GJ.\u0275fac=function(a){return new (a||GJ)};
GJ.\u0275prov=Cd({token:GJ,factory:GJ.\u0275fac,providedIn:"root"});var HJ=new le("buganizerWindow",{factory:function(){return window}});var IJ=function(){this.$window=r(HJ)};IJ.\u0275fac=function(a){return new (a||IJ)};IJ.\u0275prov=Cd({token:IJ,factory:IJ.\u0275fac,providedIn:"root"});var JJ=function(){this.session=r(Bs);this.baseDocumentationUrl=this.session.getDocumentationBaseUrl()},zq=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/access-control":a.baseDocumentationUrl+"/concepts/access-control"},kKc=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"};
JJ.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 lKc=function(a){return a.session.isInternalSession()?"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/automation-access":zq(a)},NYa=function(a){if(!a.session.isExternalSession())return"http://go/buganizer-external-access"},mKc=function(a){if(!a.session.isExternalSession())return"http://go/buganizer-public-access"},nKc=function(a){if(a=mKc(a))return a+"#recommended-access-settings"},oKc=function(a){if(a=mKc(a))return a+"#fully-public-component"},pKc=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"},LMb=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/guides/manage-component#enabling-comment-editing"},ys=function(){return"http://go/buganizer-retention"};JJ.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 QYb=function(){return"https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/custom-fields"};JJ.prototype.getDisablingFieldsHelpLink=function(){return QYb()+"#hiding-inherited-fields"};var qKc=function(a){return a.session.isInternalSession()?"http://go/delete-comments-attachments":""};JJ.\u0275fac=function(a){return new (a||JJ)};JJ.\u0275prov=Cd({token:JJ,factory:JJ.\u0275fac,providedIn:"root"});var KJ=function(a,b,c){var d=this;this._ref=a;this._config=b;this._containerInstance=c;this._afterOpened=new tg;this._beforeClosed=new tg;this._state=0;this.disableClose=b.disableClose;this.id=a.id;a.addPanelClass("mat-mdc-dialog-panel");c._animationStateChanged.pipe(eg(function(e){return e.state==="opened"}),mg(1)).subscribe(function(){d._afterOpened.next();d._afterOpened.complete()});c._animationStateChanged.pipe(eg(function(e){return e.state==="closed"}),mg(1)).subscribe(function(){clearTimeout(d._closeFallbackTimeout);
d._finishDialogClose()});a.overlayRef._detachments.subscribe(function(){d._beforeClosed.next(d._result);d._beforeClosed.complete();d._finishDialogClose()});dg(this.backdropClick(),this.keydownEvents().pipe(eg(function(e){return e.keyCode===27&&!d.disableClose&&!ki(e)}))).subscribe(function(e){d.disableClose||(e.preventDefault(),d._closeInteractionType=e.type==="keydown"?"keyboard":"mouse",d.close(void 0))})};
KJ.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(eg(function(d){return d.state==="closing"}),mg(1)).subscribe(function(d){b._beforeClosed.next(a);b._beforeClosed.complete();pjc(b._ref.overlayRef);b._closeFallbackTimeout=setTimeout(function(){return b._finishDialogClose()},d.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()};
KJ.prototype.afterOpened=function(){return this._afterOpened};var LJ=function(a){return a._ref.closed};g=KJ.prototype;g.backdropClick=function(){return this._ref.backdropClick};g.keydownEvents=function(){return this._ref.keydownEvents};g.updatePosition=function(a){var b=this._ref.config.positionStrategy;a&&(a.left||a.right)?a.left?b.left(a.left):b.right(a.right):bx(b);a&&(a.top||a.bottom)?a.top?b.top(a.top):b.bottom(a.bottom):zjc(b);this._ref.updatePosition()};
g.updateSize=function(a,b){this._ref.updateSize(a===void 0?"":a,b===void 0?"":b)};g.addPanelClass=function(a){this._ref.addPanelClass(a)};g.removePanelClass=function(a){this._ref.removePanelClass(a)};g.getState=function(){return this._state};g._finishDialogClose=function(){this._state=2;this._ref.close(this._result,{focusOrigin:this._closeInteractionType});this.componentInstance=null};var rKc=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 MJ=function(){this._isDisposed=!1;this._elementRef=r(Te);this._focusTrapFactory=r(rw);this._interactivityChecker=r(mw);this._ngZone=r(Ph);this._focusMonitor=r(jw);this._renderer=r(Ji);this._changeDetectorRef=r(Hv);this._injector=r(Cg);this._platform=r(zi);this._document=r(ui);this._focusTrapped=new tg;this._closeInteractionType=this._elementFocusedBeforeDialogWasOpened=this._focusTrap=null;this._ariaLabelledByQueue=[];this._isDestroyed=!1;this._config=r(rKc,{optional:!0})||new rKc;this._config.ariaLabelledBy&&
this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)};Y(MJ,hx);g=MJ.prototype;g._addAriaLabelledBy=function(a){this._ariaLabelledByQueue.push(a);this._changeDetectorRef.markForCheck()};g._removeAriaLabelledBy=function(a){a=this._ariaLabelledByQueue.indexOf(a);a>-1&&(this._ariaLabelledByQueue.splice(a,1),this._changeDetectorRef.markForCheck())};g._contentAttached=function(){this._initializeFocusTrap();this._captureInitialFocus()};g._captureInitialFocus=function(){this._trapFocus()};
g.ngOnDestroy=function(){this._focusTrapped.complete();this._isDestroyed=!0;this._restoreFocus()};g.attachComponentPortal=function(a){a=this._portalOutlet.attachComponentPortal(a);this._contentAttached();return a};g.attachTemplatePortal=function(a){a=this._portalOutlet.attachTemplatePortal(a);this._contentAttached();return a};g._recaptureFocus=function(){this._containsFocus()||this._trapFocus()};
g._forceFocus=function(a,b){var c=this;this._interactivityChecker.isFocusable(a)||(a.tabIndex=-1,this._ngZone.runOutsideAngular(function(){var d=function(){e();f();a.removeAttribute("tabindex")},e=c._renderer.listen(a,"blur",d),f=c._renderer.listen(a,"mousedown",d)}));a.focus(b)};g._focusByCssSelector=function(a,b){(a=this._elementRef.nativeElement.querySelector(a))&&this._forceFocus(a,b)};
g._trapFocus=function(a){var b=this;this._isDestroyed||Ig(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})};
g._restoreFocus=function(){var a=this._config.restoreFocus,b=null;typeof a==="string"?b=this._document.querySelector(a):typeof a==="boolean"?b=a?this._elementFocusedBeforeDialogWasOpened:null:a&&(b=a);if(this._config.restoreFocus&&b&&typeof b.focus==="function"){a=mi();var c=this._elementRef.nativeElement;if(!a||a===this._document.body||a===c||c.contains(a))this._focusMonitor?(kw(this._focusMonitor,b,this._closeInteractionType),this._closeInteractionType=null):b.focus()}this._focusTrap&&this._focusTrap.destroy()};
g._focusDialogContainer=function(a){var b,c;(c=(b=this._elementRef.nativeElement).focus)==null||c.call(b,a)};g._containsFocus=function(){var a=this._elementRef.nativeElement,b=mi();return a===b||a.contains(b)};g._initializeFocusTrap=function(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=mi()))};MJ.\u0275fac=function(a){return new (a||MJ)};
MJ.\u0275cmp=y({type:MJ,selectors:[["cdk-dialog-container"]],viewQuery:function(a,b){a&1&&hh(jx,7);if(a&2){var c;lh(c=mh())&&(b._portalOutlet=c.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(a,b){a&2&&Lg("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:[Bg],
decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(a){a&1&&D(0,jOa,0,0,"ng-template",0)},dependencies:[jx],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}\n"],encapsulation:2});var sKc=new le("DialogScrollStrategy",{providedIn:"root",factory:function(){var a=r(Cg);return function(){return Bpa(a)}}}),tKc=new le("DialogData"),uKc=new le("DefaultDialogConfig");var vKc=function(a,b){var c=this;this.overlayRef=a;this.config=b;this.closed=new tg;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||ki(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()})};g=vKc.prototype;g.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}};
g.updatePosition=function(){this.overlayRef.updatePosition()};g.updateSize=function(a,b){this.overlayRef.updateSize({width:a===void 0?"":a,height:b===void 0?"":b})};g.addPanelClass=function(a){this.overlayRef.addPanelClass(a)};g.removePanelClass=function(a){this.overlayRef.removePanelClass(a)};g._canClose=function(a){var b=this.config;return!!this.containerInstance&&(!b.closePredicate||b.closePredicate(a,b,this.componentInstance))};var NJ=function(){this._injector=r(Cg);this._defaultOptions=r(uKc,{optional:!0});this._parentDialog=r(NJ,{optional:!0,skipSelf:!0});this._overlayContainer=r(Ai);this._idGenerator=r(Fi);this._openDialogsAtThisLevel=[];this._afterAllClosedAtThisLevel=new tg;this._afterOpenedAtThisLevel=new tg;this._ariaHiddenElements=new Map;this._scrollStrategy=r(sKc)};g=NJ.prototype;
g.open=function(a,b){var c=this;b=Object.assign({},this._defaultOptions||new rKc,b);b.id=b.id||this._idGenerator.getId("cdk-dialog-");b.id&&this.getDialogById(b.id);var d=this._getOverlayConfig(b);d=Pi(this._injector,d);var e=new vKc(d,b);d=this._attachContainer(d,e,b);e.containerInstance=d;if(!this.openDialogs.length){var f=Ipa(this._overlayContainer);d._focusTrapped?d._focusTrapped.pipe(mg(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};g.closeAll=function(){lOa(this.openDialogs,function(a){return a.close()})};g.getDialogById=function(a){this.openDialogs.find(function(b){return b.id===a})};
g.ngOnDestroy=function(){var a=this;lOa(this._openDialogsAtThisLevel,function(b){b.config.closeOnDestroy===!1&&a._removeOpenDialog(b,!1)});lOa(this._openDialogsAtThisLevel,function(b){return b.close()});this._afterAllClosedAtThisLevel.complete();this._afterOpenedAtThisLevel.complete();this._openDialogsAtThisLevel=[]};
g._getOverlayConfig=function(a){var b=new Ii({positionStrategy:a.positionStrategy||zjc(bx(new ax)),scrollStrategy:a.scrollStrategy||this._scrollStrategy(),panelClass:a.panelClass,hasBackdrop:a.hasBackdrop,direction:a.direction,minWidth:a.minWidth,minHeight:a.minHeight,maxWidth:a.maxWidth,maxHeight:a.maxHeight,width:a.width,height:a.height,disposeOnNavigation:a.closeOnNavigation,disableAnimations:a.disableAnimations});a.backdropClass&&(b.backdropClass=a.backdropClass);return b};
g._attachContainer=function(a,b,c){var d,e=c.injector||((d=c.viewContainerRef)==null?void 0:d.injector);b=[{provide:rKc,useValue:c},{provide:vKc,useValue:b},{provide:Ki,useValue:a}];c.container?typeof c.container==="function"?d=c.container:(d=c.container.type,b.push.apply(b,p(c.container.providers(c)))):d=MJ;c=new fx(d,c.viewContainerRef,Yh({parent:e||this._injector,providers:b}));return a.attach(c).instance};
g._attachDialogContent=function(a,b,c,d){if(a instanceof eh){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 gx(a,null,b,e))}else e=this._createInjector(d,b,c,this._injector),a=c.attachComponentPortal(new fx(a,d.viewContainerRef,e)),b.componentRef=a,b.componentInstance=a.instance};
g._createInjector=function(a,b,c,d){var e,f=a.injector||((e=a.viewContainerRef)==null?void 0:e.injector);e=[{provide:tKc,useValue:a.data},{provide:vKc,useValue:b}];a.providers&&(typeof a.providers==="function"?e.push.apply(e,p(a.providers(b,a,c))):e.push.apply(e,p(a.providers)));!a.direction||f&&f.get(Gi,null,{optional:!0})||e.push({provide:Gi,useValue:kOa(a.direction)});return Yh({parent:f||d,providers:e})};
g._removeOpenDialog=function(a,b){a=this.openDialogs.indexOf(a);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(c,d){c?d.setAttribute("aria-hidden",c):d.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),b&&this._getAfterAllClosed().next()))};
g._hideNonDialogContentFromAssistiveTechnology=function(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")||(this._ariaHiddenElements.set(d,d.getAttribute("aria-hidden")),d.setAttribute("aria-hidden","true"))}};g._getAfterAllClosed=function(){var a=this._parentDialog;return a?a._getAfterAllClosed():this._afterAllClosedAtThisLevel};
nd.Object.defineProperties(NJ.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}}});NJ.\u0275fac=function(a){return new (a||NJ)};NJ.\u0275prov=Cd({token:NJ,factory:NJ.\u0275fac,providedIn:"root"});var OJ=function(){};OJ.\u0275fac=function(a){return new (a||OJ)};OJ.\u0275mod=uf({type:OJ});OJ.\u0275inj=Dd({providers:[NJ],imports:[ox,kx,Bw,kx]});var wKc=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 PJ=function(){MJ.apply(this,arguments);var a=this;this._animationStateChanged=new nq;this._animationsEnabled=!Ri();this._actionSectionCount=0;this._hostElement=this._elementRef.nativeElement;var b;this._enterAnimationDuration=this._animationsEnabled?(b=nOa(this._config.enterAnimationDuration))!=null?b:150:0;var c;this._exitAnimationDuration=this._animationsEnabled?(c=nOa(this._config.exitAnimationDuration))!=null?c:75:0;this._animationTimer=null;this._finishDialogOpen=function(){a._clearAnimationClasses();
a._openAnimationDone(a._enterAnimationDuration)};this._finishDialogClose=function(){a._clearAnimationClasses();a._animationStateChanged.emit({state:"closed",totalTime:a._exitAnimationDuration})}};Y(PJ,MJ);g=PJ.prototype;g._contentAttached=function(){MJ.prototype._contentAttached.call(this);this._startOpenAnimation()};
g._startOpenAnimation=function(){var a=this;this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration});this._animationsEnabled?(this._hostElement.style.setProperty("--mat-dialog-transition-duration",this._enterAnimationDuration+"ms"),this._requestAnimationFrame(function(){return a._hostElement.classList.add("mdc-dialog--opening","mdc-dialog--open")}),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add("mdc-dialog--open"),
Promise.resolve().then(function(){return a._finishDialogOpen()}))};
g._startExitAnimation=function(){var a=this;this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration});this._hostElement.classList.remove("mdc-dialog--open");this._animationsEnabled?(this._hostElement.style.setProperty("--mat-dialog-transition-duration",this._exitAnimationDuration+"ms"),this._requestAnimationFrame(function(){return a._hostElement.classList.add("mdc-dialog--closing")}),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):
Promise.resolve().then(function(){return a._finishDialogClose()})};g._updateActionSectionCount=function(a){this._actionSectionCount+=a;this._changeDetectorRef.markForCheck()};g._clearAnimationClasses=function(){this._hostElement.classList.remove("mdc-dialog--opening","mdc-dialog--closing")};g._waitForAnimationToComplete=function(a,b){this._animationTimer!==null&&clearTimeout(this._animationTimer);this._animationTimer=setTimeout(b,a)};
g._requestAnimationFrame=function(a){this._ngZone.runOutsideAngular(function(){typeof requestAnimationFrame==="function"?requestAnimationFrame(a):a()})};g._captureInitialFocus=function(){this._config.delayFocusTrap||this._trapFocus()};g._openAnimationDone=function(a){this._config.delayFocusTrap&&this._trapFocus();this._animationStateChanged.next({state:"opened",totalTime:a})};g.ngOnDestroy=function(){MJ.prototype.ngOnDestroy.call(this);this._animationTimer!==null&&clearTimeout(this._animationTimer)};
g.attachComponentPortal=function(a){a=MJ.prototype.attachComponentPortal.call(this,a);a.location.nativeElement.classList.add("mat-mdc-dialog-component-host");return a};PJ.\u0275fac=function(){var a;return function(b){return(a||(a=Re(PJ)))(b||PJ)}}();
PJ.\u0275cmp=y({type:PJ,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(a,b){a&2&&(Rg("id",b._config.id),Lg("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),uh("_mat-animation-noopable",!b._animationsEnabled)("mat-mdc-dialog-container-with-actions",
b._actionSectionCount>0))},features:[Bg],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&&(J(0,"div",0)(1,"div",1),D(2,mOa,0,0,"ng-template",2),K()())},dependencies:[jx],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 QJ=new le("MatMdcDialogData"),xKc=new le("mat-mdc-dialog-default-options"),yKc=new le("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:function(){var a=r(Cg);return function(){return Bpa(a)}}}),RJ=function(){this._defaultOptions=r(xKc,{optional:!0});this._scrollStrategy=r(yKc);this._parentDialog=r(RJ,{optional:!0,skipSelf:!0});this._idGenerator=r(Fi);this._injector=r(Cg);this._dialog=r(NJ);this._animationsDisabled=Ri();this._openDialogsAtThisLevel=[];this._afterAllClosedAtThisLevel=
new tg;this._afterOpenedAtThisLevel=new tg;this.dialogConfigClass=wKc;this._dialogRefConstructor=KJ;this._dialogContainerType=PJ;this._dialogDataToken=QJ};g=RJ.prototype;g._getAfterAllClosed=function(){var a=this._parentDialog;return a?a._getAfterAllClosed():this._afterAllClosedAtThisLevel};
g.open=function(a,b){var c=this,d;b=Object.assign({},this._defaultOptions||new wKc,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:zjc(bx(new ax)),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:rKc,useValue:b}]}},templateContext:function(){return{dialogRef:d}},providers:function(h,k,q){d=new c._dialogRefConstructor(h,b,q);var v;d.updatePosition((v=b)==null?void 0:v.position);return[{provide:c._dialogContainerType,useValue:q},{provide:c._dialogDataToken,useValue:k.data},{provide:c._dialogRefConstructor,useValue:d}]}}));d.componentRef=a.componentRef;
d.componentInstance=a.componentInstance;this.openDialogs.push(d);this.afterOpened.next(d);LJ(d).subscribe(function(){var h=c.openDialogs.indexOf(d);h>-1&&(c.openDialogs.splice(h,1),c.openDialogs.length||c._getAfterAllClosed().next())});return d};g.closeAll=function(){this._closeDialogs(this.openDialogs)};g.getDialogById=function(a){this.openDialogs.find(function(b){return b.id===a})};
g.ngOnDestroy=function(){this._closeDialogs(this._openDialogsAtThisLevel);this._afterAllClosedAtThisLevel.complete();this._afterOpenedAtThisLevel.complete()};g._closeDialogs=function(a){for(var b=a.length;b--;)a[b].close()};
nd.Object.defineProperties(RJ.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}}});RJ.\u0275fac=function(a){return new (a||RJ)};RJ.\u0275prov=Cd({token:RJ,factory:RJ.\u0275fac,providedIn:"root"});var SJ=function(){this.dialogRef=r(KJ,{optional:!0});this._elementRef=r(Te);this._dialog=r(RJ);this.type="button"};SJ.prototype.ngOnInit=function(){this.dialogRef||(this.dialogRef=oOa(this._elementRef,this._dialog.openDialogs))};SJ.prototype.ngOnChanges=function(a){if(a=a._matDialogClose||a._matDialogCloseResult)this.dialogResult=a.currentValue};
SJ.prototype._onButtonClick=function(a){var b=this.dialogRef,c=this.dialogResult;b._closeInteractionType=a.screenX===0&&a.screenY===0?"keyboard":"mouse";b.close(c)};SJ.\u0275fac=function(a){return new (a||SJ)};
SJ.\u0275dir=vf({type:SJ,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(a,b){a&1&&N("click",function(c){return b._onButtonClick(c)});a&2&&Lg("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:[ov]});
var TJ=function(){this._dialogRef=r(KJ,{optional:!0});this._elementRef=r(Te);this._dialog=r(RJ)};TJ.prototype.ngOnInit=function(){var a=this;this._dialogRef||(this._dialogRef=oOa(this._elementRef,this._dialog.openDialogs));this._dialogRef&&Promise.resolve().then(function(){a._onAdd()})};TJ.prototype.ngOnDestroy=function(){var a=this,b;((b=this._dialogRef)==null?0:b._containerInstance)&&Promise.resolve().then(function(){a._onRemove()})};TJ.\u0275fac=function(a){return new (a||TJ)};TJ.\u0275dir=vf({type:TJ});
var UJ=function(){TJ.apply(this,arguments);this.id=r(Fi).getId("mat-mdc-dialog-title-")};Y(UJ,TJ);UJ.prototype._onAdd=function(){var a,b;(a=this._dialogRef._containerInstance)==null||(b=a._addAriaLabelledBy)==null||b.call(a,this.id)};UJ.prototype._onRemove=function(){var a,b,c;(a=this._dialogRef)==null||(b=a._containerInstance)==null||(c=b._removeAriaLabelledBy)==null||c.call(b,this.id)};UJ.\u0275fac=function(){var a;return function(b){return(a||(a=Re(UJ)))(b||UJ)}}();
UJ.\u0275dir=vf({type:UJ,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(a,b){a&2&&Rg("id",b.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[Bg]});var VJ=function(){};VJ.\u0275fac=function(a){return new (a||VJ)};
VJ.\u0275dir=vf({type:VJ,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=Ola,c.hostDirectives=d?a.map(Qla):[a]):d?c.hostDirectives.unshift.apply(c.hostDirectives,p(a.map(Qla))):c.hostDirectives.unshift(a)};b.ngInherit=!0;return b}([Sw])]});var WJ=function(){TJ.apply(this,arguments)};
Y(WJ,TJ);WJ.prototype._onAdd=function(){var a,b;(a=this._dialogRef._containerInstance)==null||(b=a._updateActionSectionCount)==null||b.call(a,1)};WJ.prototype._onRemove=function(){var a,b;(a=this._dialogRef._containerInstance)==null||(b=a._updateActionSectionCount)==null||b.call(a,-1)};WJ.\u0275fac=function(){var a;return function(b){return(a||(a=Re(WJ)))(b||WJ)}}();
WJ.\u0275dir=vf({type:WJ,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&&uh("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:[Bg]});var XJ=function(){};XJ.\u0275fac=function(a){return new (a||XJ)};XJ.\u0275mod=uf({type:XJ});XJ.\u0275inj=Dd({providers:[RJ],imports:[OJ,ox,kx,px,px]});var zKc=function(){this.dialogRef=r(KJ);this.data=r(QJ);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};zKc.\u0275fac=function(a){return new (a||zKc)};
zKc.\u0275cmp=y({type:zKc,selectors:[["b-confirmation-dialog"]],standalone:!1,decls:7,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"innerHTML"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium"],["type","button","mat-flat-button","","cdkFocusInitial","",1,"medium",3,"click","color"],["type","button","mat-button","",1,"medium",3,"click"]],template:function(a,b){a&1&&(J(0,"h1",0),R(1),K(),M(2,"div",1),J(3,"div",2),F(4,pOa,2,1,"button",3),J(5,"button",4),N("click",
function(){return b.dialogRef.close(!0)}),R(6),K()());a&2&&(x(),wh(b.data.title),x(),I("innerHTML",b.data.content,gf),x(2),G(b.showCancelButton?4:-1),x(),I("color",b.confirmButtonTheme),x(),T(" ",b.confirmButtonText," "))},dependencies:[oG,Jx,UJ,WJ,VJ],encapsulation:2});var YJ=function(){this.dialog=r(RJ)},AKc=function(a,b){return new Promise(function(c){a.open(Object.assign({},b,{onConfirm:function(){c(!0)},onDismiss:function(){c(!1)}}))})};
YJ.prototype.open=function(a){var b=a.title;var c=a.content;var d=a.onConfirm;var e=a.onDismiss;LJ(this.dialog.open(zKc,{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()})};YJ.\u0275fac=function(a){return new (a||YJ)};YJ.\u0275prov=Cd({token:YJ,factory:YJ.\u0275fac,providedIn:"root"});var ZJ=function(){this.activeSession=r(Bs);this.documentationLinks=r(JJ);this.confirmationDialogService=r(YJ)},CKc=function(a,b){return new Promise(function(c){BKc(a,b,function(){c(!0)},function(){c(!1)})})},BKc=function(a,b,c,d){if(a.activeSession.isExternalSession())c&&c();else{var e="",f=Xi("");if(b==="VULNERABILITY")e="Set the issue type to \u201cVulnerability\u201d?",b={},f=Zi([Xi('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}),$i("a",(b.href="http://goto.google.com/vulnerability-slo",b.target="_blank",b),"Learn more")]);else if(b==="PRIVACY_ISSUE"){e="Set the issue type to \u201cPrivacy Issue\u201d?";b={};f={};var h={};f=Zi([Xi('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}),$i("a",(b.href="http://goto.google.com/pib-slo",b.target=
"_blank",b),"Learn more"),Xi(".\n\nDO NOT use this type to file ",{preserveNewlines:!0}),$i("a",(f.href="http://goto.google.com/incident-response-policy",f.target="_blank",f),"privacy incidents"),Xi(". Incidents should be filed at ",{preserveNewlines:!0}),$i("a",(h.href="http://goto.google.com/privacy-incidents",h.target="_blank",h),"go/privacy-incidents"),Xi(".\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(){}})}};ZJ.\u0275fac=function(a){return new (a||ZJ)};ZJ.\u0275prov=Cd({token:ZJ,factory:ZJ.\u0275fac,providedIn:"root"});var DKc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,DKc.messageId)};Y(DKc,n);DKc.messageId="b.TimeZoneDataList";var $J=function(){var a=this;this.executor=r(PA);this.activeSession=r(Bs);this.cachedDisplayNames=void 0;this.memoizedTimezones=new Wyc(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?Nf(c):a.executor.get({url:"action/timezone/"+encodeURIComponent(b),responseConstructor:il}).pipe(C(lta))},10)};$J.prototype.get=function(a){return this.memoizedTimezones.get(a)};
var EKc=function(a){return a.cachedDisplayNames?Nf(hj(a.cachedDisplayNames)):a.executor.get({url:"action/timezone",responseConstructor:DKc}).pipe(C(function(b){b=Sj(b,il,1,Bj(),Nc).map(function(c){c=lta(c);var d=Uoc(Woc(c,new Date));return{id:c.timeZoneId_,displayName:"("+d+") - "+c.timeZoneId_,gmt:d}});return a.cachedDisplayNames=b}))};$J.\u0275fac=function(a){return new (a||$J)};$J.\u0275prov=Cd({token:$J,factory:$J.\u0275fac,providedIn:"root"});var aK=function(){this.butterBar=r(GJ);this.activeSession=r(Bs);this.$log=r(ME);this.timeout=r(wD)};
aK.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.":Ro(b)?Ro(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 bK=function(a,b){a.$log.warn(b);a.butterBar.showWarning(b)},cK=function(a,b){if(Qo(b))a.errorHandler(null,b);else throw b;};aK.\u0275fac=function(a){return new (a||aK)};aK.\u0275prov=Cd({token:aK,factory:aK.\u0275fac,providedIn:"root"});var FKc=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"]]),GKc=["P0","P1","P2","P3","P4"],HKc="NEW ASSIGNED ACCEPTED FIXED VERIFIED NOT_REPRODUCIBLE INTENDED_BEHAVIOR OBSOLETE INFEASIBLE DUPLICATE INACTIVE".split(" "),IKc="BUG FEATURE_REQUEST CUSTOMER_ISSUE INTERNAL_CLEANUP PROCESS VULNERABILITY PRIVACY_ISSUE PROGRAM PROJECT FEATURE MILESTONE EPIC STORY TASK".split(" "),JKc=["HIGH","MEDIUM","LOW","ZERO"],KKc=["SWE","SRE","PM","TPGM","UX"],LKc="SWE SRE PM TPGM UX UXD UXR DATASCI LD DEVREL TW GTM CE OTHER".split(" "),
MKc=["S0","S1","S2","S3","S4"],NKc=new Map([["PRIORITY_UNSPECIFIED","(Unspecified Priority)"],["P0","P0"],["P1","P1"],["P2","P2"],["P3","P3"],["P4","P4"]]),OKc=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"]]),PKc=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"]]),sOa=new Set("PROGRAM PROJECT MILESTONE FEATURE EPIC STORY TASK".split(" ")),QKc=IKc.map(function(a){return{value:a,displayText:tj(a),altText:FKc.get(a),icon:PKc.get(a),group:tOa(a)?1:0}}),dK=function(){this.priorities=GKc;this.severities=MKc;this.editIssueTypes=IKc;this.editIssueTypeChoices=QKc;this.issueTypesDisplayNames=OKc;this.issueTypesShortDescriptions=FKc;this.issuePrioritiesDisplayNames=NKc;this.issueTypeIcons=PKc;
this.supportedTimeZones=[{name:"Local time",id:""},{name:"UTC",id:"UTC"},{name:"America/Los_Angeles",id:"America/Los_Angeles"}];this.isWTDMType=tOa};dK.\u0275fac=function(a){return new (a||dK)};dK.\u0275prov=Cd({token:dK,factory:dK.\u0275fac,providedIn:"root"});var eK=function(){var a=r(iG),b=r($J),c=r(dK);Z.call(this);var d=this;this.errorHandler=r(aK);this.cachedFormatters=new Map;this.userPrefs=GA.dateTimePreferences;this.formatPrefChange$=new tg;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(yg(d.destroyed$));return Rf(f).then(function(h){return{name:e.name,timeZone:h}})})).then(function(e){e=l(e);for(var f=e.next();!f.done;f=
e.next())f=f.value,d.timeZones[f.name]=f.timeZone;a.preferences$.pipe(yg(d.destroyed$)).subscribe(function(h){h.dateTimePreferences&&(h=h.dateTimePreferences,d.userPrefs=h,d.userTimeZone=d.timeZones[h.timeZone],d.formatPrefChange$.next())})}).catch(function(e){d.errorHandler.errorHandler(null,e)})};Y(eK,Z);eK.\u0275dir=Z.\u0275dir;eK.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);d||(d=new Ll(a),this.cachedFormatters.set(a,d));return b?d.format(c,b):d.format(c)};
var RKc=function(a,b){return a.formatPrefChange$.subscribe(b)};eK.prototype.formatUserCalendar=function(a){return this.format(this.userPrefs.calendarFormat,this.userTimeZone,a)};eK.prototype.formatUserTime=function(a){return this.format(this.userPrefs.timeFormat,this.userTimeZone,a)};eK.\u0275fac=function(a){return new (a||eK)};eK.\u0275prov=Cd({token:eK,factory:eK.\u0275fac,providedIn:"root"});var fK=function(){this.dateFormatter=r(eK)};
fK.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(Il(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(Il(c))}).join(", ");if(a.repeatedEnumValue)return a.repeatedEnumValue.values.join(", ");
if(a.repeatedNumericValue)return a.repeatedNumericValue.values.join(", ")}return""};fK.\u0275fac=function(a){return new (a||fK)};fK.\u0275prov=Cd({token:fK,factory:fK.\u0275fac,providedIn:"root"});var gK=function(){this.customFieldFormatter=r(fK);this.hotlistFridge=r(cD);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"]},UKc=function(a,b,c,d){c=c===void 0?null:c;d=d===void 0?"":d;var e;b.bulkEditOps&&(e=rOa(b.bulkEditOps));var f=b.actions||[];!f.length&&b.bulkEditOps&&(f=qOa(b.bulkEditOps));b=SKc(f).map(function(h){return TKc(a,h,c,d)});b=b.filter(Boolean);if(!b.length)return"Issue(s) updated.";b=b.join(", ");return b=e?e.length==1?b+" on 1 issue.":b+(" on "+e.length+" issues."):
b+"."},SKc=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)},TKc=function(a,b,c,d){c=c===void 0?null:c;d=d===void 0?"":d;var e=a.FIELD_TEXT_MAP[b.fieldName]||b.fieldName,f=b.value||"<none>";b.customFieldValue?(d=b.customFieldValue,e=c[d.customFieldId].name||c[d.customFieldId].customFieldName,f=a.customFieldFormatter.format(d)||"<none>"):b.fieldName==="effortEstimate"&&d?e=d:e=a.FIELD_TEXT_MAP[b.fieldName]||
b.fieldName;b.fieldName==="hotlists"?f=b.value.split(",").map(function(h){var k,q;return(k=(q=a.hotlistFridge.peek(String(h)))==null?void 0:q.name)?"'"+k+"'":h}).join(","):a.ENUM_FIELDS.includes(b.fieldName)&&(f=f?mj(f.replace(/_/g," ").toLowerCase()):"");return b.actionType==="ADD"&&b.fieldName==="hotlists"?(f=f.replace(/,/g,", "),"Added issue to Hotlist ["+f+"]"):b.actionType==="REMOVE"&&b.fieldName==="hotlists"?(f=f.replace(/,/g,", "),"Removed issue from Hotlist ["+f+"]"):b.actionType==="ADD"&&
b.fieldName==="parentId"?"Added child issue(s) to parent ["+f+"]":b.actionType==="REMOVE"&&b.fieldName==="parentId"?"Unlinked child issue(s) from parent ["+f+"]":b.actionType||b.fieldName!=="status"?b.actionType||b.fieldName!=="comment"?b.actionType||b.fieldName!=="attachments"?b.actionType||b.fieldName!=="sloStartTime"?b.actionType||b.fieldName!=="sloEndTime"?b.actionType==="ADD"&&b.gerritChangeValue?(f=b.gerritChangeValue.map(function(h){return h.changeNumber}).join(", "),'"'+f+'" added to '+e):
b.actionType==="REMOVE"&&b.gerritChangeValue?(f=b.gerritChangeValue.map(function(h){return h.changeNumber}).join(", "),'"'+f+'" removed from '+e):b.actionType!=="ADD"||b.customFieldValue?b.actionType!=="REMOVE"||b.customFieldValue?b.fieldName==="isArchived"?b.value==="true"?"Archived successfully":"Unarchived successfully":e+' set to "'+f+'"':(f=f.replace(/,/g,", "),'"'+f+'" removed from '+e):(f=f.replace(/,/g,", "),'"'+f+'" added to '+e):b.value?"SLO End Time Set":"SLO End Time Unset":b.value?"SLO Start Time Set":
"SLO Start Time Unset":"":"Comment added":'Status set to "'+wl.get(b.value).displayValue+'"'};gK.\u0275fac=function(a){return new (a||gK)};gK.\u0275prov=Cd({token:gK,factory:gK.\u0275fac,providedIn:"root"});var vOa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(vOa,n);vOa.prototype.getContentJudgement=function(){return W(this,qq,2)};vOa.prototype.setContentJudgement=function(a){return X(this,qq,2,a)};var hK=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hK,n);hK.prototype.getIssueId=function(){return xk(this,1)};hK.prototype.getIssueId_asLegacyNumberOrString=function(){return Iu(this,1)};hK.prototype.getIssueId_asString=function(){return sk(this,1)};hK.prototype.setIssueId=function(a){return Uk(this,1,a)};var VKc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(VKc,n);g=VKc.prototype;g.getFilename=function(){return Rc(this,1)};g.setFilename=function(a){Qk(this,1,a)};g.getMimeType=function(){return Rc(this,2)};g.setMimeType=function(a){Qk(this,2,a)};g.getSize=function(){return xk(this,5)};g.setSize=function(a){return Ek(this,5,a)};var iK=function(){this.activeSession=r(Bs)},WKc=function(a){var b;if((a=(b=a.activeSession.getTracker())==null?void 0:b.trackerId)&&a!=="0")return[a]},or=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:XKc(a,b,!0,c.trackerId,d)):a=XKc(a,b,!1,"",d);return a},XKc=function(a,b,c,d,e){c=c===void 0?!1:c;d=d===void 0?"":d;a=a.activeSession.getAppBaseUrl(e===
void 0?!1:e);return c?a+b+"?tracker="+d:a+b},rs=function(a,b){var c=a.activeSession.getTracker();if(!b||!c)return b;var d;a=(d=b.componentPathId)!=null?d:[];var e;d=(e=b.componentPathName)!=null?e:[];e=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}},YKc=function(a,b){return b?a.filter(function(c){return c.trackerId===b}):a};
iK.\u0275fac=function(a){return new (a||iK)};iK.\u0275prov=Cd({token:iK,factory:iK.\u0275fac,providedIn:"root"});var jK=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,jK.messageId)};Y(jK,n);jK.prototype.getIt=function(){return W(this,am,14,Nc)};jK.prototype.setIt=function(a){return X(this,am,14,a,Nc)};jK.messageId="b.Attachment";var kK=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,kK.messageId)};Y(kK,n);kK.prototype.getAttachmentsList=function(){return Sj(this,jK,1,Bj(),Nc)};kK.prototype.setAttachmentsList=function(a){return Bm(this,1,a,Nc)};kK.prototype.addAllAttachments=function(a){bo(this,1,jK,a,Nc)};kK.messageId="b.CreateAttachmentsResponse";var lK=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,lK.messageId)};Y(lK,n);lK.prototype.getErrorMessage=function(){return Rc(this,2,void 0,Nc)};lK.prototype.setErrorMessage=function(a){Qk(this,2,a,Nc)};lK.messageId="b.EncryptedMediaResponse";var mK=function(){this.executor=r(QA);this.httpClient=r(bC);this.activeSession=r(Bs);this.trackerHelpers=r(iK)},ZKc=function(a,b){var c=new VKc;c.setFilename(b.filename);c.setMimeType(b.mimeType);b.encryptedBlobId!=null&&Qk(c,3,b.encryptedBlobId);Qk(c,4,b.docId);b.size!=null&&c.setSize(b.size);return a.executor.post({url:"action/issues/drive_attachment",body:c,responseConstructor:lK}).then(uOa)},aLc=function(a,b,c){var d=$Kc(a)+("/download/attachment/"+b+"/"+c);return Yf(function(){return fetch(d,
{credentials:"include",mode:"no-cors"})}).pipe(xg(function(){return a.httpClient.get(d,{observe:"events",responseType:"arraybuffer",withCredentials:!0}).pipe(C(function(e){if(e instanceof aC&&e.body)return e.body}))}))},$Kc=function(a){var b=/(g?bugs-qa\.chromium\.org)/,c=/g-issues\.(.*)\.(.*)\/$/,d=/[^-]issues\.(.*)\.(.*)\/$/,e=or(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()?ml(a.activeSession.session)?"https://buganizer.usercontent.corp.google.com":"https://buganizer-qa.usercontent.corp.google.com":"https://issuetracker.usercontent.google.com"};mK.\u0275fac=function(a){return new (a||mK)};mK.\u0275prov=Cd({token:mK,factory:mK.\u0275fac,providedIn:"root"});var nK=function(){this.executor=r(QA)};nK.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})};nK.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:jK}).then(xOa)};
nK.\u0275fac=function(a){return new (a||nK)};nK.\u0275prov=Cd({token:nK,factory:nK.\u0275fac,providedIn:"root"});var bLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bLc,n);g=bLc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getComment=function(){return W(this,ho,2)};g.setComment=function(a){return X(this,ho,2,a)};g.setSignificanceOverride=function(a){return Jj(this,3,a)};
g.getContentJudgement=function(){return W(this,Wl,4)};g.setContentJudgement=function(a){return X(this,Wl,4,a)};var cLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(cLc,n);g=cLc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getCommentNumber=function(){return Ej(this,2)};g.setCommentNumber=function(a){return Zj(this,2,a)};var dLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dLc,n);g=dLc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getCommentNumber=function(){return Ej(this,2)};g.setCommentNumber=function(a){return Zj(this,2,a)};g.getComment=function(){return W(this,ho,3)};
g.setComment=function(a){return X(this,ho,3,a)};var eLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(eLc,n);g=eLc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getCommentNumber=function(){return Ej(this,2)};g.setCommentNumber=function(a){return Zj(this,2,a)};g.getRestrictedRetention=function(){return pk(this,3)};
g.setRestrictedRetention=function(a){return Jj(this,3,a)};var oK=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,oK.messageId)};Y(oK,n);oK.prototype.getIt=function(){return W(this,tm,2,Nc)};oK.prototype.setIt=function(a){return X(this,tm,2,a,Nc)};oK.messageId="b.CommentReaction";var fLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(fLc,n);fLc.prototype.getIt=function(){return W(this,bLc,5)};fLc.prototype.setIt=function(a){return X(this,bLc,5,a)};var pK=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,pK.messageId)};Y(pK,n);pK.prototype.getIt=function(){return W(this,ho,19,Nc)};pK.prototype.setIt=function(a){return X(this,ho,19,a,Nc)};pK.messageId="b.IssueComment";var gLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gLc,n);gLc.prototype.getIssueCommentsList=function(){return Sj(this,ho,1,Bj())};var qK=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,qK.messageId)};Y(qK,n);qK.prototype.getIt=function(){return W(this,gLc,2,Nc)};qK.prototype.setIt=function(a){return X(this,gLc,2,a,Nc)};qK.messageId="b.ListIssueCommentHistoryResponse";var hLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hLc,n);hLc.prototype.getIt=function(){return W(this,dLc,5)};hLc.prototype.setIt=function(a){return X(this,dLc,5,a)};var iLc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(iLc,n);iLc.prototype.getIt=function(){return W(this,eLc,4)};iLc.prototype.setIt=function(a){return X(this,eLc,4,a)};var rK=function(){this.executor=r(PA)};g=rK.prototype;g.get=function(a,b,c){var d={};c&&(d["X-Restricted-Content-Limit"]=String(Kza(c)));return this.executor.get({url:"action/issues/"+a+"/comment/"+b,options:{headers:d},responseConstructor:pK}).pipe(C(VFa))};
g.create=function(a,b,c,d,e){var f={};e&&(f["G-Recaptcha-Response-Token"]=e);b=(new bLc).setIssueId(a).setComment((new ho).setComment(b).setFormattingMode(Cm(c)));d&&b.setContentJudgement(Bxa(d));d=(new fLc).setIt(b);return this.executor.post({url:"action/issues/"+a+"/comment",body:d,responseConstructor:null,options:{headers:f}})};
g.update=function(a,b,c,d,e){var f={};e&&(f["G-Recaptcha-Response-Token"]=e);b=(new hLc).setIt((new dLc).setIssueId(a).setCommentNumber(b).setComment((new ho).setComment(c).setFormattingMode(Cm(d))));return this.executor.post({url:"action/issues/"+a+"/updateComment",body:b,options:{headers:f},responseConstructor:null})};g.delete=function(a,b,c,d){return this.executor.delete({url:"action/issues/"+a+"/comment/"+b,options:{params:{reason:c},headers:{"If-Match":d}},responseConstructor:null})};
g.undelete=function(a,b,c){var d={};c!==void 0&&(d.comment_version=String(c));return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/undelete",body:null,options:{params:d},responseConstructor:pK}).pipe(C(VFa))};g.listHistory=function(a,b){var c=(new cLc).setIssueId(a).setCommentNumber(b);return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/listIssueCommentHistory",body:c,responseConstructor:qK}).pipe(C(WFa))};
g.updateCommentReaction=function(a){var b=a.issueId;var c=a.commentId;var d=a.reactionType;var e=a.hasReacted;var f;a=new oK;var h=a.setIt,k=new tm;d=(new Dm).setType((f=Wnc[d])!=null?f:0);f=pm(d,1,e);f=h.call(a,Po(k,2,Dm,f));return this.executor.post({url:"action/issues/"+b+"/comment/"+c+"/updateReaction",body:f,responseConstructor:oK}).pipe(C(XFa))};
g.updateRetention=function(a,b,c){c=(new iLc).setIt((new eLc).setIssueId(a).setCommentNumber(b).setRestrictedRetention(Oxa(c)));return this.executor.post({url:"action/issues/"+a+"/comment/"+b+"/update_retention",body:c,responseConstructor:pK}).pipe(C(VFa))};rK.\u0275fac=function(a){return new (a||rK)};rK.\u0275prov=Cd({token:rK,factory:rK.\u0275fac,providedIn:"root"});var sK=function(){this.observableApi=r(rK)};g=sK.prototype;g.get=function(a,b,c){return Rf(this.observableApi.get(a,b,c))};
g.create=function(a,b,c,d,e){return Rf(this.observableApi.create(a,b,c,d,e))};g.update=function(a,b,c,d,e){return Rf(this.observableApi.update(a,b,c,d,e))};g.delete=function(a,b,c,d){return Rf(this.observableApi.delete(a,b,c,d))};g.undelete=function(a,b,c){return Rf(this.observableApi.undelete(a,b,c))};g.listHistory=function(a,b){return Rf(this.observableApi.listHistory(a,b))};g.updateCommentReaction=function(a){return Rf(this.observableApi.updateCommentReaction(a))};
g.updateRetention=function(a,b,c){return Rf(this.observableApi.updateRetention(a,b,c))};sK.\u0275fac=function(a){return new (a||sK)};sK.\u0275prov=Cd({token:sK,factory:sK.\u0275fac,providedIn:"root"});var tK=function(){this.dialogRef=r(KJ);this.data=r(QJ);this.documentationLinks=r(JJ);this.userEmails=this.data.userEmails;this.readMoreLink=this.documentationLinks.baseDocumentationUrl+"/concepts/access-control#explicit_access_warnings"};tK.prototype.close=function(a){this.dialogRef.close(a)};tK.\u0275fac=function(a){return new (a||tK)};
tK.\u0275cmp=y({type:tK,selectors:[["confirm-no-access-dialog"]],standalone:!1,decls:19,vars:1,consts:[[1,"dialog-container"],["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],[1,"help-label"],["target","_blank",3,"href"],["type","button","mat-button","","color","primary",3,"click"],["type","button","mat-button","","color","primary","cdkFocusInitial","",3,"click"]],template:function(a,b){a&1&&(J(0,"div",0)(1,"h1",1),R(2,"User may not have access"),K(),J(3,"section",2)(4,
"p"),R(5," The following user(s) may not be able to edit, interact with, or get notifications about this issue: "),K(),J(6,"ul"),Pg(7,zOa,2,1,"li",null,Og),K(),J(9,"section"),R(10,"Continue anyway?"),K()(),J(11,"footer",3)(12,"div",4)(13,"a",5),R(14,"Learn more"),K()(),J(15,"button",6),N("click",function(){return b.close(!0)}),R(16,"Continue"),K(),J(17,"button",7),N("click",function(){return b.close(!1)}),R(18,"Cancel"),K()()());a&2&&(x(7),Qg(b.userEmails),x(6),I("href",b.readMoreLink,hf))},dependencies:[oG,
Jx,UJ,WJ,VJ],styles:["ul[_ngcontent-%COMP%]{list-style:disc;margin-bottom:10px}"]});var uK=function(){this.matDialogService=r(RJ);this.analytics=r(RE);this.butterBar=r(GJ);this.logger=r(ME);this.accessPolicy=r(rB)},kLc=function(a,b){var c=b.componentId;var d=b.userEmails;var e=b.relation;var f=b.analyticsEventLabel;var h,k,q;return z(function(v){switch(v.nextAddress){case 1:if(d.every(function(A){return A.length===0}))return v.return(!0);Gf(v,2);return B(v,jLc(a,c,d,e),4);case 4:h=v.yieldResult;if(h.length===0)return v.return(!0);a.analytics.trackEvent("addUserWithoutAccess","warn",
f);return B(v,a.confirm(h,e),5);case 5:k=v.yieldResult;if(!k)return Kq(a.butterBar,"Save cancelled.",4E3),a.analytics.trackEvent("addUserWithoutAccess","cancel",f),v.return(!1);a.analytics.trackEvent("addUserWithoutAccess","proceed",f);return v.return(!0);case 2:return q=Kf(v),a.logger.error(q),v.return(!1)}})},jLc=function(a,b,c,d){var e;return z(function(f){if(f.nextAddress==1)return B(f,a.accessPolicy.checkPermission(c,d,"ISSUE_DEFAULTS",b),2);e=f.yieldResult;return f.return([].concat(p(e.noAccessEmails||
[]),p(e.unknownEmails||[])))})};uK.prototype.confirm=function(a,b){var c=this,d,e,f;return z(function(h){if(h.nextAddress==1)return d={userEmails:a,relation:b},e=c.matDialogService.open(tK,{width:"400px",data:d}),B(h,Rf(LJ(e)),2);f=h.yieldResult;return h.return(!!f)})};uK.\u0275fac=function(a){return new (a||uK)};uK.\u0275prov=Cd({token:uK,factory:uK.\u0275fac,providedIn:"root"});var lLc=new le("GMAT_DIALOG_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var vK=function(){RJ.apply(this,arguments);this.gmatDialogOptions=r(lLc);this.defaultOptions=r(xKc,{optional:!0});this.additionalClasses=["gmat-mdc-dialog"]};Y(vK,RJ);vK.prototype.open=function(a,b){b=Object.assign({},this.defaultOptions||new wKc,b);if(this.gmatDialogOptions.disableGmatStyle)throw Error("Mc");b.panelClass=oi(b.panelClass||[]).concat(this.additionalClasses);return RJ.prototype.open.call(this,a,b)};vK.\u0275fac=function(){var a;return function(b){return(a||(a=Re(vK)))(b||vK)}}();
vK.\u0275prov=Cd({token:vK,factory:vK.\u0275fac,providedIn:"root"});var wK=function(){};wK.\u0275fac=function(a){return new (a||wK)};wK.\u0275mod=uf({type:wK});wK.\u0275inj=Dd({providers:[{provide:RJ,useClass:vK}],imports:[XJ]});var mLc=function(a,b){this.size=a;this.name=b;this.transferredBytes=0;this.errorMessage="";this.blobRef=null;this.state=1};mLc.prototype.cancel=function(){this.state=4};var nLc={UPLOADING:1,COMPLETE:2,ERROR:3,CANCELLED:4,1:"UPLOADING",2:"COMPLETE",3:"ERROR",4:"CANCELLED"};var xK=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};xK.prototype.reset=function(){this.value="";oLc(this)};var oLc=function(a){for(var b=l(a.uploads),c=b.next();!c.done;c=b.next())c.value.cancel();a.uploads=[]},pLc=function(a){return a.fromTemplate&&a.initialComment===a.value};
xK.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(hj(c.blobRef));return a};xK.prototype.hasContent=function(){return!(!this.value&&!this.uploads.length)};var qLc=function(a){return!a.isEmpty()&&!uNb(a)};xK.prototype.isEmpty=function(){return!this.value&&!rLc(this)};
var uNb=function(a){return a.uploads.some(function(b){return b.state===1||b.state===3})},rLc=function(a){return a.uploads.some(function(b){return b.state===2})};var sLc={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"}}},tLc=sLc;tLc=sLc;var uLc={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 vLc={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"},yK=vLc;yK=vLc;var zK=function(a){this.maximumIntegerDigits_=40;this.minimumIntegerDigits_=1;this.significantDigits_=0;this.maximumFractionDigits_=3;this.minExponentDigits_=this.minimumFractionDigits_=0;this.useSignForPositiveExponent_=!1;this.positiveSuffix_=this.positivePrefix_="";this.negativePrefix_=yK.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)};
zK.prototype.applyPattern_=function(a){this.pattern_=a.replace(/ /g,"\u00a0");var b=[0];this.positivePrefix_=wLc(this,a,b);for(var c=b[0],d=-1,e=0,f=0,h=0,k=-1,q=a.length,v=!0;b[0]<q&&v;b[0]++)switch(a.charAt(b[0])){case "#":f>0?h++:e++;k>=0&&d<0&&k++;break;case "0":if(h>0)throw Error("yd`"+a);f++;k>=0&&d<0&&k++;break;case ",":k>0&&this.groupingArray_.push(k);k=0;break;case ".":if(d>=0)throw Error("zd`"+a);d=e+f+h;break;case "E":if(this.useExponentialNotation_)throw Error("Ad`"+a);this.useExponentialNotation_=
!0;this.minExponentDigits_=0;b[0]+1<q&&a.charAt(b[0]+1)=="+"&&(b[0]++,this.useSignForPositiveExponent_=!0);for(;b[0]+1<q&&a.charAt(b[0]+1)=="0";)b[0]++,this.minExponentDigits_++;if(e+f<1||this.minExponentDigits_<1)throw Error("Bd`"+a);v=!1;break;default:b[0]--,v=!1}f==0&&e>0&&d>=0&&(f=d,f==0&&f++,h=e-f,e=f-1,f=1);if(d<0&&h>0||d>=0&&(d<e||d>e+f)||k==0)throw Error("Cd`"+a);h=e+f+h;this.maximumFractionDigits_=d>=0?h-d:0;d>=0&&(this.minimumFractionDigits_=e+f-d,this.minimumFractionDigits_<0&&(this.minimumFractionDigits_=
0));this.minimumIntegerDigits_=(d>=0?d:h)-e;this.useExponentialNotation_&&(this.maximumIntegerDigits_=e+this.minimumIntegerDigits_,this.maximumFractionDigits_==0&&this.minimumIntegerDigits_==0&&(this.minimumIntegerDigits_=1));this.groupingArray_.push(Math.max(0,k));this.decimalSeparatorAlwaysShown_=d==0||d==h;c=b[0]-c;this.positiveSuffix_=wLc(this,a,b);b[0]<a.length&&a.charAt(b[0])==";"?(b[0]++,this.multiplier_!=1&&(this.negativePercentSignExpected_=!0),this.negativePrefix_=wLc(this,a,b),b[0]+=c,
this.negativeSuffix_=wLc(this,a,b)):(this.negativePrefix_+=this.positivePrefix_,this.negativeSuffix_+=this.positiveSuffix_)};
zK.prototype.applyStandardPattern_=function(a){switch(a){case 1:this.applyPattern_(yK.DECIMAL_PATTERN);break;case 2:this.applyPattern_(yK.SCIENTIFIC_PATTERN);break;case 3:this.applyPattern_(yK.PERCENT_PATTERN);break;case 4:a=this.applyPattern_;var b=yK.CURRENCY_PATTERN;var c=["0"],d=uLc[yK.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:xLc(this,1);break;case 6:xLc(this,2);break;default:throw Error("sd");
}};var xLc=function(a,b){a.compactStyle_=b;a.applyPattern_(yK.DECIMAL_PATTERN);a.minimumFractionDigits_=0;a.maximumFractionDigits_=2;if(a.minimumFractionDigits_>0)throw Error("qd");a.significantDigits_=2};
zK.prototype.parse=function(a,b){b=b||[0];if(this.compactStyle_!==0)throw Error("td");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(yK.INFINITY,b[0])==b[0]){b[0]+=yK.INFINITY.length;var e=Infinity}else{e=
a;var f=!1,h=!1,k=!1,q=-1,v=1,A=yK.DECIMAL_SEP,E=yK.GROUP_SEP,H=yK.EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ud");E=E.replace(/\u202f/g,"\u00a0");for(var L="";b[0]<e.length;b[0]++){var O=e.charAt(b[0]),S=yLc(O);if(S>=0&&S<=9)L+=S,k=!0;else if(O==A.charAt(0)){if(f||h)break;L+=".";f=!0}else if(O==E.charAt(0)&&("\u00a0"!=E.charAt(0)||b[0]+1<e.length&&yLc(e.charAt(b[0]+1))>=0)){if(f||h)break}else if(O==H.charAt(0)){if(h)break;L+="E";h=!0;q=b[0]}else if(O=="+"||O=="-"){if(k&&q!=b[0]-1)break;L+=
O}else if(this.multiplier_==1&&O==yK.PERCENT.charAt(0)){if(v!=1)break;v=100;if(k){b[0]++;break}}else if(this.multiplier_==1&&O==yK.PERMILL.charAt(0)){if(v!=1)break;v=1E3;if(k){b[0]++;break}}else break}this.multiplier_!=1&&(v=this.multiplier_);e=parseFloat(L)/v}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};
zK.prototype.format=function(a){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("vd");if(isNaN(a))return yK.NAN;var b=[];var c=a;if(this.compactStyle_==0)c=zLc;else{c=Math.abs(c);var d=ALc(this,c<=1?0:BLc(c)).divisorBase;c=ALc(this,d+BLc(CLc(this,AK(c,-d)).intValue))}a=AK(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)DLc(this,e,this.minimumIntegerDigits_,b),ELc(this,0,b);else{var f=Math.floor(Math.log(e)/Math.log(10)+2E-15);e=AK(e,-f);var h=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(h=f%this.maximumIntegerDigits_,h<0&&(h=this.maximumIntegerDigits_+h),e=AK(e,h),f-=h,h=1):this.minimumIntegerDigits_<1?(f++,e=AK(e,-1)):(f-=this.minimumIntegerDigits_-1,e=AK(e,this.minimumIntegerDigits_-
1));DLc(this,e,h,b);ELc(this,f,b)}}else DLc(this,a,this.minimumIntegerDigits_,b);else b.push(yK.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 CLc=function(a,b){var c=AK(b,a.maximumFractionDigits_);a.significantDigits_>0&&(c=FLc(c,a.significantDigits_,a.maximumFractionDigits_));c=Math.round(c);if(isFinite(c)){var d=Math.floor(AK(c,-a.maximumFractionDigits_));c=Math.floor(c-AK(d,a.maximumFractionDigits_));if(c<0||c>=AK(1,a.maximumFractionDigits_))d=Math.round(b),c=0}else d=b,c=0;return{intValue:d,fracValue:c}},DLc=function(a,b,c,d){if(a.minimumFractionDigits_>a.maximumFractionDigits_)throw Error("vd");d||(d=[]);b=CLc(a,b);var e=b.intValue,
f=b.fracValue,h=a.minimumFractionDigits_>0||f>0||!1;b=a.minimumFractionDigits_;h&&(b=a.minimumFractionDigits_);for(var k="",q=e;q>1E20;)k="0"+k,q=Math.round(AK(q,-1));k=q+k;var v=yK.DECIMAL_SEP;q=yK.ZERO_DIGIT.codePointAt(0);var A=k.length,E=0;if(e>0||c>0){for(e=A;e<c;e++)d.push(String.fromCodePoint(q));if(a.groupingArray_.length>=2)for(c=1;c<a.groupingArray_.length;c++)E+=a.groupingArray_[c];c=A-E;if(c>0){e=a.groupingArray_;E=A=0;for(var H,L=yK.GROUP_SEP,O=k.length,S=0;S<O;S++)if(d.push(String.fromCodePoint(q+
Number(k.charAt(S)))),O-S>1)if(H=e[E],S<c){var aa=c-S;(H===1||H>0&&aa%H===1)&&d.push(L)}else E<e.length&&(S===c?E+=1:H===S-c-A+1&&(d.push(L),A+=H,E+=1))}else{c=k;k=a.groupingArray_;e=yK.GROUP_SEP;H=c.length;L=[];for(A=k.length-1;A>=0&&H>0;A--){E=k[A];for(O=0;O<E&&H-O-1>=0;O++)L.push(String.fromCodePoint(q+Number(c.charAt(H-O-1))));H-=E;H>0&&L.push(e)}d.push.apply(d,L.reverse())}}else h||d.push(String.fromCodePoint(q));(a.decimalSeparatorAlwaysShown_||h)&&d.push(v);f=String(f);h=f.split("e+");h.length==
2&&(f=String(FLc(parseFloat(h[0]),a.significantDigits_,1)),f=f.replace(".",""),f+=Hfc("0",parseInt(h[1],10)-f.length+1));a.maximumFractionDigits_+1>f.length&&(f="1"+Hfc("0",a.maximumFractionDigits_-f.length)+f);for(a=f.length;f.charAt(a-1)=="0"&&a>b+1;)a--;for(b=1;b<a;b++)d.push(String.fromCodePoint(q+Number(f.charAt(b))))},ELc=function(a,b,c){c.push(yK.EXP_SYMBOL);b<0?(b=-b,c.push(yK.MINUS_SIGN)):a.useSignForPositiveExponent_&&c.push(yK.PLUS_SIGN);b=""+b;for(var d=yK.ZERO_DIGIT,e=b.length;e<a.minExponentDigits_;e++)c.push(d);
a=d.codePointAt(0)-GLc;for(d=0;d<b.length;d++)c.push(String.fromCodePoint(a+b.codePointAt(d)))},yLc=function(a){a=a.codePointAt(0);if(48<=a&&a<58)return a-48;var b=yK.ZERO_DIGIT.codePointAt(0);return b<=a&&a<b+10?a-b:-1},GLc="0".codePointAt(0),wLc=function(a,b,c){for(var d="",e=!1,f=b.length;c[0]<f;c[0]++){var h=b.charAt(c[0]);if(h=="'")c[0]+1<f&&b.charAt(c[0]+1)=="'"?(c[0]++,d+="'"):e=!e;else if(e)d+=h;else switch(h){case "#":case "0":case ",":case ".":case ";":return d;case "\u00a4":c[0]+1<f&&b.charAt(c[0]+
1)=="\u00a4"?(c[0]++,d+=yK.DEF_CURRENCY_CODE):(h=yK.DEF_CURRENCY_CODE,d+=h in uLc?uLc[h][1]:h);break;case "%":if(!a.negativePercentSignExpected_&&a.multiplier_!=1)throw Error("wd");if(a.negativePercentSignExpected_&&a.multiplier_!=100)throw Error("xd");a.multiplier_=100;a.negativePercentSignExpected_=!1;d+=yK.PERCENT;break;case "\u2030":if(!a.negativePercentSignExpected_&&a.multiplier_!=1)throw Error("wd");if(a.negativePercentSignExpected_&&a.multiplier_!=1E3)throw Error("xd");a.multiplier_=1E3;a.negativePercentSignExpected_=
!1;d+=yK.PERMILL;break;default:d+=h}}return d},zLc={divisorBase:0,negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},ALc=function(a,b){a=a.compactStyle_==1?tLc.COMPACT_DECIMAL_SHORT_PATTERN:tLc.COMPACT_DECIMAL_LONG_PATTERN;a==null&&(a=tLc.COMPACT_DECIMAL_SHORT_PATTERN);if(b<3)return zLc;b=Math.min(14,b);var c=a[AK(1,b)];for(--b;!c&&b>=3;)c=a[AK(1,b)],b--;if(!c)return zLc;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]}:zLc:zLc},BLc=function(a){if(!isFinite(a))return a>0?a:0;for(var b=0;(a/=10)>=1;)b++;return b},AK=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))},HLc=function(a,b){return a&&isFinite(a)?AK(Math.round(AK(a,b)),-b):a},FLc=function(a,b,c){if(!a)return a;b=b-BLc(a)-1;return b<-c?
HLc(a,-c):HLc(a,b)};var ILc=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"},JLc=ILc;JLc=ILc;var KLc=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"},LLc=KLc;LLc=KLc;var DOa=function(a){this.pattern_=a;this.parsedPattern_=this.literals_=this.initialLiterals_=null;a=yK;var b=tLc;if(MLc!==a||NLc!==b)MLc=a,NLc=b,OLc=new zK(1);this.numberFormatter_=OLc},MLc=null,NLc=null,OLc=null,PLc=RegExp("'([{}#].*?)'","g"),QLc=RegExp("''","g");DOa.prototype.format=function(a){return this.format_(a,!1)};
DOa.prototype.format_=function(a,b){if(this.pattern_){this.initialLiterals_=[];var c=RLc(this,this.pattern_);this.parsedPattern_=SLc(this,c);this.pattern_=null}if(!this.parsedPattern_||this.parsedPattern_.length==0)return"";this.literals_=Ja(this.initialLiterals_);c=[];TLc(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 TLc=function(a,b,c,d,e){for(var f=0;f<b.length;f++)switch(b[f].type){case 4:e.push(b[f].value);break;case 3:var h=b[f].value;var k=a,q=e,v=c[h];v===void 0?q.push("Undefined parameter - "+h):(k.literals_.push(v),q.push(k.buildPlaceholder_(k.literals_)));break;case 2:h=b[f].value;k=a;q=c;v=d;var A=e,E=h.argumentIndex;q[E]===void 0?A.push("Undefined parameter - "+E):(E=h[q[E]],E===void 0&&(E=h.other),TLc(k,E,q,v,A));break;case 0:h=b[f].value;ULc(a,h,c,LLc,d,e);break;case 1:h=b[f].value,ULc(a,h,c,
JLc,d,e)}},ULc=function(a,b,c,d,e,f){var h=b.argumentIndex,k=b.argumentOffset,q=+c[h];isNaN(q)?f.push("Undefined or invalid parameter - "+h):(k=q-k,h=b[c[h]],h===void 0&&(d=d(Math.abs(k)),h=b[d],h===void 0&&(h=b.other)),b=[],TLc(a,h,c,e,b),c=b.join(""),e?f.push(c):(a=a.numberFormatter_.format(k),f.push(c.replace(/#/g,a))))},RLc=function(a,b){var c=a.initialLiterals_,d=a.buildPlaceholder_.bind(a);b=b.replace(QLc,function(){c.push("'");return d(c)});return b=b.replace(PLc,function(e,f){c.push(f);return d(c)})},
VLc=function(a){var b=0,c=[],d=[],e=/[{}]/g;e.lastIndex=0;for(var f;f=e.exec(a);){var h=f.index;f[0]=="}"?(c.pop(),c.length==0&&(f={type:1},f.value=a.substring(b,h),d.push(f),b=h+1)):(c.length==0&&(b=a.substring(b,h),b!=""&&d.push({type:0,value:b}),b=h+1),c.push("{"))}a=a.substring(b);a!=""&&d.push({type:0,value:a});return d},WLc=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,XLc=/^\s*(\w+)\s*,\s*selectordinal\s*,/,YLc=/^\s*(\w+)\s*,\s*select\s*,/,SLc=function(a,b){var c=[];b=VLc(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(WLc.test(f)?0:XLc.test(f)?1:YLc.test(f)?2:/^\s*\w+\s*/.test(f)?3:5){case 2:e.type=2;e.value=ZLc(a,b[d].value);break;case 0:e.type=0;e.value=$Lc(a,b[d].value);break;case 1:e.type=1;e.value=aMc(a,b[d].value);break;case 3:e.type=3,e.value=b[d].value}}c.push(e)}return c},ZLc=function(a,b){var c="";b=b.replace(YLc,function(k,q){c=q;return""});var d={};d.argumentIndex=c;b=VLc(b);for(var e=0;e<
b.length;){var f=b[e].value;e++;var h=void 0;1==b[e].type&&(h=SLc(a,b[e].value));d[f.replace(/\s/g,"")]=h;e++}return d},$Lc=function(a,b){var c="",d=0;b=b.replace(WLc,function(q,v,A){c=v;A&&(d=parseInt(A,10));return""});var e={};e.argumentIndex=c;e.argumentOffset=d;b=VLc(b);for(var f=0;f<b.length;){var h=b[f].value;f++;var k=void 0;1==b[f].type&&(k=SLc(a,b[f].value));e[h.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=k;f++}return e},aMc=function(a,b){var c="";b=b.replace(XLc,function(k,q){c=q;return""});var d=
{};d.argumentIndex=c;d.argumentOffset=0;b=VLc(b);for(var e=0;e<b.length;){var f=b[e].value;e++;var h=void 0;1==b[e].type&&(h=SLc(a,b[e].value));d[f.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=h;e++}return d};DOa.prototype.buildPlaceholder_=function(a){return"\ufddf_"+(a.length-1).toString(10)+"_"};var BK=function(){var a=this;this.userPreferencesManager=r(iG);this.timeZonesApi=r($J);this.cachedFormatters=new PC(100,!0);this.userDatePrefs$=this.userPreferencesManager.dateTimePreferences$;this.userCalendarFormat$=this.userDatePrefs$.pipe(C(function(b){return b.calendarFormat||"MMM d, yyyy"}));this.userTimeFormat$=this.userDatePrefs$.pipe(C(function(b){return b.timeFormat||"hh:mma"}));this.userTimeZone$=this.userDatePrefs$.pipe(xg(function(b){return b.timeZone?a.timeZonesApi.get(b.timeZone):Nf(void 0)}))};
BK.prototype.format=function(a,b,c){var d=this.cachedFormatters.get(a);d===void 0&&(d=new Ll(a),this.cachedFormatters.set(a,d));return b?d.format(c,b):d.format(c)};BK.prototype.formatUserCalendar=function(a){var b=this;return Uf([this.userCalendarFormat$,this.userTimeZone$]).pipe(C(function(c){var d=l(c);c=d.next().value;d=d.next().value;return b.format(c,d,a)}))};
BK.prototype.formatUserTime=function(a){var b=this;return Uf([this.userTimeFormat$,this.userTimeZone$]).pipe(C(function(c){var d=l(c);c=d.next().value;d=d.next().value;return b.format(c,d,a)}))};
var bMc=function(a,b){return Uf([a.userCalendarFormat$,a.userTimeFormat$,a.userTimeZone$]).pipe(C(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)}))},cMc=function(a,b,c){return c?a.timeZonesApi.get(c).pipe(C(function(d){return a.format("yyyy-MM-dd HH:mm:ss Z",d,b)})):Nf(a.format("yyyy-MM-dd HH:mm:ss Z",void 0,b))},Q6a=function(a,b){var c=void 0;c=c===void 0?0:c;b=b===void 0?!1:b;var d=new jj;c&&d.setTime(c);c=new jj;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 hv("m",a)),e=Math.floor((c.getTime()-d.getTime())/864E5));d=new hv(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"};BK.\u0275fac=function(a){return new (a||BK)};BK.\u0275prov=Cd({token:BK,factory:BK.\u0275fac,providedIn:"root"});var CK=function(){Z.apply(this,arguments);this.router=r(vC);this.activatedRoute=r(Jn);this.params={};this.routeParams$=new Kn({});this.issueId$=this.routeParams$.pipe(C(function(a){return a.issueId}),og());this.assignParams.bind(this)};Y(CK,Z);CK.\u0275dir=Z.\u0275dir;
var dMc=function(a){a.activatedRoute.queryParams.pipe(yg(a.destroyed$)).subscribe(function(b){a.assignParams(a.routeParams$.value,b)});a.router.events.pipe(eg(function(b){return b instanceof PCa}),C(function(b){return b}),yg(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)})},DK=function(a,b){return a.routeParams$.pipe(C(function(c){return c[b]}))};
CK.prototype.assignParams=function(a,b){for(var c=l(Object.keys(this.params)),d=c.next();!d.done;d=c.next())delete this.params[EOa(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[EOa(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[EOa(b)]=c};CK.\u0275fac=function(){var a;return function(b){return(a||(a=Re(CK)))(b||CK)}}();
CK.\u0275prov=Cd({token:CK,factory:CK.\u0275fac,providedIn:"root"});var EK=new le("routeParams",{factory:function(){return r(CK).params}});var FK=function(){this.routeParams=r(EK);this.issueComments=r(sK);this.draftStore=r(IJ);this.errorHandler=r(aK);this.activeSession=r(Bs);this.dateFormatter=r(BK)};
FK.prototype.get=function(a){var b=this;if(this.routeParams.comment)return Nf(this.routeParams.comment);var c=this.routeParams.template_issue;if(c){var d=Number(this.routeParams.template_comment)||1;return Yf(function(){return eMc(b,c,d,b.routeParams.do_attribution)})}return a?Nf(this.draftStore.$window.sessionStorage.getItem(mq(a))||""):Nf("")};
var eMc=function(a,b,c,d){var e,f,h,k,q,v,A;return z(function(E){switch(E.nextAddress){case 1:return Gf(E,2),B(E,a.issueComments.get(b,c),4);case 4:return e=E.yieldResult,f=e.unlinkifiedComment,h=e.formattedComment,k="",f?k=f:h&&(k=Bva(h)),B(E,Rf(a.dateFormatter.formatUserCalendar(new Date(Number(e.lastModified)/1E3))),5);case 5:return q=E.yieldResult,d?(v="> From issue "+b+" on "+q+":",E.return(v+"\n\n"+k)):E.return(k);case 2:return A=Kf(E),cK(a.errorHandler,A),E.return("")}})};
FK.\u0275fac=function(a){return new (a||FK)};FK.\u0275prov=Cd({token:FK,factory:FK.\u0275fac,providedIn:"root"});var fMc=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 ip(f.comment$)};this.judgementForNewContent=function(){return ip(f.judgementForNewContent$)};this.issue$=this.issueFullFridge.watch(this.issueId);this.componentId$=this.issue$.pipe(C(function(k){return k==null?void 0:k.snapshot[0].componentId}),og());var h=OA(this.activeSession,"enableLiteralModeRevisions");this.comment$=
this.defaultCommentSource.get(this.issueId).pipe(wg(""),og(),Ag(this.userPreferencesManager.lastPublishModeProto$,this.userPreferencesManager.currentCommentFormattingMode$),C(function(k){var q=l(k);var v=q.next().value;k=q.next().value;q=q.next().value;v=new xK(v);v.formattingMode=h?q:k;return v}),ug({bufferSize:1,refCount:!0}));this.createRestrictedResourcesComponentIds=this.activeSession.getCreateRestrictedSubresourcesComponentIds();this.componentJudgementForNewContent$=this.componentId$.pipe(C(function(k){if(k&&
f.createRestrictedResourcesComponentIds.includes(k))return{severity:"RESTRICTED",judgementReason:"None Specified"}}),ug({bufferSize:1,refCount:!0}));this.userDefinedJudgementForNewContent$=new Kn(void 0);this.judgementForNewContent$=Uf([this.componentJudgementForNewContent$.pipe(wg(void 0)),this.userDefinedJudgementForNewContent$]).pipe(C(function(k){var q=l(k);k=q.next().value;q=q.next().value;return q!=null?q:k}),ug({bufferSize:1,refCount:!0}))};fMc.prototype.setJudgementForNewContent=function(a){this.userDefinedJudgementForNewContent$.next(a)};
var gMc=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=hj({attachment:f.blobRef}),d&&(f.contentJudgement={severity:d.severity,judgementReason:d.judgementReason}),e.push(f));return{judgementForNewContent:d,commentText:a,formattingMode:c,attachmentsWithJudgements:e}},hMc=function(a){var b=
gMc(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},GK=function(){this.defaultCommentSource=r(FK);this.issueFullFridge=r(TE);this.activeSession=r(Bs);this.userPreferencesManager=r(iG)};GK.prototype.create=function(a){return new fMc(a,this.defaultCommentSource,this.issueFullFridge,this.activeSession,this.userPreferencesManager)};
GK.\u0275fac=function(a){return new (a||GK)};GK.\u0275prov=Cd({token:GK,factory:GK.\u0275fac,providedIn:"root"});var HK=function(){};HK.prototype.isSloStartTimeApplied=function(a){return!!a&&a.seconds>Date.now()/1E3};
var IK=function(a){return!!a&&!!a.targetTime&&a.targetTime.seconds!==0},iMc=function(a){return IK(a.assignmentBounds)||IK(a.responseBounds)||IK(a.closureBounds)},jMc=function(a,b){switch(b){case "ASSIGNMENT":return IK(a.assignmentBounds);case "RESPONSE":return IK(a.responseBounds);case "CLOSURE":return IK(a.closureBounds);default:return iMc(a)}},kMc=function(a){if(!a)return null;var b=[],c=[];a.assignmentBounds&&FOa(b,c,a.assignmentBounds,"ASSIGNMENT");a.responseBounds&&FOa(b,c,a.responseBounds,"RESPONSE");
a.closureBounds&&FOa(b,c,a.closureBounds,"CLOSURE");return b.length>0?(b.sort(GOa),b[0]):c.length>0?(c.sort(GOa),{sloBounds:c[0].sloBounds,sloMetric:""}):null};HK.\u0275fac=function(a){return new (a||HK)};HK.\u0275prov=Cd({token:HK,factory:HK.\u0275fac,providedIn:"root"});var lMc=function(a,b,c,d,e){var f=this;this.issueId=a;this.issueFullFridge=b;this.constants=c;this.activeSession=d;this.sloStatusHelpersService=e;this.enableNonWtdmFieldPerTypeVisibility=OA(this.activeSession,"enableNonWtdmFieldPerTypeVisibility")||!1;this.showSloStatus=this.activeSession.isInternalSession();this.showChangelists=!this.activeSession.isExternalSession();this.issue$=this.issueFullFridge.watch(this.issueId);this.issueSnapshot$=this.issue$.pipe(C(function(h){return h==null?void 0:h.snapshot[0]}));
this.hasSloDefined$=this.issue$.pipe(C(function(h){var k;return h==null?void 0:(k=h.aggregatedData)==null?void 0:k.sloStatus}),C(function(h){return!!h&&iMc(h)}));this.isWtdmType$=this.issueSnapshot$.pipe(C(function(h){return(h==null?void 0:h.type)!=null&&f.constants.isWTDMType(h.type)}));this.isForgottenFourPrimary$=this.isWtdmType$.pipe(C(function(h){return!h&&!f.enableNonWtdmFieldPerTypeVisibility}));this.isSloStatusPrimary$=Uf([this.hasSloDefined$,this.isWtdmType$]).pipe(C(function(h){var k=l(h);
h=k.next().value;k=k.next().value;return h||!k}));this.isSeverityPrimary$=this.isWtdmType$.pipe(C(function(h){return!h}));this.isChangelistPrimary$=Uf([this.isWtdmType$,this.issueSnapshot$]).pipe(C(function(h){var k=l(h);h=k.next().value;k=k.next().value;return!h||(k==null?void 0:k.type)==="STORY"||(k==null?void 0:k.type)==="TASK"}));this.customFields$=this.issue$.pipe(C(function(h){var k;return(k=h==null?void 0:h.customFields)!=null?k:[]}));this.visibleFields$=this.issue$.pipe(C(function(h){var k;
return(k=h==null?void 0:h.visibleFields)!=null?k:[]}));this.visibleFieldIds$=this.visibleFields$.pipe(C(function(h){return h.map(function(k){return k.customFieldId}).filter(Qj)}),C(function(h){return new Set(h)}),ug({refCount:!0,bufferSize:1}));this.visibleCustomFields$=Uf([this.visibleFieldIds$,this.customFields$]).pipe(C(function(h){h=l(h);var k=h.next().value;return h.next().value.filter(function(q){return k.has(q.customFieldId)})}),ug({refCount:!0,bufferSize:1}));this.hiddenCustomFields$=Uf([this.visibleFieldIds$,
this.customFields$]).pipe(C(function(h){h=l(h);var k=h.next().value;return h.next().value.filter(function(q){return!k.has(q.customFieldId)})}),ug({refCount:!0,bufferSize:1}));this.hiddenFieldCount$=Uf([this.isForgottenFourPrimary$,this.isSeverityPrimary$,this.isSloStatusPrimary$,this.isChangelistPrimary$,this.hiddenCustomFields$]).pipe(C(function(h){var k=l(h);h=k.next().value;var q=k.next().value;var v=k.next().value;var A=k.next().value;k=k.next().value;return(h?0:4)+(q?0:1)+(!f.showSloStatus||
v?0:1)+(!f.showChangelists||A?0:2)+k.length}),ug({refCount:!0,bufferSize:1}));this.hasHiddenFields$=this.hiddenFieldCount$.pipe(C(function(h){return h>0}));this.showHiddenFieldsLabel$=this.hiddenFieldCount$.pipe(C(function(h){return h===1?"Show 1 additional field":"Show "+h+" additional fields"}))},JK=function(){this.issueFullFridge=r(TE);this.constants=r(dK);this.activeSession=r(Bs);this.sloStatusHelpersService=r(HK)};
JK.prototype.create=function(a){return new lMc(a,this.issueFullFridge,this.constants,this.activeSession,this.sloStatusHelpersService)};JK.\u0275fac=function(a){return new (a||JK)};JK.\u0275prov=Cd({token:JK,factory:JK.\u0275fac,providedIn:"root"});var KK=function(){Z.apply(this,arguments);this.analytics=r(RE);this.clearcut=r(FE);this.userActivity=r(OE);this.stopActivityTracking$=new tg;this.issueToTrackingState=new Map;this.getState=nj(this.issueToTrackingState,HOa);this.trackFirstAction=this.analytics.preapply()("first-action");this.trackEdit=this.analytics.preapply()("edit");this.trackNavigation=this.analytics.preapply()("navigate");this.trackDestroy=this.analytics.preapply()("destroyed");this.onUserActiveStatusUpdate.bind(this)};Y(KK,Z);
KK.\u0275dir=Z.\u0275dir;var mMc=function(a,b){a.getState(b);a.userActivity.active$.pipe(og(),yg(a.stopActivityTracking$)).subscribe(function(c){return void a.onUserActiveStatusUpdate(b,c)})},Mq=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),nMc(a,c,"idp-time-to-action",b.variations),d.firstActionSeen=!0)};
KK.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)){GE(this.clearcut,d,"idp-session-time");b=this.clearcut;var e=c.sessionStartTime;d=Date.now();a=(new Ewc).setIssueId(a).setUserAction(1).setEnvironmentType(b.environmentType).setFrontendAccessMode(b.frontendAccessMode);var f=new Dwc,h=new Cwc;e=Fec(h,1,e);d=Fec(e,2,d);d=X(f,Cwc,1,d);a=X(a,Dwc,2,d);uE(b.clearcutTransport.transport,a);c.sessionStartTime=
Date.now()}};var vs=function(a,b,c){a.getState(b).variations.add(c)},nMc=function(a,b,c,d){GE(a.clearcut,b,c);d=l(d);for(var e=d.next();!e.done;e=d.next())GE(a.clearcut,b,c+"-"+e.value)};KK.prototype.resetState=function(a){this.issueToTrackingState.delete(a)};KK.\u0275fac=function(){var a;return function(b){return(a||(a=Re(KK)))(b||KK)}}();KK.\u0275prov=Cd({token:KK,factory:KK.\u0275fac,providedIn:"root"});var LK=function(){var a=r(QE);Z.call(this);var b=this;this.paramsService=r(CK);this.issueFullFridge=r(TE);this.componentIdOverride$=new Kn(null);this.hotlistIdOverride$=new Kn(null);this.issueIdOverride$=new Kn(null);this.teamIdOverride$=new Kn(null);this.routeIssueId$=this.paramsService.issueId$.pipe(C(JOa),ug({refCount:!0,bufferSize:1}));this.routeComponentId$=DK(this.paramsService,"componentId").pipe(og());this.routeHotlistId$=DK(this.paramsService,"hotlistId").pipe(og());this.routeTeamId$=DK(this.paramsService,
"teamId").pipe(og());this.issueId$=Uf([this.issueIdOverride$,this.routeIssueId$]).pipe(C(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c||d}),C(JOa),og(),ug({refCount:!0,bufferSize:1}));this.componentIdFromIssueId$=this.issueId$.pipe(xg(function(c){return c?b.issueFullFridge.watch(c):Nf(void 0)}),C(function(c){return c==null?void 0:c.snapshot[0].componentId}));this.teamIdFromIssueId$=this.issueId$.pipe(xg(function(c){return c?b.issueFullFridge.watch(c):Nf(void 0)}),C(function(c){var d;
return c==null?void 0:(d=c.aggregatedData)==null?void 0:d.teamId}));this.componentId$=Uf([this.componentIdOverride$,this.routeComponentId$,this.componentIdFromIssueId$]).pipe(C(function(c){var d=l(c);c=d.next().value;var e=d.next().value;d=d.next().value;return c||e||d||null}),og(),ug({refCount:!0,bufferSize:1}));this.teamId$=Uf([this.teamIdOverride$,this.routeTeamId$,this.teamIdFromIssueId$]).pipe(C(function(c){var d=l(c);c=d.next().value;var e=d.next().value;d=d.next().value;return c||e||d}),C(JOa),
og(),ug({refCount:!0,bufferSize:1}));this.hotlistId$=Uf([this.hotlistIdOverride$,this.routeHotlistId$]).pipe(C(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c||d}),C(IOa),og(),ug({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){Go("dimension4",c)}));
this.subscriptions.add(this.teamId$.subscribe(function(c){Go("dimension1",c)}))};Y(LK,Z);LK.\u0275dir=Z.\u0275dir;LK.prototype.getComponentId=function(){return this.componentId$};LK.prototype.getHotlistId=function(){return this.hotlistId$};LK.prototype.getIssueId=function(){return this.issueId$};LK.prototype.getTeamId=function(){return this.teamId$};LK.\u0275fac=function(a){return new (a||LK)};LK.\u0275prov=Cd({token:LK,factory:LK.\u0275fac,providedIn:"root"});var MK=function(){var a=this;this.issueFullFridge=r(TE);this.teamFridge=r(YF);this.componentFridge=r(BB);this.eventsForIssue=r(TD);this.activatedRoute=r(Jn);this.contextSensitiveRegistry=r(LK);this.id$=this.contextSensitiveRegistry.getIssueId().pipe(C(function(b){return b||void 0}));this.urlComment$=this.activatedRoute.fragment.pipe(C(BPa),ug({refCount:!0,bufferSize:1}));this.issueJs$=this.id$.pipe(xg(function(b){return b?a.issueFullFridge.watch(b):Nf(void 0)}),ug({refCount:!0,bufferSize:1}));this.eventsJs$=
this.id$.pipe(xg(function(b){return b?a.eventsForIssue.watch(b):Nf(void 0)}),C(function(b){var c;return(c=b==null?void 0:b.events)!=null?c:[]}));this.starred$=this.issueJs$.pipe(C(POa));this.lastViewedTimeMicros$=this.issueJs$.pipe(C(QOa));this.lastViewedTimeMicros$.pipe(C(function(b){return!b}));this.title$=this.issueJs$.pipe(C(ROa));this.issueJs$.pipe(C(iPa));this.accessLimitLevel$=this.issueJs$.pipe(C(ZOa));this.voted$=this.issueJs$.pipe(C(jPa));this.status$=this.issueJs$.pipe(C(SOa));this.priority$=
this.issueJs$.pipe(C(TOa));this.assignee$=this.issueJs$.pipe(C(UOa));this.issueJs$.pipe(C(VOa));this.teamId$=this.issueJs$.pipe(C(WOa));this.team$=this.teamId$.pipe(xg(function(b){return b?a.teamFridge.watch(b):Nf(void 0)}),ug({refCount:!0,bufferSize:1}));this.ccUsers$=this.issueJs$.pipe(C(YOa));this.collaboratorsUsers$=this.issueJs$.pipe(C($Oa));this.issueJs$.pipe(C(function(b){var c,d;return(d=(c=vl(b))==null?void 0:c.severity)!=null?d:void 0}));this.type$=this.issueJs$.pipe(C(aPa));this.issueJs$.pipe(C(bPa));
this.issueJs$.pipe(C(cPa));this.issueJs$.pipe(C(dPa));this.postmortems$=this.issueJs$.pipe(C(ePa));this.postmortems$.pipe(C(function(b){return b.length>0}));this.issueJs$.pipe(C(fPa));this.effort$=this.issueJs$.pipe(C(gPa));this.staffing$=this.issueJs$.pipe(C(hPa));this.isDeleted$=this.issueJs$.pipe(C(lPa));this.accessLevel$=this.issueJs$.pipe(C(nPa));this.modifiedTime$=this.issueJs$.pipe(C(oPa));this.issueJs$.pipe(C(qPa));this.retentionState$=this.issueJs$.pipe(C(tPa));this.canonicalIssueId$=this.issueJs$.pipe(C(rPa));
this.sloStatus$=this.issueJs$.pipe(C(function(b){var c;return b==null?void 0:(c=b.aggregatedData)==null?void 0:c.sloStatus}));this.sloId$=this.issueJs$.pipe(C(uPa));this.createdTimeMicros$=this.issueJs$.pipe(C(vPa));this.componentId$=this.issueJs$.pipe(C(XOa));this.component$=this.componentId$.pipe(xg(function(b){return b?a.componentFridge.watch(b):Nf(void 0)}));this.teamSuggestions$=this.component$.pipe(C(function(b){var c;return(c=b==null?void 0:b.teamSuggestions)!=null?c:[]}));this.effortSpec$=
this.component$.pipe(C(wPa));this.isEffortEnabled$=this.component$.pipe(C(xPa));this.component$.pipe(C(yPa))};MK.\u0275fac=function(a){return new (a||MK)};MK.\u0275prov=Cd({token:MK,factory:MK.\u0275fac,providedIn:"root"});var zPa=RegExp("comment([0-9]+)"),APa=RegExp("comment[0-9]+version([0-9]+)");var oMc={admin:!1,writer:!0,appender:!0,reader:!0},OK=function(){var a=this;this.issueDetailsBrain=r(MK);this.permissionsFridge=r(DF);this.activeSession=r(Bs);this.accessPolicyApi=r(rB);this.errorHandler=r(aK);this.userAccess=r(AD);this.currentUserEmail=this.activeSession.getUserEmail();this.currentUserEmailPattern=new RegExp("^"+sq(this.currentUserEmail).replace("@","(\\+.*)?@")+"$");this.issueId$=this.issueDetailsBrain.id$;this.issuePermissions$=this.issueId$.pipe(xg(function(c){return c?a.permissionsFridge.watch(ln(c)):
Nf(void 0)}),C(function(c){return c!=null?c:oMc}),wg(oMc),ug({bufferSize:1,refCount:!0}));this.hasAclToView$=this.issuePermissions$.pipe(C(function(c){return!!c.reader}));this.hasAclToEdit$=this.issuePermissions$.pipe(C(function(c){return!!c.writer}));this.hasAclToEdit=function(){return!!ip(a.hasAclToEdit$)};this.hasAclToComment$=this.issuePermissions$.pipe(C(function(c){return!!c.appender}));this.hasAclToComment=function(){return!!ip(a.hasAclToComment$)};this.hasAclToAdmin$=this.issuePermissions$.pipe(C(function(c){return!!c.admin}));
this.hasAclToAdmin=function(){return!!ip(a.hasAclToAdmin$)};this.isCurrentUserCCd$=this.issueDetailsBrain.ccUsers$.pipe(wg([]),C(function(c){return c.some(function(d){return NK(a,d.emailAddress)})}));this.isCurrentUserCCd=function(){return!!ip(a.isCurrentUserCCd$)};this.isCurrentUserCollaborator$=this.issueDetailsBrain.collaboratorsUsers$.pipe(wg([]),C(function(c){return c.some(function(d){return NK(a,d.emailAddress)})}));this.isCurrentUserCollaborator=function(){return!!ip(a.isCurrentUserCollaborator$)};
this.isAllowedToEditCC$=this.hasAclToEdit$;Uf([this.hasAclToEdit$,this.isCurrentUserCCd$]).pipe(C(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(wg(void 0),og(),xg(function(c){return c?a.accessPolicyApi.checkComponentImplicitAccessEnabled(c):Nf(!1)}),hg(function(c){if(c.status===403)return Nf(!0);
a.errorHandler.errorHandler(null,c);return Nf(!1)}),ug({bufferSize:1,refCount:!0}));this.isImplicitAccessEnabled=function(){return!!ip(a.isImplicitAccessEnabled$)};this.canDeleteIssue$=this.hasAclToAdmin$;this.canUndeleteIssue$=Uf([this.issueDetailsBrain.isDeleted$,this.canDeleteIssue$]).pipe(C(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c&&d}));this.userIsComponentAdmin$=this.issueDetailsBrain.componentId$.pipe(wg(void 0),og(),xg(function(c){return c?BD(a.userAccess,"admin","components/"+
c):Nf(!1)}),hg(function(c){a.errorHandler.errorHandler(null,c);return Nf(!1)}),ug({bufferSize:1,refCount:!0}));this.accessLevel$=this.issueDetailsBrain.accessLevel$.pipe(wg(void 0));this.accessLevel=function(){return ip(a.accessLevel$)};this.accessLimitLevel$=this.issueDetailsBrain.accessLimitLevel$;this.isWithinExternalComponent$=this.accessLevel$.pipe(C(function(c){return!(!c||c==="INTERNAL")}));this.audience$=this.isWithinExternalComponent$.pipe(C(function(c){return c?"EXTERNAL":"INTERNAL"}));
this.audience=function(){return ip(a.audience$)};this.canChangeCommentRetention$=this.hasAclToEdit$;this.canChangeCommentRetention=function(){return ip(a.canChangeCommentRetention$)};var b=r(Gg);this.issuePermissions$.pipe(lp(b)).subscribe();this.isImplicitAccessEnabled$.pipe(lp(b)).subscribe();this.userIsComponentAdmin$.pipe(lp(b)).subscribe()},NK=function(a,b){return(b==null?void 0:b.search(a.currentUserEmailPattern))===0},pMc=function(a,b){return ul(b)&&b.commentDeletionStatus==="DELETED"?a.hasAclToAdmin()||
wj(b.lastCommentEditorUser)===a.activeSession.getUserEmail()&&a.hasAclToComment()?!0:!1:!1},qMc=function(a,b){return ul(b)&&b.commentDeletionStatus==="ACTIVE"?zj(b.userPerformingActionUser)===a.activeSession.getUserEmail()?!0:a.hasAclToAdmin():!1};
OK.prototype.canEditComment$=function(a){var b=this;return Uf([this.issueDetailsBrain.component$,this.hasAclToEdit$,this.hasAclToComment$]).pipe(C(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&&zj(a.userPerformingActionUser)===b.activeSession.getUserEmail():!1}))};
OK.prototype.canDeleteAttachment$=function(a,b){return a?(a=a.entityStatus)&&"ACTIVE"===a.status?NK(this,b)?Nf(!0):this.hasAclToAdmin$:Nf(!1):Nf(!1)};OK.prototype.canUndeleteAttachment$=function(a,b){return a?(a=a.entityStatus)&&"DELETED"===a.status?NK(this,b)?Nf(!0):this.hasAclToAdmin$:Nf(!1):Nf(!1)};OK.\u0275fac=function(a){return new (a||OK)};OK.\u0275prov=Cd({token:OK,factory:OK.\u0275fac,providedIn:"root"});var rMc={type:"TAKE",displayText:"Assign to me",description:"Assign issue to yourself"},sMc={type:"DEFAULT_ASSIGNEE",displayText:"Assign to default",description:"Use the component's default assignee"},tMc={type:"START",displayText:"Start work",description:"Change issue status to '"+uj.get("ACCEPTED")+"'"},uMc={type:"FIX",displayText:"Mark fixed",description:"Change issue status to '"+uj.get("FIXED")+"'"},vMc={type:"VERIFY",displayText:"Verify",description:"Change issue status to '"+uj.get("VERIFIED")+
"'"},wMc={type:"REOPEN",displayText:"Re-open",description:"Change issue status back to '"+uj.get("ASSIGNED")+"'"};var yMc=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(ug({bufferSize:1,refCount:!0}));this.issueSnapshot$=this.issue$.pipe(C(function(f){return f==null?void 0:f.snapshot[0]}));this.currentAssignee$=this.issueSnapshot$.pipe(C(function(f){return(f==null?void 0:f.assigneeUser)&&zj(f.assigneeUser)}),
C(Nj));this.defaultAssigneeForComponent$=this.issueSnapshot$.pipe(C(function(f){return f==null?void 0:f.componentId}),og(),xg(function(f){return f?e.componentTemplatesFridge.defaultTemplate$(String(f)):Nf(void 0)}),C(function(f){return f&&zj(f.snapshot.assigneeUser)}),ug({bufferSize:1,refCount:!0}));this.issueAssigneeQuickAction$=Uf([this.currentAssignee$,this.defaultAssigneeForComponent$]).pipe(C(function(f){var h=l(f);f=h.next().value;h=h.next().value;return e.defaultAssigneeQuickActionEnabled&&
h&&f!==h?sMc:void 0}));this.issueStatusQuickAction$=this.issueSnapshot$.pipe(C(function(f){return f&&xMc(e,f)}))},zMc=function(a,b,c){var d;return z(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:pb(c.type)}return e.jumpTo(0)}if(e.nextAddress!=4)return B(e,Rf(a.defaultAssigneeForComponent$),4);if(d=e.yieldResult)b.status==="NEW"&&(b.status="ASSIGNED"),b.assignee=d;return e.jumpTo(0)})},xMc=function(a,b){var c=a.activeSession.getUserEmail();a=zj(b.assigneeUser)===c;c=zj(b.verifierUser)===c;b=b.status;if(c&&b==="FIXED")return vMc;if(a)switch(b){case "ASSIGNED":return tMc;case "ACCEPTED":return uMc;default:return wMc}switch(b){case "NEW":return rMc;case "ASSIGNED":return rMc;case "ACCEPTED":return rMc;
default:return wMc}},PK=function(){this.activeSession=r(Bs);this.issueFullFridge=r(TE);this.componentTemplatesFridge=r(IC)};PK.prototype.create=function(a){return new yMc(a,this.activeSession,this.issueFullFridge,this.componentTemplatesFridge)};PK.\u0275fac=function(a){return new (a||PK)};PK.\u0275prov=Cd({token:PK,factory:PK.\u0275fac,providedIn:"root"});var AMc={COMMENT_EDIT:"commentEdit",RETENTION:"retention",SUBSCRIBE:"subscribe",UNDELETE_ATTACHMENT:"undeleteAttachment",DELETE_ATTACHMENT:"deleteAttachment",COMMENT_UNDELETE:"commentUndelete",COMMENT_DELETE:"commentDelete"},BMc=function(){this.fields=new IA};BMc.prototype.get=function(a){return this.fields.has(CPa(a))};
var CMc=function(a,b){return Qq(a.fields,CPa(b))},Lq=function(a,b){a.fields.add(CPa(b))},QK=function(a,b){a.fields.delete(CPa(b))},DMc=function(a){var b=[],c=[],d=[];a=l(a.fields);for(var e=a.next();!e.done;e=a.next())if(e=e.value,typeof e==="string"&&e.startsWith("customField:"))b.push(e.split(":")[1]);else{var f=void 0,h=AMc,k=(f=exc.get(h))!=null?f:new Set(Object.values(h));exc.set(h,k);k.has(e)?d.push(e):c.push(e)}return{fields:c,extraFields:d,customFields:b}};var DPa={QA:{157:[{emailAddress:"security@chromium.org"}]},PROD:{157:[{emailAddress:"security@chromium.org"}]}};var RK=function(){var a=this;this.activeSession=r(Bs);this.butterBar=r(GJ);this.issueInteractionsTracking=r(KK);this.issueApi=r(SD);this.componentFridge=r(BB);this.permissionsFridge=r(DF);this.eventsForIssueFridge=r(TD);this.statusMessages=r(gK);this.errorHandler=r(aK);this.confirmationDialogService=r(YJ);this.principalTypes=r(FF);this.issuePermissionService=r(OK);this.accessPolicy=r(rB);this.issueTypeDialog=r(ZJ);this.logger=r(ME);this.issueFullFridge=r(TE);this.confirmNoAccessService=r(uK);this.issueService=
r(cE);this.attachmentsMember=r(nK);this.userPreferencesManager=r(iG);this.issueComments=r(sK);this.draftStore=r(IJ);this.attachmentApi=r(mK);this.issueFieldsFactory=r(JK);this.issueQuickActionsFactory=r(PK);this.issueCommentDraftFactory=r(GK);this.implicitTriageService=r(eG);this.analytics=r(RE);this.isSavingMap=new Map;this.savingState=nj(this.isSavingMap,function(){return new BMc});this.issueFieldsMap=new Map;this.issueFields=nj(this.issueFieldsMap,function(b){return a.issueFieldsFactory.create(b)});
this.issueQuickActionsMap=new Map;this.issueQuickActions=nj(this.issueQuickActionsMap,function(b){return a.issueQuickActionsFactory.create(b)});this.editableIssueMap=new Map;this.editableIssue$=nj(this.editableIssueMap,function(b){return EMc(a,b)});this.editableIssue=function(b){return a.editableIssue$(b).value};this.subscriptions=new Map;this.getSubscription=nj(this.subscriptions,function(){return new yf});this.issueCommentDraftMap=new Map;this.issueCommentDraft=nj(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)}};RK.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()};
RK.prototype.updateComponent=function(a,b,c,d){var e=this,f,h,k,q,v,A;return z(function(E){if(E.nextAddress==1)return f=e.editableIssue(a),f.componentId=b,(h=FMc(e,f))&&h.actions&&h.actions.length?B(E,e.getRetentionState(a),2):E.return();k=E.yieldResult;GMc(e,h);q={issueId:a,componentId:b};v=Object.assign({},q,{setLimitViewTrusted:d});A=c?e.issueApi.moveIssueExternal(a,v):e.issueApi.moveIssue(a,q);return E.return(HMc(e,A,h,{originalRetentionState:k}))})};
var Vyb=function(a,b,c){var d,e;return z(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=SK(a,d))!=null?e:Promise.resolve())})},IMc=function(a,b,c,d){var e,f,h,k,q,v;return z(function(A){switch(A.nextAddress){case 1:e=Rsa(c);if(!e)return a.logger.warn("unknown issue type: "+c),A.return();f=a.editableIssue(b);if(e!=="VULNERABILITY"&&e!=="PRIVACY_ISSUE"){A.jumpTo(2);break}return B(A,CKc(a.issueTypeDialog,
e),3);case 3:if(h=A.yieldResult,!h)return A.return();case 2:if(!d||e!=="VULNERABILITY"){A.jumpTo(4);break}k=EPa(a.activeSession.getEnvironmentType(),d);if(k===void 0){A.jumpTo(4);break}Gf(A,6);return B(A,a.issueApi.markAsVulnerability(b,k),8);case 8:a.permissionsFridge.poke(ln(b));a.issueFullFridge.poke(b);uu(A,7);break;case 6:q=Kf(A),cK(a.errorHandler,q);case 7:return A.return(Promise.resolve());case 4:return f.setType(e),A.return((v=SK(a,f))!=null?v:Promise.resolve())}})},Xyb=function(a,b,c){var d,
e,f;return z(function(h){d=Qsa(c);if(!d)return a.logger.warn("unknown priority: "+c),h.return();e=a.editableIssue(b);e.setPriority(d);return h.return((f=SK(a,e))!=null?f:Promise.resolve())})},KMc=function(a,b,c){var d,e,f;return z(function(h){d=a.editableIssue(b);d.duplicateOfIssueId=c;d.status="DUPLICATE";e=FMc(a,d);return e?(f=e.actions.find(function(k){return k.fieldName==="duplicateOfIssueId"&&!ja(k.value||"")}))&&f.value?h.return(JMc(a,b,{actionIssueId:f.value,implicitAppenders:d.cc,implicitEditors:[],
isDeduping:!0,isRemovingSelfFromCc:!1,requestData:e})):h.return():h.return()})},LMc=function(a,b,c){var d,e;return z(function(f){d=a.editableIssue(b);d.setStatus(c);return f.return((e=SK(a,d))!=null?e:Promise.resolve())})},MMc=function(a,b,c){var d,e,f;return z(function(h){if(h.nextAddress==1){if(!c)return h.return();d=a.editableIssue(b);e=a.issueQuickActions(b);return B(h,zMc(e,d,c),2)}return h.return((f=SK(a,d))!=null?f:Promise.resolve())})},Yxb=function(a,b,c){var d,e;return z(function(f){d=a.editableIssue(b);
var h;d.effortEstimate=(h=c==null?void 0:c.estimate)!=null?h:null;return f.return((e=SK(a,d))!=null?e:Promise.resolve())})},Fyb=function(a,b,c){var d,e,f;return z(function(h){d=a.editableIssue(b);e=rsa(c,!1);d.foundInVersion=e;return h.return((f=SK(a,d))!=null?f:Promise.resolve())})},Jyb=function(a,b,c){var d,e,f;return z(function(h){d=a.editableIssue(b);e=rsa(c,!1);d.verifiedInVersion=e;return h.return((f=SK(a,d))!=null?f:Promise.resolve())})},Hyb=function(a,b,c){var d,e,f;return z(function(h){d=
a.editableIssue(b);e=rsa(c,!1);d.targetedToVersion=e;return h.return((f=SK(a,d))!=null?f:Promise.resolve())})},Lyb=function(a,b,c){var d,e;return z(function(f){d=a.editableIssue(b);d.setInProd(c);return f.return((e=SK(a,d))!=null?e:Promise.resolve())})},Ayb=function(a,b,c){var d,e,f;return z(function(h){d=Ssa(c);if(!d)return a.logger.warn("unknown severity: "+c),h.return();e=a.editableIssue(b);e.setSeverity(d);return h.return((f=SK(a,e))!=null?f:Promise.resolve())})};
RK.prototype.updateSloStartTime=function(a,b){var c=this,d,e;return z(function(f){d=c.editableIssue(a);d.sloStartTime=b;return f.return((e=SK(c,d))!=null?e:Promise.resolve())})};RK.prototype.updateSloEndTime=function(a,b){var c=this,d,e;return z(function(f){d=c.editableIssue(a);d.setSloEndTime(b);return f.return((e=SK(c,d))!=null?e:Promise.resolve())})};
var Cyb=function(a,b,c){var d,e,f;z(function(h){d=a.editableIssue(b);d.changelist=(e=c)!=null?e:[];return h.return((f=SK(a,d))!=null?f:Promise.resolve())})},Dyb=function(a,b,c){var d,e,f;z(function(h){d=a.editableIssue(b);d.gerritChanges=(e=c)!=null?e:[];return h.return((f=SK(a,d))!=null?f:Promise.resolve())})};RK.prototype.updateCustomField=function(a,b,c){var d=this,e,f;return z(function(h){e=d.editableIssue(a);e.setCustomField(b,c);return h.return((f=SK(d,e))!=null?f:Promise.resolve())})};
var bzb=function(a,b,c){var d,e,f,h;return z(function(k){switch(k.nextAddress){case 1:return d=a.editableIssue(b),a.issuePermissionService.isImplicitAccessEnabled()?B(k,NMc(a,b,"verifier",[c]),5):B(k,kLc(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((h=SK(a,d))!=null?h:Promise.resolve())}})},
$yb=function(a,b,c){var d,e,f,h;return z(function(k){switch(k.nextAddress){case 1:return d=a.editableIssue(b),a.issuePermissionService.isImplicitAccessEnabled()?B(k,NMc(a,b,"assignee",[c]),5):B(k,kLc(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((h=SK(a,d))!=null?h:Promise.resolve())}})},
OMc=function(a,b,c){var d,e,f,h,k,q;return z(function(v){switch(v.nextAddress){case 1:d=a.editableIssue(b);if(a.issuePermissionService.isImplicitAccessEnabled())return B(v,NMc(a,b,"CC",c),5);e=Lsa(d.cc,c);f=e.added;return B(v,kLc(a.confirmNoAccessService,{componentId:d.componentId,userEmails:f,relation:"reader",analyticsEventLabel:"cc"}),4);case 4:h=v.yieldResult;if(!h)return v.return();v.jumpTo(3);break;case 5:if(k=v.yieldResult,!k)return v.return();case 3:return d.cc=c,v.return((q=SK(a,d))!=null?
q:Promise.resolve())}})},PMc=function(a,b,c){var d,e,f,h,k,q;return z(function(v){switch(v.nextAddress){case 1:d=a.editableIssue(b);if(a.issuePermissionService.isImplicitAccessEnabled())return B(v,NMc(a,b,"collaborators",c),5);e=Lsa(d.collaborators,c);f=e.added;return B(v,kLc(a.confirmNoAccessService,{componentId:d.componentId,userEmails:f,relation:"reader",analyticsEventLabel:"collaborators"}),4);case 4:h=v.yieldResult;if(!h)return v.return();v.jumpTo(3);break;case 5:if(k=v.yieldResult,!k)return v.return();
case 3:return d.setCollaborators(c),v.return((q=SK(a,d))!=null?q:Promise.resolve())}})},QMc=function(a,b,c){var d;return z(function(e){d=a.editableIssue(b);d.setStaffing(c);return e.return(SK(a,d))})};RK.prototype.unarchive=function(a){var b=this,c,d;return z(function(e){c=b.editableIssue(a);c.setIsArchived(!1);return e.return((d=SK(b,c))!=null?d:Promise.resolve())})};
RK.prototype.updateIssueRetention=function(a,b){var c=this,d,e,f;return z(function(h){switch(h.nextAddress){case 1:return d={issueId:a,retention:b},e=c.savingState(a),Lq(e,"retention"),Gf(h,2,3),B(h,c.issueApi.updateIssueRetention(a,d),5);case 5:return B(h,c.issueFullFridge.poke(a),6);case 6:Kq(c.butterBar,"Issue retention updated to "+b+".",4E3);case 3:Hf(h);QK(e,"retention");Jf(h,0);break;case 2:f=Kf(h),cK(c.errorHandler,f),h.jumpTo(3)}})};
var RMc=function(a,b){var c,d,e;return z(function(f){c=a.editableIssue(b);c.setIsDeleted(!0);c.setDeletionReason("ABUSE");d=FMc(a,c);if(!d||!d.actions)return f.jumpTo(0);GMc(a,d);e=a.issueService.delete(b,"ABUSE");return B(f,HMc(a,e,d),0)})},fSb=function(a,b){var c,d,e;return z(function(f){c=a.editableIssue(b);c.setIsDeleted(!1);c.setDeletionReason(null);d=FMc(a,c);if(!d||!d.actions)return f.jumpTo(0);GMc(a,d);e=a.issueService.undelete(b);return B(f,HMc(a,e,d),0)})};
RK.prototype.updateSubscription=function(a,b){var c=this,d,e,f,h,k;return z(function(q){switch(q.nextAddress){case 1:return d=c.savingState(a),B(q,Rf(c.issueFullFridge.watch(a,{trustUncertainMemory:!0})),2);case 2:e=q.yieldResult;h=(f=e)==null?void 0:f.userData;if(h==null||d.get("subscribe"))return q.return();Gf(q,3,4);Lq(d,"subscribe");return B(q,c.issueFullFridge.setNotificationSubscription(a,b),4);case 4:Hf(q);QK(d,"subscribe");Jf(q,0);break;case 3:k=Kf(q),cK(c.errorHandler,k),q.jumpTo(4)}})};
var SMc=function(a,b,c){var d,e;z(function(f){switch(f.nextAddress){case 1:d=a.savingState(b);if(!c.attachmentId||d.get("undeleteAttachment"))return f.return();Gf(f,2,3);Kq(a.butterBar,"Restoring attachment...");Lq(d,"undeleteAttachment");return B(f,a.attachmentsMember.undelete(b.toString(),c),5);case 5:Kq(a.butterBar,"Attachment restored."),a.issueFullFridge.poke(b),a.eventsForIssueFridge.poke(b);case 3:Hf(f);QK(d,"undeleteAttachment");Jf(f,0);break;case 2:e=Kf(f),cK(a.errorHandler,e),f.jumpTo(3)}})},
TMc=function(a,b,c,d){var e,f;return z(function(h){switch(h.nextAddress){case 1:e=a.savingState(b);if(!c.attachmentId||e.get("deleteAttachment"))return h.return();Gf(h,2,3);Kq(a.butterBar,"Deleting attachment...");Lq(e,"deleteAttachment");return B(h,a.attachmentsMember.delete(b,c,d),5);case 5:Kq(a.butterBar,"Attachment deleted."),a.issueFullFridge.poke(b),a.eventsForIssueFridge.poke(b);case 3:Hf(h);QK(e,"deleteAttachment");Jf(h,0);break;case 2:f=Kf(h),cK(a.errorHandler,f),h.jumpTo(3)}})};
RK.prototype.saveCommentDraft=function(a,b){var c=this,d=this.issueCommentDraft(a),e=d.comment(),f=gMc(d);if(!f.commentText&&!f.attachmentsWithJudgements.length)return Promise.resolve();var h=hMc(d);GMc(this,h);return HMc(this,function(){return z(function(k){switch(k.nextAddress){case 1:return B(k,UMc(c,a),2);case 2:if(!f.commentText){k.jumpTo(3);break}c.activeSession.isExternalSession()&&VMc(c,a);return B(k,c.issueComments.create(String(a),f.commentText,f.formattingMode,f.judgementForNewContent,
b),4);case 4:e.reset(),c.draftStore.$window.sessionStorage.removeItem(mq(a));case 3:if(!f.attachmentsWithJudgements.length){k.jumpTo(5);break}var q=c.attachmentApi;var v=f.attachmentsWithJudgements,A=new hK;A.setIssueId(String(a));v!==void 0&&(v=v.map(wOa),Bm(A,3,v));q=q.executor.post({url:"action/issues/"+a+"/attachments",body:A,responseConstructor:kK}).then(yOa);return B(k,q,6);case 6:e.reset();case 5:return d.setJudgementForNewContent(),k.return(c.issueFullFridge.poke(a))}})}(),h)};
var UMc=function(a,b){var c,d;return z(function(e){if(!jG(a.userPreferencesManager).autoCcOnComment||!a.issuePermissionService.hasAclToEdit()||a.issuePermissionService.isCurrentUserCCd())return e.return();var f=c=a.editableIssue(b),h=[].concat(p(c.cc),[a.activeSession.getUserEmail()]);f.cc=h;d={issueId:b,actions:[{fieldName:"ccs",value:a.activeSession.getUserEmail(),actionType:"ADD"}]};return B(e,a.issueApi.updateIssue(b,d),0)})},EMc=function(a,b){var c=a.issueFullFridge.watch(b).pipe(C(function(e){var f=
new TJc;e&&(e=WMc(a,e),f.currentUserEmail=a.activeSession.getUserEmail(),f.setData(e));return f})),d=new Kn(new TJc);a.getSubscription(b).add(c.subscribe(d));return d},SK=function(a,b){function c(L){k=L}function d(L){q=L}var e=b.issueId,f=FMc(a,b);if(!f)return null;for(var h=!1,k=[],q=[],v=e,A=l(f.actions),E=A.next();!E.done;E=A.next()){E=E.value;var H=E.value||"";if(E.actionType!=="REMOVE")switch(E.fieldName){case "ccs":c(H.split(",").filter(Boolean));break;case "verifier":case "assignee":case "collaborators":d(H.split(",").filter(Boolean));
break;case "duplicateOfIssueId":ja(H)||(k=b.cc,v=String(H),h=!0)}}return JMc(a,e,{actionIssueId:v,implicitAppenders:k,implicitEditors:q,isDeduping:h,isRemovingSelfFromCc:f.actions.length===1&&f.actions[0].fieldName==="ccs"&&f.actions[0].actionType==="REMOVE"&&a.activeSession.getUserEmail()===f.actions[0].value,requestData:f})},JMc=function(a,b,c){var d=c.actionIssueId;var e=c.implicitAppenders;var f=c.implicitEditors;var h=c.isDeduping;var k=c.isRemovingSelfFromCc;var q=c.requestData;var v,A,E,H,
L,O,S,aa,ka,na,za,Na,Pa,hb;return z(function(ua){switch(ua.nextAddress){case 1:return B(ua,Promise.all([XMc(a,e,"appender",d),XMc(a,f,"writer",d)]),2);case 2:v=ua.yieldResult;A=l(v);E=A.next().value;H=A.next().value;L=E;O=H;S=L.noAccessEmails||[];aa=O.noAccessEmails||[];ka=[].concat(p(S),p(aa));if(ka.length===0)return ua.return(YMc(a,q,h,k));Gf(ua,3);return B(ua,Promise.all(ka.map(function(Ha){return ZMc(a,Ha)})),5);case 5:return na=ua.yieldResult,za=lxa({userPrincipals:na,newEditors:aa,newImplicitUsers:ka,
isExternalSession:a.activeSession.isExternalSession(),issueId:b,actionIssueId:d}),Na=za.title,Pa=za.content,B(ua,AKc(a.confirmationDialogService,{title:Na,content:Xi(Pa),confirmButtonText:"Allow"}),6);case 6:if(hb=ua.yieldResult)return ua.return(YMc(a,q,h,k));a.permissionsFridge.poke(ln(b));a.issueFullFridge.poke(b);uu(ua,0);break;case 3:Kf(ua),a.butterBar.showWarning("Could not determine email type."),Lf(ua)}})},YMc=function(a,b,c,d){GMc(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 HMc(a,e,b)},XMc=function(a,b,c,d,e,f){e=e===void 0?!1:e;f=f===void 0?null:f;if(e&&!f)throw Error("Dd");var h=e?"ISSUE_DEFAULTS":"ISSUE";d=e?f:d;e={noAccessEmails:[]};return b.length!==0&&a.issuePermissionService.isImplicitAccessEnabled()?a.accessPolicy.checkPermission(b.map(Wp),c,h,d):Promise.resolve(e)},WMc=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=hj(b);e=Ba(b.snapshot);c=DMc(d);d=c.customFields;c=l(c.fields);for(var f=c.next();!f.done;f=c.next()){var h=void 0;(h=bKc.get(f.value))==null||h(e,a)}d=l(d);f=d.next();for(c={};!f.done;c={customFieldId$jscomp$16:void 0},f=d.next())f=f.value,c.customFieldId$jscomp$16=kj(f),c=(e.customField||[]).find(function(k){return function(q){return q.customFieldId===k.customFieldId$jscomp$16}}(c)),f=a.customFieldMap[f],c&&f&&(c.textValue=
f.textValue,c.dateValue=f.dateValue,c.enumValue=f.enumValue,c.numericValue=f.numericValue);return b},FMc=function(a,b){var c=$Jc(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(FPa(e)))});return c.actions.length?c:null},GMc=function(a,b){var c=String(b.issueId);Kq(a.butterBar,"Saving...",0);var d=b.actions.map(function(e){return e.fieldName}).join(",");Mq(a.issueInteractionsTracking,c,{label:d});a=a.savingState(c);b=l(b.actions);
for(c=b.next();!c.done;c=b.next())Lq(a,FPa(c.value))},HMc=function(a,b,c,d){var e,f;return z(function(h){switch(h.nextAddress){case 1:return Gf(h,2),B(h,b,4);case 4:return e=h.yieldResult,VE(a.issueFullFridge,[c.issueId],{eagerUpdate:!1,userActivityType:"EDIT"}).finally(function(){var k=String(c.issueId);a.issueFullFridge.poke(k);a.eventsForIssueFridge.poke(k)}),B(h,$Mc(a,c,e,d),5);case 5:uu(h,0);break;case 2:f=Kf(h),aNc(a,c,f),Lf(h)}})},$Mc=function(a,b,c,d){var e=(d===void 0?{}:d).originalRetentionState;
var f,h,k,q;return z(function(v){f=a.savingState(String(b.issueId));h=l(b.actions);for(k=h.next();!k.done;k=h.next())q=k.value,QK(f,FPa(q));vzc(a.implicitTriageService,b.issueId,b.actions);return c?B(v,bNc(a,b,e),0):v.jumpTo(0)})},aNc=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())QK(e,FPa(f.value));a.permissionsFridge.poke(ln(d));a.issueFullFridge.poke(d);Qo(c)&&c.status===403&&Ro(c)?bK(a.errorHandler,Ro(c)):cK(a.errorHandler,c)},bNc=
function(a,b,c){var d,e,f,h,k,q,v,A,E,H,L;return z(function(O){switch(O.nextAddress){case 1:return B(O,a.getEffortSpec(String(b.issueId)),2);case 2:d=O.yieldResult;e=a.editableIssue(String(b.issueId));k=UKc(a.statusMessages,b,e.customFieldMap,(h=(f=d)==null?void 0:f.name)!=null?h:"");if(!c){O.jumpTo(3);break}return B(O,Promise.all([a.getRetentionState(String(b.issueId)),a.getRetention(String(b.issueId))]),4);case 4:q=O.yieldResult;v=l(q);A=v.next().value;E=v.next().value;H=A;L=E;if(L!=="INDEFINITE"&&
c&&H){var S=c.retentionPeriod?Iva(Math.floor(c.retentionPeriod.seconds*1E3/864E5)):"indefinite";var aa=H.retentionPeriod?Iva(Math.floor(H.retentionPeriod.seconds*1E3/864E5)):"indefinite";S=S===aa?"":" Issue retention period changed from "+S+" to "+aa+"."}else S="";k+=S;case 3:Kq(a.butterBar,k),Lf(O)}})},NMc=function(a,b,c,d){return z(function(e){if(e.nextAddress==1){var f=a.editableIssue(b);var h=a.activeSession.getUserEmail();f=new Map([["CC",f.cc],["collaborators",f.collaborators],["assignee",f.assignee?
[f.assignee]:[]],["verifier",f.verifier?[f.verifier]:[]]]);(new Set([].concat(p(f.values())).flat())).has(h)?(f.set(c,d),h=!(new Set([].concat(p(f.values())).flat())).has(h)):h=!1;e=h?B(e,cNc(a,b,a.editableIssue(b).componentId,c),2):e.return(!0)}else e=e.return(e.yieldResult);return e})},cNc=function(a,b,c,d){var e;return z(function(f){if(f.nextAddress==1)return B(f,XMc(a,[a.activeSession.getUserEmail()],"reader",b,!0,c),2);e=f.yieldResult;return e.noAccessEmails&&e.noAccessEmails.length!==0?f.return(AKc(a.confirmationDialogService,
{title:"Removing yourself from "+d+" may revoke your access to the issue",content:Xi("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)})};RK.prototype.getRetentionState=function(a){return Rf(this.issueFullFridge.watch(a).pipe(C(tPa)))};RK.prototype.getRetention=function(a){return Rf(this.issueFullFridge.watch(a).pipe(C(qPa)))};
RK.prototype.getEffortSpec=function(a){var b=this;return Rf(this.issueFullFridge.watch(a).pipe(C(XOa),xg(function(c){return c?b.componentFridge.watch(c):Nf(void 0)}),C(wPa)))};var ZMc=function(a,b){return z(function(c){return a.activeSession.isExternalSession()?c.return({principalType:"NON_GAIA",detailedUserType:"NO_DETAILED_TYPE"}):c.return(GF(a.principalTypes,b,!0))})};
RK.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 VMc=function(a,b){var c,d,e,f,h,k,q,v,A,E;z(function(H){if(H.nextAddress==1)return B(H,Rf(a.issueFullFridge.watch(b)),2);if(H.nextAddress!=3)return(c=H.yieldResult)&&(d=c.aggregatedData)!=null&&d.createdTimeMicros?B(H,Rf(a.eventsForIssueFridge.watch(b)),3):H.return();e=H.yieldResult;if(!e)return H.return();f=a.activeSession.getUserEmail();h=dNc(a,e.events,f);k=a.getLabel(c,h,f);E=Date.now()-Math.max((q=c.aggregatedData)==null?void 0:q.createdTimeMicros,(A=(v=h)==null?void 0:v.modifiedDate)!=null?
A:0);a.analytics.trackEvent("comment","create",k,E);Lf(H)})};RK.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),h;a=c===((h=a.snapshot[0].assigneeUser)==null?void 0:h.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 dNc=function(a,b,c){return eNc(b,function(d){var e;if(((e=d.userPerformingActionUser)==null?void 0:e.emailAddress)!==c&&d.preDiffs.some(function(h){return h.name==="assignee"&&h.newValue===a.activeSession.getUserEmail()}))return!0;var f;return((f=d.userPerformingActionUser)==null?void 0:f.emailAddress)===c?!0:!1})},eNc=function(a,b){for(var c=a.length-1;c>=0;c--)if(b(a[c]))return a[c]};RK.\u0275fac=function(a){return new (a||RK)};RK.\u0275prov=Cd({token:RK,factory:RK.\u0275fac,providedIn:"root"});var TK=function(){Z.apply(this,arguments);this.issueDetailsBrain=r(MK);this.issuePermissionService=r(OK);this.editIssueService=r(RK);this.assigneeInProgress$=new sg(1);this.ccInProgress$=new sg(1);this.id$=this.issueDetailsBrain.id$;this.assigneeUpdate$=this.issueDetailsBrain.issueJs$.pipe(C(function(a){return Wva(a)||""}));this.ccUpdate$=this.issueDetailsBrain.issueJs$.pipe(C(function(a){var b;return xj((b=vl(a))==null?void 0:b.ccUsers)||[]}));this.assignee$=this.assigneeUpdate$.pipe(ug({refCount:!0,
bufferSize:1}));this.cc$=this.ccUpdate$.pipe(ug({refCount:!0,bufferSize:1}));this.assigneeUpdating$=this.assigneeInProgress$;this.ccUpdating$=this.ccInProgress$;this.editAccess$=this.issuePermissionService.hasAclToEdit$};Y(TK,Z);TK.\u0275dir=Z.\u0275dir;
var fNc=function(a,b){var c,d,e;return z(function(f){switch(f.nextAddress){case 1:return B(f,Rf(a.id$),2);case 2:c=f.yieldResult;if(!c)return f.return();a.assigneeInProgress$.next(!0);d=b.action==="remove_user"?"":b.email;Gf(f,3,4);return B(f,$yb(a.editIssueService,c,d),6);case 6:return B(f,Rf(a.assigneeUpdate$.pipe(eg(function(h){h=b.email===h;return b.action==="set_user"?h:!h}),fg(6E4))),4);case 4:Hf(f);a.assigneeInProgress$.next(!1);Jf(f,0);break;case 3:throw e=Kf(f),e;}})},gNc=function(a,b){var c,
d,e,f,h;return z(function(k){switch(k.nextAddress){case 1:return B(k,Rf(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=OMc(a.editIssueService,c,d.cc.filter(function(q){return q!==b.email}))):f=OMc(a.editIssueService,c,[].concat(p(d.cc),[b.email]));if(!f)return k.return();Gf(k,3,4);a.ccInProgress$.next(!0);return B(k,f,6);case 6:return B(k,Rf(a.ccUpdate$.pipe(eg(function(q){q=
q.includes(b.email);return b.action==="set_user"?q:!q}),fg(6E4))),4);case 4:Hf(k);a.ccInProgress$.next(!1);Jf(k,0);break;case 3:throw h=Kf(k),h;}})};TK.\u0275fac=function(){var a;return function(b){return(a||(a=Re(TK)))(b||TK)}}();TK.\u0275prov=Cd({token:TK,factory:TK.\u0275fac});var UK=function(){this.window=r(HJ)};UK.prototype.openInNewTab=function(a){a=cd(a);id(this.window,a,"_blank")};var Jq=function(a,b){b=cd(b);id(a.window,b)},VK=function(a,b){a=a.window.location;b=dd(b);b!==void 0&&(a.href=b)};UK.\u0275fac=function(a){return new (a||UK)};UK.\u0275prov=Cd({token:UK,factory:UK.\u0275fac,providedIn:"root"});var WK=function(){Z.apply(this,arguments);this.domSafe=r(UK);this.cdr=r(NE,{self:!0});this.actionService=r(TK,{optional:!0});this.currentAssignee="";this.currentCc=[];this.ccActionDisabled=this.assigneeActionDisabled=!1};Y(WK,Z);WK.\u0275dir=Z.\u0275dir;
WK.prototype.ngOnInit=function(){var a=this;if(this.actionService){var b;(b=this.actionService)==null||b.assignee$.pipe(yg(this.destroyed$)).subscribe(function(d){a.currentAssignee=d;a.cdr.detectChanges()});var c;(c=this.actionService)==null||c.cc$.pipe(yg(this.destroyed$)).subscribe(function(d){a.currentCc=d;a.cdr.detectChanges()})}};
var GPa=function(a){if(a.actionService&&!a.assigneeActionDisabled){a.assigneeActionDisabled=!0;var b=a.email===a.currentAssignee?"remove_user":"set_user";Fo("personCard","assigneeAction",b);fNc(a.actionService,{email:a.email,action:b}).finally(function(){a.assigneeActionDisabled=!1})}},HPa=function(a){if(a.actionService&&!a.ccActionDisabled){a.ccActionDisabled=!0;var b=a.currentCc.includes(a.email)?"remove_user":"set_user";Fo("personCard","ccAction",b);gNc(a.actionService,{email:a.email,action:b}).finally(function(){a.ccActionDisabled=
!1})}};WK.\u0275fac=function(){var a;return function(b){return(a||(a=Re(WK)))(b||WK)}}();
WK.\u0275cmp=y({type:WK,selectors:[["b-issue-person-card"]],inputs:{email:"email"},standalone:!1,features:[Fh([NE]),Bg],decls:6,vars:4,consts:[[3,"email"],[1,"actions"],[3,"click"],[3,"onAction","disabled"]],template:function(a,b){a&1&&(J(0,"b-person-card",0),F(1,IPa,9,8,"ng-container",1),U(2,"async"),J(3,"onedev-hovercard-action",2),N("click",function(c){Fo("personCard","showAssignedIssuesAction");var d=Dq.listIssues.makeHref({q:"assignee:"+b.email+" status:open"});c.ctrlKey||c.metaKey?b.domSafe.openInNewTab(d):
VK(b.domSafe,d)}),J(4,"span"),R(5,"Show assigned issues"),K()()());a&2&&(I("email",b.email),x(),G(b.actionService&&V(2,2,b.actionService.editAccess$)?1:-1))},dependencies:[rJ,eJ,Tv],encapsulation:2,changeDetection:0});var XK=function(){};XK.\u0275fac=function(a){return new (a||XK)};XK.\u0275mod=uf({type:XK});XK.\u0275inj=Dd({imports:[HC,tJ,uJ]});var YK=function(){};YK.prototype.transform=function(a){if(pl(a))return a};YK.\u0275fac=function(a){return new (a||YK)};YK.\u0275pipe=wf({name:"omitObfuscatedEmail",type:YK,pure:!0,standalone:!1});var hNc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hNc,n);hNc.prototype.getDisplayName=function(){return Rc(this,1)};hNc.prototype.setDisplayName=function(a){return Qk(this,1,a)};hNc.prototype.getPhotoUrl=function(){return Rc(this,2)};var iNc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,iNc.messageId)};Y(iNc,n);iNc.messageId="b.UserProfileBatchResponse";var $K=function(){var a=this;this.userProfilesBatchApiConfig=r(ZK);this.batchApiAdapter=r(tB);this.batchAdaptedGet=this.batchApiAdapter.adapt(this.userProfilesBatchApiConfig);this.memoizingUserProfileMap=new Wyc(function(b){return a.batchAdaptedGet(b)},100)};$K.prototype.get=function(a){return this.memoizingUserProfileMap.get(a)};$K.\u0275fac=function(a){return new (a||$K)};$K.\u0275prov=Cd({token:$K,factory:$K.\u0275fac,providedIn:"root"});var ZK=function(){this.executor=r(PA)};
ZK.prototype.call=function(a){return this.executor.get({url:"action/user_profiles",options:{params:{usernames:[].concat(p(a)).join(",")}},responseConstructor:iNc}).pipe(hg(function(){return Nf(new iNc)}))};ZK.prototype.split=function(a,b){return(a=uc(b,1,hNc,Wb,Nc).get(a))?{photoUrl:a.getPhotoUrl(),highResolutionPhotoUrl:Rc(a,3),displayName:a.getDisplayName()}:void 0};ZK.\u0275fac=function(a){return new (a||ZK)};ZK.\u0275prov=Cd({token:ZK,factory:ZK.\u0275fac,providedIn:"root"});var WPa={"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",
"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","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-modem-alcedo-issue-sync-server-dev-jobs@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg","pixel-modem-alcedo-issue-sync-server@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg","pixel-modem-tools-bug-traffic-control@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg","pixel-modem-tools-issue-classifier-be@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg",
"pixel-modem-tools-ltp-be@prod.google.com":"https://static.corp.google.com/modem-tools/ltp/logo.svg","pmw-data-prod-jobs@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg","prefilter-fetcher-jobs-dev@prod.google.com":"https://static.corp.google.com/modem-tools/riemann/logo/riemann_logo.svg","pte-pqm-bugbot-dev-jobs@prod.google.com":"https://g3doc.corp.google.com/wireless/android/pixel/testing/bugbot/g3doc/bugbot_logo.png?cl=head","pte-pqm-bugbot@prod.google.com":"https://g3doc.corp.google.com/wireless/android/pixel/testing/bugbot/g3doc/bugbot_logo.png?cl=head",
"spur-workflows@prod.google.com":"https://g3doc.corp.google.com/security/spur/g3doc/spur_logo.jpg?cl=head"},jNc={"android-ftslo-regression-actuator@prod.google.com":"Android Test Notifier","apphosting-stubby-api--s-7egoogle-2ecom-3agitwatcher@prod.google.com":"GitWatcher","boq-android-culprit-assistant@prod.google.com":"Culprit Assistant","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-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-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","dx-workflow-gitwatcher@prod.google.com":"GitWatcher","gado-bug-service@prod.google.com":"Gado Bug Service","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"};var aL=function(){var a=this;this.session=r(Bs);this.userProfiles=r($K);this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1;this.email$=new sg(1);this.showEmail$=new Kn(!1);this.isNonObfuscatedEmail=pl;this.userProfile$=this.email$.pipe(xg(function(b){return a.userProfiles.get(b)})).pipe(wg(void 0));this.content$=Uf([this.email$,this.userProfile$,this.showEmail$]).pipe(C(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;d=d==null?void 0:
d.displayName;var e=jNc[b];e&&(d=e);return d?c?b+" ("+d+")":d:b}));this.vars$=Uf([this.email$,this.content$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return{email:b,content:c}}));this.enableWaldoAvailability=OA(this.session,"enableWaldoAvailability")&&this.session.isInternalSession()};nd.Object.defineProperties(aL.prototype,{email:{configurable:!0,enumerable:!0,set:function(a){this.email$.next(a)}},showEmail:{configurable:!0,enumerable:!0,set:function(a){this.showEmail$.next(a)}}});
aL.\u0275fac=function(a){return new (a||aL)};
aL.\u0275cmp=y({type:aL,selectors:[["b-user-display-name"]],inputs:{availabilityChipEnabled:"availabilityChipEnabled",hovercardEnabled:"hovercardEnabled",hovercardFocusEnabled:"hovercardFocusEnabled",email:"email",showEmail:"showEmail"},standalone:!1,decls:2,vars:3,consts:[["displayName",""],["card",""],["coinonly","",3,"user"],["role","button",1,"keep-focus-ring",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],[3,"email"]],template:function(a,b){a&1&&(F(0,PPa,4,1),U(1,"async"));if(a&2){var c;
G((c=V(1,1,b.vars$))?0:-1,c)}},dependencies:[Sv,jH,WK,DI,JI,Tv],encapsulation:2,changeDetection:0});var bL=function(){this.model={};this.hovercardEnabled=this.availabilityChipEnabled=!0;this.hovercardFocusEnabled=!1};bL.prototype.getDisplayString=function(){return wj(this.model)};var kNc=function(a){var b=a.model;return(b&&b.getUserGaiaStatus?eta(gta(b)):eta(b))&&!!a.getEmailAddress()};bL.prototype.getEmailAddress=function(){return zj(this.model)||""};bL.\u0275fac=function(a){return new (a||bL)};
bL.\u0275cmp=y({type:bL,selectors:[["b-user-display"]],inputs:{model:"model",availabilityChipEnabled:"availabilityChipEnabled",hovercardEnabled:"hovercardEnabled",hovercardFocusEnabled:"hovercardFocusEnabled"},standalone:!1,decls:3,vars:2,consts:[[3,"email","hovercardEnabled","availabilityChipEnabled","hovercardFocusEnabled"]],template:function(a,b){a&1&&(Wg(0),F(1,QPa,1,4,"b-user-display-name",0),F(2,RPa,2,1,"span"),Xg());a&2&&(x(),G(kNc(b)?1:-1),x(),G(kNc(b)?-1:2))},dependencies:[aL],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 cL=function(){var a=this;this.userProfiles=r($K);this.activeSession=r(Bs);this.teamMembershipService=r(dG);this.email$=new sg(1);this.isNonObfuscatedEmail=pl;this.teamId$=new Kn(void 0);this.userProfile$=this.email$.pipe(xg(function(b){return b?a.userProfiles.get(b).pipe(wg(void 0)):Nf(void 0)}));this.vars$=Uf([this.email$,this.userProfile$]).pipe(C(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$=Uf([this.teamId$,this.email$]).pipe(xg(function(b){var c=l(b);b=c.next().value;c=c.next().value;return qzc(a.teamMembershipService,b,c)}),wg(!1),hg(function(){return Nf(!1)}))},$Pa=function(a,b){return!b||a.activeSession.isExternalSession()?!1:WPa[b]!==void 0};
nd.Object.defineProperties(cL.prototype,{email:{configurable:!0,enumerable:!0,set:function(a){pl(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}}});cL.\u0275fac=function(a){return new (a||cL)};
cL.\u0275cmp=y({type:cL,selectors:[["b-user-image"]],hostVars:8,hostBindings:function(a,b){a&2&&uh("tiny",b.tiny)("small",b.small)("medium",b.medium)("hasTeam",b.hasTeam)},inputs:{email:"email",size:"size",teamId:"teamId"},standalone:!1,decls:2,vars:3,consts:[["imageDisplay",""],["card",""],["role","img","aria-label","user avatar",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],[3,"email"],["alt","",1,"user-avatar","material","robo-avatar",3,"src"],[1,"user-avatar","material",3,"team-member","anonymous"],
[1,"user-avatar","material"],["alt","",3,"src","srcset"]],template:function(a,b){a&1&&(F(0,bQa,4,1),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.vars$))?0:-1,c)}},dependencies:[Sv,WK,DI,JI,Tv],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 dL=function(){this.session=r(Bs);this.isNonObfuscatedEmail=pl;this.getEmailDisplayString=jQa;this.email="";this.withProfile=!0;this.enableWaldoAvailability=OA(this.session,"enableWaldoAvailability")&&this.session.isInternalSession()};dL.\u0275fac=function(a){return new (a||dL)};
dL.\u0275cmp=y({type:dL,selectors:[["b-user-email"]],inputs:{email:"email",withProfile:"withProfile",ldapOnly:"ldapOnly"},standalone:!1,decls:7,vars:3,consts:[["emailDisplay",""],["card",""],[1,"bv2-email-with-profile-container"],[1,"bv2-email-with-profile-avatar",3,"email"],[1,"bv2-email-with-profile-waldo"],["role","button",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],[3,"email"],["coinonly","",3,"user"]],template:function(a,b){a&1&&(J(0,"span",2),F(1,cQa,1,1,"b-user-image",3),F(2,eQa,5,3)(3,
gQa,1,1,"ng-container"),D(4,hQa,2,1,"ng-template",null,0,Lh),F(6,iQa,2,1,"span",4),K());a&2&&(x(),G(b.withProfile?1:-1),x(),G(b.isNonObfuscatedEmail(b.email)?2:3),x(4),G(b.enableWaldoAvailability?6:-1))},dependencies:[Sv,jH,WK,DI,JI,cL],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 lNc=function(a,b){return[a,b]},eL=function(){this.size=this.name=""};eL.prototype.ngOnInit=function(){};eL.\u0275fac=function(a){return new (a||eL)};
eL.\u0275cmp=y({type:eL,selectors:[["b-icon"]],inputs:{name:"name",size:"size"},standalone:!1,decls:1,vars:6,consts:[[3,"svgIcon"]],template:function(a,b){a&1&&M(0,"mat-icon",0);a&2&&(vh(Ih(3,lNc,b.name,b.size)),I("svgIcon",b.name))},dependencies:[FC],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 fL=function(){Z.apply(this,arguments);var a=this;this.teamsService=r(SF);this.session=r(Bs);this.principalTypesFridge=r(HF);this.teamId="";this.enableGroupIcon=this.enableSmallChip=!1;this.providedTeamId$=new sg(1);this.providedUser$=new sg(1);this.providedEmail$=new sg(1);this.isNonObfuscatedEmail=pl;this.isGroup$=this.providedEmail$.pipe(xg(function(b){return a.principalTypesFridge.watch(b)}),eg(Qj),C(function(b){return b.principalType==="GROUP"}));this.fetchedTeam$=this.providedTeamId$.pipe(xg(function(b){return UF(a.teamsService,
b)}));this.detailedUserType$=this.providedUser$.pipe(C(function(b){b=b?b&&b.getUserGaiaStatus?Aj(b,4,Bj(Cj)):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"}),wg("NO_DETAILED_TYPE"));this.isTeamMember$=Uf([this.providedTeamId$,this.providedEmail$]).pipe(xg(function(b){var c=
l(b);b=c.next().value;c=c.next().value;return jzc(a.teamsService,b,c)}),wg(!1),hg(function(){return Nf(!1)}));this.teamUser$=this.fetchedTeam$.pipe(C(function(b){return"Member of "+b.name}));this.groupMembershipType$=Uf([this.detailedUserType$,this.isTeamMember$]).pipe(C(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=OA(this.session,"enableWaldoAvailability")&&
this.session.isInternalSession();this.userTypeClass$=this.groupMembershipType$.pipe(C(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(C(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(C(function(b){return b&&b!=="INTERNAL_NON_TEAM_MEMBER"}));this.iconName$=this.groupMembershipType$.pipe(C(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(Ag(this.teamUser$),C(function(b){var c=l(b);b=c.next().value;c=c.next().value;if(b&&b!=="INTERNAL_NON_TEAM_MEMBER"){if(b===
"INTERNAL_TEAM_MEMBER")return c;if(b==="PARTNER_USER")return"Partner user";if(b==="PUBLIC_USER")return"Public user"}return""}))};Y(fL,Z);fL.\u0275dir=Z.\u0275dir;fL.prototype.ngOnInit=function(){};fL.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)};fL.\u0275fac=function(){var a;return function(b){return(a||(a=Re(fL)))(b||fL)}}();
fL.\u0275cmp=y({type:fL,selectors:[["b-user-membership-chip"]],inputs:{user:"user",email:"email",teamId:"teamId",enableSmallChip:"enableSmallChip",enableGroupIcon:"enableGroupIcon"},standalone:!1,features:[Bg,ov],decls:10,vars:14,consts:[["emailDisplay",""],["card",""],[3,"email","hovercardFocusEnabled","availabilityChipEnabled"],[3,"svgIcon","matTooltip"],["coinonly","",3,"user"],["name","group_24px","size","small"],["size","tiny",3,"email"],["tabindex","0","role","button",1,"keep-focus-ring",3,
"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],[3,"email"],[1,"user-chip-name"]],template:function(a,b){a&1&&(J(0,"span"),U(1,"async"),J(2,"span"),U(3,"async"),F(4,mQa,3,3),F(5,nQa,1,3,"b-user-display-name",2)(6,tQa,4,1),F(7,uQa,3,6,"mat-icon",3),U(8,"async"),K()(),F(9,vQa,1,1,"b-availability-chip",4));if(a&2){var c;vh((c=V(1,8,b.userTypeClass$))!=null?c:"");x(2);var d;vh((d=V(3,10,b.userChipType$))!=null?d:"");x(2);G(b.enableSmallChip?4:-1);x();G(b.enableSmallChip?6:5);x(2);G(V(8,12,b.shouldShowIcon$)?
7:-1);x(2);G(b.enableWaldoAvailability&&!b.enableSmallChip?9:-1)}},dependencies:[Sv,FC,jH,eL,zG,xG,WK,DI,JI,cL,aL,Tv],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 gL=function(){};gL.\u0275fac=function(a){return new (a||gL)};gL.\u0275mod=uf({type:gL});gL.\u0275inj=Dd({imports:[HC]});var hL=function(){};hL.\u0275fac=function(a){return new (a||hL)};hL.\u0275mod=uf({type:hL});hL.\u0275inj=Dd({imports:[HC,CH,gL,CG,uJ,XK,tJ]});var mNc=function(){this.transform=wQa};mNc.\u0275fac=function(a){return new (a||mNc)};mNc.\u0275pipe=wf({name:"toNewEmailPreference",type:mNc,pure:!0,standalone:!1});var iL=function(){this.transform=xQa};iL.\u0275fac=function(a){return new (a||iL)};iL.\u0275pipe=wf({name:"enumToHuman",type:iL,pure:!0,standalone:!1});var jL=function(){this.transform=yQa};jL.\u0275fac=function(a){return new (a||jL)};jL.\u0275pipe=wf({name:"arrayToHuman",type:jL,pure:!0,standalone:!1});var kL=function(){};
kL.prototype.transform=function(a,b){return hd(zQa(a,b)).toString()};kL.\u0275fac=function(a){return new (a||kL)};kL.\u0275pipe=wf({name:"boldPrefixMatches",type:kL,pure:!0,standalone:!1});var lL=function(){this.transform=AQa};lL.\u0275fac=function(a){return new (a||lL)};lL.\u0275pipe=wf({name:"yesNo",type:lL,pure:!0,standalone:!1});var nNc=function(){this.transform=BQa};nNc.\u0275fac=function(a){return new (a||nNc)};nNc.\u0275pipe=wf({name:"teamPath",type:nNc,pure:!0,standalone:!1});
var oNc=function(){this.transform=CQa};oNc.\u0275fac=function(a){return new (a||oNc)};oNc.\u0275pipe=wf({name:"humanFileSize",type:oNc,pure:!0,standalone:!1});var pNc=function(){this.transform=EQa};pNc.\u0275fac=function(a){return new (a||pNc)};pNc.\u0275pipe=wf({name:"omitObfuscatedEmail",type:pNc,pure:!0,standalone:!1});var qNc=function(){this.transform=FQa};qNc.\u0275fac=function(a){return new (a||qNc)};qNc.\u0275pipe=wf({name:"toString",type:qNc,pure:!0,standalone:!1});
var rNc=function(){this.transform=GQa};rNc.\u0275fac=function(a){return new (a||rNc)};rNc.\u0275pipe=wf({name:"csv",type:rNc,pure:!0,standalone:!1});var mL=function(){};mL.prototype.transform=function(a,b,c){a=b.indexOf(a);if(a<0)return!0;c=a+c;return!(c>=0&&c<b.length)};mL.\u0275fac=function(a){return new (a||mL)};mL.\u0275pipe=wf({name:"isOutOfBounds",type:mL,pure:!0,standalone:!1});var nL=function(){};nL.\u0275fac=function(a){return new (a||nL)};nL.\u0275mod=uf({type:nL});nL.\u0275inj=Dd({});var sNc=function(a,b,c,d){qw.call(this,a,b,c,d,!0);var e=this;this.escapeSubject$=new tg;this.startAnchorListener=function(){e.escapeSubject$.next(0);return!0};this.endAnchorListener=function(){e.escapeSubject$.next(1);return!0};pw(this)};Y(sNc,qw);var oL=function(){this.checker=r(mw);this.ngZone=r(Ph);this.document=r(ui)};oL.prototype.create=function(a){return new sNc(a,this.checker,this.ngZone,this.document)};oL.\u0275fac=function(a){return new (a||oL)};
oL.\u0275prov=Cd({token:oL,factory:oL.\u0275fac,providedIn:"root"});var pL=function(){this._inset=this._vertical=!1};nd.Object.defineProperties(pL.prototype,{vertical:{configurable:!0,enumerable:!0,get:function(){return this._vertical},set:function(a){this._vertical=pi(a)}},inset:{configurable:!0,enumerable:!0,get:function(){return this._inset},set:function(a){this._inset=pi(a)}}});pL.\u0275fac=function(a){return new (a||pL)};
pL.\u0275cmp=y({type:pL,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(a,b){a&2&&(Lg("aria-orientation",b.vertical?"vertical":"horizontal"),uh("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 tNc=["content"],qL=function(){Z.apply(this,arguments);this.focusEscapeNotifierFactory=r(oL);this.trapFocus=this.required=!1;this.renderPanel=this.noneButtonEnabled=this.todayButtonEnabled=!0;this.includeTimePicker=!1;this.dateChange=new LE;this.dateTimeChange=new LE;this.cancelClicked=new LE;this.saveClicked=new LE;this.dateSelectionChange=new LE;this.focusEscaped=new LE;this.timeFormControl=new jy("",Si)};Y(qL,Z);qL.\u0275dir=Z.\u0275dir;
qL.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){MQa(a)});this.focusEscapeNotifier=this.focusEscapeNotifierFactory.create(this.content.nativeElement);this.focusEscapeNotifier.escapeSubject$.pipe(yg(this.destroyed$)).subscribe(function(b){if(a.trapFocus)if(b===0){var c;(c=a.focusEscapeNotifier)==null||Nic(c)}else{var d;(d=a.focusEscapeNotifier)==null||ow(d)}else a.focusEscaped.emit(b)});LQa(this,this.dateTime)};
var KQa=function(a,b){a.date=b;a.dateTime=Uwa(b,a.timeFormControl.value);a.dateSelectionChange.emit(b)};qL.prototype.saveChanges=function(){this.includeTimePicker&&(this.dateTime=Uwa(this.dateTime,this.timeFormControl.value),this.dateTimeChange.emit(this.dateTime));this.dateChange.emit(this.date)};var MQa=function(a){var b=a.includeTimePicker?a.dateTime:a.date;if(b=b instanceof rl?b:Jva(b))a.calendar.activeDate=b;a.calendar._getCurrentViewComponent()._focusActiveCell(!1)};
qL.prototype.showPicker=function(a){a instanceof HTMLInputElement&&a.showPicker()};var LQa=function(a,b){var c=new Ll("HH:mm");a.timeFormControl.setValue(a.includeTimePicker&&b?c.format(b):"")};qL.\u0275fac=function(){var a;return function(b){return(a||(a=Re(qL)))(b||qL)}}();
qL.\u0275cmp=y({type:qL,selectors:[["b-date-time-picker-content"]],viewQuery:function(a,b){a&1&&(hh(Vx,7),hh(tNc,7));if(a&2){var c;lh(c=mh())&&(b.calendar=c.first);lh(c=mh())&&(b.content=c.first)}},inputs:{required:"required",date:"date",dateTime:"dateTime",trapFocus:"trapFocus",todayButtonEnabled:"todayButtonEnabled",noneButtonEnabled:"noneButtonEnabled",renderPanel:"renderPanel",includeTimePicker:"includeTimePicker",calendarButtonRow:"calendarButtonRow"},outputs:{dateChange:"dateChange",dateTimeChange:"dateTimeChange",
cancelClicked:"cancelClicked",saveClicked:"saveClicked",dateSelectionChange:"dateSelectionChange",focusEscaped:"focusEscaped"},standalone:!1,features:[Bg],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();J(0,"div",null,0)(2,"div",1);F(3,IQa,1,1,"ng-container");K();J(4,"mat-calendar",2);U(5,"toDateTime");U(6,"toDateTime");N("selectedChange",function(d){u(c);return w(KQa(b,d))});K();F(7,
JQa,2,1,"mat-form-field",3);J(8,"div",4);F(9,PQa,4,2,"div",1);J(10,"div",5)(11,"button",6);N("click",function(){u(c);return w(b.cancelClicked.emit())});R(12,"Cancel");K();J(13,"button",7);N("click",function(){u(c);b.saveChanges();return w(b.saveClicked.emit())});R(14,"Save");K()()()()}a&2&&(uh("container",b.renderPanel),x(3),G(b.calendarButtonRow?3:-1),x(),I("selected",b.includeTimePicker?b.dateTime:V(5,7,b.date))("startAt",b.includeTimePicker?b.dateTime:V(6,9,b.date)),x(3),G(b.includeTimePicker?
7:-1),x(2),G(b.todayButtonEnabled||b.noneButtonEnabled?9:-1))},dependencies:function(){return[Sv,oG,Jx,Vx,pL,Ui,dy,vy,py,My,Uy,rL]},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 rL=function(){};rL.prototype.transform=function(a){var b;return(b=Jva(a))!=null?b:void 0};rL.\u0275fac=function(a){return new (a||rL)};rL.\u0275pipe=wf({name:"toDateTime",type:rL,pure:!0,standalone:!1});var uNc=[{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"}],sL=function(){Z.call(this);var a=this;this.overlay=r(lx);this.element=r(Te);this.hostEl=r(Te);this.openOnEnter=this.openOnClick=!0;this.includeTimePicker=this.required=this.focusTrapHost=!1;this.selectedChange=new LE;this.selectedDateTimeChange=
new LE;this.dateSelectionChange=new LE;this.includeTimePickerChange=new LE;this.onClose=new LE;this.opened=!1;this.destroyed$.subscribe(function(){var b;(b=a.overlayRef)==null||b.dispose()})};Y(sL,Z);g=sL.prototype;g.onHostEnter=function(a){this.openOnEnter&&this.open();a.preventDefault();a.stopPropagation()};g.onClickHost=function(a){this.openOnClick&&this.open();a.preventDefault();a.stopPropagation()};
g.open=function(){this.opened||(this.overlayRef=this.createOverlay(),this.attach(),this.opened=!0)};g.close=function(a){a=a===void 0?!1:a;if(this.opened){var b;(b=this.overlayRef)==null||b.dispose();this.overlayRef=void 0;this.opened=!1;a||this.hostEl.nativeElement.focus();this.onClose.emit()}};g.onHostTab=function(a){this.focusTrapHost&&this.pickerContent&&this.pickerContent.focusEscapeNotifier&&(ow(this.pickerContent.focusEscapeNotifier),a.preventDefault())};
g.onHostShiftTab=function(a){this.focusTrapHost&&this.pickerContent&&this.pickerContent.focusEscapeNotifier&&(Nic(this.pickerContent.focusEscapeNotifier),a.preventDefault())};g.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy();a=this.overlay.create({positionStrategy:a,scrollStrategy:b,hasBackdrop:!0,backdropClass:"b-date-time-picker-backdrop",panelClass:"b-date-time-picker-popup"});a.overlayElement.setAttribute("role","dialog");return a};
g.attach=function(){var a=this,b=new fx(qL),c;this.pickerContent=(c=this.overlayRef)==null?void 0:c.attach(b).instance;var d;(d=this.overlayRef)==null||d.updatePosition();setTimeout(function(){a.connectValues()})};g.getPositionStrategy=function(){return Yw(Zw($w(dx(this.overlay.position(),this.element)),8),uNc)};g.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
g.connectValues=function(){var a=this;if(this.pickerContent&&this.overlayRef){var b=dg(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)&&LQa(this.pickerContent,this.selectedDateTime);this.focusTrapHost&&this.pickerContent.focusEscaped.pipe(yg(b)).subscribe(function(){setTimeout(function(){return a.element.nativeElement.focus()})});
this.pickerContent.dateChange.pipe(yg(b)).subscribe(function(c){a.selectedChange.emit(c)});this.pickerContent.dateTimeChange.pipe(yg(b)).subscribe(function(c){a.selectedDateTimeChange.emit(c)});this.pickerContent.dateSelectionChange.pipe(yg(b)).subscribe(function(c){a.dateSelectionChange.emit(c)});dg(this.pickerContent.saveClicked,this.pickerContent.cancelClicked,this.overlayRef.backdropClick(),this.overlayRef.keydownEvents().pipe(eg(function(c){return c.code==="Escape"}))).pipe(yg(b)).subscribe(function(){a.close()})}};
sL.\u0275fac=function(a){return new (a||sL)};
sL.\u0275dir=vf({type:sL,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&&Lg("aria-expanded",b.opened||void 0)},inputs:{openOnClick:"openOnClick",openOnEnter:"openOnEnter",focusTrapHost:[0,"bDateTimePickerToggleFocusTrapHost",
"focusTrapHost"],required:[0,"bDateTimePickerToggleRequired","required"],selected:[0,"bDateTimePickerToggleSelected","selected"],selectedDateTime:[0,"bDateTimePickerToggleSelectedDateTime","selectedDateTime"],includeTimePicker:[0,"bDateTimePickerToggleIncludeTimePicker","includeTimePicker"]},outputs:{selectedChange:"bDateTimePickerToggleSelectedChange",selectedDateTimeChange:"bDateTimePickerToggleSelectedDateTimeChange",dateSelectionChange:"bDateTimePickerToggleDateSelectionChange",includeTimePickerChange:"bDateTimePickerToggleIncludeTimePickerChange",
onClose:"bDateTimePickerToggleOnClose"},exportAs:["bDateTimePickerToggle"],standalone:!1,features:[Bg]});var vNc=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,wNc=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,xNc=function(a){this.patternParts_=[];this.dateTimeSymbols_=ev;typeof a=="number"?this.applyStandardPattern_(a):this.applyPattern_(a)};
xNc.prototype.applyPattern_=function(a){for(var b=!1,c="",d=0;d<a.length;d++){var e=a.charAt(d);if(vNc.test(e))for(c.length>0&&(this.patternParts_.push({text:c,count:0,abutStart:!1,numeric:!1}),c=""),this.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});d<a.length-1&&a.charAt(d+1)==" ";)d++;else if(b)e=="'"?d+1<a.length&&a.charAt(d+1)=="'"?(c+="'",d++):b=!1:c+=e;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(e)>=0){c.length>0&&(this.patternParts_.push({text:c,count:0,abutStart:!1,numeric:!1}),
c="");for(var f=a.charAt(d),h=d+1;h<a.length&&a.charAt(h)==f;)h++;f=h-d;f<=0?h=!1:(h="MydhHmsSDkK".indexOf(e),h=h>0||h==0&&f<3);this.patternParts_.push({text:e,count:f,abutStart:!1,numeric:h});d+=f-1}else e=="'"?d+1<a.length&&a.charAt(d+1)=="'"?(c+="'",d++):b=!0:c+=e}c.length>0&&this.patternParts_.push({text:c,count:0,abutStart:!1,numeric:!1});a=!1;for(b=0;b<this.patternParts_.length;b++)this.patternParts_[b].numeric?!a&&b+1<this.patternParts_.length&&this.patternParts_[b+1].numeric&&(a=!0,this.patternParts_[b].abutStart=
!0):a=!1};xNc.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)};
xNc.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("Ed`"+f.text.charAt(0));}f=new yNc;c=[0];f.dayPeriodIndex=-1;for(var h=0;h<this.patternParts_.length&&!(d&&c[0]>=a.length);h++){if(this.patternParts_[h].count==0){a:{var k=a;var q=c,v=this.patternParts_[h],A=d;if(v.text.match(vNc)!=null){if(v=q[0],
zNc(k,q),q[0]>v){k=!0;break a}}else{if(k.indexOf(v.text,q[0])==q[0]){q[0]+=v.text.length;k=!0;break a}if(A&&v.text.indexOf(k.substring(q[0]))==0){q[0]+=k.length-q[0];k=!0;break a}}k=!1}if(k)continue;return 0}if(this.patternParts_[h].abutStart){a:{q=a;v=c;A=h;var E=v[0],H=0;for(k=A;k<this.patternParts_.length;k++){var L=this.patternParts_[k],O=L.count;if(O===0)break;if(k==A&&(O-=H,H++,O==0)){k=0;break a}var S=k>A&&L.numeric,aa=v[0];if(!ANc(this,q,v,L,O,f,!1)||S&&v[0]-aa<O)k=A-1,v[0]=E}k-=A}if(k<=0)return 0;
h+=k-1}else if(!ANc(this,a,c,this.patternParts_[h],0,f,d))return 0}a:{a=e;if(b==null)throw Error("Fd");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=Mfc(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 ANc=function(a,b,c,d,e,f,h){zNc(b,c);if(d.numeric&&e>0&&c[0]+e>b.length)return!1;switch(d.text.charAt(0)){case "G":return tL(b,c,[a.dateTimeSymbols_.ERAS],function(k){return f.era=k}),!0;case "M":case "L":return BNc(a,b,c,e,d,f);case "E":return tL(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=tL(b,c,a,function(k){return f.dayPeriodIndex=
k},h),f.dayPeriodName=e[f.dayPeriodIndex],h?b:!0;case "a":return b=tL(b,c,[a.dateTimeSymbols_.AMPMS],function(k){return f.ampm=k},h),h?b:!0;case "y":return CNc(a,b,c,d,e,f);case "Q":return tL(b,c,[a.dateTimeSymbols_.QUARTERS,a.dateTimeSymbols_.SHORTQUARTERS],function(k){f.month=k*3;f.day=1});case "d":return DNc(a,b,c,d,e,function(k){f.day=k}),!0;case "S":return ENc(a,b,c,e,f);case "h":case "K":case "H":case "k":return b=DNc(a,b,c,d,e,function(k){f.hours=d.text.charAt(0)==="h"&&k===12?0:k},h),h?b:
!0;case "m":return b=DNc(a,b,c,d,e,function(k){f.minutes=k},h),h?b:!0;case "s":return DNc(a,b,c,d,e,function(k){f.seconds=k}),!0;case "z":case "Z":case "v":return FNc(a,b,c,f);default:return!1}},CNc=function(a,b,c,d,e,f){var h=c[0];e=uL(a,b,c,e);e===null&&(e=uL(a,b,c,0,!0));if(e===null)return!1;e>=0&&c[0]-h==2&&d.count==2?(a=e,b=(new Date).getFullYear()-80,c=b%100,f.ambiguousYear=a==c,a+=Math.floor(b/100)*100+(a<c?100:0),f.year=a):f.year=e;return!0},BNc=function(a,b,c,d,e,f){return e.numeric&&DNc(a,
b,c,e,d,function(h){f.month=h-1})?!0:tL(b,c,[a.dateTimeSymbols_.MONTHS,a.dateTimeSymbols_.STANDALONEMONTHS,a.dateTimeSymbols_.SHORTMONTHS,a.dateTimeSymbols_.STANDALONESHORTMONTHS],function(h){f.month=h})},ENc=function(a,b,c,d,e){var f=c[0];a=uL(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},FNc=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=uL(a,b,c,0,!0);if(f===null)return!1;
if(c[0]<b.length&&b.charAt(c[0])==":"){var h=f*60;c[0]++;f=uL(a,b,c,0);if(f===null)return!1;h+=f}else h=f,h=h<24&&c[0]-e<=3?h*60:h%100+h/100*60;d.tzOffset=-h;return!0},DNc=function(a,b,c,d,e,f,h){h=h||!1;var k=c[0];a=uL(a,b,c,e);if(a===null)return!1;if(h&&c[0]-k<d.count){if(c[0]<b.length)return!1;a*=Math.pow(10,d.count-(c[0]-k))}f(a);return!0},tL=function(a,b,c,d,e){e=e||!1;for(var f,h=0;h<c.length;h++){f=b;for(var k=c[h],q=e,v=0,A=null,E=a.substring(f[0]).toLowerCase(),H=0;H<k.length;H++){var L=
k[H].toLowerCase();if(q&&L.indexOf(E)==0){v=E.length;A=H;break}k[H].length>v&&E.indexOf(L)==0&&(v=k[H].length,A=H)}A!==null&&(f[0]+=v);f=A;if(f!==null)return d(f),!0}return!1},zNc=function(a,b){(a=a.substring(b[0]).match(wNc))&&(b[0]+=a[0].length)},uL=function(a,b,c,d,e){b=d>0?b.substring(0,c[0]+d):b;e=e||!1;if(a.dateTimeSymbols_.ZERODIGIT){d=[];for(var f=c[0];f<b.length;f++){var h=b.charCodeAt(f)-a.dateTimeSymbols_.ZERODIGIT;d.push(0<=h&&h<=9?String.fromCharCode(h+48):b.charAt(f))}b=d.join("")}else b=
b.substring(c[0]);a=b.match(new RegExp("^"+(e?"[+-]?":"")+"\\d+"));if(!a)return null;c[0]+=a[0].length;return parseInt(a[0],10)},yNc=function(){};yNc.prototype.ambiguousYear=!1;var skc=Array(31).fill(0).map(function(a,b){return""+(b+1)}),vL=function(){var a=qx.apply(this,arguments)||this;a.locale=ev;return a};Y(vL,qx);vL.prototype.setLocale=function(){throw Error("Gd");};vL.prototype.getYear=function(a){return a.getYear()};vL.prototype.getMonth=function(a){return a.getMonth()};vL.prototype.getDate=function(a){return a.getDate()};var rkc=function(a,b){switch(b){case "long":return a.locale.WEEKDAYS;case "narrow":return a.locale.NARROWWEEKDAYS;default:return a.locale.SHORTWEEKDAYS}};
vL.prototype.getFirstDayOfWeek=function(){return(this.locale.FIRSTDAYOFWEEK+1)%7};vL.prototype.clone=function(a){return a.clone()};var Sx=function(a,b,c){return new rl(a,b,c)};vL.prototype.parse=function(a,b){if(a==="")return null;b=new xNc(a.match(/\d{3,}/)?b:b.replace("yyyy","yy"));var c=new rl(new Date(a));b.parse(a,c);return c};vL.prototype.format=function(a,b){if(!this.isValid(a))throw Error("Hd");return(new Ll(b)).format(a)};
var Qx=function(a,b){a=a.clone();a.add(new hv(b));return a},Rx=function(a,b){a=a.clone();a.add(new hv(0,b));return a},Px=function(a,b){a=a.clone();a.add(new hv(0,0,b));return a},Gjc=function(a){return a instanceof rl};g=vL.prototype;g.isValid=function(a){return!isNaN(a.getTime())};g.invalid=function(){return new rl(NaN)};g.sameDate=function(a,b){return a&&b?(new jj(a)).equals(b):!1};g.getHours=function(a){return a.getHours()};g.getMinutes=function(a){return a.getMinutes()};g.getSeconds=function(a){return a.getSeconds()};
g.setTime=function(a,b,c,d){a=this.clone(a);a.setHours(b);a.setMinutes(c);a.setSeconds(d);a.setMilliseconds(0);return a};vL.\u0275fac=function(){var a;return function(b){return(a||(a=Re(vL)))(b||vL)}}();vL.\u0275prov=Cd({token:vL,factory:vL.\u0275fac});var GNc={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"},wL=GNc;wL=GNc;var xL=ev.DATEFORMATS[3];xL=xL.replace(/yyyy/,"yy").replace(/yy/,"yyyy");xL==="M/d/yyyy"&&(xL="MM/dd/yyyy");var HNc=ev.TIMEFORMATS.at(-1),INc={parse:{dateInput:xL,timeInput:HNc},display:{dateInput:xL,monthYearLabel:wL.YEAR_MONTH_ABBR,dateA11yLabel:wL.MONTH_DAY_YEAR_MEDIUM,monthYearA11yLabel:wL.YEAR_MONTH_FULL,timeInput:HNc,timeOptionLabel:HNc}};var yL=function(){};yL.\u0275fac=function(a){return new (a||yL)};yL.\u0275mod=uf({type:yL});yL.\u0275inj=Dd({providers:[{provide:qx,useClass:vL},{provide:ux,useValue:INc}]});var zL=function(){};zL.\u0275fac=function(a){return new (a||zL)};zL.\u0275mod=uf({type:zL});zL.\u0275inj=Dd({imports:[px,px]});var AL=function(){};AL.\u0275fac=function(a){return new (a||AL)};AL.\u0275mod=uf({type:AL});AL.\u0275inj=Dd({imports:[HC,BG,Zy,zL,Bw,Ay,By,Ny,Vy,yL]});var JNc=["popupField"],KNc=["fieldContent"],LNc=["popupOverlay"],MNc=["overlayContent"],UQa=function(a){return{q:a}},NNc=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"}],BL=function(){Z.apply(this,arguments);this.cdr=r(NE,{self:!0});this.element=r(Te);this.overlay=r(lx);this.viewContainerRef=r(fh);this.dateFormatter=r(eK);this.activeSession=r(Bs);this.constants=r(dK);this.appEvents=r(FB);this.IssuePriority=Tnc;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.isUser=!1;this.teamId="";this.clearable=!1;this.choices=[];this.customFieldId=0;this.showEnumTitle=!1;this.valueChange=new LE;this.disabled=this.readonly=!1;this.tooltip="";this.showAvailability=this.showHotkeyHint=this.truncate=!1};Y(BL,Z);
BL.\u0275dir=Z.\u0275dir;g=BL.prototype;g.ngOnInit=function(){var a=this;this.enableWaldoAvailability=OA(this.activeSession,"enableWaldoAvailability")&&this.activeSession.isInternalSession()&&this.showAvailability;this.subscriptions.add(this.appEvents.openEditField.subscribe(function(b){b!==a&&a.isActive&&(a.isActive=!1,ONc(a),a.cdr.detectChanges())}));this.subscriptions.add(RKc(this.dateFormatter,function(){PNc(a);a.cdr.detectChanges()}));this.destroyed$.subscribe(function(){ONc(a)})};
g.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.overlayRef&&this.overlayRef.dispose()};g.ngOnChanges=function(a){["value","type","displayValueOverride","choices"].some(function(b){return b in a})&&PNc(this)};g.ngAfterViewInit=function(){this.popupField&&(this.overlayRef=this.overlay.create({positionStrategy:this.getPositionStrategy(),scrollStrategy:this.overlay.scrollStrategies.reposition()}))};
g.getPositionStrategy=function(){return Yw(Zw($w(dx(this.overlay.position(),this.fieldContent).setOrigin(this.fieldContent),!1),5),NNc)};
var ONc=function(a){var b;((b=a.overlayRef)==null?0:b.hasAttached())&&a.overlayRef.detach()},GRa=function(a,b){if(!a.autocompleteActive)switch(b.keyCode){case 13:b.stopPropagation();MRa(a);break;case 27:b.stopPropagation(),tq(a,b,!1,!0)}},ERa=function(a,b){if(!a.autocompleteActive)switch(b.keyCode){case 13:if(b.ctrlKey||b.metaKey)b.stopPropagation(),MRa(a);break;case 27:b.stopPropagation(),tq(a,b,!1,!0)}},aRa=function(a,b){switch(b.keyCode){case 13:case 32:b.stopPropagation();b.preventDefault();tq(a,
b,!0,!1);break;case 27:b.stopPropagation(),tq(a,b,!1,!0)}},tq=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,ONc(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?Il(c):null),a.type===
"ENUM"&&a.enumMenuTrigger.openMenu(),a.type!=="ENUM"){QNc(a);var f=a.element.nativeElement;$f(document,"click").pipe(eg(function(h){return!f.contains(h.target)}),mg(1),yg(a.overlayRef._detachments),yg(a.destroyed$)).subscribe(function(){tq(a,null,!1,!1)})}b==null||b.stopPropagation();a.cdr.detectChanges()}};BL.prototype.schedule=function(a){var b=ag.schedule(a);this.destroyed$.subscribe(function(){b.unsubscribe()})};BL.prototype.getDisplayValue=function(a){return this.displayValue===null?a:this.displayValue};
var PNc=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(Il(b)):a.displayValue=null;a.readonlyTooltip=
null;break;default:a.displayValueOverride?a.displayValue=a.displayValueOverride:a.displayValue=b?String(b):null,a.readonlyTooltip=null}};BL.prototype.setFieldValue=function(a){this.disabled||this.readonly||(this.type==="DATE"&&a&&(a=Swa(a)),this.type==="NUMERIC"&&a===""&&(a=null),gj(this.value,a)?this.type==="ENUM"&&tq(this,null,!1,!0):(tq(this,null,!1,!0),this.value=a,this.valueChange.emit(this.value)))};
var MRa=function(a){if(a.type===void 0)throw Error("Id");a.isUser&&(a.textBuffer=a.textBuffer.replace(/^[\s,]+|[\s,]+$/g,""));a.type==="NUMERIC"&&(a.textBuffer=a.textBuffer.trim());switch(a.type){case "TEXT":a.setFieldValue(a.textBuffer);break;case "NUMERIC":a.textBuffer=a.textBuffer.trim();a.textBuffer===""?a.setFieldValue(null):a.setFieldValue(Number(a.textBuffer));break;case "ENUM":case "BOOL":case "DATE":throw Error("Jd");default:pb(a.type,"FieldType")}};
BL.prototype.clearFieldValue=function(){this.value=null;this.valueChange.emit(this.value);tq(this,null,!1,!0)};var QNc=function(a){ONc(a);var b=a.overlayRef.attach(new gx(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()})};
BL.prototype.getTooltip=function(){return this.readonly?this.readonlyTooltip||"":this.tooltip?this.tooltip:this.title?"Set "+this.title:""};BL.\u0275fac=function(){var a;return function(b){return(a||(a=Re(BL)))(b||BL)}}();
BL.\u0275cmp=y({type:BL,selectors:[["b-edit-field"]],viewQuery:function(a,b){a&1&&(hh(uG,5),hh(JNc,5),hh(KNc,5),hh(LNc,5),hh(MNc,5));if(a&2){var c;lh(c=mh())&&(b.enumMenuTrigger=c.first);lh(c=mh())&&(b.popupField=c.first);lh(c=mh())&&(b.fieldContent=c.first);lh(c=mh())&&(b.popupOverlay=c.first);lh(c=mh())&&(b.overlayContent=c.first)}},inputs:{multiline:"multiline",name:"name",title:"title",type:"type",value:"value",user:"user",displayValueOverride:"displayValueOverride",isUser:"isUser",teamId:"teamId",
clearable:"clearable",choices:"choices",customFieldId:"customFieldId",showEnumTitle:"showEnumTitle",readonly:"readonly",disabled:"disabled",tooltip:"tooltip",truncate:"truncate",showHotkeyHint:"showHotkeyHint",showAvailability:"showAvailability"},outputs:{valueChange:"valueChange"},standalone:!1,features:[Fh([NE]),Bg,ov],decls:13,vars:5,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"],[3,"user"],["type","button","mat-menu-item","","role","menuitemcheckbox","aria-label","Clear",3,"b-menu-item-checked",
"disabled"],["type","button","mat-menu-item","","role","menuitemcheckbox","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,"issue-metadata-field-dropdown-icon"],
[1,"issue-metadata-field-edit-icon"],[1,"flex-kids-x","flex-cross-axis-centered"],[3,"user","email","teamId","enableSmallChip"],[1,"bv2-editfield-avatar",3,"email"],[1,"bv2-metadata-field-value"],[3,"email"],[1,"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"],["svgIcon","arrow-dropdown"],["svgIcon","edit-outline"],["role","dialog"],[1,"bv2-text-field-edit"],[3,"dateSelectionChange","saveClicked","cancelClicked","required","date"],[1,"bv2-text-field-edit",3,"click"],[1,"bv2-text-edit-dialog-buttons"],["type","button","mat-flat-button","","color","primary",1,"medium","field-popup-button",3,"click","disabled","matTooltip"],["svgIcon","done"],["type","button","mat-stroked-button","","color","primary",1,"medium","field-popup-button",
3,"click","matTooltip"],["svgIcon","close"],["spellcheck","false",3,"ngModel"],["step","any","spellcheck","false",3,"ngModel"],["spellcheck","false",3,"ngModelChange","keydown","ngModel"],["step","any","spellcheck","false",3,"ngModelChange","keydown","ngModel"],["spellcheck","false",3,"ngModel","bContactAutocomplete"],["step","any","spellcheck","false",3,"ngModel","bContactAutocomplete"],["spellcheck","false",3,"ngModelChange","keydown","autocompleteActive","ngModel","bContactAutocomplete"],["step",
"any","spellcheck","false",3,"ngModelChange","keydown","autocompleteActive","ngModel","bContactAutocomplete"]],template:function(a,b){a&1&&(J(0,"div")(1,"div",6),F(2,bRa,6,15,"div",7),F(3,dRa,3,13,"div",8),F(4,fRa,1,1),M(5,"div",9),K(),J(6,"mat-menu",10,0),D(8,lRa,3,1,"ng-template",11),K()(),D(9,ARa,6,6,"ng-template",null,1,Lh)(11,ORa,6,4,"ng-template",null,2,Lh));a&2&&(x(),uh("active",b.isActive&&!b.readonly&&!b.disabled),x(),G(b.type!=="BOOL"?2:-1),x(),G(b.type==="BOOL"?3:-1),x(),G(b.isUser?4:-1))},
dependencies:[jH,Sv,FC,xC,zI,qL,Ui,dy,ky,RG,oG,Jx,pG,sG,qG,rG,uG,zG,xG,IG,fJ,vJ,cL,fL,pL,Uv],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 CL={ENUM:"ENUM",BOOL:"BOOL",DATE:"DATE",TEXT:"TEXT",NUMERIC:"NUMERIC"},DL=function(){};DL.\u0275fac=function(a){return new (a||DL)};DL.\u0275mod=uf({type:DL});DL.\u0275inj=Dd({imports:[CH,DG,HC,AI,AL,Ay,SG,BG,mH,CG,JG,uJ,nL,wJ,hL,zL]});var QRa=[["year",31536E3],["month",2592E3],["week",604800],["day",86400],["hour",3600],["minute",60],["second",1]],RRa={year:"yr",month:"mo",week:"w",day:"d",hour:"h",minute:"m",second:"s"};var RNc=[{name:"local",id:""},{name:"UTC",id:"UTC"},{name:"MTV",id:"America/Los_Angeles"}],SNc=Symbol("Kd"),TNc=Symbol("Kd"),EL=function(){var a=this;this.dateFormatter=r(BK);this.paddingLeftPx=5;this.timestampMs$=new sg(1);this.timestampIso$=this.timestampMs$.pipe(C(function(b){return b?(new Date(b)).toISOString():""}));this.timestampDate$=this.timestampMs$.pipe(C(function(b){if(b!==void 0)return new Date(b)}));this[SNc]=this.timestampDate$.pipe(xg(function(b){if(b===void 0)return Nf("");var c=b.getTime()/
1E3;switch(a.mode){case "date":return a.dateFormatter.formatUserCalendar(b);case "time":return a.dateFormatter.formatUserTime(b);case "datetime":return bMc(a.dateFormatter,b);case "relativepast":return b=uq(c),Nf(b);case "relativepastshort":var d;return Nf((d=uq(c,!0))!=null?d:"");case "relativepasttiny":var e;return Nf((e=uq(c,!0,1))!=null?e:"");default:return pb(a.mode)}}));this[TNc]=this.timestampDate$.pipe(xg(function(b){return b===void 0?Nf(""):Uf(RNc.map(function(c){return cMc(a.dateFormatter,
b,c.id).pipe(C(function(d){return{formatted:d,tzName:c.name}}))})).pipe(UNc)}));this.vars$=Uf([this[SNc],this[TNc]]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return{formatted:b,title:c}}))};EL.prototype.ngOnInit=function(){};
nd.Object.defineProperties(EL.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())}}});EL.\u0275fac=function(a){return new (a||EL)};
EL.\u0275cmp=y({type:EL,selectors:[["b-formatted-date-time"]],inputs:{timestamp:"timestamp",date:"date",mode:"mode",paddingLeftPx:"paddingLeftPx"},standalone:!1,decls:2,vars:3,consts:[[3,"title","style"],[3,"title"]],template:function(a,b){a&1&&(F(0,SRa,3,8,"time",0),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.vars$))?0:-1,c)}},dependencies:[Tv],encapsulation:2,changeDetection:0});
var UNc=Bf(C(function(a){var b=new Map;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b.get(c.formatted);d?d.tzNames.push(c.tzName):(d={formatted:c.formatted,tzNames:[c.tzName]},b.set(c.formatted,d))}return Array.from(b.values()).map(function(e){return e.formatted+" ("+e.tzNames.join("/")+")"}).join("\n")}));var FL=function(){Z.apply(this,arguments);var a=this;this.changelistApi=r(lB);this.providedChangelistId$=new sg(1);this.changelist$=this.providedChangelistId$.pipe(xg(function(b){return a.changelistApi.getChangelistDetails(b)}),ug({refCount:!0,bufferSize:1}));this.init=new sg(1)};Y(FL,Z);FL.\u0275dir=Z.\u0275dir;FL.prototype.ngOnInit=function(){var a=this;this.changelist$.pipe(mg(1),yg(this.destroyed$)).subscribe(function(){a.init.next()})};FL.prototype.ngOnChanges=function(a){a.changelistId&&this.providedChangelistId$.next(this.changelistId)};
FL.\u0275fac=function(){var a;return function(b){return(a||(a=Re(FL)))(b||FL)}}();
FL.\u0275cmp=y({type:FL,selectors:[["b-changelist-card"]],inputs:{changelistId:"changelistId"},outputs:{init:"init"},standalone:!1,features:[Bg,ov],decls:4,vars:3,consts:[["role","dialog","aria-label","Changelist hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"card"],[3,"href"],[1,"author"],[1,"description"],[3,"innerHTML"],[3,"email","hovercardEnabled"],["mode","datetime",1,"float-right",3,"timestamp"]],template:function(a,b){a&1&&(J(0,"div",0)(1,"div",1),F(2,WRa,16,5,"div",
2),U(3,"async"),K()());if(a&2){var c;x(2);G((c=V(3,1,b.changelist$))?2:-1,c)}},dependencies:[aL,EL,Tv],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 GL=function(){this.analytics=r(RE);this.config=Object.assign({},new GI,{showDelay:400,hideDelay:400,position:[{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-20}]})};GL.prototype.ngOnInit=function(){};GL.prototype.trackClick=function(){this.analytics.trackEvent("editIssue","click","changelistChip")};GL.\u0275fac=function(a){return new (a||GL)};
GL.\u0275cmp=y({type:GL,selectors:[["b-changelist-chip"]],inputs:{changelistId:"changelistId"},standalone:!1,decls:7,vars:5,consts:[["card","onedevHovercard"],["cardBody",""],["target","_blank",1,"bv2-metadata-link",3,"click","href","onedevHovercardTrigger","onedevHovercardConfig"],[1,"suffix"],[3,"onedevIsHovercardReady","changelistId",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","changelistId"]],template:function(a,b){if(a&1){var c=t();J(0,"a",2);N("click",function(){u(c);return w(b.trackClick())});
R(1);J(2,"span",3);R(3,"CL");K()();J(4,"onedev-hovercard",null,0);D(6,XRa,2,2,"b-changelist-card",4);K()}a&2&&(a=Q(5),I("href","http://critique.corp.google.com/"+b.changelistId,hf)("onedevHovercardTrigger",a)("onedevHovercardConfig",b.config),Lg("aria-label","Changelist "+b.changelistId),x(),T(" ",b.changelistId," "))},dependencies:[DI,EI,JI,FI,FL],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 HL=function(){this.activeSession=r(Bs);this.analytics=r(RE);this.gerritUrl="";this.isInternal=this.activeSession.getFrontendAccessMode()==="INTERNAL"};HL.prototype.ngOnInit=function(){};HL.prototype.ngOnChanges=function(a){a.change&&(this.gerritUrl=Gl(this.change,this.isInternal))};HL.prototype.trackClick=function(){this.analytics.trackEvent("editIssue","click","gerritChangesChip")};HL.\u0275fac=function(a){return new (a||HL)};
HL.\u0275cmp=y({type:HL,selectors:[["b-gerrit-change-chip"]],inputs:{change:[0,"gerritChange","change"]},standalone:!1,features:[ov],decls:5,vars:8,consts:[["target","_blank",1,"bv2-metadata-link",3,"click","href"],[1,"suffix"]],template:function(a,b){a&1&&(J(0,"a",0),N("click",function(){return b.trackClick()}),R(1),J(2,"span",1),R(3),U(4,"titlecase"),K()());a&2&&(Lg("aria-label",Eh("",b.change.host," ",b.change.changeNumber)),I("href",b.gerritUrl,hf),x(),T(" ",b.change.changeNumber," "),x(2),wh(V(4,
6,b.change.host)))},dependencies:[Vv],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 IL=function(){this.activeSession=r(Bs);this.gerritChange=this.changelist=void 0;this.enableGerritChanges=OA(this.activeSession,"enableGerritChanges")};IL.prototype.ngOnInit=function(){};IL.prototype.ngOnChanges=function(a){a.codeChange&&((a=Hl(this.codeChange))?(this.changelist=void 0,this.gerritChange=a):(this.gerritChange=void 0,this.changelist=Number(this.codeChange)))};IL.\u0275fac=function(a){return new (a||IL)};
IL.\u0275cmp=y({type:IL,selectors:[["b-code-change-chip"]],inputs:{codeChange:"codeChange"},standalone:!1,features:[ov],decls:2,vars:1,consts:[[3,"changelistId"],[3,"gerritChange"]],template:function(a,b){a&1&&F(0,YRa,1,1,"b-changelist-chip",0)(1,ZRa,1,1,"b-gerrit-change-chip",1);a&2&&G(b.changelist?0:b.enableGerritChanges&&b.gerritChange?1:-1)},dependencies:[GL,HL],encapsulation:2});var JL=function(){};JL.\u0275fac=function(a){return new (a||JL)};JL.\u0275mod=uf({type:JL});JL.\u0275inj=Dd({imports:[HC]});var VNc=function(){this.id=0};VNc.\u0275fac=function(a){return new (a||VNc)};
VNc.\u0275cmp=y({type:VNc,selectors:[["changelist-link-plain"]],inputs:{id:"id"},standalone:!1,decls:5,vars:3,consts:[["card","onedevHovercard"],["cardBody",""],["target","_blank",1,"cl-link",3,"href","onedevHovercardTrigger"],[3,"onedevIsHovercardReady","changelistId",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","changelistId"]],template:function(a,b){a&1&&(J(0,"a",2),R(1),K(),J(2,"onedev-hovercard",null,0),D(4,$Ra,2,2,"b-changelist-card",3),K());a&2&&(a=Q(3),I("href","http://critique.corp.google.com/"+
b.id,hf)("onedevHovercardTrigger",a),x(),T(" cl/",b.id,"\n"))},dependencies:[DI,EI,JI,FI,FL],encapsulation:2});var KL=function(){};KL.\u0275fac=function(a){return new (a||KL)};KL.\u0275mod=uf({type:KL});KL.\u0275inj=Dd({imports:[HC,hL,tJ,JL]});var LL=function(){};LL.\u0275fac=function(a){return new (a||LL)};LL.\u0275mod=uf({type:LL});LL.\u0275inj=Dd({imports:[HC,tJ,KL]});var WNc=new le("GMAT_LIST_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var ML=function(a){this.options=a;if(a.disableGmatStyle)throw Error("Mc");};ML.\u0275fac=function(a){return new (a||ML)(of(WNc))};ML.\u0275dir=vf({type:ML,selectors:[["mat-list"],["mat-action-list"],["mat-nav-list"],["mat-selection-list"]],hostAttrs:[1,"gmat-mdc-list"],standalone:!1});var XNc=new le("ListOption");var NL=function(){this._elementRef=r(Te)};NL.\u0275fac=function(a){return new (a||NL)};NL.\u0275dir=vf({type:NL,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]});var OL=function(){this._elementRef=r(Te)};OL.\u0275fac=function(a){return new (a||OL)};OL.\u0275dir=vf({type:OL,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]});var YNc=function(){};
YNc.\u0275fac=function(a){return new (a||YNc)};YNc.\u0275dir=vf({type:YNc,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]});var PL=function(){this._listOption=r(XNc,{optional:!0})};PL.prototype._isAlignedAtStart=function(){var a;return!this._listOption||((a=this._listOption)==null?void 0:a._getTogglePosition())==="after"};PL.\u0275fac=function(a){return new (a||PL)};
PL.\u0275dir=vf({type:PL,hostVars:4,hostBindings:function(a,b){a&2&&uh("mdc-list-item__start",b._isAlignedAtStart())("mdc-list-item__end",!b._isAlignedAtStart())}});var QL=function(){PL.apply(this,arguments)};Y(QL,PL);QL.\u0275fac=function(){var a;return function(b){return(a||(a=Re(QL)))(b||QL)}}();QL.\u0275dir=vf({type:QL,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[Bg]});var RL=function(){PL.apply(this,arguments)};Y(RL,PL);
RL.\u0275fac=function(){var a;return function(b){return(a||(a=Re(RL)))(b||RL)}}();RL.\u0275dir=vf({type:RL,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[Bg]});var ZNc=new le("MAT_LIST_CONFIG");var SL=function(){this._isNonInteractive=!0;this._disableRipple=!1;this._disabled=nh.apply(null,[!1].concat(p([])));this._defaultOptions=r(ZNc,{optional:!0})};nd.Object.defineProperties(SL.prototype,{disableRipple:{configurable:!0,enumerable:!0,get:function(){return this._disableRipple},set:function(a){this._disableRipple=pi(a)}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled()},set:function(a){this._disabled.set(pi(a))}}});SL.\u0275fac=function(a){return new (a||SL)};
SL.\u0275dir=vf({type:SL,hostVars:1,hostBindings:function(a,b){a&2&&Lg("aria-disabled",b.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}});
var TL=function(){this._elementRef=r(Te);this._ngZone=r(Ph);this._listBase=r(SL,{optional:!0});this._platform=r(zi);this._noopAnimations=Ri();this._explicitLines=null;this._disableRipple=!1;this._disabled=nh.apply(null,[!1].concat(p([])));this._subscriptions=new yf;this._rippleRenderer=null;this._hasUnscopedTextContent=!1;r(Di).load(wx);this.rippleConfig=r(yx,{optional:!0})||{};this._hostElement=this._elementRef.nativeElement;this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button";
this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem();this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")};g=TL.prototype;g.ngAfterViewInit=function(){this._monitorProjectedLinesAndTitle();this._updateItemLines(!0)};g.ngOnDestroy=function(){this._subscriptions.unsubscribe();this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()};g._hasIconOrAvatar=function(){return!(!this._avatars.length&&!this._icons.length)};
g._initInteractiveListItem=function(){this._hostElement.classList.add("mat-mdc-list-item-interactive");this._rippleRenderer=new Tjc(this,this._ngZone,this._hostElement,this._platform,r(Cg));Wjc(this._rippleRenderer,this._hostElement)};g._monitorProjectedLinesAndTitle=function(){var a=this;this._ngZone.runOutsideAngular(function(){a._subscriptions.add(dg(a._lines.changes,a._titles.changes).subscribe(function(){return a._updateItemLines(!1)}))})};
g._updateItemLines=function(a){if(this._lines&&this._titles&&this._unscopedContent){a&&this._checkDomForUnscopedTextContent();var b;a=(b=this._explicitLines)!=null?b:this._inferLinesFromContent();b=this._unscopedContent.nativeElement;this._hostElement.classList.toggle("mat-mdc-list-item-single-line",a<=1);this._hostElement.classList.toggle("mdc-list-item--with-one-line",a<=1);this._hostElement.classList.toggle("mdc-list-item--with-two-lines",a===2);this._hostElement.classList.toggle("mdc-list-item--with-three-lines",
a===3);this._hasUnscopedTextContent?(a=this._titles.length===0&&a===1,b.classList.toggle("mdc-list-item__primary-text",a),b.classList.toggle("mdc-list-item__secondary-text",!a)):(b.classList.remove("mdc-list-item__primary-text"),b.classList.remove("mdc-list-item__secondary-text"))}};g._inferLinesFromContent=function(){var a=this._titles.length+this._lines.length;this._hasUnscopedTextContent&&(a+=1);return a};
g._checkDomForUnscopedTextContent=function(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(function(a){return a.nodeType!==a.COMMENT_NODE}).some(function(a){return!(!a.textContent||!a.textContent.trim())})};
nd.Object.defineProperties(TL.prototype,{lines:{configurable:!0,enumerable:!0,set:function(a){this._explicitLines=si(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=pi(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(pi(a))}},rippleDisabled:{configurable:!0,enumerable:!0,get:function(){return this.disableRipple||!!this.rippleConfig.disabled}}});TL.\u0275fac=function(a){return new (a||TL)};
TL.\u0275dir=vf({type:TL,contentQueries:function(a,b,c){a&1&&(ih(c,QL,4),ih(c,RL,4));if(a&2){var d;lh(d=mh())&&(b._avatars=d);lh(d=mh())&&(b._icons=d)}},hostVars:4,hostBindings:function(a,b){a&2&&(Lg("aria-disabled",b.disabled)("disabled",b._isButtonElement&&b.disabled||null),uh("mdc-list-item--disabled",b.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}});var $Nc=["unscopedContent"],aOc=[[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["mat-divider"]],[["","matListItemAvatar",""],["","matListItemIcon",""]]],bOc=new le("SelectionList"),UL=function(){TL.apply(this,arguments);this._selectionList=r(bOc);this._changeDetectorRef=r(Hv);this.selectedChange=new nq;this.togglePosition="after";this._inputsInitialized=this._selected=!1};Y(UL,TL);UL.\u0275dir=TL.\u0275dir;g=UL.prototype;
g.ngOnInit=function(){var a=this,b=this._selectionList;b._value&&b._value.some(function(d){return b.compareWith(a._value,d)})&&this._setSelected(!0);var c=this._selected;Promise.resolve().then(function(){if(a._selected||c)a.selected=!0,a._changeDetectorRef.markForCheck()});this._inputsInitialized=!0};g.ngOnDestroy=function(){var a=this;TL.prototype.ngOnDestroy.call(this);this.selected&&Promise.resolve().then(function(){a.selected=!1})};g.toggle=function(){this.selected=!this.selected};g.focus=function(){this._hostElement.focus()};
g.getLabel=function(){var a,b,c,d;return((d=((a=this._titles)==null?void 0:(b=a.get(0))==null?void 0:b._elementRef.nativeElement)||((c=this._unscopedContent)==null?void 0:c.nativeElement))==null?void 0:d.textContent)||""};g._hasCheckboxAt=function(a){return this._selectionList.multiple&&this._getTogglePosition()===a};g._hasRadioAt=function(a){return!this._selectionList.multiple&&this._getTogglePosition()===a&&!this._selectionList.hideSingleSelectionIndicator};
g._hasIconsOrAvatarsAt=function(a){return this._hasProjected("icons",a)||this._hasProjected("avatars",a)};g._hasProjected=function(a,b){return this._getTogglePosition()!==b&&(a==="avatars"?this._avatars.length!==0:this._icons.length!==0)};g._handleBlur=function(){this._selectionList._onTouched()};g._getTogglePosition=function(){return this.togglePosition||"after"};
g._setSelected=function(a){if(a===this._selected)return!1;(this._selected=a)?this._selectionList.selectedOptions.select(this):this._selectionList.selectedOptions.deselect(this);this.selectedChange.emit(a);this._changeDetectorRef.markForCheck();return!0};g._markForCheck=function(){this._changeDetectorRef.markForCheck()};
g._toggleOnInteraction=function(){this.disabled||(this._selectionList.multiple?(this.selected=!this.selected,this._selectionList._emitChangeEvent([this])):this.selected||(this.selected=!0,this._selectionList._emitChangeEvent([this])))};g._setTabindex=function(a){this._hostElement.setAttribute("tabindex",a+"")};
g._hasBothLeadingAndTrailing=function(){var a=this._hasProjected("icons","after")||this._hasProjected("avatars","after")||this._hasCheckboxAt("after")||this._hasRadioAt("after");return(this._hasProjected("avatars","before")||this._hasProjected("icons","before")||this._hasCheckboxAt("before")||this._hasRadioAt("before"))&&a};
nd.Object.defineProperties(UL.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=pi(a);a!==this._selected&&(this._setSelected(a),(a||this._selectionList.multiple)&&this._selectionList._reportValueChange())}}});UL.\u0275fac=function(){var a;return function(b){return(a||(a=Re(UL)))(b||UL)}}();
UL.\u0275cmp=y({type:UL,selectors:[["mat-list-option"]],contentQueries:function(a,b,c){a&1&&(ih(c,OL,5),ih(c,NL,5));if(a&2){var d;lh(d=mh())&&(b._lines=d);lh(d=mh())&&(b._titles=d)}},viewQuery:function(a,b){a&1&&hh($Nc,5);if(a&2){var c;lh(c=mh())&&(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&&(Lg("aria-selected",b.selected),uh("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:[Fh([{provide:TL,useExisting:UL},{provide:XNc,useExisting:UL}]),Bg],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();ch(aOc);D(0,aSa,1,0,"ng-template",null,0,Lh)(2,bSa,6,4,"ng-template",null,1,Lh)(4,cSa,5,4,"ng-template",null,2,Lh);F(6,eSa,2,1,"span",4)(7,gSa,2,1,"span",5);F(8,iSa,1,1,null,6);J(9,"span",7);dh(10);dh(11,1);J(12,"span",8,3);N("cdkObserveContent",function(){u(c);return w(b._updateItemLines(!0))});dh(14,2);K()();F(15,kSa,2,1,"span",9)(16,mSa,2,1,"span",9);F(17,oSa,1,1,null,6);dh(18,3);M(19,"div",10)}a&
2&&(x(6),G(b._hasCheckboxAt("before")?6:b._hasRadioAt("before")?7:-1),x(2),G(b._hasIconsOrAvatarsAt("before")?8:-1),x(7),G(b._hasCheckboxAt("after")?15:b._hasRadioAt("after")?16:-1),x(2),G(b._hasIconsOrAvatarsAt("after")?17:-1))},dependencies:[Sv,yw],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}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox--disabled{opacity:.5}}.mat-mdc-list-option .mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--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))}.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)}.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))}.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:CanvasText}}.mat-mdc-list-option .mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mat-mdc-list-option .mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--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))}.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 cOc={provide:Yx,useExisting:$d(function(){return VL}),multi:!0},dOc=function(a,b){this.source=a;this.options=b},VL=function(){SL.call(this);var a=this;this._element=r(Te);this._ngZone=r(Ph);this._renderer=r(Ji);this._initialized=!1;this._destroyed=new tg;this._onChange=function(){};this.selectionChange=new nq;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 Tw(this._multiple);this._onTouched=function(){};this._changeDetectorRef=r(Hv);this._selectionListDisabled=nh.apply(null,[!1].concat(p([])));this._handleFocusout=function(){setTimeout(function(){a._containsFocus()||a._resetActiveOption()})};this._handleFocusin=function(d){if(!a.disabled){var e=a._items.toArray().findIndex(function(f){return f._elementRef.nativeElement.contains(d.target)});e>-1?a._setActiveOption(e):a._resetActiveOption()}};this._isNonInteractive=
!1};Y(VL,SL);VL.\u0275dir=SL.\u0275dir;g=VL.prototype;g.ngAfterViewInit=function(){var a=this;this._initialized=!0;this._setupRovingTabindex();this._ngZone.runOutsideAngular(function(){a._listenerCleanups=[a._renderer.listen(a._element.nativeElement,"focusin",a._handleFocusin),a._renderer.listen(a._element.nativeElement,"focusout",a._handleFocusout)]});this._value&&this._setOptionsFromValues(this._value);this._watchForSelectionChange()};
g.ngOnChanges=function(a){var b=a.disabled,c=a.disableRipple;a=a.hideSingleSelectionIndicator;(c&&!c.firstChange||b&&!b.firstChange||a&&!a.firstChange)&&this._markOptionsForCheck()};g.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();var b;(b=this._listenerCleanups)==null||b.forEach(function(c){return c()});this._destroyed.next();this._destroyed.complete();this._isDestroyed=!0};g.focus=function(a){this._element.nativeElement.focus(a)};g.selectAll=function(){this._setAllOptionsSelected(!0)};
g.deselectAll=function(){return this._setAllOptionsSelected(!1)};g._reportValueChange=function(){if(this.options&&!this._isDestroyed){var a=this._getSelectedOptionValues();this._onChange(a);this._value=a}};g._emitChangeEvent=function(a){this.selectionChange.emit(new dOc(this,a))};g.writeValue=function(a){this._value=a;this.options&&this._setOptionsFromValues(a||[])};g.setDisabledState=function(a){this.disabled=a;this._changeDetectorRef.markForCheck();this._markOptionsForCheck()};
g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};g._watchForSelectionChange=function(){var a=this;this.selectedOptions.changed.pipe(yg(this._destroyed)).subscribe(function(b){for(var c=l(b.added),d=c.next();!d.done;d=c.next())d.value.selected=!0;b=l(b.removed);for(c=b.next();!c.done;c=b.next())c.value.selected=!1;a._containsFocus()||a._resetActiveOption()})};
g._setOptionsFromValues=function(a){var b=this;this.options.forEach(function(c){return c._setSelected(!1)});a.forEach(function(c){var d=b.options.find(function(e){return e.selected?!1:b.compareWith(e.value,c)});d&&d._setSelected(!0)})};g._getSelectedOptionValues=function(){return this.options.filter(function(a){return a.selected}).map(function(a){return a.value})};g._markOptionsForCheck=function(){this.options&&this.options.forEach(function(a){return a._markForCheck()})};
g._setAllOptionsSelected=function(a,b){var c=[];this.options.forEach(function(d){b&&d.disabled||!d._setSelected(a)||c.push(d)});c.length&&this._reportValueChange();return c};
g._handleKeydown=function(a){var b=this._keyManager.activeItem;if(a.keyCode!==13&&a.keyCode!==32||this._keyManager.isTyping()||!b||b.disabled)if(a.keyCode===65&&this.multiple&&!this._keyManager.isTyping()&&ki(a,"ctrlKey","metaKey"))b=this.options.some(function(c){return!c.disabled&&!c.selected}),a.preventDefault(),this._emitChangeEvent(this._setAllOptionsSelected(b,!0));else this._keyManager.onKeydown(a);else a.preventDefault(),b._toggleOnInteraction()};
g._setupRovingTabindex=function(){var a=this;this._keyManager=Iw(ajc(Lw(new Ow(this._items)))).skipPredicate(function(){return a.disabled});this._resetActiveOption();this._keyManager.change.subscribe(function(b){return a._setActiveOption(b)});this._items.changes.pipe(yg(this._destroyed)).subscribe(function(){var b=a._keyManager.activeItem;b&&a._items.toArray().indexOf(b)!==-1||a._resetActiveOption()})};
g._setActiveOption=function(a){this._items.forEach(function(b,c){return b._setTabindex(c===a?0:-1)});Mw(this._keyManager,a)};g._resetActiveOption=function(){if(this.disabled)this._setActiveOption(-1);else{var a=this._items.find(function(b){return b.selected&&!b.disabled})||this._items.first;this._setActiveOption(a?this._items.toArray().indexOf(a):-1)}};g._containsFocus=function(){var a=mi();return a&&this._element.nativeElement.contains(a)};
nd.Object.defineProperties(VL.prototype,{multiple:{configurable:!0,enumerable:!0,get:function(){return this._multiple},set:function(a){a=pi(a);a!==this._multiple&&(this._multiple=a,this.selectedOptions=new Tw(this._multiple,this.selectedOptions.selected))}},hideSingleSelectionIndicator:{configurable:!0,enumerable:!0,get:function(){return this._hideSingleSelectionIndicator},set:function(a){this._hideSingleSelectionIndicator=pi(a)}},disabled:{configurable:!0,enumerable:!0,get:function(){return this._selectionListDisabled()},
set:function(a){this._selectionListDisabled.set(pi(a));if(this._selectionListDisabled()){var b;(b=this._keyManager)==null||b.setActiveItem(-1)}}},options:{configurable:!0,enumerable:!0,get:function(){return this._items}}});VL.\u0275fac=function(a){return new (a||VL)};
VL.\u0275cmp=y({type:VL,selectors:[["mat-selection-list"]],contentQueries:function(a,b,c){a&1&&ih(c,UL,5);if(a&2){var d;lh(d=mh())&&(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&&Lg("aria-multiselectable",b.multiple)},inputs:{color:"color",compareWith:"compareWith",multiple:"multiple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator",
disabled:"disabled"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[Fh([cOc,{provide:SL,useExisting:VL},{provide:bOc,useExisting:VL}]),Bg,ov],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(ch(),dh(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 WL=function(){Z.apply(this,arguments);var a=this;this.dialogRef=r(KJ);this.data=r(QJ);this.searchQuery$=new tg;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(kg(300),og(),C(function(b){if(b.trim()!==""){var c=
b.toLowerCase();return a.data.allowedValues.filter(function(d){return la(d.toLowerCase(),c)})}return eOc(a)}))};Y(WL,Z);WL.\u0275dir=Z.\u0275dir;var eOc=function(a){var b=a.data.allowedValues.filter(function(c){return!a.originalSelectedValues.has(c)});return[].concat(p(a.originalSelectedValues),p(b))};
WL.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=Yra(this.originalSelectedValues,this.selectedValues);this.hasPendingChanges=!!a;var c=l(qSa(a));a=c.next().value;c=c.next().value;this.saveBtnLabel=a;this.saveBtnTooltip=c};var fOc=function(a){a.dialogRef.close(a.usePreviousSelectedValues?a.previousSelectedValues:a.selectedValues)};
WL.prototype.closeDialog=function(){this.dialogRef.close()};WL.\u0275fac=function(){var a;return function(b){return(a||(a=Re(WL)))(b||WL)}}();
WL.\u0275cmp=y({type:WL,selectors:[["b-custom-repeated-enum-dialog"]],hostBindings:function(a,b){a&1&&N("keydown.meta.enter",function(){return fOc(b)})("keydown.shift.enter",function(){return fOc(b)})("keydown.control.enter",function(){return fOc(b)})},standalone:!1,features:[Bg],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();J(0,"header",2)(1,"h2");R(2);K();J(3,"div",3);M(4,"mat-icon",4);J(5,"input",5,0);N("click",function(){u(c);var e=Q(6);b.searchQuery$.next(e.value);return w()})("input",function(){u(c);var e=Q(6);b.searchQuery$.next(e.value);return w()});K()()();J(7,"section",6,1)(9,"mat-selection-list",7);N("selectionChange",function(e){u(c);return w(b.changeSelection(e))})("keydown.meta.enter",function(){u(c);return w(b.usePreviousSelectedValues=!0)})("keydown.shift.enter",function(){u(c);return w(b.usePreviousSelectedValues=
!0)})("keydown.control.enter",function(){u(c);return w(b.usePreviousSelectedValues=!0)});Pg(10,pSa,2,5,"mat-list-option",8,Og);U(12,"async");K()();J(13,"mat-dialog-actions")(14,"button",9);N("click",function(){u(c);return w(b.closeDialog())});R(15," Cancel ");K();J(16,"button",10);N("click",function(){u(c);return w(fOc(b))});R(17);K()()}if(a&2){x(2);T("Search for ",b.data.customFieldTitle);x(3);I("placeholder","Type to filter "+b.data.customFieldTitle+" values");Lg("aria-label","Filter "+b.data.customFieldTitle+
" values");x(5);var d;Qg((d=V(12,8,b.matchedValues$))!=null?d:eOc(b));x(6);I("mat-dialog-close",!0)("matTooltip",b.saveBtnTooltip)("disabled",!b.hasPendingChanges);Lg("aria-label",b.saveBtnTooltip);x();T(" ",b.saveBtnLabel," ")}},dependencies:[FC,oG,Jx,SJ,UJ,WJ,VJ,ML,VL,UL,zG,xG,Tv],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 XL=function(){this.dialog=r(RJ);this.dialogRef=null};XL.prototype.open=function(a){var b=this,c,d;return z(function(e){if(e.nextAddress==1)return c={panelClass:"no-jitter",data:a,ariaLabel:"Custom repeated enum dialog"},b.dialogRef=b.dialog.open(WL,c),B(e,Rf(LJ(b.dialogRef)),2);d=e.yieldResult;return e.return(Promise.resolve(d))})};XL.prototype.isOpen=function(){return this.dialogRef?this.dialogRef.getState()===0:!1};XL.\u0275fac=function(a){return new (a||XL)};
XL.\u0275prov=Cd({token:XL,factory:XL.\u0275fac,providedIn:"root"});var gOc=["unscopedContent"],hOc=["text"],iOc=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]];new le("MatList");var YL=function(){SL.apply(this,arguments)};Y(YL,SL);YL.\u0275dir=SL.\u0275dir;YL.\u0275fac=function(){var a;return function(b){return(a||(a=Re(YL)))(b||YL)}}();
YL.\u0275cmp=y({type:YL,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[Fh([{provide:SL,useExisting:YL}]),Bg],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(ch(),dh(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 ZL=function(){TL.apply(this,arguments);this._activated=!1};Y(ZL,TL);ZL.\u0275dir=TL.\u0275dir;ZL.prototype._getAriaCurrent=function(){return this._hostElement.nodeName==="A"&&this._activated?"page":null};ZL.prototype._hasBothLeadingAndTrailing=function(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)};
nd.Object.defineProperties(ZL.prototype,{activated:{configurable:!0,enumerable:!0,get:function(){return this._activated},set:function(a){this._activated=pi(a)}}});ZL.\u0275fac=function(){var a;return function(b){return(a||(a=Re(ZL)))(b||ZL)}}();
ZL.\u0275cmp=y({type:ZL,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(a,b,c){a&1&&(ih(c,OL,5),ih(c,NL,5),ih(c,YNc,5));if(a&2){var d;lh(d=mh())&&(b._lines=d);lh(d=mh())&&(b._titles=d);lh(d=mh())&&(b._meta=d)}},viewQuery:function(a,b){a&1&&(hh(gOc,5),hh(hOc,5));if(a&2){var c;lh(c=mh())&&(b._unscopedContent=c.first);lh(c=mh())&&(b._itemText=c.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(a,b){a&
2&&(Lg("aria-current",b._getAriaCurrent()),uh("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:[Bg],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();ch(iOc);dh(0);J(1,"span",1);dh(2,1);dh(3,2);J(4,"span",2,0);N("cdkObserveContent",function(){u(c);return w(b._updateItemLines(!0))});dh(6,3);K()();dh(7,4);dh(8,5);M(9,"div",3)}},dependencies:[yw],encapsulation:2,changeDetection:0});new le("MatNavList");var $L=function(){};$L.\u0275fac=function(a){return new (a||$L)};$L.\u0275mod=uf({type:$L});$L.\u0275inj=Dd({imports:[zw,px,Cx,Dx,zL]});var aM=function(){};aM.\u0275fac=function(a){return new (a||aM)};aM.\u0275mod=uf({type:aM});aM.\u0275inj=Dd({imports:[$L]});var bM=function(){};bM.\u0275fac=function(a){return new (a||bM)};bM.\u0275mod=uf({type:bM});bM.\u0275inj=Dd({imports:[HC,Ay,BG,wK,aM,CG]});var jOc=new le("GMAT_AUTOCOMPLETE_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var kOc=["panel"],lOc=function(a,b){this.source=a;this.option=b},mOc=new le("mat-autocomplete-default-options",{providedIn:"root",factory:sSa}),cM=function(){this._changeDetectorRef=r(Hv);this._elementRef=r(Te);this._defaults=r(mOc);this._animationsDisabled=Ri();this._activeOptionChanges=yf.EMPTY;this._isOpen=this.showPanel=!1;this.displayWith=null;this.optionSelected=new nq;this.opened=new nq;this.closed=new nq;this.optionActivated=new nq;this.id=r(Fi).getId("mat-autocomplete-");r(zi);this.autoActiveFirstOption=
!!this._defaults.autoActiveFirstOption;this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption;this.requireSelection=!!this._defaults.requireSelection;var a;this._hideSingleSelectionIndicator=(a=this._defaults.hideSingleSelectionIndicator)!=null?a:!1};g=cM.prototype;g._setColor=function(a){this._color=a;this._changeDetectorRef.markForCheck()};g._syncParentProperties=function(){if(this.options)for(var a=l(this.options),b=a.next();!b.done;b=a.next())b.value._changeDetectorRef.markForCheck()};
g.ngAfterContentInit=function(){var a=this;this._keyManager=Iw(new Nw(this.options)).skipPredicate(this._skipPredicate);this._activeOptionChanges=this._keyManager.change.subscribe(function(b){a.isOpen&&a.optionActivated.emit({source:a,option:a.options.toArray()[b]||null})});this._setVisibility()};g.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();this._activeOptionChanges.unsubscribe()};g._setScrollTop=function(a){this.panel&&(this.panel.nativeElement.scrollTop=a)};
g._getScrollTop=function(){return this.panel?this.panel.nativeElement.scrollTop:0};g._setVisibility=function(){var a;this.showPanel=!((a=this.options)==null||!a.length);this._changeDetectorRef.markForCheck()};g._emitSelectEvent=function(a){this.optionSelected.emit(new lOc(this,a))};g._getPanelAriaLabelledby=function(a){return this.ariaLabel?null:this.ariaLabelledby?(a?a+" ":"")+this.ariaLabelledby:a};g._skipPredicate=function(){return!1};
nd.Object.defineProperties(cM.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()}}});cM.\u0275fac=function(a){return new (a||cM)};
cM.\u0275cmp=y({type:cM,selectors:[["mat-autocomplete"]],contentQueries:function(a,b,c){a&1&&(ih(c,Bx,5),ih(c,Jjc,5));if(a&2){var d;lh(d=mh())&&(b.options=d);lh(d=mh())&&(b.optionGroups=d)}},viewQuery:function(a,b){a&1&&(hh(eh,7),hh(kOc,5));if(a&2){var c;lh(c=mh())&&(b.template=c.first);lh(c=mh())&&(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",$h],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",$h],requireSelection:[2,"requireSelection","requireSelection",$h],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",$h],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",$h]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},
exportAs:["matAutocomplete"],features:[Fh([{provide:Ijc,useExisting:cM}])],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&&(ch(),dma(0,rSa,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{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 nOc={provide:Yx,useExisting:$d(function(){return dM}),multi:!0},oOc=new le("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:function(){var a=r(Cg);return function(){return xi(a)}}}),pOc={provide:oOc,deps:[],useFactory:function(){var a=r(Cg);return function(){return xi(a)}}},dM=function(){var a=this;this._environmentInjector=r(pf);this._element=r(Te);this._injector=r(Cg);this._viewContainerRef=r(fh);this._zone=r(Ph);this._changeDetectorRef=r(Hv);this._dir=r(Gi,{optional:!0});this._formField=
r(llc,{optional:!0,host:!0});this._viewportRuler=r(vi);this._scrollStrategy=r(oOc);this._renderer=r(Ji);this._animationsDisabled=Ri();this._defaults=r(mOc,{optional:!0});this._componentDestroyed=!1;this._initialized=new tg;this._manuallyFloatingLabel=!1;this._viewportSubscription=yf.EMPTY;this._breakpointObserver=r(uw);this._handsetLandscapeSubscription=yf.EMPTY;this._canOpenOnNextFocus=!0;this._closeKeyEventStream=new tg;var b;this._overlayPanelClass=oi(((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=Yf(function(){var c=a.autocomplete?a.autocomplete.options:null;return c?c.changes.pipe(wg(c),xg(function(){return dg.apply(null,p(c.map(function(d){return d.onSelectionChange})))})):a._initialized.pipe(xg(function(){return a.optionSelections}))});
this._handlePanelKeydown=function(c){if(c.keyCode===27&&!ki(c)||c.keyCode===38&&ki(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};
dM.prototype.ngAfterViewInit=function(){this._initialized.next();this._initialized.complete();this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)};dM.prototype.ngOnChanges=function(a){a.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())};
dM.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 Oob=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&&
ti(a._trackedModal,"aria-owns",a.autocomplete.id))};g=dM.prototype;g.updatePosition=function(){this._overlayAttached&&this._overlayRef.updatePosition()};
g._getOutsideClickStream=function(){var a=this;return new Cf(function(b){var c=function(e){var f=ni(e),h=a._formField?a._formField.getConnectedOverlayOrigin().nativeElement:null,k=a.connectedTo?a.connectedTo.elementRef.nativeElement:null;!a._overlayAttached||f===a._element.nativeElement||a._hasFocus()||h&&h.contains(f)||k&&k.contains(f)||!a._overlayRef||a._overlayRef.overlayElement.contains(f)||b.next(e)},d=[a._renderer.listen("document","click",c),a._renderer.listen("document","auxclick",c),a._renderer.listen("document",
"touchend",c)];return function(){d.forEach(function(e){return e()})}})};g.writeValue=function(a){var b=this;Promise.resolve(null).then(function(){return b._assignOptionValue(a)})};g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this._element.nativeElement.disabled=a};
g._handleKeydown=function(a){var b=a.keyCode,c=ki(a);b!==27||c||a.preventDefault();this._valueOnLastKeydown=this._element.nativeElement.value;if(this.activeOption&&b===13&&this.panelOpen&&!c)this.activeOption._selectViaInteraction(),this._resetActiveItem(),a.preventDefault();else if(this.autocomplete){var d=this.autocomplete._keyManager.activeItem,e=b===38||b===40;if(b===9||e&&!c&&this.panelOpen)this.autocomplete._keyManager.onKeydown(a);else e&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown);
if(e||this.autocomplete._keyManager.activeItem!==d)this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value))}};
g._handleInput=function(a){var b=a.target;a=b.value;b.type==="number"&&(a=a==""?null:parseFloat(a));if(this._previousValue!==a){this._previousValue=a;this._pendingAutoselectedOption=null;this.autocomplete&&this.autocomplete.requireSelection||this._onChange(a);if(!a)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){var c;if(b=(c=this.autocomplete.options)==null?void 0:c.find(function(e){return e.selected}))c=this._getDisplayValue(b.value),a!==c&&
b.deselect(!1)}if(this._canOpen()&&this._hasFocus()){var d;a=(d=this._valueOnLastKeydown)!=null?d:this._element.nativeElement.value;this._valueOnLastKeydown=null;this._openPanelInternal(a)}}};g._handleFocus=function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0};g._handleClick=function(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()};
g._hasFocus=function(){return mi()===this._element.nativeElement};g._floatLabel=function(a){this._formField&&this._formField.floatLabel==="auto"&&((a===void 0?0:a)?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)};g._resetLabel=function(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)};
g._subscribeToClosingActions=function(){var a=this,b=new Cf(function(f){Ig(function(){f.next()},{injector:a._environmentInjector})}),c,d,e=(d=(c=this.autocomplete.options)==null?void 0:c.changes.pipe(zg(function(){return tjc(a._positionStrategy)}),ng(0)))!=null?d:Nf();return dg(b,e).pipe(xg(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})}),mg(1)).subscribe(function(f){return a._setValueAndClose(f)})};g._emitOpened=function(){this.autocomplete.opened.emit()};g._destroyPanel=function(){this._overlayRef&&(Oob(this),this._overlayRef.dispose(),this._overlayRef=null)};g._getDisplayValue=function(a){var b=this.autocomplete;return b&&b.displayWith?b.displayWith(a):a};
g._assignOptionValue=function(a){var b=this._getDisplayValue(a);a==null&&this._clearPreviousSelectedOption(null,!1);this._updateNativeInputValue(b!=null?b:"")};g._updateNativeInputValue=function(a){this._formField?this._formField._control.value=a:this._element.nativeElement.value=a;this._previousValue=a};
g._setValueAndClose=function(a){var b=this.autocomplete;(a=a?a.source:this._pendingAutoselectedOption)?(this._clearPreviousSelectedOption(a),this._assignOptionValue(a.value),this._onChange(a.value),b._emitSelectEvent(a),this._element.nativeElement.focus()):b.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null));Oob(this)};
g._clearPreviousSelectedOption=function(a,b){var c,d;(c=this.autocomplete)==null||(d=c.options)==null||d.forEach(function(e){e!==a&&e.selected&&e.deselect(b)})};g._openPanelInternal=function(a){a=a===void 0?this._element.nativeElement.value:a;this._attachOverlay(a);this._floatLabel();this._trackedModal&&spa(this._trackedModal,"aria-owns",this.autocomplete.id)};
g._attachOverlay=function(a){var b=this,c=this._overlayRef;if(c)this._positionStrategy.setOrigin(this._getConnectedElement()),c.updateSize({width:this._getPanelWidth()});else{var d;this._portal=new gx(this.autocomplete.template,this._viewContainerRef,{id:(d=this._formField)==null?void 0:d.getLabelId()});this._overlayRef=c=Pi(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?Zw(vjc($w(b._positionStrategy,!0),!0),8):Zw(vjc($w(b._positionStrategy,!1),!1),0)})}c&&!c.hasAttached()&&(c.attach(this._portal),this._valueOnAttach=a,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());a=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0;this.autocomplete._latestOpeningTrigger=
this;var e;this.autocomplete._setColor((e=this._formField)==null?void 0:e.color);this._updatePanelState();this._applyModalPanelOwnership();this.panelOpen&&a!==this.panelOpen&&this._emitOpened()};
g._updatePanelState=function(){this.autocomplete._setVisibility();if(this.panelOpen){var a=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=a.keydownEvents().subscribe(this._handlePanelKeydown));this._outsideClickSubscription||(this._outsideClickSubscription=a.outsidePointerEvents().subscribe())}else{(a=this._keydownSubscription)==null||a.unsubscribe();var b;(b=this._outsideClickSubscription)==null||b.unsubscribe();this._keydownSubscription=this._outsideClickSubscription=null}};
g._getOverlayConfig=function(){var a,b,c;return new Ii({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})};
g._getOverlayPosition=function(){var a=wjc($w(Bi(this._injector,this._getConnectedElement()),!1),!1);this._setStrategyPositions(a);return this._positionStrategy=a};
g._setStrategyPositions=function(a){var b=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],c=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-autocomplete-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-autocomplete-panel-above"}];b=this.position==="above"?c:this.position==="below"?b:[].concat(p(b),p(c));Yw(a,b)};
g._getConnectedElement=function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element};g._getPanelWidth=function(){return this.autocomplete.panelWidth||this._getHostWidth()};g._getHostWidth=function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width};
g._resetActiveItem=function(){var a=this.autocomplete;if(a.autoActiveFirstOption){for(var b=-1,c=0;c<a.options.length;c++)if(!a.options.get(c).disabled){b=c;break}a._keyManager.setActiveItem(b)}else a._keyManager.setActiveItem(-1)};g._canOpen=function(){var a=this._element.nativeElement;return!a.readOnly&&!a.disabled&&!this.autocompleteDisabled};
g._scrollToOption=function(a){var b=this.autocomplete,c=Rpa(a,b.options,b.optionGroups);a===0&&c===1?b._setScrollTop(0):b.panel&&(a=b.options.toArray()[a])&&(a=a._getHostElement(),b._setScrollTop(Spa(a.offsetTop,a.offsetHeight,b._getScrollTop(),b.panel.nativeElement.offsetHeight)))};
g._applyModalPanelOwnership=function(){var a=this._element.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(a){var b=this.autocomplete.id;this._trackedModal&&ti(this._trackedModal,"aria-owns",b);spa(a,"aria-owns",b);this._trackedModal=a}};g._clearFromModal=function(){this._trackedModal&&(ti(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)};
nd.Object.defineProperties(dM.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 dg(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(eg(function(){return a._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef._detachments.pipe(eg(function(){return a._overlayAttached})):
Nf()).pipe(C(function(b){return b instanceof Zjc?b:null}))}},activeOption:{configurable:!0,enumerable:!0,get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}}});dM.\u0275fac=function(a){return new (a||dM)};
dM.\u0275dir=vf({type:dM,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&&Lg("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",$h]},exportAs:["matAutocompleteTrigger"],features:[Fh([nOc]),ov]});var eM=function(){};eM.\u0275fac=function(a){return new (a||eM)};eM.\u0275mod=uf({type:eM});eM.\u0275inj=Dd({providers:[pOc],imports:[ox,Ex,px,Vw,Ex,px]});var fM=function(){if(r(jOc).disableGmatStyle)throw Error("Mc");var a=r(dM,{self:!0,optional:!0});a&&a._overlayPanelClass.push("gmat-mdc-autocomplete")};fM.\u0275fac=function(a){return new (a||fM)};fM.\u0275dir=vf({type:fM,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],standalone:!1});var qOc=new le("GMAT_CHECKBOX_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var gM=function(a){this.options=a;if(a.disableGmatStyle)throw Error("Mc");};gM.\u0275fac=function(a){return new (a||gM)(of(qOc))};gM.\u0275dir=vf({type:gM,selectors:[["mat-checkbox"]],hostAttrs:[1,"gmat-mdc-checkbox"],standalone:!1});var rOc=new le("mat-checkbox-default-options",{providedIn:"root",factory:tSa});var sOc=["input"],tOc=["label"],uOc=function(){},vOc=tSa(),hM=function(){this._elementRef=r(Te);this._changeDetectorRef=r(Hv);this._ngZone=r(Ph);this._animationsDisabled=Ri();this._options=r(rOc,{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 nq;this.indeterminateChange=new nq;this._onTouched=function(){};this._currentAnimationClass="";this._currentCheckState=0;this._controlValueAccessorChangeFn=function(){};this._validatorChangeFn=function(){};this._disabled=this._checked=!1;this._indeterminate=nh.apply(null,[!1].concat(p([])));r(Di).load(wx);var a=r(new pv("tabindex"),
{optional:!0});this._options=this._options||vOc;this.color=this._options.color||vOc.color;this.tabIndex=a==null?0:parseInt(a)||0;this.id=this._uniqueId=r(Fi).getId("mat-mdc-checkbox-");var b,c;this.disabledInteractive=(c=(b=this._options)==null?void 0:b.disabledInteractive)!=null?c:!1};g=hM.prototype;g.focus=function(){this._inputElement.nativeElement.focus()};g._createChangeEvent=function(a){var b=new uOc;b.source=this;b.checked=a;return b};
g._getAnimationTargetElement=function(){var a;return(a=this._inputElement)==null?void 0:a.nativeElement};g.ngOnChanges=function(a){a.required&&this._validatorChangeFn()};g.ngAfterViewInit=function(){this._syncIndeterminate(this.indeterminate)};g._isRippleDisabled=function(){return this.disableRipple||this.disabled};g._onLabelTextChange=function(){this._changeDetectorRef.detectChanges()};g.writeValue=function(a){this.checked=!!a};g.registerOnChange=function(a){this._controlValueAccessorChangeFn=a};
g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this.disabled=a};g.validate=function(a){return this.required&&a.value!==!0?{required:!0}:null};g.registerOnValidatorChange=function(a){this._validatorChangeFn=a};
g._transitionCheckState=function(a){var b=this._currentCheckState,c=this._getAnimationTargetElement();if(b!==a&&c&&(this._currentAnimationClass&&c.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(b,a),this._currentCheckState=a,this._currentAnimationClass.length>0)){c.classList.add(this._currentAnimationClass);var d=this._currentAnimationClass;this._ngZone.runOutsideAngular(function(){setTimeout(function(){c.classList.remove(d)},
1E3)})}};g._emitChangeEvent=function(){this._controlValueAccessorChangeFn(this.checked);this.change.emit(this._createChangeEvent(this.checked));this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)};g.toggle=function(){this.checked=!this.checked;this._controlValueAccessorChangeFn(this.checked)};
g._handleInputClick=function(){var a=this,b,c=(b=this._options)==null?void 0:b.clickAction;if(!this.disabled&&c!=="noop")this.indeterminate&&c!=="check"&&Promise.resolve().then(function(){a._indeterminate.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};g._onInteractionEvent=function(a){a.stopPropagation()};g._onBlur=function(){var a=this;Promise.resolve().then(function(){a._onTouched();a._changeDetectorRef.markForCheck()})};
g._getAnimationClassForCheckStateTransition=function(a,b){if(this._animationsDisabled)return"";switch(a){case 0:if(b===1)return this._animationClasses.uncheckedToChecked;if(b==3)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return b===1?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return b===2?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;
case 3:return b===1?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""};g._syncIndeterminate=function(a){var b=this._inputElement;b&&(b.nativeElement.indeterminate=a)};g._onInputClick=function(){this._handleInputClick()};g._onTouchTargetClick=function(){this._handleInputClick();this.disabled||this._inputElement.nativeElement.focus()};g._preventBubblingFromLabel=function(a){a.target&&this._labelElement.nativeElement.contains(a.target)&&a.stopPropagation()};
nd.Object.defineProperties(hM.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)}}});hM.\u0275fac=function(a){return new (a||hM)};
hM.\u0275cmp=y({type:hM,selectors:[["mat-checkbox"]],viewQuery:function(a,b){a&1&&(hh(sOc,5),hh(tOc,5));if(a&2){var c;lh(c=mh())&&(b._inputElement=c.first);lh(c=mh())&&(b._labelElement=c.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(a,b){a&2&&(Rg("id",b.id),Lg("tabindex",null)("aria-label",null)("aria-labelledby",null),vh(b.color?"mat-"+b.color:"mat-accent"),uh("_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",$h],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",$h],labelPosition:"labelPosition",name:"name",value:"value",
disableRipple:[2,"disableRipple","disableRipple",$h],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?void 0:ai(a)}],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",$h],checked:[2,"checked","checked",$h],disabled:[2,"disabled","disabled",$h],indeterminate:[2,"indeterminate","indeterminate",$h]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Fh([{provide:Yx,useExisting:$d(function(){return hM}),multi:!0},
{provide:Zx,useExisting:hM,multi:!0}]),ov],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();ch();J(0,"div",3);N("click",function(d){u(c);return w(b._preventBubblingFromLabel(d))});J(1,"div",4,0)(3,"div",5);N("click",function(){u(c);
return w(b._onTouchTargetClick())});K();J(4,"input",6,1);N("blur",function(){u(c);return w(b._onBlur())})("click",function(){u(c);return w(b._onInputClick())})("change",function(d){u(c);return w(b._onInteractionEvent(d))});K();M(6,"div",7);J(7,"div",8);Ge();J(8,"svg",9);M(9,"path",10);K();He();M(10,"div",11);K();M(11,"div",12);K();J(12,"label",13,2);dh(14);K()()}a&2&&(a=Q(2),I("labelPosition",b.labelPosition),x(4),uh("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),Lg("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),x(7),I("matRippleTrigger",a)("matRippleDisabled",
b.disableRipple||b.disabled)("matRippleCentered",!0),x(),I("for",b.inputId))},dependencies:[zx,xx],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}@media(forced-colors: active){.mdc-checkbox--disabled{opacity:.5}}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--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))}.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)}.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))}.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:CanvasText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--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))}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""}\n'],
encapsulation:2,changeDetection:0});var iM=function(){var a=this;this.showPlaceholder=!1;this.customFieldTitle="";this.allowMultiSelect=!1;this.selectedValues=[];this.allowedValues=[];this.disabled=!1;this.onValueChange=new LE;this.onApplyChanges=new LE;this.onCancelChanges=new LE;this.searchQuery$=new tg;this.hasPendingChanges=!1;this.selectedValuesMap={};this.oldSelectedValuesMap={};this.suggestedValues$=this.searchQuery$.pipe(kg(300),og(),C(function(b){var c=b.toLowerCase();return a.allowedValues.filter(function(d){return la(d.toLowerCase(),
c)})}))};g=iM.prototype;g.ngOnInit=function(){Mra(this.selectedValuesMap);for(var a=l(this.allowedValues),b=a.next();!b.done;b=a.next())b=b.value,this.selectedValuesMap[b]=this.selectedValues.includes(b);this.oldSelectedValuesMap=Object.assign({},this.selectedValuesMap);this.hasPendingChanges=!1};g.ngAfterViewInit=function(){};g.getPlaceholder=function(){return this.showPlaceholder?"Select "+this.customFieldTitle:""};
g.onSpace=function(a){var b;this.allowMultiSelect&&((b=this.autocompleteTrigger)==null?0:b.activeOption)&&(this.toggleSelection(this.autocompleteTrigger.activeOption.value),a.preventDefault(),a.stopPropagation())};g.search=function(a){this.searchQuery$.next(a)};g.handleSelectionChange=function(){this.hasPendingChanges=!gj(this.oldSelectedValuesMap,this.selectedValuesMap)};g.toggleSelection=function(a){this.selectedValuesMap[a]=!this.selectedValuesMap[a];this.handleSelectionChange()};
var xSa=function(a,b){a.allowMultiSelect?(b=Object.keys(cj(a.selectedValuesMap,function(c){return c})),a.onApplyChanges.emit(b)):a.onValueChange.emit(b==null?void 0:b.option.value)};iM.prototype.cancel=function(){this.onCancelChanges.emit()};iM.\u0275fac=function(a){return new (a||iM)};
iM.\u0275cmp=y({type:iM,selectors:[["b-custom-repeated-enum-picker"]],viewQuery:function(a,b){a&1&&hh(dM,7);if(a&2){var c;lh(c=mh())&&(b.autocompleteTrigger=c.first)}},inputs:{showPlaceholder:"showPlaceholder",customFieldTitle:"customFieldTitle",currentInputValue:"currentInputValue",allowMultiSelect:"allowMultiSelect",selectedValues:"selectedValues",allowedValues:"allowedValues",disabled:"disabled"},outputs:{onValueChange:"onValueChange",onApplyChanges:"onApplyChanges",onCancelChanges:"onCancelChanges"},
standalone:!1,decls:8,vars:9,consts:[["customRepeatedEnumPicker",""],["auto","matAutocomplete"],["id","custom-repeated-enum-picker","type","text","autocomplete","off","aria-label","Custom repeated enum field selection",3,"click","input","keydown.space","placeholder","ngModel","disabled","matAutocomplete"],[3,"optionSelected","hideSingleSelectionIndicator"],[1,"custom-repeated-enum-search-result",3,"value"],[1,"action-buttons"],[3,"checked"],[1,"custom-repeated-enum-suggestion"],[3,"click","change",
"checked"],["mat-flat-button","","type","submit",1,"small","action-button",3,"click","keydown.enter","disabled"],["svgIcon","done",1,"icon-s"],["mat-stroked-button","","type","button",1,"small","action-button",3,"click","keydown.esc"],["svgIcon","close",1,"icon-s"]],template:function(a,b){if(a&1){var c=t();J(0,"input",2,0);N("click",function(){u(c);var e=Q(1);return w(b.search(e.value))})("input",function(){u(c);var e=Q(1);return w(b.search(e.value))})("keydown.space",function(e){u(c);return w(b.onSpace(e))});
K();J(2,"mat-autocomplete",3,1);N("optionSelected",function(e){u(c);return w(xSa(b,e))});Pg(4,wSa,3,2,"mat-option",4,Og);U(6,"async");K();F(7,ySa,5,5,"div",5)}if(a&2){a=Q(3);I("placeholder",b.getPlaceholder())("ngModel",b.currentInputValue)("disabled",b.disabled)("matAutocomplete",a);Lg("aria-disabled",b.disabled);x(2);I("hideSingleSelectionIndicator",!0);x(2);var d;Qg((d=V(6,7,b.suggestedValues$))!=null?d:b.currentInputValue?[]:b.allowedValues);x(3);G(b.allowMultiSelect?7:-1)}},dependencies:[FC,
fM,cM,Bx,dM,Ui,dy,ky,oG,Jx,gM,hM,Tv],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 jM=function(){};jM.\u0275fac=function(a){return new (a||jM)};jM.\u0275mod=uf({type:jM});jM.\u0275inj=Dd({imports:[eM]});var kM=function(){};kM.\u0275fac=function(a){return new (a||kM)};kM.\u0275mod=uf({type:kM});kM.\u0275inj=Dd({imports:[hM,px,px]});var lM=function(){};lM.\u0275fac=function(a){return new (a||lM)};lM.\u0275mod=uf({type:lM});lM.\u0275inj=Dd({providers:[{provide:rOc,useValue:{color:"primary"}}],imports:[kM]});var mM=function(){};mM.\u0275fac=function(a){return new (a||mM)};mM.\u0275mod=uf({type:mM});mM.\u0275inj=Dd({imports:[HC,jM,Ay,BG,lM]});var wOc=0,nM=function(){Z.call(this);var a=this;this.teamsService=r(SF);this.ROUTES=Dq;this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.linkFocused=new LE;this.linkBlurred=new LE;this.teamName=this.teamId;this.teamLogoUrl=this.teamDescription="";this.providedTeamId$=new sg(1);this.teamLinkId="b-team-link-content-"+wOc;this.fetchedTeam$=this.providedTeamId$.pipe(og(),eg(function(b){return b!=="0"}),xg(function(b){return UF(a.teamsService,b)}));this.isTeamFetched$=this.fetchedTeam$.pipe(C(function(){return!0}),
wg(!1));this.fetchedTeam$.pipe(yg(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});wOc++};Y(nM,Z);nM.\u0275dir=Z.\u0275dir;nM.prototype.ngOnInit=function(){};nM.prototype.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};nM.prototype.trackClick=function(a){Fo("teamCard","click",a,1)};
nM.prototype.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};nM.\u0275fac=function(a){return new (a||nM)};
nM.\u0275cmp=y({type:nM,selectors:[["b-team-card"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},outputs:{linkFocused:"linkFocused",linkBlurred:"linkBlurred"},standalone:!1,features:[Bg,ov],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&&(J(0,"div",0)(1,"div",1)(2,"div",2),M(3,"img",3),J(4,"div",4)(5,"div",5),M(6,"mat-icon",6),R(7),K(),J(8,"div",7),R(9),K()()(),J(10,"p",8),R(11),K(),J(12,"div",9)(13,"a",10),N("click",function(){return b.trackClick("viewTeamSettingsPage")}),J(14,"button",11),R(15,"View team settings"),K()(),J(16,"a",12),N("click",function(){return b.trackClick("viewTeamInMoma")}),
J(17,"button",13),R(18,"View team in Moma "),M(19,"mat-icon",14),K()(),F(20,zSa,3,1,"a",15),K()()());a&2&&(x(3),Lg("src",b.teamLogoUrl,hf),x(4),T(" Team: ",b.teamName," "),x(2),T("Team ID: ",b.teamId),x(2),wh(b.teamDescription),x(2),I("routerLink",Dh("/teams/",b.teamId,"/edit")),x(3),I("href",Dh("https://moma.corp.google.com/team/",b.teamId),hf),x(4),G(b.componentId?20:-1))},dependencies:[FC,xC,oG,Jx],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 oM=function(){};oM.\u0275fac=function(a){return new (a||oM)};oM.\u0275mod=uf({type:oM});oM.\u0275inj=Dd({imports:[HC,BG]});var xOc=0,pM=function(){Z.call(this);var a=this;this.teamsService=r(SF);this.anchorLinkEnabled=!0;this.teamNotAssignedMessage="No team assigned";this.providedTeamId$=new sg(1);this.teamLinkId="b-team-link-content-"+xOc++;this.teamName=this.teamId;this.fetchedTeam$=this.providedTeamId$.pipe(og(),eg(function(b){return b!=="0"}),xg(function(b){return UF(a.teamsService,b)}));this.isTeamFetched$=this.fetchedTeam$.pipe(C(function(){return!0}),wg(!1));this.fetchedTeam$.pipe(yg(this.destroyed$)).subscribe(function(b){a.teamName=
b.name})};Y(pM,Z);pM.\u0275dir=Z.\u0275dir;pM.prototype.ngOnInit=function(){};pM.prototype.ngOnChanges=function(a){a.teamId&&this.providedTeamId$.next(this.teamId)};pM.prototype.trackClick=function(a){Fo("teamCard","click",a,1)};pM.prototype.linkAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.teamLinkId};pM.\u0275fac=function(a){return new (a||pM)};
pM.\u0275cmp=y({type:pM,selectors:[["b-team-display"]],inputs:{teamId:"teamId",componentId:"componentId",anchorLinkEnabled:"anchorLinkEnabled",teamNotAssignedMessage:"teamNotAssignedMessage",labelledById:"labelledById"},standalone:!1,features:[Bg,ov],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,CSa,2,2),U(1,"async"),Mg(2,FSa,2,2),J(3,"onedev-hovercard",null,0),Wg(5),M(6,"b-team-card",1),Xg(),K());a&2&&(G(b.teamId!="0"&&V(1,3,b.isTeamFetched$)?0:2),x(6),I("componentId",b.componentId)("teamId",b.teamId.toString()))},dependencies:[FC,DI,JI,nM,Tv],encapsulation:2});var qM=function(){};qM.\u0275fac=function(a){return new (a||qM)};qM.\u0275mod=uf({type:qM});qM.\u0275inj=Dd({imports:[HC,tJ,oM]});var yOc=0,rM=function(){this.elementRef=r(Te);this.titleWhenExpanded=this.titleWhenCollapsed="";this.isExpanded=!1;this.iconName="";this.hasCompactTitleBar=!1;this.counter=yOc++;this.headerId="b-collapsible-panel-header-"+this.counter;this.id="b-collapsible-panel-"+this.counter};rM.prototype.toggleExpansion=function(){var a=this;this.isExpanded||setTimeout(function(){return a.elementRef.nativeElement.scrollIntoView({behavior:"smooth",block:"nearest"})},200);this.isExpanded=!this.isExpanded};
nd.Object.defineProperties(rM.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"}}});rM.\u0275fac=function(a){return new (a||rM)};
rM.\u0275cmp=y({type:rM,selectors:[["collapsible-panel"],["b-collapsible-panel"]],inputs:{titleWhenCollapsed:"titleWhenCollapsed",titleWhenExpanded:"titleWhenExpanded",isExpanded:"isExpanded",iconName:"iconName",hasCompactTitleBar:"hasCompactTitleBar",title:"title"},standalone:!1,ngContentSelectors:["*"],decls:8,vars:12,consts:[[1,"collapsible-panel"],["type","button","aria-label","collapsible panel",1,"title-bar","unstyled-button",3,"click","mouseup"],["size","small",1,"icon",3,"name"],[1,"title"],
[1,"horizontal-line"],["svgIcon","arrow-down",1,"icon-s"],["role","region",1,"content"]],template:function(a,b){a&1&&(ch(),J(0,"div",0)(1,"button",1),N("click",function(){return b.toggleExpansion()})("mouseup",function(){b.elementRef.nativeElement.querySelector(".title-bar").blur()}),F(2,GSa,1,1,"b-icon",2),F(3,HSa,2,1,"span",3),F(4,ISa,2,0,"div",4),M(5,"mat-icon",5),K(),J(6,"div",6),dh(7),K()());a&2&&(x(),uh("compact",b.hasCompactTitleBar),Lg("id",b.headerId)("aria-expanded",b.isExpanded)("aria-controls",
b.id),x(),G(b.iconName?2:-1),x(),G(b.hasCompactTitleBar&&b.isExpanded?-1:3),x(),G(b.hasCompactTitleBar?4:-1),x(),I("@expandCollapseIcon",b.expandedState),x(),I("@expandCollapseContent",b.expandedState),Lg("id",b.id)("aria-labelledby",b.headerId))},dependencies:[FC,eL],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:[UMa("expandCollapseContent",[aq("expanded",$p({height:"*",visibility:"visible"})),aq("collapsed",$p({height:"0",visibility:"hidden"})),bq("expanded <=> collapsed",[Zp("200ms")])]),UMa("expandCollapseIcon",[aq("expanded",$p({transform:"rotate(-180deg)"})),aq("collapsed",$p({transform:"*"})),bq("expanded <=> collapsed",[Zp("200ms")])])]}});var sM=function(){};sM.\u0275fac=function(a){return new (a||sM)};sM.\u0275mod=uf({type:sM});sM.\u0275inj=Dd({imports:[HC,gL]});var zOc=[[["xap-dialog-layout-title"]],[["xap-dialog-layout-subtitle"]],[["xap-dialog-layout-content"]],[["xap-dialog-layout-actions"]]],AOc=function(){};AOc.\u0275fac=function(a){return new (a||AOc)};AOc.\u0275dir=vf({type:AOc,selectors:[["xap-dialog-layout-subtitle"]]});var tM=function(){this.el=r(Te);this.cdRef=r(Hv);this.ngZone=r(Ph);this.destroyed=new sg;this.internalScrollable=!1;this.internalScrollPosition="bottom"};
tM.prototype.ngOnInit=function(){var a=this;this.internalScrollPosition=this.getScrollPosition(this.el.nativeElement);this.ngZone.runOutsideAngular(function(){BOc(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollable=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})});COc(a).subscribe(function(b){a.ngZone.run(function(){a.internalScrollPosition=b;a.cdRef.markForCheck();a.cdRef.detectChanges()})})})};tM.prototype.ngOnDestroy=function(){this.destroyed.next();this.destroyed.complete()};
var BOc=function(a){if(!window.ResizeObserver)return Nf(DOc(a.el.nativeElement));var b;return Ika(function(c){b=new ResizeObserver(function(){c(DOc(a.el.nativeElement))});b.observe(a.el.nativeElement)},function(){b.disconnect()}).pipe(og(),yg(a.destroyed))},COc=function(a){return $f(a.el.nativeElement,"scroll").pipe(JSa(),C(function(){return a.getScrollPosition(a.el.nativeElement)}),og(),yg(a.destroyed))},DOc=function(a){return a.offsetHeight+a.scrollTop<=a.scrollHeight};
tM.prototype.getScrollPosition=function(a){return a.scrollTop===0?"top":a.offsetHeight+a.scrollTop>=a.scrollHeight?"bottom":"center"};nd.Object.defineProperties(tM.prototype,{scrollable:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollable}},scrollPosition:{configurable:!0,enumerable:!0,get:function(){return this.internalScrollPosition}}});tM.\u0275fac=function(a){return new (a||tM)};
tM.\u0275dir=vf({type:tM,selectors:[["xap-dialog-layout-content"]],hostAttrs:[1,"xap-dialog-layout-content"],hostVars:6,hostBindings:function(a,b){a&2&&uh("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 uM=function(){};uM.\u0275fac=function(a){return new (a||uM)};
uM.\u0275cmp=y({type:uM,selectors:[["xap-dialog-layout"]],contentQueries:function(a,b,c){a&1&&ih(c,AOc,4);if(a&2){var d;lh(d=mh())&&(b.subtitle=d)}},hostAttrs:[1,"xap-dialog-layout"],hostVars:2,hostBindings:function(a,b){a&2&&uh("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&&(ch(zOc),
Sg(0,"header",0),dh(1),dh(2,1),Tg(),dh(3,2),dh(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 vM=function(){};vM.\u0275fac=function(a){return new (a||vM)};vM.\u0275mod=uf({type:vM});vM.\u0275inj=Dd({});var EOc=$p({opacity:0}),FOc=$p({opacity:1}),GOc=UMa("dialogContainer",[aq("void, hidden",EOc),aq("visible",FOc),bq("void => *, * => visible",Zp("200ms cubic-bezier(0.0,0.0,0.2,1)",FOc)),bq("* => void, * => hidden",Zp("200ms cubic-bezier(0.4,0.0,0.2,1)",EOc))]);var HOc=new le("XAP_IDCO"),wM=function(){hx.apply(this,arguments);this.portalOutlet=Nh.required(jx);this.animationState="hidden";this.options=r(HOc);this.changeDetector=r(Hv)};Y(wM,hx);wM.prototype.ngAfterViewInit=function(){};wM.prototype.attachComponentPortal=function(a){return this.portalOutlet().attachComponentPortal(a)};wM.prototype.attachTemplatePortal=function(a){return this.portalOutlet().attachTemplatePortal(a)};var IOc=function(a,b){a.animationState=b?"visible":"hidden";a.changeDetector.markForCheck()};
wM.\u0275fac=function(){var a;return function(b){return(a||(a=Re(wM)))(b||wM)}}();
wM.\u0275cmp=y({type:wM,selectors:[["xap-inline-dialog-container"]],viewQuery:function(a,b){a&1&&oh(b.portalOutlet,hh(jx,5));a&2&&Oma()},hostAttrs:["role","dialog",1,"xap-inline-dialog-container","gmat-body-2"],hostVars:3,hostBindings:function(a,b){a&2&&(oma("@dialogContainer",b.animationState),Lg("aria-label",b.options.dialogLabel)("tabindex",b.options.dialogTabIndex))},features:[Bg],decls:2,vars:0,consts:[["cdkPortalOutlet",""],["cdkFocusInitial","","tabindex","0"]],template:function(a){a&1&&(J(0,
"div"),D(1,KSa,1,0,"ng-template",0),K())},dependencies:[Bw,kx,jx],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:[GOc]},changeDetection:0});var JOc=[{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}],KOc={minWidth:220,maxWidth:420,minHeight:64,maxHeight:420},xM=function(){var a=this;this.disabledInternal=!1;this.dialogLabel=null;this.dialogTabIndex=-1;this.overlayDimensions=KOc;this.triggerDescription=
"Press space for more information.";this.forceTrapFocus=this.disableAutoFocusInternal=!1;this.scrollStrategy="close";this.stackLocation=0;this.beforeOpened=new nq;this.opened=new nq;this.closed=new nq;this.destroyed=new sg;this.openStatusChange=new Kn(!1);this.openings=this.openStatusChange.pipe(eg(function(b){return b&&!a.disabled}));this.elementFocusedBeforeDialogWasOpened=void 0;this.ngZone=r(Ph);this.overlay=r(lx);this.elementRef=r(Te);this.viewContainerRef=r(fh);this.document=r(ui);this.focusTrapFactory=
r(Gw);this.ariaDescriber=r(Cw);this.injector=r(Cg);LOc(this,this.elementRef.nativeElement);this.attachKeyboardCloseEventListeners(this.elementRef.nativeElement);MOc(this,this.elementRef.nativeElement)};xM.prototype.ngOnInit=function(){var a=this.elementRef.nativeElement;a.hasAttribute("aria-haspopup")||a.setAttribute("aria-haspopup","dialog");a.hasAttribute("aria-describedby")||Vic(this.ariaDescriber,a,this.triggerDescription)};
xM.prototype.ngOnDestroy=function(){this.closeDialog();this.openStatusChange.complete();this.destroyed.next();this.destroyed.complete();this.overlayRef&&this.overlayRef.dispose()};
var LOc=function(a,b){a.ngZone.runOutsideAngular(function(){$f(b,"keydown").pipe(yg(a.destroyed)).subscribe(function(c){switch(c.key){case "Enter":a.openDialog();c.preventDefault();break;case " ":c.preventDefault()}});$f(b,"keyup").pipe(yg(a.destroyed)).subscribe(function(c){switch(c.key){case " ":a.openDialog()}})})},MOc=function(a,b){a.ngZone.runOutsideAngular(function(){$f(b,"focus").pipe(eg(function(){return a.beforeOpened.observers.length>0}),yg(a.destroyed)).subscribe(function(){a.ngZone.run(function(){a.beforeOpened.emit()})})})};
g=xM.prototype;
g.openDialog=function(){var a=this;if(!this.disabled){var b;if((b=this.overlayRef)==null||!b.hasAttached()){var c=this.portal;c!=null&&(this.stackManager&&(this.stackLocation=this.stackManager.register()),this.ngZone.run(function(){a.dialogContainerRef=NOc(a);a.dialogContainerRef.instance.attach(c);var d=a.dialogContainerRef.location.nativeElement;a.attachMouseEventListeners(d);a.attachKeyboardCloseEventListeners(d);a.trapFocus(d);IOc(a.dialogContainerRef.instance,!0);a.opened.observers.length&&setTimeout(function(){a.opened.emit()},
200)}))}}};g.closeDialog=function(){var a=this,b;(b=this.overlayRef)==null||!b.hasAttached()||this.stackManager&&!this.stackManager.tryUnregister(this.stackLocation)||(IOc(this.dialogContainerRef.instance,!1),setTimeout(function(){a.ngZone.run(function(){a.overlayRef&&a.overlayRef.detach();a.focusTrap&&(a.focusTrap.destroy(),a.focusTrap=void 0);a.restoreFocus();a.dialogContainerRef&&(a.dialogContainerRef.destroy(),a.dialogContainerRef=void 0);a.closed.emit()})},200))};
g.trapFocus=function(a){var b=this.document.activeElement,c=this.elementRef.nativeElement;if(this.forceTrapFocus||b&&b===c)this.document&&(this.elementFocusedBeforeDialogWasOpened=this.document.activeElement),this.focusTrap=this.focusTrapFactory.create(a),pw(this.focusTrap),this.disableAutoFocus||this.focusInitialElement()};g.focusInitialElement=function(){this.focusTrap&&Oic(this.focusTrap).then(function(){})};
g.restoreFocus=function(){var a=this.elementFocusedBeforeDialogWasOpened;if(a&&typeof a.focus==="function"){var b,c=(b=this.dialogContainerRef)==null?void 0:b.location.nativeElement;(b=this.document.activeElement)&&c!=null&&c.contains(b)&&(a.focus(),this.elementFocusedBeforeDialogWasOpened=void 0)}};g.createPositionStrategy=function(a){var b,c;return Yw(dx(this.overlay.position(),(b=this.attachedTo)!=null?b:this.elementRef),a).setOrigin((c=this.attachedTo)!=null?c:this.elementRef)};
var OOc=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()}},NOc=function(a){var b=Yh({parent:a.injector,providers:[{provide:HOc,useValue:{dialogLabel:a.dialogLabel,dialogTabIndex:a.dialogTabIndex}}]});b=new fx(wM,null,b);a.overlayRef==null&&(a.overlayRef=a.overlay.create(a.createOverlayConfig(JOc)));a.overlaySize&&a.overlayRef.updateSize(a.overlaySize);a.overlayPositions&&
a.overlayPositions.length>0&&qjc(a.overlayRef,a.createPositionStrategy(a.overlayPositions));return a.overlayRef.attach(b)};
nd.Object.defineProperties(xM.prototype,{dialog:{configurable:!0,enumerable:!0,set:function(a){a&&(this.portal=a instanceof eh?new gx(a,this.viewContainerRef):new fx(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=pi(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}}}});xM.\u0275fac=function(a){return new (a||xM)};
xM.\u0275dir=vf({type:xM,hostVars:1,hostBindings:function(a,b){a&2&&Lg("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 yM=function(){xM.call(this);this.hasBackdrop=Mh.apply(null,[!0].concat(p([{alias:"xapInlineDialogClickHasBackdrop",transform:$h}])));this.renderer=r(Ji);this.attachMouseEventListeners(this.elementRef.nativeElement)};Y(yM,xM);g=yM.prototype;g.ngOnInit=function(){xM.prototype.ngOnInit.call(this);this.listenForOpenEvents()};
g.listenForOpenEvents=function(){var a=this;this.openStatusChange.pipe(yg(this.destroyed)).subscribe(function(b){b?a.openDialog():a.closeDialog()});this.openings.pipe(eg(function(b){return b&&a.beforeOpened.observers.length>0}),Dla(function(){return a.openStatusChange.pipe(eg(function(b){return!b}))}))};
g.attachMouseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){$f(a,"mouseenter").pipe(yg(b.destroyed)).subscribe(function(){b.ngZone.run(function(){b.beforeOpened.emit()})});(new Cf(function(e){return b.renderer.listen(a,"click",function(f){return void e.next(f)})})).pipe(yg(b.destroyed)).subscribe(function(e){e.target.closest("[xapInlineDialogClose]")?b.closingDialog():b.openingDialog()});var c;(c=b.overlayRef)==null||c.backdropClick().pipe(yg(b.destroyed)).subscribe(function(){b.closingDialog()});
var d;(d=b.overlayRef)==null||d.outsidePointerEvents().pipe(yg(b.destroyed)).subscribe(function(){b.hasBackdrop()||b.closingDialog()})})};
g.attachKeyboardCloseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){$f(a,"keyup").pipe(yg(b.destroyed)).subscribe(function(c){var d=c.target;switch(c.key){case "Escape":b.closingDialog();break;case " ":d.closest("[xapInlineDialogClose]")&&b.closingDialog()}});$f(a,"keydown").pipe(yg(b.destroyed)).subscribe(function(c){var d=c.target;switch(c.key){case "Enter":d.closest("[xapInlineDialogClose]")&&b.closingDialog()}})})};g.openingDialog=function(){this.disabled||this.openStatusChange.next(!0)};
g.closingDialog=function(){this.openStatusChange.next(!1)};g.createOverlayConfig=function(a){return new Ii(Object.assign({},this.overlayDimensions,{positionStrategy:xM.prototype.createPositionStrategy.call(this,a),scrollStrategy:OOc(this),hasBackdrop:this.hasBackdrop(),backdropClass:"cdk-overlay-transparent-backdrop",panelClass:this.panelClassInternal}))};yM.\u0275fac=function(a){return new (a||yM)};
yM.\u0275dir=vf({type:yM,selectors:[["","xapInlineDialogClick",""]],hostAttrs:[1,"xap-inline-dialog-click"],inputs:{dialog:[0,"xapInlineDialogClick","dialog"],disabled:[0,"xapInlineDialogDisabled","disabled"],hasBackdrop:[1,"xapInlineDialogClickHasBackdrop","hasBackdrop"]},exportAs:["xapInlineDialogClick"],features:[Bg]});var zM=function(){xM.call(this);this.hoverDelayMs=500;this.activity=new tg;this.attachMouseEventListeners(this.elementRef.nativeElement)};Y(zM,xM);g=zM.prototype;g.ngOnInit=function(){xM.prototype.ngOnInit.call(this);this.listenForOpenEvents(this.hoverDelayMs)};
g.listenForOpenEvents=function(a){var b=this,c=this.openStatusChange.pipe(cla(function(){return b.activity.pipe(kg(a))}));c.pipe(yg(this.destroyed)).subscribe(function(d){d?b.openDialog():b.closeDialog()});this.openings.pipe(eg(function(d){return d&&b.beforeOpened.observers.length>0}),Dla(function(){return c.pipe(eg(function(d){return!d}))}),yg(this.destroyed)).subscribe(function(){b.ngZone.run(function(){b.beforeOpened.emit()})})};
g.attachMouseEventListeners=function(a){var b=this;this.stackManager&&this.stackManager.unregisterEvent().pipe(kg(this.hoverDelayMs),yg(this.destroyed)).subscribe(function(){a.matches(":hover")||b.viewContainerRef.element.nativeElement.matches(":hover")?b.openingDialog():b.closingDialog()});this.ngZone.runOutsideAngular(function(){$f(a,"mouseenter").pipe(yg(b.destroyed)).subscribe(function(){b.openingDialog()});$f(a,"click").pipe(yg(b.destroyed)).subscribe(function(c){c.target.closest("[xapInlineDialogClose]")?
b.closingDialog():(b.openingDialog(),b.openDialog())});$f(a,"mouseleave").pipe(yg(b.destroyed)).subscribe(function(){b.closingDialog()});$f(a,"mousemove").pipe(yg(b.destroyed)).subscribe(function(){b.activity.next()})})};g.attachKeyboardCloseEventListeners=function(a){var b=this;this.ngZone.runOutsideAngular(function(){$f(a,"keydown").pipe(yg(b.destroyed)).subscribe(function(c){switch(c.key){case "Escape":var d;((d=b.overlayRef)==null?0:d.hasAttached())&&c.stopPropagation();b.closeDialog()}})})};
g.openingDialog=function(){this.disabled||(this.openStatusChange.next(!0),this.activity.next())};g.closingDialog=function(){this.openStatusChange.next(!1);this.activity.next()};g.createOverlayConfig=function(a){return new Ii(Object.assign({},this.overlayDimensions,{positionStrategy:xM.prototype.createPositionStrategy.call(this,a),scrollStrategy:OOc(this),panelClass:this.panelClassInternal}))};zM.\u0275fac=function(a){return new (a||zM)};
zM.\u0275dir=vf({type:zM,selectors:[["","xapInlineDialog",""]],hostAttrs:[1,"xap-inline-dialog"],inputs:{dialog:[0,"xapInlineDialog","dialog"],disabled:[0,"xapInlineDialogDisabled","disabled"],hoverDelayMs:"hoverDelayMs"},exportAs:["xapInlineDialog"],features:[Bg]});var POc=["*"],QOc=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}"},
AM=function(){this.disabled=!1};AM.\u0275fac=function(a){return new (a||AM)};AM.\u0275cmp=y({type:AM,selectors:[["xap-text-trigger"]],hostAttrs:["role","button"],hostVars:4,hostBindings:function(a,b){a&2&&(Lg("tabindex",b.disabled?-1:0)("aria-disabled",b.disabled?!0:!1),uh("xap-text-trigger",!b.disabled))},inputs:{disabled:[0,"xapInlineDialogDisabled","disabled"]},ngContentSelectors:POc,decls:1,vars:0,template:function(a){a&1&&(ch(),dh(0))},styles:[QOc()],encapsulation:2,changeDetection:0});
var BM=function(){this.disabled=!1};BM.\u0275fac=function(a){return new (a||BM)};BM.\u0275cmp=y({type:BM,selectors:[["xap-icon-trigger"]],hostAttrs:["role","button","tabindex","0",1,"xap-icon-trigger"],inputs:{disabled:[0,"xapInlineDialogDisabled","disabled"]},ngContentSelectors:POc,decls:1,vars:0,template:function(a){a&1&&(ch(),dh(0))},styles:[QOc()],encapsulation:2,changeDetection:0});var CM=function(){};CM.\u0275fac=function(a){return new (a||CM)};CM.\u0275mod=uf({type:CM});CM.\u0275inj=Dd({});var ROc=new le("GMAT_FORM_FIELD_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var DM=function(a){this.options=a;if(a.disableGmatStyle)throw Error("Mc");};DM.\u0275fac=function(a){return new (a||DM)(of(ROc))};DM.\u0275dir=vf({type:DM,selectors:[["mat-form-field"]],hostAttrs:[1,"gmat-mdc-form-field"],standalone:!1});var EM=function(){};EM.\u0275fac=function(a){return new (a||EM)};EM.\u0275mod=uf({type:EM});EM.\u0275inj=Dd({imports:[Ny]});var SOc=new le("GMAT_INPUT_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var FM=function(a){this.options=a;if(a.disableGmatStyle)throw Error("Mc");};FM.\u0275fac=function(a){return new (a||FM)(of(SOc))};FM.\u0275dir=vf({type:FM,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"gmat-mdc-input"],standalone:!1});var GM=function(){};GM.\u0275fac=function(a){return new (a||GM)};GM.\u0275mod=uf({type:GM});GM.\u0275inj=Dd({imports:[Vy,EM]});var TOc=new le("CDK_DRAG_CONFIG");var UOc={capture:!0},VOc={passive:!1,capture:!0},WOc=function(){};WOc.\u0275fac=function(a){return new (a||WOc)};WOc.\u0275cmp=y({type:WOc,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 HM=function(){var a=this;this._ngZone=r(Ph);this._document=r(ui);this._styleLoader=r(Di);this._renderer=r(qf).createRenderer(null,null);this._scroll=new tg;this._dropInstances=new Set;this._dragInstances=new Set;this._activeDragInstances=nh.apply(null,[[]].concat(p([])));this._draggingPredicate=function(b){return b.isDragging()};this._domNodesToDirectives=null;this.pointerMove=new tg;this.pointerUp=new tg;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))}},XOc=function(a,b){a._dropInstances.has(b)||a._dropInstances.add(b)},YOc=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,
VOc)})},$Oc=function(a,b){a._dragInstances.delete(b);ZOc(a,b);if(a._dragInstances.size===0){var c;(c=a._cleanupDocumentTouchmove)==null||c.call(a)}};
HM.prototype.startDragging=function(a,b){var c=this;if(!(this._activeDragInstances().indexOf(a)>-1)&&(this._styleLoader.load(WOc),this._activeDragInstances.update(function(f){return[].concat(p(f),[a])}),this._activeDragInstances().length===1)){b=b.type.startsWith("touch");var d=function(f){return c.pointerUp.next(f)},e=[["scroll",function(f){return c._scroll.next(f)},UOc],["selectstart",this._preventDefaultWhileDragging,VOc]];b?e.push(["touchend",d,UOc],["touchcancel",d,UOc]):e.push(["mouseup",d,
UOc]);b||e.push(["mousemove",function(f){return c.pointerMove.next(f)},VOc]);this._ngZone.runOutsideAngular(function(){c._globalListeners=e.map(function(f){var h=l(f);f=h.next().value;var k=h.next().value;h=h.next().value;return c._renderer.listen(c._document,f,k,h)})})}};var ZOc=function(a,b){a._activeDragInstances.update(function(c){var d=c.indexOf(b);return d>-1?(c.splice(d,1),[].concat(p(c))):c});a._activeDragInstances().length===0&&a._clearGlobalListeners()};
HM.prototype.isDragging=function(a){return this._activeDragInstances().indexOf(a)>-1};HM.prototype.scrolled=function(a){var b=this,c=[this._scroll];a&&a!==this._document&&c.push(new Cf(function(d){return b._ngZone.runOutsideAngular(function(){var e=b._renderer.listen(a,"scroll",function(f){b._activeDragInstances().length&&d.next(f)},UOc);return function(){e()}})}));return dg.apply(null,p(c))};
var aPc=function(a,b,c){a._domNodesToDirectives!=null||(a._domNodesToDirectives=new WeakMap);a._domNodesToDirectives.set(b,c)},bPc=function(a,b){var c;(c=a._domNodesToDirectives)==null||c.delete(b)},cPc=function(a,b){var c;return((c=a._domNodesToDirectives)==null?void 0:c.get(b))||null};
HM.prototype.ngOnDestroy=function(){var a=this;this._dragInstances.forEach(function(b){return $Oc(a,b)});this._dropInstances.forEach(function(b){a._dropInstances.delete(b)});this._domNodesToDirectives=null;this._clearGlobalListeners();this.pointerMove.complete();this.pointerUp.complete()};HM.prototype._clearGlobalListeners=function(){var a;(a=this._globalListeners)==null||a.forEach(function(b){return b()});this._globalListeners=void 0};HM.\u0275fac=function(a){return new (a||HM)};
HM.\u0275prov=Cd({token:HM,factory:HM.\u0275fac,providedIn:"root"});var dPc=new le("CDK_DRAG_PARENT");var ePc=new le("CdkDragHandle"),IM=function(){this.element=r(Te);this._parentDrag=r(dPc,{optional:!0,skipSelf:!0});this._dragDropRegistry=r(HM);this._stateChanges=new tg;this._disabled=!1;var a;(a=this._parentDrag)==null||a._addHandle(this)};IM.prototype.ngAfterViewInit=function(){if(!this._parentDrag)for(var a=this.element.nativeElement.parentElement;a;){var b=cPc(this._dragDropRegistry,a);if(b){this._parentDrag=b;b._addHandle(this);break}a=a.parentElement}};
IM.prototype.ngOnDestroy=function(){var a;(a=this._parentDrag)==null||a._removeHandle(this);this._stateChanges.complete()};nd.Object.defineProperties(IM.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this._disabled},set:function(a){this._disabled=a;this._stateChanges.next(this)}}});IM.\u0275fac=function(a){return new (a||IM)};
IM.\u0275dir=vf({type:IM,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[2,"cdkDragHandleDisabled","disabled",$h]},features:[Fh([{provide:ePc,useExisting:IM}])]});var PSa=0;var JM=function(a){this._document=a;this.positions=new Map};JM.prototype.clear=function(){this.positions.clear()};JM.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:QSa(c)})})};
JM.prototype.handleScroll=function(a){var b=ni(a);a=this.positions.get(b);if(!a)return null;a=a.scrollPosition;if(b===this._document){var c=this.getViewportScrollPosition();var d=c.top;c=c.left}else d=b.scrollTop,c=b.scrollLeft;var e=a.top-d,f=a.left-c;this.positions.forEach(function(h,k){h.clientRect&&b!==k&&b.contains(k)&&SSa(h.clientRect,e,f)});a.top=d;a.left=c;return{top:e,left:f}};JM.prototype.getViewportScrollPosition=function(){return{top:window.scrollY,left:window.scrollX}};var fPc=new Set(["position"]),gPc=function(a,b,c,d,e,f,h,k,q,v){this._document=a;this._rootElement=b;this._direction=c;this._initialDomRect=d;this._previewTemplate=e;this._previewClass=f;this._pickupPositionOnPage=h;this._initialTransform=k;this._zIndex=q;this._renderer=v};g=gPc.prototype;g.attach=function(a){this._preview=this._createPreview();a.appendChild(this._preview);"showPopover"in this._preview&&this._preview.showPopover()};
g.destroy=function(){this._preview.remove();var a;(a=this._previewEmbeddedView)==null||a.destroy();this._preview=this._previewEmbeddedView=null};g.setTransform=function(a){this._preview.style.transform=a};g.getBoundingClientRect=function(){return this._preview.getBoundingClientRect()};g.addClass=function(a){this._preview.classList.add(a)};g.addEventListener=function(a,b){return this._renderer.listen(this._preview,a,b)};
g._createPreview=function(){var a=this._previewTemplate,b=this._previewClass,c=a?a.template:null;if(c&&a){var d=a.matchSize?this._initialDomRect:null;c=a.viewContainer.createEmbeddedView(c,a.context);c.detectChanges();var e=USa(c,this._document);this._previewEmbeddedView=c;a.matchSize?$Sa(e,d):e.style.transform=ZSa(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else e=OSa(this._rootElement),$Sa(e,this._initialDomRect),this._initialTransform&&(e.style.transform=this._initialTransform);
VSa(e.style,{"pointer-events":"none",margin:"showPopover"in e?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},fPc);vq(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};nd.Object.defineProperties(gPc.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return this._preview}}});var hPc={passive:!0},iPc={passive:!1},jPc={passive:!1,capture:!0},WSa=new Set(["position"]),mPc=function(a,b,c,d,e,f,h){var k=this;this._config=b;this._document=c;this._ngZone=d;this._viewportRuler=e;this._dragDropRegistry=f;this._renderer=h;this._anchor=null;this._passiveTransform={x:0,y:0};this._activeTransform={x:0,y:0};this._hasStartedDragging=nh.apply(null,[!1].concat(p([])));this._moveEvents=new tg;this._resizeSubscription=this._scrollSubscription=this._pointerUpSubscription=this._pointerMoveSubscription=
yf.EMPTY;this._boundaryElement=null;this._nativeInteractionsEnabled=!0;this._handles=[];this._disabledHandles=new Set;this._direction="ltr";this.dragStartDelay=0;this.scale=1;this._disabled=!1;this.beforeStarted=new tg;this.started=new tg;this.released=new tg;this.ended=new tg;this.entered=new tg;this.exited=new tg;this.dropped=new tg;this.moved=this._moveEvents;this._pointerDown=function(q){k.beforeStarted.next();if(k._handles.length){var v=k._getTargetHandle(q);!v||k._disabledHandles.has(v)||k.disabled||
k._initializeDragSequence(v,q)}else k.disabled||k._initializeDragSequence(k._rootElement,q)};this._pointerMove=function(q){var v=k._getPointerPositionOnPage(q);if(k._hasStartedDragging()){q.cancelable&&q.preventDefault();var A=k._getConstrainedPointerPosition(v);k._hasMoved=!0;k._lastKnownPointerPosition=v;k._updatePointerDirectionDelta(A);if(k._dropContainer)k._updateActiveDropContainer(A,v);else{v=k.constrainPosition?k._initialDomRect:k._pickupPositionOnPage;var E=k._activeTransform;E.x=A.x-v.x+
k._passiveTransform.x;E.y=A.y-v.y+k._passiveTransform.y;k._applyRootElementTransform(E.x,E.y)}k._moveEvents.observers.length&&k._ngZone.run(function(){k._moveEvents.next({source:k,pointerPosition:A,event:q,distance:k._getDragDistance(A),delta:k._pointerDirectionDelta})})}else Math.abs(v.x-k._pickupPositionOnPage.x)+Math.abs(v.y-k._pickupPositionOnPage.y)>=k._config.dragStartThreshold&&((v=Date.now()>=k._dragStartTime+k._getDragStartDelay(q),E=k._dropContainer,v)?E&&(E.isDragging()||E._activeSiblings.size>
0)||(q.cancelable&&q.preventDefault(),k._hasStartedDragging.set(!0),k._ngZone.run(function(){return k._startDragSequence(q)})):k._endDragSequence(q))};this._pointerUp=function(q){k._endDragSequence(q)};this._nativeDragStart=function(q){if(k._handles.length){var v=k._getTargetHandle(q);!v||k._disabledHandles.has(v)||k.disabled||q.preventDefault()}else k.disabled||q.preventDefault()};kPc(lPc(this,a),b.parentDragRef||null);this._parentPositions=new JM(c);YOc(f,this)};
mPc.prototype.getPlaceholderElement=function(){return this._placeholder};mPc.prototype.getRootElement=function(){return this._rootElement};
var nPc=function(a){return a.isDragging()?a.getPlaceholderElement():a.getRootElement()},oPc=function(a,b){a._handles=b.map(function(d){return ri(d)});a._handles.forEach(function(d){return vq(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},lPc=function(a,b){var c=ri(b);if(c!==a._rootElement){a._removeRootElementListeners();var d=a._renderer;a._rootElementCleanups=a._ngZone.runOutsideAngular(function(){return[d.listen(c,
"mousedown",a._pointerDown,iPc),d.listen(c,"touchstart",a._pointerDown,hPc),d.listen(c,"dragstart",a._nativeDragStart,iPc)]});a._initialTransform=void 0;a._rootElement=c}typeof SVGElement!=="undefined"&&a._rootElement instanceof SVGElement&&(a._ownerSVGElement=a._rootElement.ownerSVGElement);return a},pPc=function(a,b){a._boundaryElement=b?ri(b):null;a._resizeSubscription.unsubscribe();b&&(a._resizeSubscription=a._viewportRuler.change(10).subscribe(function(){return a._containInsideBoundaryOnResize()}));
return a},kPc=function(a,b){a._parentDragRef=b};g=mPc.prototype;
g.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();$Oc(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};g.isDragging=function(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)};g.reset=function(){this._rootElement.style.transform=this._initialTransform||"";this._activeTransform={x:0,y:0};this._passiveTransform={x:0,y:0}};
g.withDirection=function(a){this._direction=a;return this};g._withDropContainer=function(a){this._dropContainer=a};g.setFreeDragPosition=function(a){this._activeTransform={x:0,y:0};this._passiveTransform.x=a.x;this._passiveTransform.y=a.y;this._dropContainer||this._applyRootElementTransform(a.x,a.y)};g._sortFromLastPointerPosition=function(){var a=this._lastKnownPointerPosition;a&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(a),a)};
g._removeListeners=function(){this._pointerMoveSubscription.unsubscribe();this._pointerUpSubscription.unsubscribe();this._scrollSubscription.unsubscribe();var a;(a=this._cleanupShadowRootSelectStart)==null||a.call(this);this._cleanupShadowRootSelectStart=void 0};g._destroyPreview=function(){var a;(a=this._preview)==null||a.destroy();this._preview=null};
g._destroyPlaceholder=function(){var a;(a=this._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};
g._endDragSequence=function(a){var b=this;if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),ZOc(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();
ZOc(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();ZOc(this._dragDropRegistry,this)}};
g._startDragSequence=function(a){var b=this;dTa(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",eTa,jPc)});if(d){var e=this._rootElement,f=e.parentNode,h=this._placeholder=this._createPlaceholderElement(),k=this._marker=this._marker||this._document.createComment("");f.insertBefore(k,e);this._initialTransform=
e.style.transform||"";this._preview=new gPc(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));XSa(e,!1);this._document.body.appendChild(f.replaceChild(h,e));this.started.next({source:this,event:a});d.start();this._initialContainer=d;this._initialIndex=d.getItemIndex(this)}else this.started.next({source:this,
event:a}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(d?d._scrollableElements:[])};
g._initializeDragSequence=function(a,b){var c=this;this._parentDragRef&&b.stopPropagation();var d=this.isDragging(),e=dTa(b),f=!e&&b.button!==0,h=this._rootElement,k=ni(b),q=!e&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();e=e?Zoa(b):Yoa(b);k&&k.draggable&&b.type==="mousedown"&&b.preventDefault();d||f||q||e||(this._handles.length&&(d=h.style,this._rootElementTapHighlight=d.webkitTapHighlightColor||"",d.webkitTapHighlightColor="transparent"),this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),
this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(v){return c._updateOnScroll(v)}),this._boundaryElement&&(this._boundaryRect=QSa(this._boundaryElement)),this._pickupPositionInElement=
(d=this._previewTemplate)&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,a,b),a=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(b),this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:a.x,y:a.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,b))};
g._cleanupDragArtifacts=function(a){var b=this;XSa(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),h=c._isOverContainer(e.x,e.y);b.ended.next({source:b,distance:f,dropPoint:e,event:a});b.dropped.next({item:b,
currentIndex:d,previousIndex:b._initialIndex,container:c,previousContainer:b._initialContainer,isPointerOverContainer:h,distance:f,dropPoint:e,event:a});c.drop(b,d,b._initialIndex,b._initialContainer,h,f,e,a);b._dropContainer=b._initialContainer})};
g._updateActiveDropContainer=function(a,b){var c=this;var d=a.x;var e=a.y;a=b.x;b=b.y;var f=this._initialContainer._getSiblingContainerFromPosition(this,d,e);!f&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(d,e)&&(f=this._initialContainer);f&&f!==this._dropContainer&&this._ngZone.run(function(){var h=c._dropContainer.getItemIndex(c),k;h=((k=c._dropContainer.getItemAtIndex(h+1))==null?void 0:nPc(k))||null;c.exited.next({item:c,container:c._dropContainer});c._dropContainer.exit(c);
c._conditionallyInsertAnchor(f,c._dropContainer,h);c._dropContainer=f;c._dropContainer.enter(c,d,e,f===c._initialContainer&&f.sortingDisabled?c._initialIndex:void 0);c.entered.next({item:c,container:f,currentIndex:f.getItemIndex(c)})});this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(a,b),this._dropContainer._sortItem(this,d,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(d,e):this._applyPreviewTransform(d-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))};
g._animatePreviewToPlaceholder=function(){var a=this;if(!this._hasMoved)return Promise.resolve();var b=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating");this._applyPreviewTransform(b.left,b.top);var c=cTa(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&&ni(k)===a._preview.element&&k.propertyName==="transform")h(),d(),clearTimeout(f)},f=setTimeout(e,
c*1.5),h=a._preview.addEventListener("transitionend",e)})})};g._createPlaceholderElement=function(){var a=this._placeholderTemplate,b=a?a.template:null;b?(this._placeholderRef=a.viewContainer.createEmbeddedView(b,a.context),this._placeholderRef.detectChanges(),a=USa(this._placeholderRef,this._document)):a=OSa(this._rootElement);a.style.pointerEvents="none";a.classList.add("cdk-drag-placeholder");return a};
g._getPointerPositionInElement=function(a,b,c){b=(b=b===this._rootElement?null:b)?b.getBoundingClientRect():a;c=dTa(c)?c.targetTouches[0]:c;var d=this._getViewportScrollPosition();return{x:b.left-a.left+(c.pageX-b.left-d.left),y:b.top-a.top+(c.pageY-b.top-d.top)}};
g._getPointerPositionOnPage=function(a){var b=this._getViewportScrollPosition(),c=dTa(a)?a.touches[0]||a.changedTouches[0]||{pageX:0,pageY:0}:a;a=c.pageX-b.left;b=c.pageY-b.top;if(this._ownerSVGElement&&(c=this._ownerSVGElement.getScreenCTM())){var d=this._ownerSVGElement.createSVGPoint();d.x=a;d.y=b;return d.matrixTransform(c.inverse())}return{x:a,y:b}};
g._getConstrainedPointerPosition=function(a){var b=this._dropContainer?this._dropContainer.lockAxis:null,c=this.constrainPosition?this.constrainPosition(a,this,this._initialDomRect,this._pickupPositionInElement):a;a=c.x;c=c.y;if(this.lockAxis==="x"||b==="x")c=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0);else if(this.lockAxis==="y"||b==="y")a=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0);if(this._boundaryRect){var d=
this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement;b=d.x;var e=d.y;d=this._boundaryRect;var f=this._getPreviewRect(),h=d.top+e;e=d.bottom-(f.height-e);a=Math.max(d.left+b,Math.min(d.right-(f.width-b),a));c=Math.max(h,Math.min(e,c))}return{x:a,y:c}};
g._updatePointerDirectionDelta=function(a){var b=a.x;a=a.y;var c=this._pointerDirectionDelta,d=this._pointerPositionAtLastDirectionChange,e=Math.abs(a-d.y);Math.abs(b-d.x)>this._config.pointerDirectionChangeThreshold&&(c.x=b>d.x?1:-1,d.x=b);e>this._config.pointerDirectionChangeThreshold&&(c.y=a>d.y?1:-1,d.y=a);return c};
g._toggleNativeDragInteractions=function(){if(this._rootElement&&this._handles){var a=this._handles.length>0||!this.isDragging();a!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=a,vq(this._rootElement,a))}};g._removeRootElementListeners=function(){var a;(a=this._rootElementCleanups)==null||a.forEach(function(b){return b()});this._rootElementCleanups=void 0};
g._applyRootElementTransform=function(a,b){var c=1/this.scale;a=ZSa(a*c,b*c);b=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=b.transform&&b.transform!="none"?b.transform:"");b.transform=YSa(a,this._initialTransform)};g._applyPreviewTransform=function(a,b){var c,d=((c=this._previewTemplate)==null?0:c.template)?void 0:this._initialTransform;this._preview.setTransform(YSa(ZSa(a,b),d))};
g._getDragDistance=function(a){var b=this._pickupPositionOnPage;return b?{x:a.x-b.x,y:a.y-b.y}:{x:0,y:0}};g._cleanupCachedDimensions=function(){this._boundaryRect=this._previewRect=void 0;this._parentPositions.clear()};
g._containInsideBoundaryOnResize=function(){var a=this._passiveTransform,b=a.x;a=a.y;if(!(b===0&&a===0||this.isDragging())&&this._boundaryElement){var c=this._rootElement.getBoundingClientRect(),d=this._boundaryElement.getBoundingClientRect();if(!(d.width===0&&d.height===0||c.width===0&&c.height===0)){var e=d.left-c.left,f=c.right-d.right,h=d.top-c.top,k=c.bottom-d.bottom;d.width>c.width?(e>0&&(b+=e),f>0&&(b-=f)):b=0;d.height>c.height?(h>0&&(a+=h),k>0&&(a-=k)):a=0;b===this._passiveTransform.x&&a===
this._passiveTransform.y||this.setFreeDragPosition({y:a,x:b})}}};g._getDragStartDelay=function(a){var b=this.dragStartDelay;return typeof b==="number"?b:dTa(a)?b.touch:b?b.mouse:0};
g._updateOnScroll=function(a){var b=this._parentPositions.handleScroll(a);b&&(a=ni(a),this._boundaryRect&&a!==this._boundaryElement&&a.contains(this._boundaryElement)&&SSa(this._boundaryRect,b.top,b.left),this._pickupPositionOnPage.x+=b.left,this._pickupPositionOnPage.y+=b.top,this._dropContainer||(this._activeTransform.x-=b.left,this._activeTransform.y-=b.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y)))};
g._getViewportScrollPosition=function(){var a;return((a=this._parentPositions.positions.get(this._document))==null?void 0:a.scrollPosition)||this._parentPositions.getViewportScrollPosition()};g._getShadowRoot=function(){this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=jpa(this._rootElement));return this._cachedShadowRoot};
g._getPreviewInsertionPoint=function(a,b){var c=this._previewContainer||"global";return c==="parent"?a:c==="global"?(a=this._document,b||a.fullscreenElement||a.webkitFullscreenElement||a.mozFullScreenElement||a.msFullscreenElement||a.body):ri(c)};g._getPreviewRect=function(){this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect);return this._previewRect};
g._getTargetHandle=function(a){return this._handles.find(function(b){return a.target&&(a.target===b||b.contains(a.target))})};g._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=OSa(this._placeholder);a.classList.remove("cdk-drag-placeholder");a.classList.add("cdk-drag-anchor");a.style.transform="";c?c.before(a):ri(b.element).appendChild(a)}};
nd.Object.defineProperties(mPc.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 vq(b,a)}))}}});var qPc=function(a,b){this._document=a;this._dragDropRegistry=b;this._previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};this._relatedNodes=[]};g=qPc.prototype;g.start=function(a){var b=this._element.childNodes;this._relatedNodes=[];for(var c=0;c<b.length;c++){var d=b[c];this._relatedNodes.push([d,d.nextSibling])}this.withItems(a)};
g.sort=function(a,b,c,d){var e=this._getItemIndexFromPointerPosition(a,b,c),f=this._previousSwap;if(e===-1||this._activeItems[e]===a)return null;var h=this._activeItems[e];if(f.drag===h&&f.overlaps&&f.deltaX===d.x&&f.deltaY===d.y)return null;var k=this.getItemIndex(a),q=a.getPlaceholderElement();a=h.getRootElement();e>k?a.after(q):a.before(q);wq(this._activeItems,k,e);b=this._getRootNode().elementFromPoint(b,c);f.deltaX=d.x;f.deltaY=d.y;f.drag=h;f.overlaps=a===b||a.contains(b);return{previousIndex:k,
currentIndex:e}};g.enter=function(a,b,c,d){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()))};
g.withItems=function(a){this._activeItems=a.slice()};g.withSortPredicate=function(a){this._sortPredicate=a};g.reset=function(){for(var a=this._element,b=this._previousSwap,c=this._relatedNodes.length-1;c>-1;c--){var d=l(this._relatedNodes[c]),e=d.next().value;d=d.next().value;e.parentNode===a&&e.nextSibling!==d&&(d===null?a.appendChild(e):d.parentNode===a&&a.insertBefore(e,d))}this._relatedNodes=[];this._activeItems=[];b.drag=null;b.deltaX=b.deltaY=0;b.overlaps=!1};g.getActiveItemsSnapshot=function(){return this._activeItems};
g.getItemIndex=function(a){return this._activeItems.indexOf(a)};g.getItemAtIndex=function(a){return this._activeItems[a]||null};g.updateOnScroll=function(){var a=this;this._activeItems.forEach(function(b){a._dragDropRegistry.isDragging(b)&&b._sortFromLastPointerPosition()})};g.withElementContainer=function(a){a!==this._element&&(this._element=a,this._rootNode=void 0)};
g._getItemIndexFromPointerPosition=function(a,b,c){var d=this._getRootNode().elementFromPoint(Math.floor(b),Math.floor(c));b=d?this._activeItems.findIndex(function(e){e=e.getRootElement();return d===e||e.contains(d)}):-1;return b!==-1&&this._sortPredicate(b,a)?b:-1};g._getRootNode=function(){this._rootNode||(this._rootNode=jpa(this._element)||this._document);return this._rootNode};
g._getClosestItemIndexToPointer=function(a,b,c){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;for(var d=Infinity,e=-1,f=0;f<this._activeItems.length;f++){var h=this._activeItems[f];h!==a&&(h=h.getRootElement().getBoundingClientRect(),h=Math.hypot(b-h.x,c-h.y),h<d&&(d=h,e=f))}return e};var rPc=function(a){this._dragDropRegistry=a;this._itemPositions=[];this.orientation="vertical";this._previousSwap={drag:null,delta:0,overlaps:!1}};g=rPc.prototype;g.start=function(a){this.withItems(a)};
g.sort=function(a,b,c,d){var e=this._itemPositions,f=this._getItemIndexFromPointerPosition(a,b,c,d);if(f===-1&&e.length>0)return null;var h=this.orientation==="horizontal",k=e.findIndex(function(O){return O.drag===a}),q=e[f],v=q.clientRect,A=k>f?1:-1,E=this._getItemOffsetPx(e[k].clientRect,v,A),H=this._getSiblingOffsetPx(k,e,A),L=e.slice();wq(e,k,f);e.forEach(function(O,S){if(L[S]!==O){var aa=O.drag===a;S=aa?E:H;aa=aa?a.getPlaceholderElement():O.drag.getRootElement();O.offset+=S;var ka=Math.round(1/
O.drag.scale*O.offset);h?(aa.style.transform=YSa("translate3d("+ka+"px, 0, 0)",O.initialTransform),SSa(O.clientRect,0,S)):(aa.style.transform=YSa("translate3d(0, "+ka+"px, 0)",O.initialTransform),SSa(O.clientRect,S,0))}});this._previousSwap.overlaps=RSa(v,b,c);this._previousSwap.drag=q.drag;this._previousSwap.delta=h?d.x:d.y;return{previousIndex:k,currentIndex:f}};
g.enter=function(a,b,c,d){d=d==null||d<0?this._getItemIndexFromPointerPosition(a,b,c):d;var e=this._activeDraggables,f=e.indexOf(a),h=a.getPlaceholderElement(),k=e[d];k===a&&(k=e[d+1]);!k&&(d==null||d===-1||d<e.length-1)&&this._shouldEnterAsFirstChild(b,c)&&(k=e[0]);f>-1&&e.splice(f,1);k&&!this._dragDropRegistry.isDragging(k)?(b=k.getRootElement(),b.parentElement.insertBefore(h,b),e.splice(d,0,a)):(this._element.appendChild(h),e.push(a));h.style.transform="";this._cacheItemPositions()};
g.withItems=function(a){this._activeDraggables=a.slice();this._cacheItemPositions()};g.withSortPredicate=function(a){this._sortPredicate=a};
g.reset=function(){var a=this,b;(b=this._activeDraggables)==null||b.forEach(function(c){var d=c.getRootElement();if(d){var e,f=(e=a._itemPositions.find(function(h){return h.drag===c}))==null?void 0:e.initialTransform;d.style.transform=f||""}});this._itemPositions=[];this._activeDraggables=[];this._previousSwap.drag=null;this._previousSwap.delta=0;this._previousSwap.overlaps=!1};g.getActiveItemsSnapshot=function(){return this._activeDraggables};
g.getItemIndex=function(a){return this._getVisualItemPositions().findIndex(function(b){return b.drag===a})};g.getItemAtIndex=function(a){var b;return((b=this._getVisualItemPositions()[a])==null?void 0:b.drag)||null};g.updateOnScroll=function(a,b){var c=this;this._itemPositions.forEach(function(d){SSa(d.clientRect,a,b)});this._itemPositions.forEach(function(d){d=d.drag;c._dragDropRegistry.isDragging(d)&&d._sortFromLastPointerPosition()})};g.withElementContainer=function(a){this._element=a};
g._cacheItemPositions=function(){var a=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(function(b){var c=nPc(b);return{drag:b,offset:0,initialTransform:c.style.transform||"",clientRect:QSa(c)}}).sort(function(b,c){return a?b.clientRect.left-c.clientRect.left:b.clientRect.top-c.clientRect.top})};g._getVisualItemPositions=function(){return this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions};
g._getItemOffsetPx=function(a,b,c){var d=this.orientation==="horizontal",e=d?b.left-a.left:b.top-a.top;c===-1&&(e+=d?b.width-a.width:b.height-a.height);return e};g._getSiblingOffsetPx=function(a,b,c){var d=this.orientation==="horizontal",e=b[a].clientRect;a=b[a+c*-1];b=e[d?"width":"height"]*c;if(a){var f=d?"left":"top";d=d?"right":"bottom";b=c===-1?b-(a.clientRect[f]-e[d]):b+(e[f]-a.clientRect[d])}return b};
g._shouldEnterAsFirstChild=function(a,b){if(!this._activeDraggables.length)return!1;var c=this._itemPositions,d=this.orientation==="horizontal";if(c[0].drag!==this._activeDraggables[0])return c=c[c.length-1].clientRect,d?a>=c.right:b>=c.bottom;c=c[0].clientRect;return d?a<=c.left:b<=c.top};
g._getItemIndexFromPointerPosition=function(a,b,c,d){var e=this,f=this.orientation==="horizontal",h=this._itemPositions.findIndex(function(k){var q=k.drag;k=k.clientRect;if(q===a)return!1;if(d){var v=f?d.x:d.y;if(q===e._previousSwap.drag&&e._previousSwap.overlaps&&v===e._previousSwap.delta)return!1}return f?b>=Math.floor(k.left)&&b<Math.floor(k.right):c>=Math.floor(k.top)&&c<Math.floor(k.bottom)});return h!==-1&&this._sortPredicate(h,a)?h:-1};var tPc=function(a,b,c,d,e){var f=this;this._dragDropRegistry=b;this._ngZone=d;this._viewportRuler=e;this.autoScrollDisabled=this.sortingDisabled=this.disabled=!1;this.autoScrollStep=2;this.hasAnchor=!1;this.enterPredicate=function(){return!0};this.sortPredicate=function(){return!0};this.beforeStarted=new tg;this.entered=new tg;this.exited=new tg;this.dropped=new tg;this.sorted=new tg;this.receivingStarted=new tg;this.receivingStopped=new tg;this._isDragging=!1;this._draggables=[];this._siblings=
[];this._activeSiblings=new Set;this._viewportScrollSubscription=yf.EMPTY;this._horizontalScrollDirection=this._verticalScrollDirection=0;this._stopScrollTimers=new tg;this._cachedShadowRoot=null;this._scrollableElements=[];this._direction="ltr";this._startScrollInterval=function(){f._stopScrolling();Kka(0,hhc).pipe(yg(f._stopScrollTimers)).subscribe(function(){var h=f._scrollNode,k=f.autoScrollStep;f._verticalScrollDirection===1?h.scrollBy(0,-k):f._verticalScrollDirection===2&&h.scrollBy(0,k);f._horizontalScrollDirection===
1?h.scrollBy(-k,0):f._horizontalScrollDirection===2&&h.scrollBy(k,0)})};a=this.element=ri(a);this._document=c;sPc(this,"vertical").withElementContainer(a);XOc(b,this);this._parentPositions=new JM(c)};g=tPc.prototype;
g.dispose=function(){this._stopScrolling();this._stopScrollTimers.complete();this._viewportScrollSubscription.unsubscribe();this.beforeStarted.complete();this.entered.complete();this.exited.complete();this.dropped.complete();this.sorted.complete();this.receivingStarted.complete();this.receivingStopped.complete();this._activeSiblings.clear();this._scrollNode=null;this._parentPositions.clear();this._dragDropRegistry._dropInstances.delete(this)};g.isDragging=function(){return this._isDragging};
g.start=function(){this._draggingStarted();this._notifyReceivingSiblings()};g.enter=function(a,b,c,d){this._draggingStarted();d==null&&this.sortingDisabled&&(d=this._draggables.indexOf(a));this._sortStrategy.enter(a,b,c,d);this._cacheParentPositions();this._notifyReceivingSiblings();this.entered.next({item:a,container:this,currentIndex:this.getItemIndex(a)})};g.exit=function(a){this._reset();this.exited.next({item:a,container:this})};
g.drop=function(a,b,c,d,e,f,h,k){k=k===void 0?{}:k;this._reset();this.dropped.next({item:a,currentIndex:b,previousIndex:c,container:this,previousContainer:d,isPointerOverContainer:e,distance:f,dropPoint:h,event:k})};g.withItems=function(a){var b=this,c=this._draggables;this._draggables=a;a.forEach(function(d){return d._withDropContainer(b)});this.isDragging()&&(c.filter(function(d){return d.isDragging()}).every(function(d){return a.indexOf(d)===-1})?this._reset():this._sortStrategy.withItems(this._draggables))};
g.withDirection=function(a){this._direction=a;this._sortStrategy instanceof rPc&&(this._sortStrategy.direction=a);return this};g.connectedTo=function(a){this._siblings=a.slice();return this};
var sPc=function(a,b){if(b==="mixed")a._sortStrategy=new qPc(a._document,a._dragDropRegistry);else{var c=new rPc(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},uPc=function(a,b){var c=a._container;a._scrollableElements=b.indexOf(c)===-1?[c].concat(p(b)):b.slice()};g=tPc.prototype;
g.withElementContainer=function(a){if(a!==this._container){var b=this._scrollableElements.indexOf(this._container),c=this._scrollableElements.indexOf(a);b>-1&&this._scrollableElements.splice(b,1);c>-1&&this._scrollableElements.splice(c,1);this._sortStrategy&&this._sortStrategy.withElementContainer(a);this._cachedShadowRoot=null;this._scrollableElements.unshift(a);this._container=a}};g.getItemIndex=function(a){return this._isDragging?this._sortStrategy.getItemIndex(a):this._draggables.indexOf(a)};
g.getItemAtIndex=function(a){return this._isDragging?this._sortStrategy.getItemAtIndex(a):this._draggables[a]||null};g._sortItem=function(a,b,c,d){!this.sortingDisabled&&this._domRect&&TSa(this._domRect,b,c)&&(b=this._sortStrategy.sort(a,b,c,d))&&this.sorted.next({previousIndex:b.previousIndex,currentIndex:b.currentIndex,container:this,item:a})};
g._startScrollingIfNecessary=function(a,b){var c=this;if(!this.autoScrollDisabled){var d=0,e=0;this._parentPositions.positions.forEach(function(q,v){if(v!==c._document&&q.clientRect&&!k&&TSa(q.clientRect,a,b)){var A=q.clientRect;q=fTa(A,b);A=gTa(A,a);var E=0,H=0;if(q){var L=v.scrollTop;q===1?L>0&&(E=1):v.scrollHeight-L>v.clientHeight&&(E=2)}A&&(q=v.scrollLeft,c._direction==="rtl"?A===2?q<0&&(H=2):v.scrollWidth+q>v.clientWidth&&(H=1):A===1?q>0&&(H=1):v.scrollWidth-q>v.clientWidth&&(H=2));q=l([E,H]);
d=q.next().value;e=q.next().value;if(d||e)k=v}});if(!d&&!e){var f=this._viewportRuler.getViewportSize(),h=f.width;f=f.height;h={width:h,height:f,top:0,right:h,bottom:f,left:0};d=fTa(h,b);e=gTa(h,a);var k=window}!k||d===this._verticalScrollDirection&&e===this._horizontalScrollDirection&&k===this._scrollNode||(this._verticalScrollDirection=d,this._horizontalScrollDirection=e,this._scrollNode=k,(d||e)&&k?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}};
g._stopScrolling=function(){this._stopScrollTimers.next()};g._draggingStarted=function(){var a=this._container.style;this.beforeStarted.next();this._isDragging=!0;this._initialScrollSnap=a.msScrollSnapType||a.scrollSnapType||"";a.scrollSnapType=a.msScrollSnapType="none";this._sortStrategy.start(this._draggables);this._cacheParentPositions();this._viewportScrollSubscription.unsubscribe();this._listenToScrollEvents()};
g._cacheParentPositions=function(){this._parentPositions.cache(this._scrollableElements);this._domRect=this._parentPositions.positions.get(this._container).clientRect};g._reset=function(){var a=this;this._isDragging=!1;var b=this._container.style;b.scrollSnapType=b.msScrollSnapType=this._initialScrollSnap;this._siblings.forEach(function(c){return c._stopReceiving(a)});this._sortStrategy.reset();this._stopScrolling();this._viewportScrollSubscription.unsubscribe();this._parentPositions.clear()};
g._isOverContainer=function(a,b){return this._domRect!=null&&RSa(this._domRect,a,b)};g._getSiblingContainerFromPosition=function(a,b,c){return this._siblings.find(function(d){return d._canReceive(a,b,c)})};g._canReceive=function(a,b,c){return this._domRect&&RSa(this._domRect,b,c)&&this.enterPredicate(a,this)?(a=this._getShadowRoot().elementFromPoint(b,c))?a===this._container||this._container.contains(a):!1:!1};
g._startReceiving=function(a,b){var c=this,d=this._activeSiblings;!d.has(a)&&b.every(function(e){return c.enterPredicate(e,c)||c._draggables.indexOf(e)>-1})&&(d.add(a),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:a,receiver:this,items:b}))};g._stopReceiving=function(a){this._activeSiblings.delete(a);this._viewportScrollSubscription.unsubscribe();this.receivingStopped.next({initiator:a,receiver:this})};
g._listenToScrollEvents=function(){var a=this;this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(function(b){a.isDragging()?(b=a._parentPositions.handleScroll(b))&&a._sortStrategy.updateOnScroll(b.top,b.left):a._activeSiblings.size>0&&a._cacheParentPositions()})};g._getShadowRoot=function(){this._cachedShadowRoot||(this._cachedShadowRoot=jpa(this._container)||this._document);return this._cachedShadowRoot};
g._notifyReceivingSiblings=function(){var a=this,b=this._sortStrategy.getActiveItemsSnapshot().filter(function(c){return c.isDragging()});this._siblings.forEach(function(c){return c._startReceiving(a,b)})};var vPc={dragStartThreshold:5,pointerDirectionChangeThreshold:5},KM=function(){this._document=r(ui);this._ngZone=r(Ph);this._viewportRuler=r(vi);this._dragDropRegistry=r(HM);this._renderer=r(qf).createRenderer(null,null)};KM.prototype.createDrag=function(a,b){b=b===void 0?vPc:b;return new mPc(a,b,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)};KM.\u0275fac=function(a){return new (a||KM)};KM.\u0275prov=Cd({token:KM,factory:KM.\u0275fac,providedIn:"root"});var wPc=new le("CdkDropList"),LM=function(){var a=this;this.element=r(Te);this.dropContainer=r(wPc,{optional:!0,skipSelf:!0});this._ngZone=r(Ph);this._viewContainerRef=r(fh);this._dir=r(Gi,{optional:!0});this._changeDetectorRef=r(Hv);this._selfHandle=r(ePc,{optional:!0,self:!0});this._parentDrag=r(dPc,{optional:!0,skipSelf:!0});this._dragDropRegistry=r(HM);this._destroyed=new tg;this._handles=new Kn([]);this.scale=1;this.started=new nq;this.released=new nq;this.ended=new nq;this.entered=new nq;this.exited=
new nq;this.dropped=new nq;this.moved=new Cf(function(d){var e=a._dragRef.moved.pipe(C(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=r(Cg);var b=this.dropContainer,c=r(TOc,{optional:!0});this._dragRef=r(KM).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;aPc(this._dragDropRegistry,this.element.nativeElement,this);c&&this._assignDefaults(c);b&&(b.addItem(this),b._dropListRef.beforeStarted.pipe(yg(this._destroyed)).subscribe(function(){a._dragRef.scale=a.scale}));this._syncInputs(this._dragRef);this._handleEvents(this._dragRef)};g=LM.prototype;g.getPlaceholderElement=function(){return this._dragRef.getPlaceholderElement()};g.getRootElement=function(){return this._dragRef.getRootElement()};
g.reset=function(){this._dragRef.reset()};g.setFreeDragPosition=function(a){this._dragRef.setFreeDragPosition(a)};g.ngAfterViewInit=function(){var a=this;Ig(function(){a._updateRootElement();a._setupHandlesListener();a._dragRef.scale=a.scale;a.freeDragPosition&&a._dragRef.setFreeDragPosition(a.freeDragPosition)},{injector:this._injector})};
g.ngOnChanges=function(a){var b=a.rootElementSelector;a=a.freeDragPosition;b&&!b.firstChange&&this._updateRootElement();this._dragRef.scale=this.scale;a&&!a.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)};
g.ngOnDestroy=function(){var a=this;this.dropContainer&&this.dropContainer.removeItem(this);bPc(this._dragDropRegistry,this.element.nativeElement);this._ngZone.runOutsideAngular(function(){a._handles.complete();a._destroyed.next();a._destroyed.complete();a._dragRef.dispose()})};g._addHandle=function(a){var b=this._handles.getValue();b.push(a);this._handles.next(b)};g._removeHandle=function(a){var b=this._handles.getValue();a=b.indexOf(a);a>-1&&(b.splice(a,1),this._handles.next(b))};
g._setPreviewTemplate=function(a){this._previewTemplate=a};g._resetPreviewTemplate=function(a){a===this._previewTemplate&&(this._previewTemplate=null)};g._setPlaceholderTemplate=function(a){this._placeholderTemplate=a};g._resetPlaceholderTemplate=function(a){a===this._placeholderTemplate&&(this._placeholderTemplate=null)};
g._updateRootElement=function(){var a=this.element.nativeElement,b=a;if(this.rootElementSelector){var c;b=a.closest!==void 0?a.closest(this.rootElementSelector):(c=a.parentElement)==null?void 0:c.closest(this.rootElementSelector)}lPc(this._dragRef,b||a)};g._getBoundaryElement=function(){var a=this.boundaryElement;return a?typeof a==="string"?this.element.nativeElement.closest(a):ri(a):null};
g._syncInputs=function(a){var b=this;a.beforeStarted.subscribe(function(){if(!a.isDragging()){var c=b._dir,d=b.dragStartDelay,e=b._placeholderTemplate?{template:b._placeholderTemplate.templateRef,context:b._placeholderTemplate.data,viewContainer:b._viewContainerRef}:null,f=b._previewTemplate?{template:b._previewTemplate.templateRef,context:b._previewTemplate.data,matchSize:b._previewTemplate.matchSize,viewContainer:b._viewContainerRef}:null;a.disabled=b.disabled;a.lockAxis=b.lockAxis;a.scale=b.scale;
a.dragStartDelay=typeof d==="object"&&d?d:si(d);a.constrainPosition=b.constrainPosition;a.previewClass=b.previewClass;d=pPc(a,b._getBoundaryElement());d._placeholderTemplate=e;d._previewTemplate=f;d._previewContainer=b.previewContainer||"global";c&&a.withDirection(c.value)}});a.beforeStarted.pipe(mg(1)).subscribe(function(){if(b._parentDrag)a._parentDragRef=b._parentDrag._dragRef;else for(var c=b.element.nativeElement.parentElement;c;){var d=cPc(b._dragDropRegistry,c);if(d){a._parentDragRef=d._dragRef;
break}c=c.parentElement}})};
g._handleEvents=function(a){var b=this;a.started.subscribe(function(c){b.started.emit({source:b,event:c.event});b._changeDetectorRef.markForCheck()});a.released.subscribe(function(c){b.released.emit({source:b,event:c.event})});a.ended.subscribe(function(c){b.ended.emit({source:b,distance:c.distance,dropPoint:c.dropPoint,event:c.event});b._changeDetectorRef.markForCheck()});a.entered.subscribe(function(c){b.entered.emit({container:c.container.data,item:b,currentIndex:c.currentIndex})});a.exited.subscribe(function(c){b.exited.emit({container:c.container.data,
item:b})});a.dropped.subscribe(function(c){b.dropped.emit({previousIndex:c.previousIndex,currentIndex:c.currentIndex,previousContainer:c.previousContainer.data,container:c.container.data,isPointerOverContainer:c.isPointerOverContainer,item:b,distance:c.distance,dropPoint:c.dropPoint,event:c.event})})};
g._assignDefaults=function(a){var b=a.lockAxis,c=a.dragStartDelay,d=a.constrainPosition,e=a.previewClass,f=a.boundaryElement,h=a.draggingDisabled,k=a.rootElementSelector;a=a.previewContainer;this.disabled=h==null?!1:h;this.dragStartDelay=c||0;b&&(this.lockAxis=b);d&&(this.constrainPosition=d);e&&(this.previewClass=e);f&&(this.boundaryElement=f);k&&(this.rootElementSelector=k);a&&(this.previewContainer=a)};
g._setupHandlesListener=function(){var a=this;this._handles.pipe(zg(function(b){b=b.map(function(c){return c.element});a._selfHandle&&a.rootElementSelector&&b.push(a.element);oPc(a._dragRef,b)}),xg(function(b){return dg.apply(null,p(b.map(function(c){return c._stateChanges.pipe(wg(c))})))}),yg(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),vq(d,!0)):c._disabledHandles.has(d)&&
(c._disabledHandles.delete(d),vq(d,c.disabled))})};nd.Object.defineProperties(LM.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}}});LM.\u0275fac=function(a){return new (a||LM)};
LM.\u0275dir=vf({type:LM,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(a,b){a&2&&uh("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",$h],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",ai]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[Fh([{provide:dPc,
useExisting:LM}]),ov]});var xPc=new le("CdkDropListGroup");var MM=function(){var a=this;this.element=r(Te);this._changeDetectorRef=r(Hv);this._scrollDispatcher=r(wi);this._dir=r(Gi,{optional:!0});this._group=r(xPc,{optional:!0,skipSelf:!0});this._destroyed=new tg;this.connectedTo=[];this.id=r(Fi).getId("cdk-drop-list-");this.enterPredicate=function(){return!0};this.sortPredicate=function(){return!0};this.dropped=new nq;this.entered=new nq;this.exited=new nq;this.sorted=new nq;this._unsortedItems=new Set;var b=r(KM),c=r(TOc,{optional:!0});this._dropListRef=
new tPc(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);MM._dropLists.push(this);this._group&&this._group._items.add(this)};
MM.prototype.addItem=function(a){this._unsortedItems.add(a);a._dragRef._withDropContainer(this._dropListRef);this._dropListRef.isDragging()&&this._syncItemsWithRef(yPc(this).map(function(b){return b._dragRef}))};MM.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 yPc=function(a){return Array.from(a._unsortedItems).sort(function(b,c){return nPc(b._dragRef).compareDocumentPosition(nPc(c._dragRef))&Node.DOCUMENT_POSITION_FOLLOWING?-1:1})};g=MM.prototype;g.ngOnDestroy=function(){var a=MM._dropLists.indexOf(this);a>-1&&MM._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()};
g._setupInputSyncSubscription=function(a){var b=this;this._dir&&this._dir.change.pipe(wg(this._dir.value),yg(this._destroyed)).subscribe(function(c){return a.withDirection(c)});a.beforeStarted.subscribe(function(){var c=oi(b.connectedTo).map(function(e){return typeof e==="string"?MM._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=hjc(b._scrollDispatcher,b.element).map(function(e){return e.elementRef.nativeElement});
uPc(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=si(b.autoScrollStep,2);a.hasAnchor=b.hasAnchor;sPc(a.connectedTo(c.filter(function(e){return e&&e!==b}).map(function(e){return e._dropListRef})),b.orientation)})};
g._handleEvents=function(a){var b=this;a.beforeStarted.subscribe(function(){b._syncItemsWithRef(yPc(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()});dg(a.receivingStarted,a.receivingStopped).subscribe(function(){return b._changeDetectorRef.markForCheck()})};
g._assignDefaults=function(a){var b=a.lockAxis,c=a.draggingDisabled,d=a.sortingDisabled,e=a.listAutoScrollDisabled;a=a.listOrientation;this.disabled=c==null?!1:c;this.sortingDisabled=d==null?!1:d;this.autoScrollDisabled=e==null?!1:e;this.orientation=a||"vertical";b&&(this.lockAxis=b)};g._syncItemsWithRef=function(a){this._latestSortedRefs=a;this._dropListRef.withItems(a)};
nd.Object.defineProperties(MM.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}}});MM._dropLists=[];MM.\u0275fac=function(a){return new (a||MM)};
MM.\u0275dir=vf({type:MM,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(a,b){a&2&&(Lg("id",b.id),uh("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",$h],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",$h],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",$h],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"],hasAnchor:[2,"cdkDropListHasAnchor",
"hasAnchor",$h]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[Fh([{provide:xPc,useValue:void 0},{provide:wPc,useExisting:MM}])]});new le("CdkDragPlaceholder");new le("CdkDragPreview");var NM=function(){};NM.\u0275fac=function(a){return new (a||NM)};NM.\u0275mod=uf({type:NM});NM.\u0275inj=Dd({providers:[KM],imports:[Vw]});var zPc=["addLink"],APc=["showFewer"],BPc=["showMore"],CPc=["editButton"],DPc=["removeButton"],EPc=[[["",8,"value-action"]]],jTa=function(a,b){return{item:a,$index:b}},ETa=function(a){return{q:a}},FPc=[Object.assign({},XTa("start","bottom"),YTa("start","top"),{offsetY:8}),Object.assign({},XTa("center","bottom"),YTa("center","top"),{offsetY:8}),Object.assign({},XTa("end","bottom"),YTa("end","top"),{offsetY:8}),Object.assign({},XTa("start","top"),YTa("start","bottom"),{offsetY:-8}),Object.assign({},
XTa("end","top"),YTa("end","bottom"),{offsetY:-8})],OM=function(){Z.apply(this,arguments);var a=this;this.cdr=r(NE,{self:!0});this.dateFormatter=r(eK);this.analytics=r(RE);this.liveAnnouncer=r(Aw);this.principalTypesFridge=r(HF);this.issuePermissionService=r(OK);this.activeSession=r(Bs);this.customRepeatedEnumDialogService=r(XL);this.OVERLAY_POSITION_LIST=FPc;this.defaultLineCount=Number.POSITIVE_INFINITY;this.isDefaultOrAllowedValues=this.preventDuplicates=this.readonly=!1;this.values=null;this.providedValues$=
new sg(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 LE;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 LE;this.enableTeamAnnotations=
this.activeSession.isInternalSession();this.environmentType=this.activeSession.getEnvironmentType();this.teamId=this.invalidMessage="";this.isString=hsa;this.enableNewCustomRepeatedEnumUi=OA(this.activeSession,"enableNewCustomRepeatedEnumUi");this.enableGerritChanges=OA(this.activeSession,"enableGerritChanges");this.groups$=this.providedValues$.pipe(xg(function(b){return a.extractGroups(b)}),wg(new Set));this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.focusOnTitle=!1};Y(OM,Z);
OM.\u0275dir=Z.\u0275dir;OM.prototype.ngOnChanges=function(a){if(a.values){var b;this.providedValues$.next((b=this.values)!=null?b:[])}a.showInternalOnlyFieldBadge&&(this.showInternalOnlyFieldBadge=a.showInternalOnlyFieldBadge.currentValue)};OM.prototype.ngOnInit=function(){qTa(this)};
var qTa=function(a){a.sortedEnumChoices=[].concat(p(a.enumChoices||[])).sort(function(b){b=b.value;var c,d=((c=a.values)==null?0:c.includes(b))?1:0,e;return(((e=a.values)==null?0:e.includes(b))?1:0)-d})},rTa=function(a){var b=a.values||[],c=[].concat(p(a.enumPendingValues)),d=c.filter(function(f){return!b.includes(f)}),e=b.filter(function(f){return!c.includes(f)});if(d.length||e.length)a.values=c,a.valuesChange.emit({values:a.values,added:d,removed:e})},uTa=function(a){var b;return z(function(c){if(c.nextAddress==
1)return a.customRepeatedEnumDialogService.isOpen()?c.return():B(c,a.customRepeatedEnumDialogService.open({customFieldTitle:a.title,allowedValues:VTa(a),selectedValues:a.values}),2);(b=c.yieldResult)&&UTa(a,Array.from(b));Lf(c)})},xq=function(a){return a.type==="REPEATED_ENUM"&&a.sortedEnumChoices.length>1E3};OM.prototype.showCodeChanges=function(a){a=!!Hl(a);return this.type==="CODE_CHANGES"&&(!a||this.enableGerritChanges)};
var VTa=function(a){return a.sortedEnumChoices.map(function(b){return b.displayText})},UTa=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);MTa(a)&&yq(a,!0)};g=OM.prototype;g.isCustomField=function(){return["REPEATED_TEXT","REPEATED_DATE","REPEATED_ENUM","REPEATED_NUMERIC"].includes(this.type)};
g.removeItem=function(a){var b=this;if(!this.listFieldDisabled){var c=this.values.splice(a,1);this.valuesChange.emit({values:this.values,removed:c})}this.schedule(function(){var d;if((d=b.values)==null?0:d.length){d=Math.min(a,b.values.length-1);var e,f,h;(e=b.removeButtons)==null||(f=e.get(d))==null||(h=f.nativeElement)==null||h.focus()}else{var k,q;(k=b.addLinkEl)==null||(q=k.nativeElement)==null||q.focus()}})};
g.addItems=function(a){var b=[];this.values=this.values||[];if(a)if(this.type==="REPEATED_DATE"){var c=Swa(a);this.preventDuplicates&&this.values.find(function(h){return gj(h,c)})||b.push(c)}else if(this.type==="REPEATED_NUMERIC"&&isa(this.values)&&isa(b))a=Number(a),this.preventDuplicates&&this.values.includes(a)||b.push(a);else if(ij(this.values)&&ij(b))if(this.isCustomField())this.preventDuplicates&&this.values.includes(a)||b.push(a);else if(!this.isCustomField()){a=l(a.split(/[,; ]/));for(var d=
a.next();!d.done;d=a.next()){var e=d=d.value;if(this.type==="CODE_CHANGES"){var f=!!Hl(d);this.enableGerritChanges&&f?e=d:e=Pwa(d)}e&&!this.values.includes(e)&&b.push(e)}}this.isDefaultOrAllowedValues&&this.type!=="REPEATED_DATE"||this.closeAddPopup(!0);b.length!==0&&(this.values=[].concat(p(this.values),p(b)),this.valuesChange.emit({values:this.values,added:b}))};g.onDrop=function(a){wq(this.values,a.previousIndex,a.currentIndex);this.valuesChange.emit({values:this.values})};
g.closeAddPopup=function(a){var b,c=l((b=this.menuTriggers)!=null?b:[]);for(b=c.next();!b.done;b=c.next())b.value.closeMenu();var d;c=l((d=this.popupTriggers)!=null?d:[]);for(d=c.next();!d.done;d=c.next())this.closeInlineDialog(d.value);a&&this.addLinkEl&&this.addLinkEl.nativeElement.focus()};g.closeInlineDialog=function(a){a.disabled||(a.disabled=!0,a.disabled=!1)};
var yq=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()})},MTa=function(a){return!!a.values&&a.values.length>a.defaultLineCount+1},lTa=function(a){return a.values&&a.type==="REPEATED_DATE"?a.values.map(function(b){return a.dateFormatter.formatUserCalendar(Il(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 hsa(b)?b:gsa(b)?""+b:a.dateFormatter.formatUserCalendar(Il(b))})};g=OM.prototype;
g.textPopupSubmit=function(a,b){var c=this,d,e,f;return z(function(h){if(h.nextAddress==1)return c.inputValidator?B(h,c.inputValidator(a.value.input),3):h.jumpTo(2);h.nextAddress!=2&&(c.invalidMessage=h.yieldResult,c.cdr.markForCheck());if(!a.valid||c.invalidMessage)return h.return();d=a.value.input;(e=a)==null||e.reset();(f=b.querySelector("input"))==null||f.focus();c.addItems(d);Lf(h)})};g.trackClick=function(a){this.analytics.trackEvent("linkField","click",a)};g.getUser=function(a){return this.userMap.get(a)};
g.schedule=function(a){this.subscriptions.add(ag.schedule(a))};g.getAriaLabel=function(){if(!this.values||this.values.length===0)return this.title+" is empty";var a=this.title+" has "+this.values.length+" ";switch(this.type){case "REPEATED_DATE":a+="date";break;default:a+="item"}this.values.length>1&&(a+="s");return a};var OTa=function(a,b){return b.displayText+", "+(a.enumPendingValues.has(b.value)?"selected":"not selected")};
OM.prototype.extractGroups=function(a){if(!this.isUser)return Nf(new Set([]));var b=function(c){return c.principalType==="GROUP"};return this.principalTypesFridge.watchSet(a).pipe(C(function(c){return new Set(c.filter(b).map(function(d){return d.email}))}))};OM.\u0275fac=function(){var a;return function(b){return(a||(a=Re(OM)))(b||OM)}}();
OM.\u0275cmp=y({type:OM,selectors:[["b-list-field"]],viewQuery:function(a,b){a&1&&(hh(zPc,5),hh(APc,5),hh(BPc,5),hh(CPc,5,Te),hh(DPc,5),hh(uG,5),hh(yM,5));if(a&2){var c;lh(c=mh())&&(b.addLinkEl=c.first);lh(c=mh())&&(b.showFewer=c.first);lh(c=mh())&&(b.showMore=c.first);lh(c=mh())&&(b.editButton=c.first);lh(c=mh())&&(b.removeButtons=c);lh(c=mh())&&(b.menuTriggers=c);lh(c=mh())&&(b.popupTriggers=c)}},inputs:{defaultLineCount:"defaultLineCount",readonly:"readonly",preventDuplicates:"preventDuplicates",
isDefaultOrAllowedValues:"isDefaultOrAllowedValues",values:"values",showInternalOnlyFieldBadge:"showInternalOnlyFieldBadge",displayValuesOverride:"displayValuesOverride",enumChoices:"enumChoices",isUser:"isUser",listFieldDisabled:"listFieldDisabled",showingAll:"showingAll",title:"title",type:"type",tooltip:"tooltip",truncate:"truncate",isCollapsible:"isCollapsible",isExpanded:"isExpanded",iconName:"iconName",collapsiblePanelTitle:"collapsiblePanelTitle",customFieldId:"customFieldId",isRequired:"isRequired",
inputValidator:"inputValidator",checkAccessLimits:"checkAccessLimits",teamId:"teamId"},outputs:{valuesChange:"valuesChange",toggleAccessLimits:"toggleAccessLimits"},standalone:!1,features:[Fh([NE]),Bg,ov],ngContentSelectors:[".value-action"],decls:25,vars:28,consts:[["addLink",""],["itemRenderer",""],["metadataTools",""],["enumPopup","matMenu"],["textPopup",""],["datePopup",""],["customFieldPopup",""],["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","","dialogLabel","Select items in the list","panelClass","bv2-add-item-bubble","matTooltip","Select items in the list","tabindex","0",1,"mat-primary","bv2-metadata-tool",
"bv2-metadata-link","tiny",3,"xapInlineDialogClick","overlayPositions"],["type","button","mat-button","","matTooltip","Select items in the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny"],["type","button","mat-button","","aria-haspopup","true","matTooltip","Select items in the list","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"menuOpened","menuClosed","matMenuTriggerFor"],["type","button","mat-button","","matTooltip","Select items in the list",
"tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"click"],["type","button","mat-button","","panelClass","bv2-add-item-bubble","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"beforeOpened","xapInlineDialogClick","dialogLabel","overlayPositions","matTooltip"],[1,"flex-kids-x","flex-cross-axis-centered","flex-wrappable"],[1,"bv2-issue-metadata-list-item"],[1,"overflow-ellipsis",3,"matTooltip"],["type","button",1,"bv2-remove-icon","bv2-remove-item",
"keep-focus-ring",3,"disabled","matTooltip"],[1,"float-clear"],[3,"codeChange"],["target","_blank",1,"bv2-metadata-link",3,"href"],[3,"teamId","componentId"],["target","_blank",1,"bv2-metadata-link",3,"click","href"],["routerLink","/issues",1,"subtle-link",3,"click","queryParams"],[3,"maxWidth","modelValue","disabled"],["type","button",1,"bv2-remove-icon","bv2-remove-item","keep-focus-ring",3,"click","disabled","matTooltip"],["tabindex","0","role","button",1,"bv2-metadata-tool","bv2-metadata-link",
3,"matTooltip"],["tabindex","0","role","button",1,"bv2-metadata-tool","bv2-metadata-link",3,"click","keydown.enter","keydown.space","matTooltip"],[1,"bv2-metadata-tool"],["tabindex","0","role","button",1,"bv2-metadata-link",3,"click","keydown.enter","keydown.space","matTooltip"],["mat-menu-item","","type","button","role","menuitemcheckbox",3,"disabled","b-menu-item-checked"],["mat-menu-item","","type","button","role","menuitemcheckbox",3,"click","disabled"],[1,"b-menu-item-check-mark"],["svgIcon",
"done",1,"icon-s"],[3,"ngSubmit"],["name","input","ngModel","","required","","step","any","aria-expanded","true","autofocus","",3,"type"],[1,"bv2-list-field-addition-dialog-buttons"],["mat-flat-button","","type","submit",1,"medium","field-popup-button",3,"disabled"],["svgIcon","done"],["mat-stroked-button","","type","button",1,"medium","field-popup-button",3,"click"],["svgIcon","close"],[3,"dateChange","cancelClicked","required","renderPanel"],[3,"onApplyChanges","onCancelChanges","allowMultiSelect",
"customFieldTitle","allowedValues","selectedValues"]],template:function(a,b){if(a&1){var c=t();ch(EPc);J(0,"div")(1,"div",12)(2,"div",13);N("focusin",function(){u(c);return w(b.focusOnTitle=!0)})("focusout",function(){u(c);return w(b.focusOnTitle=!1)});F(3,hTa,2,1,"label");F(4,iTa,1,0,"mat-icon",14);K();J(5,"div",15);N("cdkDropListDropped",function(d){u(c);return w(b.onDrop(d))});F(6,mTa,4,5,"collapsible-panel",16)(7,pTa,4,2);J(8,"div",17,0);F(10,zTa,3,1);dh(11);K()()();D(12,JTa,1,1,"ng-template",
null,1,Lh)(14,NTa,2,2,"ng-template",null,2,Lh);J(16,"mat-menu",null,3);D(18,QTa,2,0,"ng-template",18);K();D(19,STa,12,9,"ng-template",null,4,Lh)(21,TTa,1,2,"ng-template",null,5,Lh)(23,WTa,3,4,"ng-template",null,6,Lh);K()}a&2&&(uh("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),x(),uh("bv2-disabled",b.listFieldDisabled)("bv2-readonly",b.readonly),I("matTooltip",b.tooltip)("matTooltipPosition","left")("matTooltipDisabled",xq(b)),Lg("aria-label",b.getAriaLabel()),x(),I("matTooltip",b.tooltip)("matTooltipPosition","left")("matTooltipDisabled",!xq(b)),x(),G(b.title?3:-1),x(),G(b.showInternalOnlyFieldBadge?4:-1),x(),uh("draggable",(b.values==null?null:b.values.length)&&b.isDefaultOrAllowedValues),I("cdkDropListDisabled",!b.isDefaultOrAllowedValues),x(),G(b.isCollapsible||
b.enableNewCustomRepeatedEnumUi&&xq(b)?6:7),x(4),G(b.readonly?-1:10))},dependencies:[Sv,FC,xC,Dy,qL,ly,Ui,dy,ey,vy,ky,iy,oG,Jx,zG,xG,vJ,MM,LM,uM,tM,yM,pG,sG,qG,rG,uG,rM,pM,iM,IL],styles:["xap-dialog-layout[_ngcontent-%COMP%]{padding:16px}xap-dialog-layout-content[_ngcontent-%COMP%]{padding:0}.list-field-content.draggable[_ngcontent-%COMP%]{cursor:grab}.list-field-content.draggable[_ngcontent-%COMP%]:active{cursor:grabbing}.bv2-editable-title[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{word-break:normal;overflow-wrap:anywhere}b-icon[_ngcontent-%COMP%]{margin-bottom:4px}.internal-only[_ngcontent-%COMP%]{background-color:#f4f5f6;background-color:var(--tonal-fill-grey);margin:5px;border-radius:5%;padding:5px 15px}.internal-only[_ngcontent-%COMP%]   .internal-only-badge[_ngcontent-%COMP%]{color:#188038;color:var(--good-bg-inverse);transform:translate(5px, 5px)}[_nghost-%COMP%]     .bv2-field-user-action-footer span{width:max-content;display:flex}[_nghost-%COMP%]     b-icon.group-icon{width:12px;margin-top:1px}[_nghost-%COMP%]     b-icon.group-icon mat-icon{width:inherit}[_nghost-%COMP%]     b-icon.group-icon mat-icon svg{width:12px;height:16px}[_nghost-%COMP%]     b-icon.disabled-icon mat-icon svg{color:#bdc1c6;color:var(--text-disabled)}"]});
var GPc={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"},PM=function(){};PM.\u0275fac=function(a){return new (a||PM)};PM.\u0275mod=uf({type:PM});PM.\u0275inj=Dd({imports:[HC,gL,GM,KL,AL,Ay,BG,CG,uJ,oM,wJ,hL,NM,vM,CM,mH,AI,sM,CM,qM,mM,LL,bM]});var HPc=$p({opacity:"0"}),IPc=eg(function(a){return a}),JPc=Bf(og(),IPc,lg()),KPc=new le("xap-bubble UX style"),RM=function(a){var b=this;this.activity=new tg;this.openedSubject=new Kn(!1);this.destroy=new sg;this.overlayPositions=[];this.overlayPanelClass="";this.hoverDelayMs=50;this.beforeShow=this.beforeOpened=new nq;this.onOpened=new nq;this.bubbleStyle=a||"xap-bubble-md1";this.opened=this.openedSubject.pipe(cla(function(){return b.activity.pipe(kg(b.hoverDelayMs))}));a=yg(this.destroy);this.opened.pipe(JPc,
a).subscribe(this.onOpened);this.openedSubject.pipe(IPc,Dla(function(){return b.opened.pipe(eg(function(c){return!c}))}),a).subscribe(function(){b.beforeOpened.emit()})};RM.prototype.ngOnDestroy=function(){this.destroy.next();this.destroy.complete()};RM.prototype.toggle=function(a){this.openedSubject.next(a);this.activity.next()};RM.\u0275fac=function(a){return new (a||RM)(of(KPc,8))};
RM.\u0275cmp=y({type:RM,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();ch();J(0,"span",1,0);N("mouseenter",function(){u(c);return w(b.toggle(!0))})("mouseleave",function(){u(c);return w(b.toggle(!1))})("mousemove",function(){u(c);b.activity.next();return w()});dh(2);K();D(3,aUa,2,3,"ng-template",2);U(4,"async")}a&
2&&(a=Q(1),I("ngClass",b.bubbleStyle),x(3),I("cdkConnectedOverlayPanelClass",b.overlayPanelClass)("cdkConnectedOverlayPositions",b.overlayPositions)("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",V(4,5,b.opened)))},dependencies:[Pv,Sv,nx,mx,Tv],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:[UMa("fade",[bq(":enter",[HPc,Zp("225ms")]),bq(":leave",[Zp("195ms",HPc)])])]}});var SM=function(){this.activeSession=r(Bs);this.documentationLinks=r(JJ);this.labelOnlyMode=this.compactMode=!1;this.chipText=this.bubbleText=this.chipClass=""};
SM.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=""}};SM.\u0275fac=function(a){return new (a||SM)};
SM.\u0275cmp=y({type:SM,selectors:[["b-component-access-level-indicator"]],inputs:{accessLevel:"accessLevel",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode"},standalone:!1,features:[ov],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,eUa,2,1);if(a&2){if(a=b.accessLevel)a=b.activeSession.isInternalSession()?b.accessLevel===
"EXTERNAL_PARTNER"||b.accessLevel==="EXTERNAL_PUBLIC":MA(b.activeSession)?b.accessLevel==="EXTERNAL_PUBLIC":!1;G(a?0:-1)}},dependencies:[RM],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 LPc=Dq.listIssues.makeHref,MPc=Dq.createIssue.makeHref,TM=function(){Z.apply(this,arguments);var a=this;this.componentFridge=r(BB);this.activeSession=r(Bs);this.providedComponentId$=new sg(1);this.component$=this.providedComponentId$.pipe(xg(function(b){return a.componentFridge.watch(b)}),ug({refCount:!0,bufferSize:1}));this.init=new sg(1);this.isAnonymous=this.activeSession.isAnonymous()};Y(TM,Z);TM.\u0275dir=Z.\u0275dir;
TM.prototype.ngOnInit=function(){var a=this;this.providedComponentId$.next(this.componentId);this.recentIssuesUrl=LPc({q:"status:open componentid:"+this.componentId,s:"created_time:desc"});this.createIssueUrl=MPc()+"?component="+this.componentId;this.viewComponentUrl=Dq.editComponent.makeHref(this.componentId);this.component$.pipe(mg(1),yg(this.destroyed$)).subscribe(function(){a.init.next()})};TM.\u0275fac=function(){var a;return function(b){return(a||(a=Re(TM)))(b||TM)}}();
TM.\u0275cmp=y({type:TM,selectors:[["b-component-card"]],inputs:{componentId:"componentId"},outputs:{init:"init"},standalone:!1,features:[Bg],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&&(J(0,"div",0)(1,"div",1),F(2,gUa,15,8),U(3,"async"),K()());if(a&2){var c;x(2);G((c=V(3,1,b.component$))?2:-1,c)}},dependencies:[SM,
Tv],styles:["[_nghost-%COMP%]{max-width:400px}ul[_ngcontent-%COMP%]{list-style-type:none;padding:0}"]});var UM=function(){this.trackerHelpers=r(iK);this.componentPath=[];this.isArchived=!1;this.label="Component";this.openTab=""};nd.Object.defineProperties(UM.prototype,{componentPathInfo:{configurable:!0,enumerable:!0,set:function(a){a=rs(this.trackerHelpers,a);this.componentPath=this.componentPathsLinkTo==="settings"?jUa(a,MOa):jUa(a)}}});UM.\u0275fac=function(a){return new (a||UM)};
UM.\u0275cmp=y({type:UM,selectors:[["b-component-breadcrumb"]],inputs:{componentPathsLinkTo:"componentPathsLinkTo",componentPathInfo:"componentPathInfo",isArchived:"isArchived",label:"label",openTab:"openTab"},standalone:!1,decls:7,vars:2,consts:[["card","onedevHovercard"],["role","navigation","aria-labelledby","breadcrumb-label",1,"breadcrumb"],["id","breadcrumb-label"],[1,"breadcrumb-items"],[1,"breadcrumb-item"],[1,"breadcrumb-archived-indicator"],[1,"keep-focus-ring",3,"onedevHovercardTrigger",
"routerLinkObj"],[3,"componentId"]],template:function(a,b){a&1&&(J(0,"div",1)(1,"p",2),R(2),K(),J(3,"span",3),Pg(4,hUa,6,4,"span",4,Og),F(6,iUa,2,0,"span",5),K()());a&2&&(x(2),T("",b.label,":"),x(2),Qg(b.componentPath),x(2),G(b.isArchived?6:-1))},dependencies:[CC,DI,JI,TM],encapsulation:2});var VM=function(){Z.apply(this,arguments);var a=this;this.componentFridge=r(BB);this.trackerHelpers=r(iK);this.recentIssuesInComponent=rq;this.componentId$=new sg(1);this.hidePath=!1;this.error$=this.componentFridge.error$.pipe(eg(function(b){return String(b.idOrKey)===a.componentIdInternal}));this.rawComponent$=this.componentId$.pipe(eg(Qj),xg(function(b){return a.componentFridge.watch(b)}),eg(Qj));this.component$=dg(this.error$,this.rawComponent$).pipe(C(function(b){return b.componentId&&b.name?
b:{componentId:b.idOrKey,name:"(unknown)"}}));this.isArchived$=this.component$.pipe(C(function(b){return b.archived}));this.componentPath$=this.component$.pipe(C(function(b){b=rs(a.trackerHelpers,b.componentPathInfo);return jUa(b)}));this.init=new sg(1);this.routes$=this.componentId$.pipe(C(function(b){return{createIssue:LOa(b),componentSettings:MOa(b),recentIssues:rq(b)}}))};Y(VM,Z);VM.\u0275dir=Z.\u0275dir;VM.prototype.ngOnInit=function(){var a=this;this.component$.pipe(mg(1),yg(this.destroyed$)).subscribe(function(){a.init.next()})};
nd.Object.defineProperties(VM.prototype,{componentId:{configurable:!0,enumerable:!0,set:function(a){this.componentIdInternal=a;this.componentId$.next(a)}}});VM.\u0275fac=function(){var a;return function(b){return(a||(a=Re(VM)))(b||VM)}}();
VM.\u0275cmp=y({type:VM,selectors:[["b-component-path-card"]],inputs:{componentId:"componentId",hidePath:"hidePath"},outputs:{init:"init"},standalone:!1,features:[Bg],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&&(J(0,"div",0)(1,"div",1),F(2,nUa,6,5,"div",2),F(3,oUa,10,5),U(4,"async"),F(5,pUa,7,3,"div",3),U(6,"async"),K()());if(a&2){var c,
d;x(2);G(b.hidePath?-1:2);x();G((c=V(4,3,b.component$))?3:-1,c);x(2);G((d=V(6,5,b.routes$))?5:-1,d)}},dependencies:[FC,CC,oG,Jx,SM,Tv],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 qUa={QA:"124156",NIGHTLY:"190923",PROD:"190923"};new Promise(function(){});var WM=function(){var a=r(QC),b=r(xD),c=r(BB);Z.call(this);var d=this;this.componentApi=r(zB);this.appEvents=r(FB);this.activeSession=r(Bs);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=Ja(e);Kaa(f);return d.componentApi.query({id:f}).then(function(h){var k={};h=l(h);
for(var q=h.next();!q.done;q=h.next())(q=q.value)&&(k[q.componentId]=q);return e.map(function(v){return k[v]||null})})})};Y(WM,Z);WM.\u0275dir=Z.\u0275dir;g=WM.prototype;g.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 fxc("Could not load details for component "+a))});return this.components.put(a,b)};
g.create=function(a){var b=this;return this.componentApi.create(a).then(function(c){b.appEvents.componentModified.next(c.componentId);return c})};g.update=function(a){var b=this;return this.componentApi.update(a).then(function(c){b.appEvents.componentModified.next(c.componentId);return c})};g.move=function(a,b){var c=this;return this.componentApi.move(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};
g.updateSlo=function(a,b){var c=this;return this.componentApi.updateSlo(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};g.updateTeam=function(a,b){var c=this;return this.componentApi.updateTeam(a,b).then(function(d){c.appEvents.componentModified.next(d.componentId);return d})};g.getChildren=function(a,b){return this.componentApi.getChildren(a,b===void 0?!1:b)};g.getDescendants=function(a){return this.componentApi.getDescendants(a)};
g.getUncached=function(a){this.components.remove(a);return this.componentApi.fetchComponent(a)};g.search=function(a,b){var c={query:a};if(b===void 0?0:b)c.includearchived=!0;return NPc(this,a,this.componentApi.query(c))};
var NPc=function(a,b,c){if(b.match(/^\s*android\s*$/i)){var d=rUa(a.activeSession.getEnvironmentType());if(d)return Aq({publicComponent:a.get(d),rest:c}).then(function(e){var f=[e.publicComponent];e=l(e.rest);for(var h=e.next();!h.done;h=e.next())h=h.value,h.componentId!==d&&f.push(h);return f})}return c};
WM.prototype.bulkLoad=function(a){var b=this,c=a.filter(function(f){return!b.components.get(f)});Kaa(c);if(c.length){a=this.componentApi.query({id:c}).then(function(f){var h={};f=l(f);for(var k=f.next();!k.done;k=f.next())(k=k.value)&&(h[k.componentId]=k);return h});c=l(c);for(var d=c.next(),e={};!d.done;e={id$jscomp$332:void 0},d=c.next())e.id$jscomp$332=d.value,this.components.put(e.id$jscomp$332,a.then(function(f){return function(h){return h[f.id$jscomp$332]?h[f.id$jscomp$332]:Promise.reject(new fxc("Could not load details for component "+
f.id$jscomp$332))}}(e)))}};WM.\u0275fac=function(a){return new (a||WM)};WM.\u0275prov=Cd({token:WM,factory:WM.\u0275fac,providedIn:"root"});var OPc=ru(["https://www.gstatic.com/buganizer/gfx/","/",""]),XM=ru(["https://www.gstatic.com/buganizer/img/v2/",""]),PPc=aj(OPc,"2025-07-02-c1430b21","all-icons.svg"),QPc=aj(XM,"empty_blocker_light.png"),RPc=aj(XM,"empty_blocker_dark.png"),SPc=aj(XM,"empty_child_light.png"),TPc=aj(XM,"empty_child_dark.png"),UPc=aj(XM,"robot_sleeping.png"),VPc=aj(XM,"tea_light.png"),WPc=aj(XM,"tea_dark.png"),XPc=aj(XM,"space_empty_state.png"),YPc=aj(XM,"eg_work_area.png"),ZPc=aj(XM,"empty_triage.png");aj(XM,"gerrit_logo.svg");var YM=function(){this.ICON_URL=PPc;this.LOGO_LIGHT="https://www.gstatic.com/buganizer/img/v3/logo_light.svg";this.EMPTY_BLOCKER_LIGHT=QPc;this.EMPTY_BLOCKER_DARK=RPc;this.EMPTY_CHILD_LIGHT=SPc;this.EMPTY_CHILD_DARK=TPc;this.ROBOT_SLEEPING=UPc;this.TEA_LIGHT=VPc;this.TEA_DARK=WPc;this.SPACE_EMPTY_STATE=XPc;this.WORK_AREA_EXAMPLE_ILLUSTRATION=YPc;this.EMPTY_TRIAGE=ZPc};YM.\u0275fac=function(a){return new (a||YM)};YM.\u0275prov=Cd({token:YM,factory:YM.\u0275fac,providedIn:"root"});var ZM=function(){this.activeSession=r(Bs);this.documentationLinks=r(JJ);this.trackerHelpers=r(iK);this.imageUrls=r(YM);this.compactMode=!1;this.showHovercard=!0;this.isGlobalBuganizer=!1;this.logoDark=this.logoLight=this.extendedName=this.name=this.redirectUrl=""};
ZM.prototype.ngOnChanges=function(a){if(a.tracker||a.isGlobalBuganizer){this.redirectUrl=this.isGlobalBuganizer?XKc(this.trackerHelpers,""):or(this.trackerHelpers,"",this.tracker);this.name=this.getName();this.extendedName=this.isGlobalBuganizer?this.name:"the "+this.name+" Tracker";if(this.isGlobalBuganizer)a=this.imageUrls.LOGO_LIGHT;else{var b,c;if((b=this.tracker)==null?0:(c=b.branding)==null?0:c.logoUrl){var d,e,f;a=(f=(d=this.tracker)==null?void 0:(e=d.branding)==null?void 0:e.logoUrl)!=null?
f:""}else a="https://www.gstatic.com/buganizer/img/v3/logo_light.svg"}this.logoLight=a;if(this.isGlobalBuganizer)d="https://www.gstatic.com/buganizer/img/v3/logo_dark.svg";else{var h;d=(h=this.logoLight)!=null?h:""}this.logoDark=d}};ZM.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:""};ZM.\u0275fac=function(a){return new (a||ZM)};
ZM.\u0275cmp=y({type:ZM,selectors:[["b-tracker-chip"]],inputs:{tracker:"tracker",compactMode:"compactMode",showHovercard:"showHovercard",isGlobalBuganizer:"isGlobalBuganizer"},standalone:!1,features:[ov],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,vUa,15,12);a&2&&G(b.tracker||b.isGlobalBuganizer?0:-1)},dependencies:[DI,JI,oG,Jx],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 $M=function(){var a=this;this.activeSession=r(Bs);this.trackerFridge=r(cG);this.compactMode=!1;this.showHovercard=!0;this.trackerId$=new Kn(void 0);this.tracker$=this.trackerId$.pipe(xg(function(b){return b?a.trackerFridge.watch(b).pipe(hg(function(){return Nf(void 0)})):Nf(void 0)}));this.isCurrentTracker$=this.trackerId$.pipe(C(function(b){var c,d=(c=a.activeSession.getTracker())==null?void 0:c.trackerId;return d?d===b:!b}))};$M.prototype.ngOnChanges=function(a){a.trackerId&&this.trackerId$.next(this.trackerId)};
nd.Object.defineProperties($M.prototype,{isGlobalBuganizer:{configurable:!0,enumerable:!0,get:function(){return!this.trackerId$.value}}});$M.\u0275fac=function(a){return new (a||$M)};
$M.\u0275cmp=y({type:$M,selectors:[["b-tracker-chip-smart"]],inputs:{trackerId:"trackerId",compactMode:"compactMode",showHovercard:"showHovercard"},standalone:!1,features:[ov],decls:2,vars:3,consts:[[3,"tracker","compactMode","showHovercard","isGlobalBuganizer"]],template:function(a,b){a&1&&(F(0,wUa,2,6,"b-tracker-chip",0),U(1,"async"));a&2&&G(V(1,1,b.isCurrentTracker$)===!1?0:-1)},dependencies:[ZM,Tv],encapsulation:2,changeDetection:0});var aN=function(){this.showFolderSpecialIcon=!1;this.mode="default";this.query="";this.selectComponentId=new LE;this.expandComponent=new LE;this.goBack=new LE};aN.prototype.ngOnInit=function(){};aN.prototype.expand=function(a,b){b.preventDefault();b.stopPropagation();this.expandComponent.emit(a)};aN.prototype.back=function(a){a.preventDefault();a.stopPropagation();this.goBack.emit()};aN.\u0275fac=function(a){return new (a||aN)};
aN.\u0275cmp=y({type:aN,selectors:[["component-row"]],inputs:{showFolderSpecialIcon:"showFolderSpecialIcon",componentOption:"componentOption",mode:"mode",query:"query"},outputs:{selectComponentId:"selectComponentId",expandComponent:"expandComponent",goBack:"goBack"},standalone:!1,decls:11,vars:7,consts:[[1,"container"],["svgIcon","history"],"type;button;mat-icon-button;;aria-label;Return to search results;matTooltip;Return to search results".split(";"),["type","button","mat-icon-button","",1,"expand-button",
3,"matTooltip"],[1,"content"],[1,"margin-s-right"],[1,"archived-indicator"],[3,"accessLevel","labelOnlyMode"],[3,"trackerId","showHovercard"],["type","button","mat-icon-button","","aria-label","Return to search results","matTooltip","Return to search results",3,"mousedown"],["svgIcon","back"],["type","button","mat-icon-button","",1,"expand-button",3,"mousedown","matTooltip"],[3,"svgIcon"],[1,"subtle-link",3,"innerHtml"],[1,"subtle-link",3,"mousedown","innerHtml"],[1,"subtle-link"],[1,"subtle-link",
3,"mousedown"]],template:function(a,b){a&1&&(J(0,"div",0),F(1,xUa,1,0,"mat-icon",1)(2,yUa,2,0,"button",2)(3,zUa,2,3,"button",3),J(4,"div",4)(5,"span",5),F(6,EUa,2,0)(7,GUa,1,1),F(8,HUa,2,0,"span",6),K(),M(9,"b-component-access-level-indicator",7)(10,"b-tracker-chip-smart",8),K()());a&2&&(x(),G(!0===(b.mode=="recent"||b.mode=="popular")?1:!0===(b.mode=="tree")?2:3),x(5),G(b.mode!=="leaf"?6:7),x(2),G(b.componentOption.archived?8:-1),x(),I("accessLevel",b.componentOption.accessLimit==null?null:b.componentOption.accessLimit.accessLevel)("labelOnlyMode",
!0),x(),I("trackerId",b.componentOption.trackerId)("showHovercard",!1))},dependencies:[FC,oG,Kx,zG,xG,$M,SM,kL,qNc],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 bN=function(a,b,c,d,e,f,h,k,q,v){var A=this;this.userApi=a;this.userAccess=b;this.componentApi=c;this.componentActions=d;this.teamsService=e;this.analytics=f;this.destroyed$=h;this.config=k;this.trackerHelpers=q;this.activeSession=v;this.includeArchived=!1;this.searchQuery$=new Kn("");this.debouncedSearchQuery$=this.searchQuery$.pipe(kg(250));this.state$=new Kn("default");this.listUpdated$=new tg;this.componentsLoading=this.teamsLoading=!1;this.teamScope$=new Kn(void 0);this.componentOptions=
[];this.childTeamsMap=new Map;this.componentCountMap=new Map;this.popularComponents=[];this.rawRecentComponents=[];this.recentComponents=[];this.myTeams$=new Kn([]);this.showAllTeams$=new Kn(!1);this.showAllTeamsDistinct$=this.showAllTeams$.pipe(og());this.teamOptions$=new Kn([]);this.filteredTeamOptions$=Uf([this.teamOptions$,this.showAllTeamsDistinct$]).pipe(C(function(E){var H=l(E);E=H.next().value;return H.next().value?E:E.slice(0,5)}));this.hasHiddenTeams$=Uf([this.teamOptions$,this.showAllTeamsDistinct$]).pipe(C(function(E){var H=
l(E);E=H.next().value;H=H.next().value;return E.length>5&&!H}));this.newChildTeams$=new Kn([]);this.teamsDisplayed$=dg(this.myTeams$,this.teamOptions$,this.newChildTeams$,this.teamScope$.pipe(C(function(E){return E?[E]:[]}))).pipe(C(function(E){return E.map(function(H){return H.id})}));this.requestIndex=0;this.unseenTeamChildTeamsMap$=this.teamsDisplayed$.pipe(C(function(E){return E.filter(function(H){return!A.childTeamsMap.has(H)})}),eg(function(E){return E.length>0}),xg(function(E){return A.teamsService.getChildTeams(E)}),
C(LUa));this.unseenTeamComponentCountMap$=this.teamsDisplayed$.pipe(C(function(E){return E.filter(function(H){return!A.componentCountMap.has(H)})}),eg(function(E){return E.length>0}),xg(function(E){return kzc(A.teamsService,E)}));this.componentIdSelected$=new sg(1);this.lastProcessedIndex=-1};
bN.prototype.init=function(a,b){var c=this;a=a===void 0?!1:a;$Pc(this,b===void 0?null:b);Uf([this.debouncedSearchQuery$.pipe(vg(a?1:0)),this.state$]).pipe(yg(this.destroyed$)).subscribe(function(d){var e=l(d);d=e.next().value;e=e.next().value;c.showAllTeams$.next(!1);e==="default"?d?c.state$.next("global"):(c.componentOptions=[],c.teamOptions$.next([]),c.listUpdated$.next()):e==="global"?d?(c.includeTeamData()&&aQc(c,d),bQc(c,d)):c.state$.next("default"):e==="team_scope"?c.teamScope$.value&&(c.teamOptions$.next([]),
bQc(c,"teamid:"+c.teamScope$.value.id+" "+d)):e==="component_scope"&&c.componentScope&&cQc(c,c.componentScope.id)});this.debouncedSearchQuery$.pipe(Ag(this.state$),yg(this.destroyed$)).subscribe(function(d){var e=l(d);d=e.next().value;e.next().value==="component_scope"&&c.state$.next(d?"global":"default")});this.unseenTeamChildTeamsMap$.pipe(yg(this.destroyed$)).subscribe(function(d){d=l(d.entries());for(var e=d.next();!e.done;e=d.next()){var f=l(e.value);e=f.next().value;f=f.next().value;c.childTeamsMap.set(e,
f)}});this.unseenTeamComponentCountMap$.pipe(yg(this.destroyed$)).subscribe(function(d){d=l(d.entries());for(var e=d.next();!e.done;e=d.next()){var f=l(e.value);e=f.next().value;f=f.next().value;c.componentCountMap.set(e,f)}})};bN.prototype.includeTeamData=function(){return this.config.includeTeamData&&!Eq(this.activeSession)};
var $Pc=function(a,b){b=b===void 0?null:b;a.componentsLoading=!0;var c=Promise.resolve(b!==null?BD(a.userAccess,"reader","components/"+b.componentId+"/issueDefaults"):!1).then(function(e){e&&a.componentApi.getPopularRoutingTargets(b.componentId).then(function(f){f=f.filter(function(h){return a.filterTrackerComponents(h)});f=dQc(a,f);a.popularComponents=f;a.listUpdated$.next()})}),d=a.userApi.getRecentComponents().then(function(e){e=e.filter(function(f){return a.filterTrackerComponents(f)});e=dQc(a,
e);a.rawRecentComponents=e});Promise.all([c,d]).finally(function(){a.recentComponents=a.rawRecentComponents.filter(function(e){return!a.popularComponents.some(function(f){return e.id===f.id})});a.listUpdated$.next();a.componentsLoading=!1});a.includeTeamData()&&(a.teamsLoading=!0,VF(a.teamsService,"").pipe(yg(a.destroyed$)).subscribe(function(e){a.myTeams$.next(e.map(IUa));a.listUpdated$.next();a.teamsLoading=!1},function(){a.teamsLoading=!1}))};
bN.prototype.filterTrackerComponents=function(a){var b;return!Eq(this.activeSession)||a.trackerId===((b=this.activeSession.getTracker())==null?void 0:b.trackerId)};bN.prototype.selectOption=function(a){a.type==="component"?mWa(this,a.id):a.type==="team"?hVa(this,a):console.warn("invalid option selected")};
var mWa=function(a,b){a.analytics.trackEvent("componentPicker","autocomplete-select",eQc(a,b));var c=new Map;c.set("combined",[].concat(p(a.popularComponents),p(a.recentComponents)));c.set("popular",a.popularComponents);c.set("recent",a.rawRecentComponents);c=l(c);for(var d=c.next();!d.done;d=c.next()){var e=l(d.value);d=e.next().value;e=e.next().value;for(var f=null,h=0;h<e.length;h++){var k=void 0;if(b===((k=e[h])==null?void 0:k.id)){f=h+1;break}}f!=null?a.analytics.trackEvent("componentPicker",
"suggestionSuccess",d+"Success"):(h=void 0,((h=e)==null?void 0:h.length)>0?a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"FailureNoMatch"):a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"FailureNoSuggestion"));f!=null&&(f===1&&a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"N1"),f<=5&&a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"N5"),f<=10&&a.analytics.trackEvent("componentPicker","suggestionSuccess",d+"N10"))}a.componentIdSelected$.next(b);
a.state$.next("global")},eQc=function(a,b){if(a.state$.value==="default")return a.popularComponents.some(function(e){return b===e.id})?"popular-component":"recent-component";if(a.state$.value==="global")return"global-search";if(a.state$.value==="component_scope")return"component-scope";if(a.state$.value==="team_scope"){var c,d=(c=a.teamScope$.value)==null?void 0:c.id;return a.myTeams$.value.some(function(e){return e.id===d})?"my-team":"team-scope"}return""};
bN.prototype.expandComponent=function(a){this.componentScope=a;this.state$.next("component_scope")};
var VVa=function(a,b){a.componentActions.get(b).then(function(c){var d=rs(a.trackerHelpers,c.componentPathInfo);a.componentScope=KUa(c,d);a.state$.next("component_scope")})},UVa=function(a){a.componentScope=void 0;a.searchQuery$.value?a.state$.next("global"):a.state$.next("default")},hVa=function(a,b){a.teamScope$.next(Object.assign({},b,{expanded:!1}));a.state$.next("team_scope");a.searchQuery$.next("");b.pathNames||iVa(a,b.id)},iVa=function(a,b){a.teamsLoading=!0;VF(a.teamsService,b).pipe(yg(a.destroyed$)).subscribe(function(c){c=
c.map(IUa);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})},fQc=function(a){if(a.teamScope$.value&&a.teamScope$.value.pathIds&&!(a.teamScope$.value.pathIds.length<2)){var b=a.teamScope$.value.pathIds;iVa(a,b[b.length-2])}};bN.prototype.getChildTeams=function(a){var b;return(b=this.childTeamsMap.get(a))!=null?b:[]};
bN.prototype.hasNoComponent=function(a){return this.componentCountMap.has(a)?this.componentCountMap.get(a)===0:!1};
var KVa=function(a,b){b.expanded=!1;a.listUpdated$.next()},LVa=function(a,b){b.expanded=!0;a.listUpdated$.next();a.newChildTeams$.next(a.getChildTeams(b.id))},OVa=function(a){a.teamScope$.next(void 0);a.searchQuery$.next("");a.state$.next("default")},aQc=function(a,b){b.length>1&&(a.teamsLoading=!0,VF(a.teamsService,b).pipe(yg(a.destroyed$)).subscribe(function(c){a.teamOptions$.next(c.map(IUa));a.teamsLoading=!1;a.listUpdated$.next()},function(){a.teamsLoading=!1}))},bQc=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=dQc(a,d));a.listUpdated$.next()}).finally(function(){a.componentsLoading=!1})}},cQc=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=dQc(a,d),a.listUpdated$.next())}).finally(function(){a.componentsLoading=
!1})},dQc=function(a,b){return b.map(function(c){var d=rs(a.trackerHelpers,c.componentPathInfo);return KUa(c,d)})};var gQc=0,cN=function(){this.changeDetectorRef=r(Hv);this.elementRef=r(Te);this.active=!1;this.id="b-component-picker-option-"+gQc++};cN.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};cN.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};cN.\u0275fac=function(a){return new (a||cN)};
cN.\u0275dir=vf({type:cN,selectors:[["","listOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(Rg("id",b.id),uh("active",b.active))},inputs:{data:"data",listOrder:"listOrder"},standalone:!1});var dN=function(){this.query="";this.hasNoComponent=this.compact=this.allowSegmentSelection=!1;this.selectTeamId=new LE};dN.prototype.getLogoUrl=function(){return"https://moma-teams-photos.corp.google.com/logo/"+this.teamOption.id};dN.prototype.ngOnInit=function(){};dN.\u0275fac=function(a){return new (a||dN)};
dN.\u0275cmp=y({type:dN,selectors:[["team-row"]],inputs:{teamOption:"teamOption",query:"query",allowSegmentSelection:"allowSegmentSelection",compact:"compact",hasNoComponent:"hasNoComponent"},outputs:{selectTeamId:"selectTeamId"},standalone:!1,decls:5,vars:7,consts:[[1,"container"],["alt",""],[1,"content"],[1,"name-row"],[1,"path"],[1,"team-name",3,"innerHtml"],[1,"no-component-label"],[1,"subtle-link"],[1,"subtle-link",3,"mousedown"],[1,"team-name"]],template:function(a,b){a&1&&(J(0,"div",0),F(1,
MUa,1,1,"img",1),J(2,"div",2),F(3,OUa,4,5,"div",3),F(4,WUa,3,0,"div",4),K()());a&2&&(uh("no-component",b.hasNoComponent)("compact",b.compact),x(),G(b.compact?-1:1),x(2),G(b.compact?-1:3),x(),G(b.teamOption.pathNames&&b.teamOption.pathNames.length?4:-1))},dependencies:[kL],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 hQc=new le("GMAT_PROGRESS_BAR_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var iQc=new zK(3);var jQc=new le("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");new le("mat-progress-bar-location",{providedIn:"root",factory:ZUa});
var eN=function(){var a=this;this._elementRef=r(Te);this._ngZone=r(Ph);this._changeDetectorRef=r(Hv);this._renderer=r(Ji);this._defaultColor="primary";this._bufferValue=this._value=0;this.animationEnd=new nq;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=Lpa(),c=r(jQc,{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)};g=eN.prototype;g.ngAfterViewInit=function(){var a=this;this._ngZone.runOutsideAngular(function(){a._cleanupTransitionEnd=a._renderer.listen(a._elementRef.nativeElement,"transitionend",a._transitionendHandler)})};
g.ngOnDestroy=function(){var a;(a=this._cleanupTransitionEnd)==null||a.call(this)};g._getPrimaryBarTransform=function(){return"scaleX("+(this._isIndeterminate()?1:this.value/100)+")"};g._getBufferBarFlexBasis=function(){return(this.mode==="buffer"?this.bufferValue:100)+"%"};g._isIndeterminate=function(){return this.mode==="indeterminate"||this.mode==="query"};
nd.Object.defineProperties(eN.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()}}});eN.\u0275fac=function(a){return new (a||eN)};
eN.\u0275cmp=y({type:eN,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&&(Lg("aria-valuenow",b._isIndeterminate()?null:b.value)("mode",b.mode),vh("mat-"+b.color),uh("_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",ai],bufferValue:[2,"bufferValue","bufferValue",ai],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&&(Sg(0,"div",0),Ug(1,"div",1),F(2,YUa,1,0,"div",2),Tg(),Sg(3,"div",3),Ug(4,"span",4),Tg(),Sg(5,"div",5),Ug(6,"span",4),Tg());a&2&&(x(),th("flex-basis",b._getBufferBarFlexBasis()),x(),G(b.mode==="buffer"?2:-1),x(),th("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{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");background-repeat:repeat-x;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering calc(250ms*var(--mat-progress-bar-animation-multiplier)) infinite linear;background-color:var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant))}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 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 fN=function(){};fN.\u0275fac=function(a){return new (a||fN)};fN.\u0275mod=uf({type:fN});fN.\u0275inj=Dd({imports:[px]});var gN=function(a,b){var c=this;this.options=a;this.progressbar=b;this.destroyed=new tg;this.labelElement=document.createElement("label");if(a.disableGmatStyle)throw Error("Mc");this.labelElement.classList.add("cdk-visually-hidden");this.labelElement.classList.add("gmat-mdc-progress-bar-accessible-label");this.hasAriaLabel||XUa(b._elementRef.nativeElement).pipe(yg(this.destroyed)).subscribe(function(d){c.writeLabelSpan(d[0],d[1])})};gN.prototype.ngOnInit=function(){this.hasAriaLabel||this.initializeLabelSpan()};
gN.prototype.ngOnDestroy=function(){this.labelElement.remove();this.destroyed.next();this.destroyed.complete()};gN.prototype.initializeLabelSpan=function(){this.progressbar._elementRef.nativeElement.insertAdjacentElement("afterend",this.labelElement);var a=this.progressbar.mode==="indeterminate"||this.progressbar.mode==="query"?"indeterminate":this.progressbar.value.toString(),b,c=(b=this.ariaLabel)!=null?b:"";this.writeLabelSpan(c,a)};
gN.prototype.writeLabelSpan=function(a,b){a=b==="indeterminate"?a:a+" "+iQc.format(Number(b)/100);this.labelElement.textContent=a};nd.Object.defineProperties(gN.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.progressbar._elementRef.nativeElement.getAttribute("aria-label")}},hasAriaLabel:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.ariaLabel)==null||!a.length)}}});gN.\u0275fac=function(a){return new (a||gN)(of(hQc),of(eN,10))};
gN.\u0275dir=vf({type:gN,selectors:[["mat-progress-bar"]],hostAttrs:[1,"gmat-mdc-progress-bar"],hostVars:2,hostBindings:function(a,b){a&2&&Lg("aria-hidden",b.hasAriaLabel?null:!0)("tabindex",null)},standalone:!1});var kQc=["container"],lQc=["inputBox"],mQc=["dropdownTemplate"],nQc=["dropdown"],nVa=function(a){return{mode:"popular",$implicit:a}},rVa=function(a){return{mode:"recent",$implicit:a}},EVa=function(a){return{mode:"default",$implicit:a}},yVa=function(a){return[a]},xVa=function(a,b){return{team:a,level:0,order:b}},SVa=function(a,b){return{mode:"default",$implicit:a,teamScope:b}},PVa=function(){return[0]},HVa=function(a){return[0,a]},YVa=function(a){return{mode:"leaf",$implicit:a}},dWa=function(a,b,c){return{team:a,
level:b,order:c}},oQc=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],pQc=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}],hN=function(){Z.apply(this,arguments);this.overlay=r(lx);this.viewContainerRef=r(fh);this.userApi=r(bD);this.componentApi=r(zB);this.componentActions=r(WM);this.teamsService=r(SF);this.userAccess=r(AD);this.analytics=
r(RE);this.activeSession=r(Bs);this.trackerHelpers=r(iK);this.cdr=r(Hv);this.placeholder="";this.isRequired=!1;this.ariaLabel="";this.checkAdminAccess=this.showOverlayAbove=!1;this.accessCheckComplete=new LE;this.shouldFocus=!1;this.touched=new LE;this.selectedComponentChange=new LE;this.dropdownClosed=new LE;this.checkingAccess=this.hasAccess=!1;this.isExternal=this.activeSession.isExternalSession();this.searchState=new bN(this.userApi,this.userAccess,this.componentApi,this.componentActions,this.teamsService,
this.analytics,this.destroyed$,{includeTeamData:!this.isExternal},this.trackerHelpers,this.activeSession);this.componentLoading=this.isDropdownOpen=!1};Y(hN,Z);hN.\u0275dir=Z.\u0275dir;
hN.prototype.ngOnInit=function(){var a=this;this.searchState.init(!!this.selectedComponent,this.selectedComponent);this.searchState.componentIdSelected$.pipe(yg(this.destroyed$)).subscribe(function(b){a.componentLoading=!0;a.componentActions.get(b).then(function(c){a.selectedComponent=c;qQc(a);a.componentLoading=!1;a.close(!0);a.selectedComponentChange.emit(c)})},function(){a.componentLoading=!1});dg(this.searchState.debouncedSearchQuery$,this.searchState.state$).pipe(yg(this.destroyed$)).subscribe(function(){a.clearActiveItem()})};
hN.prototype.isLoading=function(){return this.componentLoading||this.searchState.componentsLoading||this.searchState.teamsLoading};
var qQc=function(a){if(a.selectedComponent){var b=rs(a.trackerHelpers,a.selectedComponent.componentPathInfo);b=KUa(a.selectedComponent,b);a.searchState.searchQuery$.next(b.componentPath.length?b.componentPath[b.componentPath.length-1].pathText:"")}else a.searchState.searchQuery$.next("")},rQc=function(a){if(a.dropdown&&a.keyManager&&a.keyManager.activeItem){var b=a.keyManager.activeItem.elementRef.nativeElement,c=b.offsetTop;b=b.offsetHeight;var d=a.dropdown.nativeElement.scrollTop,e=a.dropdown.nativeElement.offsetHeight;
a.dropdown.nativeElement.scrollTop=c<d?c:c+b>d+e?Math.max(0,c-e+b):d}};g=hN.prototype;g.ngOnChanges=function(a){a.selectedComponent&&(qQc(this),this.checkAdminAccess&&this.selectedComponent&&sQc(this,this.selectedComponent))};g.ngOnDestroy=function(){this.close();Z.prototype.ngOnDestroy.call(this)};
g.ngAfterViewInit=function(){var a=this;this.keyManager=Iw(Jw(new Nw(this.listOptions)));this.searchState.listUpdated$.pipe(yg(this.destroyed$)).subscribe(function(){a.cdr.markForCheck()});this.listOptions.changes.pipe(yg(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(wWa);b=[].concat(p(c),p(b));a.listOptions.reset(b);var d;if((d=a.keyManager)==null?0:d.activeItem)d=b.indexOf(a.keyManager.activeItem),
d>-1&&d!==a.keyManager.activeItemIndex&&a.keyManager.setActiveItem(d)});this.shouldFocus&&setTimeout(function(){a.inputBox.nativeElement.focus()})};g.open=function(){this.isDropdownOpen||(this.isDropdownOpen=!0,this.dropdownOverlayRef=this.createOverlay(),this.attach())};
g.close=function(a){a=a===void 0?!1:a;this.isDropdownOpen&&this.dropdownOverlayRef&&(this.searchState.searchQuery$.value||(this.selectedComponent=void 0,this.selectedComponentChange.emit(void 0)),this.searchState.state$.value==="team_scope"&&OVa(this.searchState),this.isDropdownOpen=!1,this.dropdownOverlayRef.dispose(),this.dropdownOverlayRef=void 0,this.clearActiveItem(),this.dropdownClosed.emit(),this.analytics.trackEvent("componentPicker","close",a?"with-selection":"without-selection"))};
g.clearQuery=function(){this.searchState.searchQuery$.next("");this.isDropdownOpen||this.inputBox.nativeElement.focus()};var tQc=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};
hN.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),rQc(this)):(this.open(),setTimeout(function(){var d;(d=b.keyManager)==null||cjc(d);rQc(b)}));break;case "ArrowDown":this.isDropdownOpen?(this.keyManager.onKeydown(a),rQc(this)):(this.open(),setTimeout(function(){var d;(d=b.keyManager)!=null&&d._setActiveItemByIndex(0,1);rQc(b)}));break;case "Enter":this.keyManager.activeItem&&
(this.searchState.teamScope$.value===this.keyManager.activeItem.data?OVa(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(),LVa(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?KVa(this.searchState,this.keyManager.activeItem.data):fQc(this.searchState));this.searchState.state$.value==="component_scope"&&(a.preventDefault(),UVa(this.searchState));break;case "Backspace":case "Delete":this.keyManager.activeItem&&this.searchState.teamScope$.value===this.keyManager.activeItem.data&&(OVa(this.searchState),a.preventDefault());break;default:this.touched.emit(),
this.isDropdownOpen||this.open()}};var Cq=function(a){a.preventDefault();a.stopPropagation()},sQc=function(a,b){a.checkingAccess=!0;a.hasAccess=!1;BD(a.userAccess,"admin","components/"+b.componentId).then(function(c){a.checkingAccess=!1;a.accessCheckComplete.emit(c);a.hasAccess=c})};g=hN.prototype;
g.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy(),c;return this.overlay.create(new Ii({positionStrategy:a,scrollStrategy:b,panelClass:["b-team-component-picker-dropdown","gmat-elevation-z3"],width:(c=this.container.nativeElement)==null?void 0:c.offsetWidth}))};g.attach=function(){var a=new gx(this.dropdownTemplateRef,this.viewContainerRef),b;(b=this.dropdownOverlayRef)==null||b.attach(a);var c;(c=this.dropdownOverlayRef)==null||c.updatePosition()};
g.getPositionStrategy=function(){var a=this.showOverlayAbove?pQc:oQc;return Yw(wjc($w(dx(this.overlay.position(),this.container),!1),!1),a)};g.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};g.clearActiveItem=function(){this.keyManager&&this.keyManager.activeItem&&(this.keyManager.setActiveItem(-1),this.dropdown&&(this.dropdown.nativeElement.scrollTop=0))};
nd.Object.defineProperties(hN.prototype,{includeArchived:{configurable:!0,enumerable:!0,set:function(a){this.searchState.includeArchived=a}}});hN.\u0275fac=function(){var a;return function(b){return(a||(a=Re(hN)))(b||hN)}}();
hN.\u0275cmp=y({type:hN,selectors:[["b-team-component-picker"]],viewQuery:function(a,b){a&1&&(hh(kQc,7),hh(lQc,7),hh(mQc,7),hh(nQc,5),hh(cN,5));if(a&2){var c;lh(c=mh())&&(b.container=c.first);lh(c=mh())&&(b.inputBox=c.first);lh(c=mh())&&(b.dropdownTemplateRef=c.first);lh(c=mh())&&(b.dropdown=c.first);lh(c=mh())&&(b.listOptions=c)}},inputs:{placeholder:"placeholder",isRequired:"isRequired",ariaLabel:"ariaLabel",showOverlayAbove:"showOverlayAbove",selectedComponent:"selectedComponent",checkAdminAccess:"checkAdminAccess",
shouldFocus:"shouldFocus",includeArchived:"includeArchived"},outputs:{accessCheckComplete:"accessCheckComplete",touched:"touched",selectedComponentChange:"selectedComponentChange",dropdownClosed:"dropdownClosed"},standalone:!1,features:[Bg,ov],decls:13,vars:10,consts:[["container",""],["inputBox",""],["dropdownTemplate",""],["teamTreeItem",""],["componentList",""],["dropdown",""],[1,"container","pseudo-input"],["type","text","role","combobox","autocomplete","off","spellcheck","false","aria-autocomplete",
"list",1,"override",3,"ngModelChange","keydown","click","focus","blur","ngModel","placeholder","required"],"type;button;mat-icon-button;;tabindex;-1;matTooltip;Clear component;aria-label;Clear component".split(";"),["type","button","mat-icon-button","","tabindex","-1","matTooltip","Clear component","aria-label","Clear component",3,"mousedown"],["svgIcon","clear"],[1,"bv2-picker-checking"],[1,"bv2-picker-error"],["target","_blank",3,"href"],[1,"dropdown",3,"mousedown"],[1,"progress-bar-container"],
["mode","indeterminate"],[1,"dropdown-content"],["role","tree"],[1,"section-header"],["role","treeitem","listOption","",1,"list-option",3,"data"],["role","treeitem","listOption","",1,"list-option",3,"mousedown","data"],[3,"selectTeamId","teamOption","query","hasNoComponent"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","tabindex","-1",1,"unstyled","expand-team-line-button"],["type","button","tabindex","-1",1,"unstyled","expand-team-line-button",3,"mousedown"],["svgIcon","arrow-down"],
[1,"team-scope-container"],["listOption","",1,"team-scope",3,"data","listOrder"],[3,"selectTeamId","teamOption","query","compact","allowSegmentSelection"],["type","button","tabindex","-1","mat-icon-button","","matTooltip","Clear team filter",1,"small","clear-filter",3,"mousedown"],["svgIcon","close"],[1,"team-scope-child-teams"],[1,"component-scope-container"],[1,"title"],["mode","tree",3,"goBack","selectComponentId","componentOption"],["role","treeitem","listOption","",1,"list-option",3,"mousedown",
"listOrder","data"],[1,"team-row-container"],["type","button","mat-icon-button","","aria-label","Show child teams",1,"arrow-button"],["type","button","mat-icon-button","","aria-label","Show child teams",1,"arrow-button",3,"mousedown"],["svgIcon","arrow-dropdown"],["role","listbox"],["role","option","listOption","",1,"list-option",3,"data"],["role","option","listOption","",1,"list-option",3,"mousedown","data"],[3,"selectComponentId","expandComponent","showFolderSpecialIcon","componentOption","query",
"mode"],[1,"empty-list","muted"],["svgIcon","close",1,"icon-xs","valign-middle"],["href","http://go/buganizer:component-mapping#associate","target","_blank"],["svgIcon","pop-out",1,"icon-xs"]],template:function(a,b){if(a&1){var c=t();J(0,"div",6,0)(2,"input",7,1);U(4,"async");N("ngModelChange",function(d){u(c);return w(b.searchState.searchQuery$.next(d))})("keydown",function(d){u(c);return w(b.handleKeydown(d))})("click",function(){u(c);b.open();return w(b.touched.emit())})("focus",function(){u(c);
return w(b.open())})("blur",function(){u(c);return w(b.close())});K();F(5,$Ua,2,0,"button",8);K();F(6,dVa,3,1,"div");D(7,aWa,6,2,"ng-template",null,2,Lh)(9,gWa,5,11,"ng-template",null,3,Lh)(11,vWa,2,1,"ng-template",null,4,Lh)}a&2&&(a=Q(3),x(2),I("ngModel",V(4,8,b.searchState.searchQuery$))("placeholder",b.placeholder)("required",b.isRequired),Lg("aria-label",b.ariaLabel+(b.selectedComponent?" Component selected. Change.":" Choose component"))("aria-expanded",b.isDropdownOpen)("aria-activedescendant",
tQc(b)),x(3),G(a.value?5:-1),x(),G(b.checkAdminAccess?6:-1))},dependencies:[Sv,FC,Ui,dy,vy,ky,oG,Kx,pL,zG,xG,gN,eN,dN,aN,cN,Tv],styles:[".container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:4px;min-width:380px;height:28px}.container[_ngcontent-%COMP%]:focus-within{border:2px solid;border-color:#1a73e8;border-color:var(--primary)}input[_ngcontent-%COMP%]{width:100%;border:0;outline:none;background-color:#fff;background-color:var(--input-field-bg);color:#202124;color:var(--text-high-contrast)}input[_ngcontent-%COMP%]:focus{border:0;outline:none}.dropdown[_ngcontent-%COMP%]{width:100%;max-height:500px;overflow:auto}.dropdown-content[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:5px 0 10px}.progress-bar-container[_ngcontent-%COMP%]{height:8px;border-radius:4px;overflow:hidden}mat-divider[_ngcontent-%COMP%]{width:100%;margin-top:16px;margin-bottom:16px}  .b-team-component-picker-dropdown{border-radius:4px;background-color:#fff;background-color:var(--surface-default)}.section-header[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;padding:2px 14px}.section-header[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{margin-left:auto}.list-option[_ngcontent-%COMP%]{cursor:pointer;padding:0 10px}.list-option[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.04);background-color:var(--hover-bg)}.list-option.active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}.team-row-container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.team-row-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:4px}team-row[_ngcontent-%COMP%]{width:100%}.team-scope[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;padding:2px 10px}.team-scope[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-left:auto}.team-scope.active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.16);background-color:var(--active-bg)}.team-scope.active[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{border-color:#1a73e8;border-color:var(--primary-c600)}.team-scope.active[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]     .mat-mdc-button-persistent-ripple{background-color:#1a73e8;background-color:var(--primary-c600);opacity:.12}.team-scope-container[_ngcontent-%COMP%]{margin-bottom:10px}.expand-team-line-button[_ngcontent-%COMP%]{cursor:pointer;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;margin-top:4px;margin-left:12px;color:#1a73e8;color:var(--link)}.expand-team-line-button[_ngcontent-%COMP%]   mat-icon.expanded[_ngcontent-%COMP%]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.expand-team-line-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:6px}.mat-mdc-icon-button[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon);width:20px;height:20px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;line-height:20px}.mat-mdc-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{--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 iN=function(){this.warningChunks=[]};iN.prototype.ngOnInit=function(){var a=this.warningText,b=BWa(a,"EXTERNAL_PUBLIC")||BWa(a,"EXTERNAL_PARTNER");this.warningChunks=b?[{text:a.substring(0,b.startOfMatch)},{accessLevel:b.accessLevel},{text:a.substring(b.endOfMatch)}]:[{text:a}]};iN.\u0275fac=function(a){return new (a||iN)};
iN.\u0275cmp=y({type:iN,selectors:[["b-component-move-warning-content"]],inputs:{warningText:"warningText"},standalone:!1,decls:3,vars:0,consts:[[3,"accessLevel"]],template:function(a,b){a&1&&(J(0,"div"),Pg(1,zWa,3,1,"span",null,Og),K());a&2&&(x(),Qg(b.warningChunks))},dependencies:[SM],encapsulation:2});var AWa=new Map([["EXTERNAL_PUBLIC","visible to public users"],["EXTERNAL_PARTNER","visible to external partners"]]);var uQc=["input"],vQc=["formField"],wQc=function(a,b){this.source=a;this.value=b},xQc={provide:Yx,useExisting:$d(function(){return jN}),multi:!0},yQc=new le("MatRadioGroup"),zQc=new le("mat-radio-default-options",{providedIn:"root",factory:CWa}),jN=function(){this._changeDetector=r(Hv);this._value=null;this._name=r(Fi).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 nq;this._disabledInteractive=!1};g=jN.prototype;g._checkSelectedRadioButton=function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)};g.ngAfterContentInit=function(){var a=this;this._isInitialized=!0;this._buttonChanges=this._radios.changes.subscribe(function(){a.selected&&!a._radios.find(function(b){return b===a.selected})&&(a._selected=null)})};g.ngOnDestroy=function(){var a;(a=this._buttonChanges)==null||a.unsubscribe()};g._touch=function(){if(this.onTouched)this.onTouched()};
g._updateRadioButtonNames=function(){var a=this;this._radios&&this._radios.forEach(function(b){b.name=a.name;b._markForCheck()})};g._updateSelectedRadioFromValue=function(){var a=this,b=this._selected!==null&&this._selected.value===this._value;this._radios&&!b&&(this._selected=null,this._radios.forEach(function(c){c.checked=a.value===c.value;c.checked&&(a._selected=c)}))};g._emitChangeEvent=function(){this._isInitialized&&this.change.emit(new wQc(this._selected,this._value))};
g._markRadiosForCheck=function(){this._radios&&this._radios.forEach(function(a){return a._markForCheck()})};g.writeValue=function(a){this.value=a;this._changeDetector.markForCheck()};g.registerOnChange=function(a){this._controlValueAccessorChangeFn=a};g.registerOnTouched=function(a){this.onTouched=a};g.setDisabledState=function(a){this.disabled=a;this._changeDetector.markForCheck()};
nd.Object.defineProperties(jN.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()}}});jN.\u0275fac=function(a){return new (a||jN)};
jN.\u0275dir=vf({type:jN,selectors:[["mat-radio-group"]],contentQueries:function(a,b,c){a&1&&ih(c,kN,5);if(a&2){var d;lh(d=mh())&&(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",$h],required:[2,"required","required",$h],disabledInteractive:[2,"disabledInteractive","disabledInteractive",$h]},outputs:{change:"change"},exportAs:["matRadioGroup"],
features:[Fh([xQc,{provide:yQc,useExisting:jN}])]});
var kN=function(){var a=this;this._elementRef=r(Te);this._changeDetector=r(Hv);this._focusMonitor=r(jw);this._radioDispatcher=r(Uw);this._defaultOptions=r(zQc,{optional:!0});this._ngZone=r(Ph);this._renderer=r(Ji);this.id=this._uniqueId=r(Fi).getId("mat-radio-");this.disableRipple=!1;this.tabIndex=0;this.change=new nq;this._checked=!1;this._value=null;this._removeUniqueSelectionListener=function(){};this._noopAnimations=Ri();this._injector=r(Cg);this._onInputClick=function(f){a.disabled&&a.disabledInteractive&&
f.preventDefault()};r(Di).load(wx);var b=r(yQc,{optional:!0}),c=r(new pv("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=ai(c,0))};g=kN.prototype;g.focus=function(a,b){b?kw(this._focusMonitor,this._inputElement,b,a):this._inputElement.nativeElement.focus(a)};g._markForCheck=function(){this._changeDetector.markForCheck()};
g.ngOnInit=function(){var a=this;if(this.radioGroup){if(this.checked=this.radioGroup.value===this._value)this.radioGroup.selected=this;this.name=this.radioGroup.name}this._removeUniqueSelectionListener=this._radioDispatcher.listen(function(b,c){b!==a.id&&c===a.name&&(a.checked=!1)})};g.ngDoCheck=function(){this._updateTabIndex()};
g.ngAfterViewInit=function(){var a=this;this._updateTabIndex();this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){!b&&a.radioGroup&&a.radioGroup._touch()});this._ngZone.runOutsideAngular(function(){a._cleanupClick=a._renderer.listen(a._inputElement.nativeElement,"click",a._onInputClick)})};g.ngOnDestroy=function(){var a;(a=this._cleanupClick)==null||a.call(this);this._focusMonitor.stopMonitoring(this._elementRef);this._removeUniqueSelectionListener()};
g._emitChangeEvent=function(){this.change.emit(new wQc(this,this._value))};g._isRippleDisabled=function(){return this.disableRipple||this.disabled};g._onInputInteraction=function(a){a.stopPropagation();this.checked||this.disabled||(a=this.radioGroup&&this.value!==this.radioGroup.value,this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),a&&this.radioGroup._emitChangeEvent()))};
g._onTouchTargetClick=function(a){this._onInputInteraction(a);if(!this.disabled||this.disabledInteractive){var b;(b=this._inputElement)==null||b.nativeElement.focus()}};g._setDisabled=function(a){this._disabled!==a&&(this._disabled=a,this._changeDetector.markForCheck())};
g._updateTabIndex=function(){var a=this,b=this.radioGroup;var c=b&&b.selected&&!this.disabled?b.selected===this?this.tabIndex:-1:this.tabIndex;if(c!==this._previousTabIndex){var d,e=(d=this._inputElement)==null?void 0:d.nativeElement;e&&(e.setAttribute("tabindex",c+""),this._previousTabIndex=c,Ig(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}))}};
nd.Object.defineProperties(kN.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"}}});kN.\u0275fac=function(a){return new (a||kN)};
kN.\u0275cmp=y({type:kN,selectors:[["mat-radio-button"]],viewQuery:function(a,b){a&1&&(hh(uQc,5),hh(vQc,7,Te));if(a&2){var c;lh(c=mh())&&(b._inputElement=c.first);lh(c=mh())&&(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&&(Lg("id",b.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),uh("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",$h],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==
null?0:ai(a)}],checked:[2,"checked","checked",$h],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",$h],required:[2,"required","required",$h],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",$h]},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();ch();J(0,"div",2,0)(2,"div",3)(3,"div",4);N("click",function(d){u(c);
return w(b._onTouchTargetClick(d))});K();J(4,"input",5,1);N("change",function(d){u(c);return w(b._onInputInteraction(d))});K();J(6,"div",6);M(7,"div",7)(8,"div",8);K();J(9,"div",9);M(10,"div",10);K()();J(11,"label",11);dh(12);K()()}a&2&&(I("labelPosition",b.labelPosition),x(2),uh("mdc-radio--disabled",b.disabled),x(2),I("id",b.inputId)("checked",b.checked)("disabled",b.disabled&&!b.disabledInteractive)("required",b.required),Lg("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),x(5),I("matRippleTrigger",b._rippleTrigger.nativeElement)("matRippleDisabled",b._isRippleDisabled())("matRippleCentered",!0),x(2),I("for",b.inputId))},dependencies:[zx,xx],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 .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:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}\n'],
encapsulation:2,changeDetection:0});var lN=function(){this.data=r(QJ);this.documentationLinks=r(JJ);this.dialogRef=r(KJ);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)};lN.prototype.allow=function(){var a;(a=this.dialogRef)==null||a.close();this.isAllowed&&this.acknowledged&&this.callbacks.allow(this.setLimitViewTrusted)};
lN.prototype.cancel=function(){var a;(a=this.dialogRef)==null||a.close();this.callbacks.cancel()};lN.\u0275fac=function(a){return new (a||lN)};
lN.\u0275cmp=y({type:lN,selectors:[["b-component-move-warning"]],standalone:!1,decls:13,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"component-move-warning-text"],[3,"warningText"],["target","_blank"],["type","button","mat-button","","mat-dialog-close","",1,"medium",3,"click"],["type","button","mat-flat-button","","cdkFocusInitial","",3,"disabled"],["aria-labelledby","issue-access-limit-radio-label",3,"ngModelChange","ngModel"],[1,"margin-s-bottom",3,"value"],[3,"value"],[3,
"ngModelChange","ngModel"],["type","button","mat-flat-button","","cdkFocusInitial","",3,"click","disabled"]],template:function(a,b){a&1&&(J(0,"h1",0),R(1),K(),J(2,"div",1)(3,"div",2),M(4,"b-component-move-warning-content",3),K(),M(5,"br"),J(6,"a",4),R(7,"Learn more"),K(),F(8,FWa,3,1,"div"),K(),J(9,"mat-dialog-actions")(10,"button",5),N("click",function(){return b.cancel()}),R(11," Cancel "),K(),F(12,GWa,2,1,"button",6),K());a&2&&(x(),wh(b.header),x(3),I("warningText",b.warning),x(2),Lg("href",b.learnMore,
hf),x(2),G(b.isExternalMove&&b.isAllowed?8:-1),x(4),G(b.isAllowed?12:-1))},dependencies:[dy,ky,oG,Jx,jN,kN,gM,hM,SJ,UJ,WJ,VJ,iN],styles:["mat-checkbox[_ngcontent-%COMP%] {\n      margin-right: 8px;\n    }"],changeDetection:0});var AQc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,AQc.messageId)};Y(AQc,n);AQc.messageId="b.CompareComponentAccessResponse";var mN=function(){this.executor=r(QA)};mN.prototype.check=function(a,b,c){return this.executor.get({url:"action/compare_component_access/"+a+"/"+b,options:{params:{issueId:c}},responseConstructor:AQc}).then(iBa)};mN.\u0275fac=function(a){return new (a||mN)};mN.\u0275prov=Cd({token:mN,factory:mN.\u0275fac,providedIn:"root"});var nN=function(){this.issueInteractionsTracking=r(KK);this.issueFullFridge=r(TE);this.componentFridge=r(BB);this.butterBar=r(GJ);this.compareComponentAccess=r(mN);this.matDialogService=r(RJ);this.editIssueService=r(RK);this.activeSession=r(Bs)};
nN.prototype.updateComponent=function(a,b){var c=this,d,e,f,h,k,q,v,A,E,H,L,O;return z(function(S){switch(S.nextAddress){case 1:Mq(c.issueInteractionsTracking,a,{label:"changeComponent"});if(!b)return S.return(!1);d=l;return B(S,Promise.all([Rf(c.issueFullFridge.watch(a)),Rf(c.componentFridge.watch(b))]),2);case 2:e=d(S.yieldResult);f=e.next().value;h=e.next().value;k=f;q=h;if(!k)return c.butterBar.showWarning("Could not load issue "+a),S.return(!1);if(!q)return c.butterBar.showWarning("Could not load component "+
b),S.return(!1);v=k.snapshot[0].componentId;return v===b?S.return(!1):B(S,c.compareComponentAccess.check(v,b,a),3);case 3:A=S.yieldResult;E=!!q.trackerId;H=k.snapshot[0].issueAccessLimitLevel==="LIMIT_NONE";L=E&&H;O={allow:!1,setLimitViewTrusted:!1};if(!A.warning){S.jumpTo(4);break}return B(S,BQc(c,A,L),5);case 5:if(O=S.yieldResult,!O.allow)return S.return(!1);case 4:return B(S,c.editIssueService.updateComponent(a,b,A.isExternalMove,O.setLimitViewTrusted),6);case 6:return S.return(!0)}})};
var BQc=function(a,b,c){c=c===void 0?!1:c;return new Promise(function(d){LJ(a.matDialogService.open(lN,{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})})})};nN.\u0275fac=function(a){return new (a||nN)};nN.\u0275prov=Cd({token:nN,factory:nN.\u0275fac,providedIn:"root"});var oN=function(){this.bLocation=r(DH);this.listIssues=Dq.listIssues.makeHref;this.createIssue=Dq.createIssue.makeHref};oN.prototype.viewSavedSearch=function(a,b){return HWa(Dq.viewSavedSearch.routeDeclarationPath,{id:a,params:b})};var CQc=function(a,b){b=b.charAt(0)!=="/"?"/"+b:b;a=a.bLocation.getUrl();a=new Mp(a);b=new Mp(b);return a.getPath()===b.getPath()&&$G(a.queryData_.toString())===$G(b.queryData_.toString())};g=oN.prototype;g.createBookmarkGroup=function(){return Dq.createBookmarkGroup.routeDeclarationPath};
g.viewBookmarkGroup=function(a){return HWa(Dq.viewBookmarkGroup.routeDeclarationPath,{id:a})};g.editBookmarkGroup=function(a){return Gq(Dq.editBookmarkGroup.routeDeclarationPath,{id:a})};g.editSavedSearch=function(a){return Gq(Dq.editSavedSearch.routeDeclarationPath,{id:a})};g.getBaseUrl=function(){var a=this.bLocation.platformLocation.href;a=a.slice(0,a.length-this.bLocation.getUrl().length);a.charAt(a.length-1)==="/"&&(a=a.slice(0,a.length-1));return a};
g.settings=function(a){return a?Gq(Dq.settingsTab.routeDeclarationPath,{id:a,token:":settingsTab?"}):Gq(Dq.settings.routeDeclarationPath)};g.home=function(){return Gq(Dq.home.routeDeclarationPath,{params:void 0})};oN.\u0275fac=function(a){return new (a||oN)};oN.\u0275prov=Cd({token:oN,factory:oN.\u0275fac,providedIn:"root"});var DQc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(DQc,n);g=DQc.prototype;g.getFormattingMode=function(){return pk(this,1)};g.setFormattingMode=function(a){return Jj(this,1,a)};g.getSource=function(){return Rc(this,2)};g.setSource=function(a){return Hj(this,2,a)};g.getIssueId=function(){return xk(this,3)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,3)};g.getIssueId_asString=function(){return Bk(this,3)};
g.setIssueId=function(a){return Xl(this,3,a)};g.getIdPrefix=function(){return Rc(this,4)};g.setIdPrefix=function(a){return Hj(this,4,a)};var pN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,pN.messageId)};Y(pN,n);pN.prototype.getIt=function(){return W(this,DQc,8,Nc)};pN.prototype.setIt=function(a){return X(this,DQc,8,a,Nc)};pN.messageId="b.FormatCommentRequest";var qN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qN,n);qN.prototype.getFormattedComment=function(){return W(this,Am,1)};qN.prototype.setFormattedComment=function(a){X(this,Am,1,a)};qN.prototype.hasFormattedComment=function(){return tk(this,Am,1)};qN.prototype.getMentionsList=function(a){return Sj(this,soc,2,Bj(a))};var rN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,rN.messageId)};Y(rN,n);rN.prototype.getIt=function(){return W(this,qN,3,Nc)};rN.prototype.setIt=function(a){return X(this,qN,3,a,Nc)};rN.messageId="b.FormatCommentResponse";var sN=function(){this.executor=r(PA);this.activeSession=r(Bs)};sN.prototype.format=function(a){return a.formattingMode==="LITERAL"||a.comment.trim()===""?PWa(a):EQc(this,a).pipe(C(OWa))};
var EQc=function(a,b){var c,d=(new DQc).setFormattingMode(Cm(b.formattingMode)).setSource(b.comment).setIssueId((c=Mj(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=Hj(d,5,c);b=Jj(d,6,Knc[b.audience]);return a.executor.post({url:"action/formatComment",body:(new pN).setIt(b),responseConstructor:rN})};
sN.\u0275fac=function(a){return new (a||sN)};sN.\u0275prov=Cd({token:sN,factory:sN.\u0275fac,providedIn:"root"});var FQc=function(){this.documentationLinks=r(JJ)};FQc.\u0275fac=function(a){return new (a||FQc)};
FQc.\u0275cmp=y({type:FQc,selectors:[["b-issue-component-retention-dialog"]],standalone:!1,decls:12,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",3,"href"],["mat-dialog-actions",""],["type","button","mat-stroked-button","",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","color","primary","cdkFocusInitial","",1,"medium","dialog-primary-action",3,"mat-dialog-close"]],template:function(a){a&1&&(J(0,"h1",0),R(1,"Apply component retention settings?"),
K(),J(2,"div",1)(3,"p"),R(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. "),K(),J(5,"a",2),R(6,"Learn more"),K()(),J(7,"div",3)(8,"button",4),R(9," Cancel "),K(),J(10,"button",5),R(11," OK "),K()());a&2&&(x(5),I("href",ys(),hf),x(3),I("mat-dialog-close",!1),x(2),I("mat-dialog-close",!0))},dependencies:[SJ,UJ,WJ,VJ,oG,Jx],encapsulation:2});var GQc=function(){this.documentationLinks=r(JJ);this.data=r(QJ);this.deletionReasons=this.data.deletionReasons;this.attachmentId=this.data.attachmentId};GQc.\u0275fac=function(a){return new (a||GQc)};
GQc.\u0275cmp=y({type:GQc,selectors:[["b-issue-delete-attachment-dialog"]],standalone:!1,decls:15,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["title","Deletion Reasons Help Link","target","_blank",1,"icon-s",3,"href"],[3,"ngModelChange","ngModel"],[3,"value","disabled"],["mat-dialog-actions",""],["type","button","mat-stroked-button","",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","color","primary",1,"medium","dialog-primary-action",3,"mat-dialog-close",
"disabled"]],template:function(a,b){a&1&&(J(0,"h1",0),R(1),K(),J(2,"div",1)(3,"span"),R(4," Please select the reason for deleting this attachment. "),J(5,"a",2),R(6," \u00a0Learn more "),K()(),J(7,"mat-radio-group",3),Ah("ngModelChange",function(c){zh(b.selectedReason,c)||(b.selectedReason=c);return c}),Pg(8,RWa,3,4,"mat-radio-button",4,Og),K()(),J(10,"div",5)(11,"button",6),R(12," Cancel "),K(),J(13,"button",7),R(14," Delete "),K()());a&2&&(x(),T("Delete attachment ",b.attachmentId),x(4),I("href",
qKc(b.documentationLinks),hf),x(2),yh("ngModel",b.selectedReason),x(),Qg(b.deletionReasons),x(5),I("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[SJ,UJ,WJ,VJ,oG,Jx,dy,ky,jN,kN],styles:["mat-radio-group[_ngcontent-%COMP%] {display: flex; flex-direction: column; margin: 15px 0;}","mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});var HQc=function(){this.documentationLinks=r(JJ);this.data=r(QJ);this.deletionReasons=this.data.deletionReasons;this.commentNumber=this.data.commentNumber;this.issueId=this.data.issueId};HQc.\u0275fac=function(a){return new (a||HQc)};
HQc.\u0275cmp=y({type:HQc,selectors:[["b-issue-delete-comment-dialog"]],standalone:!1,decls:15,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["title","Deletion Reasons Help Link","target","_blank",1,"icon-s",3,"href"],[3,"ngModelChange","ngModel"],[3,"value","disabled"],["mat-dialog-actions",""],["type","button","mat-stroked-button","",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","color","primary",1,"medium","dialog-primary-action",3,"mat-dialog-close",
"disabled"]],template:function(a,b){a&1&&(J(0,"h1",0),R(1),K(),J(2,"div",1)(3,"label"),R(4,"Please select the reason for deleting this comment."),K(),J(5,"a",2),R(6," \u00a0Learn more "),K(),J(7,"mat-radio-group",3),Ah("ngModelChange",function(c){zh(b.selectedReason,c)||(b.selectedReason=c);return c}),Pg(8,TWa,3,4,"mat-radio-button",4,Og),K()(),J(10,"div",5)(11,"button",6),R(12," Cancel "),K(),J(13,"button",7),R(14," Delete "),K()());a&2&&(x(),xh("Delete Comment #",b.commentNumber," of Issue ",b.issueId),
x(4),I("href",qKc(b.documentationLinks),hf),x(2),yh("ngModel",b.selectedReason),x(),Qg(b.deletionReasons),x(5),I("mat-dialog-close",b.selectedReason)("disabled",!b.selectedReason))},dependencies:[SJ,UJ,WJ,VJ,oG,Jx,dy,ky,jN,kN],styles:["mat-radio-group[_ngcontent-%COMP%] {display: flex; flex-direction: column; margin: 15px 0;}","mat-radio-button[_ngcontent-%COMP%] {margin: 5px}"]});var IQc=function(){this.documentationLinks=r(JJ);this.activeSession=r(Bs);this.REMOVAL_URL=UWa(this.activeSession.isInternalSession())};IQc.\u0275fac=function(a){return new (a||IQc)};
IQc.\u0275cmp=y({type:IQc,selectors:[["b-issue-flag-as-spam-dialog"]],standalone:!1,decls:19,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",1,"keep-underline",3,"href"],["mat-dialog-actions",""],["type","button","mat-stroked-button","",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","color","primary","cdkFocusInitial","",1,"medium","dialog-primary-action",3,"mat-dialog-close"]],template:function(a,b){a&1&&(J(0,"h1",0),R(1,"Report spam?"),
K(),J(2,"div",1)(3,"p"),R(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, "),J(5,"a",2),R(6,"see here"),K(),R(7,". "),K(),M(8,"p"),J(9,"p"),R(10," To delete PII or other sensitive content, "),J(11,"a",2),R(12,"file a support request"),K(),R(13,". "),K()(),J(14,"div",3)(15,"button",4),R(16," Cancel "),K(),J(17,"button",5),R(18," Report spam "),K()());a&2&&(x(5),I("href",pKc(b.documentationLinks),hf),x(6),I("href",
b.REMOVAL_URL,hf),x(4),I("mat-dialog-close",!1),x(2),I("mat-dialog-close",!0))},dependencies:[SJ,UJ,WJ,VJ,oG,Jx],encapsulation:2});var JQc=function(){this.documentationLinks=r(JJ);this.indefiniteRetentionAcknowledged=!1};JQc.\u0275fac=function(a){return new (a||JQc)};
JQc.\u0275cmp=y({type:JQc,selectors:[["b-issue-indefinite-retention-dialog"]],standalone:!1,decls:28,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank",3,"href"],["cdkFocusInitial","",3,"change","checked"],["mat-dialog-actions",""],["type","button","mat-stroked-button","",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","color","primary",1,"medium","dialog-primary-action",3,"mat-dialog-close","disabled"]],template:function(a,b){a&1&&(J(0,"h1",
0),R(1,"Retain issue indefinitely?"),K(),J(2,"div",1)(3,"p"),R(4," Are you sure you want to override any component retention settings, and retain this issue indefinitely? "),K(),J(5,"p")(6,"b"),R(7,"Please note indefinite retention is not appropriate in many circumstances."),K(),M(8,"br"),R(9," Before selecting this option, you should make sure at least one of the following is true: "),K(),J(10,"ul")(11,"li"),R(12," There is no personal data, user data, or any other forms of sensitive data being stored in this issue. "),
K(),J(13,"li"),R(14," You have a process in place to manually delete this issue within an approved period of time. "),K(),J(15,"li"),R(16," Legal and Privacy have approved this non-standard retention period. "),K()(),M(17,"p"),J(18,"p")(19,"a",2),R(20,"Learn more"),K()(),J(21,"mat-checkbox",3),N("change",function(c){return b.indefiniteRetentionAcknowledged=c.checked}),R(22," I acknowledge "),K()(),J(23,"div",4)(24,"button",5),R(25," Cancel "),K(),J(26,"button",6),R(27," OK "),K()());a&2&&(x(19),I("href",
ys(),hf),x(2),I("checked",b.indefiniteRetentionAcknowledged),x(3),I("mat-dialog-close",!1),x(2),I("mat-dialog-close",!0)("disabled",!b.indefiniteRetentionAcknowledged))},dependencies:[SJ,UJ,WJ,VJ,oG,Jx,gM,hM],styles:[".mat-mdc-dialog-content[_ngcontent-%COMP%] { max-height: unset; overflow: unset; }","ul[_ngcontent-%COMP%] { list-style: disc }"]});var tN=function(){Z.apply(this,arguments);this.userPreferencesManager=r(iG);this.timestamps$=this.userPreferencesManager.preferences$.pipe(C(function(a){var b;return(b=a.dismissalTimestamps)!=null?b:void 0}))};Y(tN,Z);tN.\u0275dir=Z.\u0275dir;var KQc=function(a,b){return a.timestamps$.pipe(C(function(c){return c?!!c[b]:!1}))};tN.prototype.isDismissed=function(a){return Rf(KQc(this,a))};
tN.prototype.dismiss=function(a){var b=this;return this.timestamps$.pipe(mg(1),C(function(c){var d={};return{dismissalTimestamps:Object.assign({},c,(d[a]=new Date(Date.now()),d))}}),xg(function(c){return b.userPreferencesManager.save(c)}),C(function(c){if(c.dismissalTimestamps&&c.dismissalTimestamps[a])return c.dismissalTimestamps[a]}))};tN.\u0275fac=function(){var a;return function(b){return(a||(a=Re(tN)))(b||tN)}}();tN.\u0275prov=Cd({token:tN,factory:tN.\u0275fac,providedIn:"root"});var uN=function(){Z.apply(this,arguments);this.data=r(QJ);this.dialogRef=r(KJ);this.dismissalService=r(tN);this.dontShowAgain=!1};Y(uN,Z);uN.\u0275dir=Z.\u0275dir;uN.prototype.confirm=function(){var a=this,b;return z(function(c){if(c.nextAddress==1){if(!a.dontShowAgain)return c.jumpTo(2);b=VWa(a.data.action);return B(c,Rf(a.dismissalService.dismiss(b)),2)}a.dialogRef.close(!0);Lf(c)})};uN.\u0275fac=function(){var a;return function(b){return(a||(a=Re(uN)))(b||uN)}}();
uN.\u0275cmp=y({type:uN,selectors:[["b-share-email-confirmation-dialog"]],standalone:!1,features:[Bg],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&&(J(0,"div",0),M(1,"div",1),J(2,"mat-checkbox",2),N("change",function(c){return b.dontShowAgain=c.checked}),
R(3," Don't show this again "),K()(),J(4,"div",3)(5,"button",4),N("click",function(){return b.dialogRef.close(!1)}),R(6," Cancel "),K(),J(7,"button",5),N("click",function(){return b.confirm()}),R(8," Confirm "),K()());a&2&&(x(),I("innerHTML",b.data.content,gf),x(),I("checked",b.dontShowAgain))},dependencies:[WJ,VJ,oG,Jx,gM,hM],styles:["mat-checkbox[_ngcontent-%COMP%] {\n      margin-top: 12px;\n      padding-bottom: 12px;\n    }"]});var LQc=function(){this.text="..."};LQc.\u0275fac=function(a){return new (a||LQc)};
LQc.\u0275cmp=y({type:LQc,selectors:[["ai-spinner"]],hostVars:2,hostBindings:function(a,b){a&2&&uh("large",b.large)},inputs:{large:"large",text:"text"},standalone:!1,decls:2,vars:1,template:function(a,b){a&1&&(J(0,"label"),R(1),K());a&2&&(x(),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 MQc=new le("GMAT_PROGRESS_SPINNER_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var NQc=["determinateSpinner"],OQc=new le("mat-progress-spinner-default-options",{providedIn:"root",factory:XWa}),vN=function(){this._elementRef=r(Te);this._defaultColor="primary";this._value=0;this._diameter=100;var a=r(OQc),b=Lpa(),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))};g=vN.prototype;g._circleRadius=function(){return(this.diameter-10)/2};g._viewBox=function(){var a=this._circleRadius()*2+this.strokeWidth;return"0 0 "+a+" "+a};g._strokeCircumference=function(){return 2*Math.PI*this._circleRadius()};g._strokeDashOffset=function(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null};
g._circleStrokeWidth=function(){return this.strokeWidth/this.diameter*100};
nd.Object.defineProperties(vN.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}}});vN.\u0275fac=function(a){return new (a||vN)};
vN.\u0275cmp=y({type:vN,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(a,b){a&1&&hh(NQc,5);if(a&2){var c;lh(c=mh())&&(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&&(Lg("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",b.mode==="determinate"?b.value:null)("mode",b.mode),vh("mat-"+b.color),th("width",b.diameter,"px")("height",b.diameter,"px")("--mat-progress-spinner-size",
b.diameter+"px")("--mat-progress-spinner-active-indicator-width",b.diameter+"px"),uh("_mat-animation-noopable",b._noopAnimations)("mdc-circular-progress--indeterminate",b.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ai],diameter:[2,"diameter","diameter",ai],strokeWidth:[2,"strokeWidth","strokeWidth",ai]},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&&(D(0,WWa,2,8,"ng-template",null,0,Lh),J(2,"div",2,1),Ge(),J(4,"svg",3),M(5,"circle",4),K()(),He(),J(6,"div",5)(7,"div",6)(8,"div",7),Yg(9,8),K(),J(10,"div",9),Yg(11,8),K(),J(12,"div",10),Yg(13,8),K()()());a&2&&(a=Q(1),x(4),Lg("viewBox",b._viewBox()),x(),th("stroke-dasharray",b._strokeCircumference(),"px")("stroke-dashoffset",b._strokeDashOffset(),
"px")("stroke-width",b._circleStrokeWidth(),"%"),Lg("r",b._circleRadius()),x(4),I("ngTemplateOutlet",a),x(2),I("ngTemplateOutlet",a),x(2),I("ngTemplateOutlet",a))},dependencies:[Sv],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 wN=function(){};wN.\u0275fac=function(a){return new (a||wN)};wN.\u0275mod=uf({type:wN});wN.\u0275inj=Dd({imports:[px]});var xN=function(a,b){var c=this;this.options=a;this.progressSpinner=b;this.destroyed=new tg;this.labelElement=document.createElement("label");if(a.disableGmatStyle)throw Error("Mc");this.labelElement.classList.add("cdk-visually-hidden");this.labelElement.classList.add("gmat-mdc-progress-spinner-accessible-label");this.hasAriaLabelAndRole||XUa(b._elementRef.nativeElement).pipe(yg(this.destroyed)).subscribe(function(d){c.writeLabelSpan(d[0],d[1])})};
xN.prototype.ngOnInit=function(){this.hasAriaLabelAndRole||this.initializeLabelSpan()};xN.prototype.ngOnDestroy=function(){this.labelElement.remove();this.destroyed.next();this.destroyed.complete()};
xN.prototype.initializeLabelSpan=function(){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:"";this.writeLabelSpan(c,a)};xN.prototype.writeLabelSpan=function(a,b){a=b==="indeterminate"?a:a+" "+iQc.format(Number(b)/100);this.labelElement.textContent=a};
nd.Object.defineProperties(xN.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"}}});
xN.\u0275fac=function(a){return new (a||xN)(of(MQc),of(vN,10))};xN.\u0275dir=vf({type:xN,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:[1,"gmat-mdc-progress-spinner"],hostVars:2,hostBindings:function(a,b){a&2&&Lg("aria-hidden",b.hasAriaLabelAndRole?void 0:!0)("tabindex",null)},standalone:!1});var yN=function(){this.ariaLabel="loading";this.SIZE_SMALL=16;this.SIZE_LARGE=36;this.DIAMETER_SMALL=2};yN.\u0275fac=function(a){return new (a||yN)};yN.\u0275cmp=y({type:yN,selectors:[["b-spinner"]],inputs:{large:"large",ariaLabel:"ariaLabel"},standalone:!1,decls:2,vars:2,consts:[[1,"large",3,"diameter"],[1,"small",3,"diameter","strokeWidth"]],template:function(a,b){a&1&&(F(0,YWa,1,2,"mat-spinner",0),F(1,ZWa,1,3,"mat-spinner",1));a&2&&(G(b.large?0:-1),x(),G(b.large?-1:1))},dependencies:[xN,vN],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 zN=function(){};zN.\u0275fac=function(a){return new (a||zN)};zN.\u0275mod=uf({type:zN});zN.\u0275inj=Dd({imports:[wN]});var AN=function(){};AN.\u0275fac=function(a){return new (a||AN)};AN.\u0275mod=uf({type:AN});AN.\u0275inj=Dd({imports:[HC,zN]});var PQc=new le("GMAT_TABS_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1,appearance:"primary"}}});var QQc=function(a){this._items=a};QQc.prototype.hide=function(){this._items.forEach(function(a){return RQc(a)});this._currentItem=void 0};
var TQc=function(a,b){var c=a._items.find(function(h){return h.elementRef.nativeElement===b}),d=a._currentItem;if(c!==d&&(d==null||RQc(d),c)){var e,f;d=d==null?void 0:(f=(e=d.elementRef.nativeElement).getBoundingClientRect)==null?void 0:f.call(e);SQc(c,d);a._currentItem=c}},BN=function(){this._elementRef=r(Te);this._fitToContent=!1},SQc=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")},RQc=function(a){a._elementRef.nativeElement.classList.remove("mdc-tab-indicator--active")};BN.prototype.ngOnInit=function(){this._createInkBarElement()};
BN.prototype.ngOnDestroy=function(){var a;(a=this._inkBarElement)==null||a.remove();this._inkBarElement=this._inkBarContentElement=null};BN.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()};
BN.prototype._appendInkBarElement=function(){(this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement).appendChild(this._inkBarElement)};nd.Object.defineProperties(BN.prototype,{fitInkBarToContent:{configurable:!0,enumerable:!0,get:function(){return this._fitToContent},set:function(a){this._fitToContent!==a&&(this._fitToContent=a,this._inkBarElement&&this._appendInkBarElement())}}});BN.\u0275fac=function(a){return new (a||BN)};
BN.\u0275dir=vf({type:BN,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",$h]}});new le("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(a){return{left:a?(a.offsetLeft||0)+"px":"0",width:a?(a.offsetWidth||0)+"px":"0"}}}});var UQc={passive:!0},CN=function(){var a=this;this._elementRef=r(Te);this._changeDetectorRef=r(Hv);this._viewportRuler=r(vi);this._dir=r(Gi,{optional:!0});this._ngZone=r(Ph);this._platform=r(zi);this._sharedResizeObserver=r(Iy);this._injector=r(Cg);this._renderer=r(Ji);this._animationsDisabled=Ri();this._scrollDistance=0;this._selectedIndexChanged=!1;this._destroyed=new tg;this._showPaginationControls=!1;this._disableScrollBefore=this._disableScrollAfter=!0;this._stopScrolling=new tg;this.disablePagination=
!1;this._selectedIndex=0;this.selectFocusedIndex=new nq;this.indexFocused=new nq;this._eventCleanups=this._ngZone.runOutsideAngular(function(){return[a._renderer.listen(a._elementRef.nativeElement,"mouseleave",function(){return a._stopInterval()})]})};g=CN.prototype;
g.ngAfterViewInit=function(){var a=this;this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",function(){return a._handlePaginatorPress("before")},UQc),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",function(){return a._handlePaginatorPress("after")},UQc))};
g.ngAfterContentInit=function(){var a=this,b=this._dir?this._dir.change:Nf("ltr"),c=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(kg(32),yg(this._destroyed)),d=this._viewportRuler.change(150).pipe(yg(this._destroyed)),e=function(){a.updatePagination();a._alignInkBarToSelectedTab()};this._keyManager=Iw(Lw(Kw(new Ow(this._items),this._getLayoutDirection()))).skipPredicate(function(){return!1});Mw(this._keyManager,Math.max(this._selectedIndex,0));Ig(e,{injector:this._injector});
dg(b,d,c,this._items.changes,this._itemsResized()).pipe(yg(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||Kw(f,a._getLayoutDirection())});this._keyManager.change.subscribe(function(f){a.indexFocused.emit(f);a._setTabFocus(f)})};
g._itemsResized=function(){var a=this;return typeof ResizeObserver!=="function"?cg:this._items.changes.pipe(wg(this._items),xg(function(b){return new Cf(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()}})})}),vg(1),eg(function(b){return b.some(function(c){return c.contentRect.width>0&&c.contentRect.height>0})}))};
g.ngAfterContentChecked=function(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck());this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck());this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())};
g.ngOnDestroy=function(){this._eventCleanups.forEach(function(b){return b()});var a;(a=this._keyManager)==null||a.destroy();this._destroyed.next();this._destroyed.complete();this._stopScrolling.complete()};g._handleKeydown=function(a){if(!ki(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)}};
g._onContentChanges=function(){var a=this,b=this._elementRef.nativeElement.textContent;b!==this._currentTextContent&&(this._currentTextContent=b||"",this._ngZone.run(function(){a.updatePagination();a._alignInkBarToSelectedTab();a._changeDetectorRef.markForCheck()}))};g.updatePagination=function(){this._checkPaginationEnabled();this._checkScrollingControls();this._updateTabScrollPosition()};g._isValidIndex=function(a){return this._items?!!this._items.toArray()[a]:!0};
g._setTabFocus=function(a){this._showPaginationControls&&this._scrollToLabel(a);this._items&&this._items.length&&(this._items.toArray()[a].focus(),a=this._tabListContainer.nativeElement,a.scrollLeft=this._getLayoutDirection()=="ltr"?0:a.scrollWidth-a.offsetWidth)};g._getLayoutDirection=function(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"};
g._updateTabScrollPosition=function(){if(!this.disablePagination){var a=this.scrollDistance;this._tabList.nativeElement.style.transform="translateX("+Math.round(this._getLayoutDirection()==="ltr"?-a:a)+"px)";if(this._platform.TRIDENT||this._platform.EDGE)this._tabListContainer.nativeElement.scrollLeft=0}};g._scrollHeader=function(a){return this._scrollTo(this._scrollDistance+(a=="before"?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)};
g._handlePaginatorClick=function(a){this._stopInterval();this._scrollHeader(a)};
g._scrollToLabel=function(a){if(!this.disablePagination){var b=this._items?this._items.toArray()[a]:null;if(b){a=this._tabListContainer.nativeElement.offsetWidth;var c=b.elementRef.nativeElement;b=c.offsetLeft;var d=c.offsetWidth;this._getLayoutDirection()=="ltr"?c=b+d:(c=this._tabListInner.nativeElement.offsetWidth-b,b=c-d);d=this.scrollDistance;a=this.scrollDistance+a;b<d?this.scrollDistance-=d-b:c>a&&(this.scrollDistance+=Math.min(c-a,b-d))}}};
g._checkPaginationEnabled=function(){if(this.disablePagination)this._showPaginationControls=!1;else{var a=this._tabListInner.nativeElement.scrollWidth-this._elementRef.nativeElement.offsetWidth>=5;a||(this.scrollDistance=0);a!==this._showPaginationControls&&(this._showPaginationControls=a,this._changeDetectorRef.markForCheck())}};
g._checkScrollingControls=function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())};g._getMaxScrollDistance=function(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0};
g._alignInkBarToSelectedTab=function(){var a=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null;(a=a?a.elementRef.nativeElement:null)?TQc(this._inkBar,a):this._inkBar.hide()};g._stopInterval=function(){this._stopScrolling.next()};
g._handlePaginatorPress=function(a,b){var c=this;b&&b.button!=null&&b.button!==0||(this._stopInterval(),bg(650,100).pipe(yg(dg(this._stopScrolling,this._destroyed))).subscribe(function(){var d=c._scrollHeader(a),e=d.maxScrollDistance;d=d.distance;(d===0||d>=e)&&c._stopInterval()}))};
g._scrollTo=function(a){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var b=this._getMaxScrollDistance();this._scrollDistance=Math.max(0,Math.min(b,a));this._scrollDistanceChanged=!0;this._checkScrollingControls();return{maxScrollDistance:b,distance:this._scrollDistance}};
nd.Object.defineProperties(CN.prototype,{selectedIndex:{configurable:!0,enumerable:!0,get:function(){return this._selectedIndex},set:function(a){a=isNaN(a)?0:a;this._selectedIndex!=a&&(this._selectedIndexChanged=!0,this._selectedIndex=a,this._keyManager&&Mw(this._keyManager,a))}},focusIndex:{configurable:!0,enumerable:!0,get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(a){this._isValidIndex(a)&&this.focusIndex!==a&&this._keyManager&&this._keyManager.setActiveItem(a)}},
scrollDistance:{configurable:!0,enumerable:!0,get:function(){return this._scrollDistance},set:function(a){this._scrollTo(a)}}});CN.\u0275fac=function(a){return new (a||CN)};CN.\u0275dir=vf({type:CN,inputs:{disablePagination:[2,"disablePagination","disablePagination",$h],selectedIndex:[2,"selectedIndex","selectedIndex",ai]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}});var VQc=["content"],EN=function(){jx.call(this);this._host=r(DN);this._leavingSub=this._centeringSub=yf.EMPTY};Y(EN,jx);EN.prototype.ngOnInit=function(){var a=this;jx.prototype.ngOnInit.call(this);this._centeringSub=this._host._beforeCentering.pipe(wg(this._host._isCenterPosition())).subscribe(function(b){a._host._content&&b&&!a.hasAttached()&&a.attach(a._host._content)});this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){a._host.preserveContent||a.detach()})};
EN.prototype.ngOnDestroy=function(){jx.prototype.ngOnDestroy.call(this);this._centeringSub.unsubscribe();this._leavingSub.unsubscribe()};EN.\u0275fac=function(a){return new (a||EN)};EN.\u0275dir=vf({type:EN,selectors:[["","matTabBodyHost",""]],features:[Bg]});
var DN=function(){var a=this;this._elementRef=r(Te);this._dir=r(Gi,{optional:!0});this._ngZone=r(Ph);this._injector=r(Cg);this._renderer=r(Ji);this._diAnimationsDisabled=Ri();this._dirChangeSubscription=yf.EMPTY;this._onCentering=new nq;this._beforeCentering=new nq;this._afterLeavingCenter=new nq;this._onCentered=new nq(!0);this.animationDuration="500ms";this.preserveContent=!1;if(this._dir){var b=r(Hv);this._dirChangeSubscription=this._dir.change.subscribe(function(c){a._computePositionAnimationState(c);
b.markForCheck()})}};g=DN.prototype;g.ngOnInit=function(){var a=this;this._bindTransitionEvents();this._position==="center"&&(this._setActiveClass(!0),Ig(function(){return a._onCentering.emit(a._elementRef.nativeElement.clientHeight)},{injector:this._injector}));this._initialized=!0};g.ngOnDestroy=function(){clearTimeout(this._fallbackTimer);var a;(a=this._eventCleanups)==null||a.forEach(function(b){return b()});this._dirChangeSubscription.unsubscribe()};
g._bindTransitionEvents=function(){var a=this;this._ngZone.runOutsideAngular(function(){var b=a._elementRef.nativeElement,c=function(d){var e;d.target===((e=a._contentElement)==null?void 0:e.nativeElement)&&(a._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),d.type==="transitionend"&&a._transitionDone())};a._eventCleanups=[a._renderer.listen(b,"transitionstart",function(d){var e;d.target===((e=a._contentElement)==null?void 0:e.nativeElement)&&(a._elementRef.nativeElement.classList.add("mat-tab-body-animating"),
a._transitionStarted())}),a._renderer.listen(b,"transitionend",c),a._renderer.listen(b,"transitioncancel",c)]})};g._transitionStarted=function(){clearTimeout(this._fallbackTimer);var a=this._position==="center";this._beforeCentering.emit(a);a&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)};g._transitionDone=function(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit()};
g._setActiveClass=function(a){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",a)};g._getLayoutDirection=function(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"};g._isCenterPosition=function(){return this._positionIndex===0};
g._computePositionAnimationState=function(a){var b=this;a=a===void 0?this._getLayoutDirection():a;this._previousPosition=this._position;this._position=this._positionIndex<0?a=="ltr"?"left":"right":this._positionIndex>0?a=="ltr"?"right":"left":"center";this._animationsDisabled()?this._simulateTransitionEvents():!this._initialized||this._position!=="center"&&this._previousPosition!=="center"||(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(function(){return setTimeout(function(){return b._simulateTransitionEvents()},
100)}))};g._simulateTransitionEvents=function(){var a=this;this._transitionStarted();Ig(function(){return a._transitionDone()},{injector:this._injector})};g._animationsDisabled=function(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"};nd.Object.defineProperties(DN.prototype,{position:{configurable:!0,enumerable:!0,set:function(a){this._positionIndex=a;this._computePositionAnimationState()}}});DN.\u0275fac=function(a){return new (a||DN)};
DN.\u0275cmp=y({type:DN,selectors:[["mat-tab-body"]],viewQuery:function(a,b){a&1&&(hh(EN,5),hh(VQc,5));if(a&2){var c;lh(c=mh())&&(b._portalHost=c.first);lh(c=mh())&&(b._contentElement=c.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(a,b){a&2&&Lg("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&&(J(0,"div",1,0),D(2,$Wa,0,0,"ng-template",2),K());a&2&&uh("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:[EN,Sw],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 WQc=new le("MAT_TABS_CONFIG");var XQc=new le("MatTabContent"),FN=function(){this.template=r(eh)};FN.\u0275fac=function(a){return new (a||FN)};FN.\u0275dir=vf({type:FN,selectors:[["","matTabContent",""]],features:[Fh([{provide:XQc,useExisting:FN}])]});var GN=function(){BN.apply(this,arguments);this.elementRef=r(Te);this.disabled=!1};Y(GN,BN);GN.prototype.focus=function(){this.elementRef.nativeElement.focus()};GN.\u0275fac=function(){var a;return function(b){return(a||(a=Re(GN)))(b||GN)}}();GN.\u0275dir=vf({type:GN,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(a,b){a&2&&(Lg("aria-disabled",!!b.disabled),uh("mat-mdc-tab-disabled",b.disabled))},inputs:{disabled:[2,"disabled","disabled",$h]},features:[Bg]});var YQc=["tabListContainer"],ZQc=["tabList"],$Qc=["tabListInner"],aRc=["nextPaginator"],bRc=["previousPaginator"],HN=function(){CN.apply(this,arguments);this.disableRipple=!1};Y(HN,CN);HN.\u0275dir=CN.\u0275dir;HN.prototype.ngAfterContentInit=function(){this._inkBar=new QQc(this._items);CN.prototype.ngAfterContentInit.call(this)};HN.prototype._itemSelected=function(a){a.preventDefault()};HN.\u0275fac=function(){var a;return function(b){return(a||(a=Re(HN)))(b||HN)}}();
HN.\u0275cmp=y({type:HN,selectors:[["mat-tab-header"]],contentQueries:function(a,b,c){a&1&&ih(c,GN,4);if(a&2){var d;lh(d=mh())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(hh(YQc,7),hh(ZQc,7),hh($Qc,7),hh(aRc,5),hh(bRc,5));if(a&2){var c;lh(c=mh())&&(b._tabListContainer=c.first);lh(c=mh())&&(b._tabList=c.first);lh(c=mh())&&(b._tabListInner=c.first);lh(c=mh())&&(b._nextPaginator=c.first);lh(c=mh())&&(b._previousPaginator=c.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(a,
b){a&2&&uh("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",$h]},features:[Bg],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();ch();J(0,"div",5,0);N("click",function(){u(c);
return w(b._handlePaginatorClick("before"))})("mousedown",function(d){u(c);return w(b._handlePaginatorPress("before",d))})("touchend",function(){u(c);return w(b._stopInterval())});M(2,"div",6);K();J(3,"div",7,1);N("keydown",function(d){u(c);return w(b._handleKeydown(d))});J(5,"div",8,2);N("cdkObserveContent",function(){u(c);return w(b._onContentChanges())});J(7,"div",9,3);dh(9);K()()();J(10,"div",10,4);N("mousedown",function(d){u(c);return w(b._handlePaginatorPress("after",d))})("click",function(){u(c);
return w(b._handlePaginatorClick("after"))})("touchend",function(){u(c);return w(b._stopInterval())});M(12,"div",6);K()}a&2&&(uh("mat-mdc-tab-header-pagination-disabled",b._disableScrollBefore),I("matRippleDisabled",b._disableScrollBefore||b.disableRipple),x(3),uh("_mat-animation-noopable",b._animationsDisabled),x(2),Lg("aria-label",b.ariaLabel||null)("aria-labelledby",b.ariaLabelledby||null),x(5),uh("mat-mdc-tab-header-pagination-disabled",b._disableScrollAfter),I("matRippleDisabled",b._disableScrollAfter||
b.disableRipple))},dependencies:[zx,yw],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 cRc=new le("MatTabLabel"),dRc=new le("MAT_TAB"),IN=function(){ix.apply(this,arguments);this._closestTab=r(dRc,{optional:!0})};Y(IN,ix);IN.\u0275fac=function(){var a;return function(b){return(a||(a=Re(IN)))(b||IN)}}();IN.\u0275dir=vf({type:IN,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Fh([{provide:cRc,useExisting:IN}]),Bg]});var eRc=new le("MAT_TAB_GROUP"),JN=function(){this._viewContainerRef=r(fh);this._closestTabGroup=r(eRc,{optional:!0});this.disabled=!1;this._explicitContent=void 0;this.textLabel="";this._contentPortal=this.id=null;this._stateChanges=new tg;this.origin=this.position=null;this.isActive=!1;r(Di).load(wx)};JN.prototype.ngOnChanges=function(a){(a.hasOwnProperty("textLabel")||a.hasOwnProperty("disabled"))&&this._stateChanges.next()};JN.prototype.ngOnDestroy=function(){this._stateChanges.complete()};
JN.prototype.ngOnInit=function(){this._contentPortal=new gx(this._explicitContent||this._implicitContent,this._viewContainerRef)};JN.prototype._setTemplateLabelInput=function(a){a&&a._closestTab===this&&(this._templateLabel=a)};nd.Object.defineProperties(JN.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}}});
JN.\u0275fac=function(a){return new (a||JN)};
JN.\u0275cmp=y({type:JN,selectors:[["mat-tab"]],contentQueries:function(a,b,c){a&1&&(ih(c,IN,5),ih(c,FN,7,eh));if(a&2){var d;lh(d=mh())&&(b.templateLabel=d.first);lh(d=mh())&&(b._explicitContent=d.first)}},viewQuery:function(a,b){a&1&&hh(eh,7);if(a&2){var c;lh(c=mh())&&(b._implicitContent=c.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(a){a&2&&Lg("id",null)},inputs:{disabled:[2,"disabled","disabled",$h],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,
"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[Fh([{provide:dRc,useExisting:JN}]),ov],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(ch(),dma(0,aXa,1,0,"ng-template"))},encapsulation:2});var fRc=["tabBodyWrapper"],gRc=["tabHeader"],KN=function(){this._elementRef=r(Te);this._changeDetectorRef=r(Hv);this._ngZone=r(Ph);this._tabBodySubscription=this._tabLabelSubscription=this._tabsSubscription=yf.EMPTY;this._diAnimationsDisabled=Ri();this._tabs=new gh;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 nq;this.focusChange=new nq;this.animationDone=new nq;this.selectedTabChange=new nq(!0);this._isServer=!r(zi).isBrowser;var a=r(WQc,{optional:!0});this._groupId=r(Fi).getId("mat-tab-group-");this.animationDuration=a&&a.animationDuration?a.animationDuration:"500ms";this.disablePagination=a&&a.disablePagination!=null?a.disablePagination:!1;this.dynamicHeight=a&&a.dynamicHeight!=null?a.dynamicHeight:!1;(a==null?void 0:a.contentTabIndex)!=
null&&(this.contentTabIndex=a.contentTabIndex);this.preserveContent=!(a==null||!a.preserveContent);this.fitInkBarToContent=a&&a.fitInkBarToContent!=null?a.fitInkBarToContent:!1;this.stretchTabs=a&&a.stretchTabs!=null?a.stretchTabs:!0;this.alignTabs=a&&a.alignTabs!=null?a.alignTabs:null};g=KN.prototype;
g.ngAfterContentChecked=function(){var a=this,b=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=b){var c=this._selectedIndex==null;if(!c){this.selectedTabChange.emit(this._createChangeEvent(b));var d=this._tabBodyWrapper.nativeElement;d.style.minHeight=d.clientHeight+"px"}Promise.resolve().then(function(){a._tabs.forEach(function(e,f){return e.isActive=f===b});c||(a.selectedIndexChange.emit(b),a._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(e,
f){e.position=f-b;a._selectedIndex==null||e.position!=0||e.origin||(e.origin=b-a._selectedIndex)});this._selectedIndex!==b&&(this._selectedIndex=b,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())};
g.ngAfterContentInit=function(){var a=this;this._subscribeToAllTabChanges();this._subscribeToTabLabels();this._tabsSubscription=this._tabs.changes.subscribe(function(){var b=a._clampTabIndex(a._indexToSelect);if(b===a._selectedIndex){for(var c=a._tabs.toArray(),d,e=0;e<c.length;e++)if(c[e].isActive){a._indexToSelect=a._selectedIndex=e;a._lastFocusedTabIndex=null;d=c[e];break}!d&&c[b]&&Promise.resolve().then(function(){c[b].isActive=!0;a.selectedTabChange.emit(a._createChangeEvent(b))})}a._changeDetectorRef.markForCheck()})};
g.ngAfterViewInit=function(){var a=this;this._tabBodySubscription=this._tabBodies.changes.subscribe(function(){return a._bodyCentered(!0)})};g._subscribeToAllTabChanges=function(){var a=this;this._allTabs.changes.pipe(wg(this._allTabs)).subscribe(function(b){a._tabs.reset(b.filter(function(c){return c._closestTabGroup===a||!c._closestTabGroup}));kh(a._tabs)})};g.ngOnDestroy=function(){this._tabs.destroy();this._tabsSubscription.unsubscribe();this._tabLabelSubscription.unsubscribe();this._tabBodySubscription.unsubscribe()};
g.updatePagination=function(){this._tabHeader&&this._tabHeader.updatePagination()};g._focusChanged=function(a){this._lastFocusedTabIndex=a;this.focusChange.emit(this._createChangeEvent(a))};g._createChangeEvent=function(a){var b=new hRc;b.index=a;this._tabs&&this._tabs.length&&(b.tab=this._tabs.toArray()[a]);return b};g._subscribeToTabLabels=function(){var a=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe();this._tabLabelSubscription=dg.apply(null,p(this._tabs.map(function(b){return b._stateChanges}))).subscribe(function(){return a._changeDetectorRef.markForCheck()})};
g._clampTabIndex=function(a){return Math.min(this._tabs.length-1,Math.max(a||0,0))};g._getTabLabelId=function(a,b){return a.id||this._groupId+"-label-"+b};g._getTabContentId=function(a){return this._groupId+"-content-"+a};
g._setTabBodyWrapperHeight=function(a){if(this.dynamicHeight&&this._tabBodyWrapperHeight){var b=this._tabBodyWrapper.nativeElement;b.style.height=this._tabBodyWrapperHeight+"px";this._tabBodyWrapper.nativeElement.offsetHeight&&(b.style.height=a+"px")}else this._tabBodyWrapperHeight=a};g._removeTabBodyWrapperHeight=function(){var a=this,b=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=b.clientHeight;b.style.height="";this._ngZone.run(function(){return a.animationDone.emit()})};
g._handleClick=function(a,b,c){b.focusIndex=c;a.disabled||(this.selectedIndex=c)};g._getTabIndex=function(a){var b,c=(b=this._lastFocusedTabIndex)!=null?b:this.selectedIndex;return a===c?0:-1};g._tabFocusChanged=function(a,b){a&&a!=="mouse"&&a!=="touch"&&(this._tabHeader.focusIndex=b)};g._bodyCentered=function(a){var b=this;if(a){var c;(c=this._tabBodies)==null||c.forEach(function(d,e){return d._setActiveClass(e===b._selectedIndex)})}};
g._animationsDisabled=function(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"};
nd.Object.defineProperties(KN.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}}});
KN.\u0275fac=function(a){return new (a||KN)};
KN.\u0275cmp=y({type:KN,selectors:[["mat-tab-group"]],contentQueries:function(a,b,c){a&1&&ih(c,JN,5);if(a&2){var d;lh(d=mh())&&(b._allTabs=d)}},viewQuery:function(a,b){a&1&&(hh(fRc,5),hh(gRc,5),hh(DN,5));if(a&2){var c;lh(c=mh())&&(b._tabBodyWrapper=c.first);lh(c=mh())&&(b._tabHeader=c.first);lh(c=mh())&&(b._tabBodies=c)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(a,b){a&2&&(Lg("mat-align-tabs",b.alignTabs),vh("mat-"+(b.color||"primary")),th("--mat-tab-animation-duration",
b.animationDuration),uh("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",$h],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",$h],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",$h],selectedIndex:[2,"selectedIndex","selectedIndex",ai],headerPosition:"headerPosition",
animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ai],disablePagination:[2,"disablePagination","disablePagination",$h],disableRipple:[2,"disableRipple","disableRipple",$h],preserveContent:[2,"preserveContent","preserveContent",$h],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",
selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[Fh([{provide:eRc,useExisting:KN}])],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();ch();J(0,"mat-tab-header",3,0);N("indexFocused",function(d){u(c);return w(b._focusChanged(d))})("selectFocusedIndex",function(d){u(c);return w(b.selectedIndex=d)});Pg(2,eXa,8,17,"div",4,Og);K();F(4,fXa,1,0);J(5,"div",5,1);Pg(7,gXa,1,10,"mat-tab-body",6,Og);K()}a&2&&(I("selectedIndex",b.selectedIndex||0)("disableRipple",b.disableRipple)("disablePagination",b.disablePagination),
Kg("aria-label",b.ariaLabel)("aria-labelledby",b.ariaLabelledby),x(2),Qg(b._tabs),x(2),G(b._isServer?4:-1),x(),uh("_mat-animation-noopable",b._animationsDisabled()),x(2),Qg(b._tabs))},dependencies:[HN,GN,lw,zx,jx,DN],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 hRc=function(){};var iRc=["tabListContainer"],jRc=["tabList"],kRc=["tabListInner"],lRc=["nextPaginator"],mRc=["previousPaginator"],nRc=["*"],LN=function(){var a=r(WQc,{optional:!0});CN.call(this);this._focusedItem=nh.apply(null,[null].concat(p([])));this._fitInkBarToContent=new Kn(!1);this.stretchTabs=!0;this._disableRipple=nh.apply(null,[!1].concat(p([])));this.color="primary";this.disablePagination=a&&a.disablePagination!=null?a.disablePagination:!1;this.fitInkBarToContent=a&&a.fitInkBarToContent!=null?a.fitInkBarToContent:
!1;this.stretchTabs=a&&a.stretchTabs!=null?a.stretchTabs:!0};Y(LN,CN);LN.\u0275dir=CN.\u0275dir;LN.prototype._itemSelected=function(){};
LN.prototype.ngAfterContentInit=function(){var a=this;this._inkBar=new QQc(this._items);this._items.changes.pipe(wg(null),yg(this._destroyed)).subscribe(function(){return oRc(a)});CN.prototype.ngAfterContentInit.call(this);this._keyManager.change.pipe(wg(null),yg(this._destroyed)).subscribe(function(){var b;return a._focusedItem.set(((b=a._keyManager)==null?void 0:b.activeItem)||null)})};LN.prototype.ngAfterViewInit=function(){CN.prototype.ngAfterViewInit.call(this)};
var oRc=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}};LN.prototype._getRole=function(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")};LN.prototype._hasFocus=function(a){var b;return((b=this._keyManager)==null?void 0:b.activeItem)===a};
nd.Object.defineProperties(LN.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)}}});LN.\u0275fac=function(a){return new (a||LN)};
LN.\u0275cmp=y({type:LN,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(a,b,c){a&1&&ih(c,MN,5);if(a&2){var d;lh(d=mh())&&(b._items=d)}},viewQuery:function(a,b){a&1&&(hh(iRc,7),hh(jRc,7),hh(kRc,7),hh(lRc,5),hh(mRc,5));if(a&2){var c;lh(c=mh())&&(b._tabListContainer=c.first);lh(c=mh())&&(b._tabList=c.first);lh(c=mh())&&(b._tabListInner=c.first);lh(c=mh())&&(b._nextPaginator=c.first);lh(c=mh())&&(b._previousPaginator=c.first)}},hostAttrs:[1,"mat-mdc-tab-nav-bar","mat-mdc-tab-header"],hostVars:17,
hostBindings:function(a,b){a&2&&(Lg("role",b._getRole()),th("--mat-tab-animation-duration",b.animationDuration),uh("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",$h],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",$h],animationDuration:"animationDuration",backgroundColor:"backgroundColor",disableRipple:[2,"disableRipple","disableRipple",$h],color:"color",tabPanel:"tabPanel"},exportAs:["matTabNavBar","matTabNav"],features:[Bg],attrs:["mat-tab-nav-bar",""],ngContentSelectors:nRc,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();ch();J(0,"div",5,0);N("click",function(){u(c);return w(b._handlePaginatorClick("before"))})("mousedown",
function(d){u(c);return w(b._handlePaginatorPress("before",d))})("touchend",function(){u(c);return w(b._stopInterval())});M(2,"div",6);K();J(3,"div",7,1);N("keydown",function(d){u(c);return w(b._handleKeydown(d))});J(5,"div",8,2);N("cdkObserveContent",function(){u(c);return w(b._onContentChanges())});J(7,"div",9,3);dh(9);K()()();J(10,"div",10,4);N("mousedown",function(d){u(c);return w(b._handlePaginatorPress("after",d))})("click",function(){u(c);return w(b._handlePaginatorClick("after"))})("touchend",
function(){u(c);return w(b._stopInterval())});M(12,"div",6);K()}a&2&&(uh("mat-mdc-tab-header-pagination-disabled",b._disableScrollBefore),I("matRippleDisabled",b._disableScrollBefore||b.disableRipple),x(10),uh("mat-mdc-tab-header-pagination-disabled",b._disableScrollAfter),I("matRippleDisabled",b._disableScrollAfter||b.disableRipple))},dependencies:[zx,yw],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 MN=function(){BN.call(this);var a=this;this._tabNavBar=r(LN);this.elementRef=r(Te);this._focusMonitor=r(jw);this._destroyed=new tg;this._isActive=!1;this._tabIndex=Zh.apply(null,[function(){return a._tabNavBar._focusedItem()===a?a.tabIndex:-1}].concat(p([])));this.disabled=!1;this._disableRipple=nh.apply(null,[!1].concat(p([])));this.tabIndex=0;this.id=r(Fi).getId("mat-tab-link-");r(Di).load(wx);var b=r(yx,{optional:!0}),c=r(new pv("tabindex"),{optional:!0});this.rippleConfig=b||{};this.tabIndex=
c==null?0:parseInt(c)||0;Ri()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0});this._tabNavBar._fitInkBarToContent.pipe(yg(this._destroyed)).subscribe(function(d){a.fitInkBarToContent=d})};Y(MN,BN);MN.\u0275dir=BN.\u0275dir;g=MN.prototype;g.focus=function(){this.elementRef.nativeElement.focus()};g.ngAfterViewInit=function(){this._focusMonitor.monitor(this.elementRef)};g.ngOnDestroy=function(){this._destroyed.next();this._destroyed.complete();BN.prototype.ngOnDestroy.call(this);this._focusMonitor.stopMonitoring(this.elementRef)};
g._handleFocus=function(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)};g._handleKeydown=function(a){if(a.keyCode===32||a.keyCode===13)this.disabled?a.preventDefault():this._tabNavBar.tabPanel&&(a.keyCode===32&&a.preventDefault(),this.elementRef.nativeElement.click())};g._getAriaControls=function(){var a;return this._tabNavBar.tabPanel?(a=this._tabNavBar.tabPanel)==null?void 0:a.id:this.elementRef.nativeElement.getAttribute("aria-controls")};
g._getAriaSelected=function(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")};g._getAriaCurrent=function(){return this.active&&!this._tabNavBar.tabPanel?"page":null};g._getRole=function(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")};
nd.Object.defineProperties(MN.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this._isActive},set:function(a){a!==this._isActive&&(this._isActive=a,oRc(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}}});
MN.\u0275fac=function(a){return new (a||MN)};
MN.\u0275cmp=y({type:MN,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&&(Lg("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()),uh("mat-mdc-tab-disabled",
b.disabled)("mdc-tab--active",b.active))},inputs:{active:[2,"active","active",$h],disabled:[2,"disabled","disabled",$h],disableRipple:[2,"disableRipple","disableRipple",$h],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:ai(a)}],id:"id"},exportAs:["matTabLink"],features:[Bg],attrs:["mat-tab-link",""],ngContentSelectors:nRc,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&&(ch(),M(0,"span",0)(1,"div",1),J(2,"span",2)(3,"span",3),dh(4),K()());a&2&&(x(),I("matRippleTrigger",b.elementRef.nativeElement)("matRippleDisabled",b.rippleDisabled))},dependencies:[zx],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 pRc=function(){this.id=r(Fi).getId("mat-tab-nav-panel-")};pRc.\u0275fac=function(a){return new (a||pRc)};pRc.\u0275cmp=y({type:pRc,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(a,b){a&2&&Lg("aria-labelledby",b._activeTabId)("id",b.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:nRc,decls:1,vars:0,template:function(a){a&1&&(ch(),dh(0))},encapsulation:2,changeDetection:0});var NN=function(){};NN.\u0275fac=function(a){return new (a||NN)};NN.\u0275mod=uf({type:NN});NN.\u0275inj=Dd({imports:[px,px]});var ON=function(a,b,c){this.options=a;this.changeDetectorRef=b;this.tabGroup=c;this.appearance=this.options.appearance};nd.Object.defineProperties(ON.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())}}});ON.\u0275fac=function(a){return new (a||ON)(of(PQc),of(Hv),of(KN))};
ON.\u0275dir=vf({type:ON,selectors:[["mat-tab-group"]],hostVars:4,hostBindings:function(a,b){a&2&&uh("gmat-mdc-tabs-primary",b.appearance==="primary")("gmat-mdc-tabs-secondary",b.appearance==="secondary")},inputs:{appearance:"appearance"},standalone:!1});var PN=function(a,b,c){this.options=a;this.changeDetectorRef=b;this.tabNav=c;if(this.options.disableGmatStyle)throw Error("Mc");this.appearance=this.options.appearance};
nd.Object.defineProperties(PN.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())}}});PN.\u0275fac=function(a){return new (a||PN)(of(PQc),of(Hv),of(LN))};
PN.\u0275dir=vf({type:PN,selectors:[["","mat-tab-nav-bar",""]],hostVars:4,hostBindings:function(a,b){a&2&&uh("gmat-mdc-tabs-primary",b.appearance==="primary")("gmat-mdc-tabs-secondary",b.appearance==="secondary")},inputs:{appearance:"appearance"},standalone:!1});var QN=function(){};QN.\u0275fac=function(a){return new (a||QN)};QN.\u0275mod=uf({type:QN});QN.\u0275inj=Dd({imports:[NN]});var RN=function(){};RN.\u0275fac=function(a){return new (a||RN)};RN.\u0275mod=uf({type:RN});RN.\u0275inj=Dd({imports:[px,Cx,kN,px]});var SN=function(){};SN.\u0275fac=function(a){return new (a||SN)};SN.\u0275mod=uf({type:SN});SN.\u0275inj=Dd({imports:[Bw,HC,wK,BG,GM,Ay,EM,RN,AN,QN,lM]});var hXa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hXa,n);g=hXa.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getScope=function(){return Rc(this,2)};g.setScope=function(a){return Hj(this,2,a)};g.setMaxResults=function(a){return Zj(this,5,a)};var Hq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Hq.messageId)};Y(Hq,n);Hq.prototype.getIt=function(){return W(this,hXa,1,Nc)};Hq.prototype.setIt=function(a){return X(this,hXa,1,a,Nc)};Hq.messageId="b.LookupSimilarIssuesRequest";var qRc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qRc,n);g=qRc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getScore=function(){return hm(this,2)};g.setScore=function(a){return Im(this,2,a)};var rRc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(rRc,n);var sRc=function(a){return Sj(a,oo,1,Bj())},tRc=function(a){return Sj(a,qRc,2,Bj())};var TN=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,TN.messageId)};Y(TN,n);TN.prototype.getIt=function(){return W(this,rRc,3,Nc)};TN.prototype.setIt=function(a){return X(this,rRc,3,a,Nc)};TN.messageId="b.LookupSimilarIssuesResponse";var uRc={},vRc=(uRc[lG.queryAtom]=!0,uRc),UN=function(){this.executor=r(PA)},wRc=function(a,b){return a.executor.post({url:"action/lookup_similar_issues",body:iXa(b),responseConstructor:TN}).pipe(C(function(c){var d=sRc(c.getIt()).map(xza);c=tRc(c.getIt()).map(function(e){return e.getScore()});return{similarIssues:d,scores:c}}))},xRc=function(a,b,c,d){d=d===void 0?new Set:d;d={maxResults:7,scope:op.apply(null,[b?np("-id",b):void 0,np("modified","365d")].concat(p(Array.from(d).map(function(e){return e.queryAtom})))),
scopeSortOrder:"vote_count desc"};c==null?d.issueId=Number(b):d.keyword=c;return wRc(a,d)},yRc=function(a,b,c,d){d=d===void 0?new Set:d;return wRc(a,{issueId:Number(b),maxResults:7,scope:op.apply(null,[np("-id",b),np("id",c)].concat(p(Array.from(d).map(function(e){return e.queryAtom}).filter(function(e){return vRc[e]}))))})};UN.\u0275fac=function(a){return new (a||UN)};UN.\u0275prov=Cd({token:UN,factory:UN.\u0275fac,providedIn:"root"});var zRc=gk(function(a){var b,c;return(c=a==null?void 0:(b=a.aggregatedData)==null?void 0:b.voteCount)!=null?c:0},hk),ARc=new Set([lG]),VN=function(){this.issueFullFridge=r(TE);this.issueFridge=r(iE);this.similarIssuesApi=r(UN);this.analytics=r(RE);this.recentlyViewedIds$=this.issueFridge.watchMany({custom:"viewed",pageSize:50}).pipe(C(function(a){return a.results.map(function(b){return b.issueId})}));this.componentIdToRecentCanonicals=new Map},BRc=function(a,b,c){c=c===void 0?ARc:c;var d=xRc(a.similarIssuesApi,
b,void 0,c),e=Nf([]).pipe(ng(5E3));e=Nka(e,a.recentlyViewedIds$).pipe(xg(function(f){return yRc(a.similarIssuesApi,b,f,c)}));return Uf([d,e]).pipe(C(function(f){var h=l(f);f=h.next().value;h=h.next().value;return jXa(f,h)}),C(function(f){return f.similarIssues.map(function(h,k){return Object.assign({},h,{score:f.scores[k]})})}),C(function(f){return f.slice(0,7)}),hg(function(f){Xj("IssuePickerSearchService::searchSimilarIssuesById() error: ",f);var h,k,q=(k=f==null?void 0:(h=f.error)==null?void 0:
h.status)!=null?k:f==null?void 0:f.status;a.analytics.trackEvent("issue-picker-svc","error","by-id",q);return Nf([])}))},DRc=function(a,b,c,d,e){c=c===void 0?ARc:c;return b.trim()?d==="canonical"?xRc(a.similarIssuesApi,e==null?void 0:e.id,b,c).pipe(C(function(f){return f.similarIssues.map(function(h,k){return Object.assign({},h,{score:f.scores[k]})})}),hg(function(f){Xj("IssuePickerSearchService::searchSimilarIssues() error: ",f);var h,k,q=(k=f==null?void 0:(h=f.error)==null?void 0:h.status)!=null?
k:f==null?void 0:f.status;a.analytics.trackEvent("issue-picker-svc","error","by-text",q);return Nf([])})):CRc(a,b):Nf(void 0)};
VN.prototype.search=function(a,b,c,d){var e=this;if(!a.trim())return Nf(void 0);if(b==="canonical"){b=ERc(this,a,d);d=FRc(this,d).pipe(xg(function(h){return e.issueFridge.watchMany({filter:op(a,np("-id",c==null?void 0:c.id),np("status","open"),np("componentid",h)),pageSize:10})}),C(function(h){return h==null?void 0:h.results}));var f=this.issueFridge.watchMany({filter:op(a,np("-id",c==null?void 0:c.id)),pageSize:10,sort:"modified_time:desc"}).pipe(C(function(h){return h==null?void 0:h.results}),wg([]));
return Uf([b,d,f]).pipe(C(function(h){return rj(h.flat(),function(k){return k.issueId})}),C(function(h){return h.slice(0,10)}),C(function(h){return zRc(h,"DESCENDING")}))}return CRc(this,a)};
var CRc=function(a,b){return a.issueFridge.watchMany({filter:b,pageSize:10}).pipe(C(function(c){return c==null?void 0:c.results}))},ERc=function(a,b,c){return c&&c!=="0"?GRc(a,c).pipe(xg(function(d){return d.length===0?Nf([]):a.issueFridge.watchMany({filter:op(b,np("id",d),np("status","open")),pageSize:10}).pipe(C(function(e){return e==null?void 0:e.results}))})):Nf([])},GRc=function(a,b){if(!b||b==="0")return Nf([]);if(a.componentIdToRecentCanonicals.has(b))return a.componentIdToRecentCanonicals.get(b);
var c=a.issueFridge.watchMany({filter:op(np("componentid",b,!0),np("status","duplicate")),sort:"modified_time:desc",pageSize:250}).pipe(C(function(d){return d==null?void 0:d.results}),C(function(d){return d.map(function(e){return e.snapshot[0].duplicateOfIssueId})}),C(function(d){return sj(d.filter(Qj))}),ug({bufferSize:1,refCount:!0}));a.componentIdToRecentCanonicals.set(b,c);return c},FRc=function(a,b){return b&&b!=="0"?GRc(a,b).pipe(xg(function(c){return a.issueFullFridge.watchSet(c)}),C(function(c){return c.map(function(d){return d.snapshot[0].componentId})}),
C(function(c){return[b].concat(p(c.filter(Qj)))}),C(sj),ug({bufferSize:1,refCount:!0})):Nf([])};VN.\u0275fac=function(a){return new (a||VN)};VN.\u0275prov=Cd({token:VN,factory:VN.\u0275fac,providedIn:"root"});var WN=function(){};WN.\u0275fac=function(a){return new (a||WN)};WN.\u0275cmp=y({type:WN,selectors:[["b-async-data-placeholder"]],inputs:{isReady:"isReady"},standalone:!1,ngContentSelectors:["*"],decls:2,vars:1,consts:[[1,"animated-loading-bar"]],template:function(a,b){a&1&&(ch(),F(0,kXa,1,0)(1,lXa,1,0,"div",0));a&2&&G(b.isReady?0:1)},encapsulation:2});var XN=function(){this.mode="datetime";this.isDataLoaded=!1};XN.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};XN.\u0275fac=function(a){return new (a||XN)};
XN.\u0275cmp=y({type:XN,selectors:[["b-issue-created-time-cell"]],inputs:{issue:"issue",mode:"mode"},standalone:!1,features:[ov],decls:2,vars:2,consts:[[1,"nowrap",3,"isReady"],[3,"mode","timestamp","paddingLeftPx"]],template:function(a,b){a&1&&(J(0,"b-async-data-placeholder",0),F(1,mXa,1,3,"b-formatted-date-time",1),K());a&2&&(I("isReady",b.isDataLoaded),x(),G(b.createdTime?1:-1))},dependencies:[WN,EL],encapsulation:2,changeDetection:0});var YN=function(){this.relayOnly=!1;this.keydown$=new tg};YN.prototype.onKeydown=function(a){this.relayOnly||this.keydown$.next(a)};nd.Object.defineProperties(YN.prototype,{tabindex:{configurable:!0,enumerable:!0,get:function(){return this.relayOnly?null:"0"}}});YN.\u0275fac=function(a){return new (a||YN)};
YN.\u0275dir=vf({type:YN,selectors:[["","onedevKeyEventReceiver",""]],hostVars:1,hostBindings:function(a,b){a&1&&N("keydown",function(c){return b.onKeydown(c)});a&2&&Lg("tabindex",b.tabindex)},inputs:{relayOnly:"relayOnly"},standalone:!1});var HRc=0,ZN=function(a){this.keyEventReceiver=a;this.id="onedev-popup-panel-"+HRc;this.closePanel$=new sg(1);HRc++};ZN.prototype.processKeydown=function(a){this.keyEventReceiver&&this.keyEventReceiver.keydown$.next(a);var b=a.code;(b==="Escape"||a.altKey&&b==="ArrowUp")&&this.closePanel$.next()};ZN.\u0275fac=function(a){return new (a||ZN)(of(YN,8))};
ZN.\u0275cmp=y({type:ZN,selectors:[["onedev-popup-panel"]],viewQuery:function(a,b){a&1&&hh(eh,7);if(a&2){var c;lh(c=mh())&&(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&&(ch(),D(0,nXa,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 $N=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 nq;this.closed=new nq;this.isOpen=!1;this.destroyed$=new sg(1);this.closingActionsSubscription=yf.EMPTY};$N.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
$N.prototype.open=function(){var a=this;this.disabled||this.isOpen||(this.overlayRef=this.createOverlay(),this.templatePortal=new gx(this.popupPanel.templateRef,this.viewContainerRef),this.overlayRef.attach(this.templatePortal),this.closingActionsSubscription=IRc(this).pipe(yg(this.destroyed$)).subscribe(function(){a.close()}),this.trapFocus(),this.isOpen=!0,this.opened.emit())};
$N.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()}};
$N.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 IRc=function(a){var b=a.overlayRef.backdropClick(),c=a.overlayRef._detachments,d=a.popupPanel.closePanel$;return a.closeOnBackdropClick?dg(b,c,d):dg(c,d)};
$N.prototype.trapFocus=function(){this.overlayRef&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.hostElement),this.focusTrap.focusInitialElement())};
$N.prototype.getPositionStrategy=function(){return Yw(Zw($w(dx(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"}])};$N.prototype.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
nd.Object.defineProperties($N.prototype,{onedevPopupPanelTriggerFor:{configurable:!0,enumerable:!0,get:function(){return this.popupPanel},set:function(a){this.popupPanel=a}}});$N.\u0275fac=function(a){return new (a||$N)(of(lx),of(Te),of(fh),of(Gw),of(Hv))};
$N.\u0275dir=vf({type:$N,selectors:[["","onedevPopupPanelTrigger",""]],hostAttrs:["aria-haspopup","true"],hostVars:3,hostBindings:function(a,b){a&2&&Lg("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 JRc=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)};JRc.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};
JRc.prototype.destroy=function(){var a=this._textarea;a&&(a.remove(),this._textarea=void 0)};var aO=function(){this._document=r(ui)};aO.prototype.copy=function(a){a=new JRc(a,this._document);var b=a.copy();a.destroy();return b};aO.\u0275fac=function(a){return new (a||aO)};aO.\u0275prov=Cd({token:aO,factory:aO.\u0275fac,providedIn:"root"});new le("CDK_COPY_TO_CLIPBOARD_CONFIG");var bO=function(){Z.apply(this,arguments);var a=this;this.activeSession=r(Bs);this.trackerHelpers=r(iK);this.clipboard=r(aO);this.butterBar=r(GJ);this.componentId=void 0;this.issueTitle=this.issueId="";this.disabled=this.isExternalIssue=!1;this.showCopyOptions=this.enableHotkeys=!0;this.isOpen=!1;this.HOTKEYS=sp;this.copyIssueId=Dmc(function(){a.clipboard.copy(a.issueId);Kq(a.butterBar,"Issue ID copied",2E3)})};Y(bO,Z);bO.\u0275dir=Z.\u0275dir;var Iq=function(a,b){a.clipboard.copy(b.value);a.trigger.close()};
bO.prototype.getIssueUrl=function(){return this.getAppBaseUrl(this.isExternalIssue)};bO.prototype.getAppBaseUrl=function(a){return or(this.trackerHelpers,this.issueId,void 0,a===void 0?!1:a)};bO.\u0275fac=function(){var a;return function(b){return(a||(a=Re(bO)))(b||bO)}}();
bO.\u0275cmp=y({type:bO,selectors:[["b-issue-id-picker"]],viewQuery:function(a,b){a&1&&hh($N,5);if(a&2){var c;lh(c=mh())&&(b.trigger=c.first)}},inputs:{componentId:"componentId",issueId:"issueId",issueTitle:"issueTitle",isExternalIssue:"isExternalIssue",disabled:"disabled",enableHotkeys:"enableHotkeys",showCopyOptions:"showCopyOptions"},standalone:!1,features:[Bg],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&&(J(0,"button",8),N("click",function(){return b.copyIssueId()})("mousedown",function(){return b.copyIssueId()}),R(1),F(2,oXa,1,0,"mat-icon",9),K(),F(3,zXa,6,5));a&2&&(uh("square-right",b.showCopyOptions),Lg("aria-label","Copy issue number "+b.issueId),x(),T(" ",b.issueId," "),x(),G(b.showCopyOptions?-1:2),x(),G(b.showCopyOptions?3:-1))},dependencies:[sw,FC,RG,oG,Kx,zG,xG,ZN,$N],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 cO=function(){};cO.prototype.ngOnInit=function(){};cO.prototype.onClick=function(a){a.stopPropagation()};cO.\u0275fac=function(a){return new (a||cO)};
cO.\u0275cmp=y({type:cO,selectors:[["b-issue-id-cell"]],hostBindings:function(a,b){a&1&&N("click",function(c){return b.onClick(c)})},inputs:{id:"id"},standalone:!1,decls:2,vars:2,consts:[[3,"isReady"],[3,"issueId","showCopyOptions"]],template:function(a,b){a&1&&(J(0,"b-async-data-placeholder",0),F(1,AXa,1,2,"b-issue-id-picker",1),K());a&2&&(I("isReady",!!b.id),x(),G(b.id?1:-1))},dependencies:[WN,bO],encapsulation:2,changeDetection:0});var dO=function(){this.IssuePriority=Tnc},KRc=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""}};dO.\u0275fac=function(a){return new (a||dO)};
dO.\u0275cmp=y({type:dO,selectors:[["b-issue-priority-display"]],inputs:{issuePriority:"issuePriority"},standalone:!1,decls:2,vars:3,consts:[[1,"p-chip"]],template:function(a,b){a&1&&(J(0,"span",0),R(1),K());a&2&&(vh(KRc(b)),x(),a=b.issuePriority,T(" ",a==null?"--":Ooc[a]," "))},styles:["/*# sourceMappingURL=issue_priority_display.css.map */"],changeDetection:0});var eO=function(){this.priority=this.issue=null;this.isDataLoaded=!1};eO.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};eO.\u0275fac=function(a){return new (a||eO)};
eO.\u0275cmp=y({type:eO,selectors:[["b-issue-priority-cell"]],inputs:{issue:"issue"},standalone:!1,features:[ov],decls:2,vars:2,consts:[[1,"nowrap",3,"isReady"],[3,"issuePriority"]],template:function(a,b){a&1&&(J(0,"b-async-data-placeholder",0),F(1,BXa,1,1,"b-issue-priority-display",1),K());a&2&&(I("isReady",b.isDataLoaded),x(),G(b.priority?1:-1))},dependencies:[WN,dO],encapsulation:2,changeDetection:0});var fO=function(){this.changelistFridge=r(nB);this.IssueStatus=ioc;this.STATUS_JS_FULL_TEXT=uj;this.STATUS_JS_TERSE=Loc;this.isFixed=cwa;this.issue=null;this.isDataLoaded=!1};fO.prototype.ngOnChanges=function(){if(this.showPendingFix&&this.issue){var a=this.changelistFridge.peekAllRecords(),b;this.pendingFixCl=FXa(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};
fO.\u0275fac=function(a){return new (a||fO)};
fO.\u0275cmp=y({type:fO,selectors:[["b-issue-status-cell"]],inputs:{issue:"issue",showPendingFix:"showPendingFix"},standalone:!1,features:[ov],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&&(J(0,"b-async-data-placeholder",0),F(1,CXa,2,8,"a",1)(2,EXa,1,1),K());a&2&&(I("isReady",b.isDataLoaded),x(),G(b.pendingFixCl&&!b.isFixed(b.issue)?1:2))},dependencies:[WN,
zG,xG],encapsulation:2,changeDetection:0});var gO=function(){this.el=r(Te);this.bFocus=!0;this.nativeElement=this.el.nativeElement};gO.prototype.ngOnInit=function(){LRc(this)};gO.prototype.ngOnChanges=function(){LRc(this)};var LRc=function(a){setTimeout(function(){a.bFocus&&a.nativeElement.focus()})};gO.\u0275fac=function(a){return new (a||gO)};gO.\u0275dir=vf({type:gO,selectors:[["","bFocus",""]],inputs:{bFocus:"bFocus"},standalone:!1,features:[ov]});var hO=function(){};hO.\u0275fac=function(a){return new (a||hO)};hO.\u0275mod=uf({type:hO});
hO.\u0275inj=Dd({});var iO=function(){this.userPreferencesManager=r(iG);this.codefont$=this.userPreferencesManager.codeFont$};iO.\u0275fac=function(a){return new (a||iO)};iO.\u0275prov=Cd({token:iO,factory:iO.\u0275fac,providedIn:"root"});var MRc=new le("formatting mode",{factory:function(){return"UNSPECIFIED_FORMATTING_MODE"}});var NRc=["child"],jO=function(){this.codefont=r(iO)};jO.prototype.ngOnInit=function(){};jO.prototype.ngOnChanges=function(){nl(this.child.nativeElement,this.content.content)};jO.\u0275fac=function(a){return new (a||jO)};
jO.\u0275cmp=y({type:jO,selectors:[["b-literal-format-presenter"]],viewQuery:function(a,b){a&1&&hh(NRc,7);if(a&2){var c;lh(c=mh())&&(b.child=c.first)}},inputs:{content:"content"},standalone:!1,features:[Fh([{provide:MRc,useValue:"LITERAL"}]),ov],decls:3,vars:4,consts:[["child",""],[1,"type-m","child"]],template:function(a,b){a&1&&(M(0,"div",1,0),U(2,"async"));a&2&&uh("codefont",V(2,2,b.codefont.codefont$))},dependencies:[Tv],styles:[".child[_ngcontent-%COMP%] { white-space: pre-wrap; }"],changeDetection:0});var ORc=["el"],kO=function(){this.clipboard=r(aO);this.snackBar=r(DJ);this.domSafe=r(UK);this.scrollStrategy=r(Xw).close();this.opened=!1};kO.prototype.getNgContentParentEl=function(){return this.el.nativeElement};kO.prototype.hide=function(){this.opened=!1};kO.prototype.copyToClipboard=function(){this.clipboard.copy(this.originalHref);this.snackBar.open("URL copied","",{duration:2E3})};kO.\u0275fac=function(a){return new (a||kO)};
kO.\u0275cmp=y({type:kO,selectors:[["b-broken-link"]],viewQuery:function(a,b){a&1&&hh(ORc,7);if(a&2){var c;lh(c=mh())&&(b.el=c.first)}},inputs:{originalHref:"originalHref"},standalone:!1,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();ch();J(0,"a",2,0);N("click",function(d){u(c);d.preventDefault();d.stopPropagation();b.opened=!0;return w()});J(2,
"b-glue");M(3,"mat-icon",3);K();J(4,"span",null,1);dh(6);K()();D(7,HXa,1,1,"ng-template",4);N("overlayOutsideClick",function(){u(c);return w(b.hide())})("detach",function(){u(c);return w(b.hide())})}a&2&&(a=Q(1),x(7),I("cdkConnectedOverlayPush",!0)("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",b.opened)("cdkConnectedOverlayScrollStrategy",b.scrollStrategy))},dependencies:[sw,FC,nx,mx,pH,oG,Jx,zG,xG],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 PRc=function(){this.checked=!1;this.disabled=!0;this.startPos="";this.checkedChange=new LE};PRc.\u0275fac=function(a){return new (a||PRc)};
PRc.\u0275cmp=y({type:PRc,selectors:[["b-checkbox-widget"]],inputs:{checked:"checked",disabled:"disabled",startPos:"startPos"},outputs:{checkedChange:"checkedChange"},standalone:!1,decls:1,vars:2,consts:[[3,"change","disabled","checked"]],template:function(a,b){a&1&&(J(0,"mat-checkbox",0),N("change",function(c){return b.checkedChange.emit(c.checked)}),K());a&2&&I("disabled",b.disabled)("checked",b.checked)},dependencies:[gM,hM],encapsulation:2,changeDetection:0});var QRc=["el"],LXa=function(a,b){return b.label},lO=function(){Z.apply(this,arguments);this.domSafe=r(UK);this.clipboard=r(aO);this.snackBar=r(DJ);this.activeSession=r(Bs);this.contextSensitiveRegistry=r(LK);this.formattingMode=r(MRc);this.analytics=r(RE);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.scrollStrategy=r(Xw).close();this.urls=[];this.enableNexusLinking=OA(this.activeSession,"enableNexusLinking")&&this.activeSession.isInternalSession();this.opened=!1};Y(lO,Z);
lO.\u0275dir=Z.\u0275dir;
lO.prototype.ngOnInit=function(){this.urls=[{label:this.originalHref,originalHref:this.originalHref,href:this.href}];if(this.enableNexusLinking){var a=hp(this.contextSensitiveRegistry.getIssueId());a:{var b=this.originalHref;try{var c=null,d=(new URL(b)).hostname;switch(d.includes("analog")?"Analog":d.includes("sherlog")?"Sherlog":d.includes("eye3")?"Third Eye":"PRODUCT_UNSPECIFIED"){case "Analog":var e=new URL("https://nexus.corp.google.com/debug/dashboard");var f=new URL(b);if(f.searchParams.has("text_query")){var h=
f.searchParams.get("text_query");var k=f.searchParams.get("time_range");if(k==null)var q=[];else{var v=k.split("/");if(v.length!==2)q=[];else{var A=(new Date(v[1])).getTime()*1E3;q=[kd("start_time","=",[(new Date(v[0])).getTime()*1E3]),kd("end_time","=",[A])]}}f=[];var E=f.concat,H=p(q);q=[];for(var L,O=[],S=l(h.matchAll(/NOT\s\(source_location.file = "(?<file>[^)]+)" source_location.line = "(?<line>[0-9]+)"\)/gm)),aa=S.next();!aa.done;aa=S.next()){var ka=aa.value;O.push(ka[1]+":"+ka[2])}(L=O.length>
0?kd("site_path","!=",O):null)&&q.push(L);S=void 0;for(var na=l(h.matchAll(/(?<key>[^\s=!~]+)[\s]*(?<operator>=~?|![=~])[\s]*(?<value>"[^"\\]*(?:\\.[^"\\]*)*"|[^\s"]+)/gm)),za=na.next();!za.done;za=na.next()){var Na=za.value,Pa=Na[1];var hb=Na[2];var ua=baa()(hb)?hb:void 0;h=ua;var Ha=Na[3];if(Ha.length>=2&&Ha.charAt(0)==='"'&&Ha.charAt(Ha.length-1)==='"')var Ia=Ha.substring(1,Ha.length-1);else if(Ha==="true"||Ha==="false")Ia=Ha==="true";else{var tb=Number(Ha);Ia=lba(tb)?tb:void 0}aa=Ia;if(h)if(Pa!==
"source_location.file"||L){Pa==="source_location.line"&&S&&(S=kd("site_path",S.operator,[S.values[0]+":"+aa]));var rb=lea(Pa);rb&&q.push(kd(rb,h,[fea.includes(rb)?Number(aa):aa]))}else S=kd("site_path",h,[aa])}S&&q.push(S);var dc=E.call(f,H,p(q))}else{if(f.searchParams.get("storage")==="borglocal")throw Error("da");E=[];O=l(f.searchParams);for(var bc=O.next();!bc.done;bc=O.next()){var Ac=l(bc.value),ic=Ac.next().value,ye=Ac.next().value,Bb=kea(ic,ye,f.searchParams);Bb&&E.push.apply(E,p(Bb))}dc=E}e.searchParams.set("filters",
eea(dc));e.searchParams.set("tab","rdl");c=e;break;case "Sherlog":if(b.startsWith("http://sherlog/_")){var Sb=new URL("https://nexus.corp.google.com/trace/"+b.replace("http://sherlog/_",""));Sb.searchParams.set("action","expandsherlog");c=Sb}else{var bb=new URL(b);if(bb.pathname.includes("workflow")){var ec=bb.searchParams,wc,pd=encodeURIComponent((wc=ec.get("dataid"))!=null?wc:""),Lb=new URL("https://nexus.corp.google.com/trace/"+pd),Dc=Era(bb);Lb.searchParams.set("account",Dc.account);Lb.searchParams.set("account_type",
Dc.accountType);var Hc;Lb.searchParams.set("version",(Hc=ec.get("version"))!=null?Hc:"");var Od;Lb.searchParams.set("pipeline",(Od=ec.get("config"))!=null?Od:"");Lb.searchParams.set("trace_type","sherlog");c=Lb}else c=null}break;default:var Hd="";break a}a=a!=null?a:void 0;c==null?Hd="":(c.searchParams.set("origin_type","buganizer"),a&&(a.startsWith("b/")||(a="b/"+a),c.searchParams.set("origin_id",a)),Hd=c.toString());break a}catch(Ff){Hd="";break a}Hd=void 0}Hd&&this.urls.push({label:"Open in Nexus",
originalHref:Hd,href:Hd,icon:"nexus-logo"})}};lO.prototype.ngAfterViewInit=function(){var a=this;this.cdkConnectedOverlay.attach.pipe(yg(this.destroyed$)).subscribe(function(){var b=a.cdkConnectedOverlay.overlayRef.overlayElement;b&&(b=b.querySelector("a"))&&b.focus()})};lO.prototype.getNgContentParentEl=function(){return this.el.nativeElement};
var RRc=function(a){if(a.urls.length>1)return!0;if(a.formattingMode==="PLAIN")return!1;var b=a.getNgContentParentEl(),c,d;if(d=zva(b))a=a.originalHref,b=(c=b.textContent)!=null?c:"",d=b===a||a.startsWith("mailto:")&&a.substring(7)===b?!0:!1;return!d};lO.prototype.hide=function(){this.opened=!1};lO.prototype.openLink=function(a,b){Ava(a)||(a.preventDefault(),a.stopPropagation(),Jq(this.domSafe,b))};lO.prototype.copyToClipboard=function(a){this.clipboard.copy(a);this.snackBar.open("URL copied","",{duration:2E3})};
var SRc=function(a){var b="externalLinkPopup";a.urls.find(function(c){return c.label==="Open in Nexus"})&&(b="externalLinkPopupNexus");a.analytics.trackEvent("issue","click",b)};lO.\u0275fac=function(){var a;return function(b){return(a||(a=Re(lO)))(b||lO)}}();
lO.\u0275cmp=y({type:lO,selectors:[["b-external-hyperlink-widget"]],viewQuery:function(a,b){a&1&&(hh(QRc,7),hh(nx,7));if(a&2){var c;lh(c=mh())&&(b.el=c.first);lh(c=mh())&&(b.cdkConnectedOverlay=c.first)}},inputs:{originalHref:"originalHref",href:"href"},standalone:!1,features:[Bg],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();ch();J(0,"a",2,0);N("click",function(d){u(c);Ava(d)||(d.preventDefault(),d.stopPropagation(),RRc(b)?(SRc(b),b.opened=!0):b.openLink(d,b.href));return w()});F(2,IXa,2,0,"b-glue");J(3,"span",null,1);dh(5);K()();D(6,NXa,1,1,"ng-template",3);N("detach",function(){u(c);return w(b.hide())})("overlayOutsideClick",function(){u(c);return w(b.hide())})}a&2&&(a=Q(1),uh("needs-contextual-popup",RRc(b)),I("href",b.originalHref,hf)("rel",b.EXTERNAL_LINK_REL),x(2),G(RRc(b)?
2:-1),x(4),I("cdkConnectedOverlayPush",!0)("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",b.opened)("cdkConnectedOverlayScrollStrategy",b.scrollStrategy))},dependencies:[sw,FC,nx,mx,pH,oG,Jx,zG,xG],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 mO=function(){this.session=r(Bs);this.userPreferencesManager=r(iG);this.textDisplayPreferences$=this.userPreferencesManager.preferences$.pipe(C(function(a){return a.textDisplayPreferences?a.textDisplayPreferences:{}}),og());this.textDisplayPreferences$.pipe(C(function(a){return a.lastPublishMode==="MARKDOWN_FORMATTING_MODE"}),og());this.commentDisplayOverride$=this.textDisplayPreferences$.pipe(C(function(a){return a.commentDisplayOverride}),og())};mO.\u0275fac=function(a){return new (a||mO)};
mO.\u0275prov=Cd({token:mO,factory:mO.\u0275fac,providedIn:"root"});var TRc=new le("IssueCard");var nO=function(){};nO.prototype.visit=function(){};nO.\u0275fac=function(a){return new (a||nO)};nO.\u0275prov=Cd({token:nO,factory:nO.\u0275fac,providedIn:"root"});var URc=["el"],oO=function(){this.viewContainerRef=r(fh)};oO.\u0275fac=function(a){return new (a||oO)};oO.\u0275dir=vf({type:oO,selectors:[["","issueCardHost",""]],standalone:!1});var pO=function(){Z.apply(this,arguments);this.issueReferenceResolver=r(nO);this.issueCard=r(TRc,{optional:!0});this.hovercardReady=new sg(1)};Y(pO,Z);pO.\u0275dir=Z.\u0275dir;pO.prototype.ngOnInit=function(){};
pO.prototype.ngAfterViewInit=function(){var a=this;this.issueCardHost.changes.pipe(yg(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(mg(1),yg(a.destroyed$)).subscribe(a.hovercardReady),b.changeDetectorRef.detectChanges())})};
pO.prototype.visit=function(a){if(!Ava(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})}};pO.\u0275fac=function(){var a;return function(b){return(a||(a=Re(pO)))(b||pO)}}();
pO.\u0275cmp=y({type:pO,selectors:[["b-issue-reference-widget"]],viewQuery:function(a,b){a&1&&(hh(URc,7),hh(oO,5));if(a&2){var c;lh(c=mh())&&(b.el=c.first);lh(c=mh())&&(b.issueCardHost=c)}},inputs:{href:"href",issueId:"issueId",commentNumber:"commentNumber"},standalone:!1,features:[Bg],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();ch();J(0,"onedev-hovercard",null,0);D(2,OXa,2,1,"div",2);K();J(3,"a",3,1);N("click",function(d){u(c);return w(b.visit(d))});dh(5);K()}a&2&&(a=Q(1),x(3),I("onedevHovercardTrigger",a)("onedevHovercardActive",!!b.issueCard)("href",b.href,hf))},dependencies:[DI,EI,JI,FI,oO],encapsulation:2,changeDetection:0});var qO=function(){this.activeSession=r(Bs);this.isMentioningMe=!1};qO.prototype.ngOnInit=function(){this.activeSession.isInternalSession()?this.username=this.email.replace(/@google.com$/,""):this.username=this.email};qO.\u0275fac=function(a){return new (a||qO)};
qO.\u0275cmp=y({type:qO,selectors:[["b-mention-chip-widget"]],inputs:{email:"email",isMentioningMe:"isMentioningMe"},standalone:!1,decls:6,vars:5,consts:[["el",""],["card",""],[1,"mention",3,"onedevHovercardTrigger"],[3,"email"]],template:function(a,b){a&1&&(J(0,"span",2,0),R(2),K(),J(3,"onedev-hovercard",null,1),M(5,"b-issue-person-card",3),K());a&2&&(a=Q(4),uh("me",b.isMentioningMe),I("onedevHovercardTrigger",a),x(2),T("@",b.username),x(3),I("email",b.email))},dependencies:[WK,DI,JI],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 rO=function(){this.content=Jr;this.canEditComment=!1;this.checkboxChange=new LE;this.appRef=r(Wh);this.flags=r(mO);this.session=r(Bs);this.viewContainerRef=r(fh);this.elementRef=r(Te);this.destroyRef=r(Gg);this.allComponentRefs=[]};
rO.prototype.ngOnChanges=function(){VRc(this);nl(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"))&&OKa(f)&&d&&zva(d)&&f===d.textContent&&(e=d.nextSibling,WRc(this,d,f,void 0,b),f=void 0,(f=e)!=null&&f.textContent&&(f=e.textContent.match(/(^[^\w]+)/))))f=
f[1],e.textContent=e.textContent.substring(f.length),e=document.createElement("span"),e.textContent=f,d.insertAdjacentElement("afterend",e);c=a.querySelectorAll("*[data-b-widget]");for(d=0;d<c.length;d++)switch(e=c[d],e.dataset.bWidget){case "image":f=e;e=b;var h=f.dataset.bImgSrc,k=f.dataset.bImgRedirectedSrc;PXa(f);if(h){var q=f.dataset.bImgAlt;if(OKa(h))WRc(this,f,h,q,e,!0);else if(OA(this.flags.session,"enableMarkdownInlineImages"))e=this.createComponent(vH,f,e).instance,e.src=h,q&&(e.alt=q);
else{var v=document.createElement("a");q?v.appendChild(document.createTextNode(q)):v.appendChild(document.createTextNode(h));f.appendChild(v);XRc(this,v,h,k||h,e)}}break;case "checkbox":f=b;q=e.dataset.bCheckboxChecked!=null;PXa(e);YRc(this,e,q,f);break;case "url":f=b;q=e.dataset.bOriginalHref;h=e.dataset.bRedirectedHref;q&&h&&(e.removeAttribute("href"),XRc(this,e,q,h,f));break;case "broken-url":if(q=e.dataset.bOriginalHref)for(f=e,e=Array.from(f.childNodes),f=this.createComponent(kO,f,b).instance,
f.originalHref=q,f=f.getNgContentParentEl(),e=l(e),q=e.next();!q.done;q=e.next())f.appendChild(q.value);break;case "mention":f=void 0;q=e;h=b;e="";((f=q.textContent)==null?void 0:f[0])==="@"&&(e=q.textContent.slice(1));PXa(q);f=this.createComponent(qO,q,h).instance;f.email=e;f.isMentioningMe=this.session.getUserEmail()===e;break;case "issue-reference":if(q=e.href,h=e.dataset.bIssueId,k=e.dataset.bCommentNumber,q&&h){f=void 0;v=Number(k);k=Array.from(e.childNodes);var A=document.createElement("span");
(f=e.parentNode)==null||f.insertBefore(A,e);f=this.createComponent(pO,A,b).instance;f.href=q;f.issueId=h;f.commentNumber=v;f=f.el.nativeElement;q=l(k);for(h=q.next();!h.done;h=q.next())f.appendChild(h.value);e.remove()}}b=a.querySelectorAll("a");for(c=0;c<b.length;c++)d=b[c],d.getAttribute("target")||d.setAttribute("target","_self");b=a.querySelectorAll("table");for(c=0;c<b.length;c++)d=b[c],d.parentNode&&(e=document.createElement("div"),e.classList.add("table-overflow"),e.tabIndex=-1,d.parentNode.insertBefore(e,
d),e.appendChild(d));a=l(a.querySelectorAll("pre"));for(b=a.next();!b.done;b=a.next())b.value.tabIndex=-1};rO.prototype.ngOnDestroy=function(){VRc(this)};
var WRc=function(a,b,c,d,e,f){f=f===void 0?!1:f;var h=b;b instanceof HTMLAnchorElement&&(h=document.createElement("span"),b.insertAdjacentElement("afterend",h));a=a.createComponent(xH,h,e).instance;a.src=c;a.alt=d;a.isMarkdownImage=f},YRc=function(a,b,c,d){var e,f=(e=b.dataset.bCheckboxStartpos)!=null?e:"";b=a.createComponent(PRc,b,d).instance;b.checked=c;b.disabled=a.session.userRequiresCaptcha()||!a.canEditComment||!OA(a.session,"enableInteractiveMarkdownCheckboxes");b.startPos=f;b.checkedChange.pipe(lp(a.destroyRef)).subscribe(function(h){a.checkboxChange.emit({checked:h,
startPos:f})})},XRc=function(a,b,c,d,e){var f=Array.from(b.childNodes);a=a.createComponent(lO,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)};rO.prototype.createComponent=function(a,b,c){a=koa(a,{environmentInjector:this.appRef.injector,elementInjector:c.injector});b.appendChild(a.location.nativeElement);Ehc(this.appRef,a.hostView);this.allComponentRefs.push(a);return a};
var VRc=function(a){for(var b=l(a.allComponentRefs),c=b.next();!c.done;c=b.next())c.value.destroy();a.allComponentRefs=[]};rO.\u0275fac=function(a){return new (a||rO)};rO.\u0275dir=vf({type:rO,selectors:[["","applyDynamicComponents",""]],inputs:{content:[0,"applyDynamicComponents","content"],canEditComment:"canEditComment"},outputs:{checkboxChange:"checkboxChange"},features:[ov]});var sO=function(){this.codefont=r(iO);this.canEditComment=!1;this.checkboxChange=new LE};sO.prototype.ngOnInit=function(){};sO.\u0275fac=function(a){return new (a||sO)};
sO.\u0275cmp=y({type:sO,selectors:[["b-markdown-format-presenter"]],inputs:{content:"content",canEditComment:"canEditComment"},outputs:{checkboxChange:"checkboxChange"},standalone:!1,features:[Fh([{provide:MRc,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();J(0,"div",1,0);U(2,"async");N("checkboxChange",function(d){u(c);return w(b.checkboxChange.emit(d))});
K()}a&2&&(uh("codefont",V(2,4,b.codefont.codefont$)),I("applyDynamicComponents",b.content.content)("canEditComment",b.canEditComment))},dependencies:[rO,Tv],styles:[':root{--blue-50: #e8f0fe;--blue-100: #d2e3fc;--blue-200: #aecbfa;--blue-300: #8ab4f8;--blue-400: #669df6;--blue-500: #4285f4;--blue-600: #1a73e8;--blue-700: #1967d2;--blue-800: #185abc;--blue-900: #174ea6;--blue: var(--blue-600);--red-50: #fce8e6;--red-100: #fad2cf;--red-200: #f6aea9;--red-300: #f28b82;--red-400: #ee675c;--red-500: #ea4335;--red-600: #d93025;--red-700: #c5221f;--red-800: #b31412;--red-900: #a50e0e;--red: var(--red-600);--yellow-50: #fef7e0;--yellow-100: #feefc3;--yellow-200: #fde293;--yellow-300: #fdd663;--yellow-400: #fcc934;--yellow-500: #fbbc04;--yellow-600: #f9ab00;--yellow-700: #f29900;--yellow-800: #ea8600;--yellow-900: #e37400;--yellow: var(--yellow-600);--green-50: #e6f4ea;--green-100: #ceead6;--green-200: #a8dab5;--green-300: #81c995;--green-400: #5bb974;--green-500: #34a853;--green-600: #1e8e3e;--green-700: #188038;--green-800: #137333;--green-900: #0d652d;--green: var(--green-600);--white: #fff;--grey-50: #f8f9fa;--grey-100: #f1f3f4;--grey-200: #e8eaed;--grey-300: #dadce0;--grey-400: #bdc1c6;--grey-500: #9aa0a6;--grey-600: #80868b;--grey-700: #5f6368;--grey-800: #3c4043;--grey-900: #202124;--black: var(--grey-900);--orange-50: #feefe3;--orange-100: #fedfc8;--orange-200: #fdc69c;--orange-300: #fcad70;--orange-400: #fa903e;--orange-500: #fa7b17;--orange-600: #e8710a;--orange-700: #d56e0c;--orange-800: #c26401;--orange-900: #b06000;--pink-50: #fde7f3;--pink-100: #fdcfe8;--pink-200: #fba9d6;--pink-300: #ff8bcb;--pink-400: #ff63b8;--pink-500: #f439a0;--pink-600: #e52592;--pink-700: #c92786;--pink-800: #b80672;--pink-900: #9c166b;--purple-50: #f3e8fd;--purple-100: #e9d2fd;--purple-200: #d7aefb;--purple-300: #c58af9;--purple-400: #af5cf7;--purple-500: #a142f4;--purple-600: #9334e6;--purple-700: #8430ce;--purple-800: #7627bb;--purple-900: #681da8;--cyan-50: #e4f7fb;--cyan-100: #cbf0f8;--cyan-200: #a1e4f2;--cyan-300: #78d9ec;--cyan-400: #4ecde6;--cyan-500: #24c1e0;--cyan-600: #12b5cb;--cyan-700: #129eaf;--cyan-800: #098591;--cyan-900: #007b83}.markdown-display{word-break:break-word;overflow-wrap:break-word}.markdown-display p{word-break:break-word}.markdown-display hr{height:0;border:0;border-top:1px solid var(--hairline)}.markdown-display h1,.markdown-display h2,.markdown-display h3,.markdown-display h4,.markdown-display h5{font-weight:500}.markdown-display h1{font-size:160%;font-weight:700}.markdown-display h2{font-size:160%}.markdown-display h3{font-size:140%}.markdown-display h4{font-size:120%}.markdown-display h5{font-size:100%}.markdown-display h1,.markdown-display h2,.markdown-display h3,.markdown-display h4,.markdown-display h5{margin:0;margin-block-start:.8em;margin-block-end:.8em}.markdown-display p,.markdown-display blockquote,.markdown-display hr,.markdown-display ul,.markdown-display ol{margin:0;margin-block-start:.8em;margin-block-end:.8em}.markdown-display>*:first-child{margin-block-start:0}.markdown-display ul,.markdown-display ol{padding-inline-start:2rem}.markdown-display blockquote{background-color:var(--markdown-blockquote-background);border-left:4px solid var(--markdown-blockquote-border);color:var(--text-secondary);overflow:hidden;padding-left:8px}.markdown-display ul{list-style:initial}.markdown-display ul ul{list-style:circle}.markdown-display ul ul ul{list-style:square}.markdown-display ul ul,.markdown-display ol ol,.markdown-display ul ol,.markdown-display ol ul{margin:0}.markdown-display li{margin-block-end:.2em}.markdown-display code,.markdown-display pre{background-color:var(--surface-secondary);border-radius:2px;font-family:WorkAroundWebKitAndMozilla,monospace}.markdown-display pre{border:1px solid var(--hairline);overflow-x:auto}.markdown-display code{color:var(--markdown-code);padding:0 2px}.markdown-display pre code{color:var(--text-high-contrast);padding:0}.markdown-display pre{padding:8px 16px}.markdown-display pre,.markdown-display pre code{line-height:1.5}.markdown-display img{max-width:100%}.markdown-display a,.markdown-display a code{color:var(--primary-default);text-decoration:none}.markdown-display a:visited,.markdown-display a code:visited{color:var(--markdown-link-visited)}.markdown-display pre code a{color:inherit;text-decoration:underline}.markdown-display a:hover{text-decoration:underline}.markdown-display a:focus{outline:-webkit-focus-ring-color auto 1px}.markdown-display table{border-collapse:collapse;margin:1em 0}.markdown-display td,.markdown-display th{background-color:var(--surface-default);border:1px solid var(--hairline);padding:4px 8px;vertical-align:top}.markdown-display th{text-align:left;vertical-align:bottom;word-break:keep-all}.markdown-display div.table-overflow{overflow-x:auto}.markdown-display input[type=checkbox]{vertical-align:middle}.markdown-display section.footnotes{font-family:Roboto,Arial,sans-serif;line-height:1rem;font-size:.75rem;letter-spacing:.025em;font-weight:400;margin-top:2.5em;border-top:1px solid #dadce0}.markdown-display sup.footnote-ref::before{content:"["}.markdown-display sup.footnote-ref::after{content:"]"}.markdown-display .footnote-backref{text-decoration:none}.markdown-display .footnote-backref>a{text-decoration:none}.markdown-display .align-left{text-align:left}.markdown-display .align-right{text-align:right}.markdown-display .align-center{text-align:center}.markdown-display .align-justify{text-align:justify}.markdown-display .g3mark-callout{position:relative}.markdown-display .g3mark-callout .g3mark-callout__icon{display:none}.markdown-display summary{cursor:pointer}.markdown-display code{white-space:break-spaces}.markdown-display pre code{white-space:pre}body:not(.dark-mode) .markdown-display .stx-plain{color:inherit}body:not(.dark-mode) .markdown-display .stx-keyword{color:#708}body:not(.dark-mode) .markdown-display .stx-keyword-strong{color:inherit}body:not(.dark-mode) .markdown-display .stx-string{color:#080}body:not(.dark-mode) .markdown-display .stx-comment{color:#800}body:not(.dark-mode) .markdown-display .stx-number{color:#164}body:not(.dark-mode) .markdown-display .stx-macro{color:#555}body:not(.dark-mode) .markdown-display .stx-class{color:inherit}body:not(.dark-mode) .markdown-display .stx-const{color:inherit}body:not(.dark-mode) .markdown-display .stx-escape-sequence{color:inherit}body:not(.dark-mode) .markdown-display .stx-deprecated{text-decoration:inherit}body:not(.dark-mode) .markdown-display .stx-doc-tag{text-decoration:inherit}body:not(.dark-mode) .markdown-display .stx-task-tag{font-weight:inherit}body:not(.dark-mode) .markdown-display .stx-atom{color:#219}body:not(.dark-mode) .markdown-display .stx-definition{color:blue}body:not(.dark-mode) .markdown-display .stx-type-id{color:#085}body:not(.dark-mode) .markdown-display .stx-qualifier{color:#555}body:not(.dark-mode) .markdown-display .stx-local-ref{color:#05a}body:not(.dark-mode) .markdown-display .stx-md-entity{color:#708}body:not(.dark-mode) .markdown-display .stx-md-bold{font-weight:bold}body:not(.dark-mode) .markdown-display .stx-md-italic{font-style:italic}body:not(.dark-mode) .markdown-display .stx-md-link{color:#080}body:not(.dark-mode) .markdown-display .stx-md-code{color:#555}body:not(.dark-mode) .markdown-display .stx-comment .stx-md-link,body:not(.dark-mode) .markdown-display .stx-comment .stx-md-code{color:#800}body:not(.dark-mode) .markdown-display pre .chl{border:1px solid #ffca28;background-color:#fff59d;padding:1px 0;margin:0 -1px}body:not(.dark-mode) .markdown-display .g3mark-callout{margin:1rem 0;padding:.5rem .5rem .5rem 2rem}body:not(.dark-mode) .markdown-display .g3mark-callout p:first-of-type{margin-top:0}body:not(.dark-mode) .markdown-display .g3mark-callout p:last-child{margin-bottom:0}body:not(.dark-mode) .markdown-display .g3mark-callout blockquote{font-family:inherit;font-weight:inherit;font-size:inherit;letter-spacing:inherit;line-height:inherit;padding-left:initial;border-left:initial;margin:0}body:not(.dark-mode) .markdown-display .g3mark-callout__keyword{font-weight:bold}body:not(.dark-mode) .markdown-display .g3mark-callout__icon::before{position:absolute;font-size:1.25rem;font-family:"Material Icons","Google Material Icons";margin-left:-1.5rem}body:not(.dark-mode) .markdown-display .g3mark-callout-tldr .g3mark-callout__icon::before,body:not(.dark-mode) .markdown-display .g3mark-callout-summary .g3mark-callout__icon::before{color:#174ea6;content:"sms"}body:not(.dark-mode) .markdown-display .g3mark-callout-todo .g3mark-callout__icon::before,body:not(.dark-mode) .markdown-display .g3mark-callout-fixme .g3mark-callout__icon::before{color:#202124;content:"error_outline"}body:not(.dark-mode) .markdown-display .g3mark-callout-tip .g3mark-callout__icon::before{color:#0d652d;content:"grade"}body:not(.dark-mode) .markdown-display .g3mark-callout-best_practice .g3mark-callout__icon::before{color:#0d652d;content:"check_circle"}body:not(.dark-mode) .markdown-display .g3mark-callout-note .g3mark-callout__icon::before{color:#202124;content:"bookmark"}body:not(.dark-mode) .markdown-display .g3mark-callout-warning .g3mark-callout__icon::before{color:#a50e0e;content:"warning"}body:not(.dark-mode) .markdown-display .g3mark-callout-important .g3mark-callout__icon::before{color:#b06000;content:"priority_high"}body:not(.dark-mode) .markdown-display .g3mark-callout-question .g3mark-callout__icon::before{color:#174ea6;content:"help"}body:not(.dark-mode) .markdown-display .g3mark-callout-tldr,body:not(.dark-mode) .markdown-display .g3mark-callout-summary{border-color:#669df6;background:#e8f0fe;color:#202124}body:not(.dark-mode) .markdown-display .g3mark-callout-todo,body:not(.dark-mode) .markdown-display .g3mark-callout-fixme{border-color:#bdc1c6;background:#f8f9fa;color:#202124}body:not(.dark-mode) .markdown-display .g3mark-callout-tip,body:not(.dark-mode) .markdown-display .g3mark-callout-best_practice{border-color:#5bb974;background:#e6f4ea;color:#202124}body:not(.dark-mode) .markdown-display .g3mark-callout-note{border-color:#bdc1c6;background:#f8f9fa;color:#202124;background:#f1f3f4}body:not(.dark-mode) .markdown-display .g3mark-callout-warning{border-color:#ee675c;background:#fce8e6;color:#202124}body:not(.dark-mode) .markdown-display .g3mark-callout-important{border-color:#fa903e;background:#feefe3;color:#202124}body:not(.dark-mode) .markdown-display .g3mark-callout-question{border-color:#669df6;background:#e8f0fe;color:#202124}body.dark-mode .markdown-display .stx-plain{color:inherit}body.dark-mode .markdown-display .stx-keyword{color:#d8884b}body.dark-mode .markdown-display .stx-keyword-strong{color:inherit}body.dark-mode .markdown-display .stx-string{color:#97c67b}body.dark-mode .markdown-display .stx-comment{color:#8c9292}body.dark-mode .markdown-display .stx-number{color:#79a9c4}body.dark-mode .markdown-display .stx-macro{color:#9dbed9}body.dark-mode .markdown-display .stx-class{color:inherit}body.dark-mode .markdown-display .stx-const{color:inherit}body.dark-mode .markdown-display .stx-escape-sequence{color:inherit}body.dark-mode .markdown-display .stx-deprecated{text-decoration:inherit}body.dark-mode .markdown-display .stx-doc-tag{text-decoration:inherit}body.dark-mode .markdown-display .stx-task-tag{font-weight:inherit}body.dark-mode .markdown-display .stx-atom{color:#cf7ea9}body.dark-mode .markdown-display .stx-definition{color:#75b3db}body.dark-mode .markdown-display .stx-type-id{color:#eede7b}body.dark-mode .markdown-display .stx-qualifier{color:#97c67b}body.dark-mode .markdown-display .stx-local-ref{color:#aac6e3}body.dark-mode .markdown-display .stx-md-entity{color:#d8884b}body.dark-mode .markdown-display .stx-md-bold{font-weight:bold}body.dark-mode .markdown-display .stx-md-italic{font-style:italic}body.dark-mode .markdown-display .stx-md-link{color:#d8884b}body.dark-mode .markdown-display .stx-md-code{color:#d8884b}body.dark-mode .markdown-display .stx-comment .stx-md-link,body.dark-mode .markdown-display .stx-comment .stx-md-code{color:#89b2cd}body.dark-mode .markdown-display pre .chl{border:1px solid #ffca28;background-color:#6a5619;padding:1px 0;margin:0 -1px}body.dark-mode .markdown-display .g3mark-callout{margin:1rem 0;padding:.5rem .5rem .5rem 2rem}body.dark-mode .markdown-display .g3mark-callout p:first-of-type{margin-top:0}body.dark-mode .markdown-display .g3mark-callout p:last-child{margin-bottom:0}body.dark-mode .markdown-display .g3mark-callout blockquote{font-family:inherit;font-weight:inherit;font-size:inherit;letter-spacing:inherit;line-height:inherit;padding-left:initial;border-left:initial;margin:0}body.dark-mode .markdown-display .g3mark-callout__keyword{font-weight:bold}body.dark-mode .markdown-display .g3mark-callout__icon::before{position:absolute;font-size:1.25rem;font-family:"Material Icons","Google Material Icons";margin-left:-1.5rem}body.dark-mode .markdown-display .g3mark-callout-tldr .g3mark-callout__icon::before,body.dark-mode .markdown-display .g3mark-callout-summary .g3mark-callout__icon::before{color:#174ea6;content:"sms"}body.dark-mode .markdown-display .g3mark-callout-todo .g3mark-callout__icon::before,body.dark-mode .markdown-display .g3mark-callout-fixme .g3mark-callout__icon::before{color:#202124;content:"error_outline"}body.dark-mode .markdown-display .g3mark-callout-tip .g3mark-callout__icon::before{color:#0d652d;content:"grade"}body.dark-mode .markdown-display .g3mark-callout-best_practice .g3mark-callout__icon::before{color:#0d652d;content:"check_circle"}body.dark-mode .markdown-display .g3mark-callout-note .g3mark-callout__icon::before{color:#202124;content:"bookmark"}body.dark-mode .markdown-display .g3mark-callout-warning .g3mark-callout__icon::before{color:#a50e0e;content:"warning"}body.dark-mode .markdown-display .g3mark-callout-important .g3mark-callout__icon::before{color:#b06000;content:"priority_high"}body.dark-mode .markdown-display .g3mark-callout-question .g3mark-callout__icon::before{color:#174ea6;content:"help"}body.dark-mode .markdown-display .g3mark-callout-todo,body.dark-mode .markdown-display .g3mark-callout-fixme,body.dark-mode .markdown-display .g3mark-callout-tldr,body.dark-mode .markdown-display .g3mark-callout-tip,body.dark-mode .markdown-display .g3mark-callout-note,body.dark-mode .markdown-display .g3mark-callout-warning,body.dark-mode .markdown-display .g3mark-callout-important,body.dark-mode .markdown-display .g3mark-callout-best_practice,body.dark-mode .markdown-display .g3mark-callout-summary,body.dark-mode .markdown-display .g3mark-callout-question{border-color:#fff;background:#3c4043;color:#fff}/*# sourceMappingURL=markdown_format_presenter.css.map */\n'],
encapsulation:2,changeDetection:0});var ZRc=["child"],$Rc=function(){return"[_nghost-%COMP%]     a:visited{color:#7627bb;color:var(--link-visited)}"},tO=function(){this.codefont=r(iO)};tO.prototype.ngOnInit=function(){};tO.\u0275fac=function(a){return new (a||tO)};
tO.\u0275cmp=y({type:tO,selectors:[["b-plain-format-presenter"]],inputs:{content:"content"},standalone:!1,features:[Fh([{provide:MRc,useValue:"PLAIN"}])],decls:4,vars:4,consts:[[1,"type-m"],[3,"section"]],template:function(a,b){a&1&&(J(0,"div",0),U(1,"async"),Pg(2,QXa,1,1,"b-plain-format-section",1,Og),K());a&2&&(uh("codefont",V(1,2,b.codefont.codefont$)),x(2),Qg(b.content.plainSection))},dependencies:function(){return[uO,Tv]},styles:[$Rc()],changeDetection:0});var uO=function(){};
uO.prototype.ngOnInit=function(){};uO.\u0275fac=function(a){return new (a||uO)};uO.\u0275cmp=y({type:uO,selectors:[["b-plain-format-section"]],inputs:{section:"section"},standalone:!1,decls:3,vars:1,consts:[[3,"section"]],template:function(a,b){a&1&&(Wg(0),F(1,RXa,1,1,"b-plain-format-quoted-section",0)(2,SXa,1,1,"b-plain-format-unquoted-section",0),Xg());a&2&&(x(),G(b.section.isQuoted?1:2))},dependencies:function(){return[vO,wO]},encapsulation:2,changeDetection:0});
var vO=function(){this.showQuote=!1;this.childId="plainFormatQuotedSection"+ ++aSc};vO.prototype.ngOnInit=function(){};vO.prototype.ngOnChanges=function(){TXa(this)};var TXa=function(a){var b=a.child.nativeElement;if(a.showQuote)nl(b,a.section.content);else for(;b.lastChild;)b.lastChild.remove()};vO.\u0275fac=function(a){return new (a||vO)};
vO.\u0275cmp=y({type:vO,selectors:[["b-plain-format-quoted-section"]],viewQuery:function(a,b){a&1&&hh(ZRc,7);if(a&2){var c;lh(c=mh())&&(b.child=c.first)}},inputs:{section:"section"},standalone:!1,features:[ov],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&&(J(0,"div"),F(1,UXa,2,1,"a",1)(2,VXa,2,1,"a",2),M(3,"div",3,0),K());a&2&&(x(),G(b.showQuote?1:2),x(2),I("id",b.childId))},styles:[$Rc()],changeDetection:0});var aSc=0,wO=function(){};wO.prototype.ngOnInit=function(){};wO.\u0275fac=function(a){return new (a||wO)};
wO.\u0275cmp=y({type:wO,selectors:[["b-plain-format-unquoted-section"]],inputs:{section:"section"},standalone:!1,decls:1,vars:1,consts:[[1,"child",3,"applyDynamicComponents"]],template:function(a,b){a&1&&M(0,"div",0);a&2&&I("applyDynamicComponents",b.section.content)},dependencies:[rO],encapsulation:2,changeDetection:0});var xO=function(){this.canEditComment=!1;this.checkboxChange=new LE};xO.prototype.ngOnInit=function(){};xO.\u0275fac=function(a){return new (a||xO)};
xO.\u0275cmp=y({type:xO,selectors:[["b-formatted-comment-presenter"]],inputs:{formattedComment:"formattedComment",canEditComment:"canEditComment"},outputs:{checkboxChange:"checkboxChange"},standalone:!1,decls:3,vars:3,consts:[[3,"content"],[3,"content","canEditComment"],[3,"checkboxChange","content","canEditComment"]],template:function(a,b){a&1&&(F(0,WXa,1,1,"b-literal-format-presenter",0),F(1,XXa,1,2,"b-markdown-format-presenter",1),F(2,YXa,1,1,"b-plain-format-presenter",0));if(a&2){var c,d,e;G((c=
b.formattedComment.literalFormat)?0:-1,c);x();G((d=b.formattedComment.markdownFormat)?1:-1,d);x();G((e=b.formattedComment.plainFormat)?2:-1,e)}},dependencies:[jO,sO,tO],encapsulation:2,changeDetection:0});var yO=function(){Z.apply(this,arguments);var a=this;this.formatter=r(sN);this.issueIdInternal="";this.audience="EXTERNAL";this.formattingMode="LITERAL";this.params$=new sg(1);this.formattedResult$=this.params$.pipe(kg(200),xg(function(b){return a.formatter.format(b).pipe(bSc,hg(function(){var c={literalFormat:{content:Xi(b.comment)}};return Nf({formattedComment:c,isFallback:!0})}))}))};Y(yO,Z);yO.\u0275dir=Z.\u0275dir;
yO.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()})}))};yO.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()})};
yO.prototype.getIdPrefix=function(){return this.idPrefix||"b"+this.issueIdInternal+"-draft"};nd.Object.defineProperties(yO.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueIdInternal=a||""}}});yO.\u0275fac=function(){var a;return function(b){return(a||(a=Re(yO)))(b||yO)}}();
yO.\u0275cmp=y({type:yO,selectors:[["b-live-preview"]],inputs:{comment:"comment",comment$:"comment$",issueId:"issueId",audience:"audience",formattingMode:"formattingMode",idPrefix:"idPrefix"},standalone:!1,features:[Bg,ov],decls:2,vars:3,consts:[[1,"md-preview",3,"invisible","error"],[1,"md-preview"],[3,"formattedComment"]],template:function(a,b){a&1&&(F(0,ZXa,2,5,"div",0),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.formattedResult$))?0:-1,c)}},dependencies:[xO,Tv],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 bSc=C(function(a){return{formattedComment:a,isFallback:!1}});var zO=function(){var a=this;this.errorHandler=r(aK);this.eventsForIssueFridge=r(TD);this.issueFullFridge=r(TE);this.issueCommentsService=r(sK);this.issueInteractionsTracking=r(KK);this.butterBar=r(GJ);this.editIssueService=r(RK);this.formattedCommentsForIssueFridge=r(XD);this.rawComment$=new tg;this.issueId="";this.commentNumber=0;this.rawComment="";var b=0;this.rawComment$.pipe(C(function(c){return{comment:c,id:b+=1}}),kg(800),Vf(function(c){return a.doSave(c.comment,c.id)}),eg(function(c){return c===
b})).subscribe(function(){cSc(a)})};zO.prototype.ngOnDestroy=function(){this.rawComment$.complete()};zO.prototype.initialize=function(a,b){this.issueId=a;this.commentNumber=b};zO.prototype.pending=function(){var a,b;return(b=(a=this.savingState)==null?void 0:a.get("commentEdit"))!=null?b:!1};
zO.prototype.doSave=function(a,b){var c=this,d,e,f;return z(function(h){switch(h.nextAddress){case 1:return Gf(h,2),B(h,c.issueCommentsService.update(c.issueId,(d=c.commentNumber)!=null?d:0,a,"MARKDOWN",""),4);case 4:uu(h,3);break;case 2:e=Kf(h),cK(c.errorHandler,e),(f=c.savingState)==null||QK(f,"commentEdit");case 3:return h.return(b)}})};
var cSc=function(a){Kq(a.butterBar,"Comment edit successful.",4E3);a.eventsForIssueFridge.manualUpdate(a.issueId,function(c){c.events=Vva(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||QK(b,"commentEdit")};zO.\u0275fac=function(a){return new (a||zO)};
zO.\u0275prov=Cd({token:zO,factory:zO.\u0275fac});var AO=function(){var a=r(iG);Z.call(this);var b=this;this.activeSession=r(Bs);this.appEvents=r(FB);this.markdownCheckboxService=r(zO);this.init=new LE;this.canEditComment=!1;this.formattedComment=null;this.FormattingMode=Uj;(this.enableLiteralModeRevisions=OA(this.activeSession,"enableLiteralModeRevisions"))&&this.activeSession.isInternalSession()?a.commentFormattingPreferences$.pipe(yg(this.destroyed$)).subscribe(function(c){switch(c.commentDisplayOverride){case "LITERAL_FORMATTING_MODE":b.formattingModeOverride=
"LITERAL";break;case "MARKDOWN_FORMATTING_MODE":b.formattingModeOverride="MARKDOWN";break;case "PLAIN_FORMATTING_MODE":b.formattingModeOverride="PLAIN";break;case "COMMENT_FORMATTING_MODE_UNSPECIFIED":case void 0:b.formattingModeOverride=void 0;break;default:pb(c.commentDisplayOverride)}}):a.textDisplayPreferences$.pipe(yg(this.destroyed$)).subscribe(function(c){switch(c.commentDisplayOverride){case "LITERAL_FORMATTING_MODE":b.formattingModeOverride="LITERAL";break;case "MARKDOWN_FORMATTING_MODE":b.formattingModeOverride=
"MARKDOWN";break;case "PLAIN_FORMATTING_MODE":b.formattingModeOverride="PLAIN";break;case "COMMENT_FORMATTING_MODE_UNSPECIFIED":case void 0:b.formattingModeOverride=void 0;break;default:pb(c.commentDisplayOverride)}})};Y(AO,Z);AO.\u0275dir=Z.\u0275dir;AO.prototype.ngOnInit=function(){var a;this.markdownCheckboxService.initialize(this.issueId,(a=this.note.commentNumber)!=null?a:0)};
AO.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)};
AO.prototype.ngAfterViewInit=function(){this.appEvents.commentRendered.next({issueId:this.issueId,commentNumber:this.note.commentNumber});this.init.next(this)};AO.\u0275fac=function(a){return new (a||AO)};
AO.\u0275cmp=y({type:AO,selectors:[["b-note-container"]],inputs:{note:"note",issueAccessLevel:"issueAccessLevel",formattingMode:"formattingMode",issueId:"issueId",canEditComment:"canEditComment"},outputs:{init:"init"},standalone:!1,features:[Fh([zO]),Bg,ov],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&&(J(0,"div",0)(1,"div",1),F(2,$Xa,1,2,"b-formatted-comment-presenter",2)(3,aYa,1,5,"b-live-preview",3),K()());if(a&2){x(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:[xO,yO],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 BO=function(){this.activeSession=r(Bs);this.issueApi=r(SD);this.analytics=r(RE);this.errorHandler=r(aK);this.onCc=new LE};BO.prototype.ngOnInit=function(){};
BO.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)}))};BO.\u0275fac=function(a){return new (a||BO)};BO.\u0275cmp=y({type:BO,selectors:[["b-cc-button"]],inputs:{issueId:"issueId",ccState:"ccState"},outputs:{onCc:"onCc"},standalone:!1,decls:3,vars:1,consts:[["type","button","mat-button","",1,"medium",3,"click"]],template:function(a,b){a&1&&(J(0,"button",0),N("click",function(){return b.toggle()}),F(1,bYa,2,0,"ng-container")(2,cYa,2,0,"ng-container"),K());a&2&&(x(),G(b.ccState?1:2))},dependencies:[oG,Jx],encapsulation:2});var et=function(){this.filter_=null;this.boostIds_=[];this.primingTimeoutMillis_=1E3;this.searchMaxResults_=this.suggestMaxResults_=this.searchFormat_=this.suggestFormat_=this.queryScope_=0;this.slots_=[];this.entryPoint_=0;this.filterEmptyExplodingGroups_=!0;this.selectedCustomProviderNames_=null};g=et.prototype;g.getFilter=function(){return this.filter_};g.setFilter=function(a){this.filter_=a;return this};g.setQueryScope=function(a){this.queryScope_=a;return this};g.getQueryScope=function(){return this.queryScope_};
g.getEntryPoint=function(){return this.entryPoint_};g.setEntryPoint=function(a){this.entryPoint_=a;return this};g.getSuggestFormat=function(){return this.suggestFormat_};g.getSearchFormat=function(){return this.searchFormat_};g.getSuggestMaxResults=function(){return this.suggestMaxResults_};g.getSearchMaxResults=function(){return this.searchMaxResults_};
g.clone=function(){var a=new et;a.filter_=this.filter_;a.filterEmptyExplodingGroups_=this.filterEmptyExplodingGroups_;a.boostIds_=this.boostIds_;a.primingTimeoutMillis_=this.primingTimeoutMillis_;a.queryScope_=this.queryScope_;a.slots_=this.slots_;a.entryPoint_=this.entryPoint_;a.suggestFormat_=this.suggestFormat_;a.searchFormat_=this.searchFormat_;a.suggestMaxResults_=this.suggestMaxResults_;a.searchMaxResults_=this.searchMaxResults_;a.selectedCustomProviderNames_=this.selectedCustomProviderNames_;
return a};var iu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(iu,n);iu.prototype.getEntryPoint=function(){return pk(this,5)};iu.prototype.setEntryPoint=function(a){return Rk(this,5,a)};var ju=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ju,n);ju.prototype.getEntryPoint=function(){return pk(this,1)};ju.prototype.setEntryPoint=function(a){return Rk(this,1,a)};var CO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(CO,n);CO.prototype.getQuery=function(){return Rc(this,1)};CO.prototype.setQuery=function(a){return Qk(this,1,a)};CO.prototype.clearQuery=function(){Bu(this,1)};CO.prototype.hasQuery=function(){return mk(this,1)};var dSc=function(a,b){Ek(a,3,b)};CO.prototype.getAffinityVersion=function(){return Ej(this,7)};CO.prototype.setAffinityVersion=function(a){Ok(this,7,a)};
CO.prototype.getAffinityVersionOrUndefined=function(){return Gu(this,7)};var eSc=function(a){var b=xDc();Pu(a,8,b)};g=CO.prototype;g.getSources=function(){return W(this,iu,10)};g.getInstanceId=function(){return Rc(this,11)};g.setInstanceId=function(a){return Qk(this,11,a)};g.clearInstanceId=function(){Bu(this,11)};g.hasInstanceId=function(){return mk(this,11)};g.getInstanceIdOrUndefined=function(){return Hu(this,11)};var bu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bu,n);g=bu.prototype;g.getPersonLoggingId=function(){return Rc(this,1)};g.setPersonLoggingId=function(a){Qk(this,1,a)};g.getFieldLoggingId=function(){return Rc(this,2)};g.setFieldLoggingId=function(a){Qk(this,2,a)};g.setFieldValue=function(a){return Qk(this,3,a)};g.clearFieldValue=function(){return Bu(this,3)};g.getName=function(){return Rc(this,4)};g.setName=function(a){return Qk(this,4,a)};
g.hasName=function(){return mk(this,4)};g.getNameOrUndefined=function(){return Hu(this,4)};g.getContactId=function(){return Rc(this,5)};g.setContactId=function(a){return Qk(this,5,a)};g.getProfileId=function(){return Rc(this,6)};g.getProfileId_legacyNullable=function(){return $k(this,6)};g.setProfileId=function(a){return Qk(this,6,a)};g.hasProfileId=function(){return mk(this,6)};g.getFieldType=function(){return pk(this,7)};g.getIsPlaceholder=function(){return kk(this,10)};
g.setIsPlaceholder=function(a){Nk(this,10,a)};g.getGroupId=function(){return Rc(this,11)};g.setGroupId=function(a){Qk(this,11,a)};g.hasGroupId=function(){return mk(this,11)};g.getIsBoosted=function(){return kk(this,12)};g.setIsBoosted=function(a){Nk(this,12,a)};var au=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(au,n);g=au.prototype;g.getProvenance=function(){return pk(this,3)};g.setProvenance=function(a){return Rk(this,3,a)};g.getContext=function(){return pk(this,5)};g.getExistingSelectionsCount=function(){return Ej(this,6)};g.setExistingSelectionsCount=function(a){Ok(this,6,a)};var $t=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($t,n);var Xs=function(a){return W(a,au,2)};$t.prototype.getSessionState=function(){return W(this,CO,3)};$t.prototype.setSessionState=function(a){return X(this,CO,3,a)};$t.prototype.hasSessionState=function(){return tk(this,CO,3)};var Yt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Yt,n);g=Yt.prototype;g.getType=function(){return pk(this,1)};g.setType=function(a){return Rk(this,1,a)};g.hasType=function(){return nk(this,1)};g.getValue=function(){return Rc(this,2)};g.setValue=function(a){return Qk(this,2,a)};g.hasValue=function(){return mk(this,2)};var fSc=function(a){this.delegate_=a};g=fSc.prototype;g.getDelegate=function(){return this.delegate_};g.getId=function(){return this.delegate_.getId()};g.getTargetType=function(){return this.delegate_.getTargetType()};g.getValue=function(){return this.delegate_.getValue()};g.getDisplayValue=function(){return this.delegate_.getDisplayValue()};g.getCanonicalValue=function(){return this.delegate_.getCanonicalValue()};g.getDescription=function(){return this.delegate_.getDescription()};g.getName=function(){return this.delegate_.getName()};
g.getPhoto=function(){return this.delegate_.getPhoto()};g.getTagList=function(){return this.delegate_.getTagList()};g.getSourceIdList=function(){return this.delegate_.getSourceIdList()};g.getProfileId=function(){return this.delegate_.getProfileId()};g.getContactId=function(){return this.delegate_.getContactId()};g.getLoggingToken=function(){return this.delegate_.getLoggingToken()};g.getIsMe=function(){return this.delegate_.getIsMe()};g.getOrgState=function(){return this.delegate_.getOrgState()};
g.getEmailSecurityInfo=function(){return this.delegate_.getEmailSecurityInfo()};g.getDataSource=function(){return this.delegate_.getDataSource()};g.getOriginatingField=function(){return this.delegate_.getOriginatingField()};g.getReachabilityInfo=function(){return this.delegate_.getReachabilityInfo()};g.getExtendedData=function(){return this.delegate_.getExtendedData()};var Tac=function(){this.familyName_=this.givenName_=this.displayName_="";this.sourceType_=0};g=Tac.prototype;g.getDisplayName=function(){return this.displayName_};g.setDisplayName=function(a){this.displayName_=a||"";return this};g.getGivenName=function(){return this.givenName_};g.setGivenName=function(a){this.givenName_=a||"";return this};g.getFamilyName=function(){return this.familyName_};g.setFamilyName=function(a){this.familyName_=a||"";return this};g.getSourceType=function(){return this.sourceType_};
g.setSourceType=function(a){this.sourceType_=a||0;return this};var gSc=function(a,b){this.delegate_=a;this.name_=b};Y(gSc,fSc);gSc.prototype.getName=function(){return this.name_};var DO=function(a){this.delegate_=a};g=DO.prototype;g.getDelegate=function(){return this.delegate_};g.getResultType=function(){return this.delegate_.getResultType()};g.getTargetList=function(){return this.delegate_.getTargetList()};g.getMemberList=function(){return this.delegate_.getMemberList()};g.getTotalMemberCount=function(){return this.delegate_.getTotalMemberCount()};g.getPrimaryTarget=function(){return this.delegate_.getPrimaryTarget()};g.getDisplayName=function(){return this.delegate_.getDisplayName()};
g.getDisplayValue=function(){return this.delegate_.getDisplayValue()};g.getDescription=function(){return this.delegate_.getDescription()};g.getPhotoUrl=function(){return this.delegate_.getPhotoUrl()};g.getIsBoosted=function(){return this.delegate_.getIsBoosted()};g.getMatchInfo=function(){return this.delegate_.getMatchInfo()};g.getExtendedData=function(){return this.delegate_.getExtendedData()};var dYa=function(a){this.delegate_=a};Y(dYa,DO);g=dYa.prototype;g.getPrimaryTarget=function(){return this.getTargetList()[0]};g.getDisplayName=function(){var a=this.getPrimaryTarget();return a?(a=a.getName())?a.getDisplayName():"":""};g.getPhotoUrl=function(){var a=this.getPrimaryTarget();return a?(a=a.getPhoto())?a.getUrl():"":""};g.getDisplayValue=function(){var a=this.getPrimaryTarget();return a?a.getDisplayValue():""};
g.getDescription=function(){var a=this.getPrimaryTarget();return a?a.getDescription():""};var eYa=function(a,b){this.delegate_=a;this.targets_=b};Y(eYa,DO);eYa.prototype.getTargetList=function(){return this.targets_};var EO=function(){};EO.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:Nq(new eYa(a,c))};EO.prototype.reset=function(){};var gYa=function(a){this.types_=a};Y(gYa,EO);gYa.prototype.shouldRemove=function(a){return!this.types_.includes(a.getTargetType())};gYa.prototype.reset=function(){};var iYa=function(a){this.sourceIds_=a.filter(function(b){return ncc.includes(b.getType())}).map(String);this.targetIds_=a.filter(function(b){return ZDc.includes(b.getType())}).map(String)};Y(iYa,EO);iYa.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 hSc=function(a){this.sources_=a};Y(hSc,EO);hSc.prototype.shouldRemove=function(a){return!this.sources_.includes(a.getDataSource())};var kYa=function(a){this.filters_=a};kYa.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};kYa.prototype.reset=function(a){for(var b=l(this.filters_),c=b.next();!c.done;c=b.next())c.value.reset(a)};var mYa=function(a){this.filters_=a};
mYa.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};mYa.prototype.reset=function(a){for(var b=l(this.filters_),c=b.next();!c.done;c=b.next())c.value.reset(a)};var iSc=lYa();var jSc=new le("PeoplekitClientConfig"),kSc=function(a){this.matcher=a};Y(kSc,EO);kSc.prototype.shouldRemove=function(a){return a.getTargetType()===1&&this.matcher(a.getValue())};var FO=function(a){var b=this;this.injector=a;this.clientDarkmode$=this.clientDarkmodeSubject=new Kn(!1);this.localDarkmode=!1;this.clientStreamzService=null;this.loadLocalDarkmode=function(){b.localDarkmode=window.localStorage.getItem("onedev-darkmode")!=null;lSc(b,b.localDarkmode);b.clientStreamzService&&ZHc(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")}};FO.prototype.enableUsageTracking=function(){this.clientStreamzService=this.injector.get(II)};var lSc=function(a,b){a.clientDarkmodeSubject.next(b);document.body.classList.toggle("dark-mode",b)};FO.\u0275fac=function(a){return new (a||FO)(be(Cg))};FO.\u0275prov=Cd({token:FO,factory:FO.\u0275fac});var mSc=lYa(hYa(1),nYa(function(){return new hSc(ge.apply(0,arguments))}(3),new kSc(function(a){return a.includes("-pager")||a.includes("+pager")||a.includes("-oncall")||a.includes("+oncall")||a.includes("lifeguard-ng")}))),GO=function(){this.theme=r(FO)};GO.prototype.getTheme=function(){return this.theme.clientDarkmodeSubject.getValue()?1:0};
var tgb=function(a){return a.map(function(b){return b.result().getPrimaryTarget().getValue()})},tYa=function(a){return{showSuggestions:!1,moveAutocompleteAboveAnchorIfOffscreen:!0,density:2,theme:a.getTheme()}},ugb=function(a,b){a={helpText:void 0,helpTextWithSelections:"",density:2,theme:a.getTheme()};b&&(a.preselectedIds=b.filter(Qj).map(function(c){return Gt(c)}));return a};GO.\u0275fac=function(a){return new (a||GO)};GO.\u0275prov=Cd({token:GO,factory:GO.\u0275fac,providedIn:"root"});var nSc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(nSc,n);g=nSc.prototype;g.setMaxResults=function(a){return Ok(this,1,a)};g.getQuery=function(){return Rc(this,2)};g.setQuery=function(a){return Qk(this,2,a)};g.clearQuery=function(){Bu(this,2)};g.hasQuery=function(){return mk(this,2)};var oSc=function(){this.dynamicDataProviders_=[];this.staticDataProviders_=[]};var pSc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,1)};Y(pSc,n);var qSc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qSc,n);g=qSc.prototype;g.getExperimentIdsList=function(a){return Fj(this,1,Bj(a))};g.setExperimentIdsList=function(a){return vc(this,1,a,Cb)};g.getExperimentIds=function(){return Ju(this,1)};g.setExperimentIds=function(a){Gec(this,1,a)};g.getProfileId=function(){return Rc(this,2)};g.getProfileId_legacyNullable=function(){return $k(this,2)};g.setProfileId=function(a){return Qk(this,2,a)};
g.hasProfileId=function(){return mk(this,2)};var rSc=function(){},sSc=function(){return!1},tSc=function(){this.experiments_=(new qSc).setProfileId($H.userProfileId);this.peopleApiEnv_=$H.apiEnv;this.delegatorId_=this.userEmail_="";this.userKeys_=new Set;this.onAuthError_=rSc;this.offlineStorage_=null;this.apiKey_=this.clearcutUrl_="";this.isOffline_=sSc;this.customDataConfig_=null;this.requestCorpHeaders_=this.isOrgStateEnabled_=!1;var a=$H.userEmail;this.userEmail_=a||"";a&&this.userKeys_.add(String(Gt(a)))};g=tSc.prototype;
g.getUserEmail=function(){return this.userEmail_};g.getDelegatorId=function(){return this.delegatorId_};g.getPeopleApiEnv=function(){return this.peopleApiEnv_};g.setPeopleApiEnv=function(a){this.peopleApiEnv_=a;return this};g.getExperiments=function(){return this.experiments_};g.getAuthErrorHandler=function(){return this.onAuthError_};g.setClearcutUrl=function(a){this.clearcutUrl_=a};g.getClearcutUrl=function(){return this.clearcutUrl_};g.setAuthErrorHandler=function(a){this.onAuthError_=a||rSc};
g.getApiKey=function(){return this.apiKey_};g.setApiKey=function(a){this.apiKey_=a;return this};var HO=function(a,b){b!=null||(b=r(Ph));var c=new tSc;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 oSc;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 eEc(c.getPeopleApiEnv(),new fEc(""))}});this.peopleStore=b.peopleStore;this.environmentConfig=b.environmentConfig};HO.\u0275fac=function(a){return new (a||HO)(be(jSc),be(Ph))};HO.\u0275prov=Cd({token:HO,factory:HO.\u0275fac});var uSc=["multiUserInput"],vSc=function(a){this.component=a;this.name="Buganizer ACL Autocomplete Entries"};vSc.prototype.getPosition=function(){return 2};vSc.prototype.warmUpCache=function(){var a=new mA;voc(a,this.component.additionalContactsFn().map(function(b){var c=(new uoc).setResultType(7),d=(new lA).setValue(b.id);b=Rk(d,1,18).setName((new jA).setDisplayName(b.text));Po(c,2,lA,b);return c}));return Promise.resolve(a)};vSc.prototype.needsWarmUp=function(){return!1};
var IO=function(){Z.apply(this,arguments);var a=this;this.element=r(Te);this.principalTypes=r(FF);this.activeSession=r(Bs);this.documentationLinks=r(JJ);this.appEvents=r(FB);this.cdr=r(NE,{self:!0});this.hotkeys=r(PG);this.autocompleteConfigService=r(GO);this.usersChange=new LE(!0);this.includeViewAliases=this.removeContainerDivTabIndex=this.includeAliases=!1;this.maxUserAllowed=-1;this.customValidators={};this.detailedUserValidators={};this.placeholderText=this.ariaLabel="";this.isValid=new LE;this.enablePeoplekitAc=
OA(this.activeSession,"enablePeoplekitUserAc");this.sessionOptions=(new et).setFilter(nYa(mSc,hYa(18)));this.typedText="";this.items=[];this.chipifyFn=function(){wSc(a)};this.additionalContactsFn=function(){return xSc(a)};this.isFocused=!1;this.selectedChipIndex=-1;this.$element=this.element.nativeElement;this.validators={};this.violations=new Set};Y(IO,Z);IO.\u0275dir=Z.\u0275dir;
IO.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.appEvents.contactChipsRevertChanges.subscribe(function(){a.typedText=""}));this.subscriptions.add(QG(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 ySc(c)},validateInternalAccessLevel:function(b,c){return zSc(a,c)},validateExternalAccessLevel:function(b,
c){return ASc(a,c)}},this.customValidators)};IO.prototype.ngOnChanges=function(a){if(a.users||a.containerChips)this.items=BSc(this,this.users),JO(this)};var JO=function(a){var b=[].concat(p(a.items)),c=CSc(b),d=DSc(b);b=a.validate(c,d,b);a.isValid.emit(b);a.users&&gj(a.users,c)||(a.users=c,b&&a.usersChange.emit(c))};
IO.prototype.validate=function(a,b,c){for(var d=new Set,e=l(Object.entries(this.validators)),f=e.next();!f.done;f=e.next()){var h=l(f.value);f=h.next().value;h=h.next().value;h(a,c)||d.add(f)}a=l(Object.entries(this.detailedUserValidators));for(c=a.next();!c.done;c=a.next())e=l(c.value),c=e.next().value,e=e.next().value,e(b)||d.add(c);this.violations=d;return this.violations.size===0};
var qYa=function(a){!a.isWidgetDisabled()&&ESc(a)&&(a.isFocused=!0,a.textInputElement.nativeElement.focus())},oYa=function(a){Oq(a,a.selectedChipIndex)&&(a.items[a.selectedChipIndex].isSelected=!1);a.selectedChipIndex=-1};IO.prototype.isWidgetDisabled=function(){return this.$element.classList.contains("disabled")||!!this.$element.hasAttribute("disabled")};var ESc=function(a){var b,c;return a.maxUserAllowed<0||((c=(b=a.users)==null?void 0:b.length)!=null?c:0)<a.maxUserAllowed};
IO.prototype.removeItem=function(a){this.isWidgetDisabled()||!Oq(this,a)||this.items[a].isReadonly||(oYa(this),this.items.splice(a,1),JO(this))};IO.prototype.setAccessLevel=function(a){this.accessLevel=a};
var xSc=function(a){return FSc(a).map(function(b){return{text:usa(b),id:Op({alias:b})}})},FSc=function(a){if(!a.includeAliases||NA(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},wSc=function(a){setTimeout(function(){a.typedText&&la(a.typedText,",")&&GSc(a,a.typedText.split(",")[0].trim())})},rYa=function(a){GSc(a,a.typedText.split(",")[0].trim())},GSc=
function(a,b){b&&(b=nMa.test(b)?HSc(a,b):ISc(a,b),a.items.push(b));a.typedText="";JO(a)},Oq=function(a,b){return b>=0&&b<a.items.length},HSc=function(a,b){var c=c===void 0?!1:c;var d=lMa(b);if(d.alias===void 0)throw Error("jd`"+b);b=d.alias;d=usa(b);return new KO("ALIAS",b,d,null,c,a)},JSc=function(a,b){b=Wp(b);var c=new KO("GROUP",b,b,null,!1,a);GF(a.principalTypes,b,!0).then(function(d){c.detailedUserType=d.detailedUserType;JO(a)});return c},KSc=function(a,b){var c=c===void 0?!1:c;b=Wp(b);var d=
new KO("USER",b,b,null,c,a);GF(a.principalTypes,b,!0).then(function(e){d.detailedUserType=e.detailedUserType;JO(a)});return d},ISc=function(a,b){var c=c===void 0?!1:c;b=Wp(b);var d=new KO("PRINCIPAL_TYPE_UNSPECIFIED",b,b,null,c,a);GF(a.principalTypes,b,!0).then(function(e){d.principalType=e.principalType;d.detailedUserType=e.detailedUserType;JO(a)});return d},LSc=function(a,b,c){return new KO("PRINCIPAL_TYPE_UNSPECIFIED","",b,c,!0,a)};IO.prototype.getAccessLevel=function(){return this.accessLevel};
IO.prototype.getAppName=function(){return this.activeSession.getAppName()};IO.prototype.onKeyDown=function(a){a.keyCode===8?Oq(this,this.selectedChipIndex)?(Oq(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?Oq(this,this.selectedChipIndex)&&Oq(this,this.selectedChipIndex)&&this.removeItem(this.selectedChipIndex):a.keyCode===39&&qYa(this)};
var BSc=function(a,b){b=(b||[]).map(function(d){return MSc(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 LSc(a,d.displayText,d.values.map(function(e){return MSc(a,e)}))});return[].concat(p(c),p(b))}return b},MSc=function(a,b){var c=b.split(":");if(c.length!==2)throw Error("Ld`"+b);var d=c[0];if(d!=="USER"&&d!=="GROUP"&&d!=="ALIAS")throw Error("Ld`"+b);return d==="ALIAS"?HSc(a,b):d===
"USER"?KSc(a,c[1]):JSc(a,c[1])},CSc=function(a){return(a||[]).filter(function(b){return b.principalType!=="PRINCIPAL_TYPE_UNSPECIFIED"}).map(function(b){return b.principalType+":"+b.value})},DSc=function(a){return(a||[]).filter(function(b){return b.detailedUserType!=="NO_DETAILED_TYPE"}).map(function(b){return b.detailedUserType+":"+b.value})},ySc=function(a){return!a.some(function(b){return b.isNonGaiaChip()})},zSc=function(a,b){return a.accessLevel!=="INTERNAL"?!0:!b.some(function(c){return c.isInternalAccessViolated()})},
ASc=function(a,b){return a.accessLevel!=="EXTERNAL_PARTNER"?!0:!b.some(function(c){return c.isExternalPartnerAccessViolated()})};IO.prototype.selectAutocomplete=function(a){a.length>0&&(this.typedText=a[0].result().getPrimaryTarget().getValue(),rYa(this),this.isFocused=!1,this.cdr.detectChanges())};IO.\u0275fac=function(){var a;return function(b){return(a||(a=Re(IO)))(b||IO)}}();
IO.\u0275cmp=y({type:IO,selectors:[["b-multi-user-input"]],viewQuery:function(a,b){a&1&&hh(uSc,5);if(a&2){var c;lh(c=mh())&&(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"},standalone:!1,features:[Fh([NE,HO,{provide:jSc,useFactory:function(){var a=r(IO),b=r(jSc,{skipSelf:!0}),c;return Object.assign({},b,{staticDataProviders:[].concat(p((c=b.staticDataProviders)!=null?c:[]),[new vSc(a)])})}}]),Bg,ov],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"],["role","alert",1,"bv2-multi-user-errors"],[3,"chipSelection","chipClear","chipRemove","isReadonly","isSelected","isWidgetDisabled","principalType","detailedUserType","nestedChips","value","displayText","accessLevel"],["b-adaptive-width-input","","tabindex","0","aria-label","'Add user'",1,"bv2-multi-user-embedded-input",3,"bContactAutocomplete","additionalContactsCallback",
"ngModel","disabled","placeholder"],["b-adaptive-width-input","","tabindex","0","peoplekitAutocomplete","","aria-label","'Add user'",1,"bv2-multi-user-embedded-input",3,"peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","ngModel","disabled","placeholder"],["b-adaptive-width-input","","tabindex","0","aria-label","'Add user'",1,"bv2-multi-user-embedded-input",3,"autocompleteActive","ngModelChange","focus","blur","bContactAutocomplete","additionalContactsCallback","ngModel","disabled","placeholder"],
["b-adaptive-width-input","","tabindex","0","peoplekitAutocomplete","","aria-label","'Add user'",1,"bv2-multi-user-embedded-input",3,"peoplekitAutocompleteSelectionChange","ngModelChange","focus","blur","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","ngModel","disabled","placeholder"],["target","_blank"]],template:function(a,b){a&1&&(J(0,"div",1),N("click",function(){return qYa(b)}),J(1,"div",2),R(2," Press tab to navigate through users and right arrow to go to input section "),K(),
J(3,"div"),Pg(4,pYa,2,9,"div",3,Og),F(6,vYa,2,1),K()(),J(7,"div",4),F(8,wYa,4,1,"span"),F(9,xYa,2,0,"span"),F(10,yYa,2,0,"span"),F(11,zYa,2,0,"span"),F(12,AYa,2,0,"span"),F(13,BYa,2,0,"span"),F(14,CYa,2,0,"span"),F(15,DYa,2,0,"span"),F(16,EYa,2,0,"span"),K());if(a&2){uh("focused",b.isFocused);var c;Lg("tabindex",b.removeContainerDivTabIndex?-1:0)("aria-label",(c=b.idForInputBox)!=null?c:0);x(4);Qg(b.items);x(2);G(ESc(b)?6:-1);x();Lg("aria-hidden",b.violations.size===0);x();G(b.violations.has("noRestrictedPlusGroups")?
8:-1);x();G(b.violations.has("validateGaia")?9:-1);x();G(b.violations.has("validateInternalAccessLevel")?10:-1);x();G(b.violations.has("validateExternalAccessLevel")?11:-1);x();G(b.violations.has("escalationOwnerNotUser")?12:-1);x();G(b.violations.has("escalationOwnerNotGoogler")?13:-1);x();G(b.violations.has("userNotInGoogleDomain")?14:-1);x();G(b.violations.has("userAlreadySelected")?15:-1);x();G(b.violations.has("isNotUserType")?16:-1)}},styles:[".bv2-multi-user-embedded-input[_ngcontent-%COMP%]{background-color:rgba(0,0,0,0);color:#202124;color:var(--text-high-contrast)}.bv2-multi-user-input[_ngcontent-%COMP%]{border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:1px;cursor:text;min-height:27px;padding:6px;width:600px}.bv2-multi-user-input[_ngcontent-%COMP%]:hover{box-shadow:inset 0px 1px 2px rgba(0,0,0,.1)}.bv2-multi-user-input.focused[_ngcontent-%COMP%]{box-shadow:inset 0px 1px 2px rgba(0,0,0,.3);border-color:#1a73e8;border-color:var(--primary)}.bv2-multi-user-input[_ngcontent-%COMP%]   input.bv2-multi-user-embedded-input[_ngcontent-%COMP%]{border:0;display:inline-block;height:24px;min-width:100px;max-width:500px;width:100%;outline:none;padding-left:5px}.bv2-multi-user-input[_ngcontent-%COMP%]   .bv2-user-chip[_ngcontent-%COMP%]{cursor:default;display:inline-block;font-size:.8125rem;padding:3px;padding-top:2px;vertical-align:top}.ng-invalid[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]{border-color:#c5221f;border-color:var(--bad-high-contrast)}[disabled][_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%], .disabled[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]{border-color:#dadce0;border-color:var(--divider);color:#5f6368;color:var(--text-muted);cursor:initial}[disabled][_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]   input.bv2-multi-user-embedded-input[disabled][_ngcontent-%COMP%], .disabled[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]   input.bv2-multi-user-embedded-input[disabled][_ngcontent-%COMP%]{background-color:#fff;background-color:var(--surface-default);display:none}[disabled][_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]   .bv2-user-chip[_ngcontent-%COMP%]   span.bv2-user-chip-item[_ngcontent-%COMP%]   .user-chip-x[_ngcontent-%COMP%], .disabled[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]   .bv2-user-chip[_ngcontent-%COMP%]   span.bv2-user-chip-item[_ngcontent-%COMP%]   .user-chip-x[_ngcontent-%COMP%]{display:none}.disabled[_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]:hover, [disabled][_ngcontent-%COMP%] > .bv2-multi-user-input[_ngcontent-%COMP%]:hover{border-color:#dadce0;border-color:var(--divider);box-shadow:none}.bv2-multi-user-errors[_ngcontent-%COMP%]{color:#ea4335;color:var(--bad);font-size:.8125rem;line-height:18px;margin:0 0 1em;padding:9px 0}/*# sourceMappingURL=multi_user_input.css.map */"]});
var KO=function(a,b,c,d,e,f){this.principalType=a;this.detailedUserType="NO_DETAILED_TYPE";this.value=b;this.displayText=c;this.nestedChips=d;this.isSelected=!1;this.isReadonly=e;this.parentController=f};g=KO.prototype;
g.getTooltip=function(){if(this.principalType!=="ALIAS")return"";switch(this.value){case "googlers_unrestricted":return"Full time employees and other users with access to view most "+this.parentController.getAppName()+" issues.";case "google_domain":return"All users associated with the google.com domain.";case "public_non_google":return"All users, excluding the google.com domain.";case "public":return"All users";default:throw Error("Md`"+this.value);}};
g.isGroupChip=function(){return this.principalType==="GROUP"};g.isPublicChip=function(){return this.principalType==="ALIAS"&&["public_non_google","public"].includes(this.value)};g.isDomainChip=function(){return this.principalType==="ALIAS"&&["googlers_unrestricted","google_domain"].includes(this.value)};g.isExternalChip=function(){return this.detailedUserType==="EXTERNAL"||this.detailedUserType==="PUBLIC"||this.isPublicChip()};g.isNonGaiaChip=function(){return this.principalType==="NON_GAIA"};
g.isContainerChip=function(){return this.nestedChips!==null};g.isInternalAccessViolated=function(){return this.parentController.getAccessLevel()==="INTERNAL"&&(this.isExternalChip()||this.isPublicChip())};g.isExternalPartnerAccessViolated=function(){return this.parentController.getAccessLevel()==="EXTERNAL_PARTNER"&&this.isPublicChip()};g.isUserChip=function(){return this.principalType==="USER"};var LO={type:"no_indicator",displayText:""},NSc={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."},IYa={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."},OSc={type:"visible_to_partners",
displayText:"Visible to partners",displayTextCompact:"Partners",explanation:"This issue is visible to partner users."},FYa={type:"visible_to_public",displayText:"Visible to public",displayTextCompact:"Public",explanation:"This issue is visible to the public."},MO=function(){this.issueFullFridge=r(TE);this.componentAccessPolicyFridge=r(sB);this.activeSession=r(Bs)},RSc=function(a,b,c){var d=a.issueFullFridge.watch(b);b=Yf(function(){return c?Nf(c):d.pipe(C(function(e){return e==null?void 0:e.snapshot[0].componentId}))}).pipe(xg(function(e){return e?
a.componentAccessPolicyFridge.watch(e):Nf(void 0)}));return Uf([d,b]).pipe(C(function(e){var f=l(e);e=f.next().value;f=f.next().value;var h,k;var q=(k=e==null?void 0:e.snapshot[0].issueAccessLimitLevel)!=null?k:void 0;k=e==null?void 0:(h=e.accessLimit)==null?void 0:h.accessLevel;if(NA(a.activeSession))h=LO;else if(MA(a.activeSession))h=PSc(q,k,f);else if(a.activeSession.isInternalSession())h=QSc(q,k,f);else throw Error("Nd");return h}))},PSc=function(a,b,c){switch(b){case "INTERNAL":return LO;case "EXTERNAL_PARTNER":return LO;
case "EXTERNAL_PUBLIC":return JYa(a,c);case "ACCESS_LEVEL_UNSPECIFIED":return LO;default:return LO}},QSc=function(a,b,c){switch(b){case "INTERNAL":return LO;case "EXTERNAL_PARTNER":return a&&HYa(a)?NSc:OSc;case "EXTERNAL_PUBLIC":return JYa(a,c);case "ACCESS_LEVEL_UNSPECIFIED":return LO;default:return LO}};MO.\u0275fac=function(a){return new (a||MO)};MO.\u0275prov=Cd({token:MO,factory:MO.\u0275fac,providedIn:"root"});var NO=function(){Z.apply(this,arguments);var a=this;this.accessIndicatorService=r(MO);this.documentationLinks=r(JJ);this.issueFullFridge=r(TE);this.issueApi=r(RD);this.compactMode=!1;this.issueId$=new sg;this.accessIndicator$=this.issueId$.pipe(xg(function(b){return RSc(a.accessIndicatorService,b)}));this.chipClass$=this.accessIndicator$.pipe(C(function(b){return b.type}));this.chipText$=this.accessIndicator$.pipe(C(function(b){return a.compactMode?b.displayTextCompact||b.displayText:b.displayText}));
this.bubbleText$=this.accessIndicator$.pipe(C(function(b){return b.explanation}));this.shouldShowIndicator$=this.accessIndicator$.pipe(C(function(b){return b.type!=="no_indicator"}));this.issue$=this.issueId$.pipe(xg(function(b){return a.issueFullFridge.watch(b)}));this.viewers$=Uf([this.issue$,this.accessIndicator$]).pipe(kg(0,kp),xg(function(b){var c=l(b);b=c.next().value;c=c.next().value;if(!b||!PYa(c.type))return Nf([]);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(C(function(f){f=[].concat(p(Rp(f.writers)),p(Rp(f.appenders)),p(Rp(f.readers)));return[].concat(p(new Set(f)))}))}),ug({refCount:!0,bufferSize:1}));this.showHovercard$=this.viewers$.pipe(C(function(b){return!!b.length}),eg(Boolean),C(function(){}));this.loadTooltip$=new sg(1);this.tooltipText$=this.loadTooltip$.pipe(xg(function(){return a.viewers$}),C(function(b){return b.length?"Press Alt + Right arrow for more details":
""}));this.loadTooltipOnce=qj(function(){a.loadTooltip$.next()})};Y(NO,Z);NO.\u0275dir=Z.\u0275dir;NO.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.tooltipText$.subscribe(function(b){b&&(a.matTooltip.message=b,a.matTooltip.show())}))};nd.Object.defineProperties(NO.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});NO.\u0275fac=function(){var a;return function(b){return(a||(a=Re(NO)))(b||NO)}}();
NO.\u0275cmp=y({type:NO,selectors:[["b-issue-visibility-chip"]],viewQuery:function(a,b){a&1&&hh(xG,5);if(a&2){var c;lh(c=mh())&&(b.matTooltip=c.first)}},inputs:{issueId:"issueId",compactMode:"compactMode"},standalone:!1,features:[Bg],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,OYa,15,18),U(1,"async"));a&2&&G(V(1,1,b.shouldShowIndicator$)?0:-1)},dependencies:[IO,DI,EI,JI,FI,zG,xG,Tv],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 OO=function(){Z.apply(this,arguments);this.errorHandler=r(aK);this.issueFullFridge=r(TE);this.upvoted=!1;this.voteCount=0;this.onVote=new LE;this.tooltip="Indicate that you are affected by this issue";this.isSaving=!1};Y(OO,Z);OO.\u0275dir=Z.\u0275dir;
OO.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;Xwc(this.issueFullFridge,String(this.issueId),this.upvoted).pipe(mg(1),yg(this.destroyed$)).subscribe(function(){a.isSaving=!1},function(c){a.isSaving=!1;a.errorHandler.errorHandler(null,c);a.upvoted=!a.upvoted;a.voteCount-=b})}};OO.\u0275fac=function(){var a;return function(b){return(a||(a=Re(OO)))(b||OO)}}();
OO.\u0275cmp=y({type:OO,selectors:[["b-app-vote-button"]],hostVars:2,hostBindings:function(a,b){a&2&&uh("no-votes",b.voteCount<=0)},inputs:{issueId:"issueId",upvoted:"upvoted",voteCount:"voteCount"},outputs:{onVote:"onVote"},standalone:!1,features:[Bg],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&&(J(0,"button",0),N("click",function(){return b.onClick()}),M(1,"mat-icon",
1),J(2,"output",2),R(3),K()());a&2&&(I("matTooltip",b.upvoted?"Remove vote: I am not impacted":"Vote: I am impacted"),Lg("aria-pressed",b.upvoted)("aria-label","Vote count "+b.voteCount),x(2),I("title",Dh("",b.voteCount," votes on this issue")),x(),T(" ",b.voteCount>99999?"99999+":b.voteCount," "))},dependencies:[FC,oG,Jx,zG,xG],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 cZa=function(){return[]},PO=function(){Z.apply(this,arguments);var a=this;this.cdr=r(NE,{self:!0});this.activeSession=r(Bs);this.analytics=r(RE);this.relationshipService=r(hF);this.issueFullFridge=r(TE);this.butterBar=r(GJ);this.STATUS_JS_FULL_TEXT=uj;this.ISSUE_PRIORITY_TEXT_JS=Ooc;this.ISSUE_PRIORITY_ENUM=Tnc;this.ROUTES=Dq;this.providedIssueId$=new sg(1);this.issue$=this.providedIssueId$.pipe(xg(function(b){return a.issueFullFridge.watch(b)}),eg(Qj));this.FormattingMode=Uj;this.init=new sg(1)};
Y(PO,Z);PO.\u0275dir=Z.\u0275dir;PO.prototype.ngOnInit=function(){var a=this;this.providedIssueId$.next(this.issueId);this.issue$.pipe(yg(this.destroyed$)).subscribe(function(b){a.issue=b;a.firstEvent=b.description&&MFa(b.description,b);a.cdr.markForCheck();a.init.next()})};PO.prototype.priorityClass=function(a){switch(a){case "P0":return"high p0";case "P1":return"high";default:return"low"}};
PO.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 bZa=function(a,b){return xj(b).includes(a.activeSession.getUserEmail())},XYa=function(a,b){var c;return z(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))}),Gf(d,2,3),B(d,Rf(a.relationshipService.delete(c,"CHILD",b)),3);if(d.nextAddress!=2)return Hf(d),a.issueFullFridge.poke(b),Jf(d,0);Kf(d);a.butterBar.showWarning("Error removing the parent issue.");return d.jumpTo(3)})};
PO.\u0275fac=function(){var a;return function(b){return(a||(a=Re(PO)))(b||PO)}}();
PO.\u0275cmp=y({type:PO,selectors:[["b-issue-card"]],inputs:{issueId:"issueId",location:"location",childContextId:"childContextId"},outputs:{init:"init"},standalone:!1,features:[Fh([NE]),Bg],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&&(J(0,"div",0),F(1,dZa,22,17,"div",1),
K());if(a&2){var c;x();G((c=b.issue&&b.issue.snapshot[0])?1:-1,c)}},dependencies:[oG,Jx,zG,xG,bL,EL,AO,OO,NO,BO],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 SSc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(SSc,n);g=SSc.prototype;g.getComponentId=function(){return xk(this,1)};g.getComponentId_asString=function(){return Bk(this,1)};g.setComponentId=function(a){return Xl(this,1,a)};g.getText=function(){return Rc(this,2)};g.setText=function(a){return Hj(this,2,a)};var QO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,QO.messageId)};Y(QO,n);QO.prototype.getIt=function(){return W(this,SSc,3,Nc)};QO.prototype.setIt=function(a){return X(this,SSc,3,a,Nc)};QO.messageId="b.CheckBannedWordsRequest";var TSc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(TSc,n);var RO=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,RO.messageId)};Y(RO,n);RO.prototype.getIt=function(){return W(this,TSc,2,Nc)};RO.prototype.setIt=function(a){return X(this,TSc,2,a,Nc)};RO.messageId="b.CheckBannedWordsResponse";var SO=function(){this.executor=r(PA)};SO.prototype.checkBannedWords=function(a){a=(new QO).setIt((new SSc).setComponentId(Number(a.componentId)).setText(a.text));return this.executor.post({url:"action/check_banned_words",body:a,responseConstructor:RO}).pipe(C(eZa))};SO.\u0275fac=function(a){return new (a||SO)};SO.\u0275prov=Cd({token:SO,factory:SO.\u0275fac,providedIn:"root"});var TO=function(){this.observableApi=r(SO)};TO.prototype.checkBannedWords=function(a){return Rf(this.observableApi.checkBannedWords(a))};
TO.\u0275fac=function(a){return new (a||TO)};TO.\u0275prov=Cd({token:TO,factory:TO.\u0275fac,providedIn:"root"});var UO=function(){Z.apply(this,arguments);this.bannedWordsApi=r(TO);this.activeSession=r(Bs);this.errorHandler=r(aK);this.analytics=r(RE);this.matchedPatterns=[];this.warningState$=new Kn("INITIAL");this.enableBannedWordsCheck=OA(this.activeSession,"enableBannedWordsCheck");this.isUserInternal=this.activeSession.isInternalSession();this.showWarning$=this.warningState$.pipe(C(function(a){return a==="SHOW_WARNING"}))};Y(UO,Z);UO.\u0275dir=Z.\u0275dir;
UO.prototype.check=function(a,b,c){var d=this;return z(function(e){if(!(d.enableBannedWordsCheck&&d.isUserInternal&&b&&c))return e.return(!0);switch(d.warningState$.value){case "INITIAL":return e.return(USc(d,c,a));case "SHOW_WARNING":return d.warningState$.next("SKIP_WARNING"),d.analytics.trackEvent("bannedWords","skipBannedWordsCheck",Pq(d)),e.return(!0);default:return e.return(!0)}})};
var USc=function(a,b,c){var d,e;return z(function(f){if(f.nextAddress==1)return Gf(f,2),B(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",Pq(a)),f.return(!1)):f.return(!0);e=Kf(f);cK(a.errorHandler,e);return f.return(!0)})},Pq=function(a){return a.matchedPatterns.join(", ")};
UO.prototype.showWarning=function(){return this.warningState$.value==="SHOW_WARNING"};UO.prototype.reset=function(){this.matchedPatterns=[];this.warningState$.next("INITIAL")};UO.\u0275fac=function(){var a;return function(b){return(a||(a=Re(UO)))(b||UO)}}();UO.\u0275prov=Cd({token:UO,factory:UO.\u0275fac});var VSc=["issueTitleCellInputEl"],VO=function(){this.appEvents=r(FB);this.issueFullFridge=r(TE);this.issuePermissionService=r(OK);this.bannedWordsChecker=r(UO);this.savingTitle=!1;this.issue=null;this.isEditMode=this.enableHovercard=this.useButtonToNavigate=!1;this.onCancel=new LE;this.onSave=new LE;this.issueNavigated=new LE;this.title="";this.isDataLoaded=!1;this.link=""};
VO.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 iZa=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)}};VO.prototype.getIssueUrl=function(a){return this.issueUrlFactory?this.issueUrlFactory(a):Dq.viewIssue.makeHref(a)};
var fZa=function(a){var b,c=(b=a.issue)==null?void 0:b.issueId;c!=null&&a.appEvents.didShowIssueHovercard.next(c)},pZa=function(a){var b,c;return z(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;If(d,2);return B(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?B(d,WSc(a),2):(a.issueTitleCellInputEl.nativeElement.focus(),
d.jumpTo(2));Hf(d);a.savingTitle=!1;return Jf(d,0)})},WSc=function(a){return z(function(b){if(b.nextAddress==1)return a.bannedWordsChecker.reset(),If(b,2),B(b,Rf(Ywc(a.issueFullFridge,a.issue.issueId,a.title.trim())),2);Hf(b);a.onSave.emit();return Jf(b,0)})};VO.\u0275fac=function(a){return new (a||VO)};
VO.\u0275cmp=y({type:VO,selectors:[["b-issue-title-cell"]],viewQuery:function(a,b){a&1&&hh(VSc,5);if(a&2){var c;lh(c=mh())&&(b.issueTitleCellInputEl=c.first)}},hostAttrs:[1,"flex-kids-x","line-clamp-3"],hostVars:2,hostBindings:function(a,b){a&2&&uh("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"},standalone:!1,features:[Fh([UO]),ov],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&&(J(0,"b-async-data-placeholder",3),M(1,"b-tracker-chip-smart",4),F(2,jZa,4,3)(3,lZa,1,1,"ng-container"),F(4,mZa,2,7,"span",5),K(),J(5,"onedev-hovercard",null,0),F(7,nZa,1,1,"b-issue-card",
6),K(),F(8,oZa,4,1,"p",7),U(9,"async"),D(10,sZa,2,1,"ng-template",null,1,Lh));if(a&2){var c;I("isReady",b.isDataLoaded);x();I("trackerId",b.issue==null?null:b.issue.trackerId)("compactMode",!0);x();G(b.useButtonToNavigate?2:3);x(2);G((c=b.trailingChip)?4:-1,c);x(3);G(b.enableHovercard&&b.issue?7:-1);x();G(V(9,7,b.bannedWordsChecker.showWarning$)?8:-1)}},dependencies:[WN,Sv,FC,xC,AG,gO,Ui,dy,ky,oG,Kx,zG,xG,DI,JI,PO,$M,Tv],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 XSc=function(a,b){return[a,b]},YSc=[[["b-callout-body"]],[["b-callout-actions"]]],WO=function(){this.messageType="info";this.format="default"};WO.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"}};WO.\u0275fac=function(a){return new (a||WO)};
WO.\u0275cmp=y({type:WO,selectors:[["b-callout"]],hostVars:5,hostBindings:function(a,b){a&2&&vh(Ih(2,XSc,b.messageType,b.format).join(" "))},inputs:{messageType:"messageType",format:"format",iconOverride:"iconOverride"},standalone:!1,ngContentSelectors:["b-callout-body","b-callout-actions"],decls:6,vars:1,consts:[[1,"callout"],["role","alert",1,"content"],[3,"svgIcon"],[1,"actions"]],template:function(a,b){a&1&&(ch(YSc),J(0,"div",0)(1,"div",1),M(2,"mat-icon",2),dh(3),K(),J(4,"div",3),dh(5,1),K()());
a&2&&(x(2),I("svgIcon",b.getIconName()))},dependencies:[FC],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 XO=function(){};XO.\u0275fac=function(a){return new (a||XO)};XO.\u0275dir=vf({type:XO,selectors:[["b-callout-body"],["b-callout-actions"]],standalone:!1});var YO=function(a,b){this.checker=a;this.document=b};YO.prototype.focusFirstFocusableElement=function(a){(a=ZSc(this,a,!0))&&a.focus()};var ZSc=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?ZSc(a,b[c]):null;if(d)return d}return null};YO.\u0275fac=function(a){return new (a||YO)(be(mw),be(ui))};YO.\u0275prov=Cd({token:YO,factory:YO.\u0275fac,providedIn:"root"});var ZO=function(){this.elementRef=r(Te);this.interactivityHelper=r(YO)};ZO.prototype.ngOnInit=function(){};ZO.prototype.focus=function(){this.element.contains(document.activeElement)||this.interactivityHelper.focusFirstFocusableElement(this.element)};nd.Object.defineProperties(ZO.prototype,{element:{configurable:!0,enumerable:!0,get:function(){return this.elementRef.nativeElement}}});ZO.\u0275fac=function(a){return new (a||ZO)};
ZO.\u0275dir=vf({type:ZO,selectors:[["tr","row",""]],inputs:{row:"row"},exportAs:["tableRowDirective"],standalone:!1});var $O=function(){};$O.\u0275fac=function(a){return new (a||$O)};$O.\u0275mod=uf({type:$O});$O.\u0275inj=Dd({});var $Sc=function(a,b){Ow.call(this,a);this.directives=a;this.isEqual=b};Y($Sc,Ow);var Rq=function(a,b){var c;return z(function(d){if(d.nextAddress==1)return B(d,Rf(a.directives.changes.pipe(wg(a.directives.toArray()),C(function(e){return e.find(function(f){return a.isEqual(f.row,b)})}),eg(Boolean),fg(3E3))),2);c=d.yieldResult;a.setActiveItem(c);Lf(d)})};var aTc=new le("GMAT_CHIPS_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var aP=function(a){this.options=a;if(a.disableGmatStyle)throw Error("Mc");};aP.\u0275fac=function(a){return new (a||aP)(of(aTc))};
aP.\u0275dir=vf({type:aP,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&&uh("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 bTc=new le("GMAT_SELECT_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var bP=function(a){this.options=a;if(a.disableGmatStyle)throw Error("Mc");};bP.\u0275fac=function(a){return new (a||bP)(of(bTc))};bP.\u0275dir=vf({type:bP,selectors:[["mat-select"]],hostAttrs:[1,"gmat-mdc-select"],standalone:!1});var cTc=new le("GMAT_TABLE_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var cP=function(a){this.options=a;if(a.disableGmatStyle)throw Error("Mc");};cP.\u0275fac=function(a){return new (a||cP)(of(cTc))};cP.\u0275dir=vf({type:cP,selectors:[["table","mat-table",""],["mat-table"]],hostAttrs:[1,"gmat-mdc-table"],standalone:!1});var dTc=new le("mat-chips-default-options",{providedIn:"root",factory:function(){return{separatorKeyCodes:[13]}}}),eTc=new le("MatChipAvatar"),fTc=new le("MatChipTrailingIcon"),gTc=new le("MatChipEdit"),hTc=new le("MatChipRemove"),iTc=new le("MatChip");var dP=function(){this._elementRef=r(Te);this._parentChip=r(iTc);this._isPrimary=this.isInteractive=!0;this._disabled=this._isLeading=!1;this.tabIndex=-1;this._allowFocusWhenDisabled=!1;r(Di).load(wx);this._elementRef.nativeElement.nodeName==="BUTTON"&&this._elementRef.nativeElement.setAttribute("type","button")};g=dP.prototype;g._getDisabledAttribute=function(){return this.disabled&&!this._allowFocusWhenDisabled?"":null};
g._getTabindex=function(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()};g.focus=function(){this._elementRef.nativeElement.focus()};g._handleClick=function(a){!this.disabled&&this.isInteractive&&this._isPrimary&&(a.preventDefault(),this._parentChip._handlePrimaryActionInteraction())};
g._handleKeydown=function(a){a.keyCode!==13&&a.keyCode!==32||this.disabled||!this.isInteractive||!this._isPrimary||this._parentChip._isEditing||(a.preventDefault(),this._parentChip._handlePrimaryActionInteraction())};nd.Object.defineProperties(dP.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}}});dP.\u0275fac=function(a){return new (a||dP)};
dP.\u0275dir=vf({type:dP,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:11,hostBindings:function(a,b){a&1&&N("click",function(c){return b._handleClick(c)})("keydown",function(c){return b._handleKeydown(c)});a&2&&(Lg("tabindex",b._getTabindex())("disabled",b._getDisabledAttribute())("aria-disabled",b.disabled),uh("mdc-evolution-chip__action--primary",b._isPrimary)("mdc-evolution-chip__action--presentational",!b.isInteractive)("mdc-evolution-chip__action--secondary",
!b._isPrimary)("mdc-evolution-chip__action--trailing",!b._isPrimary&&!b._isLeading))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",$h],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?-1:ai(a)}],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}});var eP=function(){dP.apply(this,arguments);this._isPrimary=this.isInteractive=!1};Y(eP,dP);eP.\u0275fac=function(){var a;return function(b){return(a||(a=Re(eP)))(b||eP)}}();eP.\u0275dir=vf({type:eP,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:[Fh([{provide:fTc,useExisting:eP}]),Bg]});var jTc=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],fP=function(){this._changeDetectorRef=r(Hv);this._elementRef=r(Te);this._tagName=r(rgc);this._ngZone=r(Ph);this._focusMonitor=r(jw);this._globalRippleOptions=r(yx,{optional:!0});this._document=r(ui);this._onFocus=new tg;this._onBlur=new tg;this.role=null;this._hasFocusInternal=!1;this._animationsDisabled=Ri();this.id=r(Fi).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 nq;this.destroyed=new nq;this.basicChipAttrName="mat-basic-chip";this._rippleLoader=r(Fx);this._injector=r(Cg);var a=r(Di);a.load(wx);a.load(nw);this._monitorFocus();var b;(b=this._rippleLoader)==null||ckc(b,this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})};g=fP.prototype;g._hasFocus=function(){return this._hasFocusInternal};
g.ngOnInit=function(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._tagName.toLowerCase()===this.basicChipAttrName};g.ngAfterViewInit=function(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label");this._pendingFocus&&(this._pendingFocus=!1,this.focus())};g.ngAfterContentInit=function(){var a=this;this._actionChanges=dg(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.changes,this._allRemoveIcons.changes).subscribe(function(){return a._changeDetectorRef.markForCheck()})};
g.ngDoCheck=function(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);var a;(a=this._rippleLoader)==null||bkc(a,this._elementRef.nativeElement);var b;(b=this._actionChanges)==null||b.unsubscribe();this.destroyed.emit({chip:this});this.destroyed.complete()};g.remove=function(){this.removable&&(this._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))};
g._isRippleDisabled=function(){var a;return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!((a=this._globalRippleOptions)==null||!a.disabled)};g._hasTrailingIcon=function(){return!(!this.trailingIcon&&!this.removeIcon)};g._handleKeydown=function(a){if(a.keyCode===8&&!a.repeat||a.keyCode===46)a.preventDefault(),this.remove()};g.focus=function(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)};
g._getSourceAction=function(a){return this._getActions().find(function(b){b=b._elementRef.nativeElement;return b===a||b.contains(a)})};g._getActions=function(){var a=[];this.editIcon&&a.push(this.editIcon);this.primaryAction&&a.push(this.primaryAction);this.removeIcon&&a.push(this.removeIcon);this.trailingIcon&&a.push(this.trailingIcon);return a};g._handlePrimaryActionInteraction=function(){};g._hasInteractiveActions=function(){return this._getActions().some(function(a){return a.isInteractive})};
g._edit=function(){};g._monitorFocus=function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(b){b=b!==null;b!==a._hasFocusInternal&&((a._hasFocusInternal=b)?a._onFocus.next({chip:a}):(a._changeDetectorRef.markForCheck(),setTimeout(function(){return a._ngZone.run(function(){return a._onBlur.next({chip:a})})})))})};
nd.Object.defineProperties(fP.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}}});fP.\u0275fac=function(a){return new (a||fP)};
fP.\u0275cmp=y({type:fP,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(a,b,c){a&1&&(ih(c,eTc,5),ih(c,gTc,5),ih(c,fTc,5),ih(c,hTc,5),ih(c,eTc,5),ih(c,fTc,5),ih(c,gTc,5),ih(c,hTc,5));if(a&2){var d;lh(d=mh())&&(b.leadingIcon=d.first);lh(d=mh())&&(b.editIcon=d.first);lh(d=mh())&&(b.trailingIcon=d.first);lh(d=mh())&&(b.removeIcon=d.first);lh(d=mh())&&(b._allLeadingIcons=d);lh(d=mh())&&(b._allTrailingIcons=d);lh(d=mh())&&(b._allEditIcons=
d);lh(d=mh())&&(b._allRemoveIcons=d)}},viewQuery:function(a,b){a&1&&hh(dP,5);if(a&2){var c;lh(c=mh())&&(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&&(Rg("id",b.id),Lg("role",b.role)("aria-label",b.ariaLabel),vh("mat-"+(b.color||"primary")),uh("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",$h],highlighted:[2,"highlighted","highlighted",$h],disableRipple:[2,"disableRipple","disableRipple",$h],disabled:[2,"disabled","disabled",$h]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[Fh([{provide:iTc,useExisting:fP}])],ngContentSelectors:["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],decls:8,vars:3,
consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(a,b){a&1&&(ch(jTc),M(0,"span",0),J(1,"span",1)(2,"span",2),F(3,tZa,2,0,"span",3),
J(4,"span",4),dh(5),M(6,"span",5),K()()(),F(7,uZa,2,0,"span",6));a&2&&(x(2),I("isInteractive",!1),x(),G(b.leadingIcon?3:-1),x(4),G(b._hasTrailingIcon()?7:-1))},dependencies:[dP],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: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:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--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}\n'],
encapsulation:2,changeDetection:0});var kTc=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],gP=function(){fP.apply(this,arguments);this._defaultOptions=r(dTc,{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 nq};Y(gP,fP);g=gP.prototype;g.ngOnInit=function(){fP.prototype.ngOnInit.call(this);this.role="presentation"};g.select=function(){this._setSelectedState(!0,!1,!0)};g.deselect=function(){this._setSelectedState(!1,!1,!0)};g._handlePrimaryActionInteraction=function(){this.disabled||(this.focus(),this.selectable&&this._setSelectedState(!this.selected,!0,!0))};g._hasLeadingGraphic=function(){return this.leadingIcon?!0:!this._chipListHideSingleSelectionIndicator||this._chipListMultiple};
g._setSelectedState=function(a,b,c){a!==this.selected&&(this._selected=a,c&&this.selectionChange.emit({source:this,isUserInput:b,selected:this.selected}),this._changeDetectorRef.markForCheck())};
nd.Object.defineProperties(gP.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}}});
gP.\u0275fac=function(){var a;return function(b){return(a||(a=Re(gP)))(b||gP)}}();
gP.\u0275cmp=y({type:gP,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&&(Rg("id",b.id),Lg("tabindex",null)("aria-label",null)("aria-description",null)("role",b.role),uh("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",$h],selected:[2,"selected","selected",$h]},outputs:{selectionChange:"selectionChange"},features:[Fh([{provide:fP,useExisting:gP},{provide:iTc,useExisting:gP}]),Bg],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&&(ch(kTc),M(0,"span",0),J(1,"span",1)(2,"button",2),F(3,vZa,5,0,"span",3),J(4,"span",4),dh(5),M(6,"span",5),K()()(),F(7,wZa,2,0,"span",6));a&2&&(x(2),I("_allowFocusWhenDisabled",!0),Lg("aria-description",b.ariaDescription)("aria-label",b.ariaLabel)("aria-selected",b.ariaSelected),x(),G(b._hasLeadingGraphic()?3:-1),x(4),G(b._hasTrailingIcon()?7:-1))},dependencies:[dP],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: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:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--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}\n'],
encapsulation:2,changeDetection:0});var hP=function(){this._elementRef=r(Te);this._changeDetectorRef=r(Hv);this._dir=r(Gi,{optional:!0});this._lastDestroyedFocusedChipIndex=null;this._destroyed=new tg;this._defaultRole="presentation";this._disabled=!1;this.tabIndex=0;this._explicitRole=null;this._chipActions=new gh};g=hP.prototype;g.ngAfterViewInit=function(){this._setUpFocusManagement();this._trackChipSetChanges();this._trackDestroyedFocusedChip()};
g.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();this._chipActions.destroy();this._destroyed.next();this._destroyed.complete()};g._hasFocusedChip=function(){return this._chips&&this._chips.some(function(a){return a._hasFocus()})};g._syncChipsState=function(){var a=this,b;(b=this._chips)==null||b.forEach(function(c){c._chipListDisabled=a._disabled;c._changeDetectorRef.markForCheck()})};g.focus=function(){};g._handleKeydown=function(a){if(this._originatesFromChip(a))this._keyManager.onKeydown(a)};
g._isValidIndex=function(a){return a>=0&&a<this._chips.length};g._allowFocusEscape=function(){var a=this,b=this._elementRef.nativeElement.tabIndex;b!==-1&&(this._elementRef.nativeElement.tabIndex=-1,setTimeout(function(){return a._elementRef.nativeElement.tabIndex=b}))};g._getChipStream=function(a){var b=this;return this._chips.changes.pipe(wg(null),xg(function(){return dg.apply(null,p(b._chips.map(a)))}))};
g._originatesFromChip=function(a){for(a=a.target;a&&a!==this._elementRef.nativeElement;){if(a.classList.contains("mat-mdc-chip"))return!0;a=a.parentElement}return!1};
g._setUpFocusManagement=function(){var a=this;this._chips.changes.pipe(wg(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);kh(a._chipActions)});this._keyManager=Lw(Kw(Jw(new Ow(this._chipActions)),this._dir?this._dir.value:"ltr")).skipPredicate(function(c){return a._skipPredicate(c)});this.chipFocusChanges.pipe(yg(this._destroyed)).subscribe(function(c){(c=c.chip._getSourceAction(document.activeElement))&&
Mw(a._keyManager,c)});var b;(b=this._dir)==null||b.change.pipe(yg(this._destroyed)).subscribe(function(c){return Kw(a._keyManager,c)})};g._skipPredicate=function(a){return!a.isInteractive||a.disabled};g._trackChipSetChanges=function(){var a=this;this._chips.changes.pipe(wg(null),yg(this._destroyed)).subscribe(function(){a.disabled&&Promise.resolve().then(function(){return a._syncChipsState()});a._redirectDestroyedChipFocus()})};
g._trackDestroyedFocusedChip=function(){var a=this;this.chipDestroyedChanges.pipe(yg(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)})};
g._redirectDestroyedChipFocus=function(){if(this._lastDestroyedFocusedChipIndex!=null){if(this._chips.length){var a=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1);a=this._chips.toArray()[a];a.disabled?this._chips.length===1?this.focus():this._keyManager.setPreviousItemActive():a.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}};
nd.Object.defineProperties(hP.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()}}});hP.\u0275fac=function(a){return new (a||hP)};
hP.\u0275cmp=y({type:hP,selectors:[["mat-chip-set"]],contentQueries:function(a,b,c){a&1&&ih(c,fP,5);if(a&2){var d;lh(d=mh())&&(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&&Lg("role",b.role)},inputs:{disabled:[2,"disabled","disabled",$h],role:"role",tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:ai(a)}]},ngContentSelectors:["*"],decls:2,vars:0,consts:[["role",
"presentation",1,"mdc-evolution-chip-set__chips"]],template:function(a){a&1&&(ch(),Sg(0,"div",0),dh(1),Tg())},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 lTc=function(a,b){this.source=a;this.value=b},mTc={provide:Yx,useExisting:$d(function(){return iP}),multi:!0},iP=function(){hP.apply(this,arguments);this._onTouched=function(){};this._onChange=function(){};this._defaultRole="listbox";this._defaultOptions=r(dTc,{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 nq;this._chips=void 0};Y(iP,hP);g=iP.prototype;
g.ngAfterContentInit=function(){var a=this;this._chips.changes.pipe(wg(null),yg(this._destroyed)).subscribe(function(){a.value!==void 0&&Promise.resolve().then(function(){a._setSelectionByValue(a.value,!1)});a._syncListboxProperties()});this.chipBlurChanges.pipe(yg(this._destroyed)).subscribe(function(){return a._blur()});this.chipSelectionChanges.pipe(yg(this._destroyed)).subscribe(function(b){a.multiple||a._chips.forEach(function(c){c!==b.source&&c._setSelectedState(!1,!1,!1)});b.isUserInput&&a._propagateChanges()})};
g.focus=function(){if(!this.disabled){var a=this._getFirstSelectedChip();a&&!a.disabled?a.focus():this._chips.length>0?this._keyManager._setActiveItemByIndex(0,1):this._elementRef.nativeElement.focus()}};g.writeValue=function(a){a!=null?this.value=a:this.value=void 0};g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this.disabled=a};
g._setSelectionByValue=function(a,b){var c=this;b=b===void 0?!0:b;this._clearSelection();Array.isArray(a)?a.forEach(function(d){return c._selectValue(d,b)}):this._selectValue(a,b)};g._blur=function(){var a=this;this.disabled||setTimeout(function(){a.focused||a._markAsTouched()})};g._keydown=function(a){a.keyCode===9&&hP.prototype._allowFocusEscape.call(this)};g._markAsTouched=function(){this._onTouched();this._changeDetectorRef.markForCheck()};
g._propagateChanges=function(){var a=null;Array.isArray(this.selected)?a=this.selected.map(function(b){return b.value}):a=this.selected?this.selected.value:void 0;this._value=a;this.change.emit(new lTc(this,a));this._onChange(a);this._changeDetectorRef.markForCheck()};g._clearSelection=function(a){this._chips.forEach(function(b){b!==a&&b.deselect()})};
g._selectValue=function(a,b){var c=this,d=this._chips.find(function(e){return e.value!=null&&c.compareWith(e.value,a)});d&&(b?d._setSelectedState(!0,!0,!0):d.select());return d};g._syncListboxProperties=function(){var a=this;this._chips&&Promise.resolve().then(function(){a._chips.forEach(function(b){b._chipListMultiple=a.multiple;b.chipListSelectable=a._selectable;b._chipListHideSingleSelectionIndicator=a.hideSingleSelectionIndicator;b._changeDetectorRef.markForCheck()})})};
g._getFirstSelectedChip=function(){return Array.isArray(this.selected)?this.selected.length?this.selected[0]:void 0:this.selected};g._skipPredicate=function(a){return!a.isInteractive};
nd.Object.defineProperties(iP.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}}});iP.\u0275fac=function(){var a;return function(b){return(a||(a=Re(iP)))(b||iP)}}();
iP.\u0275cmp=y({type:iP,selectors:[["mat-chip-listbox"]],contentQueries:function(a,b,c){a&1&&ih(c,gP,5);if(a&2){var d;lh(d=mh())&&(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&&(Rg("tabIndex",b.disabled||b.empty?-1:b.tabIndex),Lg("role",b.role)("aria-required",b.role?b.required:null)("aria-disabled",
b.disabled.toString())("aria-multiselectable",b.multiple)("aria-orientation",b.ariaOrientation),uh("mat-mdc-chip-list-disabled",b.disabled)("mat-mdc-chip-list-required",b.required))},inputs:{multiple:[2,"multiple","multiple",$h],ariaOrientation:[0,"aria-orientation","ariaOrientation"],selectable:[2,"selectable","selectable",$h],compareWith:"compareWith",required:[2,"required","required",$h],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",$h],value:"value"},
outputs:{change:"change"},features:[Fh([mTc]),Bg],ngContentSelectors:["*"],decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(a){a&1&&(ch(),Sg(0,"div",0),dh(1),Tg())},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 nTc=["trigger"],oTc=["panel"],pTc=[[["mat-select-trigger"]],"*"],qTc=new le("mat-select-scroll-strategy",{providedIn:"root",factory:function(){var a=r(Cg);return function(){return xi(a)}}}),rTc=new le("MAT_SELECT_CONFIG"),sTc={provide:qTc,deps:[],useFactory:function(){var a=r(Cg);return function(){return xi(a)}}},tTc=new le("MatSelectTrigger"),uTc=function(a,b){this.source=a;this.value=b},jP=function(){var a=this;this._viewportRuler=r(vi);this._changeDetectorRef=r(Hv);this._elementRef=r(Te);this._dir=
r(Gi,{optional:!0});this._idGenerator=r(Fi);this._renderer=r(Ji);this._parentFormField=r(llc,{optional:!0});this.ngControl=r(by,{self:!0,optional:!0});this._liveAnnouncer=r(Aw);this._defaultOptions=r(rTc,{optional:!0});this._animationsDisabled=Ri();this._initialized=new tg;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=r(qTc);this._panelOpen=!1;this._compareWith=function(v,A){return v===A};this._uid=this._idGenerator.getId("mat-select-");this._triggerAriaLabelledBy=null;this._destroy=new tg;this.stateChanges=new tg;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=nh.apply(null,[!1].concat(p([])));this.tabIndex=0;var c,d;this._hideSingleSelectionIndicator=(d=(c=this._defaultOptions)==null?void 0:c.hideSingleSelectionIndicator)!=null?d:!1;this._multiple=!1;var e,f;this.disableOptionCentering=(f=(e=this._defaultOptions)==null?void 0:e.disableOptionCentering)!=null?f:!1;this.ariaLabel="";this.panelWidth=this._defaultOptions&&
typeof this._defaultOptions.panelWidth!=="undefined"?this._defaultOptions.panelWidth:"auto";var h,k;this.canSelectNullableOptions=(k=(h=this._defaultOptions)==null?void 0:h.canSelectNullableOptions)!=null?k:!1;this.optionSelectionChanges=Yf(function(){var v=a.options;return v?v.changes.pipe(wg(v),xg(function(){return dg.apply(null,p(v.map(function(A){return A.onSelectionChange})))})):a._initialized.pipe(xg(function(){return a.optionSelectionChanges}))});this.openedChange=new nq;this._openedStream=
this.openedChange.pipe(eg(function(v){return v}),C(function(){}));this._closedStream=this.openedChange.pipe(eg(function(v){return!v}),C(function(){}));this.selectionChange=new nq;this.valueChange=new nq;this._trackedModal=null;this._skipPredicate=function(v){return a.panelOpen?!1:v.disabled};b=r(vx);c=r(iy,{optional:!0});d=r(qy,{optional:!0});e=r(new pv("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this);var q;((q=this._defaultOptions)==null?void 0:q.typeaheadDebounceInterval)!=
null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval);this._errorStateTracker=new Fjc(b,this.ngControl,d,c,this.stateChanges);this._scrollStrategy=this._scrollStrategyFactory();this.tabIndex=e==null?0:parseInt(e)||0;this.id=this.id};g=jP.prototype;
g._scrollOptionIntoView=function(a){var b=this.options.toArray()[a];if(b){var c=this.panel.nativeElement,d=Rpa(a,this.options,this.optionGroups);b=b._getHostElement();c.scrollTop=a===0&&d===1?0:Spa(b.offsetTop,b.offsetHeight,c.scrollTop,c.offsetHeight)}};g._positioningSettled=function(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)};g._getChangeEvent=function(a){return new uTc(this,a)};
g.ngOnInit=function(){var a=this;this._selectionModel=new Tw(this.multiple);this.stateChanges.next();this._viewportRuler.change().pipe(yg(this._destroy)).subscribe(function(){a.panelOpen&&(a._overlayWidth=a._getOverlayWidth(a._preferredOverlayOrigin),a._changeDetectorRef.detectChanges())})};
g.ngAfterContentInit=function(){var a=this;this._initialized.next();this._initialized.complete();this._initKeyManager();this._selectionModel.changed.pipe(yg(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(wg(null),yg(this._destroy)).subscribe(function(){a._resetOptions();a._initializeSelection()})};
g.ngDoCheck=function(){var a=this._getTriggerAriaLabelledby(),b=this.ngControl;if(a!==this._triggerAriaLabelledBy){var c=this._elementRef.nativeElement;(this._triggerAriaLabelledBy=a)?c.setAttribute("aria-labelledby",a):c.removeAttribute("aria-labelledby")}b&&(this._previousControl!==b.control&&(this._previousControl!==void 0&&b.disabled!==null&&b.disabled!==this.disabled&&(this.disabled=b.disabled),this._previousControl=b.control),this.updateErrorState())};
g.ngOnChanges=function(a){(a.disabled||a.userAriaDescribedBy)&&this.stateChanges.next();a.typeaheadDebounceInterval&&this._keyManager&&ajc(this._keyManager,this.typeaheadDebounceInterval)};g.ngOnDestroy=function(){var a;(a=this._cleanupDetach)==null||a.call(this);var b;(b=this._keyManager)==null||b.destroy();this._destroy.next();this._destroy.complete();this.stateChanges.complete();this._clearFromModal()};g.toggle=function(){this.panelOpen?this.close():this.open()};
g.open=function(){var a=this;if(this._canOpen()){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin());var b;(b=this._cleanupDetach)==null||b.call(this);this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin);this._applyModalPanelOwnership();this._panelOpen=!0;this._overlayDir.positionChange.pipe(mg(1)).subscribe(function(){a._changeDetectorRef.detectChanges();a._positioningSettled()});Cjc(this._overlayDir);Kw(this._keyManager,null);
this._highlightCorrectOption();this._changeDetectorRef.markForCheck();this.stateChanges.next();Promise.resolve().then(function(){return a.openedChange.emit(!0)})}};g._applyModalPanelOwnership=function(){var a=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(a){var b=this.id+"-panel";this._trackedModal&&ti(this._trackedModal,"aria-owns",b);spa(a,"aria-owns",b);this._trackedModal=a}};
g._clearFromModal=function(){this._trackedModal&&(ti(this._trackedModal,"aria-owns",this.id+"-panel"),this._trackedModal=null)};g.close=function(){var a=this;this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),Kw(this._keyManager,this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(function(){return a.openedChange.emit(!1)}))};
g._exitAndDetach=function(){var a=this;if(this._animationsDisabled||!this.panel)this._detachOverlay();else{var b;(b=this._cleanupDetach)==null||b.call(this);this._cleanupDetach=function(){c();clearTimeout(d);a._cleanupDetach=void 0};b=this.panel.nativeElement;var c=this._renderer.listen(b,"animationend",function(e){if(e.animationName==="_mat-select-exit"){var f;(f=a._cleanupDetach)==null||f.call(a);a._detachOverlay()}}),d=setTimeout(function(){var e;(e=a._cleanupDetach)==null||e.call(a);a._detachOverlay()},
200);b.classList.add("mat-select-panel-exit")}};g._detachOverlay=function(){Djc(this._overlayDir);this._changeDetectorRef.markForCheck()};g.writeValue=function(a){this._assignValue(a)};g.registerOnChange=function(a){this._onChange=a};g.registerOnTouched=function(a){this._onTouched=a};g.setDisabledState=function(a){this.disabled=a;this._changeDetectorRef.markForCheck();this.stateChanges.next()};g.updateErrorState=function(){this._errorStateTracker.updateErrorState()};
g._isRtl=function(){return this._dir?this._dir.value==="rtl":!1};g._handleKeydown=function(a){this.disabled||(this.panelOpen?this._handleOpenKeydown(a):this._handleClosedKeydown(a))};
g._handleClosedKeydown=function(a){var b=a.keyCode,c=b===40||b===38||b===37||b===39,d=this._keyManager;!(d.isTyping()||b!==13&&b!==32||ki(a))||(this.multiple||a.altKey)&&c?(a.preventDefault(),this.open()):this.multiple||(b=this.selected,d.onKeydown(a),(a=this.selected)&&b!==a&&this._liveAnnouncer.announce(a.viewValue,1E4))};
g._handleOpenKeydown=function(a){var b=this._keyManager,c=a.keyCode,d=c===40||c===38,e=b.isTyping();if(d&&a.altKey)a.preventDefault(),this.close();else if(e||c!==13&&c!==32||!b.activeItem||ki(a))if(!e&&this._multiple&&c===65&&a.ctrlKey){a.preventDefault();var f=this.options.some(function(h){return!h.disabled&&!h.selected});this.options.forEach(function(h){h.disabled||(f?h.select():h.deselect())})}else c=b.activeItemIndex,b.onKeydown(a),this._multiple&&d&&a.shiftKey&&b.activeItem&&b.activeItemIndex!==
c&&b.activeItem._selectViaInteraction();else a.preventDefault(),b.activeItem._selectViaInteraction()};g._handleOverlayKeydown=function(a){a.keyCode!==27||ki(a)||(a.preventDefault(),this.close())};g._onFocus=function(){this.disabled||(this._focused=!0,this.stateChanges.next())};g._onBlur=function(){this._focused=!1;var a;if((a=this._keyManager)!=null){var b;(b=a._typeahead)==null||b.reset()}this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())};
g._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""};g._initializeSelection=function(){var a=this;Promise.resolve().then(function(){a.ngControl&&(a._value=a.ngControl.value);a._setSelectionByValue(a._value);a.stateChanges.next()})};
g._setSelectionByValue=function(a){var b=this;this.options.forEach(function(c){return c.setInactiveStyles()});this._selectionModel.clear();this.multiple&&a?(a.forEach(function(c){return b._selectOptionByValue(c)}),this._sortValues()):(a=this._selectOptionByValue(a))?Mw(this._keyManager,a):this.panelOpen||Mw(this._keyManager,-1);this._changeDetectorRef.markForCheck()};
g._selectOptionByValue=function(a){var b=this,c=this.options.find(function(d){if(b._selectionModel.isSelected(d))return!1;try{return(d.value!=null||b.canSelectNullableOptions)&&b._compareWith(d.value,a)}catch(e){return!1}});c&&this._selectionModel.select(c);return c};g._assignValue=function(a){return a!==this._value||this._multiple&&Array.isArray(a)?(this.options&&this._setSelectionByValue(a),this._value=a,!0):!1};
g._getOverlayWidth=function(a){return this.panelWidth==="auto"?(a instanceof mx?a.elementRef:a||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth};g._syncParentProperties=function(){if(this.options)for(var a=l(this.options),b=a.next();!b.done;b=a.next())b.value._changeDetectorRef.markForCheck()};
g._initKeyManager=function(){var a=this;this._keyManager=$ic(bjc(Lw(Kw(Jw(ajc(new Nw(this.options),this.typeaheadDebounceInterval)),this._isRtl()?"rtl":"ltr")))).skipPredicate(this._skipPredicate);this._keyManager.tabOut.subscribe(function(){a.panelOpen&&(!a.multiple&&a._keyManager.activeItem&&a._keyManager.activeItem._selectViaInteraction(),a.focus(),a.close())});this._keyManager.change.subscribe(function(){a._panelOpen&&a.panel?a._scrollOptionIntoView(a._keyManager.activeItemIndex||0):a._panelOpen||
a.multiple||!a._keyManager.activeItem||a._keyManager.activeItem._selectViaInteraction()})};g._resetOptions=function(){var a=this,b=dg(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(yg(b)).subscribe(function(c){a._onSelect(c.source,c.isUserInput);c.isUserInput&&!a.multiple&&a._panelOpen&&(a.close(),a.focus())});dg.apply(null,p(this.options.map(function(c){return c._stateChanges}))).pipe(yg(b)).subscribe(function(){a._changeDetectorRef.detectChanges();a.stateChanges.next()})};
g._onSelect=function(a,b){var c=this._selectionModel.isSelected(a);this.canSelectNullableOptions||a.value!=null||this._multiple?(c!==a.selected&&(a.selected?this._selectionModel.select(a):this._selectionModel.deselect(a)),b&&this._keyManager.setActiveItem(a),this.multiple&&(this._sortValues(),b&&this.focus())):(a.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(a.value));c!==this._selectionModel.isSelected(a)&&this._propagateChanges();this.stateChanges.next()};
g._sortValues=function(){var a=this;if(this.multiple){var b=this.options.toArray();this._selectionModel.sort(function(c,d){return a.sortComparator?a.sortComparator(c,d,b):b.indexOf(c)-b.indexOf(d)});this.stateChanges.next()}};g._propagateChanges=function(a){var b;this.multiple?b=this.selected.map(function(c){return c.value}):b=this.selected?this.selected.value:a;this._value=b;this.valueChange.emit(b);this._onChange(b);this.selectionChange.emit(this._getChangeEvent(b));this._changeDetectorRef.markForCheck()};
g._highlightCorrectOption=function(){if(this._keyManager)if(this.empty){for(var a=-1,b=0;b<this.options.length;b++)if(!this.options.get(b).disabled){a=b;break}this._keyManager.setActiveItem(a)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])};g._canOpen=function(){var a;return!this._panelOpen&&!this.disabled&&((a=this.options)==null?void 0:a.length)>0&&!!this._overlayDir};g.focus=function(a){this._elementRef.nativeElement.focus(a)};
g._getPanelAriaLabelledby=function(){if(this.ariaLabel)return null;var a,b=((a=this._parentFormField)==null?void 0:a.getLabelId())||null;return this.ariaLabelledby?(b?b+" ":"")+this.ariaLabelledby:b};g._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null};
g._getTriggerAriaLabelledby=function(){if(this.ariaLabel)return null;var a,b=((a=this._parentFormField)==null?void 0:a.getLabelId())||"";this.ariaLabelledby&&(b+=" "+this.ariaLabelledby);b||(b=this._valueId);return b};g.setDescribedByIds=function(a){a.length?this._elementRef.nativeElement.setAttribute("aria-describedby",a.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")};g.onContainerClick=function(){this.focus();this.open()};
nd.Object.defineProperties(jP.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:Gqa(b._rawValidators,Si))!=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}}});jP.\u0275fac=function(a){return new (a||jP)};
jP.\u0275cmp=y({type:jP,selectors:[["mat-select"]],contentQueries:function(a,b,c){a&1&&(ih(c,tTc,5),ih(c,Bx,5),ih(c,Jjc,5));if(a&2){var d;lh(d=mh())&&(b.customTrigger=d.first);lh(d=mh())&&(b.options=d);lh(d=mh())&&(b.optionGroups=d)}},viewQuery:function(a,b){a&1&&(hh(nTc,5),hh(oTc,5),hh(nx,5));if(a&2){var c;lh(c=mh())&&(b.trigger=c.first);lh(c=mh())&&(b.panel=c.first);lh(c=mh())&&(b._overlayDir=c.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,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&&(Lg("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()),uh("mat-mdc-select-disabled",b.disabled)("mat-mdc-select-invalid",
b.errorState)("mat-mdc-select-required",b.required)("mat-mdc-select-empty",b.empty)("mat-mdc-select-multiple",b.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",$h],disableRipple:[2,"disableRipple","disableRipple",$h],tabIndex:[2,"tabIndex","tabIndex",function(a){return a==null?0:ai(a)}],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",$h],placeholder:"placeholder",
required:[2,"required","required",$h],multiple:[2,"multiple","multiple",$h],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",$h],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ai],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,
"canSelectNullableOptions","canSelectNullableOptions",$h]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Fh([{provide:Hy,useExisting:jP},{provide:Ijc,useExisting:jP}]),ov],ngContentSelectors:["mat-select-trigger","*"],decls:11,vars:9,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],
[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],"viewBox;0 0 24 24;width;24px;height;24px;focusable;false;aria-hidden;true".split(";"),["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown",
"cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(a,b){if(a&1){var c=t();ch(pTc);J(0,"div",2,0);N("click",function(){u(c);return w(b.open())});J(3,"div",3);F(4,xZa,2,1,"span",4)(5,AZa,3,1,"span",5);K();J(6,"div",6)(7,
"div",7);Ge();J(8,"svg",8);M(9,"path",9);K()()()();D(10,BZa,3,10,"ng-template",10);N("detach",function(){u(c);return w(b.close())})("backdropClick",function(){u(c);return w(b.close())})("overlayKeydown",function(d){u(c);return w(b._handleOverlayKeydown(d))})}a&2&&(a=Q(1),x(3),Lg("id",b._valueId),x(),G(b.empty?4:5),x(6),I("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",b._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",b._scrollStrategy)("cdkConnectedOverlayOrigin",b._preferredOverlayOrigin||
a)("cdkConnectedOverlayPositions",b._positions)("cdkConnectedOverlayWidth",b._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0))},dependencies:[mx,nx,Pv],styles:['@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position: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 kP=function(){};kP.\u0275fac=function(a){return new (a||kP)};kP.\u0275dir=vf({type:kP,selectors:[["mat-select-trigger"]],features:[Fh([{provide:tTc,useExisting:kP}])]});var lP=new le("CDK_TABLE");new le("text-column-options");var mP=function(){this.template=r(eh)};mP.\u0275fac=function(a){return new (a||mP)};mP.\u0275dir=vf({type:mP,selectors:[["","cdkCellDef",""]]});var nP=function(){this.template=r(eh)};nP.\u0275fac=function(a){return new (a||nP)};nP.\u0275dir=vf({type:nP,selectors:[["","cdkHeaderCellDef",""]]});var oP=function(){this.template=r(eh)};oP.\u0275fac=function(a){return new (a||oP)};oP.\u0275dir=vf({type:oP,selectors:[["","cdkFooterCellDef",""]]});
var pP=function(){this._table=r(lP,{optional:!0});this._stickyEnd=this._sticky=this._hasStickyChanged=!1};pP.prototype.hasStickyChanged=function(){var a=this._hasStickyChanged;this.resetStickyChanged();return a};pP.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1};pP.prototype._updateColumnCssClassName=function(){this._columnCssClassName=["cdk-column-"+this.cssClassFriendlyName]};
pP.prototype._setNameInput=function(a){a&&(this._name=a,this.cssClassFriendlyName=a.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())};
nd.Object.defineProperties(pP.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)}}});
pP.\u0275fac=function(a){return new (a||pP)};pP.\u0275dir=vf({type:pP,selectors:[["","cdkColumnDef",""]],contentQueries:function(a,b,c){a&1&&(ih(c,mP,5),ih(c,nP,5),ih(c,oP,5));if(a&2){var d;lh(d=mh())&&(b.cell=d.first);lh(d=mh())&&(b.headerCell=d.first);lh(d=mh())&&(b.footerCell=d.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",$h],stickyEnd:[2,"stickyEnd","stickyEnd",$h]},features:[Fh([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:pP}])]});
var qP=function(a,b){b.nativeElement.classList.add.apply(b.nativeElement.classList,p(a._columnCssClassName))},rP=function(){qP.call(this,r(pP),r(Te))};Y(rP,qP);rP.\u0275fac=function(a){return new (a||rP)};rP.\u0275dir=vf({type:rP,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[Bg]});
var sP=function(){var a=r(pP),b=r(Te);qP.call(this,a,b);var c;(a=(c=a._table)==null?void 0:c._getCellRole())&&b.nativeElement.setAttribute("role",a)};Y(sP,qP);sP.\u0275fac=function(a){return new (a||sP)};sP.\u0275dir=vf({type:sP,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[Bg]});var tP=function(){var a=r(pP),b=r(Te);qP.call(this,a,b);var c;(a=(c=a._table)==null?void 0:c._getCellRole())&&b.nativeElement.setAttribute("role",a)};Y(tP,qP);
tP.\u0275fac=function(a){return new (a||tP)};tP.\u0275dir=vf({type:tP,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[Bg]});var uP=function(){this.template=r(eh);this._differs=r(Jv)};uP.prototype.ngOnChanges=function(a){this._columnsDiffer||(a=a.columns&&a.columns.currentValue||[],this._columnsDiffer=this._differs.find(a).create(),this._columnsDiffer.diff(a))};uP.\u0275fac=function(a){return new (a||uP)};uP.\u0275dir=vf({type:uP,features:[ov]});var vP=function(){uP.call(this,r(eh),r(Jv));this._table=r(lP,{optional:!0});this._sticky=this._hasStickyChanged=!1};Y(vP,uP);
vP.prototype.ngOnChanges=function(a){uP.prototype.ngOnChanges.call(this,a)};vP.prototype.hasStickyChanged=function(){var a=this._hasStickyChanged;this.resetStickyChanged();return a};vP.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1};nd.Object.defineProperties(vP.prototype,{sticky:{configurable:!0,enumerable:!0,get:function(){return this._sticky},set:function(a){a!==this._sticky&&(this._sticky=a,this._hasStickyChanged=!0)}}});vP.\u0275fac=function(a){return new (a||vP)};
vP.\u0275dir=vf({type:vP,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",$h]},features:[Bg,ov]});var wP=function(){uP.call(this,r(eh),r(Jv));this._table=r(lP,{optional:!0});this._sticky=this._hasStickyChanged=!1};Y(wP,uP);wP.prototype.ngOnChanges=function(a){uP.prototype.ngOnChanges.call(this,a)};wP.prototype.hasStickyChanged=function(){var a=this._hasStickyChanged;this.resetStickyChanged();return a};
wP.prototype.resetStickyChanged=function(){this._hasStickyChanged=!1};nd.Object.defineProperties(wP.prototype,{sticky:{configurable:!0,enumerable:!0,get:function(){return this._sticky},set:function(a){a!==this._sticky&&(this._sticky=a,this._hasStickyChanged=!0)}}});wP.\u0275fac=function(a){return new (a||wP)};wP.\u0275dir=vf({type:wP,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",$h]},features:[Bg,ov]});
var xP=function(){uP.call(this,r(eh),r(Jv));this._table=r(lP,{optional:!0})};Y(xP,uP);xP.\u0275fac=function(a){return new (a||xP)};xP.\u0275dir=vf({type:xP,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[Bg]});var yP=function(){this._viewContainer=r(fh);yP.mostRecentCellOutlet=this};yP.prototype.ngOnDestroy=function(){yP.mostRecentCellOutlet===this&&(yP.mostRecentCellOutlet=null)};yP.mostRecentCellOutlet=null;
yP.\u0275fac=function(a){return new (a||yP)};yP.\u0275dir=vf({type:yP,selectors:[["","cdkCellOutlet",""]]});var zP=function(){};zP.\u0275fac=function(a){return new (a||zP)};zP.\u0275cmp=y({type:zP,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&&Yg(0,0)},dependencies:[yP],encapsulation:2});var AP=function(){};AP.\u0275fac=function(a){return new (a||AP)};
AP.\u0275cmp=y({type:AP,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&&Yg(0,0)},dependencies:[yP],encapsulation:2});var BP=function(){};BP.\u0275fac=function(a){return new (a||BP)};
BP.\u0275cmp=y({type:BP,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Yg(0,0)},dependencies:[yP],encapsulation:2});var CP=function(){this.templateRef=r(eh);this._contentClassName="cdk-no-data-row"};CP.\u0275fac=function(a){return new (a||CP)};CP.\u0275dir=vf({type:CP,selectors:[["ng-template","cdkNoDataRow",""]]});var vTc=new le("CDK_SPL");var wTc=["top","bottom","left","right"],xTc=function(a,b,c,d,e,f,h){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=h;this._elemSizeCache=new WeakMap;var q;this._resizeObserver=((q=globalThis)==null?0:q.ResizeObserver)?new globalThis.ResizeObserver(function(v){return k._updateCachedSizes(v)}):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"}},yTc=function(a,b,c){(c.includes("left")||c.includes("right"))&&a._removeFromStickyColumnReplayQueue(b);var d=[];b=l(b);for(var e=b.next();!e.done;e=b.next())e=e.value,e.nodeType===e.ELEMENT_NODE&&d.push.apply(d,[e].concat(p(Array.from(e.children))));Ig({write:function(){for(var f=
l(d),h=f.next();!h.done;h=f.next())a._removeStickyStyle(h.value,c)}},{injector:a._tableInjector})},zTc=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(ka){return ka})||d.some(function(ka){return ka}))){var h=b[0],k=h.children.length,q=a.direction==="rtl",v=q?"right":"left",A=q?"left":"right",E=c.lastIndexOf(!0),H=d.indexOf(!0),L,O,S;f&&a._updateStickyColumnReplayQueue({rows:[].concat(p(b)),stickyStartStates:[].concat(p(c)),stickyEndStates:[].concat(p(d))});
Ig({earlyRead:function(){L=a._getCellWidths(h,e);O=a._getStickyStartColumnPositions(L,c);S=a._getStickyEndColumnPositions(L,d)},write:function(){for(var ka=l(b),na=ka.next();!na.done;na=ka.next()){na=na.value;for(var za=0;za<k;za++){var Na=na.children[za];c[za]&&a._addStickyStyle(Na,v,O[za],za===E);d[za]&&a._addStickyStyle(Na,A,S[za],za===H)}}a._positionListener&&L.some(function(Pa){return!!Pa})&&(a._positionListener.stickyColumnsUpdated({sizes:E===-1?[]:L.slice(0,E+1).map(function(Pa,hb){return c[hb]?
Pa:null})}),a._positionListener.stickyEndColumnsUpdated({sizes:H===-1?[]:L.slice(H).map(function(Pa,hb){return d[hb+H]?Pa:null}).reverse()}))}},{injector:a._tableInjector})}else{(q=a._positionListener)==null||q.stickyColumnsUpdated({sizes:[]});var aa;(aa=a._positionListener)==null||aa.stickyEndColumnsUpdated({sizes:[]})}},ATc=function(a,b,c,d){if(a._isBrowser){var e=d==="bottom"?b.slice().reverse():b,f=d==="bottom"?c.slice().reverse():c,h=[],k=[],q=[];Ig({earlyRead:function(){for(var v=0,A=0;v<e.length;v++)if(f[v]){h[v]=
A;var E=e[v];q[v]=a._isNativeHtmlTable?Array.from(E.children):[E];E=a._retrieveElementSize(E).height;A+=E;k[v]=E}},write:function(){for(var v=f.lastIndexOf(!0),A=0;A<e.length;A++)if(f[A])for(var E=h[A],H=A===v,L=l(q[A]),O=L.next();!O.done;O=L.next())a._addStickyStyle(O.value,d,E,H);if(d==="top"){var S;(S=a._positionListener)==null||S.stickyHeaderRowsUpdated({sizes:k,offsets:h,elements:q})}else{var aa;(aa=a._positionListener)==null||aa.stickyFooterRowsUpdated({sizes:k,offsets:h,elements:q})}}},{injector:a._tableInjector})}},
BTc=function(a,b,c){a._isNativeHtmlTable&&Ig({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})};g=xTc.prototype;g.destroy=function(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout);var a;(a=this._resizeObserver)==null||a.disconnect();this._destroyed=!0};
g._removeStickyStyle=function(a,b){if(a.classList.contains(this._stickCellCss)){for(var c=l(b),d=c.next();!d.done;d=c.next())d=d.value,a.style[d]="",a.classList.remove(this._borderCellCss[d]);wTc.some(function(e){return b.indexOf(e)===-1&&a.style[e]})?a.style.zIndex=this._getCalculatedZIndex(a):(a.style.zIndex="",this._needsPositionStickyOnElement&&(a.style.position=""),a.classList.remove(this._stickCellCss))}};
g._addStickyStyle=function(a,b,c,d){a.classList.add(this._stickCellCss);d&&a.classList.add(this._borderCellCss[b]);a.style[b]=c+"px";a.style.zIndex=this._getCalculatedZIndex(a);this._needsPositionStickyOnElement&&(a.style.cssText+="position: -webkit-sticky; position: sticky; ")};g._getCalculatedZIndex=function(a){for(var b={top:100,bottom:10,left:1,right:1},c=0,d=l(wTc),e=d.next();!e.done;e=d.next())e=e.value,a.style[e]&&(c+=b[e]);return c?""+c:""};
g._getCellWidths=function(a,b){if(b!==void 0&&!b&&this._cachedCellWidths.length)return this._cachedCellWidths;b=[];a=a.children;for(var c=0;c<a.length;c++)b.push(this._retrieveElementSize(a[c]).width);return this._cachedCellWidths=b};g._getStickyStartColumnPositions=function(a,b){for(var c=[],d=0,e=0;e<a.length;e++)b[e]&&(c[e]=d,d+=a[e]);return c};g._getStickyEndColumnPositions=function(a,b){for(var c=[],d=0,e=a.length;e>0;e--)b[e]&&(c[e]=d,d+=a[e]);return c};
g._retrieveElementSize=function(a){var b=this._elemSizeCache.get(a);if(b)return b;b=a.getBoundingClientRect();b={width:b.width,height:b.height};if(!this._resizeObserver)return b;this._elemSizeCache.set(a,b);this._resizeObserver.observe(a,{box:"border-box"});return b};g._updateStickyColumnReplayQueue=function(a){this._removeFromStickyColumnReplayQueue(a.rows);this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(a)};
g._removeFromStickyColumnReplayQueue=function(a){var b=new Set(a);a=l(this._updatedStickyColumnsParamsToReplay);for(var c=a.next();!c.done;c=a.next())c=c.value,c.rows=c.rows.filter(function(d){return!b.has(d)});this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(function(d){return!!d.rows.length})};
g._updateCachedSizes=function(a){var b=this,c=!1;a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=void 0,f=((e=d.borderBoxSize)==null?0:e.length)?{width:d.borderBoxSize[0].inlineSize,height:d.borderBoxSize[0].blockSize}:{width:d.contentRect.width,height:d.contentRect.height};e=void 0;f.width!==((e=this._elemSizeCache.get(d.target))==null?void 0:e.width)&&CZa(d.target)&&(c=!0);this._elemSizeCache.set(d.target,f)}c&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&
clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(function(){if(!b._destroyed){for(var h=l(b._updatedStickyColumnsParamsToReplay),k=h.next();!k.done;k=h.next())k=k.value,zTc(b,k.rows,k.stickyStartStates,k.stickyEndStates,!0,!1);b._updatedStickyColumnsParamsToReplay=[];b._stickyColumnsReplayTimeout=null}},0))};var CTc=[[["caption"]],[["colgroup"],["col"]],"*"],DP=function(){this.viewContainer=r(fh);this.elementRef=r(Te);var a=r(lP);a._rowOutlet=this;a._outletAssigned()};DP.\u0275fac=function(a){return new (a||DP)};DP.\u0275dir=vf({type:DP,selectors:[["","rowOutlet",""]]});var EP=function(){this.viewContainer=r(fh);this.elementRef=r(Te);var a=r(lP);a._headerRowOutlet=this;a._outletAssigned()};EP.\u0275fac=function(a){return new (a||EP)};EP.\u0275dir=vf({type:EP,selectors:[["","headerRowOutlet",""]]});
var FP=function(){this.viewContainer=r(fh);this.elementRef=r(Te);var a=r(lP);a._footerRowOutlet=this;a._outletAssigned()};FP.\u0275fac=function(a){return new (a||FP)};FP.\u0275dir=vf({type:FP,selectors:[["","footerRowOutlet",""]]});var GP=function(){this.viewContainer=r(fh);this.elementRef=r(Te);var a=r(lP);a._noDataRowOutlet=this;a._outletAssigned()};GP.\u0275fac=function(a){return new (a||GP)};GP.\u0275dir=vf({type:GP,selectors:[["","noDataRowOutlet",""]]});
var HP=function(){var a=this;this._differs=r(Jv);this._changeDetectorRef=r(Hv);this._elementRef=r(Te);this._dir=r(Gi,{optional:!0});this._platform=r(zi);this._viewRepeater=r(ijc);this._viewportRuler=r(vi);this._stickyPositioningListener=r(vTc,{optional:!0,skipSelf:!0});this._document=r(ui);this._onDestroy=new tg;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 nq;this._injector=r(Cg);r(new pv("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})};g=HP.prototype;g._getCellRole=function(){var a=this._elementRef.nativeElement.getAttribute("role");return a==="grid"||a==="treegrid"?"gridcell":"cell"};
g.ngOnInit=function(){var a=this;this._setupStickyStyler();this._viewportRuler.change().pipe(yg(this._onDestroy)).subscribe(function(){a._forceRecalculateCellWidths=!0})};g.ngAfterContentInit=function(){this._hasInitialized=!0};g.ngAfterContentChecked=function(){this._canRender()&&this._render()};
g.ngOnDestroy=function(){var a;(a=this._stickyStyler)==null||a.destroy();var b,c,d;[(b=this._rowOutlet)==null?void 0:b.viewContainer,(c=this._headerRowOutlet)==null?void 0:c.viewContainer,(d=this._footerRowOutlet)==null?void 0:d.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(function(e){e==null||e.clear()});this._headerRowDefs=[];this._footerRowDefs=[];this._defaultRowDef=null;this._onDestroy.next();
this._onDestroy.complete();zpa(this.dataSource)&&this.dataSource.disconnect(this)};
g.renderRows=function(){var a=this;this._renderRows=this._getAllRenderRows();var b=this._dataDiffer.diff(this._renderRows);if(b){var c=this._rowOutlet.viewContainer;kjc(b,c,function(d,e,f){return a._getEmbeddedViewArgs(d.item,f)},function(d){d.operation===1&&d.context&&a._renderCellTemplateForItem(d.record.item.rowDef,d.context)});this._updateRowIndexContext();Rhc(b,function(d){c.get(d.currentIndex).context.$implicit=d.item.data});this._updateNoDataRow();this.contentChanged.next();DTc(this)}else this._updateNoDataRow(),
this.contentChanged.next()};
var ETc=function(a){var b=a._getRenderedRows(a._headerRowOutlet);if(a._isNativeHtmlTable){var c=HZa(a._headerRowOutlet,"thead");c&&(c.style.display=b.length?"":"none")}c=a._headerRowDefs.map(function(d){return d.sticky});yTc(a._stickyStyler,b,["top"]);ATc(a._stickyStyler,b,c,"top");a._headerRowDefs.forEach(function(d){return d.resetStickyChanged()})},FTc=function(a){var b=a._getRenderedRows(a._footerRowOutlet);if(a._isNativeHtmlTable){var c=HZa(a._footerRowOutlet,"tfoot");c&&(c.style.display=b.length?
"":"none")}c=a._footerRowDefs.map(function(d){return d.sticky});yTc(a._stickyStyler,b,["bottom"]);ATc(a._stickyStyler,b,c,"bottom");BTc(a._stickyStyler,a._elementRef.nativeElement,c);a._footerRowDefs.forEach(function(d){return d.resetStickyChanged()})},DTc=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)yTc(a._stickyStyler,[].concat(p(b),p(c),
p(d)),["left","right"]),a._stickyColumnStylesNeedReset=!1;b.forEach(function(e,f){a._addStickyColumnStyles([e],a._headerRowDefs[f])});a._rowDefs.forEach(function(e){for(var f=[],h=0;h<c.length;h++)a._renderRows[h].rowDef===e&&f.push(c[h]);a._addStickyColumnStyles(f,e)});d.forEach(function(e,f){a._addStickyColumnStyles([e],a._footerRowDefs[f])});Array.from(a._columnDefsByName.values()).forEach(function(e){return e.resetStickyChanged()})};g=HP.prototype;
g._outletAssigned=function(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())};g._canRender=function(){return this._hasAllOutlets&&this._hasInitialized};
g._render=function(){this._cacheRowDefs();this._cacheColumnDefs();var a=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||a;this._forceRecalculateCellWidths=a;this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1);this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1);this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?
this._observeRenderChanges():this._stickyColumnStylesNeedReset&&DTc(this);this._checkStickyStates()};
g._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],h=this._cachedRenderRowsMap.get(f.data);h.has(f.rowDef)?h.get(f.rowDef).push(f):h.set(f.rowDef,[f]);a.push(f)}}return a};
g._getRenderRowsForData=function(a,b,c){return this._getRowDefs(a,b).map(function(d){var e=c&&c.has(d)?c.get(d):[];return e.length?(d=e.shift(),d.dataIndex=b,d):{data:a,rowDef:d,dataIndex:b}})};g._cacheColumnDefs=function(){var a=this;this._columnDefsByName.clear();GZa(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(function(b){a._columnDefsByName.has(b.name);a._columnDefsByName.set(b.name,b)})};
g._cacheRowDefs=function(){this._headerRowDefs=GZa(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs);this._footerRowDefs=GZa(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs);this._rowDefs=GZa(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);this._defaultRowDef=this._rowDefs.filter(function(a){return!a.when})[0]};
g._renderUpdatedColumns=function(){var a=function(d,e){e=!!e._columnsDiffer.diff(e.columns);return d||e},b=this._rowDefs.reduce(a,!1);b&&this._forceRenderDataRows();var c=this._headerRowDefs.reduce(a,!1);c&&this._forceRenderHeaderRows();(a=this._footerRowDefs.reduce(a,!1))&&this._forceRenderFooterRows();return b||c||a};
g._switchDataSource=function(a){this._data=[];zpa(this.dataSource)&&this.dataSource.disconnect(this);this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null);a||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear());this._dataSource=a};
g._observeRenderChanges=function(){var a=this;if(this.dataSource){var b;zpa(this.dataSource)?b=this.dataSource.connect(this):Ska(this.dataSource)?b=this.dataSource:Array.isArray(this.dataSource)&&(b=Nf(this.dataSource));this._renderChangeSubscription=b.pipe(yg(this._onDestroy)).subscribe(function(c){a._data=c||[];a.renderRows()})}};
g._forceRenderHeaderRows=function(){var a=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear();this._headerRowDefs.forEach(function(b,c){return a._renderRow(a._headerRowOutlet,b,c)});ETc(this)};g._forceRenderFooterRows=function(){var a=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear();this._footerRowDefs.forEach(function(b,c){return a._renderRow(a._footerRowOutlet,b,c)});FTc(this)};
g._addStickyColumnStyles=function(a,b){var c=this,d=Array.from((b==null?void 0:b.columns)||[]).map(function(e){return c._columnDefsByName.get(e)});b=d.map(function(e){return e.sticky});d=d.map(function(e){return e.stickyEnd});zTc(this._stickyStyler,a,b,d,!this._fixedLayout||this._forceRecalculateCellWidths)};g._getRenderedRows=function(a){for(var b=[],c=0;c<a.viewContainer.length;c++){var d=a.viewContainer.get(c);b.push(d.rootNodes[0])}return b};
g._getRowDefs=function(a,b){if(this._rowDefs.length==1)return[this._rowDefs[0]];var c=[];if(this.multiTemplateDataRows)c=this._rowDefs.filter(function(e){return!e.when||e.when(b,a)});else{var d=this._rowDefs.find(function(e){return e.when&&e.when(b,a)})||this._defaultRowDef;d&&c.push(d)}return c};g._getEmbeddedViewArgs=function(a,b){return{templateRef:a.rowDef.template,context:{$implicit:a.data},index:b}};
g._renderRow=function(a,b,c,d){d=d===void 0?{}:d;a=a.viewContainer.createEmbeddedView(b.template,d,c);this._renderCellTemplateForItem(b,d);return a};g._renderCellTemplateForItem=function(a,b){a=l(this._getCellTemplates(a));for(var c=a.next();!c.done;c=a.next())c=c.value,yP.mostRecentCellOutlet&&yP.mostRecentCellOutlet._viewContainer.createEmbeddedView(c,b);this._changeDetectorRef.markForCheck()};
g._updateRowIndexContext=function(){for(var a=this._rowOutlet.viewContainer,b=0,c=a.length;b<c;b++){var d=a.get(b).context;d.count=c;d.first=b===0;d.last=b===c-1;d.even=b%2===0;d.odd=!d.even;this.multiTemplateDataRows?(d.dataIndex=this._renderRows[b].dataIndex,d.renderIndex=b):d.index=this._renderRows[b].dataIndex}};
g._getCellTemplates=function(a){var b=this;return a&&a.columns?Array.from(a.columns,function(c){c=b._columnDefsByName.get(c);return a instanceof vP?c.headerCell.template:a instanceof wP?c.footerCell.template:c.cell.template}):[]};g._forceRenderDataRows=function(){this._dataDiffer.diff([]);this._rowOutlet.viewContainer.clear();this.renderRows()};
g._checkStickyStates=function(){var a=function(b,c){return b||c.hasStickyChanged()};this._headerRowDefs.reduce(a,!1)&&ETc(this);this._footerRowDefs.reduce(a,!1)&&FTc(this);Array.from(this._columnDefsByName.values()).reduce(a,!1)&&(this._stickyColumnStylesNeedReset=!0,DTc(this))};
g._setupStickyStyler=function(){var a=this;this._stickyStyler=new xTc(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,this._dir?this._dir.value:"ltr",this._stickyPositioningListener,this._injector);(this._dir?this._dir.change:Nf()).pipe(yg(this._onDestroy)).subscribe(function(b){a._stickyStyler.direction=b;DTc(a)})};g._getOwnDefs=function(a){var b=this;return a.filter(function(c){return!c._table||c._table===b})};
g._updateNoDataRow=function(){var a=this._customNoDataRow||this._noDataRow;if(a){var b=this._rowOutlet.viewContainer.length===0;if(b!==this._isShowingNoDataRow){var c=this._noDataRowOutlet.viewContainer;if(b){c=c.createEmbeddedView(a.templateRef);var d=c.rootNodes[0];c.rootNodes.length===1&&(d==null?void 0:d.nodeType)===this._document.ELEMENT_NODE&&(d.setAttribute("role","row"),d.classList.add(a._contentClassName))}else c.clear();this._isShowingNoDataRow=b;this._changeDetectorRef.markForCheck()}}};
nd.Object.defineProperties(HP.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(),DTc(this))}},fixedLayout:{configurable:!0,enumerable:!0,get:function(){return this._fixedLayout},set:function(a){this._fixedLayout=a;this._stickyColumnStylesNeedReset=this._forceRecalculateCellWidths=!0}}});HP.\u0275fac=function(a){return new (a||HP)};
HP.\u0275cmp=y({type:HP,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(a,b,c){a&1&&(ih(c,CP,5),ih(c,pP,5),ih(c,xP,5),ih(c,vP,5),ih(c,wP,5));if(a&2){var d;lh(d=mh())&&(b._noDataRow=d.first);lh(d=mh())&&(b._contentColumnDefs=d);lh(d=mh())&&(b._contentRowDefs=d);lh(d=mh())&&(b._contentHeaderRowDefs=d);lh(d=mh())&&(b._contentFooterRowDefs=d)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(a,b){a&2&&uh("cdk-table-fixed-layout",b.fixedLayout)},inputs:{trackBy:"trackBy",
dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",$h],fixedLayout:[2,"fixedLayout","fixedLayout",$h]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[Fh([{provide:lP,useExisting:HP},{provide:ijc,useClass:jjc},{provide:vTc,useValue:null}])],ngContentSelectors:["caption","colgroup, col","*"],decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(a,
b){a&1&&(ch(CTc),dh(0),dh(1,1),F(2,DZa,1,0),F(3,EZa,7,0)(4,FZa,4,0));a&2&&(x(2),G(b._isServer?2:-1),x(),G(b._isNativeHtmlTable?3:4))},dependencies:[EP,DP,GP,FP],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2});var IP=function(){};IP.\u0275fac=function(a){return new (a||IP)};IP.\u0275mod=uf({type:IP});IP.\u0275inj=Dd({imports:[Ww]});var JP=function(){mP.apply(this,arguments)};Y(JP,mP);JP.\u0275fac=function(){var a;return function(b){return(a||(a=Re(JP)))(b||JP)}}();JP.\u0275dir=vf({type:JP,selectors:[["","matCellDef",""]],features:[Fh([{provide:mP,useExisting:JP}]),Bg]});var KP=function(){nP.apply(this,arguments)};Y(KP,nP);KP.\u0275fac=function(){var a;return function(b){return(a||(a=Re(KP)))(b||KP)}}();KP.\u0275dir=vf({type:KP,selectors:[["","matHeaderCellDef",""]],features:[Fh([{provide:nP,useExisting:KP}]),Bg]});
var LP=function(){oP.apply(this,arguments)};Y(LP,oP);LP.\u0275fac=function(){var a;return function(b){return(a||(a=Re(LP)))(b||LP)}}();LP.\u0275dir=vf({type:LP,selectors:[["","matFooterCellDef",""]],features:[Fh([{provide:oP,useExisting:LP}]),Bg]});var MP=function(){pP.apply(this,arguments)};Y(MP,pP);MP.prototype._updateColumnCssClassName=function(){pP.prototype._updateColumnCssClassName.call(this);this._columnCssClassName.push("mat-column-"+this.cssClassFriendlyName)};
nd.Object.defineProperties(MP.prototype,{name:{configurable:!0,enumerable:!0,get:function(){return this._name},set:function(a){this._setNameInput(a)}}});MP.\u0275fac=function(){var a;return function(b){return(a||(a=Re(MP)))(b||MP)}}();MP.\u0275dir=vf({type:MP,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[Fh([{provide:pP,useExisting:MP},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:MP}]),Bg]});var NP=function(){rP.apply(this,arguments)};Y(NP,rP);
NP.\u0275fac=function(){var a;return function(b){return(a||(a=Re(NP)))(b||NP)}}();NP.\u0275dir=vf({type:NP,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[Bg]});var OP=function(){sP.apply(this,arguments)};Y(OP,sP);OP.\u0275fac=function(){var a;return function(b){return(a||(a=Re(OP)))(b||OP)}}();
OP.\u0275dir=vf({type:OP,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],features:[Bg]});var PP=function(){tP.apply(this,arguments)};Y(PP,tP);PP.\u0275fac=function(){var a;return function(b){return(a||(a=Re(PP)))(b||PP)}}();PP.\u0275dir=vf({type:PP,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[Bg]});var QP=function(){vP.apply(this,arguments)};Y(QP,vP);QP.\u0275fac=function(){var a;return function(b){return(a||(a=Re(QP)))(b||QP)}}();QP.\u0275dir=vf({type:QP,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",$h]},features:[Fh([{provide:vP,useExisting:QP}]),Bg]});var RP=function(){wP.apply(this,arguments)};Y(RP,wP);RP.\u0275fac=function(){var a;return function(b){return(a||(a=Re(RP)))(b||RP)}}();
RP.\u0275dir=vf({type:RP,selectors:[["","matFooterRowDef",""]],inputs:{columns:[0,"matFooterRowDef","columns"],sticky:[2,"matFooterRowDefSticky","sticky",$h]},features:[Fh([{provide:wP,useExisting:RP}]),Bg]});var SP=function(){xP.apply(this,arguments)};Y(SP,xP);SP.\u0275fac=function(){var a;return function(b){return(a||(a=Re(SP)))(b||SP)}}();
SP.\u0275dir=vf({type:SP,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[Fh([{provide:xP,useExisting:SP}]),Bg]});var TP=function(){};Y(TP,zP);TP.\u0275fac=function(){var a;return function(b){return(a||(a=Re(TP)))(b||TP)}}();
TP.\u0275cmp=y({type:TP,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[Fh([{provide:zP,useExisting:TP}]),Bg],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Yg(0,0)},dependencies:[yP],encapsulation:2});var UP=function(){};Y(UP,AP);UP.\u0275fac=function(){var a;return function(b){return(a||(a=Re(UP)))(b||UP)}}();
UP.\u0275cmp=y({type:UP,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-mdc-footer-row","mdc-data-table__row"],exportAs:["matFooterRow"],features:[Fh([{provide:AP,useExisting:UP}]),Bg],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Yg(0,0)},dependencies:[yP],encapsulation:2});var VP=function(){};Y(VP,BP);VP.\u0275fac=function(){var a;return function(b){return(a||(a=Re(VP)))(b||VP)}}();
VP.\u0275cmp=y({type:VP,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[Fh([{provide:BP,useExisting:VP}]),Bg],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(a){a&1&&Yg(0,0)},dependencies:[yP],encapsulation:2});var WP=function(){CP.apply(this,arguments);this._contentClassName="mat-mdc-no-data-row"};Y(WP,CP);WP.\u0275fac=function(){var a;return function(b){return(a||(a=Re(WP)))(b||WP)}}();
WP.\u0275dir=vf({type:WP,selectors:[["ng-template","matNoDataRow",""]],features:[Fh([{provide:CP,useExisting:WP}]),Bg]});var GTc=[[["caption"]],[["colgroup"],["col"]],"*"],XP=function(){HP.apply(this,arguments);this.stickyCssClass="mat-mdc-table-sticky";this.needsPositionStickyOnElement=!1};Y(XP,HP);XP.\u0275fac=function(){var a;return function(b){return(a||(a=Re(XP)))(b||XP)}}();
XP.\u0275cmp=y({type:XP,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(a,b){a&2&&uh("mdc-table-fixed-layout",b.fixedLayout)},exportAs:["matTable"],features:[Fh([{provide:HP,useExisting:XP},{provide:lP,useExisting:XP},{provide:ijc,useClass:jjc},{provide:vTc,useValue:null}]),Bg],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&&(ch(GTc),dh(0),dh(1,1),F(2,IZa,1,0),F(3,JZa,7,0)(4,KZa,4,0));a&2&&(x(2),G(b._isServer?2:-1),x(),G(b._isNativeHtmlTable?3:4))},dependencies:[EP,DP,GP,FP],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 HTc=["componentSearchMenuTrigger"],ITc=["searchInput"],JTc={title:"Select an issue.",defaultChoices:[],allowMultipleIds:!1},KTc={SIMILAR_ISSUES:"Similar issues",SEARCH_RESULTS:"Search results",SEMANTIC_SEARCH_RESULTS:"Semantic search results",ISSUE_IDS:"Issue IDs"},LTc={},MTc=(LTc["Similar issues"]="similar",LTc["Search results"]="exact",LTc["Semantic search results"]="semantic",LTc["Issue IDs"]="id",LTc),NTc={SEMANTIC_SEARCH:"Smart search",EXACT_MATCH:"Exact match"},YP=function(){Z.apply(this,
arguments);var a=this;this.dialogRef=r(KJ);this.initialData=r(QJ);this.issueFullFridge=r(TE);this.issuePickerSearchService=r(VN);this.analytics=r(RE);this.activeSession=r(Bs);this.componentFridge=r(BB);this.teamFridge=r(YF);this.domSafe=r(UK);this.trackerHelpers=r(iK);this.elRef=r(Te);this.focusTrapFactory=r(Gw);this.userPreferencesManager=r(iG);this.isInternalSession=this.activeSession.isInternalSession();this.data=Object.assign({},JTc,this.initialData);var b;this.currentComponentId=(b=this.data.componentId)!=
null?b:void 0;this.currentIssueId$=Yf(function(){var d;return((d=a.data.currentResource)==null?void 0:d.type)==="issue"?Nf(a.data.currentResource.id):Bv});this.currentIssue$=this.currentIssueId$.pipe(xg(function(d){return a.issueFullFridge.watch(d)}),ug({bufferSize:1,refCount:!0}));this.team$=this.currentIssue$.pipe(xg(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):Nf(void 0)}),ug({bufferSize:1,
refCount:!0}));this.assistiveIssuePickerPreferences$=this.userPreferencesManager.preferences$.pipe(C(function(d){var e,f;return(f=a.currentComponentId?d==null?void 0:(e=d.assistiveIssuePickerPreferences)==null?void 0:e.get(a.currentComponentId):void 0)!=null?f:a.DEFAULT_PREFERENCES}));var c;this.originIsBulk=(c=this.data.originIsBulk)!=null?c:!1;this.DEFAULT_PREFERENCES={open:!0,searchScope:"COMPONENT",componentScope:this.currentComponentId,includeDescendants:!1};this.openFilterEnabled$=this.assistiveIssuePickerPreferences$.pipe(C(function(d){return d.open}));
this.selectedScope$=this.assistiveIssuePickerPreferences$.pipe(C(function(d){return d.searchScope}));this.includeDescendants$=this.assistiveIssuePickerPreferences$.pipe(C(function(d){return d.includeDescendants}));this.component$=this.assistiveIssuePickerPreferences$.pipe(xg(function(d){return d.componentScope?a.componentFridge.watch(d.componentScope):Nf(void 0)}));this.selectedIssues=new IA;this.tableColumns="single-selection title id priority status duplicateCount votes createdTime".split(" ");
this.issueUrlFactory=Dq.viewIssue.makeHref;this.trackByIssueId=function(d,e){return e.issueId};this.searchText$=new Kn("");this.searchTextTrimmed$=this.searchText$.pipe(C(function(d){return d.trim()}),og());this.idsInSearchText$=this.searchTextTrimmed$.pipe(C(bLa),C(sj),C(function(d){return d.filter(function(e){return e.length>=4})}),og(gj));this.issuesWithIdMatches$=this.idsInSearchText$.pipe(xg(function(d){return a.issueFullFridge.watchSet(d)}),zg(function(){a.isLoading=!1}),ug({bufferSize:1,refCount:!0}));
this.openFilter=lG;this.teamFilter=this.componentFilter=void 0;this.defaultChoices$=this.issueFullFridge.watchSet(this.data.defaultChoices.map(function(d){return d.resourceId})).pipe(eg(Qj));this.selectedFilters$=new IA([]);this.similarIssues$=Uf([this.currentIssueId$,this.selectedFilters$.value$,this.searchTextTrimmed$]).pipe(kg(0,kp),eg(function(d){d=l(d);d.next();d.next();return d.next().value===""&&a.data.defaultChoices.length===0}),zg(function(){a.isLoading=!0}),xg(function(d){var e=l(d);d=e.next().value;
e=e.next().value;return BRc(a.issuePickerSearchService,d,e)}),zg(function(){a.isLoading=!1}),ug({bufferSize:1,refCount:!0}));this.SearchSource=NTc;this.selectedSearchSource$=new Kn("Smart search");this.searchResults$=Uf([this.searchTextTrimmed$.pipe(zg(function(){a.isLoading=!0}),kg(200)),this.selectedFilters$.value$.pipe(zg(function(){a.isLoading=!0})),this.selectedSearchSource$]).pipe(xg(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),DRc(a.issuePickerSearchService,d,f,a.data.edgeType,a.data.currentResource)):a.issuePickerSearchService.search(d,a.data.edgeType,a.data.currentResource,a.currentComponentId)}),zg(function(){a.isLoading=!1}),ug({bufferSize:1,refCount:!0}));this.idsToAutoSelect$=this.issuesWithIdMatches$.pipe(C(function(d){return d.length!==1?[]:[d[0].issueId]}),og(gj),zg(function(d){d.length===0&&(a.isPasteResultInSuggestion=!1);var e,f=(e=hp(a.similarIssues$))!=null?e:[];a.isPasteResultInSuggestion=
f.map(function(h){return h.issueId}).includes(d[0])}),ug({bufferSize:1,refCount:!0}));this.TableDataSource=KTc;this.tableDataSource="Search results";this.issues$=Uf([this.searchTextTrimmed$,this.issuesWithIdMatches$,this.similarIssues$.pipe(wg([])),this.selectedSearchSource$,this.defaultChoices$]).pipe(xg(function(d){var e=l(d);d=e.next().value;var f=e.next().value;var h=e.next().value;var k=e.next().value;e=e.next().value;return f.length===1?(a.tableDataSource="Issue IDs",a.issuesWithIdMatches$):
d?(a.tableDataSource=k==="Smart search"?"Semantic search results":"Search results",a.searchResults$):e&&e.length>0?(a.tableDataSource="Similar issues",a.defaultChoices$):h?(h.length>0&&(a.tableDataSource="Similar issues"),a.similarIssues$):Nf(void 0)}),og());this.correctedDisplayedRows=new gh;this.isPasteResultInSuggestion=this.isLoading=!1};Y(YP,Z);YP.\u0275dir=Z.\u0275dir;
YP.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.idsToAutoSelect$.subscribe(function(b){a.selectedIssues.reset(b)}));this.data.edgeType==="canonical"&&this.subscriptions.add(GRc(this.issuePickerSearchService,this.currentComponentId).subscribe());OTc(this)};
var OTc=function(a){var b,c,d,e,f,h,k,q,v,A,E,H,L;z(function(O){if(O.nextAddress==1)return b=l,B(O,Promise.all([Rf(a.openFilterEnabled$),Rf(a.component$),Rf(a.team$),Rf(a.selectedScope$),Rf(a.includeDescendants$)]),2);c=b(O.yieldResult);d=c.next().value;e=c.next().value;f=c.next().value;h=c.next().value;k=c.next().value;q=d;v=e;A=f;E=h;H=k;q&&a.selectedFilters$.add(a.openFilter);if(v){a.componentFilter=JJa(v,H);if(L=E==="COMPONENT"||E==="UNSPECIFIED")a.selectedScopeFilter=a.componentFilter,a.selectedFilters$.add(a.componentFilter);
a.selectedComponent=v}A&&(a.teamFilter=IJa(A,H),E==="TEAM"&&(a.selectedScopeFilter=a.teamFilter,a.selectedFilters$.add(a.teamFilter)));Lf(O)})};YP.prototype.ngAfterViewInit=function(){this.focusManager=Lw(new $Sc(this.correctedDisplayedRows,function(a,b){return a.issueId===b.issueId}));this.trapFocus()};YP.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);var a;(a=this.focusTrap)==null||a.destroy()};
YP.prototype.openFilterChanged=function(a){var b=this,c;return z(function(d){if(d.nextAddress==1)return a?b.selectedFilters$.add(lG):b.selectedFilters$.delete(lG),B(d,Rf(b.assistiveIssuePickerPreferences$),2);c=d.yieldResult;return B(d,PTc(b,Object.assign({},c,{open:a!==void 0})),0)})};
var PTc=function(a,b){var c;return z(function(d){if(d.nextAddress==1)return B(d,Rf(a.userPreferencesManager.preferences$.pipe(C(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()));Lf(d)})},UZa=function(a,b){var c,d,e;return z(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 B(f,Rf(a.assistiveIssuePickerPreferences$),2)}e=f.yieldResult;return B(f,PTc(a,Object.assign({},e,{searchScope:d?"COMPONENT":"TEAM"})),0)})},b_a=function(a){var b,c,d,e,f,h,k;return z(function(q){switch(q.nextAddress){case 1:return B(q,Rf(a.includeDescendants$),
2);case 2:return b=!q.yieldResult,B(q,Rf(a.assistiveIssuePickerPreferences$),3);case 3:return c=q.yieldResult,B(q,PTc(a,Object.assign({},c,{includeDescendants:b})),4);case 4:return B(q,Rf(a.component$),5);case 5:return d=q.yieldResult,B(q,Rf(a.team$),6);case 6:e=q.yieldResult;if(!d)return q.return();f=JJa(d,b);h=new Set(a.selectedFilters$.value);if(!a.componentFilter)return q.return();h.has(a.componentFilter)&&(h.delete(a.componentFilter),h.add(f),a.selectedScopeFilter=f);a.componentFilter=f;e&&(k=
IJa(e,b),a.teamFilter&&h.has(a.teamFilter)&&(h.delete(a.teamFilter),h.add(k),a.selectedScopeFilter=k),a.teamFilter=k);a.selectedFilters$.reset(h);Lf(q)}})},C_a=function(a,b){var c,d;return z(function(e){if(e.nextAddress==1)return B(e,Bq(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(Qj);a.correctedDisplayedRows.reset(d);kh(a.correctedDisplayedRows);Lf(e)})};
YP.prototype.onPressConfirm=function(){var a=this,b,c;return z(function(d){if(d.nextAddress==1){if(!a.selectedIssues.size)return d.return();b=[].concat(p(a.selectedIssues));c={selectedIssueIds:b};a.dialogRef.close(c);return B(d,QTc(a,b[0]),2)}return B(d,RTc(a,b[0]),0)})};YP.prototype.onPressCancel=function(){this.dialogRef.close()};YP.prototype.selectIssue=function(a){this.selectedIssues.reset([a])};
YP.prototype.onRowKeydown=function(a,b,c){if(a===0&&c.key==="ArrowUp")this.inputEl.nativeElement.focus(),c.preventDefault();else this.focusManager.onKeydown(c)};
var YZa=function(a,b){var c,d,e,f,h,k,q;return z(function(v){switch(v.nextAddress){case 1:a.trigger.closeMenu();if(!a.componentFilter)return v.return();if(c=!b){v.jumpTo(2);break}return B(v,Rf(a.component$),3);case 3:c=v.yieldResult===b;case 2:if(c)return v.return();d=JJa;e=b;return B(v,Rf(a.includeDescendants$),4);case 4:return f=d(e,v.yieldResult),a.selectedScopeFilter=f,B(v,Rf(a.assistiveIssuePickerPreferences$),5);case 5:return h=v.yieldResult,B(v,PTc(a,Object.assign({},h,{componentScope:b.componentId})),
6);case 6:return k=Set,B(v,Rf(a.selectedFilters$.value$),7);case 7:q=new k(v.yieldResult),q.delete(a.componentFilter),q.add(f),a.componentFilter=f,a.selectedFilters$.reset(q),a.analytics.trackEvent("assistive-issue-picker","component-scope-changed","component-id: "+b.componentId),Lf(v)}})},QZa=function(a){return z(function(b){if(b.nextAddress==1)return B(b,Rf(a.component$),2);a.selectedComponent=b.yieldResult;Lf(b)})},RTc=function(a,b){var c,d,e,f,h,k,q;return z(function(v){if(v.nextAddress==1)return a.data.edgeType!==
"canonical"?v.return():B(v,Rf(a.issueFullFridge.watch(b)),2);if(v.nextAddress!=3)return(c=v.yieldResult)?B(v,STc(a,b),3):v.return();d=v.yieldResult;e=MTc[a.tableDataSource];a.analytics.trackEvent("assistive-issue-picker","picked-c-canonical",d?e+"-hit":e+"-miss",d?1:0);a.analytics.trackEvent("assistive-issue-picker","picked-canonical","dupe-count",(h=(f=c.snapshot[0].duplicateIssueId)==null?void 0:f.length)!=null?h:0);a.analytics.trackEvent("assistive-issue-picker","picked-canonical","plus-one-count",
(q=(k=c.aggregatedData)==null?void 0:k.voteCount)!=null?q:0);Lf(v)})};YP.prototype.trapFocus=function(){this.focusTrap=this.focusTrapFactory.create(this.elRef.nativeElement);Oic(this.focusTrap)};
var QTc=function(a,b){var c,d,e,f,h,k,q,v,A;return z(function(E){if(E.nextAddress==1)return B(E,Rf(a.similarIssues$),2);if(E.nextAddress!=4){d=(c=E.yieldResult)!=null?c:[];e=d.find(function(H){return H.issueId===b});f=!!e;h=MTc[a.tableDataSource];if(d.length===0)return a.analytics.trackEvent("assistive-issue-picker","empty-hit-rate-"+a.data.edgeType,h+"-empty"),E.jumpTo(0);a.analytics.trackEvent("assistive-issue-picker","hit-rate-"+a.data.edgeType,f?h+"-hit":h+"-miss",f?1:0);return B(E,Rf(a.component$),
4)}k=E.yieldResult;v=rs(a.trackerHelpers,(q=k)==null?void 0:q.componentPathInfo);A="";v&&v.componentPathName&&(A=v.componentPathName[0].toString().trim());a.analytics.trackEvent("assistive-issue-picker","hit-rate-by-component-"+a.data.edgeType,f?h+"-hit,"+A:h+"-miss,"+A,f?1:0);f&&(a.analytics.trackEvent("assistive-issue-picker","picked-"+a.data.edgeType,"suggestion-rank",d.indexOf(e)+1),e.score&&a.analytics.trackEvent("assistive-issue-picker","picked-"+a.data.edgeType,"suggestion-score",e.score));
Lf(E)})},STc=function(a,b){var c,d;return z(function(e){if(e.nextAddress==1){if(a.data.edgeType!=="canonical")return e.return(!1);c=Set;return B(e,Rf(GRc(a.issuePickerSearchService,a.currentComponentId)),2)}d=new c(e.yieldResult);return e.return(d.has(b))})};YP.prototype.openLearnMore=function(){this.domSafe.openInNewTab("http://go/b-mark-as-duplicate")};var SZa=function(a){return a.startsWith("Component:")?"Component":a};YP.\u0275fac=function(){var a;return function(b){return(a||(a=Re(YP)))(b||YP)}}();
YP.\u0275cmp=y({type:YP,selectors:[["assistive-issue-picker-dialog"]],viewQuery:function(a,b){a&1&&(hh(HTc,5),hh(ITc,5),hh(ZO,5));if(a&2){var c;lh(c=mh())&&(b.trigger=c.first);lh(c=mh())&&(b.inputEl=c.first);lh(c=mh())&&(b.displayedRows=c)}},hostBindings:function(a,b){a&1&&N("keydown.control.enter",function(){return b.onPressConfirm()})("keydown.meta.enter",function(){return b.onPressConfirm()})},standalone:!1,features:[Bg],decls:28,vars:21,consts:[["searchInput",""],["teamComponentMenu","matMenu"],
["componentSearchMenu","matMenu"],["menuTrigger","matMenuTrigger"],["componentSearchMenuTrigger","matMenuTrigger"],["mat-dialog-title",""],[1,"heading","flex-kids-x","gap-xxs","align-items-center","padded-s-y","heading-m"],["svgIcon","merge_type_24px",1,"rotate-180","green"],[1,"search-field","margin-s-bottom","flex-kids-x","align-items-center","heading-xs"],["cdkFocusInitial","","placeholder","Search by title, contents, or id",3,"keydown.arrowdown","input","keydown.enter"],[1,"padded-s",3,"selectionChange",
"value"],["matTooltip","Searches by semantic similarity of the query. Does not support search atoms (like 'status:open')","matTooltipPosition","left",3,"value"],["matTooltip","Searches by the exact query text. Supports search atoms (like 'status:open')","matTooltipPosition","left",3,"value"],[1,"center-text","padded","margined","pos-rel"],["mat-dialog-content",""],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","cancel",3,"click"],["type","button","mat-flat-button","","color",
"primary",1,"medium","confirm",3,"click","disabled"],[1,"heading","flex-kids-y","gap-s","border-bottom","padded-bottom","margin-s-bottom"],[1,"type-xs"],[1,"heading-s","line-clamp-3"],["svgIcon","search_spark_24px",1,"icon-m"],["svgIcon","search",1,"icon-m"],[1,"flex-kids-x","align-items-center","margin-s-bottom","gap-s"],["aria-label","Filter open issues",3,"change"],["appearance","hairline-filter",1,"open-filter-chip",3,"selected","value"],[3,"matTooltip"],["xPosition","before"],["matMenuContent",
""],["xPosition","after"],["aria-label","Include subcomponents or subteams",3,"change"],["appearance","hairline-filter",1,"include-descendants-chip",3,"selected"],["matTooltip","Include subcomponents or subteams"],"type;button;mat-icon-button;;matTooltip;Learn more;aria-label;help".split(";"),["aria-label","Scope search to component or team",3,"selectable"],["appearance","hairline-filter","aria-label","Select search scope","matTooltip","Select Component or Team scope","selected","","color","primary",
"role","button",1,"team-component-filters",3,"keydown.enter","keyup.space","matMenuTriggerFor"],["matChipTrailingIcon","","svgIcon","arrow-dropdown",1,"dropdown-icon"],["aria-label","Scope search to component",3,"selectable"],["appearance","hairline-filter","aria-label","Select search scope","matTooltip","Search for a component","selected","","color","primary","role","button",1,"component-search-filter",3,"keydown.enter","keyup.space","menuOpened","matMenuTriggerFor"],["type","button","mat-menu-item",
"","matTooltipPosition","right",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();J(0,"div",5);F(1,MZa,2,3);J(2,"div",6);M(3,"mat-icon",7);J(4,"span");R(5,"Close as duplicate of:");K()();J(6,"header",8);F(7,PZa,2,1);U(8,"async");J(9,"input",9,0);N("keydown.arrowdown",
function(){u(c);return w(b.focusManager.setActiveItem(0))})("input",function(){u(c);var h=Q(10);return w(b.searchText$.next(h.value))})("keydown.enter",function(){u(c);return w(b.onPressConfirm())});K();J(11,"mat-select",10);U(12,"async");N("selectionChange",function(h){u(c);b.selectedSearchSource$.next(h.value);return w()});J(13,"mat-option",11);R(14);K();J(15,"mat-option",12);R(16);K()()();F(17,d_a,1,1);U(18,"async");K();F(19,h_a,5,3,"div",13);F(20,F_a,5,4,"div",14);U(21,"async");J(22,"div",15)(23,
"button",16);N("click",function(){u(c);return w(b.onPressCancel())});R(24," Cancel ");K();J(25,"button",17);U(26,"async");N("click",function(){u(c);return w(b.onPressConfirm())});R(27," Close as duplicate ");K()()}if(a&2){var d,e,f;x();G(b.originIsBulk?-1:1);x(6);G((d=V(8,11,b.selectedSearchSource$))?7:-1,d);x(4);I("value",V(12,13,b.selectedSearchSource$));x(2);I("value",b.SearchSource.SEMANTIC_SEARCH);x();T(" ",b.SearchSource.SEMANTIC_SEARCH," ");x();I("value",b.SearchSource.EXACT_MATCH);x();T(" ",
b.SearchSource.EXACT_MATCH," ");x();G((e=V(18,15,b.selectedSearchSource$))?17:-1,e);x(2);G(b.isLoading?19:-1);x();G((f=V(21,17,b.issues$))?20:-1,f);x(5);I("disabled",!V(26,19,b.selectedIssues.size$))}},dependencies:[FC,aP,iP,gP,eP,XN,cO,eO,fO,VO,oG,Jx,Kx,UJ,WJ,VJ,pG,sG,qG,rG,uG,jN,kN,bP,jP,Bx,cP,XP,KP,QP,MP,JP,SP,NP,PP,TP,VP,zG,xG,LQc,yN,ZO,WO,XO,hN,Tv],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 TTc=function(){this.enrichmentCategoryFridge=r(oD);this.enrichmentCategoryNames=[]},J_a=function(a,b){return b==="Buganizer"?Nf({enableHovercard:!1,displayName:b,description:""}):a.enrichmentCategoryFridge.watch(b).pipe(C(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:""}}),wg({enableHovercard:!0,displayName:b,description:""}))};TTc.\u0275fac=function(a){return new (a||TTc)};
TTc.\u0275cmp=y({type:TTc,selectors:[["b-enrichment-categories-cell"]],inputs:{enrichmentCategoryNames:"enrichmentCategoryNames"},standalone:!1,decls:2,vars:0,consts:[["categoryInfoCard","onedevHovercard"],["role","button",3,"onedevHovercardTrigger","onedevHovercardActive"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"]],template:function(a,b){a&1&&Pg(0,K_a,2,3,null,null,Og);a&2&&Qg(b.enrichmentCategoryNames)},dependencies:[DI,JI,Tv],encapsulation:2,changeDetection:0});var ZP=function(){this.expandable=this.issue=null;this.expanded=!1;this.level=0;this.isEditMode=!1;this.onSaveOutput=new LE;this.onCancelOutput=new LE;this.expansionChange=new LE;this.title=""};ZP.prototype.ngOnChanges=function(){var a,b;this.title=((a=this.issue)==null?void 0:(b=a.snapshot[0])==null?void 0:b.title)||""};ZP.\u0275fac=function(a){return new (a||ZP)};
ZP.\u0275cmp=y({type:ZP,selectors:[["b-expandable-issue-title-cell"]],viewQuery:function(a,b){a&1&&hh(VO,7);if(a&2){var c;lh(c=mh())&&(b.issueTitleCell=c.first)}},inputs:{issue:"issue",expandable:"expandable",expanded:"expanded",level:"level",isEditMode:"isEditMode"},outputs:{onSaveOutput:"onSaveOutput",onCancelOutput:"onCancelOutput",expansionChange:"expansionChange"},standalone:!1,features:[ov],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&&(J(0,"div",0),F(1,L_a,2,3,"button",1)(2,M_a,1,0,"div",2),J(3,"b-issue-title-cell",3),N("onSave",function(){return b.onSaveOutput.emit()})("onCancel",function(){return b.onCancelOutput.emit()}),K()());a&2&&(th("margin-left",b.level*24,"px"),x(),G(b.expandable?
1:2),x(2),I("issue",b.issue)("isEditMode",b.isEditMode))},dependencies:[oG,Kx,eL,VO],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 $P=function(){this.tooltip=this.displayText=this.chipColor=""};$P.\u0275fac=function(a){return new (a||$P)};
$P.\u0275cmp=y({type:$P,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&&(J(0,"div",0),F(1,N_a,1,1,"mat-icon",1),R(2),K());a&2&&(vh("signal-chip type-button "+b.chipColor),I("matTooltip",b.tooltip),Lg("aria-label",b.tooltip),x(),G(b.icon?1:-1),x(),T(" ",b.displayText,"\n"))},dependencies:[zG,
xG,FC],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 aQ=function(){this.issueService=r(cE);this.issueExperimentalFieldsFridge=r(eE);this.isDataLoaded=!1;this.alerts=[]};aQ.prototype.ngOnInit=function(){};var P_a=function(a){return a.alerts.filter(function(b){return nxa(a.issue,b)})};
aQ.prototype.dismissAlert=function(){var a=this,b;return z(function(c){if(c.nextAddress==1)return a.issue.issueId?B(c,Rf(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 B(c,jvc(a.issueService,b),0)})};aQ.\u0275fac=function(a){return new (a||aQ)};
aQ.\u0275cmp=y({type:aQ,selectors:[["b-issue-alerts-cell"]],inputs:{issue:"issue",alerts:"alerts"},standalone:!1,decls:6,vars:3,consts:[["tooltipTemplate",""],[1,"chip-container","flex-kids-x","gap-xs","align-items-center"],[1,"truncated-alerts-chip",3,"xapInlineDialog"],[3,"chipColor","displayText","tooltip"],["type","button","mat-icon-button","","ariaLabel","Dismiss","matTooltip","Dismiss this alert",1,"xs",3,"click","mousedown"],["svgIcon","issue-status-wont-fix","color","primary",1,"dismiss-icon"],
[1,"tooltip-chip-container","flex-kids-x"],["svgIcon","issue-status-wont-fix","color","primary",1,"tooltip-dismiss-icon"]],template:function(a,b){a&1&&(J(0,"div",1),$g(1),F(2,O_a,3,3),F(3,Q_a,2,2,"div",2),K(),D(4,S_a,4,0,"ng-template",null,0,Lh));a&2&&(x(),a=ah(P_a(b)[0]),x(),G(a?2:-1),x(),G(P_a(b).slice(1).length?3:-1))},dependencies:[FC,oG,Kx,zG,xG,$P,uM,tM,zM],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 bQ=function(){this.issue=null;this.isDataLoaded=!1};bQ.prototype.ngOnChanges=function(){var a;this.assignee=EQa(zj((a=this.issue)==null?void 0:a.snapshot[0].assigneeUser)||void 0);this.isDataLoaded=this.issue!==null};bQ.\u0275fac=function(a){return new (a||bQ)};
bQ.\u0275cmp=y({type:bQ,selectors:[["b-issue-assignee-cell"]],inputs:{issue:"issue"},standalone:!1,features:[ov],decls:2,vars:2,consts:[[3,"isReady"],[3,"email"]],template:function(a,b){a&1&&(J(0,"b-async-data-placeholder",0),F(1,T_a,2,2,"b-person-hovercard",1),K());a&2&&(I("isReady",b.isDataLoaded),x(),G(b.assignee?1:-1))},dependencies:[WN,fJ],encapsulation:2,changeDetection:0});var cQ=function(){this.issue=null;this.componentId=this.teamId="";this.isDataLoaded=!1};cQ.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};cQ.\u0275fac=function(a){return new (a||cQ)};
cQ.\u0275cmp=y({type:cQ,selectors:[["b-issue-team-cell"]],inputs:{issue:"issue"},standalone:!1,features:[ov],decls:2,vars:2,consts:[[3,"isReady"],["teamNotAssignedMessage","--",3,"teamId","componentId","anchorLinkEnabled"]],template:function(a,b){a&1&&(J(0,"b-async-data-placeholder",0),F(1,U_a,1,3,"b-team-display",1),K());a&2&&(I("isReady",b.isDataLoaded),x(),G(b.teamId?1:-1))},dependencies:[WN,pM],encapsulation:2,changeDetection:0});var dQ=function(){this.activeSession=r(Bs);this.issueExperimentalFieldsFridge=r(eE);this.analytics=r(RE)};dQ.prototype.ngOnInit=function(){};dQ.prototype.claim=function(){var a=this;fE(this.issueExperimentalFieldsFridge,this.issue.issueId,function(b){b.triage.triagerEmail=a.activeSession.getUserEmail()});this.analytics.trackEvent("triageIssue","claim")};dQ.\u0275fac=function(a){return new (a||dQ)};
dQ.\u0275cmp=y({type:dQ,selectors:[["b-issue-triager-cell"]],inputs:{issue:"issue"},standalone:!1,decls:2,vars:1,consts:[["size","medium",1,"align-with-btn",3,"email"],["type","button","mat-button","",1,"gmat-button","small","align-with-hr"],["type","button","mat-button","",1,"gmat-button","small","align-with-hr",3,"click","mousedown"]],template:function(a,b){a&1&&F(0,V_a,1,1,"b-user-image",0)(1,W_a,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:[oG,Jx,cL],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 eQ=function(){this.type=this.issue=null;this.isDataLoaded=!1};eQ.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};eQ.\u0275fac=function(a){return new (a||eQ)};
eQ.\u0275cmp=y({type:eQ,selectors:[["b-issue-type-cell"]],inputs:{issue:"issue"},standalone:!1,features:[ov],decls:2,vars:2,consts:[[1,"nowrap",3,"isReady"]],template:function(a,b){a&1&&(J(0,"b-async-data-placeholder",0),F(1,X_a,3,3,"ng-container"),K());a&2&&(I("isReady",b.isDataLoaded),x(),G(b.type?1:-1))},dependencies:[WN,iL],encapsulation:2,changeDetection:0});var fQ=function(){Z.call(this);var a=this;this.activeSession=r(Bs);this.prefs=r(iG);this.flags=r(mO);this.links=r(JJ);this.change=new LE;this.checkedSubject=new Kn(!1);this.disabledSubject=new Kn(!1);this.mdHelpLink=this.links.session.isInternalSession()?"http://go/buganizer-markdown-quickstart":"https://commonmark.org/help/";this.enableLiteralModeRevisions=OA(this.activeSession,"enableLiteralModeRevisions");this.flags.textDisplayPreferences$.pipe(yg(this.destroyed$)).subscribe(function(b){a.currentTextDisplayPreferences=
b});this.flags.commentDisplayOverride$.pipe(yg(this.destroyed$)).subscribe(function(b){a.currentCommentDisplayOverride=b})};Y(fQ,Z);fQ.\u0275dir=Z.\u0275dir;fQ.prototype.ngOnInit=function(){this.checkedSubject.next(this.initialValue==="MARKDOWN");this.enableLiteralModeRevisions&&this.disabledSubject.next(this.initialValue==="LITERAL")};
fQ.prototype.ngOnChanges=function(){this.initialValue!=null&&(this.checkedSubject.next(this.initialValue==="MARKDOWN"),this.enableLiteralModeRevisions&&this.disabledSubject.next(this.initialValue==="LITERAL"))};
var UTc=function(a,b){var c,d;return z(function(e){if(e.nextAddress==1){if(a.enableLiteralModeRevisions)return c=b.checked?"MARKDOWN":"PLAIN",a.prefs.lastPublishOrUpdatedFormattingModeSubject$.next(c),a.change.emit(a.prefs.currentCommentFormattingModeSubject$.value),e.jumpTo(0);var f=a.currentCommentDisplayOverride;d=b.checked?"MARKDOWN_FORMATTING_MODE":f?f:"PLAIN_FORMATTING_MODE";return B(e,a.save(d),3)}a.change.emit(Tj(d));Lf(e)})};
fQ.prototype.save=function(a){var b=this,c,d;return z(function(e){if(e.nextAddress==1)return B(e,Rf(b.prefs.commentFormattingPreferences$),2);c=e.yieldResult;a!=="LITERAL_FORMATTING_MODE"&&(c=Object.assign({},c,{lastPublishMode:a}));d=Object.assign({},b.currentTextDisplayPreferences,{lastPublishMode:a});return B(e,Rf(b.prefs.save({textDisplayPreferences:d,commentFormattingPreferences:c})),0)})};fQ.\u0275fac=function(a){return new (a||fQ)};
fQ.\u0275cmp=y({type:fQ,selectors:[["b-markdown-toggle"]],inputs:{initialValue:"initialValue"},outputs:{change:"change"},standalone:!1,features:[Bg,ov],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&&(J(0,"mat-checkbox",0),U(1,"async"),U(2,"async"),N("change",function(e){return UTc(b,e)}),R(3," Markdown\n"),K(),F(4,Y_a,2,2,"a",1));if(a&2){var c,d;I("checked",(c=V(1,3,b.checkedSubject))!=null?c:!1)("disabled",(d=V(2,5,b.disabledSubject))!=null?d:!1);x(4);G(b.mdHelpLink?4:-1)}},dependencies:[gM,hM,FC,oG,Kx,zG,xG,Tv],encapsulation:2,changeDetection:0});var gQ=function(){};gQ.\u0275fac=function(a){return new (a||gQ)};gQ.\u0275mod=uf({type:gQ});gQ.\u0275inj=Dd({providers:[sTc],imports:[ox,Ex,px,Vw,Ny,Ex,px]});var VTc={provide:rTc,deps:[[new qv,new rv,new sgc(rTc)],[new qv,new sgc(bTc)]],useFactory:function(a,b){return!b||b.disableGmatStyle?a||{}:a?Object.assign({},a,{overlayPanelClass:oi(a.overlayPanelClass).concat("gmat-mdc-select")}):{overlayPanelClass:"gmat-mdc-select"}}},hQ=function(){};hQ.\u0275fac=function(a){return new (a||hQ)};hQ.\u0275mod=uf({type:hQ});hQ.\u0275inj=Dd({providers:[VTc],imports:[gQ,EM]});var WTc=new le("GMAT_SNACK_BAR_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var iQ=function(){DJ.apply(this,arguments);this.additionalClasses=["gmat-mdc-snack-bar"];this.gmatOptions=r(WTc)};Y(iQ,DJ);iQ.prototype.openFromComponent=function(a,b){a=DJ.prototype.openFromComponent.call(this,a,b);b=a.containerInstance._elementRef.nativeElement.closest(".cdk-overlay-pane");if(this.gmatOptions.disableGmatStyle)throw Error("Mc");b==null||b.classList.add.apply(b.classList,p(this.additionalClasses));return a};
iQ.\u0275fac=function(){var a;return function(b){return(a||(a=Re(iQ)))(b||iQ)}}();iQ.\u0275prov=Cd({token:iQ,factory:iQ.\u0275fac});var jQ=function(){};jQ.\u0275fac=function(a){return new (a||jQ)};jQ.\u0275mod=uf({type:jQ});jQ.\u0275inj=Dd({providers:[{provide:DJ,useClass:iQ}],imports:[EJ]});var kQ=function(){};kQ.\u0275fac=function(a){return new (a||kQ)};kQ.\u0275mod=uf({type:kQ});kQ.\u0275inj=Dd({imports:[Bw,lM,jQ,HC,ox,yH,hQ,QN,BG,CG,uJ,XK,tJ]});var lQ=function(){};lQ.prototype.transform=function(a){return Uxa(a)};lQ.\u0275fac=function(a){return new (a||lQ)};lQ.\u0275pipe=wf({name:"toCustomFieldTypeDisplayValue",type:lQ,pure:!0,standalone:!1});var mQ=function(){};mQ.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+"@"};mQ.\u0275fac=function(a){return new (a||mQ)};mQ.\u0275pipe=wf({name:"shortenEmail",type:mQ,pure:!0,standalone:!1});var nQ=function(){};nQ.prototype.transform=function(a){if(!a||!a.length)return"";var b=(new Set(a.filter(function(c){return!!c.user}).map(function(c){return Bl(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"?Kl[d]:"Other")});a=a.length>0?"Placeholders: "+a.join(", "):"";return b+(b&&a?", ":"")+a};nQ.\u0275fac=function(a){return new (a||nQ)};
nQ.\u0275pipe=wf({name:"staffingSummary",type:nQ,pure:!0,standalone:!1});var oQ=function(){};oQ.\u0275fac=function(a){return new (a||oQ)};oQ.\u0275mod=uf({type:oQ});oQ.\u0275inj=Dd({imports:[HC]});var pQ=function(){};pQ.\u0275fac=function(a){return new (a||pQ)};pQ.\u0275mod=uf({type:pQ});pQ.\u0275inj=Dd({imports:[aw,ox]});var qQ=function(){};qQ.\u0275fac=function(a){return new (a||qQ)};qQ.\u0275mod=uf({type:qQ});qQ.\u0275inj=Dd({imports:[HC,oQ,pQ]});var rQ=function(){this.el=r(Te);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)};rQ.prototype.onInput=function(){this.resize(this.el.nativeElement.value)};
rQ.prototype.ngOnDestroy=function(){document.body.removeChild(this.shadowInput)};rQ.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"};rQ.\u0275fac=function(a){return new (a||rQ)};
rQ.\u0275dir=vf({type:rQ,selectors:[["","b-adaptive-width-input",""]],hostBindings:function(a,b){a&1&&N("input",function(){return b.onInput()})},inputs:{minWidth:"minWidth",maxWidth:"maxWidth"},standalone:!1});var sQ=function(){};sQ.\u0275fac=function(a){return new (a||sQ)};sQ.\u0275mod=uf({type:sQ});sQ.\u0275inj=Dd({});var tQ=function(){this.activeSession=r(Bs);this.sessionIsExternal=this.activeSession.isExternalSession()};tQ.prototype.shouldShowLinks=function(){return!this.sessionIsExternal&&!!pl(this.email)};tQ.prototype.getName=function(){return this.email===void 0?"":this.email.split("@")[0]};tQ.\u0275fac=function(a){return new (a||tQ)};
tQ.\u0275cmp=y({type:tQ,selectors:[["b-group-email-card"]],inputs:{email:"email"},standalone:!1,ngContentSelectors:["*"],decls:4,vars:1,consts:[["content",""],["card",""],["role","button","tabindex","0",1,"keep-focus-ring",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"],["role","dialog","aria-label","Group email hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"bv2-hovercard-narrow","bv2-group-email-card"],[1,"bv2-group-email-card-content"],[1,"bv2-group-email-card-name"],
[1,"bv2-group-email-card-email"],["svgIcon","group"],[1,"bv2-group-email-card-links-container"],["target","_blank",1,"bv2-group-email-card-link",3,"href"]],template:function(a,b){a&1&&(ch(),F(0,c0a,16,5)(1,e0a,1,1,"ng-container"),D(2,f0a,1,0,"ng-template",null,0,Lh));a&2&&G(pl(b.email)?0:1)},dependencies:[Sv,FC,DI,JI],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 uQ=function(){};uQ.\u0275fac=function(a){return new (a||uQ)};uQ.\u0275mod=uf({type:uQ});uQ.\u0275inj=Dd({imports:[HC,tJ]});var XTc=function(){this.dialogTabIndex=0;this.displayText="";this.overlaySizeConfig={maxHeight:"unset",maxWidth:600}};XTc.\u0275fac=function(a){return new (a||XTc)};
XTc.\u0275cmp=y({type:XTc,selectors:[["b-text-with-tooltip"]],inputs:{dialogTabIndex:"dialogTabIndex",displayText:"displayText"},standalone:!1,ngContentSelectors:["*"],decls:4,vars:5,consts:[["tooltipTemplate",""],[3,"dialogLabel","dialogTabIndex","overlaySize","xapInlineDialog"]],template:function(a,b){a&1&&(ch(),J(0,"xap-text-trigger",1),R(1),K(),D(2,g0a,3,0,"ng-template",null,0,Lh));a&2&&(a=Q(3),I("dialogLabel",b.displayText)("dialogTabIndex",0)("overlaySize",b.overlaySizeConfig)("xapInlineDialog",
a),x(),T(" ",b.displayText,"\n"))},dependencies:[uM,tM,zM,AM],styles:["/*# sourceMappingURL=text_with_tooltip.css.map */"],changeDetection:0});var vQ=function(){};vQ.\u0275fac=function(a){return new (a||vQ)};vQ.\u0275mod=uf({type:vQ});vQ.\u0275inj=Dd({imports:[uM,AM]});var wQ=function(){Z.apply(this,arguments);this.activeSession=r(Bs);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 LE;this.chipClear=new LE;this.chipRemove=new LE};Y(wQ,Z);wQ.\u0275dir=Z.\u0275dir;g=wQ.prototype;g.isPublicChip=function(){return this.principalType==="ALIAS"&&["public_non_google","public"].includes(this.value)};
g.isNonGaiaChip=function(){return this.principalType==="NON_GAIA"};g.isContainerChip=function(){return this.nestedChips!==null};g.isUserChip=function(){return this.principalType==="USER"};g.isGroupChip=function(){return this.principalType==="GROUP"};g.isDomainChip=function(){return this.principalType==="ALIAS"&&["googlers_unrestricted","google_domain"].includes(this.value)};g.isExternalChip=function(){return this.detailedUserType==="EXTERNAL"||this.detailedUserType==="PUBLIC"||this.isPublicChip()};
g.isExternalPartnerAccessViolated=function(){return this.accessLevel==="EXTERNAL_PARTNER"&&this.isPublicChip()};g.isInternalAccessViolated=function(){return this.accessLevel==="INTERNAL"&&(this.isExternalChip()||this.isPublicChip())};
g.getTooltip=function(){if(this.principalType!=="ALIAS")return this.displayText;switch(this.value){case "googlers_unrestricted":return"Full time employees and other users with access to view most "+this.activeSession.getAppName()+" issues.";case "google_domain":return"All users associated with the google.com domain.";case "public_non_google":return"All users, excluding the google.com domain.";case "public":return"All users";default:throw Error("Md`"+this.value);}};
var YTc=function(a){if(a.isGroupChip())return"group";if(a.isDomainChip())return"acl-alias-domain";if(a.isPublicChip())return"public"};wQ.\u0275fac=function(){var a;return function(b){return(a||(a=Re(wQ)))(b||wQ)}}();
wQ.\u0275cmp=y({type:wQ,selectors:[["b-contact-chip"]],inputs:{isReadonly:"isReadonly",isSelected:"isSelected",isWidgetDisabled:"isWidgetDisabled",principalType:"principalType",detailedUserType:"detailedUserType",nestedChips:"nestedChips",value:"value",displayText:"displayText",accessLevel:"accessLevel"},outputs:{chipSelection:"chipSelection",chipClear:"chipClear",chipRemove:"chipRemove"},standalone:!1,features:[Bg],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&&(J(0,"span",0),N("focus",
function(){return b.chipSelection.emit()})("blur",function(){return b.chipClear.emit()}),J(1,"span",1),F(2,h0a,1,1,"mat-icon",2),K(),J(3,"div",3),F(4,i0a,2,2,"b-person-hovercard",4),F(5,j0a,2,2,"b-group-email-card",4),F(6,n0a,3,3,"b-text-with-tooltip",5),K(),F(7,o0a,2,3,"div",6),K());if(a&2){var c;uh("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);x(2);G((c=YTc(b))?2:-1,c);x(2);G(b.isUserChip()?4:-1);x();G(b.isGroupChip()?5:-1);x();G(b.isUserChip()||b.isGroupChip()?-1:6);x();G(b.isReadonly||b.isWidgetDisabled?-1:7)}},dependencies:[FC,zG,xG,fJ,tQ,XTc,wQ],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 xQ=function(a,b,c,d,e,f){this.clientConfig=a;this.document=b;this.peopleKitService=c;this.inputEl=d;this.zone=e;this.renderer=f;this.selectionChange=new nq;this.sessionOptions=(new et).setFilter(ZTc);this.inputSearchDelay=200;this.destroyed$=new sg(1);this.inputChanged$=new sg(1)};xQ.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.autocomplete.dispose()};
xQ.prototype.ngOnInit=function(){var a=this,b=this.clientConfig.autocompleteFactory.createConfig(this.peopleKitService.environmentConfig);p0a(b,this.config);this.zone.runOutsideAngular(function(){var c;if((c=a.clientConfig.autocompleteFactory)==null)c=void 0;else{var d=c.create;if(!a.peopleKitService.autocompleteAnchor){var e=a.renderer.createElement("div");a.peopleKitService.autocompleteAnchor=e;a.renderer.addClass(e,"peoplekit-autocomplete-anchor");var f;((f=rMa(a.inputEl.nativeElement))!=null?
f:a.document.body).append(e)}c=d.call(c,a.peopleKitService.autocompleteAnchor,a.inputEl.nativeElement,a.peopleKitService.peopleStore,b,a.sessionOptions)}a.autocomplete=c});this.autocomplete.subscribeToSelectionChanged(function(c){a.zone.run(function(){a.selectionChange.emit(c)});a.autocomplete.report(4)});this.inputChanged$.pipe(kg(this.inputSearchDelay)).subscribe(function(){a.search()})};
xQ.prototype.search=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.search(a.inputEl.nativeElement.value,a.inputEl.nativeElement)})};xQ.prototype.cancel=function(){var a=this;this.zone.runOutsideAngular(function(){a.autocomplete.cancel()})};xQ.\u0275fac=function(a){return new (a||xQ)(of(jSc),of(ui),of(HO),of(Te),of(Ph),of(Ji))};
xQ.\u0275dir=vf({type:xQ,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 ZTc=hYa(1);var yQ=function(){};yQ.\u0275fac=function(a){return new (a||yQ)};yQ.\u0275mod=uf({type:yQ});yQ.\u0275inj=Dd({});var zQ=function(){};zQ.\u0275fac=function(a){return new (a||zQ)};zQ.\u0275mod=uf({type:zQ});zQ.\u0275inj=Dd({imports:[HC,Ay,CG,uJ,uQ,nL,AI,sQ,yQ,vQ]});xna(IO,[Ui,dy,ky,zI,rQ,xQ,wQ],[]);var AQ=function(){};AQ.\u0275fac=function(a){return new (a||AQ)};AQ.\u0275mod=uf({type:AQ});AQ.\u0275inj=Dd({imports:[HC,oQ,zQ,tJ,CG]});var BQ=function(){};BQ.\u0275fac=function(a){return new (a||BQ)};BQ.\u0275mod=uf({type:BQ});BQ.\u0275inj=Dd({imports:[HC,BG,CG]});var CQ=function(){};CQ.\u0275fac=function(a){return new (a||CQ)};CQ.\u0275mod=uf({type:CQ});CQ.\u0275inj=Dd({providers:[{provide:TRc,useValue:PO}],imports:[HC,qQ,BG,CG,hL,JL,kQ,BQ,AQ]});var DQ=function(){};DQ.\u0275fac=function(a){return new (a||DQ)};DQ.\u0275mod=uf({type:DQ});DQ.\u0275inj=Dd({imports:[HC]});var $Tc={provide:mAc,deps:[lx],useFactory:function(a){return function(){return a.scrollStrategies.reposition({scrollThrottle:20})}}},aUc=li({passive:!0}),EQ=function(a,b,c,d,e,f,h,k,q,v,A,E){var H=this;this._overlay=a;this._elementRef=b;this._scrollDispatcher=c;this._viewContainerRef=d;this._ngZone=e;this._platform=f;this._ariaDescriber=h;this._focusMonitor=k;this._dir=v;this._defaultOptions=A;this._position="below";this._pointerExitEventsInitialized=this._viewInitialized=this._disabled=this._positionAtOrigin=
!1;this._viewportMargin=8;this._cssClassPrefix="mat";this.touchGestures="auto";this._message="";this._passiveListeners=[];this._destroyed=new tg;this._scrollStrategy=q;this._document=E;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));v.change.pipe(yg(this._destroyed)).subscribe(function(){H._overlayRef&&H._updatePosition(H._overlayRef)})};
g=EQ.prototype;g.ngAfterViewInit=function(){var a=this;this._viewInitialized=!0;this._setupPointerEnterEventsIfNeeded();this._focusMonitor.monitor(this._elementRef).pipe(yg(this._destroyed)).subscribe(function(b){b?b==="keyboard"&&a._ngZone.run(function(){return a.show()}):a._ngZone.run(function(){return a.hide(0)})})};
g.ngOnDestroy=function(){var a=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout);this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null);this._passiveListeners.forEach(function(b){var c=l(b);b=c.next().value;c=c.next().value;a.removeEventListener(b,c,aUc)});this._passiveListeners.length=0;this._destroyed.next();this._destroyed.complete();Dw(this._ariaDescriber,a,this.message,"tooltip");this._focusMonitor.stopMonitoring(a)};
g.show=function(a,b){var c=this;a=a===void 0?this.showDelay:a;if(this.disabled||!this.message||this._isTooltipVisible()){var d;(d=this._tooltipInstance)==null||d._cancelPendingAnimations()}else b=this._createOverlay(b),this._detach(),this._portal=this._portal||new fx(this._tooltipComponent,this._viewContainerRef),b=this._tooltipInstance=b.attach(this._portal).instance,b._triggerElement=this._elementRef.nativeElement,b._mouseLeaveHideDelay=this._hideDelay,b.afterHidden().pipe(yg(this._destroyed)).subscribe(function(){return c._detach()}),
this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),b.show(a)};g.hide=function(a){a=a===void 0?this.hideDelay:a;var b=this._tooltipInstance;b&&(b.isVisible()?b.hide(a):(b._cancelPendingAnimations(),this._detach()))};g.toggle=function(a){this._isTooltipVisible()?this.hide():this.show(void 0,a)};g._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()};
g._createOverlay=function(a){var b=this;if(this._overlayRef){var c=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!a)&&c._origin instanceof Te)return this._overlayRef;this._detach()}c=hjc(this._scrollDispatcher,this._elementRef);a=ujc(Zw($w(yjc(dx(this._overlay.position(),this.positionAtOrigin?a||this._elementRef:this._elementRef),"."+this._cssClassPrefix+"-tooltip"),!1),this._viewportMargin),c);a.positionChanges.pipe(yg(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(yg(this._destroyed)).subscribe(function(){return b._detach()});this._overlayRef.outsidePointerEvents().pipe(yg(this._destroyed)).subscribe(function(){var e;
return(e=b._tooltipInstance)==null?void 0:e._handleBodyInteraction()});this._overlayRef.keydownEvents().pipe(yg(this._destroyed)).subscribe(function(e){b._isTooltipVisible()&&e.keyCode===27&&!ki(e)&&(e.preventDefault(),e.stopPropagation(),b._ngZone.run(function(){return b.hide(0)}))});var d;((d=this._defaultOptions)==null?0:d.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(this._cssClassPrefix+"-tooltip-panel-non-interactive");return this._overlayRef};
g._detach=function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach();this._tooltipInstance=null};g._updatePosition=function(a){a=a.getConfig().positionStrategy;var b=this._getOrigin(),c=this._getOverlayPosition();Yw(a,[this._addOffset(Object.assign({},b.main,c.main)),this._addOffset(Object.assign({},b.fallback,c.fallback))])};g._addOffset=function(a){return a};
g._getOrigin=function(){var a=!this._dir||this._dir.value=="ltr",b=this.position;if(b=="above"||b=="below")var c={originX:"center",originY:b=="above"?"top":"bottom"};else if(b=="before"||b=="left"&&a||b=="right"&&!a)c={originX:"start",originY:"center"};else if(b=="after"||b=="right"&&a||b=="left"&&!a)c={originX:"end",originY:"center"};a=this._invertPosition(c.originX,c.originY);return{main:c,fallback:{originX:a.x,originY:a.y}}};
g._getOverlayPosition=function(){var a=!this._dir||this._dir.value=="ltr",b=this.position;if(b=="above")var c={overlayX:"center",overlayY:"bottom"};else if(b=="below")c={overlayX:"center",overlayY:"top"};else if(b=="before"||b=="left"&&a||b=="right"&&!a)c={overlayX:"end",overlayY:"center"};else if(b=="after"||b=="right"&&a||b=="left"&&!a)c={overlayX:"start",overlayY:"center"};a=this._invertPosition(c.overlayX,c.overlayY);return{main:c,fallback:{overlayX:a.x,overlayY:a.y}}};
g._updateTooltipMessage=function(){var a=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(mg(1),yg(this._destroyed)).subscribe(function(){a._tooltipInstance&&a._overlayRef.updatePosition()}))};g._setTooltipClass=function(a){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=a,this._tooltipInstance._markForCheck())};
g._invertPosition=function(a,b){this.position==="above"||this.position==="below"?b==="top"?b="bottom":b==="bottom"&&(b="top"):a==="end"?a="start":a==="start"&&(a="end");return{x:a,y:b}};
g._updateCurrentPositionClass=function(a){var b=a.overlayY,c=a.originX;a=a.originY;b=b==="center"?this._dir&&this._dir.value==="rtl"?c==="end"?"left":"right":c==="start"?"left":"right":b==="bottom"&&a==="top"?"above":"below";if(b!==this._currentPosition){if(c=this._overlayRef)a=this._cssClassPrefix+"-tooltip-panel-",c.removePanelClass(a+this._currentPosition),c.addPanelClass(a+b);this._currentPosition=b}};
g._setupPointerEnterEventsIfNeeded=function(){var a=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(b){a._setupPointerExitEventsIfNeeded();var c=void 0;b.x!==void 0&&b.y!==void 0&&(c=b);a.show(void 0,c)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(b){var c,d=(b=(c=b.targetTouches)==null?void 0:
c[0])?{x:b.clientX,y:b.clientY}:void 0;a._setupPointerExitEventsIfNeeded();clearTimeout(a._touchstartTimeout);a._touchstartTimeout=setTimeout(function(){return a.show(void 0,d)},500)}])),this._addListeners(this._passiveListeners))};
g._setupPointerExitEventsIfNeeded=function(){var a=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var b=[];if(this._platformSupportsMouseEvents())b.push(["mouseleave",function(d){d=d.relatedTarget;var e;d&&((e=a._overlayRef)==null?0:e.overlayElement.contains(d))||a.hide()}],["wheel",function(d){return a._wheelListener(d)}]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();var c=function(){clearTimeout(a._touchstartTimeout);a.hide(a._defaultOptions.touchendHideDelay)};
b.push(["touchend",c],["touchcancel",c])}this._addListeners(b);this._passiveListeners.push.apply(this._passiveListeners,p(b))}};g._addListeners=function(a){var b=this;a.forEach(function(c){var d=l(c);c=d.next().value;d=d.next().value;b._elementRef.nativeElement.addEventListener(c,d,aUc)})};g._platformSupportsMouseEvents=function(){return!this._platform.IOS&&!this._platform.ANDROID};
g._wheelListener=function(a){if(this._isTooltipVisible()){a=this._document.elementFromPoint(a.clientX,a.clientY);var b=this._elementRef.nativeElement;a===b||b.contains(a)||this.hide()}};
g._disableNativeGesturesIfNecessary=function(){var a=this.touchGestures;if(a!=="off"){var b=this._elementRef.nativeElement,c=b.style;if(a==="on"||b.nodeName!=="INPUT"&&b.nodeName!=="TEXTAREA")c.userSelect=c.msUserSelect=c.webkitUserSelect=c.MozUserSelect="none";a!=="on"&&b.draggable||(c.webkitUserDrag="none");c.touchAction="none";c.webkitTapHighlightColor="transparent"}};
nd.Object.defineProperties(EQ.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=pi(a);this._detach();this._overlayRef=null}},disabled:{configurable:!0,
enumerable:!0,get:function(){return this._disabled},set:function(a){(this._disabled=pi(a))?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},showDelay:{configurable:!0,enumerable:!0,get:function(){return this._showDelay},set:function(a){this._showDelay=si(a)}},hideDelay:{configurable:!0,enumerable:!0,get:function(){return this._hideDelay},set:function(a){this._hideDelay=si(a);this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}},message:{configurable:!0,enumerable:!0,
get:function(){return this._message},set:function(a){var b=this;Dw(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(){Vic(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)}}});EQ.\u0275fac=function(){Via()};
EQ.\u0275dir=vf({type:EQ,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 FQ=function(a,b){this._changeDetectorRef=a;this._isVisible=this._closeOnInteraction=!1;this._onHide=new tg;this._animationsDisabled=b==="NoopAnimations"};g=FQ.prototype;g.show=function(a){var b=this;this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId);this._showTimeoutId=setTimeout(function(){b._toggleVisibility(!0);b._showTimeoutId=void 0},a)};
g.hide=function(a){var b=this;this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId);this._hideTimeoutId=setTimeout(function(){b._toggleVisibility(!1);b._hideTimeoutId=void 0},a)};g.afterHidden=function(){return this._onHide};g.isVisible=function(){return this._isVisible};g.ngOnDestroy=function(){this._cancelPendingAnimations();this._onHide.complete();this._triggerElement=null};g._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)};g._markForCheck=function(){this._changeDetectorRef.markForCheck()};
g._handleMouseLeave=function(a){(a=a.relatedTarget)&&this._triggerElement.contains(a)||(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))};g._onShow=function(){};g._handleAnimationEnd=function(a){a=a.animationName;a!==this._showAnimation&&a!==this._hideAnimation||this._finalizeAnimation(a===this._showAnimation)};
g._cancelPendingAnimations=function(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId);this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId);this._showTimeoutId=this._hideTimeoutId=void 0};g._finalizeAnimation=function(a){a?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()};
g._toggleVisibility=function(a){var b=this._tooltip.nativeElement,c=this._showAnimation,d=this._hideAnimation;b.classList.remove(a?d:c);b.classList.add(a?c:d);(this._isVisible=a)&&!this._animationsDisabled&&typeof getComputedStyle==="function"&&(c=getComputedStyle(b),c.getPropertyValue("animation-duration")==="0s"||c.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0);a&&this._onShow();this._animationsDisabled&&(b.classList.add("_mat-animation-noopable"),this._finalizeAnimation(a))};
FQ.\u0275fac=function(a){return new (a||FQ)(of(Hv),of(Oi,8))};FQ.\u0275dir=vf({type:FQ,standalone:!1});var bUc=["tooltip"],HQ=function(a,b,c,d,e,f,h,k,q,v,A,E){EQ.call(this,a,b,c,d,e,f,h,k,q,v,A,E);this._tooltipComponent=GQ};Y(HQ,EQ);HQ.\u0275fac=function(a){return new (a||HQ)(of(lx),of(Te),of(wi),of(fh),of(Ph),of(zi),of(Cw),of(jw),of(mAc),of(Gi,8),of(oAc,8),of(ui))};HQ.\u0275dir=vf({type:HQ,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],hostVars:2,hostBindings:function(a,b){a&2&&uh("mat-tooltip-disabled",b.disabled)},exportAs:["matTooltip"],standalone:!1,features:[Bg]});
var GQ=function(a,b,c){FQ.call(this,a,c);this._showAnimation="mat-tooltip-show";this._hideAnimation="mat-tooltip-hide";this._isHandset=b.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)")};Y(GQ,FQ);GQ.\u0275dir=FQ.\u0275dir;GQ.\u0275fac=function(a){return new (a||GQ)(of(Hv),of(uw),of(Oi,8))};
GQ.\u0275cmp=y({type:GQ,selectors:[["mat-tooltip-component"]],viewQuery:function(a,b){a&1&&hh(bUc,7);if(a&2){var c;lh(c=mh())&&(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&&(Lg("mat-id-collision",null),th("zoom",b.isVisible()?1:null))},standalone:!1,features:[Bg],decls:4,vars:6,consts:[["tooltip",""],[1,"mat-tooltip",3,"animationend","ngClass"]],template:function(a,b){if(a&1){var c=
t();J(0,"div",1,0);U(2,"async");N("animationend",function(e){u(c);return w(b._handleAnimationEnd(e))});R(3);K()}if(a&2){var d;uh("mat-tooltip-handset",(d=V(2,4,b._isHandset))==null?null:d.matches);I("ngClass",b.tooltipClass);x(3);wh(b.message)}},dependencies:[Pv,Tv],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 IQ=function(){};IQ.\u0275fac=function(a){return new (a||IQ)};IQ.\u0275mod=uf({type:IQ});IQ.\u0275inj=Dd({providers:[$Tc],imports:[Bw,aw,ox,px,px,Vw]});var JQ=function(){};JQ.\u0275fac=function(a){return new (a||JQ)};JQ.\u0275mod=uf({type:JQ});JQ.\u0275inj=Dd({imports:[aw,ox,kx,sJ,IQ,Bw,CI]});var KQ=function(){};KQ.\u0275fac=function(a){return new (a||KQ)};KQ.\u0275mod=uf({type:KQ});KQ.\u0275inj=Dd({imports:[Bw,HC,SG,BG,CG,JQ]});var LQ=function(){var a=this;this.componentFridge=r(BB);this.trackerHelpers=r(iK);this.issue$=new sg(1);this.isLoaded$=this.issue$.pipe(C(function(b){return b!==null}));this.componentId$=this.issue$.pipe(C(function(b){return(b==null?void 0:b.snapshot[0].componentId)||void 0}));this.component$=this.componentId$.pipe(xg(function(b){return b?a.componentFridge.watch(b):Nf(void 0)}));this.componentName$=Uf([this.componentId$,this.component$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;
return c?(b=rs(a.trackerHelpers,c.componentPathInfo))&&b.componentPathName?b.componentPathName[b.componentPathName.length-1].toString():"":b||""}))};nd.Object.defineProperties(LQ.prototype,{issue:{configurable:!0,enumerable:!0,set:function(a){this.issue$.next(a)}}});LQ.\u0275fac=function(a){return new (a||LQ)};
LQ.\u0275cmp=y({type:LQ,selectors:[["b-issue-component-name-cell"]],inputs:{issue:"issue"},standalone:!1,decls:4,vars:6,consts:[[3,"isReady"],[1,"nowrap","overflow-ellipsis",3,"matTooltip"]],template:function(a,b){a&1&&(J(0,"b-async-data-placeholder",0),U(1,"async"),F(2,q0a,2,2,"span",1),U(3,"async"),K());if(a&2){var c;I("isReady",V(1,2,b.isLoaded$));x(2);G((c=V(3,4,b.componentName$))?2:-1,c)}},dependencies:[WN,zG,xG,Tv],encapsulation:2,changeDetection:0});var MQ=function(){this.issue=null;this.isDataLoaded=!1};MQ.prototype.ngOnChanges=function(){var a;this.reporter=EQa(zj((a=this.issue)==null?void 0:a.snapshot[0].reporterUser)||void 0);this.isDataLoaded=this.issue!==null};MQ.\u0275fac=function(a){return new (a||MQ)};
MQ.\u0275cmp=y({type:MQ,selectors:[["b-issue-reporter-cell"]],inputs:{issue:"issue"},standalone:!1,features:[ov],decls:2,vars:2,consts:[[3,"isReady"],[3,"email"]],template:function(a,b){a&1&&(J(0,"b-async-data-placeholder",0),F(1,r0a,2,2,"b-person-hovercard",1),K());a&2&&(I("isReady",b.isDataLoaded),x(),G(b.reporter?1:-1))},dependencies:[WN,fJ],encapsulation:2,changeDetection:0});var cUc=["theInput"],NQ=function(){this.placeholder=this.value="";this.readonly=!1;this.autoFocus=!0;this.valueChange=new LE;this.commit=new LE};NQ.prototype.ngAfterViewInit=function(){this.autoFocus&&this.input.nativeElement.focus()};NQ.\u0275fac=function(a){return new (a||NQ)};
NQ.\u0275cmp=y({type:NQ,selectors:[["b-text-input-cell"]],viewQuery:function(a,b){a&1&&hh(cUc,5);if(a&2){var c;lh(c=mh())&&(b.input=c.first)}},inputs:{value:"value",placeholder:"placeholder",readonly:"readonly",autoFocus:"autoFocus"},outputs:{valueChange:"valueChange",commit:"commit"},standalone:!1,decls:2,vars:7,consts:[["theInput",""],["type","text",3,"keydown.enter","ngModelChange","placeholder","disabled","ngModel"]],template:function(a,b){if(a&1){var c=t();J(0,"input",1,0);N("keydown.enter",
function(d){u(c);b.readonly||b.commit.emit(d);return w()})("ngModelChange",function(d){u(c);return w(b.valueChange.emit(d))});K()}a&2&&(uh("readonly",b.readonly)("override",b.readonly),I("placeholder",b.placeholder)("disabled",b.readonly)("ngModel",b.value))},dependencies:[Ui,dy,ky],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 OQ=function(){};OQ.\u0275fac=function(a){return new (a||OQ)};OQ.\u0275mod=uf({type:OQ});OQ.\u0275inj=Dd({imports:[HC,tJ,BG]});var PQ=function(){};PQ.\u0275fac=function(a){return new (a||PQ)};PQ.\u0275mod=uf({type:PQ});PQ.\u0275inj=Dd({imports:[HC]});var QQ=function(){};QQ.\u0275fac=function(a){return new (a||QQ)};QQ.\u0275mod=uf({type:QQ});QQ.\u0275inj=Dd({imports:[PQ,nL,HC,DG,JL,hO,Ay,BG,CG,tJ,gL,CQ,KQ,DQ,uJ,qM,OQ,$P,hL,uM]});var RQ=function(){};RQ.\u0275fac=function(a){return new (a||RQ)};RQ.\u0275mod=uf({type:RQ});RQ.\u0275inj=Dd({imports:[fN]});var SQ=function(){};SQ.\u0275fac=function(a){return new (a||SQ)};SQ.\u0275mod=uf({type:SQ});SQ.\u0275inj=Dd({imports:[HC,Ay,BG,zL,CG,RQ,wK,ox,kx,OQ,Bw,nL,qQ]});var TQ=function(){};TQ.\u0275fac=function(a){return new (a||TQ)};TQ.\u0275mod=uf({type:TQ});TQ.\u0275inj=Dd({imports:[HC]});var UQ=function(){};UQ.\u0275fac=function(a){return new (a||UQ)};UQ.\u0275mod=uf({type:UQ});UQ.\u0275inj=Dd({providers:[vx,{provide:dTc,useValue:{separatorKeyCodes:[13]}}],imports:[px,Cx,px]});var VQ=function(){};VQ.\u0275fac=function(a){return new (a||VQ)};VQ.\u0275mod=uf({type:VQ});VQ.\u0275inj=Dd({imports:[UQ]});var WQ=function(){};WQ.\u0275fac=function(a){return new (a||WQ)};WQ.\u0275mod=uf({type:WQ});WQ.\u0275inj=Dd({imports:[px,IP,px]});var XQ=function(){};XQ.\u0275fac=function(a){return new (a||XQ)};XQ.\u0275mod=uf({type:XQ});XQ.\u0275inj=Dd({imports:[WQ]});var YQ=function(){};YQ.\u0275fac=function(a){return new (a||YQ)};YQ.\u0275mod=uf({type:YQ});YQ.\u0275inj=Dd({imports:[HC,VQ,QN,QQ,BG,wK,mH,RN,hQ,XQ,CG,AN,$O,TQ,SQ]});var ZQ=function(){this.issuesApi=r(SD)};ZQ.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})};ZQ.\u0275fac=function(a){return new (a||ZQ)};ZQ.\u0275prov=Cd({token:ZQ,factory:ZQ.\u0275fac,providedIn:"root"});var $Q=function(){Z.apply(this,arguments);var a=this;this.cdr=r(NE,{self:!0});this.paths=r(oN);this.issueFullFridge=r(TE);this.relatedIssues=r(ZQ);this.errorHandler=r(aK);this.domSafe=r(UK);this.activeSession=r(Bs);this.STATUS_ICON=Qoc;this.entrySelect=new LE;this.selectedIssues=[];this.asyncChoices=[];this.choices=[];this.currentQuery="";this.hasLoadedResults=!0;this.searchingForSelf=!1;this.queryInternal="";this.queryChange=new LE;this.getTextToPutInInputOnSelect=function(){return a.query}};
Y($Q,Z);$Q.\u0275dir=Z.\u0275dir;$Q.prototype.ngOnInit=function(){var a=this;this.queryChange.pipe(kg(250),yg(this.destroyed$)).subscribe(function(b){a.doSearch(b)})};$Q.prototype.ngOnChanges=function(a){a.defaultChoices&&(this.choices=[].concat(p(this.defaultChoices),p(this.asyncChoices)))};$Q.prototype.selectIssue=function(a){dUc(this,[a])};
var fUc=function(a){var b=a.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});if(eUc(b))return b;b=a;a.startsWith("b/")?b=a.substring(2):a.startsWith("http://b/")&&(b=a.substring(9));return rjb(b)?[b]:[]},eUc=function(a){return!a.some(function(b){return!rjb(b)})};$Q.prototype.search=function(a){typeof a==="string"&&(this.query=a)};
$Q.prototype.doSearch=function(a){this.currentQuery=a;this.searchingForSelf=!1;if(a==="")gUc(this);else{var b=fUc(a);b.length===1||b.length>1&&this.allowMultipleIds?(this.lastSearchType="id",hUc(this,b,a)):(this.lastSearchType="query",iUc(this,a))}};
var gUc=function(a){a.choices=a.defaultChoices;a.asyncChoices=[];a.hasLoadedResults=!0;dUc(a,[])},dUc=function(a,b){a.selectedIssues=b;a.entrySelect.emit(a.selectedIssues);var c;(c=a.autocomplete)==null||Oob(c)},hUc=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,gUc(a)):(a.choices=jUc(a,b),a.hasLoadedResults=!1,a.issueFullFridge.watchSet(b).pipe(mg(1),yg(a.destroyed$)).subscribe(function(e){if(a.currentQuery===
c){var f=e.reduce(function(h,k){var q=Ba(k.snapshot);return h.set(k.issueId,{resourceId:k.issueId,displayText:q.title,status:q.status,relations:[]})},new Map);Kaa(b);e=b.map(function(h){return f.get(h)});e.includes(void 0)?a.asyncChoices=[]:a.asyncChoices=e;a.choices=[].concat(p(a.choices),p(a.asyncChoices));dUc(a,a.asyncChoices);a.hasLoadedResults=!0;a.cdr.detectChanges()}},function(){a.asyncChoices=[];a.hasLoadedResults=!0;a.cdr.detectChanges()}))},iUc=function(a,b){a.choices=kUc(a,b);a.hasLoadedResults=
!1;if(ja(b))a.hasLoadedResults=!0;else{var c=lUc(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(h){a.currentQuery===b&&(h=h.issueDigests.map(function(k){return{resourceId:k.issueId,displayText:k.title,status:k.status,relations:[]}}),a.choices=[].concat(p(a.choices),p(h)),a.cdr.detectChanges())},
function(h){a.errorHandler.errorHandler(null,h)}).finally(function(){a.hasLoadedResults=!0})}},jUc=function(a,b){return a.defaultChoices.filter(function(c){return c.resourceId.toString().startsWith(b[0])})},kUc=function(a,b){return ja(b)?a.defaultChoices:a.defaultChoices.filter(function(c){return c.displayText.toLowerCase().startsWith(b.toLowerCase())})};$Q.prototype.getIssueLink=function(a){return Fq(a.resourceId)};
var x0a=function(a){return a.relations.map(function(b){return mUc.get(b)}).filter(function(b){return!!b}).join("/")},lUc=function(a,b){if(b.length===0)return a;b=b.map(function(c){return c.resourceId}).join("|");return a+" -id:("+b+")"};$Q.prototype.onEnter=function(a){var b;((b=this.autocomplete)==null?0:b.panelOpen)&&a.stopPropagation()};nd.Object.defineProperties($Q.prototype,{query:{configurable:!0,enumerable:!0,get:function(){return this.queryInternal},set:function(a){this.queryInternal=a;this.queryChange.emit(a)}}});
$Q.\u0275fac=function(){var a;return function(b){return(a||(a=Re($Q)))(b||$Q)}}();
$Q.\u0275cmp=y({type:$Q,selectors:[["b-simple-issue-picker"]],viewQuery:function(a,b){a&1&&hh(dM,5);if(a&2){var c;lh(c=mh())&&(b.autocomplete=c.first)}},inputs:{defaultChoices:"defaultChoices",currentResource:"currentResource",allowMultipleIds:"allowMultipleIds"},outputs:{entrySelect:"entrySelect",queryChange:"queryChange"},standalone:!1,features:[Fh([ZQ,NE]),Bg,ov],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();J(0,"div",3);F(1,s0a,3,0,"div");J(2,"div",4)(3,"input",5);N("ngModelChange",function(d){u(c);return w(b.search(d))})("keydown.enter",function(d){u(c);return w(b.onEnter(d))})("keydown.alt.arrowright",function(){u(c);b.activeChoice&&b.domSafe.openInNewTab(b.getIssueLink(b.activeChoice));return w()});K();J(4,"mat-autocomplete",6,0);N("optionActivated",
function(d){u(c);b.activeChoice=d.option==null?null:d.option.value;return w()})("optionSelected",function(d){u(c);return w(b.selectIssue(d.option.value))});F(6,t0a,3,1,"mat-option",7);F(7,u0a,2,0,"mat-option",8);Pg(8,y0a,14,15,"mat-option",9,Og);K()()()}a&2&&(a=Q(5),x(),G(b.searchingForSelf?1:-1),x(2),I("ngModel",b.query)("matAutocomplete",a),Lg("aria-label",b.selectedIssues.length>0?"issue "+b.selectedIssues[0].resourceId+" selected. Change.":"Choose issue"),x(),I("displayWith",b.getTextToPutInInputOnSelect),
x(2),G(b.query===""||b.hasLoadedResults?-1:6),x(),G(b.query!==""&&b.hasLoadedResults&&b.choices.length===0?7:-1),x(),Qg(b.choices))},dependencies:[FC,Ui,dy,ky,DI,EI,JI,FI,PO,fM,cM,Bx,dM,oG,Kx,yN,kL],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 mUc=new Map([["BLOCKED_BY","blocked"],["BLOCKING","blocking"],["DUPLICATE","duplicate"]]);var aR=function(){this.dialogRef=r(KJ);this.params=r(CK);this.DEFAULTS={title:"Select an issue.",defaultChoices:[],allowMultipleIds:!1};this.originalData=r(QJ);this.data=Object.assign({},this.DEFAULTS,this.originalData);this.queryRestriction=this.data.componentId?"componentid:"+this.data.componentId+"+":"";this.isQueryRestricted=!1;this.selectedIssues=[]},C0a=function(a){if(a.queryRestriction!==""&&a.issuePicker!=null){var b=a.issuePicker.query;a.issuePicker.query=a.isQueryRestricted?b.replace(new RegExp(sq(a.queryRestriction)+
" ?"),""):a.queryRestriction+" "+b}};g=aR.prototype;g.onQueryChange=function(a){this.isQueryRestricted=this.queryRestriction!==""&&a.includes(this.queryRestriction)};g.onEnter=function(){if(this.selectedIssues.length!==0)this.onPressConfirm()};g.onEscape=function(){this.dialogRef.close()};g.onPressConfirm=function(){var a,b={selectedIssueIds:this.selectedIssues.map(function(c){return c.resourceId}),lastSearchType:(a=this.issuePicker)==null?void 0:a.lastSearchType};this.dialogRef.close(b)};
g.onPressCancel=function(){this.dialogRef.close()};aR.\u0275fac=function(a){return new (a||aR)};
aR.\u0275cmp=y({type:aR,selectors:[["ng-component"]],viewQuery:function(a,b){a&1&&hh($Q,5);if(a&2){var c;lh(c=mh())&&(b.issuePicker=c.first)}},hostBindings:function(a,b){a&1&&N("keydown.escape",function(){return b.onEscape()})},standalone:!1,decls:15,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"bv2-rel-issue-text"],[1,"bv2-rel-issue-preview-link"],[1,"bv2-rel-issue-search"],[1,"bv2-rel-issue-bubble-issue-picker"],[1,"bv2-rel-issue-narrow-to-component"],[1,"bv2-rel-issue-issue-picker",
3,"keydown.enter","entrySelect","queryChange","defaultChoices","currentResource","allowMultipleIds"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","cancel",3,"click"],["type","button","mat-flat-button","","color","primary",1,"medium","confirm",3,"click","disabled"],["target","_blank",1,"bv2-rel-issue-id-link",3,"href"],["target","_blank",1,"keep-underline","bv2-rel-issue-title-link",3,"href"],[1,"bv2-rel-issue-title-link-txt"],["svgIcon","pop-out",1,"icon-xs"],["role","checkbox",
"tabindex","0","aria-label","Include subcomponents",1,"bv2-narrow-search-comp-btn","keep-focus-ring",3,"click","keyup.space","matTooltip"]],template:function(a,b){a&1&&(J(0,"h2",0),R(1),K(),J(2,"div",1)(3,"div",2),F(4,A0a,3,0,"div",3),F(5,B0a,6,3,"div",3),K(),J(6,"div",4)(7,"div",5),F(8,D0a,2,2,"div",6),J(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)}),K()()()(),J(10,
"div",8)(11,"button",9),N("click",function(){return b.onPressCancel()}),R(12," Cancel "),K(),J(13,"button",10),N("click",function(){return b.onPressConfirm()}),R(14," Confirm "),K()());a&2&&(x(),T(" ",b.data.title,"\n"),x(3),G(b.selectedIssues.length>1?4:-1),x(),G(b.selectedIssues.length===1?5:-1),x(3),G(b.queryRestriction?8:-1),x(),uh("bv2-rel-issue-issue-picker-full-width",!!b.queryRestriction),I("defaultChoices",b.data.defaultChoices)("currentResource",b.data.currentResource)("allowMultipleIds",
b.data.allowMultipleIds),x(4),I("disabled",!b.selectedIssues.length))},dependencies:[FC,oG,Jx,UJ,WJ,VJ,zG,xG,$Q],encapsulation:2});var bR=function(){};bR.\u0275fac=function(a){return new (a||bR)};bR.\u0275mod=uf({type:bR});bR.\u0275inj=Dd({imports:[nL,HC,Ay,tJ,CQ,jM,BG,wK,CG,AN]});var nUc=new le("XapHatsSurveyApiKey"),oUc=new le("XapHatsSurveyLocale"),pUc=new le("XapHatsSurveyWindow"),qUc=new le("XapHatsSurveyListnrProductId");var rUc=new Map([[0,1],[1,2]]),sUc={anchor:1,verticalMargin:0,horizontalMargin:0},cR=function(a,b,c,d,e){var f=function(){var h={apiKey:a,locale:c!=null?c:"en-US",window:d};h=gnc(lnc,"help.service.Lazy.create",b,{apiKey:h.apiKey||h.apiKey,asxUiUri:h.asxUiUri||h.asxUiUri,environment:h.environment||h.environment,flow:h.flow||h.flow,frdProductData:h.frdProductData||h.frdProductData,frdProductDataSerializedJspb:h.frdProductDataSerializedJspb||h.frdProductDataSerializedJspb,helpCenterPath:h.helpCenterPath||
h.helpCenterPath,locale:h.locale||h.locale||"en-US".replace(/-/g,"_"),nonce:h.nonce||h.nonce,productData:h.productData||h.productData,receiverUri:h.receiverUri||h.receiverUri,renderApiUri:h.renderApiUri||h.renderApiUri,theme:h.theme||h.theme,window:h.window||h.window});return new knc(h)};this.helpService=e?e.runOutsideAngular(f):f()},tUc=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 Cf(function(f){a.helpService.requestSurvey({triggerId:b,
enableTestingMode:d.enableTestingMode,enableFeedback1pEndpoint:d.enableFeedback1pEndpoint,nonProd:d.nonProd,thirdPartyDomainSupportEnabled:d.thirdPartyDomainSupportEnabled,callback:function(h){h.surveyData!=null&&f.next(h.surveyData);f.complete()},authuser:e})})).pipe(xg(function(f){return new Cf(function(h){var k;a.helpService.presentSurvey({surveyData:f,colorScheme:d.theme?rUc.get(d.theme):1,authuser:e,customZIndex:(k=d.zIndex)!=null?k:1E4,customLogoUrl:d.customLogoUrl,productData:c,listener:{surveyClosed:function(){h.complete()},
surveyPositioning:function(){return Object.assign({},sUc,d.placement)}}});h.next(f.surveyMetadata)})}))};cR.\u0275fac=function(a){return new (a||cR)(be(nUc),be(qUc),be(oUc,8),be(pUc,8),be(Ph,8))};cR.\u0275prov=Cd({token:cR,factory:cR.\u0275fac,providedIn:"root"});var dR=function(){this.dialog=r(RJ);this.analytics=r(RE);this.hatsService=r(cR);this.activeSession=r(Bs)};
dR.prototype.open=function(a,b){var c=this,d=uUc(a),e=d.dialog,f=d.config;return new Promise(function(h){LJ(c.dialog.open(e,f)).subscribe(function(k){var q,v=(q=k==null?void 0:k.selectedIssueIds)!=null?q:[],A;k=(A=k==null?void 0:k.lastSearchType)!=null?A:"";A=[a.originIsBulk?"bulk":void 0,v.length>1?"search-multi":"search",a.edgeType].filter(Boolean).join("-");c.analytics.trackEvent("issuePicker",A,k);b==null||b(v);h(v);c.activeSession.isInternalSession()&&k==="id"&&tUc(c.hatsService,"etC5mMepi0g6pPHSLo10TaNs15gn").pipe(mg(1)).subscribe()})})};
var uUc=function(a){var b={panelClass:"no-jitter",data:a};return a.edgeType==="canonical"?(b.width="60vw",b.minWidth="800px",{dialog:YP,config:b}):{dialog:aR,config:b}};dR.\u0275fac=function(a){return new (a||dR)};dR.\u0275prov=Cd({token:dR,factory:dR.\u0275fac,providedIn:"root"});var eR=function(){};eR.\u0275fac=function(a){return new (a||eR)};eR.\u0275mod=uf({type:eR});eR.\u0275inj=Dd({imports:[bR,YQ]});var fR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(fR,n);fR.prototype.getContentJudgement=function(){return W(this,Wl,1)};fR.prototype.setContentJudgement=function(a){return X(this,Wl,1,a)};var gR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gR,n);gR.prototype.getContentJudgement=function(){return W(this,Wl,1)};gR.prototype.setContentJudgement=function(a){return X(this,Wl,1,a)};var hR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,hR.messageId)};Y(hR,n);hR.prototype.getIt=function(){return W(this,fR,4,Nc)};hR.prototype.setIt=function(a){return X(this,fR,4,a,Nc)};hR.messageId="b.CreateContentJudgementRequest";var vUc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(vUc,n);var iR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,iR.messageId)};Y(iR,n);iR.prototype.getIt=function(){return W(this,vUc,2,Nc)};iR.prototype.setIt=function(a){return X(this,vUc,2,a,Nc)};iR.messageId="b.ListContentJudgementsResponse";var jR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,jR.messageId)};Y(jR,n);jR.prototype.getIt=function(){return W(this,gR,2,Nc)};jR.prototype.setIt=function(a){return X(this,gR,2,a,Nc)};jR.messageId="b.UpdateContentJudgementRequest";var kR=function(){this.executor=r(PA)};kR.prototype.create=function(a,b,c){var d=new hR,e=d.setIt,f=new fR,h=f.setContentJudgement;a=sFa(zxa({resourcePath:a,severity:b,judgementReason:c,contentJudgementId:void 0}));a=Jj(a,6,2);d=e.call(d,h.call(f,a));return this.executor.post({url:"action/content_judgements",body:d,responseConstructor:qq}).pipe(C(Mza))};
kR.prototype.update=function(a){var b=sFa(zxa(a));b=Bu(b,9);b=(new jR).setIt((new gR).setContentJudgement(b));return this.executor.post({url:"action/content_judgements/"+a.contentJudgementId,body:b,responseConstructor:qq}).pipe(C(Mza))};kR.prototype.list=function(a){return this.executor.get({url:"action/content_judgements",options:{params:{resource_path:a}},responseConstructor:iR}).pipe(C(function(b){b=b.getIt();return Sj(b,Wl,1,Bj()).map(Axa)}))};kR.\u0275fac=function(a){return new (a||kR)};
kR.\u0275prov=Cd({token:kR,factory:kR.\u0275fac,providedIn:"root"});var mR=function(){var a=this;this.dialogRef=r(KJ);this.documentationLinks=r(JJ);this.contentJudgements=r(kR);this.activeSession=r(Bs);this.data=r(QJ);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.RestrictionSeverity=Znc;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,zj(d.judge)===a.activeSession.getUserEmail()?wUc(a,d):lR(d.severity,c)&&(c=d.severity);a.minimumSeverity=c;lR(a.minimumSeverity,a.severity)&&(a.severity=a.minimumSeverity);a.loaded=!0}):(wUc(this,this.data.contentJudgement),this.loaded=!0)};mR.prototype.canInteract=function(){return this.loaded&&(this.data.hasAclToCreate||!!this.judgement)};
var lR=function(a,b){return E0a(a)>E0a(b)},wUc=function(a,b){if(a.judgement=b)a.severity=b.severity},xUc=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.";
lR(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};mR.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};
mR.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()})};mR.prototype.onNoClick=function(){this.dialogRef.close(null)};mR.\u0275fac=function(a){return new (a||mR)};
mR.\u0275cmp=y({type:mR,selectors:[["b-content-judgement-dialog"]],standalone:!1,decls:28,vars:11,consts:[["mat-dialog-title",""],["svgIcon","restricted",1,"icon-m"],["mat-dialog-content",""],["id","restriction-radio-group-label"],["target","_blank","aria-label","Learn more about restricted access",1,"keep-focus-ring",3,"rel"],["aria-labelledby","restriction-radio-group-label",3,"ngModelChange","ngModel"],[1,"restriction-radio","restriction-none",3,"value","disabled"],[1,"restriction-radio","restriction-pii",
3,"value","disabled"],[1,"restriction-radio","restriction-spii",3,"value","disabled"],["type","button","mat-button","",1,"medium","content-judgement-dialog-cancel",3,"click"],["type","button","mat-flat-button","","color","primary","cdkFocusInitial","",1,"medium","content-judgement-dialog-confirm",3,"click","disabled"]],template:function(a,b){a&1&&(J(0,"header",0)(1,"h1"),M(2,"mat-icon",1),J(3,"div"),R(4," Set restriction "),K()()(),J(5,"section",2)(6,"label",3),R(7),J(8,"a",4),R(9," Learn More "),
K()(),J(10,"mat-radio-group",5),Ah("ngModelChange",function(c){zh(b.severity,c)||(b.severity=c);return c}),J(11,"mat-radio-button",6),R(12," No restriction "),J(13,"div"),R(14,' Users with "View issues" can access. '),K()(),J(15,"mat-radio-button",7),R(16," Restricted "),J(17,"div"),R(18,' Users with "View restricted content" can access. '),K()(),J(19,"mat-radio-button",8),R(20," Restricted+ "),J(21,"div"),R(22,' Users with "View restricted+ content" can access. '),K()()()(),J(23,"mat-dialog-actions")(24,
"button",9),N("click",function(){return b.onNoClick()}),R(25," Cancel "),K(),J(26,"button",10),N("click",function(){return b.onSaveClick()}),R(27," Set "),K()());a&2&&(x(7),T(" ",xUc(b)," "),x(),I("rel",b.EXTERNAL_LINK_REL),Lg("href",b.documentationLinks.getRestrictedAccessHelpLink(),hf),x(2),yh("ngModel",b.severity),x(),I("value",b.RestrictionSeverity.NONE_DETECTED)("disabled",!b.canInteract()||lR(b.minimumSeverity,b.RestrictionSeverity.NONE_DETECTED)),x(4),I("value",b.RestrictionSeverity.RESTRICTED)("disabled",
!b.canInteract()||lR(b.minimumSeverity,b.RestrictionSeverity.RESTRICTED)),x(4),I("value",b.RestrictionSeverity.RESTRICTED_PLUS)("disabled",!b.canInteract()||lR(b.minimumSeverity,b.RestrictionSeverity.RESTRICTED_PLUS)),x(7),I("disabled",!b.canInteract()))},dependencies:[FC,oG,Jx,UJ,WJ,VJ,jN,kN,dy,ky],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 nR=function(){this.dialogRef=r(KJ);this.documentationLinks=r(JJ);this.data=r(QJ);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.resource=this.data.resource;this.piiRetention=this.data.piiRetention;this.acknowledgeToMatchIssueRetention=!1};nR.prototype.canInteract=function(){return!yUc(this)||this.acknowledgeToMatchIssueRetention};var yUc=function(a){return a.piiRetention==="INDEFINITE"};nR.prototype.onSaveClick=function(){this.dialogRef.close(1)};nR.prototype.onNoClick=function(){this.dialogRef.close(0)};
nR.\u0275fac=function(a){return new (a||nR)};
nR.\u0275cmp=y({type:nR,selectors:[["b-update-retention-dialog"]],standalone:!1,decls:19,vars:6,consts:[["mat-dialog-title",""],["svgIcon","restricted",1,"icon-m"],["mat-dialog-content",""],["target","_blank","aria-label","Learn more about component retention",3,"rel"],[3,"ngModel"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","update-retention-dialog-cancel",3,"click"],["type","button","mat-button","","color","primary","cdkFocusInitial","",1,"dialog-primary-action","medium",
"update-retention-dialog-confirm",3,"click","disabled"],[3,"ngModelChange","ngModel"]],template:function(a,b){a&1&&(J(0,"h1",0),M(1,"mat-icon",1),J(2,"div"),F(3,F0a,2,1,"span")(4,G0a,2,0,"span"),K()(),J(5,"div",2),F(6,H0a,8,1,"span")(7,I0a,3,2,"span"),J(8,"span")(9,"a",3),R(10," Learn More "),K()(),J(11,"div")(12,"span"),F(13,J0a,2,1,"mat-checkbox",4),K()()(),J(14,"div",5)(15,"button",6),N("click",function(){return b.onNoClick()}),R(16," Cancel "),K(),J(17,"button",7),N("click",function(){return b.onSaveClick()}),
R(18," Save "),K()());a&2&&(x(3),G(yUc(b)?3:4),x(3),G(yUc(b)?6:7),x(3),I("rel",b.EXTERNAL_LINK_REL),Lg("href",ys(),hf),x(4),G(yUc(b)?13:-1),x(4),I("disabled",!b.canInteract()))},dependencies:[FC,oG,Jx,UJ,WJ,VJ,gM,hM,dy,ky],styles:["h1[_ngcontent-%COMP%]{text-align:center}.mat-mdc-dialog-content[_ngcontent-%COMP%]{overflow:inherit}/*# sourceMappingURL=update_retention_dialog.css.map */"]});var oR=function(){this.activeSession=r(Bs);this.errorHandler=r(aK);this.eventsForIssueFridge=r(TD);this.issueFullFridge=r(TE);this.issueCommentsService=r(sK);this.issueInteractionsTracking=r(KK);this.butterBar=r(GJ);this.editIssueService=r(RK);this.formattedCommentsForIssueFridge=r(XD);this.userPreferencesManager=r(iG);this.enableLiteralModeRevisions=OA(this.activeSession,"enableLiteralModeRevisions")},zUc=function(a,b){var c=b.issueId;var d=b.newCommentId;var e=b.newComment;var f=b.newCommentFormattingMode;
var h=b.recaptchaToken;var k,q;z(function(v){switch(v.nextAddress){case 1:k=a.editIssueService.savingState(c);if(!e.trim())return a.butterBar.showWarning("New comment cannot be empty."),v.return();Lq(k,"commentEdit");Kq(a.butterBar,"Saving comment edit...",0);Mq(a.issueInteractionsTracking,c,{label:d===1?"description":"comment"});Gf(v,2,3);return B(v,a.issueCommentsService.update(c,d,e,f,h),5);case 5:Kq(a.butterBar,"Comment edit successful.",4E3);a.eventsForIssueFridge.manualUpdate(c,function(A){A.events=
Vva(A.events,d,{formattedComment:void 0,unlinkifiedComment:e,formattingMode:f})});a.issueFullFridge.poke(c);a.formattedCommentsForIssueFridge.invalidate(c+"-"+d);a.eventsForIssueFridge.poke(c);if(!a.enableLiteralModeRevisions){v.jumpTo(3);break}return B(v,yzc(a.userPreferencesManager,f),3);case 3:Hf(v);QK(k,"commentEdit");Jf(v,0);break;case 2:q=Kf(v),cK(a.errorHandler,q),v.jumpTo(3)}})};oR.\u0275fac=function(a){return new (a||oR)};oR.\u0275prov=Cd({token:oR,factory:oR.\u0275fac,providedIn:"root"});var AUc=function(a,b,c){this.objectId=a;this.version=b;this.payload=c},BUc=function(){},CUc=function(a){this.timestampMicros=a};var pR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(pR,n);pR.prototype.getCode=function(){return Ej(this,1)};pR.prototype.setCode=function(a){return Zj(this,1,a)};pR.prototype.getMessage=function(){return Rc(this,2)};pR.prototype.setMessage=function(a){return Hj(this,2,a)};var DUc=Tc(pR);K0a.prototype.reset=function(){this.currentMaxDelayMs_=this.initialMaxDelayMs_;this.inRetryMode_=!1};var EUc=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 qR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qR,n);var GUc=function(){var a=new qR;return fm(a,1,FUc,vb(!0))},HUc=function(){var a=new qR;return fm(a,2,FUc,vb(!0))},FUc=[1,2,3,15];var Y0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Y0a,n);var X0a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(X0a,n);var Zq=[1,2,3,4,5,6,7,8,9,10,11,12,13];var Yq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Yq,n);Yq.prototype.getPartsList=function(){return Sj(this,X0a,1,Bj())};Yq.prototype.addParts=function(a){return Po(this,1,X0a,a)};var Xq=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Xq,n);Xq.prototype.getName=function(){return Zt(this,1,IUc)};Xq.prototype.setName=function(a){return Rl(this,1,IUc,a)};Xq.prototype.hasName=function(){return Vo(this,1,IUc)!=null};Xq.prototype.getNameOrUndefined=function(){return Vo(this,1,IUc)};var IUc=[1,2];var JUc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(JUc,n);g=JUc.prototype;g.setProject=function(a){X(this,Xq,1,a)};g.getOwner=function(){return W(this,qR,2)};g.setOwner=function(a){return X(this,qR,2,a)};g.getPath=function(){return W(this,Yq,3)};g.setPath=function(a){return X(this,Yq,3,a)};g.hasPath=function(){return tk(this,Yq,3)};var KUc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(KUc,n);g=KUc.prototype;g.setProject=function(a){X(this,Xq,1,a)};g.getOwner=function(){return W(this,qR,2)};g.setOwner=function(a){return X(this,qR,2,a)};g.getPrefix=function(){return W(this,Yq,3)};g.setPrefix=function(a){X(this,Yq,3,a)};var rR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(rR,n);rR.prototype.getVersion=function(){return Mu(this,1)};rR.prototype.setVersion=function(a){return Ok(this,1,a)};rR.prototype.getVersionOrUndefined=function(){return Gu(this,1)};var LUc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(LUc,n);g=LUc.prototype;g.getHeader=function(){return W(this,rR,4)};g.getStartTimeMicros_asString=function(){return sk(this,1)};g.setStartTimeMicros=function(a){return Uk(this,1,a)};g.getPrefix=function(){return im(this,KUc,6,MUc)};g.setPrefix=function(a){nm(this,6,MUc,a)};var MUc=[2,3,6];var NUc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(NUc,n);var sR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(sR,n);sR.prototype.setAffinitization=function(a){Rk(this,2,a)};sR.prototype.getAffinitizationOrUndefined=function(){return Nm(this,2)};sR.prototype.getStartTimeMicros_asString=function(){return Bk(this,4)};sR.prototype.setStartTimeMicros=function(a){return Ek(this,4,a)};var OUc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(OUc,n);var PUc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(PUc,n);g=PUc.prototype;g.setStreamId=function(a){return Uk(this,1,a)};g.getStreamIdOrUndefined_asString=function(){return Eu(this,1)};g.getOpen=function(){return im(this,LUc,2,QUc)};g.setOpen=function(a){return nm(this,2,QUc,a)};g.getClose=function(){return im(this,OUc,3,QUc)};g.setClose=function(a){nm(this,3,QUc,a)};g.hasClose=function(){return vm(this,OUc,3,QUc)};g.setAffinitization=function(a){Rk(this,4,a)};
g.getAffinitizationOrUndefined=function(){return Nm(this,4)};var QUc=[2,3];var RUc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(RUc,n);RUc.prototype.setRequestsList=function(a){return Bm(this,1,a)};RUc.prototype.addAndReturnRequests=function(){return Fc(this,1,PUc)};var SUc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(SUc,n);SUc.prototype.getChannelId=function(){return Rc(this,1)};SUc.prototype.setChannelId=function(a){return Qk(this,1,a)};var TUc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(TUc,n);var tR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(tR,n);tR.prototype.getCode=function(){return pk(this,1)};tR.prototype.setCode=function(a){return Rk(this,1,a)};tR.prototype.getCodeOrUndefined=function(){return Nm(this,1)};var UUc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(UUc,n);var VUc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(VUc,n);g=VUc.prototype;g.getPayloadOrUndefined=function(){return rk(this,2,void 0,void 0,sc)};g.getVersion=function(){return Nu(this,3)};g.setVersion=function(a){return Uk(this,3,a)};g.getVersionOrUndefined=function(){return Pb(rk(this,3))};g.getVersionOrUndefined_asString=function(){return Eu(this,3)};var WUc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(WUc,n);var XUc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(XUc,n);var YUc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(YUc,n);YUc.prototype.getStart=function(){return im(this,XUc,1,uR)};YUc.prototype.setStart=function(a){return nm(this,1,uR,a)};YUc.prototype.hasChanges=function(){return vm(this,WUc,2,uR)};var uR=[1,2,3,5];var ZUc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ZUc,n);ZUc.prototype.getChannelId=function(){return Rc(this,1)};ZUc.prototype.setChannelId=function(a){return Qk(this,1,a)};var vR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(vR,n);vR.prototype.getStatus=function(){return W(this,mnc,1)};vR.prototype.setStatus=function(a){return X(this,mnc,1,a)};vR.prototype.hasStatus=function(){return tk(this,mnc,1)};var $Uc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($Uc,n);g=$Uc.prototype;g.setStreamId=function(a){return Uk(this,1,a)};g.getStreamIdOrUndefined_asString=function(){return Eu(this,1)};g.getClose=function(){return im(this,vR,3,aVc)};g.setClose=function(a){nm(this,3,aVc,a)};g.hasClose=function(){return vm(this,vR,3,aVc)};var aVc=[2,3,4];var wR=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(wR,n);wR.prototype.getResponsesList=function(){return Sj(this,$Uc,1,Bj())};wR.prototype.getStatus=function(){return W(this,tR,2)};wR.prototype.setStatus=function(a){return X(this,tR,2,a)};wR.prototype.hasStatus=function(){return tk(this,tR,2)};var bVc=function(){yE.call(this,"l")};zu(bVc,yE);var cVc=function(){yE.call(this,"k")};zu(cVc,yE);var dVc=function(a,b,c){this.path=a;this.authMethod=b;this.useFetchApi=c},eVc=function(a,b,c,d,e){this.channelMessageHandler=a;this.channelStatusHandler=b;this.config=c;this.channelCreator=d;this.state=0;this.channelHandler=new Fs;this.channel=this.createWebChannel(e)};
eVc.prototype.createWebChannel=function(a){var b=this;a={sendRawJson:!0,messageContentType:"application/json+protobuf",httpSessionIdParam:void 0,messageUrlParams:Object.assign({},{gsessionid:a},this.config.authMethod.getQueryParameters()),useFetchStreams:this.config.useFetchApi,messageHeaders:this.config.authMethod.getHeaders(),supportsCrossDomainXhr:this.config.authMethod.usesCredentialedRequests()};a=this.channelCreator(this.config.path,a);this.channelHandler.listen(a,"i",function(){b.channelStatusHandler.onOpen()});
this.channelHandler.listen(a,"j",function(){b.channelStatusHandler.onClose((new fVc(b.channel.channel_)).getLastStatusCode());b.state=2;b.channel.removeAllListeners();b.channelHandler.removeAll()});this.channelHandler.listen(a,"l",function(c){(c=c.data)&&c.length===1&&b.channelMessageHandler(new wR(c[0]))});this.channelHandler.listen(a,"k",function(c){b.channelStatusHandler.onError(c,(new fVc(b.channel.channel_)).getLastStatusCode());c.status!==0&&(b.state=2)});return a};
eVc.prototype.open=function(){this.state===0&&(this.state=1,this.channel.open())};eVc.prototype.close=function(){this.state!==2&&this.channel.close()};eVc.prototype.send=function(a){a=a.serialize();this.channel.send(a)};var gVc,hVc=(new rR).setVersion(9);gVc=Rk(hVc,2,5);var Tq=function(a){this.rep=a};Tq.prototype.equals=function(a){return this.rep===a.rep};var iVc=function(){var a=8;a=a===void 0?1:a;this.max=8;this.lastAddedTimestampMs=Date.now();this.tokens=a};iVc.prototype.update=function(){var a=Date.now();a=Math.floor((a-this.lastAddedTimestampMs)/3E5);this.tokens=Math.min(this.tokens+a,this.max);this.lastAddedTimestampMs+=a*3E5};var Z0a=function(a,b){this.seconds=a;this.nanos=b},$0a=function(a){var b=new bk;b.setSeconds(a.seconds);b.setNanos(a.nanos);return b},e1a=function(a){try{var b=Number(a.getSeconds()),c=a.getNanos();if(b<-62135596800)throw Error("Pd`"+b);if(253402300800<=b)throw Error("Qd`"+b);if(c<0)throw Error("Rd`"+c);if(1E9<=c)throw Error("Sd`"+c);if(!Number.isInteger(b))throw Error("Td`"+b);if(!Number.isInteger(c))throw Error("Ud`"+c);return new Z0a(b,c)}catch(d){return null}};
Z0a.prototype.equals=function(a){return this.seconds===a.seconds&&this.nanos===a.nanos};var Sq=function(a,b){this.value=a;this.isDecreasing=!!b};
Sq.prototype.equals=function(a){if(this.value===null)var b=a.value===null;else if(this.value instanceof Tq)b=a.value instanceof Tq?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 $q)b=a.value instanceof $q?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 Z0a?a.value instanceof Z0a?this.value.equals(a.value):!1:!1;return b};var ar=function(a,b){this.parts=a;this.isPrivate=b},b1a=function(){for(var a=[],b=l(ge.apply(0,arguments)),c=b.next();!c.done;c=b.next())c=c.value,c instanceof Sq?a.push(c):a.push(new Sq(c));return new ar(a,!1)};
ar.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 jVc=function(){},R0a=function(a,b){this.apiKey=a;this.authUser=b};g=R0a.prototype;g.getHeaders=function(){var a={},b;(b=ALa([]))?(b=b.split(" "),b={scheme:b[0],hash:b[1]}):b=null;b!=null&&(a.Authorization=b.scheme+" "+b.hash,a["X-Goog-AuthUser"]=String(this.authUser||0));return a};g.getQueryParameters=function(){return{key:this.apiKey}};g.domainType=function(){return 0};g.usesCredentialedRequests=function(){return!0};g.getAuthUser=function(){return this.authUser};
var P0a=function(a){this.oauthTokens=a};g=P0a.prototype;g.getHeaders=function(){var a={};a.Authorization="OAuth "+this.oauthTokens.getValue();return a};g.getQueryParameters=function(){return{}};g.domainType=function(){return 1};g.usesCredentialedRequests=function(){return!0};g.getAuthUser=function(){};var Q0a=function(a,b){this.apiKey=a;this.appAuthTokens=b};g=Q0a.prototype;g.getHeaders=function(){return{}};g.getQueryParameters=function(){return{key:this.apiKey}};g.domainType=function(){return 1};
g.usesCredentialedRequests=function(){return!1};g.getAuthUser=function(){};var kVc=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 lVc,mVc=function(){};zu(mVc,L0a);mVc.prototype.createInstance=function(){return new XMLHttpRequest};lVc=new mVc;var Uq=function(a){Cp.call(this);this.headers=new Map;this.xmlHttpFactory_=a||null;this.active_=!1;this.xhr_=null;this.lastUri_="";this.lastErrorCode_=0;this.lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.timeoutId_=null;this.responseType_="";this.withCredentials_=!1;this.attributionReportingOptions_=this.trustToken_=null};zu(Uq,Cp);
var nVc=/^https?$/i,oVc=["POST","PUT"],pVc=[],o4a=function(a,b,c,d,e,f,h){var k=new Uq;pVc.push(k);b&&k.listen("complete",b);k.listenOnce("ready",k.cleanupSend_);f&&(k.timeoutInterval_=Math.max(0,f));h&&(k.withCredentials_=h);k.send(a,c,d,e);return k};g=Uq.prototype;g.cleanupSend_=function(){this.dispose();Fa(pVc,this)};g.setTrustToken=function(a){this.trustToken_=a};g.setAttributionReporting=function(a){this.attributionReportingOptions_=a};
g.send=function(a,b,c,d){if(this.xhr_)throw Error("Wd`"+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=sz(bt(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.xhr_.open(b,String(a),!0),this.inOpen_=!1}catch(h){this.error_(5,h);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===Object.prototype)for(var e in d)c.set(e,
d[e]);else if(typeof d.keys==="function"&&typeof d.get==="function"){e=l(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Xd`"+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()});e=ea.FormData&&a instanceof ea.FormData;!(Da(oVc,b)>=0)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=l(c);for(d=b.next();!d.done;d=b.next())c=l(d.value),d=c.next().value,c=c.next().value,this.xhr_.setRequestHeader(d,
c);this.responseType_&&(this.xhr_.responseType=this.responseType_);"withCredentials"in this.xhr_&&this.xhr_.withCredentials!==this.withCredentials_&&(this.xhr_.withCredentials=this.withCredentials_);if("setTrustToken"in this.xhr_&&this.trustToken_)try{this.xhr_.setTrustToken(this.trustToken_)}catch(h){}if("setAttributionReporting"in this.xhr_&&this.attributionReportingOptions_)try{this.xhr_.setAttributionReporting(this.attributionReportingOptions_)}catch(h){}try{this.timeoutId_&&(clearTimeout(this.timeoutId_),
this.timeoutId_=null),this.timeoutInterval_>0&&(this.timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.xhr_.send(a),this.inSend_=!1}catch(h){this.error_(5,h)}};g.createXhr=function(){return this.xmlHttpFactory_?this.xmlHttpFactory_.createInstance():lVc.createInstance()};g.timeout_=function(){typeof ddc!="undefined"&&this.xhr_&&(this.lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
g.error_=function(a,b){this.active_=!1;this.xhr_&&(this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1);this.lastError_=b;this.lastErrorCode_=a;qVc(this);rVc(this)};var qVc=function(a){a.errorDispatched_||(a.errorDispatched_=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};Uq.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"),rVc(this))};
Uq.prototype.disposeInternal=function(){this.xhr_&&(this.active_&&(this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1),rVc(this,!0));Uq.superClass_.disposeInternal.call(this)};Uq.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)sVc(this);else this.onReadyStateChangeEntryPoint_()};Uq.prototype.onReadyStateChangeEntryPoint_=function(){sVc(this)};
var sVc=function(a){if(a.active_&&typeof ddc!="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()+"]";qVc(a)}}finally{rVc(a)}}},rVc=function(a,b){if(a.xhr_){a.timeoutId_&&(clearTimeout(a.timeoutId_),
a.timeoutId_=null);var c=a.xhr_;a.xhr_=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=null}catch(d){}}};g=Uq.prototype;g.isActive=function(){return!!this.xhr_};g.isComplete=function(){return this.getReadyState()==4};
g.isSuccess=function(){var a=this.getStatus();a:switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var b=!0;break a;default:b=!1}if(!b){if(a=a===0)a=String(this.lastUri_).match(PAc)[1]||null,!a&&ea.self&&ea.self.location&&(a=ea.self.location.protocol.slice(0,-1)),a=!nVc.test(a?a.toLowerCase():"");b=a}return b};g.getReadyState=function(){return this.xhr_?this.xhr_.readyState:0};g.getStatus=function(){try{return this.getReadyState()>2?this.xhr_.status:-1}catch(a){return-1}};
g.getLastUri=function(){return String(this.lastUri_)};g.getResponseText=function(){try{return this.xhr_?this.xhr_.responseText:""}catch(a){return""}};g.getResponseJson=function(a){if(this.xhr_){var b=this.xhr_.responseText;a&&b.indexOf(a)==0&&(b=b.substring(a.length));a:{a=b;if(ea.JSON)try{var c=ea.JSON.parse(a);break a}catch(d){}c=cDc(a)}return c}};
g.getResponse=function(){try{if(!this.xhr_)return null;if("response"in this.xhr_)return this.xhr_.response;switch(this.responseType_){case "":case "text":return this.xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.xhr_)return this.xhr_.mozResponseArrayBuffer}return null}catch(a){return null}};g.getResponseHeader=function(a){if(this.xhr_&&this.isComplete())return a=this.xhr_.getResponseHeader(a),a===null?void 0:a};
g.getAllResponseHeaders=function(){return this.xhr_&&this.getReadyState()>=2?this.xhr_.getAllResponseHeaders()||"":""};g.getResponseHeaders=function(){for(var a={},b=this.getAllResponseHeaders().split("\r\n"),c=0;c<b.length;c++)if(!ja(b[c])){var d=Ifc(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 Fra(a,function(h){return h.join(", ")})};var Gwb=function(a,b){return a.xhr_?a.xhr_.getResponseHeader(b):null};Uq.prototype.getLastErrorCode=function(){return this.lastErrorCode_};
Uq.prototype.getLastError=function(){return typeof this.lastError_==="string"?this.lastError_:String(this.lastError_)};umc(function(a){Uq.prototype.onReadyStateChangeEntryPoint_=a(Uq.prototype.onReadyStateChangeEntryPoint_)});var tVc=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,tVc.prototype);this.name="XhrError"};Y(tVc,Error);var uVc=function(a,b){b=b===void 0?U0a():b;this.baseUri=a;this.xhrIo=b};uVc.prototype.post=function(a,b,c,d){d=d===void 0?{}:d;return this.request("POST",a,b,c,d)};
var vVc=function(a,b){a.endsWith("/")&&(a=a.substring(0,a.length-1));b.startsWith("/")&&(b=b.substring(1));return a+"/"+b};
uVc.prototype.request=function(a,b,c,d,e){var f=this,h=new Mp(this.baseUri);h.setPath(vVc(h.getPath(),b));if(e.queryParams){b=l(Object.entries(e.queryParams));for(var k=b.next();!k.done;k=b.next()){var q=l(k.value);k=q.next().value;q=q.next().value;Ir(h,k,q)}}var v={"Content-type":"application/json+protobuf"};Object.assign(v,e.extraHeaders);var A=c.serialize();return new Promise(function(E,H){var L;f.xhrIo.send(h,function(){var O=this.getStatus()===-1?void 0:this.getStatus();if(this.isSuccess())try{E(Lda(d,
this.getResponseText()))}catch(S){H(new tVc(4,"Failed to deserialize response from "+h+": "+this.getResponseText(),O))}else H(new tVc(this.getLastErrorCode(),this.getLastError(),O))},a,A,v,(L=e.timeoutMs)!=null?L:2E4,e.withCredentials)})};var wVc=function(a,b,c){jE.call(this);this.listener_=c!=null?a.bind(c):a;this.interval_=b;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.timer_=null};Y(wVc,jE);g=wVc.prototype;g.fire=function(a){this.args_=arguments;this.timer_||this.pauseCount_?this.shouldFire_=!0:this.doAction_()};g.stop=function(){this.timer_&&(Wq(this.timer_),this.timer_=null,this.shouldFire_=!1,this.args_=null)};g.pause=function(){this.pauseCount_++};
g.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.timer_||(this.shouldFire_=!1,this.doAction_())};g.disposeInternal=function(){jE.prototype.disposeInternal.call(this);this.stop()};g.onTimer_=function(){this.timer_=null;this.shouldFire_&&!this.pauseCount_&&(this.shouldFire_=!1,this.doAction_())};g.doAction_=function(){var a=this;this.timer_=Vq(function(){return a.onTimer_()},this.interval_);var b=this.args_;this.args_=null;this.listener_.apply(null,b)};var xVc=null,yVc=function(){return xVc=xVc||new Cp},zVc=function(a){yE.call(this,"serverreachability",a)};zu(zVc,yE);var AVc=function(a){var b=yVc();b.dispatchEvent(new zVc(b,a))},BVc=function(a,b){yE.call(this,"statevent",a);this.stat=b};zu(BVc,yE);var xR=function(a){var b=yVc();b.dispatchEvent(new BVc(b,a))},CVc=function(a,b,c){yE.call(this,"timingevent",a);this.size=b;this.rtt=c};zu(CVc,yE);
var DVc=function(a,b,c){var d=yVc();d.dispatchEvent(new CVc(d,a,b,c))},EVc=function(a,b){if(typeof a!=="function")throw Error("Yd");return ea.setTimeout(function(){a()},b)};var yR=function(){this.redactEnabled_=!0};yR.prototype.disableRedact=function(){this.redactEnabled_=!1};
var FVc=function(a,b,c,d,e,f){a.info(function(){if(a.redactEnabled_)if(f){var h="";for(var k=f.split("&"),q=0;q<k.length;q++){var v=k[q].split("=");if(v.length>1){var A=v[0];v=v[1];var E=A.split("_");h=E.length>=2&&E[1]=="type"?h+(A+"="+v+"&"):h+(A+"=redacted&")}}}else h=null;else h=f;return"XMLHTTP REQ ("+d+") [attempt "+e+"]: "+b+"\n"+c+"\n"+h})},GVc=function(a,b,c,d,e,f,h){a.info(function(){return"XMLHTTP RESP ("+d+") [ attempt "+e+"]: "+b+"\n"+c+"\n"+f+" "+h})},zR=function(a,b,c,d){a.info(function(){return"XMLHTTP TEXT ("+
b+"): "+HVc(a,c)+(d?" "+d:"")})},IVc=function(a,b){a.info(function(){return"TIMEOUT: "+b})};yR.prototype.debug=function(){};yR.prototype.info=function(){};yR.prototype.warning=function(){};
var HVc=function(a,b){if(!a.redactEnabled_)return b;if(!b)return null;try{var c=JSON.parse(b);if(c)for(var d=0;d<c.length;d++)if(Array.isArray(c[d])){var e=c[d];if(!(e.length<2)){var f=e[1];if(Array.isArray(f)&&!(f.length<1)){var h=f[0];if(h!="noop"&&h!="stop"&&h!="close")for(var k=1;k<f.length;k++)f[k]=""}}}return(new dDc).serialize(c)}catch(q){return a.debug("Exception parsing expected JS array - probably was not JS"),b}};var AR=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 Fs(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 JVc},JVc=function(){this.textDecoder=null;this.responseBuffer="";this.responseArrivedForFetch=!1},KVc=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"}},LVc={},MVc={};
AR.prototype.setExtraHeaders=function(a){this.extraHeaders_=a};AR.prototype.setTimeout=function(a){this.timeout_=a};AR.prototype.setReadyStateChangeThrottle=function(a){this.readyStateChangeThrottleMs_=a};AR.prototype.getPendingMessages=function(){return this.pendingMessages_};
var OVc=function(a,b,c){a.type_=1;a.baseUri_=eBc(b.clone());a.postData_=c;a.decodeChunks_=!0;NVc(a,null)},NVc=function(a,b){a.requestStartTime_=Date.now();PVc(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 JVc;a.xmlHttp_=QVc(a.channel_,c?b:null,!a.postData_);a.readyStateChangeThrottleMs_>0&&(a.readyStateChangeThrottle_=new wVc(bt(a.xmlHttpHandler_,
a,a.xmlHttp_),a.readyStateChangeThrottleMs_));a.eventHandler_.listen(a.xmlHttp_,"readystatechange",a.readyStateChangeHandler_);b=a.extraHeaders_?ej(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));AVc(1);FVc(a.channelDebug_,a.verb_,a.requestUri_,a.rid_,a.retryId_,a.postData_)};
AR.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)};AR.prototype.xmlHttpHandler_=function(a){try{a==this.xmlHttp_?RVc(this):this.channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(b){this.channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),SVc(this)}finally{}};
var RVc=function(a){var b=a.xmlHttp_.getReadyState(),c=a.xmlHttp_.getLastErrorCode(),d=a.xmlHttp_.getStatus();if(!(b<3||b==3&&!SVc(a))){a.cancelled_||b!=4||c==7||(c==8||d<=0?AVc(3):AVc(2));TVc(a);var e=a.xmlHttp_.getStatus();a.lastStatusCode_=e;c=UVc(a);SVc(a)||a.channelDebug_.debug(function(){return"No response text for uri "+a.requestUri_+" status "+e});a.successful_=e==200;GVc(a.channelDebug_,a.verb_,a.requestUri_,a.rid_,a.retryId_,b,e);if(a.successful_){if(a.decodeInitialResponse_&&!a.initialResponseDecoded_)if(d=
VVc(a))zR(a.channelDebug_,a.rid_,d,"Initial handshake response via X-HTTP-Initial-Response"),a.initialResponseDecoded_=!0,WVc(a,d);else{a.successful_=!1;a.lastError_=3;xR(12);a.channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+a.rid_+")");BR(a);XVc(a);return}a.decodeChunks_?YVc(a,b,c):(zR(a.channelDebug_,a.rid_,c,null),WVc(a,c));b==4&&BR(a);a.successful_&&!a.cancelled_&&(b==4?ZVc(a.channel_,a):(a.successful_=!1,PVc(a)))}else a.xmlHttp_.getResponseHeaders(),e==400&&c.indexOf("Unknown SID")>
0?(a.lastError_=3,xR(12),a.channelDebug_.warning("XMLHTTP Unknown SID ("+a.rid_+")")):(a.lastError_=0,xR(13),a.channelDebug_.warning("XMLHTTP Bad status "+e+" ("+a.rid_+")")),BR(a),XVc(a)}},VVc=function(a){return a.xmlHttp_&&(a=Gwb(a.xmlHttp_,"X-HTTP-Initial-Response"))&&!ja(a)?a:null},UVc=function(a){if(!$Vc(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 BR(a),XVc(a),"";a.fetchResponseState_.textDecoder=new ea.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},SVc=function(a){return a.xmlHttp_?a.fetchResponseState_.responseArrivedForFetch?!0:!(!a.xmlHttp_.getResponseText()&&!a.xmlHttp_.getResponse()):!1},$Vc=function(a){return a.xmlHttp_?
a.verb_=="GET"&&a.type_!=2&&a.channel_.usesFetchStreams_:!1},YVc=function(a,b,c){for(var d=!0,e;!a.cancelled_&&a.xmlHttpChunkStart_<c.length;)if(e=aWc(a,c),e==MVc){b==4&&(a.lastError_=4,xR(14),d=!1);zR(a.channelDebug_,a.rid_,null,"[Incomplete Response]");break}else if(e==LVc){a.lastError_=4;xR(15);zR(a.channelDebug_,a.rid_,c,"[Invalid Chunk]");d=!1;break}else zR(a.channelDebug_,a.rid_,e,null),WVc(a,e);$Vc(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,xR(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),bWc(b),b.bpDetectionDone_=!0,xR(11))):(zR(a.channelDebug_,a.rid_,c,"[Invalid Chunked Response]"),BR(a),XVc(a))},aWc=function(a,
b){var c=a.xmlHttpChunkStart_,d=b.indexOf("\n",c);if(d==-1)return MVc;c=Number(b.substring(c,d));if(isNaN(c))return LVc;d+=1;if(d+c>b.length)return MVc;b=b.slice(d,d+c);a.xmlHttpChunkStart_=d+c;return b};AR.prototype.cancel=function(){this.cancelled_=!0;BR(this)};
var PVc=function(a){a.watchDogTimeoutTime_=Date.now()+a.timeout_;cWc(a,a.timeout_)},cWc=function(a,b){if(a.watchDogTimerId_!=null)throw Error("Zd");a.watchDogTimerId_=EVc(bt(a.onWatchDogTimeout_,a),b)},TVc=function(a){a.watchDogTimerId_&&(ea.clearTimeout(a.watchDogTimerId_),a.watchDogTimerId_=null)};
AR.prototype.onWatchDogTimeout_=function(){this.watchDogTimerId_=null;var a=Date.now();a-this.watchDogTimeoutTime_>=0?(IVc(this.channelDebug_,this.requestUri_),this.type_!=2&&(AVc(3),xR(17)),BR(this),this.lastError_=2,XVc(this)):(this.channelDebug_.warning("WatchDog timer called too early"),cWc(this,this.watchDogTimeoutTime_-a))};
var XVc=function(a){a.channel_.isClosed()||a.cancelled_||ZVc(a.channel_,a)},BR=function(a){TVc(a);Io(a.readyStateChangeThrottle_);a.readyStateChangeThrottle_=null;a.eventHandler_.removeAll();if(a.xmlHttp_){var b=a.xmlHttp_;a.xmlHttp_=null;b.abort();b.dispose()}};AR.prototype.getLastError=function(){return this.lastError_};AR.prototype.getLastStatusCode=function(){return this.lastStatusCode_};AR.prototype.getRequestId=function(){return this.rid_};AR.prototype.getXhr=function(){return this.xmlHttp_};
var WVc=function(a,b){try{var c=a.channel_;if(c.state_!=0&&(c.backChannelRequest_==a||dWc(c.forwardChannelRequestPool_,a)))if(!a.initialResponseDecoded_&&dWc(c.forwardChannelRequestPool_,a)&&c.state_==3){try{var d=c.wireCodec_.parser_.parse(b)}catch(na){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_)eWc(c),fWc(c);else break a;else c.channelDebug_.warning("We do not have a BackChannel established");gWc(c);xR(18)}else{c.lastPostResponseArrayId_=e[1];var f=c.lastPostResponseArrayId_-c.lastArrayId_;if(0<f){var h=e[2];c.channelDebug_.debug(h+" bytes (in "+f+" arrays) are outstanding on the BackChannel");h<37500&&c.enableStreaming_&&c.backChannelRetryCount_==0&&!c.deadBackChannelTimerId_&&(c.deadBackChannelTimerId_=EVc(bt(c.onBackChannelDead_,c),6E3))}}if(hWc(c.forwardChannelRequestPool_)<=
1&&c.forwardChannelFlushedCallback_){try{c.forwardChannelFlushedCallback_()}catch(na){}c.forwardChannelFlushedCallback_=void 0}}else c.channelDebug_.debug("Bad POST response data returned"),CR(c,11)}else if((a.initialResponseDecoded_||c.backChannelRequest_==a)&&eWc(c),!ja(b))for(e=c.wireCodec_.parser_.parse(b),f=0;f<e.length;f++){var k=e[f];c.lastArrayId_=k[0];k=k[1];if(c.state_==2)if(k[0]=="c"){c.sid_=k[1];c.hostPrefix_=c.correctHostPrefix(k[2]);var q=k[3];q!=null&&(c.channelVersion_=q,c.channelDebug_.info("VER="+
c.channelVersion_));var v=k[4];v!=null&&(c.serverVersion_=v,c.channelDebug_.info("SVER="+c.serverVersion_));var A=k[5];A!=null&&typeof A==="number"&&A>0&&(h=1.5*A,c.backChannelRequestTimeoutMs_=h,c.channelDebug_.info("backChannelRequestTimeoutMs_="+h));h=c;var E=a.getXhr();if(E){var H=Gwb(E,"X-Client-Wire-Protocol");if(H){var L=h.forwardChannelRequestPool_;b=H;!L.requestPool_&&(la(b,"spdy")||la(b,"quic")||la(b,"h2"))&&(L.maxSize_=L.maxPoolSizeConfigured_,L.requestPool_=new Set,L.request_&&(L.addRequest(L.request_),
L.request_=null))}if(h.httpSessionIdParam_){var O=Gwb(E,"X-HTTP-Session-Id");O?(h.httpSessionId_=O,Ir(h.forwardChannelUri_,h.httpSessionIdParam_,O)):h.channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response")}}c.state_=3;c.handler_&&c.handler_.channelOpened();c.detectBufferingProxy_&&(c.handshakeRttMs_=Date.now()-a.requestStartTime_,c.channelDebug_.info("Handshake RTT: "+c.handshakeRttMs_+"ms"));h=c;b=a;var S=d=h,aa=iWc(S,S.supportsCrossDomainXhrs_?h.hostPrefix_:null,h.path_);S.channelDebug_.debug("GetBackChannelUri: "+
aa);d.backChannelUri_=aa;if(b.initialResponseDecoded_){h.channelDebug_.debug("Upgrade the handshake request to a backchannel.");jWc(h.forwardChannelRequestPool_,b);d=b;var ka=h.backChannelRequestTimeoutMs_;ka&&d.setTimeout(ka);d.watchDogTimerId_&&(TVc(d),PVc(d));h.backChannelRequest_=b}else kWc(h);c.outgoingMaps_.length>0&&lWc(c)}else k[0]!="stop"&&k[0]!="close"||CR(c,7);else c.state_==3&&(k[0]=="stop"||k[0]=="close"?k[0]=="stop"?CR(c,7):c.disconnect():k[0]!="noop"&&c.handler_&&c.handler_.channelHandleArray(k),
c.backChannelRetryCount_=0)}AVc(4)}catch(na){}};var mWc=function(a,b){this.mapId=a;this.map=b;this.context=null};var nWc=function(a){this.maxPoolSizeConfigured_=a||10;ea.PerformanceNavigationTiming?(a=ea.performance.getEntriesByType("navigation"),a=a.length>0&&(a[0].nextHopProtocol=="hq"||a[0].nextHopProtocol=="h2")):a=!!(ea.chrome&&ea.chrome.loadTimes&&ea.chrome.loadTimes()&&ea.chrome.loadTimes().wasFetchedViaSpdy);this.maxSize_=a?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.maxSize_>1&&(this.requestPool_=new Set);this.request_=null;this.pendingMessages_=[]},oWc=function(a){return a.request_?!0:
a.requestPool_?a.requestPool_.size>=a.maxSize_:!1},hWc=function(a){return a.request_?1:a.requestPool_?a.requestPool_.size:0},dWc=function(a,b){return a.request_?a.request_==b:a.requestPool_?a.requestPool_.has(b):!1};nWc.prototype.addRequest=function(a){this.requestPool_?this.requestPool_.add(a):this.request_=a};var jWc=function(a,b){a.request_&&a.request_==b?a.request_=null:a.requestPool_&&a.requestPool_.has(b)&&a.requestPool_.delete(b)};
nWc.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()}};
nWc.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 Ja(this.pendingMessages_)};var pWc=function(a,b){a.pendingMessages_=a.pendingMessages_.concat(b)};var qWc=function(a,b){var c=new yR;c.debug("TestLoadImage: loading "+a);if(ea.Image){var d=new Image;d.onload=yu(DR,c,"TestLoadImage: loaded",!0,b,d);d.onerror=yu(DR,c,"TestLoadImage: error",!1,b,d);d.onabort=yu(DR,c,"TestLoadImage: abort",!1,b,d);d.ontimeout=yu(DR,c,"TestLoadImage: timeout",!1,b,d);ea.setTimeout(function(){if(d.ontimeout)d.ontimeout()},1E4);d.src=a}else b(!1)},rWc=function(a,b){var c=new yR,d=new AbortController,e=setTimeout(function(){d.abort();DR(c,"TestPingServer: timeout",!1,
b)},1E4);fetch(a,{signal:d.signal}).then(function(f){clearTimeout(e);f.ok?DR(c,"TestPingServer: ok",!0,b):DR(c,"TestPingServer: server error",!1,b)}).catch(function(){clearTimeout(e);DR(c,"TestPingServer: error",!1,b)})},DR=function(a,b,c,d,e){try{a.debug(b),e&&(e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null),d(c)}catch(f){}};var sWc=function(){this.replacer_=void 0};sWc.prototype.stringify=function(a){return ea.JSON.stringify(a,this.replacer_)};sWc.prototype.parse=function(a){return ea.JSON.parse(a,void 0)};var tWc=function(){this.parser_=new sWc};var ER=function(a){this.worker_=a.worker||null;this.streamBinaryChunks_=a.streamBinaryChunks||!1;this.cacheMode_=this.credentialsMode_=void 0};zu(ER,L0a);ER.prototype.createInstance=function(){var a=new FR(this.worker_,this.streamBinaryChunks_);this.credentialsMode_&&a.setCredentialsMode(this.credentialsMode_);this.cacheMode_&&a.setCacheMode(this.cacheMode_);return a};ER.prototype.setCredentialsMode=function(a){this.credentialsMode_=a};ER.prototype.setCacheMode=function(a){this.cacheMode_=a};
var FR=function(a,b){Cp.call(this);this.worker_=a;this.streamBinaryChunks_=b;this.cacheMode_=this.credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.requestHeaders_=new Headers;this.responseHeaders_=null;this.method_="GET";this.url_="";this.inProgress_=!1;this.textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=new AbortController};zu(FR,Cp);
FR.prototype.open=function(a,b){if(this.readyState!=0)throw this.abort(),Error("$d");this.method_=a;this.url_=b;this.readyState=1;uWc(this)};
FR.prototype.send=function(a){if(this.readyState!=1)throw this.abort(),Error("ae");if(this.abortController_.signal.aborted)throw this.abort(),Error("be");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_||ea).fetch(new Request(this.url_,b)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
FR.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort();this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,vWc(this));this.readyState=0};
FR.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,uWc(this)),this.inProgress_&&(this.readyState=3,uWc(this),this.inProgress_)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof ea.ReadableStream!=="undefined"&&
"body"in a){this.currentReader_=a.body.getReader();if(this.streamBinaryChunks_){if(this.responseType)throw Error("ce");this.response=[]}else this.response=this.responseText="",this.textDecoder_=new TextDecoder;wWc(this)}else a.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};var wWc=function(a){a.currentReader_.read().then(a.handleDataFromStream_.bind(a)).catch(a.handleSendFailure_.bind(a))};
FR.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?vWc(this):uWc(this);this.readyState==3&&wWc(this)}};FR.prototype.handleResponseText_=function(a){this.inProgress_&&(this.response=this.responseText=a,vWc(this))};
FR.prototype.handleResponseArrayBuffer_=function(a){this.inProgress_&&(this.response=a,vWc(this))};FR.prototype.handleSendFailure_=function(){this.inProgress_&&vWc(this)};var vWc=function(a){a.readyState=4;a.fetchResponse_=null;a.currentReader_=null;a.textDecoder_=null;uWc(a)};g=FR.prototype;g.setRequestHeader=function(a,b){this.requestHeaders_.append(a,b)};g.getResponseHeader=function(a){return this.responseHeaders_?this.responseHeaders_.get(a.toLowerCase())||"":""};
g.getAllResponseHeaders=function(){if(!this.responseHeaders_)return"";for(var a=[],b=this.responseHeaders_.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};g.setCredentialsMode=function(a){this.credentialsMode_=a};g.setCacheMode=function(a){this.cacheMode_=a};var uWc=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Object.defineProperty(FR.prototype,"withCredentials",{get:function(){return this.credentialsMode_==="include"},set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});var xWc=function(a,b,c){return c&&c.internalChannelParams?c.internalChannelParams[a]||b:b},GR=function(a){this.clientVersion_=22;this.serverVersion_=0;this.outgoingMaps_=[];this.channelDebug_=new yR;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_=xWc("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_=xWc("baseRetryDelayMs",5E3,a);this.retryDelaySeedMs_=xWc("retryDelaySeedMs",1E4,a);this.forwardChannelMaxRetries_=xWc("forwardChannelMaxRetries",2,a);this.forwardChannelRequestTimeoutMs_=
xWc("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 nWc(a&&a.concurrentRequestLimit);this.wireCodec_=new tWc;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};GR.prototype.channelVersion_=8;GR.prototype.state_=1;
GR.prototype.connect=function(a,b,c,d){this.channelDebug_.debug("connect()");xR(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=iWc(this,null,this.path_);this.channelDebug_.debug("GetForwardChannelUri: "+a);this.forwardChannelUri_=a;lWc(this)};
GR.prototype.disconnect=function(){this.channelDebug_.debug("disconnect()");yWc(this);if(this.state_==3){var a=this.nextRid_++,b=this.forwardChannelUri_.clone();Ir(b,"SID",this.sid_);Ir(b,"RID",a);Ir(b,"TYPE","terminate");zWc(this,b);a=new AR(this,this.channelDebug_,this.sid_,a);a.type_=2;a.baseUri_=eBc(b.clone());b=!1;if(ea.navigator&&ea.navigator.sendBeacon)try{b=ea.navigator.sendBeacon(a.baseUri_.toString(),"")}catch(c){}!b&&ea.Image&&((new Image).src=a.baseUri_,b=!0);b||(a.xmlHttp_=QVc(a.channel_,
null),a.xmlHttp_.send(a.baseUri_));a.requestStartTime_=Date.now();PVc(a)}AWc(this)};var fWc=function(a){a.backChannelRequest_&&(bWc(a),a.backChannelRequest_.cancel(),a.backChannelRequest_=null)},yWc=function(a){fWc(a);a.backChannelTimerId_&&(ea.clearTimeout(a.backChannelTimerId_),a.backChannelTimerId_=null);eWc(a);a.forwardChannelRequestPool_.cancel();a.forwardChannelTimerId_&&(typeof a.forwardChannelTimerId_==="number"&&ea.clearTimeout(a.forwardChannelTimerId_),a.forwardChannelTimerId_=null)};
g=GR.prototype;g.setExtraHeaders=function(a){this.extraHeaders_=a};g.getHttpSessionId=function(){return this.httpSessionId_};g.setReadyStateChangeThrottle=function(a){this.readyStateChangeThrottleMs_=a};g.getHandler=function(){return this.handler_};g.isClosed=function(){return this.state_==0};g.getState=function(){return this.state_};g.getLastStatusCode=function(){return this.errorResponseStatusCode_};
var lWc=function(a){oWc(a.forwardChannelRequestPool_)||a.forwardChannelTimerId_||(a.forwardChannelTimerId_=!0,tz(a.onStartForwardChannelTimer_,a),a.forwardChannelRetryCount_=0)},CWc=function(a,b){if(hWc(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_=EVc(bt(a.onStartForwardChannelTimer_,a,b),BWc(a,a.forwardChannelRetryCount_));a.forwardChannelRetryCount_++;return!0};
GR.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 AR(this,this.channelDebug_,"",a),c=this.extraHeaders_;this.initHeaders_&&(c?(c=ej(c),Qra(c,this.initHeaders_)):c=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||
(b.setExtraHeaders(c),c=null);var d;if(this.fastHandshake_)a:{for(var e=d=0;e<this.outgoingMaps_.length;e++){b:{var f=this.outgoingMaps_[e];if("__data__"in f.map&&(f=f.map.__data__,typeof f==="string")){f=f.length;break b}f=void 0}if(f===void 0)break;d+=f;if(d>4096){d=e;break a}if(d===4096||e===this.outgoingMaps_.length-1){d=e+1;break a}}d=1E3}else d=1E3;d=DWc(this,b,d);e=this.forwardChannelUri_.clone();Ir(e,"RID",a);this.clientVersion_>0&&Ir(e,"CVER",this.clientVersion_);this.httpSessionIdParam_&&
Ir(e,"X-HTTP-Session-Id",this.httpSessionIdParam_);zWc(this,e);c&&(this.encodeInitMessageHeaders_?d="headers="+fv(hBc(c))+"&"+d:this.httpHeadersOverwriteParam_&&iBc(e,this.httpHeadersOverwriteParam_,c));this.forwardChannelRequestPool_.addRequest(b);this.blockingHandshake_&&Ir(e,"TYPE","init");this.fastHandshake_?(Ir(e,"$req",d),Ir(e,"SID","null"),b.decodeInitialResponse_=!0,OVc(b,e,null)):OVc(b,e,d);this.state_=2}}else this.state_==3&&(a?EWc(this,a):this.outgoingMaps_.length==0?this.channelDebug_.debug("startForwardChannel_ returned: nothing to send"):
oWc(this.forwardChannelRequestPool_)||(EWc(this),this.channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var EWc=function(a,b){var c;b?c=b.getRequestId():c=a.nextRid_++;var d=a.forwardChannelUri_.clone();Ir(d,"SID",a.sid_);Ir(d,"RID",c);Ir(d,"AID",a.lastArrayId_);zWc(a,d);a.httpHeadersOverwriteParam_&&a.extraHeaders_&&iBc(d,a.httpHeadersOverwriteParam_,a.extraHeaders_);c=new AR(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=DWc(a,c,1E3);c.setTimeout(Math.round(a.forwardChannelRequestTimeoutMs_*
.5)+Math.round(a.forwardChannelRequestTimeoutMs_*.5*Math.random()));a.forwardChannelRequestPool_.addRequest(c);OVc(c,d,b)},zWc=function(a,b){a.extraParams_&&bj(a.extraParams_,function(c,d){Ir(b,d,c)});a.handler_&&bj({},function(c,d){Ir(b,d,c)})},DWc=function(a,b,c){c=Math.min(a.outgoingMaps_.length,c);var d=a.handler_?bt(a.handler_.badMapError,a.handler_,a):null;a:{for(var e=a.outgoingMaps_,f=-1;;){var h=["count="+c];f==-1?c>0?(f=e[0].mapId,h.push("ofs="+f)):f=0:h.push("ofs="+f);for(var k=!0,q=0;q<
c;q++){var v=e[q].mapId,A=e[q].map;v-=f;if(v<0)f=Math.max(0,e[q].mapId-100),k=!1;else try{v="req"+v+"_"||"";try{var E=A instanceof Map?A:Object.entries(A);for(var H=l(E),L=H.next();!L.done;L=H.next()){var O=l(L.value),S=O.next().value,aa=O.next().value,ka=aa;La(aa)&&(ka=(new dDc).serialize(aa));h.push(v+S+"="+encodeURIComponent(ka))}}catch(na){throw h.push(v+"type="+encodeURIComponent("_badmap")),na;}}catch(na){d&&d(A)}}if(k){E=h.join("&");break a}}E=void 0}a=a.outgoingMaps_.splice(0,c);b.pendingMessages_=
a;return E},kWc=function(a){a.backChannelRequest_||a.backChannelTimerId_||(a.backChannelAttemptId_=1,tz(a.onStartBackChannelTimer_,a),a.backChannelRetryCount_=0)},gWc=function(a){if(a.backChannelRequest_||a.backChannelTimerId_||a.backChannelRetryCount_>=3)return!1;a.channelDebug_.debug("Going to retry GET");a.backChannelAttemptId_++;a.backChannelTimerId_=EVc(bt(a.onStartBackChannelTimer_,a),BWc(a,a.backChannelRetryCount_));a.backChannelRetryCount_++;return!0};
GR.prototype.onStartBackChannelTimer_=function(){this.backChannelTimerId_=null;FWc(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_=EVc(bt(this.onBpDetectionTimer_,this),a)}};
GR.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;xR(10);fWc(this);FWc(this)}else this.channelDebug_.warning("Invalid operation.")};
var bWc=function(a){a.bpDetectionTimerId_!=null&&(a.channelDebug_.debug("Cancel the BP detection timer."),ea.clearTimeout(a.bpDetectionTimerId_),a.bpDetectionTimerId_=null)},FWc=function(a){a.channelDebug_.debug("Creating new HttpRequest");a.backChannelRequest_=new AR(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();Ir(b,"RID","rpc");Ir(b,"SID",a.sid_);Ir(b,"AID",a.lastArrayId_);Ir(b,"CI",a.enableStreaming_?"0":"1");!a.enableStreaming_&&a.longPollingTimeout_&&Ir(b,"TO",a.longPollingTimeout_);Ir(b,"TYPE","xmlhttp");zWc(a,b);a.httpHeadersOverwriteParam_&&a.extraHeaders_&&iBc(b,a.httpHeadersOverwriteParam_,a.extraHeaders_);a.backChannelRequestTimeoutMs_&&a.backChannelRequest_.setTimeout(a.backChannelRequestTimeoutMs_);var c=a.backChannelRequest_,d=a.hostPrefix_;c.type_=1;c.baseUri_=eBc(b.clone());
c.postData_=null;c.decodeChunks_=!0;NVc(c,d);a.channelDebug_.debug("New Request created")};GR.prototype.correctHostPrefix=function(a){return this.handler_?this.handler_.correctHostPrefix(a):a};GR.prototype.onBackChannelDead_=function(){this.deadBackChannelTimerId_!=null&&(this.deadBackChannelTimerId_=null,fWc(this),gWc(this),xR(19))};
var eWc=function(a){a.deadBackChannelTimerId_!=null&&(ea.clearTimeout(a.deadBackChannelTimerId_),a.deadBackChannelTimerId_=null)},ZVc=function(a,b){a.channelDebug_.debug("Request complete");var c=null;if(a.backChannelRequest_==b){eWc(a);bWc(a);a.backChannelRequest_=null;var d=2}else if(dWc(a.forwardChannelRequestPool_,b))c=b.getPendingMessages(),jWc(a.forwardChannelRequestPool_,b),d=1;else return;if(a.state_!=0)if(b.successful_)d==1?(DVc(b.postData_?b.postData_.length:0,Date.now()-b.requestStartTime_,
a.forwardChannelRetryCount_),lWc(a)):kWc(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: "+KVc(f,a.errorResponseStatusCode_)});if(d==1&&CWc(a,b)||d==2&&gWc(a))return;a.channelDebug_.debug("Exceeded max number of retries")}c&&c.length>0&&pWc(a.forwardChannelRequestPool_,c);a.channelDebug_.debug("Error: HTTP request failed");
switch(f){case 1:CR(a,5);break;case 4:CR(a,10);break;case 3:CR(a,6);break;default:CR(a,2)}}},BWc=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},CR=function(a,b){a.channelDebug_.info("Error code "+b);if(b==2){var c=bt(a.testNetworkCallback_,a),d=a.networkTestUrl_,e=!d;d=new Mp(d||"//www.google.com/images/cleardot.gif");ea.location&&ea.location.protocol=="http"||WG(d,"https");eBc(d);e?qWc(d.toString(),
c):rWc(d.toString(),c)}else xR(2);a.onError_(b)};GR.prototype.testNetworkCallback_=function(a){a?(this.channelDebug_.info("Successfully pinged google.com"),xR(2)):(this.channelDebug_.info("Failed to ping google.com"),xR(1))};GR.prototype.onError_=function(a){this.channelDebug_.debug("HttpChannel: error - "+a);this.state_=0;this.handler_&&this.handler_.channelError(a);AWc(this);yWc(this)};
var AWc=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}),Haa(a.nonAckedMapsAtChannelClose_,b),Haa(a.nonAckedMapsAtChannelClose_,a.outgoingMaps_),a.forwardChannelRequestPool_.pendingMessages_.length=0,Ja(a.outgoingMaps_),a.outgoingMaps_.length=0;a.handler_.channelClosed()}},
iWc=function(a,b,c){var d=Gr(c);d.getDomain()!=""?(b&&XG(d,b+"."+d.getDomain()),YG(d,d.port_)):(d=ea.location,d=fBc(d.protocol,null,b?b+"."+d.hostname:d.hostname,+d.port,c));b=a.httpSessionIdParam_;c=a.getHttpSessionId();b&&c&&Ir(d,b,c);Ir(d,"VER",a.channelVersion_);zWc(a,d);return d},QVc=function(a,b,c){if(b&&!a.supportsCrossDomainXhrs_)throw Error("de");b=a.usesFetchStreams_&&!a.xmlHttpFactory_?new Uq(new ER({streamBinaryChunks:c})):new Uq(a.xmlHttpFactory_);b.withCredentials_=a.supportsCrossDomainXhrs_;
return b};GR.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};var GWc=function(){};g=GWc.prototype;g.channelOpened=function(){};g.channelHandleArray=function(){};g.channelError=function(){};g.channelClosed=function(){};g.isActive=function(){return!0};g.badMapError=function(){};g.correctHostPrefix=function(a){return a};var HWc=function(){};HWc.prototype.createWebChannel=function(a,b){return new HR(a,b)};
var HR=function(a,b){Cp.call(this);this.channel_=new GR(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)&&!ja(a)&&(this.channel_.httpHeadersOverwriteParam_=a);this.supportsCrossDomainXhr_=b&&b.supportsCrossDomainXhr||!1;this.sendRawJson_=b&&b.sendRawJson||!1;(b=b&&b.httpSessionIdParam)&&!ja(b)&&(this.channel_.httpSessionIdParam_=b,Ira(this.messageUrlParams_,b)&&dj(this.messageUrlParams_,b));this.channelHandler_=new IR(this)};zu(HR,Cp);
HR.prototype.open=function(){this.channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.channel_.supportsCrossDomainXhrs_=!0);this.channel_.connect(this.url_,this.messageUrlParams_||void 0)};HR.prototype.close=function(){this.channel_.disconnect()};HR.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 dDc).serialize(a),a=c);b.outgoingMaps_.push(new mWc(b.nextMapId_++,a));b.state_==3&&lWc(b)};
HR.prototype.disposeInternal=function(){this.channel_.handler_=null;delete this.channelHandler_;this.channel_.disconnect();delete this.channel_;HR.superClass_.disposeInternal.call(this)};var IWc=function(a){bVc.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)?Ora(b,this.metadataKey):b}else this.data=a};zu(IWc,bVc);
var JWc=function(a){cVc.call(this);this.status=1;this.errorCode=a};zu(JWc,cVc);var IR=function(a){this.channel_=a};zu(IR,GWc);IR.prototype.channelOpened=function(){this.channel_.dispatchEvent("i")};IR.prototype.channelHandleArray=function(a){this.channel_.dispatchEvent(new IWc(a))};IR.prototype.channelError=function(a){this.channel_.dispatchEvent(new JWc(a))};IR.prototype.channelClosed=function(){this.channel_.dispatchEvent("j")};var fVc=function(a){this.channel_=a};
fVc.prototype.getHttpSessionId=function(){return this.channel_.getHttpSessionId()};fVc.prototype.commit=function(a){this.channel_.forwardChannelFlushedCallback_=a};fVc.prototype.getLastStatusCode=function(){return this.channel_.getLastStatusCode()};var KWc=function(){this.changeList=[]};KWc.prototype.add=function(a){this.changeList.push(a)};
var LWc=function(){var a=a===void 0?Date:a;var b=b===void 0?dv(a.now()*1E3):b;this.clock=a;this.clientStartMicros=b},MWc=function(a,b,c){this.authMethod=b;this.jspbClient=new uVc(a,c)},NWc=function(a,b,c,d){var e,f,h,k,q,v,A;return z(function(E){if(E.nextAddress==1){e=new LWc;var H=new NUc;H=X(H,LUc,1,b);f=Ok(H,4,c);if(d){if(d.rttMicros==null)throw Error("fe");H=Zu(d.rttMicros)/1E6;H=Pu(f,2,H);var L=d.clockOffsetMicros!=null?dv(d.clock.now()*1E3).add(d.clockOffsetMicros):void 0;L=(h=L)==null?void 0:
h.toString();Ek(H,3,L)}return B(E,a.jspbClient.post("/v1/chooseServer",f,sR,O0a(a.authMethod)),2)}k=E.yieldResult;H=e;L=br(k.getStartTimeMicros_asString());var O=br(Bk(k,5)),S=dv(H.clock.now()*1E3),aa=av(O,L);H.rttMicros=av(av(S,H.clientStartMicros),aa);H.clockOffsetMicros=av(av(L,H.clientStartMicros).add(O),S).div(dv(2));q=Hu(k,1);if(q==null)throw Error("ge");return E.return({gsessionid:q,affinitization:(v=k.getAffinitizationOrUndefined())!=null?v:0,initialConnectionDelayMillis:(A=Gu(k,3))!=null?
A:0,timeEstimator:e})})},OWc=function(a,b,c){this.authMethod=b;this.jspbClient=new uVc(a,c)},PWc=function(a,b,c){var d,e;return z(function(f){if(f.nextAddress==1){if(a.authMethod instanceof Q0a)return f.return(Promise.resolve());d=(new SUc).setChannelId(c);e=O0a(a.authMethod);e.queryParams==null&&(e.queryParams={});e.queryParams.gsessionid=b;e.timeoutMs=1E4;Gf(f,2);return B(f,a.jspbClient.post("/v1/refreshCreds",d,TUc,e),4)}if(f.nextAddress!=2)return uu(f,0);Kf(f);Lf(f)})},QWc=function(a,b,c){this.project=
a;this.interestSet=b;this.knowledgeTimestamp=c;this.hasRecurred=!1;this.resyncMillis=Date.now()},JR=function(a,b){this.channelDeps=a;this.options=b;this.refreshCredsTimerScheduled=!1;this.causalStreams=new Map;this.limboStreams=new Map;this.nonCausalStreams=new Map;this.newStreamSubject=new tg;this.streamNumber=0;this.rawStatus=new tg;this.status=new Kn(new pR);this.skipBackoff=new iVc;this.recentResyncs=[];this.hasConnected=!1;this.consecutiveThrottledConnections=0;this.rawStatus.pipe(jla(function(e){return e.getCode()===
0?Promise.resolve():new Promise(function(f){Vq(f,500)})})).subscribe(this.status);this.delayGenerator=new K0a;var c,d;this.reconnectHint=(d=(c=b.reconnectHint)==null?void 0:c.pipe(hg(function(){return Bv}),ila(Bv)))!=null?d:Bv;RWc(this)},SWc=function(a,b,c){b=b.then(function(d){switch(d.domainType()){case 2:case 0:var e=a.firstPartyUri;break;case 1:e=a.thirdPartyUri;break;default:e=new Mp}var f=e.clone().setPath(vVc(e.getPath(),"/multi-watch/channel")),h=new dVc(f.toString(),d,c.xmlHttpFactory!==
void 0);return{serverChooser:new MWc(e,d,U0a(c.xmlHttpFactory)),credentialRefresher:new OWc(e,d,U0a(c.xmlHttpFactory)),channelCreator:function(k,q,v){k=new eVc(k,q,h,function(A,E){return(new HWc).createWebChannel(A,E)},v);k.open();return k}}});return new JR(b,c)},TWc=function(a,b){return Math.max(Math.min(a,b!=null?b:a)+(24E4+4E4*Math.random())-a,0)},UWc=function(a){var b;Vq(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?(PWc(c.credentialRefresher,a.channelState.gsessionid,a.channelState.channelId).catch(function(){}),a.channelState.lastRefreshTime=Date.now(),UWc(a)):a.refreshCredsTimerScheduled=!1})},TWc(Date.now(),(b=a.channelState)==null?void 0:b.lastRefreshTime))};
JR.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 VWc=function(a){for(var b=0,c=Date.now();b<a.recentResyncs.length;)c>=a.recentResyncs[b].resyncMillis+6E4?a.recentResyncs.splice(b):++b},WWc=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 ar&&d instanceof ar?c.equals(d):!1;return d})};JR.prototype.onOpen=function(){var a=(new pR).setCode(0);try{this.rawStatus.next(a)}catch(b){}};JR.prototype.onClose=function(){this.channelState=void 0;RWc(this)};
JR.prototype.onError=function(a,b){this.channelState==null||this.channelState.hasReceivedMessage||b!==503||this.consecutiveThrottledConnections++;a=(new pR).setCode(T0a(b));try{this.rawStatus.next(a)}catch(c){}a=l(this.causalStreams.values());for(b=a.next();!b.done;b=a.next())b.value.streamInitiationReason=2;a=l(this.nonCausalStreams.values());for(b=a.next();!b.done;b=a.next())b.value.streamInitiationReason=2};
var ZWc=function(a,b,c){if(a.channelState){var d=XWc(c.project,c.interestSet);if(c instanceof YWc){var e=d.setStartTimeMicros(c.knowledgeTimestamp.toString());Nk(e,8,c.knowledgeTimestampChosenByPunctual)}Rk(d,9,c.streamInitiationReason);c.streamInitiationReason=0;c=new RUc;c.addAndReturnRequests().setStreamId(b.toString()).setOpen(d).setAffinitization(a.channelState.affinitization);a.channelState.channel.send(c)}},XWc=function(a,b){var c=new LUc;c=X(c,rR,4,gVc);if(b instanceof ar){var d=new JUc;a!=
null&&d.setProject(W0a(a));d.setOwner(b.isPrivate?HUc():GUc()).setPath(a1a(b));nm(c,2,MUc,d)}else d=new KUc,a!=null&&d.setProject(W0a(a)),d.setOwner(b.root.isPrivate?HUc():GUc()).setPrefix(a1a(b.root)),c.setPrefix(d);return c},$Wc=function(a,b){var c=new RUc;c.addAndReturnRequests().setStreamId(b.toString()).setClose(new OUc);a.channelState&&a.channelState.channel.send(c);a.causalStreams.delete(b);a.limboStreams.delete(b);a.nonCausalStreams.delete(b)},RWc=function(a){var b=EUc(a.delayGenerator);V0a(b).pipe(vla(a.reconnectHint.pipe(qg(function(){var c=
a.skipBackoff;c.update();c.tokens>0?(c.tokens--,c=!0):c=!1;return c})))).subscribe(function(){a.channelDeps.then(function(c){aXc(a,c.serverChooser).then(function(d){a.serverTimeEstimator=d.timeEstimator;Vq(function(){a.hasConnected=!0;bXc(a,c.channelCreator,d)},a.hasConnected?0:d.initialConnectionDelayMillis)},function(d){var e=(new pR).setCode(2);d instanceof tVc?(e.setMessage(d.message),d.status&&e.setCode(T0a(d.status)),d.status===503&&a.consecutiveThrottledConnections++):e.setMessage(d.toString());
try{a.rawStatus.next(e)}catch(f){}RWc(a)})},function(c){c=(new pR).setCode(13).setMessage(c.toString());a.rawStatus.next(c)})})},aXc=function(a,b){var c,d,e,f,h,k;return z(function(q){if(q.nextAddress==1)return B(q,cXc(a),2);c=q.yieldResult;d=l(c);e=d.next().value;f=d.next().value;h=e;k=f;return q.return(NWc(b,XWc(h,k),a.consecutiveThrottledConnections,a.serverTimeEstimator))})},cXc=function(a){var b,c,d,e,f,h,k;return z(function(q){b=[a.causalStreams,a.limboStreams,a.nonCausalStreams];c=l(b);for(d=
c.next();!d.done;d=c.next())for(e=d.value,f=l(e.values()),h=f.next();!h.done;h=f.next())return k=h.value,q.return([k.project,k.interestSet]);return B(q,Rf(xv(a.newStreamSubject).pipe(qg())),1)})},bXc=function(a,b,c){a.channelState={channel:b(function(f){for(var h=l(f.getResponsesList()),k=h.next();!k.done;k=h.next()){var q=a,v=k.value;q.channelState!=null&&(q.channelState.hasReceivedMessage=!0);q.consecutiveThrottledConnections=0;k=v.getStreamIdOrUndefined_asString();if(k!=null)if(k=Number(k),v.hasClose()){a:{if(v=
v.getClose())if(v=v.getStatus())break a;v=void 0}v&&q.handleClose(k,v)}else if(v=im(v,YUc,2,aVc))switch(Ml(v,uR)){case 1:if(v=q.causalStreams.get(k)){try{v.observer.next(new BUc)}catch(S){}q.causalStreams.delete(k);q.limboStreams.set(k,v.start())}break;case 3:a:{if(v=im(v,UUc,3,uR))if(v=Eu(v,1),v!=null){var A=new CUc(br(v));break a}A=void 0}if(A&&(v=k,k=A,(A=q.limboStreams.get(v))?(A=A.advance(k.timestampMicros),q.limboStreams.delete(v),q.nonCausalStreams.set(v,A),q=A):q=q.nonCausalStreams.get(v),
q)){v=q;A=k.timestampMicros;A>v.knowledgeTimestamp&&(v.knowledgeTimestamp=A,v.knowledgeTimestampChosenByPunctual=!0);try{q.observer.next(k)}catch(S){}}break;case 2:k=q.nonCausalStreams.get(k)||q.limboStreams.get(k);if(!k)break;q=k.interestSet;if(A=im(v,WUc,2,uR)){v=new KWc;A=l(Sj(A,VUc,1,Bj()));for(var E=A.next();!E.done;E=A.next()){var H=E.value,L=W(H,Yq,6);E=H.getVersionOrUndefined_asString();if(L&&E!=null){var O=void 0;H=(O=H.getPayloadOrUndefined())==null?void 0:new Uint8Array(Ic(O)||0);O=H==
null?void 0:H;(L=f1a(q,L))&&v.add(new AUc(L,br(E),O))}}q=v}else q=void 0;if(q)for(q=l(q.changeList),v=q.next();!v.done;v=q.next()){v=v.value;v=new AUc(v.objectId,v.version,v.payload);try{k.observer.next(v)}catch(S){}}break;case 5:if(k=q.causalStreams.get(k)||q.limboStreams.get(k)||q.nonCausalStreams.get(k)){k instanceof YWc&&(VWc(q),(v=WWc(q,k))?(v.hasRecurred=!0,v.knowledgeTimestamp=k.knowledgeTimestamp,v.resyncMillis=Date.now()):q.recentResyncs.push(new QWc(k.project,k.interestSet,k.knowledgeTimestamp)));
try{k.observer.complete()}catch(S){}}}}if(f.hasStatus())switch(f.getStatus().getCodeOrUndefined()){case 1:h=l(a.causalStreams.values());for(k=h.next();!k.done;k=h.next())k.value.streamInitiationReason=3;h=l(a.nonCausalStreams.values());for(k=h.next();!k.done;k=h.next())k.value.streamInitiationReason=3;a.channelState&&a.channelState.channel.close()}tk(f,ZUc,3)&&a.channelState&&(a.channelState.channelId=W(f,ZUc,3).getChannelId(),a.channelState.lastRefreshTime=Date.now(),a.refreshCredsTimerScheduled||
(UWc(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,h){return f[0]-h[0]});b=l(b);for(c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;ZWc(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;Vq(function(){a.channelState===e&&a.delayGenerator.reset()},45E3)};JR.prototype.watch=function(a,b){var c=this;b=b===void 0?{}:b;return new Cf(function(d){var e=++c.streamNumber,f,h=(f=b.projectOverride)!=null?f:c.options.defaultProject;d=new dXc(d,h,a);c.causalStreams.set(e,d);c.newStreamSubject.next({});ZWc(c,e,d);return function(){$Wc(c,e)}})};
JR.prototype.watchWithStartTime=function(a,b,c){var d=this;c=c===void 0?{}:c;return new Cf(function(e){var f=++d.streamNumber,h,k=(h=c.projectOverride)!=null?h:d.options.defaultProject,q=new YWc(e,k,a,b,!1);VWc(d);if((e=WWc(d,q))&&(e.hasRecurred||b.compare(e.knowledgeTimestamp)<=0)){var v=!0;Vq(function(){v&&q.observer.complete()},6E4);return function(){v=!1}}d.nonCausalStreams.set(f,q);d.newStreamSubject.next({});ZWc(d,f,q);return function(){$Wc(d,f)}})};
var dXc=function(a,b,c){this.observer=a;this.project=b;this.interestSet=c;this.streamInitiationReason=1};dXc.prototype.start=function(){return new eXc(this.observer,this.project,this.interestSet)};var eXc=function(a,b,c){this.observer=a;this.project=b;this.interestSet=c};eXc.prototype.advance=function(a){return new YWc(this.observer,this.project,this.interestSet,a,!0)};
var YWc=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 fXc={firstPartyUri:new Mp("https://signaler-pa.clients6.google.com/punctual"),thirdPartyUri:new Mp("https://signaler-pa.googleapis.com/punctual")},gXc={firstPartyUri:new Mp("https://punctual.corp.google.com/punctual"),thirdPartyUri:new Mp},hXc={firstPartyUri:new Mp("https://punctual-dev.corp.google.com/punctual"),thirdPartyUri:new Mp("https://signaler-staging.sandbox.google.com/punctual")},iXc=new Map([["corp",gXc],["prod",fXc],["prod-up",gXc],["preprod-dynamite-alpha-us",cr("preprod-dynamite-alpha-us")],
["preprod-dynamite-alpha-eu",cr("preprod-dynamite-alpha-eu")],["preprod-dynamite-beta-us",cr("preprod-dynamite-beta-us")],["preprod-dynamite-beta-eu",cr("preprod-dynamite-beta-eu")],["preprod-dynamite-gamma-us",cr("preprod-dynamite-gamma-us")],["preprod-dynamite-gamma-eu",cr("preprod-dynamite-gamma-eu")],["preprod-qual-dynamite-perftest",cr("preprod-qual-dynamite-perftest")],["prod-dynamite-prod-00-eu",cr("prod-dynamite-prod-00-eu")],["prod-dynamite-prod-01-eu",cr("prod-dynamite-prod-01-eu")],["prod-dynamite-prod-00-us",
cr("prod-dynamite-prod-00-us")],["prod-dynamite-prod-01-us",cr("prod-dynamite-prod-01-us")],["prod-dynamite-prod-02-us",cr("prod-dynamite-prod-02-us")],["prod-dynamite-prod-03-us",cr("prod-dynamite-prod-03-us")],["prod-dynamite-prod-04-us",cr("prod-dynamite-prod-04-us")],["prod-dynamite-prod-05-us",cr("prod-dynamite-prod-05-us")],["prod-dynamite-prod-06-us",cr("prod-dynamite-prod-06-us")],["prod-dynamite-prod-07-us",cr("prod-dynamite-prod-07-us")],["prod-dynamite-prod-08-us",cr("prod-dynamite-prod-08-us")],
["prod-dynamite-prod-09-us",cr("prod-dynamite-prod-09-us")],["dynamite-alpha-us",dr("alpha-us")],["dynamite-alpha-eu",dr("alpha-eu")],["dynamite-beta-us",dr("beta-us")],["dynamite-beta-eu",dr("beta-eu")],["dynamite-gamma-us",dr("gamma-us")],["dynamite-gamma-eu",dr("gamma-eu")],["dynamite-prod-00-us",dr("prod-00-us")],["dynamite-prod-00-eu",dr("prod-00-eu")],["dynamite-prod-01-us",dr("prod-01-us")],["dynamite-prod-01-eu",dr("prod-01-eu")],["dynamite-prod-02-us",dr("prod-02-us")],["dynamite-prod-03-us",
dr("prod-03-us")],["dynamite-prod-04-us",dr("prod-04-us")],["dynamite-prod-05-us",dr("prod-05-us")],["dynamite-prod-06-us",dr("prod-06-us")],["dynamite-prod-07-us",dr("prod-07-us")],["dynamite-prod-08-us",dr("prod-08-us")],["dynamite-prod-09-us",dr("prod-09-us")],["ytprod",{firstPartyUri:new Mp("https://signaler-pa.youtube.com/punctual"),thirdPartyUri:new Mp("https://signaler-pa.googleapis.com/punctual")}],["dev",hXc]]);var jXc=function(a){this.projectPath=a;this.authParams=new jVc;this.fetchApi=!1};jXc.prototype.setApiKey=function(a){this.authParams.apiKey=a;return this};jXc.prototype.useFetchApi=function(a){this.fetchApi=!0;this.worker=a;return this};
jXc.prototype.build=function(){var a=S0a(this.authParams),b=this.projectPath;if(!b.startsWith("/punctual/"))throw Error("he`"+b);var c=b.substring(10).split("/");if(c.length!==2)throw Error("ie`"+b);b=l(c);c=b.next().value;b=b.next().value;if(c.startsWith("custom:"))c=new Mp(decodeURIComponent(c.substring(7))),c.setPath("/punctual"),c={firstPartyUri:c,thirdPartyUri:c};else{var d=iXc.get(c);if(!d)throw Error("je`"+c);c=d}var e;this.fetchApi&&(e=new ER({worker:this.worker}));return SWc(c,a,{reconnectHint:this.reconnectHint,
defaultProject:b,xmlHttpFactory:e})};var kXc={watch:function(){return Bv},watchWithStartTime:function(){return Bv},status:Bv},KR=function(){this.activeSession=r(Bs);if(OA(this.activeSession,"enablePushUpdatesClient")){switch(this.activeSession.getEnvironmentType()){case "PROD":case "NIGHTLY":var a="AIzaSyDBL0cdQ7zgltPyAYPmzKE4X2t2_S_wW8w";var b="/punctual/prod/buganizer";break;case "QA":a="AIzaSyCpeBtg5BChNlEw-O4F0WpVJWgk_CFEY6I";b="/punctual/prod/buganizer-qa";break;default:a="ANVavNKXeiME5gTvC0_SzcTVHNYBMU50fWn-NpE",b="/punctual/dev/buganizer-test"}this.punctualClient=
(new jXc(b)).setApiKey(a).build()}else this.punctualClient=kXc};KR.prototype.watch=function(a,b){return this.punctualClient.watch(b1a(String(a),b)).pipe(eg(function(c){return c instanceof AUc}))};KR.\u0275fac=function(a){return new (a||KR)};KR.\u0275prov=Cd({token:KR,factory:KR.\u0275fac,providedIn:"root"});var LR=function(){this.punctualService=r(KR);this.stream=new tg;this.isPaused=!1;this.closeStream$=new tg};LR.prototype.resume=function(){this.isPaused=!1};var lXc=function(a,b){a.issueId!==b&&(a.closeStream$.next(),a.stream=new tg,a.issueId=b,a.resume(),a.watch(b).subscribe(a.stream));return a.stream};LR.prototype.watch=function(a){var b=this;return this.punctualService.watch("new-comment-issue",a).pipe(eg(function(){var c=!b.isPaused;b.resume();return c}),kg(1E3),yg(this.closeStream$))};
LR.\u0275fac=function(a){return new (a||LR)};LR.\u0275prov=Cd({token:LR,factory:LR.\u0275fac,providedIn:"root"});var mXc=function(a,b){this.displayText=a;this.value=b;this.enabled=!0;this.disabledReason=""};var MR=function(){Z.call(this);this.window=r(HJ);this.scrolledOnScreenService=r(rH);this.elementRef=r(Te);this.onAutoResize=new LE;this.el=this.elementRef.nativeElement;this.cloneEl=this.el.cloneNode();this.cloneEl.removeAttribute("id");this.cloneEl.removeAttribute("name");this.cloneEl.removeAttribute("aria-label");this.cloneEl.setAttribute("aria-hidden","");this.cloneEl.removeAttribute("data-stable");this.cloneEl.setAttribute("data-cloned-for-auto-resize","");this.cloneEl.style.height="auto";this.cloneEl.style.visibility=
"hidden";this.cloneEl.style.position="absolute";this.cloneEl.style.left="0";this.cloneEl.style.top="0";this.cloneEl.style.zIndex="-9999";this.cloneEl.style.overflowY="hidden";this.window.document.body.appendChild(this.cloneEl)};Y(MR,Z);MR.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.scrolledOnScreenService.getObservable(this.el,!0).subscribe(function(b){b&&nXc(a,0)}));this.autoResize&&this.subscriptions.add(this.autoResize.subscribe(function(){nXc(a,2)}))};
MR.prototype.onInput=function(){nXc(this,1)};
var nXc=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=ol(d.getPropertyValue("border-top-width"))+ol(d.getPropertyValue("padding-top"))+c.scrollHeight+ol(d.getPropertyValue("padding-bottom"))+ol(d.getPropertyValue("border-bottom-width"))+
24;Number.isNaN(c)||(e=ol(d.getPropertyValue("max-height")),d=ol(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})))};MR.prototype.ngOnDestroy=function(){this.cloneEl.parentElement&&this.cloneEl.parentElement.removeChild(this.cloneEl);Z.prototype.ngOnDestroy.call(this)};MR.\u0275fac=function(a){return new (a||MR)};
MR.\u0275dir=vf({type:MR,selectors:[["textarea","autoResize",""]],hostBindings:function(a,b){a&1&&N("input",function(){return b.onInput()})},inputs:{autoResize:"autoResize"},outputs:{onAutoResize:"onAutoResize"},standalone:!1,features:[Bg]});var oXc=new le("isMac",{factory:function(){return ht}}),NR=function(){this.isMac=r(oXc);this.textarea=r(Te).nativeElement;this.macPasteWorkaroundActivated=new LE};
NR.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())}}};
NR.\u0275fac=function(a){return new (a||NR)};NR.\u0275dir=vf({type:NR,selectors:[["textarea","macPasteWorkaround",""]],hostBindings:function(a,b){a&1&&N("paste",function(c){return b.handlePaste(c)})},outputs:{macPasteWorkaroundActivated:"macPasteWorkaroundActivated"},standalone:!1});var OR=function(){this.activeSession=r(Bs);this.issuePermissionService=r(OK);this.window=r(HJ);this.userPreferencesManager=r(iG);this.placeholderPrefix="@";this.candidateDenylist=new Set;this.isMentionAutocompleteEnabled=function(){throw Error("ke");};this.getHiddenInput=function(){throw Error("ke");};this.getAutocompleteUnderlay=function(){throw Error("ke");};this.getTextarea=function(){throw Error("ke");};this.focusOnComponent=function(){throw Error("ke");};this.emitContentChange=function(){throw Error("ke");
};this.autocompleteUserName=new Kn("");this.autocompleteUserName$=this.autocompleteUserName.pipe(og());this.autocompleteTop=new Kn(0);this.autocompleteTop$=this.autocompleteTop.pipe(og());this.autocompleteLeft=new Kn(0);this.autocompleteLeft$=this.autocompleteLeft.pipe(og());this.scrollPosition=0;this.taggingInProgress=new Kn(!1);this.taggingInProgress$=this.taggingInProgress.pipe(og());this.wordInfo={wordStart:0,wordEnd:0,word:""}};
OR.prototype.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};
var pXc=function(a){var b=a.getTextarea().selectionStart,c=a.getTextarea().value,d=b!=null?b:0;b=c.slice(0,d).search(/(?!(.*[\s,]))/);d+=c.slice(d).search(/([\s,]|$)/);a.wordInfo={wordStart:b,wordEnd:d,word:c.slice(b,d)}};OR.prototype.textAreaContainerElKeyDown=function(a){a.key==="Escape"&&(PR(this),this.focusOnComponent())};
OR.prototype.textAreaKeyDown=function(a){if(qXc(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)}};
OR.prototype.textAreaKeyUp=function(a){if(!qXc(a))if(a=a.target,this.scrollPosition=a.scrollTop,pXc(this),rXc(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 h=d.getPropertyValue(f);c.style.setProperty(f,h)}}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 qXc=function(a){return a.key==="ArrowDown"||a.key==="ArrowUp"||a.key==="Enter"||a.key==="Escape"||a.key==="Tab"};OR.prototype.synchronizeScrolling=function(){var a=this.getAutocompleteUnderlay(),b=this.getTextarea();a&&b&&(a.scrollTop=b.scrollTop)};var PR=function(a){a.taggingInProgress.next(!1)};
OR.prototype.escapeKeyupAnywhere=function(a){var b=a.key;a=a.target.classList.contains("autocomplete-hidden-input");b==="Escape"&&a&&(PR(this),this.focusOnComponent())};OR.prototype.hiddenInputChange=function(){if(this.isMentionAutocompleteEnabled()){var a=this.getTextarea();PR(this);sXc(this,tXc(this));this.focusOnComponent();a.scrollTop=this.scrollPosition;a.dispatchEvent(new KeyboardEvent("keydown"));this.emitContentChange()}};
OR.prototype.hiddenInputKeyUp=function(a){var b=document.activeElement,c=this.getHiddenInput();b===c&&(a.key==="Enter"||a.key==="Tab"?(this.taggingInProgress.next(!1),sXc(this,tXc(this)),this.focusOnComponent()):sXc(this,tXc(this)))};
var tXc=function(a){var b,c;return a.placeholderPrefix+((c=(b=a.getHiddenInput())==null?void 0:b.value)!=null?c:"")},sXc=function(a,b){pXc(a);if(rXc(a,a.wordInfo.word)){var c=a.getTextarea();c.setRangeText(b,a.wordInfo.wordStart,a.wordInfo.wordEnd);c.selectionStart=a.wordInfo.wordStart+b.length;c.selectionEnd=a.wordInfo.wordStart+b.length;c.dispatchEvent(new Event("input"))}},rXc=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:cpc.test(b)&&!bpc.test(b)};OR.\u0275fac=function(a){return new (a||OR)};OR.\u0275prov=Cd({token:OR,factory:OR.\u0275fac});var uXc=["textarea"],vXc=["hiddenInput"],wXc=["autocompleteUnderlay"],QR=function(){Z.apply(this,arguments);var a=this;this.codefont=r(iO);this.activeSession=r(Bs);this.issuePermissionService=r(OK);this.autocompleteLogic=r(OR);this.userPreferencesManager=r(iG);this.autocompleteConfigService=r(GO);this.darkmodeService=r(FO);this.enableExternalMentionsFe=OA(this.activeSession,"enableExternalMentionsFe");this.enablePeoplekitAc=OA(this.activeSession,"enablePeoplekitUserAc");this.refresh$=this.darkmodeService.clientDarkmode$.pipe(C(function(){}));
this.textareaClass=[];this.isLiteralModeSupported=this.enableMentionsAutocomplete=this.canEditIssuesInComponent=this.disabled=!1;this.contentChange=new LE;this.focus=new LE;this.blur=new LE;this.autoResize=new LE;this.manualResize$=new LE;this.enableLiteralModeRevisions=OA(this.activeSession,"enableLiteralModeRevisions");this.autocompleteTop$=this.autocompleteLogic.autocompleteTop$;this.autocompleteLeft$=this.autocompleteLogic.autocompleteLeft$;this.taggingInProgress$=this.autocompleteLogic.taggingInProgress$;
this.autocompleteUserName$=this.autocompleteLogic.autocompleteUserName$;this.sessionOptions=(new et).setFilter(mSc);this.shouldShowMentionsNotSupportedWarning$=this.autocompleteLogic.taggingInProgress$.pipe(C(function(b){return a.enableExternalMentionsFe&&a.enableMentionsAutocomplete&&NA(a.activeSession)?!(a.issueId?a.issuePermissionService.hasAclToEdit():a.canEditIssuesInComponent)&&b:!1}))};Y(QR,Z);QR.\u0275dir=Z.\u0275dir;QR.prototype.getConfig=function(){return tYa(this.autocompleteConfigService)};
QR.prototype.handlePeoplePickerSelection=function(a){if(a.length>0){var b;if((b=this.hiddenInputRef)==null?0:b.nativeElement)a=a[0].result().getPrimaryTarget().getValue(),sXc(this.autocompleteLogic,"@"+a),PR(this.autocompleteLogic),this.focusOnComponent()}};
QR.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}})};QR.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.enablePeoplekitAc&&xXc(this)};
var xXc=function(a){Uf([a.taggingInProgress$,a.autocompleteUserName$]).pipe(ng(0),yg(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"))}}})};g=QR.prototype;g.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.focus.complete();this.blur.complete();this.manualResize$.complete()};
g.emitContentChange=function(){this.contentChange.emit(this.getTextarea().value)};g.focusOnComponent=function(){this.getTextarea().focus()};g.setValue=function(a){this.getTextarea().value!==a&&(this.getTextarea().value=a,this.manualResize$.next())};g.getTextarea=function(){return this.textareaRef.nativeElement};g.textAreaContainerElKeyDown=function(a){this.autocompleteLogic.textAreaContainerElKeyDown(a)};g.textAreaKeyDown=function(a){this.autocompleteLogic.textAreaKeyDown(a)};g.textAreaKeyUp=function(a){this.autocompleteLogic.textAreaKeyUp(a)};
g.hiddenInputKeyUp=function(a){this.autocompleteLogic.hiddenInputKeyUp(a)};g.escapeKeyupAnywhere=function(a){this.autocompleteLogic.escapeKeyupAnywhere(a)};g.hiddenInputChange=function(){this.autocompleteLogic.hiddenInputChange()};g.synchronizeScrolling=function(){this.autocompleteLogic.synchronizeScrolling()};var yXc=function(a){setTimeout(function(){PR(a.autocompleteLogic)})};
QR.prototype.isMentionAutocompleteEnabled=function(){return this.enableLiteralModeRevisions&&this.isLiteralModeSupported&&this.userPreferencesManager.currentCommentFormattingModeSubject$.value==="LITERAL"?!1:this.enableExternalMentionsFe?this.enableMentionsAutocomplete?NA(this.activeSession)?this.issueId?this.issuePermissionService.hasAclToEdit():this.canEditIssuesInComponent:!0:!1:this.activeSession.isInternalSession()&&this.audience==="INTERNAL"};
QR.\u0275fac=function(){var a;return function(b){return(a||(a=Re(QR)))(b||QR)}}();
QR.\u0275cmp=y({type:QR,selectors:[["b-comment-draft-textarea"]],viewQuery:function(a,b){a&1&&(hh(uXc,7),hh(vXc,5),hh(wXc,5));if(a&2){var c;lh(c=mh())&&(b.textareaRef=c.first);lh(c=mh())&&(b.hiddenInputRef=c.first);lh(c=mh())&&(b.autocompleteUnderlayRef=c.first)}},hostBindings:function(a,b){a&1&&N("click",function(){return yXc(b)},uha)("keyUp",function(c){return b.escapeKeyupAnywhere(c)},uha)},inputs:{textareaClass:"textareaClass",disabled:"disabled",placeholder:"placeholder",idForAriaLabel:"idForAriaLabel",
audience:"audience",issueId:"issueId",canEditIssuesInComponent:"canEditIssuesInComponent",enableMentionsAutocomplete:"enableMentionsAutocomplete",isLiteralModeSupported:"isLiteralModeSupported"},outputs:{contentChange:"contentChange",focus:"focus",blur:"blur",autoResize:"autoResize"},standalone:!1,features:[Fh([OR]),Bg,ov],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"],["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"],[3,"refreshable"],["type","text","bContactAutocomplete","SINGLE","tabIndex","-1","aria-hidden","true",1,"autocomplete-hidden-input",3,"value"],["type","text","tabIndex","-1","inert","","autocomplete","off","spellcheck","off","peoplekitAutocomplete","",1,"autocomplete-hidden-input",3,"peoplekitAutocompleteSelectionChange","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions"],["type","text","bContactAutocomplete","SINGLE","tabIndex","-1","aria-hidden","true",1,"autocomplete-hidden-input",
3,"change","keyup","value"]],template:function(a,b){if(a&1){var c=t();J(0,"div",4,0);N("keydown",function(d){u(c);return w(b.textAreaContainerElKeyDown(d))});J(2,"textarea",5,1);N("input",function(){u(c);return w(b.emitContentChange())})("focus",function(d){u(c);return w(b.focus.emit(d))})("blur",function(d){u(c);return w(b.blur.emit(d))})("onAutoResize",function(d){u(c);return w(b.autoResize.emit(d))})("keydown",function(d){u(c);return w(b.textAreaKeyDown(d))})("keyup",function(d){u(c);return w(b.textAreaKeyUp(d))})("scroll",
function(){u(c);return w(b.synchronizeScrolling())});K();F(4,g1a,8,0,"div",6);F(5,h1a,3,0,"div",7);U(6,"async");J(7,"span",8);U(8,"async");U(9,"async");F(10,l1a,2,1);U(11,"async");K();F(12,m1a,2,0,"div",9);K()}a&2&&(x(2),vh(b.textareaClass),I("autoResize",b.manualResize$)("disabled",b.disabled),Lg("placeholder",b.placeholder)("id",b.idForAriaLabel),x(2),G(b.enableLiteralModeRevisions&&b.isLiteralModeSupported&&b.userPreferencesManager.currentCommentFormattingModeSubject$.value==="LITERAL"?4:-1),x(),
G(V(6,14,b.shouldShowMentionsNotSupportedWarning$)?5:-1),x(2),th("top",V(8,16,b.autocompleteTop$)+"px")("left",V(9,18,b.autocompleteLeft$)+"px"),x(3),G(b.isMentionAutocompleteEnabled()&&V(11,20,b.taggingInProgress$)?10:-1),x(2),G(b.isMentionAutocompleteEnabled()?12:-1))},dependencies:[FC,zI,TG,xQ,MR,NR,Tv],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 RR=function(){Z.apply(this,arguments);var a=this;this.cdr=r(NE,{self:!0});this.ref=r(Te);this.events=r(FB);this.previewDisabled=!1;this.selectedIndex=0;this.render=function(){var b=a.matTabGroup;b._tabHeader&&b._tabHeader._alignInkBarToSelectedTab();a.cdr.markForCheck()}};Y(RR,Z);RR.\u0275dir=Z.\u0275dir;RR.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.events.commentSubmitted.subscribe(function(){a.matTabGroup.selectedIndex=0}))};
RR.prototype.synchronizeHeight=function(a){this.ref.nativeElement.querySelector("mat-tab-group").style.height=a+8+48+"px"};RR.\u0275fac=function(){var a;return function(b){return(a||(a=Re(RR)))(b||RR)}}();
RR.\u0275cmp=y({type:RR,selectors:[["b-comment-draft-tab-group"]],viewQuery:function(a,b){a&1&&hh(KN,7);if(a&2){var c;lh(c=mh())&&(b.matTabGroup=c.first)}},inputs:{editArea:"editArea",previewArea:"previewArea",previewDisabled:"previewDisabled"},standalone:!1,features:[Fh([NE]),Bg],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&&
(J(0,"mat-tab-group",0),N("animationDone",function(){setTimeout(b.render,2E3)})("selectedIndexChange",function(c){return b.selectedIndex=c}),J(1,"mat-tab",1),D(2,n1a,1,0,"ng-container",2),K(),J(3,"mat-tab",3),D(4,o1a,1,0,"ng-container",2),K()());a&2&&(I("dynamicHeight",!1)("selectedIndex",b.selectedIndex),x(2),I("ngTemplateOutlet",b.editArea),x(),I("disabled",b.previewDisabled),x(),I("ngTemplateOutlet",b.previewArea))},dependencies:[Sv,ON,JN,KN],styles:["[_nghost-%COMP%]     mat-tab-header{margin-left:8px;margin-bottom:16px}/*# sourceMappingURL=comment_draft_tab_group.css.map */"],
changeDetection:0});
var SR=function(){Z.apply(this,arguments);this.codefont=r(iO);this.ngZone=r(Ph);this.prefs=r(iG);this.hotkeys=r(PG);this.isMarkdown$=this.prefs.lastPublishMode$.pipe(C(function(a){return a==="MARKDOWN_FORMATTING_MODE"}));this.idPrefix="b-draft";this.content="";this.textareaClass=[];this.disabled=!1;this.audience="EXTERNAL";this.isLiteralModeSupported=this.enableMentionsAutocomplete=this.canEditIssuesInComponent=!1;this.init=new LE;this.contentChange=new LE;this.focus=new LE;this.blur=new LE;this.autoResize=
new LE;this.onSubmit=new LE};Y(SR,Z);SR.\u0275dir=Z.\u0275dir;SR.prototype.ngOnChanges=function(){this.commentDraftTextarea&&this.commentDraftTextarea.setValue(this.content)};
SR.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 zXc=function(a){a.ngZone.run(function(){if(a.commentDraftTabGroup){var b=a.commentDraftTabGroup;b.selectedIndex=0;b.render()}a.commentDraftTextarea&&a.commentDraftTextarea.focusOnComponent()})};SR.prototype.synchronizeHeight=function(a){this.commentDraftTabGroup&&this.commentDraftTabGroup.synchronizeHeight(a.newHeight)};SR.\u0275fac=function(){var a;return function(b){return(a||(a=Re(SR)))(b||SR)}}();
SR.\u0275cmp=y({type:SR,selectors:[["b-comment-draft"]],viewQuery:function(a,b){a&1&&(hh(QR,5),hh(RR,5));if(a&2){var c;lh(c=mh())&&(b.commentDraftTextarea=c.first);lh(c=mh())&&(b.commentDraftTabGroup=c.first)}},inputs:{content:"content",textareaClass:"textareaClass",disabled:"disabled",placeholder:"placeholder",audience:"audience",idForAriaLabel:"idForAriaLabel",issueId:"issueId",canEditIssuesInComponent:"canEditIssuesInComponent",enableMentionsAutocomplete:"enableMentionsAutocomplete",isLiteralModeSupported:"isLiteralModeSupported"},
outputs:{init:"init",contentChange:"contentChange",focus:"focus",blur:"blur",autoResize:"autoResize",onSubmit:"onSubmit"},standalone:!1,features:[Bg,ov],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&&(J(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()}),K());a&2&&(uh("draft-markdown",V(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:[QR,Tv],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 AXc=["captchaContainer"],TR=function(){this.ngZone=r(Ph);this.window=r(HJ);this.darkmodeService=r(FO);this.appEvents=r(FB);this.analytics=r(RE);this.onUpdate=new LE;this.destroyed$=new sg(1)};TR.prototype.ngOnInit=function(){var a=this;this.appEvents.recaptchaSubmitted.pipe(yg(this.destroyed$)).subscribe(function(){a.reset();a.onUpdate.emit("")})};
TR.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"})})};TR.prototype.ngOnDestroy=function(){this.reset();this.destroyed$.next()};TR.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)})}};TR.\u0275fac=function(a){return new (a||TR)};
TR.\u0275cmp=y({type:TR,selectors:[["b-recaptcha"]],viewQuery:function(a,b){a&1&&hh(AXc,5);if(a&2){var c;lh(c=mh())&&(b.captchaContainer=c.first)}},outputs:{onUpdate:"onUpdate"},standalone:!1,decls:2,vars:0,consts:[["captchaContainer",""]],template:function(a){a&1&&M(0,"div",null,0)},encapsulation:2});var UR=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)};UR.prototype.ngOnDestroy=function(){this.checks=[];window.removeEventListener("beforeunload",this.beforeUnloadEventHandler);window.removeEventListener("unload",this.onUnload)};var VR=function(a,b,c){var d={dataChanged:b,triggerOnSearch:c};a.checks.push(d);return new yf(function(){a.checks=a.checks.filter(function(e){return e!==d})})};
UR.prototype.canDeactivate=function(a,b,c,d){a:{a=Gr(c.url).getPath()===Gr(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?BXc(this)?(this.checks=[],!0):!1:!0};var BXc=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};
UR.\u0275fac=function(a){return new (a||UR)};UR.\u0275prov=Cd({token:UR,factory:UR.\u0275fac,providedIn:"root"});var CXc=function(a){return[a]},WR=function(){this.matDialog=r(RJ)};
WR.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 h=a.commentNumber;var k=a.dialogTitle;this.dialog=this.matDialog.open(YR,{width:"60vw",disableClose:!0,panelClass:"no-jitter",data:{issueId:b,componentId:d,audience:c,commentNumber:h,text:e,formattingMode:f,dialogTitle:k!=null?k:"Editing Comment #"+h+" of Issue "+b,showPiiWarning:a.showPiiWarning===void 0?!0:a.showPiiWarning}});
return Rf(LJ(this.dialog))};WR.\u0275fac=function(a){return new (a||WR)};WR.\u0275prov=Cd({token:WR,factory:WR.\u0275fac,providedIn:"root"});
var YR=function(){Z.apply(this,arguments);this.activeSession=r(Bs);this.originalData=r(QJ);this.dialogRef=r(KJ);this.bannedWordsChecker=r(UO);this.checkBeforeExit=r(UR);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)};Y(YR,Z);YR.\u0275dir=Z.\u0275dir;g=YR.prototype;g.ngOnInit=function(){var a=this;this.subscriptions.add(VR(this.checkBeforeExit,function(){return a.isModified()},!1));this.dialogRef.keydownEvents().pipe(yg(this.destroyed$)).subscribe(function(b){b.key==="Escape"&&a.closeIfUnmodified()});this.dialogRef.backdropClick().pipe(yg(this.destroyed$)).subscribe(function(){a.closeIfUnmodified()})};g.closeIfUnmodified=function(){this.isModified()||this.dialogRef.close()};
g.isCaptchaValid=function(){return!this.enableRecaptcha||this.recaptchaResponse!==""};g.isModified=function(){return!gj(this.dataDraft,this.originalData)};
g.closeDialogForSave=function(){var a=this,b,c,d;return z(function(e){if(e.nextAddress==1)return a.isModified()?B(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||zXc(c);Lf(e)})};
YR.\u0275fac=function(){var a;return function(b){return(a||(a=Re(YR)))(b||YR)}}();
YR.\u0275cmp=y({type:YR,selectors:[["ng-component"]],viewQuery:function(a,b){a&1&&hh(SR,5);if(a&2){var c;lh(c=mh())&&(b.commentDraft=c.first)}},standalone:!1,features:[Fh([UO]),Bg],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&&(J(0,"h1",0),R(1),K(),J(2,"section",
1),F(3,p1a,6,1,"p",2),J(4,"b-comment-draft",3),U(5,"async"),Ah("contentChange",function(c){zh(b.dataDraft.text,c)||(b.dataDraft.text=c);return c}),N("onSubmit",function(){return b.closeDialogForSave()})("contentChange",function(){b.bannedWordsChecker.reset()}),K(),F(6,q1a,4,1,"p",4),U(7,"async"),J(8,"b-markdown-toggle",5),N("change",function(c){return b.dataDraft.formattingMode=c}),K(),F(9,r1a,1,4,"b-live-preview",6),K(),F(10,s1a,3,0,"section"),J(11,"footer",7)(12,"button",8),R(13," Cancel "),K(),
J(14,"button",9),U(15,"async"),N("click",function(){return b.closeDialogForSave()}),R(16),U(17,"async"),K()());a&2&&(x(),wh(b.originalData.dialogTitle),x(2),G(b.originalData.showPiiWarning?3:-1),x(),yh("content",b.dataDraft.text),I("audience",b.originalData.audience)("textareaClass",Hh(25,CXc,V(5,17,b.bannedWordsChecker.showWarning$)?"banned-words-warning":""))("enableMentionsAutocomplete",!0)("isLiteralModeSupported",!1),x(2),G(V(7,19,b.bannedWordsChecker.showWarning$)?6:-1),x(2),uh("margin-bottom",
(b.dataDraft==null?null:b.dataDraft.formattingMode)!==b.MARKDOWN),I("initialValue",b.originalData.formattingMode),x(),G(b.dataDraft.formattingMode===b.MARKDOWN?9:-1),x(),G(b.enableRecaptcha?10:-1),x(2),I("mat-dialog-close",void 0),x(2),I("disabled",!b.isModified()||!b.isCaptchaValid())("color",V(15,21,b.bannedWordsChecker.showWarning$)?"warn":"primary"),x(2),T(" ",V(17,23,b.bannedWordsChecker.showWarning$)?"Save Anyway":"Save"," "))},dependencies:[SJ,UJ,WJ,VJ,oG,Jx,fQ,yO,SR,TR,Tv],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 ZR=function(){this.dismissalService=r(tN);this.editIssueService=r(RK);this.butterBar=r(GJ);this.issuePermissionService=r(OK);this.issueCommentService=r(oR);this.editCommentDialogService=r(WR);this.issueFullFridge=r(TE);this.matDialogService=r(RJ);this.paths=r(oN);this.analytics=r(RE);this.domSafe=r(UK);this.confirmationDialogService=r(YJ);this.issueComments=r(sK);this.errorHandler=r(aK);this.eventsForIssueFridge=r(TD);this.componentFridge=r(BB);this.commentFormatter=r(sN);this.confirmNoAccessService=
r(uK);this.activeSession=r(Bs);this.appEvents=r(FB);this.issuePicker=r(dR);this.eventsForIssueWatcher=r(LR);this.issueInteractionsTracking=r(KK);this.enableExternalMentionsFe=OA(this.activeSession,"enableExternalMentionsFe")},$9a=function(a,b,c){var d,e,f,h,k,q,v,A,E,H;return z(function(L){if(L.nextAddress==1)return B(L,Rf(a.issueFullFridge.watch(b)),2);if(L.nextAddress!=3){d=L.yieldResult;h=(f=(e=d)==null?void 0:e.snapshot[0].componentId)!=null?f:void 0;k=a.editIssueService.savingState(b);if(k.get("commentEdit"))return L.return();
q=c.commentNumber;if(!q)return L.return();a.butterBar.dismiss();A=(v=a.issuePermissionService.audience())!=null?v:"EXTERNAL";return B(L,a.editCommentDialogService.show({issueId:b,audience:A,componentId:h,text:(E=c.unlinkifiedComment)!=null?E:void 0,formattingMode:c.formattingMode,commentNumber:q}),3)}H=L.yieldResult;if(H==null)return L.return();zUc(a.issueCommentService,{issueId:b,newCommentId:q,newComment:H.text,newCommentFormattingMode:H.formattingMode,recaptchaToken:H.recaptchaToken});Lf(L)})},
EXc=function(a,b,c){var d,e,f;return z(function(h){if(h.nextAddress==1)return c?B(h,DXc(a,b),2):h.return();if(h.nextAddress!=3)return d={title:"Choose target issue",defaultChoices:h.yieldResult,allowMultipleIds:!1,currentResource:{id:b,type:"issue"},edgeType:"copyComment"},B(h,a.issuePicker.open(d),3);e=h.yieldResult;if((f=e)==null?0:f.length){var k=Fq(e[0],{template_issue:b,template_comment:c,do_attribution:!0});a.analytics.trackEvent("editIssue","copyComment");a.domSafe.openInNewTab(k)}Lf(h)})},
DXc=function(a,b){function c(ka){return E.get(ka)}var d,e,f,h,k,q,v,A,E,H,L,O,S,aa;return z(function(ka){if(ka.nextAddress==1)return B(ka,Rf(a.issueFullFridge.watch(b)),2);if(ka.nextAddress!=3){d=ka.yieldResult;if(!d)return ka.return([]);f=(e=d.snapshot[0].duplicateIssueId)!=null?e:[];k=(h=d.snapshot[0].blockingIssueId)!=null?h:[];v=(q=d.snapshot[0].blockedByIssueId)!=null?q:[];return B(ka,Rf(a.issueFullFridge.watchSet(sj([].concat(p(f),p(k),p(v))))),3)}A=ka.yieldResult;E=new Map(A.map(function(na){return[na.issueId,
na]}));H=v.map(c).filter(Qj).map(t1a("BLOCKED_BY"));L=k.map(c).filter(Qj).map(t1a("BLOCKING"));O=f.map(c).filter(Qj).map(t1a("DUPLICATE"));S=[].concat(p(H),p(L),p(O));aa=u1a(S);return ka.return(aa)})},GXc=function(a,b,c){var d;return z(function(e){return e.nextAddress==1?c?B(e,AKc(a.confirmationDialogService,{title:"Restore comment # "+c+"?",content:Xi("Are you sure you want to restore this comment?")}),2):e.return():(d=e.yieldResult)?B(e,FXc(a,b,c),0):e.return()})},FXc=function(a,b,c){var d,e;return z(function(f){switch(f.nextAddress){case 1:d=
a.editIssueService.savingState(b);if(d.get("commentUndelete"))return f.return();Kq(a.butterBar,"Restoring comment...",0);Gf(f,2,3);Lq(d,"commentUndelete");return B(f,a.issueComments.undelete(b,c),5);case 5:Kq(a.butterBar,"Comment restored successfully.");case 3:Hf(f);QK(d,"commentUndelete");a.issueFullFridge.poke(b);a.eventsForIssueFridge.poke(b);Jf(f,0);break;case 2:e=Kf(f),Kq(a.butterBar,"Comment restoration failed."),cK(a.errorHandler,e),f.jumpTo(3)}})},JXc=function(a,b,c,d){var e,f,h,k;return z(function(q){if(q.nextAddress==
1){if(!c)return q.return();e=a.editIssueService.savingState(b);return e.get("commentDelete")?q.return():B(q,HXc(a,b),2)}return q.nextAddress!=3?(f=q.yieldResult,a.butterBar.dismiss(),B(q,Rf(LJ(a.matDialogService.open(HQc,{width:"560px",data:{commentNumber:c,issueId:b,deletionReasons:f}}))),3)):(h=q.yieldResult)?B(q,IXc(a,b,c,h.value,(k=d)!=null?k:""),0):q.jumpTo(0)})},IXc=function(a,b,c,d,e){var f,h;return z(function(k){switch(k.nextAddress){case 1:f=a.editIssueService.savingState(b);if(f.get("commentDelete"))return k.return();
Gf(k,2,3);Kq(a.butterBar,"Deleting comment...",0);Lq(f,"commentDelete");return B(k,a.issueComments.delete(b,c,d,e),5);case 5:Kq(a.butterBar,"Comment deleted. Deleted items may be restored within 30 days."),a.eventsForIssueFridge.poke(b);case 3:Hf(k);QK(f,"commentDelete");a.issueFullFridge.poke(b);Jf(k,0);break;case 2:h=Kf(k),Kq(a.butterBar,"Comment deletion failed."),cK(a.errorHandler,h),k.jumpTo(3)}})},HXc=function(a,b){var c,d,e,f,h,k,q,v;return z(function(A){switch(A.nextAddress){case 1:return B(A,
Rf(a.issueFullFridge.watch(b,{trustUncertainMemory:!0})),2);case 2:c=A.yieldResult;e=((d=c)==null?void 0:d.snapshot[0].componentId)||void 0;if(!e){f=void 0;A.jumpTo(3);break}return B(A,Rf(a.componentFridge.watch(e)),4);case 4:f=A.yieldResult;case 3:return h=f,k=new mXc("Other","USER_REQUEST"),h&&h.commentEditState!=="DISABLED"||(k.enabled=!1,k.disabledReason="comment editing must be enabled"),q=new mXc("Spam or Abuse","ABUSE"),a.issuePermissionService.accessLevel()!=="EXTERNAL_PUBLIC"&&(q.enabled=
!1,q.disabledReason="available on Public components"),v=new mXc("Personally Identifiable Information","RESTRICTED"),A.return([v,q,k])}})},KXc=function(a,b,c){var d,e;return z(function(f){if(f.nextAddress==1)return d=NK(a.issuePermissionService,zj(c.userPerformingActionUser)),a.analytics.trackEvent("restrictedContent","updateContentJudgement","comment"),B(f,a.showContentJudgementDialog({severity:Wm(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),VE(a.issueFullFridge,[b],{markRead:!0,userActivityType:"EDIT"});Lf(f)})};ZR.prototype.showContentJudgementDialog=function(a){return Rf(LJ(this.matDialogService.open(mR,{panelClass:"no-jitter",width:"500px",data:a})))};
var LXc=function(a,b,c){var d;return z(function(e){if(e.nextAddress==1)return B(e,Rf(LJ(a.matDialogService.open(nR,{width:"500px",data:{resource:b,piiRetention:c}}))),2);d=e.yieldResult;return e.return(d===1)})},MXc=function(a,b,c,d){var e;z(function(f){if(f.nextAddress==1){if(d==null)return f.return();a.analytics.trackEvent("restrictedContent","updateContentJudgement","attachment");return B(f,a.showContentJudgementDialog({severity:Wm(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),VE(a.issueFullFridge,[b],{markRead:!0,userActivityType:"EDIT"});Lf(f)})};
ZR.prototype.showDeleteAttachmentDialog=function(a,b){var c=this,d,e,f,h,k,q;z(function(v){if(v.nextAddress==1){d=c.editIssueService.savingState(a);if(d.get("deleteAttachment")||!b.attachmentId)return v.return();e=Rf;f=c.matDialogService;h=f.open;k=GQc;return B(v,HXc(c,a),3)}return v.nextAddress!=2?B(v,e(LJ(h.call(f,k,{width:"560px",data:{deletionReasons:v.yieldResult,attachmentId:b.attachmentId}}))),2):(q=v.yieldResult)?B(v,TMc(c.editIssueService,a,b,q.value),0):v.jumpTo(0)})};
var NXc=function(a,b){var c=b.issueId;var d=b.componentId;var e=b.comment;var f,h,k;return z(function(q){if(q.nextAddress==1){if(!a.enableExternalMentionsFe&&a.issuePermissionService.accessLevel()!=="INTERNAL"||a.enableExternalMentionsFe&&NA(a.activeSession)&&!a.issuePermissionService.hasAclToEdit()||a.issuePermissionService.hasAclToEdit()&&a.issuePermissionService.isImplicitAccessEnabled())return q.return(!0);Gf(q,2);var v=a.commentFormatter;var A={comment:e.value,issueId:c,audience:(f=a.issuePermissionService.audience())!=
null?f:"EXTERNAL",formattingMode:e.formattingMode,idPrefix:"b"+c+"-draft"};v=A.formattingMode==="LITERAL"||A.comment.trim()===""?Nf([]):EQc(v,A).pipe(C(NWa));return B(q,Rf(v),4)}if(q.nextAddress!=2)return h=q.yieldResult,q.return(kLc(a.confirmNoAccessService,{componentId:d,userEmails:h,relation:"reader",analyticsEventLabel:"mention"}));k=Kf(q);cK(a.errorHandler,k);return q.return(!1)})},OXc=function(a,b){b=b===void 0?"comment":b;var c,d,e;return z(function(f){if(f.nextAddress==1)return(c=a.issuePermissionService.accessLevel())&&
c==="INTERNAL"||a.issuePermissionService.hasAclToEdit()||a.activeSession.isInternalSession()||MA(a.activeSession)?f.return(!0):B(f,a.dismissalService.isDismissed(VWa(b)),2);if(d=f.yieldResult)return f.return(!0);switch(b){case "comment":e=Xi("Commenting on this bug report means your email address will be shared with the team that works on this product.");break;case "reaction":e=Xi("Reacting to this comment means your email address will be shared with the team that works on this product.");break;default:pb(b)}return f.return(Rf(LJ(a.matDialogService.open(uN,
{width:"500px",data:{content:e,action:b}}))))})};
ZR.prototype.submitCommentBox=function(a,b,c,d){var e=this,f,h,k,q;return z(function(v){switch(v.nextAddress){case 1:f=e.editIssueService.savingState(b);if(!e.issuePermissionService.hasAclToComment()||!qLc(c)||f.get("comment"))return v.return(!1);Lq(f,"comment");h=function(){QK(f,"comment")};return B(v,NXc(e,{issueId:b,componentId:a,comment:c}),2);case 2:return k=v.yieldResult,k?B(v,OXc(e),3):(h(),v.return(!1));case 3:q=v.yieldResult;if(!q)return h(),v.return(!1);e.analytics.trackEvent("editIssue",
"addComment",c.formattingMode==="MARKDOWN"?"markdown":"non markdown");Mq(e.issueInteractionsTracking,b);e.eventsForIssueWatcher.isPaused=!0;return B(v,e.editIssueService.FOR_ISSUE_COMMENT_DIALOGS_SERVICE_ONLY.saveCommentDraft(b,d).finally(function(){h();e.appEvents.commentSubmitted.next(b);e.appEvents.scrollToCommentBox.next()}),4);case 4:return v.return(!0)}})};
ZR.prototype.showNewContentJudgementDialog=function(a){var b=this,c,d,e,f,h,k;return z(function(q){if(q.nextAddress==1)return c=b.editIssueService.issueCommentDraft(a),d=c.judgementForNewContent(),h=(f=(e=d)==null?void 0:e.severity)!=null?f:"NONE_DETECTED",B(q,b.showContentJudgementDialog({severity:h,contentJudgement:void 0,hasAclToCreate:!0}),2);(k=q.yieldResult)&&c.setJudgementForNewContent(k.contentJudgement);Lf(q)})};
ZR.prototype.updateCommentReaction=function(a){var b=this,c;return z(function(d){return d.nextAddress==1?a.hasReacted?B(d,OXc(b,"reaction"),3):d.jumpTo(2):d.nextAddress==2||(c=d.yieldResult,c)?d.return(b.issueComments.updateCommentReaction(a)):d.return(void 0)})};ZR.\u0275fac=function(a){return new (a||ZR)};ZR.\u0275prov=Cd({token:ZR,factory:ZR.\u0275fac,providedIn:"root"});var $R=function(){this.editIssueService=r(RK);this.issuePicker=r(dR);this.analytics=r(RE);this.butterBar=r(GJ)},PXc=function(a,b){var c,d,e,f,h,k,q;return z(function(v){if(v.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(),B(v,a.issuePicker.open(e),2);if(v.nextAddress!=3){h=v.yieldResult;
if((k=h)==null||!k.length)return c.status=d,v.return("DISMISSED");if(b===h[0])return c.status=d,a.butterBar.showWarning("Cannot set issue as a duplicate of itself"),v.return("DISMISSED");q=(new Date).getTime()-f;a.analytics.trackEvent("issuePicker","duplicate duration","<"+Math.min(2*Math.ceil(q/2E3),600)+"s",q);a.analytics.trackEvent("editIssue","setCanonicalIssue");Uwc(a.analytics,"DUPLICATE");return B(v,KMc(a.editIssueService,b,h[0]),3)}return v.return("DUPLICATE")})};
$R.\u0275fac=function(a){return new (a||$R)};$R.\u0275prov=Cd({token:$R,factory:$R.\u0275fac,providedIn:"root"});var I1a=function(a,b){return b.id},aS=function(){var a=this;this.componentFridge=r(BB);this.issueEditComponentService=r(nN);this.trackerHelpers=r(iK);this.activeSession=r(Bs);this.cdr=r(Hv);this.componentId$=new sg(1);this.readOnly=!1;this.linkifyComponentNames=!0;this.showPickerOverlayAbove=!1;this.handleSave=!0;this.compactMode$=new Kn(!1);this.componentChanged=new LE;this.displayValueOverride="";this.editing=!1;this.component$=this.componentId$.pipe(xg(function(b){return a.componentFridge.watch(b).pipe(wg(void 0))}));
this.isArchived$=this.component$.pipe(C(function(b){return b==null?void 0:b.archived}));this.showPublicIndicator$=this.component$.pipe(C(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()||MA(a.activeSession)?b==="EXTERNAL_PUBLIC":!1}));this.showPartnerIndicator$=this.component$.pipe(C(function(b){var c;b=b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel;return b==null||
a.activeSession.isExternalSession()||MA(a.activeSession)?!1:a.activeSession.isInternalSession()?b==="EXTERNAL_PARTNER":!1}));this.folder$=Uf([this.showPublicIndicator$,this.showPartnerIndicator$]).pipe(C(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."}:Eq(a.activeSession)?
{icon:"folder_special_24px",tooltip:"This component is inside a tracker"}:{icon:"folder",tooltip:""}}),wg({icon:"folder",tooltip:""}));this.componentPath$=Uf([this.componentId$,this.component$,this.compactMode$]).pipe(C(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;if(d==null)return jUa({componentPathId:[b]});b=rs(a.trackerHelpers,d.componentPathInfo);b=jUa(b);if(c){c=[];d=0;for(var e=b.length-1;e>=0;e--){var f=b[e],h=e===b.length-1?48:32;if(d>=h)break;var k=String(f.name),
q=void 0;if(d+[].concat(p(k)).length>h){var v=h-d;h="";k=k===void 0?"":k;v=v===void 0?48:v;h=h===void 0?"...":h;q=[].concat(p(k));q.length<=v||(k=v-[].concat(p(h)).length,k=q.slice(-k).join(""),String.prototype.trimStart!=null&&(k=k.trimStart()),k=h+k);q=!0}d+=[].concat(p(k)).length;c.unshift(Object.assign({},f,{name:k,isTruncated:q}));if(q)break}b.length>c.length&&(c[0].isSpliced=!0);b=c}return b}));this.isEmpty$=this.component$.pipe(C(function(b){return!b}));this.isThinkingAndEmpty$=Uf([this.componentFridge.thinking$,
this.isEmpty$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b&&c}));this.isReady$=this.isThinkingAndEmpty$.pipe(C(function(b){return!b}))};aS.prototype.ngOnInit=function(){};var O1a=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))};
nd.Object.defineProperties(aS.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)}}});aS.\u0275fac=function(a){return new (a||aS)};
aS.\u0275cmp=y({type:aS,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"},standalone:!1,decls:2,vars:1,consts:[["card",""],["cardBody",""],[3,"isReady"],["placeholder","Choose Component",
3,"selectedComponent","isRequired","shouldFocus","showOverlayAbove"],[1,"b-chip","squared","s"],["title","Component folder path",1,"icon-xs",3,"svgIcon","matTooltip"],[1,"component-path"],["type","button","mat-icon-button","","aria-label","Change Component","matTooltip","Change Component",1,"edit-btn"],["mat-icon-button","","aria-label","View Component (Link opens in a new window)","matTooltip","View Component","target","_blank",1,"small","pop-out-btn",3,"routerLinkObj"],["href","javascript:void(0);",
"title","Show all Components","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"]],template:function(a,b){a&1&&F(0,N1a,13,22,"b-async-data-placeholder",2)(1,P1a,2,6,"b-team-component-picker",3);a&2&&G(b.editing?1:0)},dependencies:[WN,
FC,CC,oG,Kx,hN,DI,EI,JI,FI,zG,xG,VM,Tv],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 R1a={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"},QXc={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"},Q1a=[R1a,{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"},QXc];var bS=function(){Z.call(this);var a=this;this.defaultAccessLimitLevel$=new sg(1);this.disabled=!0;this.implicitAccessEnabled=!1;this.updatedAccessLimitLevel=new LE;this.selectedDisplay$=new Kn(null);this.displays=Q1a;this.disabledDropdownTooltip="Only users with Issue Admin permission can adjust restriction levels.";this.currentIssueAccessLimitLevelDisplay$=Uf([this.selectedDisplay$,this.defaultAccessLimitLevel$]).pipe(C(function(c){var d=l(c);c=d.next().value;d=d.next().value;return c?c:RXc(a,d)}));
this.issueAccessLimitLevelDisplayTitle$=this.currentIssueAccessLimitLevelDisplay$.pipe(C(function(c){return c.title}));var b=r(Gg);this.defaultAccessLimitLevel$.pipe(lp(b)).subscribe(function(c){a.selectedDisplay$.next(RXc(a,c))})};Y(bS,Z);bS.\u0275dir=Z.\u0275dir;var RXc=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 R1a};nd.Object.defineProperties(bS.prototype,{defaultAccessLimitLevel:{configurable:!0,enumerable:!0,set:function(a){this.defaultAccessLimitLevel$.next(a)}}});
bS.\u0275fac=function(a){return new (a||bS)};
bS.\u0275cmp=y({type:bS,selectors:[["b-issue-access-limits-dropdown"]],inputs:{defaultAccessLimitLevel:"defaultAccessLimitLevel",disabled:"disabled",implicitAccessEnabled:"implicitAccessEnabled"},outputs:{updatedAccessLimitLevel:"updatedAccessLimitLevel"},standalone:!1,features:[Bg],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&&(J(0,"div",1)(1,"button",2),U(2,"async"),J(3,"span",3),M(4,"mat-icon",4),J(5,"span",5),R(6),U(7,"async"),K()(),M(8,"mat-icon",6),K(),F(9,T1a,1,1,"mat-icon",7),J(10,"mat-menu",8,0),Pg(12,U1a,7,3,"button",9,Og),K()());if(a&2){var c;a=Q(11);x();I("matMenuTriggerFor",a)("disabled",b.disabled);var d;Lg("aria-label","Issue Access level, "+
((d=(c=V(2,5,b.selectedDisplay$))==null?null:c.title)!=null?d:"Default access"));x(5);T(" ",V(7,7,b.issueAccessLimitLevelDisplayTitle$)," ");x(3);G(b.disabled?9:-1);x(3);Qg(b.displays)}},dependencies:[FC,oG,Jx,pG,sG,qG,uG,zG,xG,Tv],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 cS=function(){Z.apply(this,arguments);var a=this;this.errorHandler=r(aK);this.activeSession=r(Bs);this.issueApi=r(SD);this.issueFullFridge=r(TE);this.componentFridge=r(BB);this.trackerFridge=r(cG);this.eventsForIssueFridge=r(TD);this.issuePermissionService=r(OK);this.snackBar=r(DJ);this.dialogRef=r(KJ);this.data=r(QJ);this.analytics=r(RE);this.confirmationDialogService=r(YJ);this.jspbPrincipalTypes=r(EF);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(C(function(b){var c;return(c=b==null?void 0:b.snapshot[0].issueAccessLimitLevel)!=null?c:a.defaultAccessLimitLevel}));
this.updatedAccessLimitLevel$=new Kn(this.defaultAccessLimitLevel);this.hasAccessLimitLevelSelectionChanged$=Uf([this.currentAccessLimitLevel$,this.updatedAccessLimitLevel$]).pipe(C(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(C(function(b){return b==null?void 0:b.trackerId}));this.tracker$=this.trackerId$.pipe(xg(function(b){return b?
a.trackerFridge.watch(b):Nf(void 0)}));this.collaboratorGroupsEmailToDetailsMap=new Map;this.addedCollaboratorGroups=new Set;this.removedCollaboratorGroups=new Set;this.expandedAccessTooltip$=this.isImplicitAccessEnabled$.pipe(C(function(b){return b?"This component has expanded access enabled. Assignees, verifiers, and collaborators can edit issues, and CC'd users can add comments.":"This component has expanded access disabled. Being listed on the issue does not confer any additional access privileges."}))};
Y(cS,Z);cS.\u0275dir=Z.\u0275dir;
cS.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.currentAccessLimitLevel$.subscribe(function(b){a.updatedAccessLimitLevel$.next(b);V1a(a,b)}));this.subscriptions.add(Uf([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)};
cS.prototype.updateCollaboratorGroups=function(a,b){var c=this,d,e,f,h;z(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?B(k,SXc(c,b.snapshot[0].collaboratorsUsers),
3):k.jumpTo(0)}h=k.yieldResult;h.forEach(function(q){c.collaboratorGroupsEmailToDetailsMap.set(q.emailAddress,{user:q,specifiedOnIssue:!0})});Lf(k)})};
var SXc=function(a,b){var c,d;return z(function(e){if(e.nextAddress==1)return c=b.map(function(f){return f.emailAddress}).filter(Qj),B(e,Myc(a.jspbPrincipalTypes,c,!1),2);d=e.yieldResult;return e.return(b.filter(function(f){if(!f.emailAddress)return!1;var h;return((h=d[f.emailAddress])==null?void 0:h.principalType)==="GROUP"}))})},TXc=function(a){return a?"Expanded access on":"Expanded access off"},Y1a=function(a,b){return a.addedCollaboratorGroups.size>0||a.removedCollaboratorGroups.size>0||b===
!0},V1a=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=Rp(c.writers);a.appenders=Rp(c.appenders);a.readers=Rp(c.readers)},function(c){cK(a.errorHandler,
c)})};g=cS.prototype;g.manageComponentAccessRouterLink=function(a){return{path:"/components/"+a+"/manage",fragment:"access"}};g.closeDialog=function(){this.dialogRef.close()};g.onEnter=function(){this.onPressSave()};g.onEscape=function(){this.dialogRef.close()};
g.onPressSave=function(){var a=this,b=Op({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:Xi(c),onConfirm:function(){a.save()}})}};
g.save=function(){var a=this;this.dialogRef.close();this.issueApi.updateAccessLimit(this.issueId,this.updatedAccessLimitLevel$.value,Array.from(this.addedCollaboratorGroups),Array.from(this.removedCollaboratorGroups)).then(function(){a.didSave();a.analytics.trackEvent("issueAccessLimits","update","issue_access_limits_dialog:"+a.updatedAccessLimitLevel$.value);a.addedCollaboratorGroups.size>0&&a.analytics.trackEvent("quickAddCollaborators","update","idp_added:"+a.issueId);a.removedCollaboratorGroups.size>
0&&a.analytics.trackEvent("quickAddCollaborators","update","idp_removed:"+a.issueId)},function(b){cK(a.errorHandler,b)})};g.didSave=function(){this.snackBar.open("Successfully saved access configuration",void 0,{duration:2500});this.issueFullFridge.poke(this.issueId);this.eventsForIssueFridge.poke(this.issueId)};g.onPressCancel=function(){this.dialogRef.close()};cS.\u0275fac=function(){var a;return function(b){return(a||(a=Re(cS)))(b||cS)}}();
cS.\u0275cmp=y({type:cS,selectors:[["b-issue-access-limits-dialog"]],hostBindings:function(a,b){a&1&&N("keydown.escape",function(){return b.onEscape()})},standalone:!1,features:[Bg],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&&(J(0,"div",0)(1,"span",1),M(2,"mat-icon",2),K(),J(3,"h2",3),R(4,"Issue access level"),K()(),J(5,"mat-dialog-content")(6,"div"),M(7,"b-component-breadcrumb-chip",4),J(8,"span",5),U(9,"async"),J(10,"span",6),R(11),U(12,"async"),K(),M(13,"mat-icon",7),U(14,"async"),K()(),J(15,"b-issue-access-limits-dropdown",8),U(16,"async"),U(17,"async"),U(18,"async"),N("updatedAccessLimitLevel",function(h){b.updatedAccessLimitLevel$.next(h);V1a(b,h)}),K(),
F(19,X1a,8,4),U(20,"async"),J(21,"div",9)(22,"div")(23,"div",10),R(24,"Users who can edit, comment, and view"),K(),M(25,"b-multi-user-input",11),K(),J(26,"div")(27,"div",10),R(28,"Users who can comment and view"),K(),M(29,"b-multi-user-input",12),K(),J(30,"div")(31,"div",10),R(32,"Users who can only view"),K(),M(33,"b-multi-user-input",13),K()()(),J(34,"div",14),F(35,Z1a,5,3),U(36,"async"),Mg(37,$1a,2,0,"button",15),K());if(a&2){x(7);I("issueId",b.issueId)("componentId",b.data.componentId)("compactMode",
!0)("popoutLink",b.manageComponentAccessRouterLink)("readOnly",!0)("linkifyComponentNames",!1);x();uh("expanded-access-on",V(9,27,b.isImplicitAccessEnabled$));x(3);var c;wh(TXc((c=V(12,29,b.isImplicitAccessEnabled$))!=null?c:!1));x(2);var d;I("matTooltip",(d=V(14,31,b.expandedAccessTooltip$))!=null?d:"");x(2);var e,f;I("disabled",!V(16,33,b.hasAclToAdmin$))("defaultAccessLimitLevel",(e=V(17,35,b.currentAccessLimitLevel$))!=null?e:b.defaultAccessLimitLevel)("implicitAccessEnabled",(f=V(18,37,b.isImplicitAccessEnabled$))!=
null?f:!1);x(4);G(b.collaboratorGroupsEmailToDetailsMap.size>0&&V(20,39,b.hasAclToAdmin$)?19:-1);x(6);I("users",b.writers)("includeAliases",!1)("includeViewAliases",!1);Lg("disabled",!0);x(4);I("users",b.appenders)("includeAliases",!1)("includeViewAliases",!1);Lg("disabled",!0);x(4);I("users",b.readers)("includeAliases",!1)("includeViewAliases",!1);Lg("disabled",!0);x(2);G(V(36,41,b.hasAclToAdmin$)?35:37)}},dependencies:[bS,FC,aS,oG,Jx,WJ,VJ,zG,xG,IO,gM,hM,Tv,Yv],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 dS=function(){this.dialog=r(RJ);this.dialogRef=null};dS.prototype.open=function(a){this.dialogRef=this.dialog.open(cS,{panelClass:"no-jitter",data:a,ariaLabel:"Issue access level"})};dS.prototype.isOpen=function(){return this.dialogRef?this.dialogRef.getState()===0:!1};dS.\u0275fac=function(a){return new (a||dS)};dS.\u0275prov=Cd({token:dS,factory:dS.\u0275fac,providedIn:"root"});var eS=function(){this.buttonRef=r(Te);this.toRefocus=!1};eS.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}))};eS.\u0275fac=function(a){return new (a||eS)};
eS.\u0275dir=vf({type:eS,selectors:[["button","disabled","","focusBack",""]],inputs:{disabled:"disabled"},standalone:!1,features:[ov]});var fS=function(){this.activeSession=r(Bs);this.cdr=r(Hv);this.disabled=this.starred=!1;this.acceptInput=!0;this.starMessage="Star the issue";this.unStarMessage="Un-star the issue";this.starClicked=new LE;this.isAnonymous=this.activeSession.isAnonymous()};g=fS.prototype;g.onClick=function(a){a.stopPropagation();this.acceptInput&&(this.starClicked.emit(!!this.starred),this.cdr.markForCheck())};g.onEnter=function(a){this.onClick(a)};g.isDisabled=function(){return this.isAnonymous||this.disabled};
g.getLabel=function(){return this.isAnonymous?"Sign in to use full features.":this.starred?this.unStarMessage:this.starMessage};g.getAriaLabel=function(){return this.isAnonymous?"Sign in to use full features.":this.starMessage};fS.\u0275fac=function(a){return new (a||fS)};
fS.\u0275cmp=y({type:fS,selectors:[["b-star-toggle"]],inputs:{starred:"starred",disabled:"disabled",acceptInput:"acceptInput",starMessage:"starMessage",unStarMessage:"unStarMessage"},outputs:{starClicked:"starClicked"},standalone:!1,decls:4,vars:7,consts:[["tooltip","matTooltip"],[1,"inline-block",3,"matTooltip"],["type","button","mat-icon-button","","focusBack","","role","checkbox",1,"small",3,"keydown.enter","click","focus","blur","disabled"],[1,"icon-s",3,"svgIcon"]],template:function(a,b){if(a&
1){var c=t();J(0,"div",1,0)(2,"button",2);N("keydown.enter",function(d){u(c);return w(b.onEnter(d))})("click",function(d){u(c);return w(b.onClick(d))})("focus",function(){u(c);var d=Q(1);return w(d.show())})("blur",function(){u(c);var d=Q(1);return w(d.hide())});M(3,"mat-icon",3);K()()}a&2&&(I("matTooltip",b.getLabel()),x(2),uh("starred",b.starred),I("disabled",b.isDisabled()),Lg("aria-label",b.getAriaLabel())("aria-checked",b.starred),x(),I("svgIcon",b.starred?"star-filled":"star-empty"))},dependencies:[FC,
oG,Kx,zG,xG,eS],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 gS=function(){this.activeSession=r(Bs);this.ROUTES=Dq;this.isCompact=!1;this.starClicked=new LE;this.currentUserEmail=this.activeSession.getUserEmail()};gS.prototype.ngOnInit=function(){};gS.prototype.isDirectAdmin=function(a){return a?xj(a.adminUsers).includes(this.currentUserEmail):!1};gS.prototype.shouldShowStar=function(a){return!this.isDirectAdmin(a)&&!a.archived};gS.\u0275fac=function(a){return new (a||gS)};
gS.\u0275cmp=y({type:gS,selectors:[["hotlist-matlist-option"]],inputs:{hotlist:"hotlist",isCompact:"isCompact",starredHotlists:"starredHotlists",isSavingStar:"isSavingStar"},outputs:{starClicked:"starClicked"},standalone:!1,decls:1,vars:1,consts:[[1,"hotlist-link-and-star","flex-kids-x","align-items-center","gap-xs"],[1,"valign-middle",3,"starMessage","unStarMessage","acceptInput","starred"],[1,"spacer"],["target","_blank",1,"keep-focus-ring",3,"click","keydown.enter","matTooltip","routerLink"],["svgIcon",
"pop-out",1,"icon-s"],[1,"valign-middle",3,"starClicked","starMessage","unStarMessage","acceptInput","starred"]],template:function(a,b){a&1&&F(0,c2a,5,5,"span",0);a&2&&G(b.hotlist?0:-1)},dependencies:[FC,xC,fS,zG,xG,Tv],styles:[".hotlist-link-and-star[_ngcontent-%COMP%]{height:50px}.hotlist-link-and-star[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .hotlist-link-and-star[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:17px;line-height:17px}.hotlist-link-and-star[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin-right:2px}.hotlist-link-and-star[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:-2px}.hotlist-link-and-star[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]{width:24px}\n/*# sourceMappingURL=hotlist_matlist_option.css.map */"],
changeDetection:0});var UXc=function(){this.tokens=new Map};UXc.prototype.add=function(a,b){var c=this.tokens.get(a);c?c.push(b):this.tokens.set(a,[b]);return this};UXc.prototype.build=function(){var a=this,b=Array.from(this.tokens.keys()).sort();return new VXc(b.map(function(c){return{token:c,labels:a.tokens.get(c)}}))};var VXc=function(a){this.sortedEntries=a};
VXc.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};VXc.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 WXc=function(a,b){if(b.length===0)return new Set;for(var c=a.search(b[0]),d=1;d<b.length&&c.size>0;d++){var e=[].concat(p(a.search(b[d]))).filter(function(f){return c.has(f)});c=new Set(e)}return c};var XXc=function(a){this.hotlists=a;var b=new UXc,c=new UXc;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())?WKa(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())?WKa(d.description.toLowerCase()):[];e=l(f);for(f=e.next();!f.done;f=e.next())c.add(f.value,d)}this.nameTokenMatcher=b.build();this.descriptionTokenMatcher=c.build();this.positions=new Map(this.hotlists.map(function(h,
k){return[h,k]}))};
XXc.prototype.search=function(a){a=a.toLowerCase();for(var b=new Set,c=l(this.hotlists),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=(e=d.name)==null?void 0:e.toLowerCase(),h=void 0;e=(h=d.description)==null?void 0:h.toLowerCase();h=d.hotlistId;var k=void 0,q=void 0;(jsa(a)&&String(h).includes(a)||((k=f)==null?0:k.includes(a))||((q=e)==null?0:q.includes(a)))&&b.add(d)}a=WKa(a);c=l(WXc(this.nameTokenMatcher,a));for(d=c.next();!d.done;d=c.next())b.add(d.value);a=l(WXc(this.descriptionTokenMatcher,a));
for(c=a.next();!c.done;c=a.next())b.add(c.value);return YXc(this,b)};var YXc=function(a,b){return[].concat(p(b)).sort(function(c,d){c=a.positions.get(c);d=a.positions.get(d);return c===d?0:c<d?-1:1})};var hS=function(){this.innerHeight$=Xf(Yf(function(){return Nf(window.innerHeight)}),$f(window,"resize").pipe(C(function(){return window.innerHeight})))};hS.\u0275fac=function(a){return new (a||hS)};hS.\u0275prov=Cd({token:hS,factory:hS.\u0275fac,providedIn:"root"});var s2a=function(a,b){return b.hotlistId},ZXc={USER:"USER",ISSUE:"ISSUE",RECOMMENDED:"RECOMMENDED"},iS=function(){Z.call(this);var a=this;this.dialogRef=r(KJ);this.data=r(QJ);this.paths=r(oN);this.hotlistFridge=r(cD);this.currentUserBookmarksFridge=r(hD);this.hotlistApi=r(YC);this.snackBar=r(DJ);this.appEvents=r(FB);this.errorHandler=r(aK);this.userApi=r(bD);this.windowHeight=r(hS);this.permissionsFridge=r(DF);this.activeSession=r(Bs);this.isInternalSession=this.activeSession.isInternalSession();
this.HotlistType=ZXc;this.NO_ACCESS_MESSAGE="You don't have permissions to add/remove issues on this hotlist.";this.showCreateNewPane=!1;this.query$=new Kn("");this.debouncedQuery$=this.query$.pipe(kg(100),wg(""));this.hotlists=[];var b;this.allHotlistIds=new Set([].concat(p(this.data.selectedHotlistIds),p((b=this.data.partiallySelectedHotlistIds)!=null?b:[])));this.selectedHotlistIds=new Set(this.data.selectedHotlistIds);this.partiallySelectedHotlistIds=new Set(this.data.partiallySelectedHotlistIds);
var c;this.selectedHotlistIdsMap=F2a((c=this.data.selectedHotlistIdsMap)!=null?c:new Map);var d;this.originalSelectedHotlistIdsMap=F2a((d=this.data.selectedHotlistIdsMap)!=null?d:new Map);E2a(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 hy({name:new jy("",Si),description:new jy("")});this.starredHotlists=new IA;this.isSavingStar=new IA;this.userHotlists$=
iD(this.currentUserBookmarksFridge).pipe(C(function(e){return e.sort(C2a)}));this.issueHotlists$=this.hotlistFridge.watchSet(Array.from(this.allHotlistIds)).pipe(C(function(e){return e.sort(C2a)}));this.combineHotlistsWithPermissions=C(function(e){var f=a.permissionsFridge.watchSet(e.map(function(h){return"hotlists/"+h.hotlistId}));return e.map(function(h,k){return Object.assign({},h,{permissions$:f.pipe(C(function(q){return q[k]}))})})});this.recommendedHotlists$=this.data.recommendedHotlists$;this.hotlists$=
Uf([this.issueHotlists$,this.recommendedHotlists$,this.userHotlists$]).pipe(C(function(e){var f=l(e);e=f.next().value;var h=f.next().value;f=f.next().value;return[].concat(p(e.map(function(k){return Object.assign({},k,{type:"ISSUE"})})),p(h.map(function(k){return Object.assign({},k,{type:"RECOMMENDED"})})),p(f.map(function(k){return Object.assign({},k,{type:"USER"})})))}),C(Fsa(function(e){return e.hotlistId})),C(function(e){return e.filter(Qj)}),this.combineHotlistsWithPermissions,ug({bufferSize:1,
refCount:!0}));this.hotlistQuerySearcher$=this.hotlists$.pipe(C(function(e){return new XXc(e)}),ug({bufferSize:1,refCount:!0}));this.forceShowOverflow$=new tg;this.matchedHotlists$=Uf([this.debouncedQuery$,this.hotlistQuerySearcher$,this.hotlists$]).pipe(C(function(e){var f=l(e);e=f.next().value;var h=f.next().value;f=f.next().value;return e.trim()!==""?h.search(e):f}),ug({bufferSize:1,refCount:!0}));this.visibleHotlists$=Uf([this.matchedHotlists$,dg(this.matchedHotlists$.pipe(C(function(){return!1})),
this.forceShowOverflow$)]).pipe(C(function(e){var f=l(e);e=f.next().value;f=f.next().value;return e.length>200&&!f?e.slice(0,200):e}),ug({bufferSize:1,refCount:!0}));this.isOverflowMode$=Uf([this.matchedHotlists$,this.visibleHotlists$]).pipe(C(function(e){var f=l(e);e=f.next().value;f=f.next().value;return e.length!==f.length}));this.showLoadById$=this.query$.pipe(C(function(e){e=e.trim();return!a.allHotlistIds.has(Number(e))&&jsa(e)}));this.showCreateNew$=Uf([this.query$,this.matchedHotlists$]).pipe(C(function(e){var f=
l(e);e=f.next().value;f=f.next().value;return D2a(e,f)}));this.compactNumberOfHotlistsToShow$=this.windowHeight.innerHeight$.pipe(C(function(e){return Math.max(1,Math.floor(e*.5/24))}),og());this.compactNumberOfHotlistsToShow$.pipe(C(function(e){return e*24}));this.subscriptions.add(this.hotlists$.subscribe(function(e){a.hotlists=e;e=l(e);for(var f=e.next();!f.done;f=e.next())a.allHotlistIds.add(f.value.hotlistId)}))};Y(iS,Z);iS.\u0275dir=Z.\u0275dir;
iS.prototype.ngOnInit=function(){var a=this;$Xc(this);this.query$.pipe(yg(this.destroyed$)).subscribe(function(){a.hotlistUnderEdit.setValue({name:a.query$.value,description:""})})};
iS.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=Yra(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=Yra(f,(e=this.originalSelectedHotlistIdsMap.get(d))!=null?e:new Set))&&
b.push(d)}this.pristine=!a&&b.length===0;var h;b=(h=a==null?void 0:a.added.length)!=null?h:0;var k;h=(k=a==null?void 0:a.removed.length)!=null?k:0;h=l(a?b>0&&h===0?["Add ("+b+")","Add "+b+" hotlist(s)"]:b===0&&h>0?["Remove ("+h+")","Remove "+h+" hotlist(s)"]:["Save","Save all changes ("+b+" added, "+h+" removed)"]:["Save","(No changes)"]);k=h.next().value;h=h.next().value;this.saveBtnLabel=k;this.saveBtnTooltip=h};
var er=function(a){a.dialogRef.close({selectedHotlistIds:a.selectedHotlistIds,selectedHotlistIdsMap:a.selectedHotlistIdsMap})},z2a=function(a){var b;return(a=(b=a.hotlistUnderEdit.get("name"))==null?void 0:b.value)?a:""},aYc=function(a){var b;return(a=(b=a.hotlistUnderEdit.get("description"))==null?void 0:b.value)?a:""},y2a=function(a){a.snackBar.open("Saving hotlist...","dismiss",{duration:0});var b=z2a(a),c=aYc(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)})},$Xc=function(a){Rf(huc(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)})};
iS.prototype.toggleStar=function(a){var b=this,c,d,e;return z(function(f){switch(f.nextAddress){case 1:c=b.starredHotlists.has(a);d={resourceType:"HOTLIST",resourceId:a};Gf(f,2,3);b.isSavingStar.add(a);if(c)return b.starredHotlists.delete(a),B(f,b.userApi.removeUserBookmark(d),3);b.starredHotlists.add(a);return B(f,b.userApi.addUserBookmark(d),3);case 3:Hf(f);b.isSavingStar.delete(a);Jf(f,4);break;case 2:e=Kf(f);cK(b.errorHandler,e);f.jumpTo(3);break;case 4:b.appEvents.hotlistChanged.next(),b.appEvents.favoritesModified.next(),
Lf(f)}})};var f2a=function(a,b){a.hotlistApi.get(b).then(function(c){a.hotlists.push(c);a.selectedHotlistIds.add(c.hotlistId);er(a)}).catch(function(c){a.errorHandler.errorHandler(null,c)})};iS.\u0275fac=function(a){return new (a||iS)};
iS.\u0275cmp=y({type:iS,selectors:[["ng-component"]],hostBindings:function(a,b){a&1&&N("keydown.meta.enter",function(){return er(b)})("keydown.shift.enter",function(){return er(b)})("keydown.control.enter",function(){return er(b)})},standalone:!1,features:[Bg],decls:11,vars:2,consts:[["createNewHotlistBtn",""],["createNewHotlistPane",""],["searchBox",""],["content",""],["tooltip","matTooltip"],["type","button","mat-button","","mat-dialog-close","","tooltip","Dismiss modal","aria-label","Dismiss modal",
"role","button",3,"click"],["type","button","mat-flat-button","","color","primary",3,"mat-dialog-close","matTooltip","disabled"],[4,"ngTemplateOutlet"],["mat-dialog-title",""],[1,"search-container"],["svgIcon","search"],["type","search","spellcheck","false","autocomplete","off","aria-label","Filter hotlists","placeholder","Type to filter hotlists from your sidebar",1,"search-box",3,"input"],["mat-dialog-content","",1,"search-results"],["type","button",1,"load-from-id-btn"],["type","button",1,"create-new-hotlist-btn"],
["type","button",1,"load-from-id-btn",3,"click"],[1,"muted"],["type","button",1,"create-new-hotlist-btn",3,"click"],[1,"grid-two-col"],["aria-label","Hotlists","role","listbox"],[1,"column-1"],[3,"matTooltip"],[1,"hotlist-actions-column"],[1,"full-width",3,"has-description","hotlist","isCompact","starredHotlists","isSavingStar"],[1,"margin-top","kids-x"],[3,"class"],["role","option",1,"hotlist-list-item",3,"height"],["svgIcon","issue-status-new",1,"icon-s","vertical-centered"],["svgIcon","star-filled",
1,"icon-s","canned-search-icon"],[1,"icon-s"],["role","option",1,"hotlist-list-item",3,"focus","blur"],[1,"flex-kids-x","align-items-center"],["role","checkbox",3,"change","value","checked","disabled","indeterminate"],[1,"hotlist-matlist-option"],[1,"title-line"],[1,"overflow-ellipsis"],[1,"line-clamp-2","muted","type-s"],["role","checkbox",3,"click","change","value","checked","disabled","indeterminate"],[1,"full-width",3,"starClicked","hotlist","isCompact","starredHotlists","isSavingStar"],["type",
"button",1,"force-show-overflow-btn",3,"click"],["type","button","mat-flat-button","","color","primary",3,"click","mat-dialog-close","matTooltip","disabled"],["type","button","mat-flat-button","","color","primary","matTooltip","Create new hotlist","aria-label","Create",3,"click","disabled"],["mat-dialog-content",""],[1,"create-hotlist-pane"],[3,"formGroup"],["for","hotlist-name"],"type text autofocus autofocus id hotlist-name required  aria-required true formControlName name".split(" "),["for","hotlist-description",
1,"margin-s-top"],["id","hotlist-description","formControlName","description"]],template:function(a,b){if(a&1){var c=t();F(0,e2a,1,1,"ng-container")(1,u2a,15,9);J(2,"mat-dialog-actions")(3,"button",5);N("click",function(){u(c);b.dialogRef.close();return w()});R(4," Cancel ");K();F(5,w2a,1,1,"ng-container")(6,x2a,2,5,"button",6);K();D(7,A2a,2,1,"ng-template",null,0,Lh)(9,B2a,14,1,"ng-template",null,1,Lh)}a&2&&(G(b.showCreateNewPane?0:1),x(5),G(b.showCreateNewPane?5:6))},dependencies:[Sv,FC,SJ,UJ,WJ,
VJ,gM,hM,oG,Jx,ML,YL,ZL,ly,Ui,dy,ey,vy,qy,ry,zG,xG,gS,Tv],styles:[".left-padding[_ngcontent-%COMP%]{padding-left:10px}[_nghost-%COMP%]     .mat-mdc-dialog-content{width:500px;overflow-y:overlay}[_nghost-%COMP%]     .mat-mdc-dialog-title{margin:0}[_nghost-%COMP%]     .mat-mdc-dialog-title::before{height:unset}[_nghost-%COMP%]     .mat-mdc-dialog-title h2{margin-top:0;margin-bottom:8px}[_nghost-%COMP%]     .search-container{background-color:#f1f3f4;background-color:var(--main-search-bg);display:flex;flex-direction:row;justify-content:center;align-items:center;border-radius:8px;width:100%;height:40px}[_nghost-%COMP%]     .search-container mat-icon{margin-left:8px}[_nghost-%COMP%]     .search-container input.search-box{color:#202124;color:var(--text-high-contrast);outline:none;border:none;background-color:rgba(0,0,0,0);margin-left:5px;height:100%;width:100%;padding-right:4px}[_nghost-%COMP%]     .search-results mat-list{width:425px}[_nghost-%COMP%]     .search-results .hotlist-actions-column{padding:8px 0}[_nghost-%COMP%]     .search-results mat-list-item .title-line{display:flex;align-items:center;justify-content:space-between;height:24px}[_nghost-%COMP%]     .search-results mat-list-item a, [_nghost-%COMP%]     .search-results mat-list-item mat-icon{height:17px;line-height:17px}[_nghost-%COMP%]     .search-results mat-list-item p{font-size:.75rem;margin-top:-2px;line-height:1.2}[_nghost-%COMP%]     .create-new-hotlist-btn, [_nghost-%COMP%]     .load-from-id-btn, [_nghost-%COMP%]     .force-show-overflow-btn{background:none;border:none;text-align:left;min-height:34px;padding-left:38px}[_nghost-%COMP%]     .create-new-hotlist-btn:hover, [_nghost-%COMP%]     .load-from-id-btn:hover, [_nghost-%COMP%]     .force-show-overflow-btn:hover{cursor:pointer;background-color:rgba(0,0,0,.04);background-color:var(--hover)}[_nghost-%COMP%]     .create-hotlist-pane label{display:block;color:#5f6368;color:var(--muted);font-weight:500}[_nghost-%COMP%]     .create-hotlist-pane input, [_nghost-%COMP%]     .create-hotlist-pane textarea{width:100%;box-sizing:border-box}[_nghost-%COMP%]     mat-list-item .title-line p{font-size:.8125rem}[_nghost-%COMP%]     .mat-mdc-list-base{margin:0 -24px}[_nghost-%COMP%]     .mat-list-item.mat-list-item .mat-list-item-content .mat-list-text{padding-left:12px}[_nghost-%COMP%]     mat-list mat-list-item{padding:0}[_nghost-%COMP%]     mat-list mat-list-item mat-checkbox{padding:11px}[_nghost-%COMP%]     mat-list mat-list-item .hotlist-matlist-option{width:100%}[_nghost-%COMP%]     mat-list-item.hotlist-list-item{padding-left:0}[_nghost-%COMP%]     hotlist-matlist-option{display:block}[_nghost-%COMP%]     .has-description{height:72px}/*# sourceMappingURL=hotlist_picker_modal.css.map */"],
changeDetection:0});var jS=function(){this.dialog=r(RJ);this.issueFullFridge=r(TE);this.eventsForIssueFridge=r(TD);this.errorHandler=r(aK);this.issueRecommendationFridge=r($E);this.recommendationsApi=r(ZE);this.activeSession=r(Bs);this.analytics=r(RE)},cYc=function(a,b){var c,d,e,f;return z(function(h){if(h.nextAddress==1)return B(h,Rf(b),2);c=h.yieldResult;e=(d=c)==null?void 0:d.snapshot[0].hotlistId;if(!e||!c)return h.return();a.analytics.trackEvent("hotlistPicker","open","IDP");f=String(c.issueId);return B(h,bYc(a,
f,e),0)})},bYc=function(a,b,c,d){d=d===void 0?!0:d;var e,f,h,k,q,v,A;return z(function(E){switch(E.nextAddress){case 1:return e=dYc(a,b),f=e.pipe(C(function(H){return H.map(function(L){var O;return(O=L.content)==null?void 0:O.recommendedHotlist}).filter(Qj)}),zg(function(H){H.length>0&&a.analytics.trackEvent("hotlistRecommendation","display","hotlistPicker")})),h=new Map,h.set(b,new Set(c)),B(E,eYc(a,c,f),2);case 2:k=E.yieldResult;if(k==null||!k.hotlistDiff)return E.return();q=k.hotlistDiff;v=q.added.map(String);
A=q.removed.map(String);if(!d){E.jumpTo(3);break}return B(E,a.updateHotlists(b,v,A),4);case 4:return B(E,fYc(a,e,v),3);case 3:return E.return({addedIds:v,removedIds:A})}})},gYc=function(a,b){var c=!1;c=c===void 0?!0:c;var d,e,f,h,k,q,v,A,E,H,L,O,S,aa,ka,na,za,Na,Pa,hb,ua,Ha,Ia,tb,rb,dc,bc,Ac,ic;return z(function(ye){switch(ye.nextAddress){case 1:d=new Map;e=l(b.values());for(f=e.next();!f.done;f=e.next())if(h=f.value)for(k=l(h),q=k.next();!q.done;q=k.next())v=q.value,d.has(v)?(A=void 0,E=(A=d.get(v))!=
null?A:0,E++,d.set(v,E)):d.set(v,1);H=b.size;L=[];O=[];S=l(d.entries());for(aa=S.next();!aa.done;aa=S.next())ka=aa.value,na=l(ka),za=na.next().value,Na=na.next().value,Pa=za,hb=Na,hb<H?L.push(Pa):hb===H&&O.push(Pa);return B(ye,eYc(a,O,Nf([]),b,L),2);case 2:ua=ye.yieldResult;if(ua==null)return ye.return();if(!c){ye.jumpTo(3);break}Ha=l(ua.issueMapDiffs.entries());Ia=Ha.next();case 4:if(Ia.done){ye.jumpTo(3);break}tb=Ia.value;rb=l(tb);dc=rb.next().value;bc=rb.next().value;Ac=dc;ic=bc;return B(ye,a.updateHotlists(Ac,
ic.added.map(String),ic.removed.map(String)),5);case 5:Ia=Ha.next();ye.jumpTo(4);break;case 3:return ye.return(ua)}})};jS.prototype.updateHotlists=function(a,b,c){var d=this,e;return z(function(f){if(f.nextAddress==1)return Gf(f,2,3),B(f,d.issueFullFridge.updateHotlists(a,b,c),3);if(f.nextAddress!=2)return Hf(f),d.eventsForIssueFridge.poke(a),Jf(f,0);e=Kf(f);cK(d.errorHandler,e);return f.jumpTo(3)})};
var eYc=function(a,b,c,d,e){var f,h,k,q,v,A,E,H,L,O,S,aa,ka,na,za,Na,Pa,hb,ua;return z(function(Ha){if(Ha.nextAddress==1)return f={selectedHotlistIds:b,recommendedHotlists$:c,selectedHotlistIdsMap:d,partiallySelectedHotlistIds:e},h={panelClass:"no-jitter",data:f,ariaLabel:"Search for Hotlists"},k=a.dialog.open(iS,h),B(Ha,Rf(LJ(k)),2);q=Ha.yieldResult;if(!q)return Ha.return(Promise.resolve());v=q.selectedHotlistIds;A=q.selectedHotlistIdsMap;E=Yra(new Set(b),new Set(v));H=new Map;if(d&&A)for(L=l(A.entries()),
O=L.next();!O.done;O=L.next())S=O.value,aa=l(S),ka=aa.next().value,na=aa.next().value,za=ka,Na=na,Pa=void 0,hb=Yra((Pa=d.get(za))!=null?Pa:new Set,Na),ua=void 0,H.set(za,(ua=hb)!=null?ua:{added:[],removed:[]});return Ha.return(Promise.resolve({hotlistDiff:E,issueMapDiffs:H}))})},dYc=function(a,b){return b&&a.activeSession.isInternalSession()?a.issueRecommendationFridge.watch(b+"-HOTLIST").pipe(C(function(c){return(c==null?void 0:c.recommendations)||[]})):Nf([])},fYc=function(a,b,c){var d,e;return z(function(f){if(f.nextAddress==
1)return B(f,Rf(b),2);d=f.yieldResult;e=d.filter(function(h){var k,q;return(h=(k=h.content)==null?void 0:(q=k.recommendedHotlist)==null?void 0:q.hotlistId)&&c.includes(String(h))}).map(function(h){return{parent:h.name,userEngagement:{type:"ACCEPTED"}}});if(e.length===0)return f.return();a.analytics.trackEvent("hotlistRecommendation","accept","hotlistPicker");return B(f,a.recommendationsApi.createUserEngagements(e),0)})};jS.\u0275fac=function(a){return new (a||jS)};
jS.\u0275prov=Cd({token:jS,factory:jS.\u0275fac,providedIn:"root"});var hYc={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"},kS=function(){Z.apply(this,arguments);var a=this;this.butterBar=r(GJ);this.componentTemplatesFridge=r(IC);this.errorHandler=r(aK);this.triageService=r(nG);this.issueApi=r(SD);this.issueFullFridge=r(TE);this.editIssueService=r(RK);this.hotlistPickerService=
r(jS);this.issueCommentDialogsService=r(ZR);this.issueLimits=r(dS);this.issuePermissionService=r(OK);this.jspbPrincipalTypes=r(EF);this.statusMessages=r(gK);this.constants=r(dK);this.activeSession=r(Bs);this.issueEditComponentService=r(nN);this.IssueFieldKey=hYc;this.HOTKEYS=sp;this.FieldType=CL;this.ListFieldType=GPc;this.IssueType=moc;this.IssueSeverity=foc;this.IssuePriority=Tnc;this.IssueStatus=ioc;this.codeChangesValidator=Rwa;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 Kn(void 0);this.issueId$=this.triageService.currentIssueId$.pipe(eg(Qj),og());this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.defaultAssigneeForComponent$=this.componentId$.pipe(xg(function(b){return b?a.componentTemplatesFridge.defaultTemplate$(String(b)):Nf(void 0)}),C(function(b){return b&&zj(b.snapshot.assigneeUser)}));this.issueIds$=Uf([this.triageService.currentIssueIds$,
this.triageService.selectedIssueIds$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return c.length?c:b}));this.issues$=this.issueIds$.pipe(xg(function(b){return a.issueFullFridge.watchSet(b)}));this.editableIssues$=this.issueIds$.pipe(C(function(b){return b.map(function(c){return a.editIssueService.editableIssue(c)})}));this.editableIssue$=this.editableIssues$.pipe(C(function(b){return b[0]}));this.areEditableIssuesLoaded$=this.editableIssues$.pipe(C(function(b){return b.every(function(c){return c.issueId!==
""})}));this.fieldMultipleValueMap$=Uf([this.editableIssues$,this.areEditableIssuesLoaded$]).pipe(C(function(b){var c=l(b);b=c.next().value;if(!c.next().value)return new Map;gr(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 LE;this.completeAction=new LE;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:lKa(b)}});this.statusChoices=Roc.filter(function(b){return b.value!=="DUPLICATE"}).map(function(b){return Object.assign({},b,{hotkey:mKa(b.value)})});this.showAssigneeChips$=Uf([this.hasAclToEdit$,this.defaultAssigneeForComponent$,this.editableIssue$]).pipe(C(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 Kn(!1);this.showCommentInput=!1;this.collaboratorUserPrincipalValidator=function(b){var c,d,e;return z(function(f){if(f.nextAddress==1){if(!b)return f.return("This field is required");c=b.split(",").map(function(h){return h.trim()}).filter(Boolean);
return B(f,Myc(a.jspbPrincipalTypes,c,!1),2)}d=f.yieldResult;e=c.find(function(h){var k;return((k=d[h])==null?void 0:k.principalType)!=="USER"});return f.return(e?"You can only add users to collaborators.":"")})}};Y(kS,Z);kS.\u0275dir=Z.\u0275dir;g=kS.prototype;
g.ngOnInit=function(){for(var a=l(this.automaticChanges),b=a.next();!b.done;b=a.next())iYc(this,b.value);this.showCommentInput=this.expandCommentBox;a=ip(this.editableIssue$);this.componentId=a.componentId||void 0;this.componentId$.next(this.componentId);fr(this,a);hr(this,a)};g.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);var a=hp(this.issueId$);a&&this.editIssueService.clear(a)};
g.setSeverity=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setSeverity(b);gr(this,a)};g.setPriority=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setPriority(b);gr(this,a)};g.setAssignee=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setAssignee(b);gr(this,a)};g.setType=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setType(b);gr(this,a)};
g.setStatus=function(a,b){for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setStatus(b);gr(this,a)};g.setComponent=function(a,b){this.componentId=b;this.componentId$.next(b);for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.componentId=b;gr(this,a)};g.setCodeChanges=function(a,b){a=l(a);for(var c=a.next();!c.done;c=a.next())c.value.setCodeChanges(b)};g.setCcs=function(a,b){b=[].concat(p(new Set(b.newUsers)));for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.cc=b;hr(this,a[0])};
g.setCollaborators=function(a,b){b=[].concat(p(new Set(b.newUsers)));for(var c=l(a),d=c.next();!d.done;d=c.next())d.value.setCollaborators(b);fr(this,a[0])};
var c3a=function(a,b){for(var c=a.activeSession.getUserEmail(),d=l(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.cc.filter(function(h){return h!==c});e.cc=f}hr(a,b[0]);gr(a,b)},Y2a=function(a,b){for(var c=a.activeSession.getUserEmail(),d=l(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.collaborators.filter(function(h){return h!==c});e.setCollaborators(f)}fr(a,b[0]);gr(a,b)},Z2a=function(a,b,c){for(var d=l(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.collaborators.filter(function(h){return!c.includes(h)});
e.setCollaborators(f)}fr(a,b[0]);gr(a,b)},d3a=function(a,b,c){for(var d=l(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.cc.filter(function(h){return!c.includes(h)});e.cc=f}hr(a,b[0]);gr(a,b)},f3a=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!NK(a.issuePermissionService,f)}),d.cc=e):(e.push(a.activeSession.getUserEmail()),d.cc=e)}hr(a,b[0])};
kS.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!NK(b.issuePermissionService,f)}),d.setCollaborators(e)):(e.push(this.activeSession.getUserEmail()),d.setCollaborators(e))}fr(this,a[0])};
var hr=function(a,b){a.isCurrentUserCcd=b.cc.includes(a.activeSession.getUserEmail())},fr=function(a,b){a.isCurrentUserCollaborator=b.collaborators.includes(a.activeSession.getUserEmail())},j3a=function(a,b){return a.automaticChanges.find(function(c){return c.field===b})},jYc=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};
kS.prototype.save=function(a){var b=this,c,d,e,f,h,k,q,v,A,E;return z(function(H){if(H.nextAddress==1){b.isSaving$.next(!0);c=a[0];d=a.map(function(L){return $Jc(L)}).flat().filter(function(L){return L!==null});e=d.map(function(L){return{issueIds:[L.issueId],actions:L.actions}});f=jYc(b,a);e.push.apply(e,p(f));h=a.map(function(L){return L.issueId});(k=kYc(b,c.issueId)?{fieldName:"comment",value:b.editIssueService.issueCommentDraft(c.issueId).comment().value}:null)&&e.push({issueIds:h,actions:[k]});
b.customFieldBulkEditOps.length&&e.push.apply(e,p(b.customFieldBulkEditOps));q=l(a);for(v=q.next();!v.done;v=q.next())A=v.value,E=A.customFieldMap,Object.assign(b.customFieldMap,E);return B(H,b.sendBulkEditRequest(e),2)}if(H.nextAddress!=3)return B(H,b.updateHotlists(),3);b.isSaving$.next(!1);b.completeAction.emit(h);Lf(H)})};kS.prototype.toggleAccessLimits=function(a){this.issueLimits.isOpen()||this.componentId&&this.issueLimits.open({componentId:this.componentId,issueId:a})};
var gr=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!Jsa(e.cc,c.cc)});a.doesFieldHaveMultipleValues.set("CC_LIST",d);b=b.some(function(e){return!Jsa(e.collaborators,c.collaborators)});a.doesFieldHaveMultipleValues.set("COLLABORATORS",b)},kYc=function(a,b){b=a.editIssueService.issueCommentDraft(b).comment();return a.showCommentInput&&!!b.value},V2a=function(a,b){var c;return z(function(d){if(d.nextAddress==1)return a.showCommentInput=
!1,B(d,Bq(0),2);(c=b)==null||c.focus();Lf(d)})},iYc=function(a,b){var c,d;z(function(e){switch(e.nextAddress){case 1:return B(e,Rf(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:pb(d)}e.jumpTo(0);break;case 3:return B(e,a.setComment(b.value),5);case 5:e.jumpTo(0)}})};
kS.prototype.setComment=function(a){var b=this,c,d,e;return z(function(f){if(f.nextAddress==1)return B(f,Rf(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 h=b.editIssueService.issueCommentDraft(c).comment();h.value===a&&(h.value=e)});Lf(f)})};
kS.prototype.updateHotlists=function(){var a=this,b,c,d,e,f;return z(function(h){switch(h.nextAddress){case 1:return(b=a.fields.includes("HOTLISTS"))?B(h,Rf(a.issues$),2):h.return();case 2:c=h.yieldResult;if(!c||!c.length)return h.return();d=l(c);e=d.next();case 3:if(e.done){h.jumpTo(0);break}f=e.value;return B(h,lYc(a,f),4);case 4:e=d.next(),h.jumpTo(3)}})};
var lYc=function(a,b){var c,d,e,f;return z(function(h){e=(c=b.snapshot[0])==null?void 0:(d=c.hotlistId)==null?void 0:d.map(String);return e?(f=a.hotlistIdsMap.get(b.issueId))?B(h,a.hotlistPickerService.updateHotlists(b.issueId,f.added.map(function(k){return k.toString()}),f.removed.map(function(k){return k.toString()})),0):h.return():h.return()})};
kS.prototype.sendBulkEditRequest=function(a){var b=this,c;return z(function(d){c={bulkEditOps:a};Kq(b.butterBar,"Saving changes...",0);return d.return(b.issueApi.issueBulkEdit(c).then(function(e){e.errors&&e.errors.length?(e=Bwa(e.errors),b.butterBar.showWarning("Failed to update issue(s) "+e+".")):(e=UKc(b.statusMessages,c,b.customFieldMap))?Kq(b.butterBar,e):Kq(b.butterBar,"Saved "+rOa(a).length+" issue(s).")}).catch(function(e){b.errorHandler.errorHandler(null,e)}))})};
kS.\u0275fac=function(){var a;return function(b){return(a||(a=Re(kS)))(b||kS)}}();
kS.\u0275cmp=y({type:kS,selectors:[["verify-fields"]],inputs:{fields:"fields",automaticChanges:"automaticChanges",showAssignToSelf:"showAssignToSelf",showAssignToDefault:"showAssignToDefault",expandCommentBox:"expandCommentBox",phase:"phase",subphase:"subphase"},outputs:{cancelAction:"cancelAction",completeAction:"completeAction"},standalone:!1,features:[Bg],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,n3a,2,3),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.issues$))?0:-1,c)}},styles:["[_nghost-%COMP%]     .bv2-issue-metadata{padding:0}[_nghost-%COMP%]     .bv2-issue-metadata .bv2-issue-metadata-field.bv2-issue-metadata-field{margin:0}[_nghost-%COMP%]     .bv2-issue-metadata onedev-edit-field{margin:0!important}[_nghost-%COMP%]     .bv2-issue-metadata onedev-edit-field onedev-field-label{width:unset;min-width:75px}[_nghost-%COMP%]     .bv2-issue-metadata onedev-edit-field onedev-user-picker button{padding-left:9px}[_nghost-%COMP%]     .bv2-issue-metadata .bv2-issue-metadata-list-field .no-value{display:none}[_nghost-%COMP%]     .bv2-issue-metadata .bv2-editable-title{width:unset}[_nghost-%COMP%]     b-post-comment{margin-bottom:0}[_nghost-%COMP%]     b-post-comment .bv2-comment-box-container .bv2-comment-toolbar{margin:0}[_nghost-%COMP%]     b-post-comment .md-preview{margin-top:0}[_nghost-%COMP%]     b-post-comment .bv2-edit-issue-add-comment{padding-top:0}.hotlist-container[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:2px;line-height:20px;max-height:72px;overflow-y:auto}.add-assignee-btn[_ngcontent-%COMP%], .add-hotlists-btn[_ngcontent-%COMP%], button.gmat-mdc-button[_ngcontent-%COMP%]:not(.mat-mdc-icon-button).add-hotlists-btn{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;color:#202124;color:var(--text);background-color:#fff;background-color:var(--surface-default);line-height:22px;height:22px;min-width:22px;padding:0 8px;border-radius:11px;margin-right:4px}.add-hotlists-btn.mat-mdc-outlined-button[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin-right:4px}.bv2-issue-metadata[_ngcontent-%COMP%]{max-height:50vh;padding-right:10px}"]});var lS=function(){Z.apply(this,arguments);this.TriageActionKey=Izc;this.TriagePhase=koc;this.TriageSubphase=loc;this.CONFIRM_ACTION=Kzc;this.SET_IN_PROGRESS=Mzc;this.SET_FIXED=Szc;this.CHANGE_COMPONENT=Tzc;this.NEEDS_MORE_INFO=Jzc;this.SET_WONT_FIX=Qzc;this.SET_NEW=Rzc;this.SET_PENDING_OWNER=Lzc;this.SET_EXPECTED=Nzc;this.SET_PLANNED=Ozc;this.SET_COMMITTED=Pzc;this.needsInfoAutomaticChanges=[];this.cancelAction=new LE;this.finalizeAction=new LE};Y(lS,Z);lS.\u0275dir=Z.\u0275dir;
lS.\u0275fac=function(){var a;return function(b){return(a||(a=Re(lS)))(b||lS)}}();
lS.\u0275cmp=y({type:lS,selectors:[["secondary-footer"]],inputs:{needsInfoAutomaticChanges:"needsInfoAutomaticChanges",selectedTriageAction:"selectedTriageAction"},outputs:{cancelAction:"cancelAction",finalizeAction:"finalizeAction"},standalone:!1,features:[Bg],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,
p3a,1,1,"ng-container")(1,r3a,1,1,"ng-container")(2,t3a,1,1,"ng-container")(3,v3a,1,1,"ng-container")(4,x3a,1,1,"ng-container")(5,z3a,1,1,"ng-container")(6,B3a,1,1,"ng-container")(7,D3a,1,1,"ng-container")(8,F3a,1,1,"ng-container")(9,H3a,1,1,"ng-container")(10,J3a,1,1,"ng-container"),D(11,K3a,4,7,"ng-template",null,0,Lh)(13,L3a,4,2,"ng-template",null,1,Lh)(15,M3a,4,2,"ng-template",null,2,Lh)(17,N3a,4,2,"ng-template",null,3,Lh)(19,O3a,4,3,"ng-template",null,4,Lh)(21,P3a,4,3,"ng-template",null,5,Lh)(23,
Q3a,4,3,"ng-template",null,6,Lh)(25,R3a,4,3,"ng-template",null,7,Lh)(27,S3a,4,3,"ng-template",null,8,Lh)(29,T3a,4,3,"ng-template",null,9,Lh)(31,U3a,4,2,"ng-template",null,10,Lh));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:[Sv,kS],encapsulation:2,changeDetection:0});var mS=function(){this.issueExperimentalFieldsFridge=r(eE)},mYc=function(a,b,c){var d;return z(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("le");default:pb(c)}e.jumpTo(13);break;case 2:return B(e,a.setNeedsInfo(b),14);case 14:d=e.yieldResult;e.jumpTo(13);break;case 3:return B(e,a.setConfirmed(b),15);case 15:d=e.yieldResult;e.jumpTo(13);break;case 4:return B(e,a.setPendingOwner(b),16);case 16:d=e.yieldResult;e.jumpTo(13);break;case 5:return B(e,a.setNew(b),17);case 17:d=e.yieldResult;e.jumpTo(13);break;case 6:return B(e,
a.setInProgress(b),18);case 18:d=e.yieldResult;e.jumpTo(13);break;case 7:return B(e,a.setExpected(b),19);case 19:d=e.yieldResult;e.jumpTo(13);break;case 8:return B(e,a.setPlanned(b),20);case 20:d=e.yieldResult;e.jumpTo(13);break;case 9:return B(e,a.setCommitted(b),21);case 21:d=e.yieldResult;e.jumpTo(13);break;case 10:return B(e,a.setFixed(b),22);case 22:d=e.yieldResult;e.jumpTo(13);break;case 11:return B(e,a.setNew(b),23);case 23:d=e.yieldResult;e.jumpTo(13);break;case 12:return B(e,a.setWontFix(b),
24);case 24:d=e.yieldResult;e.jumpTo(13);break;case 13:return e.return(d)}})};g=mS.prototype;g.setNeedsInfo=function(a){var b=this;return z(function(c){return c.nextAddress==1?B(c,Promise.all(a.map(function(d){return z(function(e){return e.nextAddress==1?B(e,fE(b.issueExperimentalFieldsFridge,d,function(f){f.triage.phase="NEW";f.triage.subphase="NEEDS_INFO"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
g.setConfirmed=function(a){var b=this;return z(function(c){return c.nextAddress==1?B(c,Promise.all(a.map(function(d){return z(function(e){return e.nextAddress==1?B(e,fE(b.issueExperimentalFieldsFridge,d,function(f){f.triage.phase="CONFIRMED";f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
g.setPendingOwner=function(a){var b=this;return z(function(c){return c.nextAddress==1?B(c,Promise.all(a.map(function(d){return z(function(e){return e.nextAddress==1?B(e,fE(b.issueExperimentalFieldsFridge,d,function(f){f.triage.phase="CONFIRMED";f.triage.subphase="PENDING_OWNER"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
g.setInProgress=function(a){var b=this;return z(function(c){return c.nextAddress==1?B(c,Promise.all(a.map(function(d){return z(function(e){return e.nextAddress==1?B(e,fE(b.issueExperimentalFieldsFridge,d,function(f){f.triage.phase="IN_PROGRESS";f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
g.setExpected=function(a){var b=this;return z(function(c){return c.nextAddress==1?B(c,Promise.all(a.map(function(d){return z(function(e){return e.nextAddress==1?B(e,fE(b.issueExperimentalFieldsFridge,d,function(f){f.triage.phase="IN_PROGRESS";f.triage.subphase="EXPECTED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
g.setPlanned=function(a){var b=this;return z(function(c){return c.nextAddress==1?B(c,Promise.all(a.map(function(d){return z(function(e){return e.nextAddress==1?B(e,fE(b.issueExperimentalFieldsFridge,d,function(f){f.triage.phase="IN_PROGRESS";f.triage.subphase="PLANNED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
g.setCommitted=function(a){var b=this;return z(function(c){return c.nextAddress==1?B(c,Promise.all(a.map(function(d){return z(function(e){return e.nextAddress==1?B(e,fE(b.issueExperimentalFieldsFridge,d,function(f){f.triage.phase="IN_PROGRESS";f.triage.subphase="COMMITTED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
g.setFixed=function(a){var b=this;return z(function(c){return c.nextAddress==1?B(c,Promise.all(a.map(function(d){return z(function(e){return e.nextAddress==1?B(e,fE(b.issueExperimentalFieldsFridge,d,function(f){f.triage.phase="FIXED";f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
g.setNew=function(a){var b=this;return z(function(c){return c.nextAddress==1?B(c,Promise.all(a.map(function(d){return z(function(e){return e.nextAddress==1?B(e,fE(b.issueExperimentalFieldsFridge,d,function(f){f.triage.phase="NEW";f.triage.triagerEmail=void 0;f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};
g.setWontFix=function(a){var b=this;return z(function(c){return c.nextAddress==1?B(c,Promise.all(a.map(function(d){return z(function(e){return e.nextAddress==1?B(e,fE(b.issueExperimentalFieldsFridge,d,function(f){f.triage.phase="WONT_FIX";f.triage.triagerEmail=void 0;f.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):e.return(e.yieldResult)})})),2):c.return(c.yieldResult)})};mS.\u0275fac=function(a){return new (a||mS)};mS.\u0275prov=Cd({token:mS,factory:mS.\u0275fac,providedIn:"root"});var nYc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(nYc,n);var oYc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(oYc,n);g=oYc.prototype;g.getDataCase=function(){return Ml(this,pYc)};g.clearData=function(){return Aec(this,pYc)};g.getText=function(){return Ol(this,2,pYc)};g.setText=function(a){return Rl(this,2,pYc,a)};g.getVideoMetadata=function(){return im(this,nYc,14,qYc)};g.hasVideoMetadata=function(){return vm(this,nYc,14,qYc)};var pYc=[2,3,4,5,6,7,9,10,15],qYc=[14];var nS=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(nS,n);nS.prototype.getPartsList=function(){return Sj(this,oYc,1,Bj())};nS.prototype.addParts=function(a){return Po(this,1,oYc,a)};nS.prototype.getRole=function(){return Rc(this,2)};nS.prototype.setRole=function(a){return Hj(this,2,a)};var rYc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(rYc,n);rYc.prototype.setModel=function(a){return Hj(this,1,a)};var V3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(V3a,n);g=V3a.prototype;g.getIndex=function(){return Ej(this,3)};g.setIndex=function(a){Ok(this,3,a)};g.getContent=function(){return W(this,nS,1)};g.setContent=function(a){return X(this,nS,1,a)};g.hasContent=function(){return tk(this,nS,1)};var ir=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ir,n);ir.prototype.getModelVersion=function(){return Rc(this,4)};ir.prototype.setModelVersion=function(a){return Hj(this,4,a)};ir.prototype.getResponseId=function(){return Rc(this,5)};ir.prototype.setResponseId=function(a){return Hj(this,5,a)};var sYc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,sYc.messageId)};Y(sYc,n);sYc.messageId="b.GenerateContentResponse";var oS=function(){this.executor=r(QA)};oS.\u0275fac=function(a){return new (a||oS)};oS.\u0275prov=Cd({token:oS,factory:oS.\u0275fac,providedIn:"root"});var pS=function(){var a=this;this.geminiApi=r(oS);this.issueFridge=r(iE);this.issueFullFridge=r(TE);this.getLlmResponse=Dsa(function(b,c){var d,e;return z(function(f){if(f.nextAddress==1){d={prompt:b};var h=a.geminiApi;var k;var q=(new rYc).setModel((k=d.model)!=null?k:"models/gemini-1.5-flash");k=(new nS).addParts((new oYc).setText(d.prompt));q=Po(q,2,nS,k);h=h.executor.post({url:"/action/gemini/generate",options:{params:{feature:c}},body:q,responseConstructor:sYc}).then(W3a);return B(f,h,2)}e=f.yieldResult;
return f.return(e.output)})})},tYc=function(a,b){return b.length<3?Nf("Unknown (cluster is too small)"):Yf(function(){return a.issueFridge.watchSet(b)}).pipe(xg(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")}))},vYc=function(a,b,c){return Yf(function(){return Uf(b.map(function(d){return a.issueFridge.watchSet(d)})).pipe(xg(function(d){d=
d.map(function(e){return e.map(function(f){return f.snapshot[0].title})});return uYc(a,d,c)}))})},uYc=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 Yf(function(){return a.getLlmResponse(f,"CLUSTER_TITLE")}).pipe(C(function(h){return h.split(",")}))},wYc=function(a,b){return b.length<3?Nf("Unknown (cluster is too small)"):Yf(function(){return a.issueFullFridge.watchSet(b)}).pipe(xg(function(c){var d,e,f,h,k,q,v;return z(function(A){if(A.nextAddress==1)return d="<START>",e="<END>",f=c.map(function(E){var H;return"Task b/"+E.issueId+' has title "'+E.snapshot[0].title+'" and has description "'+((H=E.description)==null?void 0:H.unlinkifiedComment.substring(0,
100))+'"'}).join("\n"),h="\nYou are a world-class technical lead and manager in software engineering, tasked with summarizing a set of issues using data from a issue tracking tool. You will receive a list of issues including titles and descriptions.\n\nGeneral Information:\n\nIssues: Issues are stored in a system called Buganizer and are usually referred as b/<id>. All b/<id> are references to the same issue. http://b/<id> can be used to refer to a issue in summary.\n\nSteps to Follow:\n\n1. Understand Issue Context: Use the issue title and description to understand the nature of the issue. DO NOT include the titles or specific names of issues in the summary.\n2. Generate Summary:\n  - Start with a high-level overview of the issues, in one small sentence, focusing on the key accomplishments and outcomes. Summarize the issues and their impact, using concise and informative language. Don't include introductory phrases and additional formatting. Skip this if you don't find a common theme. Don't hallucinate.\n  - Use the format "+
d+" and "+e+" tags for the summary without additional headers.\n  - If you need to reference issues in the summary, you may do so by their IDs as http://b/<id>\n\nImportant: Ensure the summary is concise, informative, and does not include any issue titles or names.\n\nIssues, title and description:\n\n"+f+"\n\nOutput:\n",B(A,a.getLlmResponse(h,"CLUSTER_DESCRIPTION"),2);k=A.yieldResult;q=k.indexOf(d);v=k.indexOf(e);return A.return(k.substring(q+d.length,v).trim())})}))};
pS.\u0275fac=function(a){return new (a||pS)};pS.\u0275prov=Cd({token:pS,factory:pS.\u0275fac,providedIn:"root"});var xYc=ru(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/homepage-feedback-dark-mode.md"]),yYc=ru(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/homepage-feedback.md"]),zYc=ru(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback-dark-mode.md"]),AYc=ru(["https://g3doc.corp.google.com/company/teams/buganizer/feedback-dialog/feedback.md"]),qS=function(){var a=this;this.dialogRef=r(KJ);this.darkmodeService=r(FO);this.data=
r(QJ);this.contentLoaded=!1;this.docUrl$=this.darkmodeService.clientDarkmode$.pipe(C(function(b){switch(a.data.type){case "HOMEPAGE":return b?aj(xYc):aj(yYc);default:return b?aj(zYc):aj(AYc)}}))};qS.\u0275fac=function(a){return new (a||qS)};
qS.\u0275cmp=y({type:qS,selectors:[["b-feedback-dialog"]],standalone:!1,decls:9,vars:4,consts:[["mat-dialog-content",""],["frameborder","0","allowtransparency","true",3,"loading","src"],["diameter","60"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium",3,"click"],["type","button","mat-flat-button","","cdkFocusInitial","","color","primary",1,"medium","dialog-primary-action",3,"click"],["frameborder","0","allowtransparency","true",3,"load","src"]],template:function(a,b){a&1&&(J(0,
"div",0),F(1,X3a,1,3,"iframe",1),U(2,"async"),F(3,Y3a,1,0,"mat-spinner",2),K(),J(4,"div",3)(5,"button",4),N("click",function(){return b.dialogRef.close(!1)}),R(6," Cancel "),K(),J(7,"button",5),N("click",function(){return b.dialogRef.close(!0)}),R(8," File a new issue "),K()());if(a&2){var c;x();G((c=V(2,2,b.docUrl$))?1:-1,c);x(2);G(b.contentLoaded?-1:3)}},dependencies:[WJ,VJ,oG,Jx,xN,vN,Tv],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 kr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(kr,n);g=kr.prototype;g.getEnableSsEngine=function(){return kk(this,2)};g.getEnableAwr=function(){return kk(this,3)};g.getAlohaAutoGaRollout=function(){return kk(this,5)};g.getEnableConfigurator=function(){return kk(this,6)};g.getEnableMweb=function(){return kk(this,7)};var CYc=function(){var a=BYc();return pm(a,7,!0)};kr.prototype.getEnableCtlConsentCheckbox=function(){return kk(this,8)};
kr.prototype.getEnableIframe=function(){return kk(this,9)};var BYc=function(){var a=new kr;a=pm(a,5,!0);a=pm(a,2,!0);a=pm(a,4,!1);a=pm(a,8,!0);return pm(a,9,!0)};kr.prototype.getEnableScreenshotNudge=function(){return kk(this,10)};var DYc=function(){var a=CYc();return pm(a,10,!0)};kr.prototype.getEnableWebStartupConfigEndpoint=function(){return kk(this,11)};kr.prototype.getEnableJunkNudge=function(){return kk(this,12)};var q4a=function(){var a=DYc();return pm(a,12,!0)};g=kr.prototype;
g.getEnableConfiguratorLocale=function(){return kk(this,13)};g.getEnableTinyNoPointer=function(){return kk(this,14)};g.getEnableSupportSessionLogging=function(){return kk(this,15)};g.getEnableFileUploadForScreenshot=function(){return kk(this,16)};g.getEnableDirectDeflectionForSingleCategory=function(){return kk(this,17)};g.getEnableImageSanitization=function(){return kk(this,18)};g.getEnableAlohaBinarySplit=function(){return kk(this,19)};g.getEnableDbFeedbackIntents=function(){return kk(this,20)};
g.getEnableMarkMandatoryFieldsWithRequired=function(){return kk(this,21)};g.getEnableFeedbackCategoryCustomUi=function(){return kk(this,22)};g.getEnableRealtimeCtl=function(){return kk(this,23)};var p4a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(p4a,n);var Z3a=[/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 a4a="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 b4a=ru(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),c4a=ru(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var e4a,h4a,f4a,i4a;var EYc=function(a,b,c){a.timeOfStartCall=(new Date).getTime();var d=c||ea,e=d.document,f=a.nonce||Yda(d.document);f&&!a.nonce&&(a.nonce=f);if(a.flow=="help"){var h=xp("document.location.href",d);!a.helpCenterContext&&h&&(a.helpCenterContext=h.substring(0,1200));h=!0;if(b&&JSON&&JSON.stringify){var k=JSON.stringify(b);(h=k.length<=1200)&&(a.psdJson=k)}h||(b={invalidPsd:!0})}b=[a,b,c];d.GOOGLE_FEEDBACK_START_ARGUMENTS=b;c=a.feedbackServerUri||"//www.google.com/tools/feedback";if(h=d.GOOGLE_FEEDBACK_START)h.apply(d,
b);else{d=c+"/load.js?";for(var q in a)b=a[q],b==null||La(b)||(d+=encodeURIComponent(q)+"="+encodeURIComponent(b)+"&");a=Gp(e).createElement("SCRIPT");f&&a.setAttribute("nonce",f);jd(a,Xc(d));e.body.appendChild(a)}},FYc=function(a,b,c,d){var e,f;z(function(h){e=c||ea;var k=a.serverEnvironment==="DEV",q=c||ea;q=a.nonce||Yda(q.document);k={integrationKeys:{productId:a.productId,feedbackBucket:a.bucket,triggerId:a.triggerId},callbacks:{onClose:a.callback,onLoad:a.onLoadCallback},formContent:{locale:a.locale,
disableScreenshot:a.disableScreenshotting,productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,userEmail:void 0,defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:a.abuseLink,additionalDataConsent:a.additionalDataConsent},initializationData:{isLocalServer:k,nonce:q,useNightlyRelease:k,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,
submissionServerUri:a.feedbackServerUri,colorScheme:a.colorScheme},extraData:{productVersion:a.productVersion,authUser:a.authuser,configuratorId:a.configuratorId,customZIndex:a.customZIndex,tinyNoPointer:a.tinyNoPointer,allowNonLoggedInFeedback:a.allowNonLoggedInFeedback,enableAnonymousFeedback:a.enableAnonymousFeedback}};b&&(q=new Map(Object.entries(b)),k.extraData.productSpecificData=q);f=k;return B(h,m4a(f,d,e),0)})},GYc=function(a,b,c){try{if(a.flow==="help"){var d=a.helpCenterPath.replace(/^\//,
"");id(c||window,"https://support.google.com/"+d)}else a.flow==="submit"?EYc(a,b,c):r4a(a.productId,a.feedbackServerUri).then(function(e){e=W(e,kr,1);var f=!Jdc||(e==null?void 0:e.getEnableMweb()),h=!a.tinyNoPointer||(e==null?void 0:e.getEnableTinyNoPointer());!e||e.getAlohaAutoGaRollout()&&f&&h?FYc(a,b,c,e):EYc(a,b,c)},function(e){e&&e.name!=="DuplicateFormError"&&EYc(a,b,c)})}catch(e){FYc(a,b,c,null)}};ldc("userfeedback.api.startFeedback",GYc);var HYc={width:"500px",maxHeight:"80vh",autoFocus:!0},IYc=new Date,rS=function(){this.activeSession=r(Bs);this.matDialog=r(RJ);this.reportStartTime=new Date};rS.prototype.startFeedback=function(){var a=this;this.reportStartTime=new Date;this.activeSession.isInternalSession()?LJ(this.matDialog.open(qS,Object.assign({},HYc,{height:"640px",data:{type:"DEFAULT"}}))).subscribe(function(b){b&&JYc(a)}):JYc(this)};
var d3b=function(a){a.reportStartTime=new Date;a.activeSession.isInternalSession()?LJ(a.matDialog.open(qS,Object.assign({},HYc,{height:"400px",data:{type:"HOMEPAGE"}}))).subscribe(function(b){b&&JYc(a)}):JYc(a)},JYc=function(a){var b={productId:92912,nonce:a.activeSession.getCspNonce(),productVersion:"buganizer.frontend_20250813.07_p1"};b.bucket=Eq(a.activeSession)?"buganizer-trackers-feedback":"buganizer3-feedback";for(var c=[],d=c.concat,e=p([]),f=[],h=l(a.activeSession.session.config.enabledFlags),
k=h.next();!k.done;k=h.next()){var q=l(k.value);k=q.next().value;(q=q.next().value)&&f.push(k)}c=d.call(c,e,p(f)).join(", ");c={userType:a.activeSession.getUserTypeLabel(),flags:c};if(Eq(a.activeSession)){var v,A;c.trackerId=(A=(v=a.activeSession.getTracker())==null?void 0:v.trackerId)!=null?A:""}c.initialLoadTime=s4a(IYc);c.reportStartTime=s4a(a.reportStartTime);GYc(b,c)};rS.\u0275fac=function(a){return new (a||rS)};rS.\u0275prov=Cd({token:rS,factory:rS.\u0275fac,providedIn:"root"});var KYc=["actionsMenuIconButton"],sS=function(){this.buttonLabel="";this.buttonIcon="more-settings-vertical";this.buttonSize="medium";this.menuClass="actions-menu"};sS.prototype.onAction=function(a,b){return z(function(c){if(c.nextAddress==1)return B(c,Bq(0),2);if(a.type==="mouseup"&&a instanceof MouseEvent&&a.button!==1)return c.return();b.type!=="action"&&b.type!=="select"||b.action(a);Lf(c)})};sS.prototype.ngOnInit=function(){};sS.\u0275fac=function(a){return new (a||sS)};
sS.\u0275cmp=y({type:sS,selectors:[["b-actions-menu"]],viewQuery:function(a,b){a&1&&hh(KYc,5);if(a&2){var c;lh(c=mh())&&(b.actionsMenuIconButton=c.first)}},inputs:{menuItems:"menuItems",buttonLabel:"buttonLabel",buttonIcon:"buttonIcon",buttonSize:"buttonSize",header:"header",menuClass:"menuClass"},standalone:!1,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,t4a,3,6,"button",3),J(1,"mat-menu",null,0)(3,"div",4),F(4,u4a,2,1,"div",5),Pg(5,I4a,2,2,null,null,Ng),K()());a&2&&(G(b.menuItems.length>0?0:-1),x(),vh(Dh("",b.menuClass,"-menu")),x(3),G(b.header?4:-1),x(),Qg(b.menuItems))},dependencies:[pG,sG,qG,uG,FC,oG,Kx,zG,xG],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 LYc={type:"action",label:"Report illegal content"},MYc={type:"submenu",label:"View as"},NYc={type:"action",label:"Restriction settings..."},OYc={type:"action",label:"Show editing history"};var tS=function(){Z.apply(this,arguments);var a=this;this.triageService=r(nG);this.llmService=r(pS);this.issueFridge=r(iE);this.issueFullFridge=r(TE);this.issuePermissionService=r(OK);this.issuePicker=r(dR);this.issueApi=r(SD);this.errorHandler=r(aK);this.butterBar=r(GJ);this.domSafe=r(UK);this.analytics=r(RE);this.triagePhaseService=r(mS);this.userFeedback=r(rS);this.isClosed=awa;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(xg(function(b){return a.issueFridge.watch(b[0])}));this.issuePhase$=this.issue$.pipe(C(El));this.title$=this.issueIds$.pipe(xg(function(b){return tYc(a.llmService,b)}));this.clusterDescription$=this.issueIds$.pipe(xg(function(b){return wYc(a.llmService,b)}));this.rows$=this.issueIds$.pipe(C(function(b){return b.map(function(c){return{id:c,issue$:a.issueFridge.watch(c)}})}));
this.searchUrl$=this.issueIds$.pipe(C(function(b){return{path:"/issues",params:{q:"id:("+b.join("|")+")"}}}));this.refreshTable=new LE;this.checkedIssueIds=new IA;this.areAllChecked$=Uf([this.issueIds$,this.checkedIssueIds.value$]).pipe(C(function(b){var c=l(b);b=c.next().value;var d=c.next().value;return b.every(function(e){return d.has(e)})}));this.tableColumns=["checkbox","title","phase","relativeModifiedTime","menu"];this.displaySecondaryFooter=!1};Y(tS,Z);tS.\u0275dir=Z.\u0275dir;g=tS.prototype;
g.ngOnInit=function(){var a=this,b;return z(function(c){if(c.nextAddress==1)return B(c,Rf(a.issueIds$),2);b=c.yieldResult;a.checkedIssueIds.reset(b);Lf(c)})};g.toggleAll=function(a){var b=this,c;return z(function(d){if(d.nextAddress==1)return B(d,Rf(b.issueIds$),2);c=d.yieldResult;a.checked?b.checkedIssueIds.reset(c):b.checkedIssueIds.reset([]);Lf(d)})};
g.openDupeDialog=function(){var a=this,b,c,d,e,f,h,k;return z(function(q){if(q.nextAddress==1){b=[].concat(p(a.checkedIssueIds));if(!b||!b.length)return q.return();c=Awa;return B(q,Rf(a.issueFridge.watchSet(b)),2)}if(q.nextAddress!=3)return d=c(q.yieldResult),e=l,B(q,a.issuePicker.open({componentId:d||null,allowMultipleIds:!1,currentResource:{id:b[0],type:"issue"},edgeType:"canonical",originIsBulk:!0}),3);f=e(q.yieldResult);return(k=h=f.next().value)?B(q,a.markAsDuplicate(k,b),0):q.return()})};
g.getMenuItems=function(a){var b=this;return[{type:"action",label:"Go to issue",action:function(){b.domSafe.openInNewTab(Dq.viewIssue.makeHref(a.id))},title:"Go to issue",icon:"arrow-forward"},{type:"action",label:"Mark selected issues as duplicate of this one",action:function(){var c=[].concat(p(b.checkedIssueIds));b.markAsDuplicate(a.id,c.filter(function(d){return d!==a.id}))},title:"Mark selected issues as duplicate of this one",icon:"issue-status-duplicate"}]};
g.markAsDuplicate=function(a,b){var c=this,d,e,f;return z(function(h){switch(h.nextAddress){case 1:d=b.filter(function(k){return k!==a});if(!d.length)return h.return();e={bulkEditOps:[{actions:[{fieldName:"duplicateOfIssueId",value:a}],issueIds:b}]};Gf(h,2,3);Kq(c.butterBar,"Saving...");return B(h,c.issueApi.issueBulkEdit(e),5);case 5:Kq(c.butterBar,"Marked "+b.length+" issues as duplicate.");case 3:return Hf(h),B(h,Promise.all([].concat(p(b.map(function(k){return c.issueFridge.poke(k)})),[c.issueFridge.poke(a)])),
6);case 6:Jf(h,0);break;case 2:f=Kf(h),cK(c.errorHandler,f),h.jumpTo(3)}})};g.cancelAction=function(){this.displaySecondaryFooter=!1};g.finalizeSecondaryAction=function(a){var b=this,c,d;return z(function(e){if(e.nextAddress==1)return b.displaySecondaryFooter=!1,(c=b.selectedTriageAction)?B(e,mYc(b.triagePhaseService,a,c),2):e.return();d=e.yieldResult;b.displaySecondaryFooter=!1;b.announceUpdate(a,d);Lf(e)})};g.sendFeedback=function(){JYc(this.userFeedback)};
g.trackThumbsUp=function(){this.thumbsUpClicked=this.hasReacted=!0;this.analytics.trackEvent("issueCluster","accept","trendingThemes")};g.trackThumbsDown=function(){this.thumbsDownClicked=this.hasReacted=!0;this.analytics.trackEvent("issueCluster","reject","trendingThemes")};
g.openSecondaryActionFooter=function(a){var b=this,c;return z(function(d){if(d.nextAddress==1)return c=[].concat(p(b.checkedIssueIds)),b.triageService.internalSelectedIssueIds$.next(c),a!=="MARK_AS_DUPLICATE"?d.jumpTo(2):B(d,b.openDupeDialog(),3);if(d.nextAddress!=2)return d.return();b.selectedTriageAction=a;b.displaySecondaryFooter=!0;Lf(d)})};g.announceUpdate=function(a,b){if(b&&b.length)for(a=l(a),b=a.next();!b.done;b=a.next())this.issueFullFridge.poke(b.value);this.refreshTable.emit()};
tS.\u0275fac=function(){var a;return function(b){return(a||(a=Re(tS)))(b||tS)}}();
tS.\u0275cmp=y({type:tS,selectors:[["cluster-triage-sidebar"]],outputs:{refreshTable:"refreshTable"},standalone:!1,features:[Bg],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&&(J(0,"div",
0)(1,"div",1),M(2,"b-signal-chip",2),J(3,"button",3),N("click",function(){return b.triageService.closeSidebar()}),M(4,"mat-icon",4),K()(),J(5,"div",5)(6,"div",6)(7,"h3",7),R(8),U(9,"async"),U(10,"async"),K(),M(11,"span",8),J(12,"div",9)(13,"button",10),N("click",function(){return b.sendFeedback()}),M(14,"mat-icon",11),K(),J(15,"button",12),N("click",function(){return b.trackThumbsUp()}),M(16,"mat-icon",13),K(),J(17,"button",14),N("click",function(){return b.trackThumbsDown()}),M(18,"mat-icon",15),
K()()(),J(19,"div",16),F(20,L4a,5,1,"div",17),U(21,"async"),J(22,"div",18)(23,"span",19),R(24,"Select issues to take action"),K(),J(25,"table",20),Wg(26,21),D(27,M4a,4,6,"th",22)(28,N4a,3,3,"td",23),Xg(),Wg(29,24),D(30,O4a,2,0,"th",22)(31,P4a,3,4,"td",23),Xg(),Wg(32,25),D(33,Q4a,2,0,"th",22)(34,T4a,3,3,"td",23),Xg(),Wg(35,26),D(36,U4a,2,0,"th",27)(37,X4a,3,3,"td",28),Xg(),Wg(38,29),D(39,Y4a,1,0,"th",22)(40,Z4a,2,1,"td",23),Xg(),D(41,$4a,1,0,"tr",30)(42,a5a,2,4,"tr",31),K(),F(43,b5a,2,2,"a",32),U(44,
"async"),K()()(),J(45,"div",33),F(46,e5a,2,1),U(47,"async"),K()());if(a&2){var c,d,e,f;x(8);xh("",V(9,15,b.title$)," (",(c=V(10,17,b.issueIds$))==null?null:c.length," issues)");x(7);I("disabled",b.hasReacted);x();uh("has-reacted-icon",b.thumbsUpClicked);x();I("disabled",b.hasReacted);x();uh("has-reacted-icon",b.thumbsDownClicked);x(2);G((d=V(21,19,b.clusterDescription$))?20:-1,d);x(5);I("dataSource",b.rows$)("trackBy",b.trackBy);x(16);I("matHeaderRowDef",b.tableColumns);x();I("matRowDefColumns",b.tableColumns);
x();G((e=V(44,21,b.searchUrl$))?43:-1,e);x(3);G((f=V(47,23,b.issuePhase$))?46:-1,f)}},dependencies:[sS,FC,xC,EL,oG,Jx,Kx,gM,hM,cP,XP,KP,QP,MP,JP,SP,NP,PP,TP,VP,zG,xG,VO,$P,lS,vG,Tv],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 uS=function(){var a=this;this.data=r(QJ);this.cdr=r(NE,{self:!0});this.codefont=r(iO);this.location=r(Mi);this.paths=r(oN);this.userFeedback=r(rS);this.errorHandler=r(aK);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()})};
uS.prototype.startFeedback=function(){this.userFeedback.startFeedback()};uS.\u0275fac=function(a){return new (a||uS)};
uS.\u0275cmp=y({type:uS,selectors:[["comment-history-dialog"]],standalone:!1,features:[Fh([NE])],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&&(J(0,"h2",
0),R(1),K(),J(2,"mat-dialog-content")(3,"div",1)(4,"mat-checkbox",2),N("change",function(c){return b.diffView=c.checked}),R(5," Show Diff "),K()(),J(6,"a",3),N("click",function(){return b.startFeedback()}),R(7,"Feedback"),K(),M(8,"br",4),F(9,f5a,2,0,"div",5)(10,u5a,3,0,"ul",6),K(),J(11,"mat-dialog-actions")(12,"button",7),R(13,"Close"),K()());a&2&&(x(),T("History for Comment #",b.commentNumber),x(3),I("checked",b.diffView),x(5),G(b.isLoading?9:10))},dependencies:[EL,gM,hM,oG,Jx,SJ,UJ,WJ,VJ,fJ,yN,
cL,bL,Tv,yI,YK],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 v5a=function(){},mr=function(a,b,c,d,e){typeof e=="undefined"&&(e=(new Date).getTime()+1E3);if(b==null||c==null)throw Error("pe");if(b==c)return b?[[0,b]]:[];typeof d=="undefined"&&(d=!0);var f=PYc(b,c),h=b.substring(0,f);b=b.substring(f);c=c.substring(f);f=QYc(b,c);var k=b.substring(b.length-f);b=b.substring(0,b.length-f);c=c.substring(0,c.length-f);b=RYc(a,b,c,d,e);h&&b.unshift([0,h]);k&&b.push([0,k]);SYc(a,b);return b},RYc=function(a,b,c,d,e){if(!b)return[[1,c]];if(!c)return[[-1,b]];var f=
b.length>c.length?b:c,h=b.length>c.length?c:b,k=f.indexOf(h);if(k!=-1)return a=[[1,f.substring(0,k)],[0,h],[1,f.substring(k+h.length)]],b.length>c.length&&(a[0][0]=a[2][0]=-1),a;if(h.length==1)return[[-1,b],[1,c]];if(f=TYc(b,c))return c=f[1],h=f[3],b=f[4],f=mr(a,f[0],f[2],d,e),a=mr(a,c,h,d,e),f.concat([[0,b]],a);if(d&&b.length>100&&c.length>100){b=UYc(b,c);c=b.lineArray;b=mr(a,b.chars1,b.chars2,!1,e);for(d=0;d<b.length;d++){f=b[d][1];h=[];for(k=0;k<f.length;k++)h[k]=c[f.charCodeAt(k)];b[d][1]=h.join("")}w5a(a,
b);b.push([0,""]);f=d=c=0;for(k=h="";c<b.length;){switch(b[c][0]){case 1:f++;k+=b[c][1];break;case -1:d++;h+=b[c][1];break;case 0:if(d>=1&&f>=1){b.splice(c-d-f,d+f);c=c-d-f;d=mr(a,h,k,!1,e);for(f=d.length-1;f>=0;f--)b.splice(c,0,d[f]);c+=d.length}d=f=0;k=h=""}c++}b.pop();a=b}else a:{d=b.length;f=c.length;h=Math.ceil((d+f)/2);k=2*h;for(var q=Array(k),v=Array(k),A=0;A<k;A++)q[A]=-1,v[A]=-1;q[h+1]=0;v[h+1]=0;A=d-f;for(var E=A%2!=0,H=0,L=0,O=0,S=0,aa=0;aa<h&&!((new Date).getTime()>e);aa++){for(var ka=
-aa+H;ka<=aa-L;ka+=2){var na=h+ka;var za=ka==-aa||ka!=aa&&q[na-1]<q[na+1]?q[na+1]:q[na-1]+1;for(var Na=za-ka;za<d&&Na<f&&b.charAt(za)==c.charAt(Na);)za++,Na++;q[na]=za;if(za>d)L+=2;else if(Na>f)H+=2;else if(E&&(na=h+A-ka,na>=0&&na<k&&v[na]!=-1)){var Pa=d-v[na];if(za>=Pa){a=VYc(a,b,c,za,Na,e);break a}}}for(ka=-aa+O;ka<=aa-S;ka+=2){na=h+ka;Pa=ka==-aa||ka!=aa&&v[na-1]<v[na+1]?v[na+1]:v[na-1]+1;for(za=Pa-ka;Pa<d&&za<f&&b.charAt(d-Pa-1)==c.charAt(f-za-1);)Pa++,za++;v[na]=Pa;if(Pa>d)S+=2;else if(za>f)O+=
2;else if(!E&&(na=h+A-ka,na>=0&&na<k&&q[na]!=-1&&(za=q[na],Na=h+za-na,Pa=d-Pa,za>=Pa))){a=VYc(a,b,c,za,Na,e);break a}}}a=[[-1,b],[1,c]]}return a},VYc=function(a,b,c,d,e,f){var h=b.substring(d),k=c.substring(e);b=mr(a,b.substring(0,d),c.substring(0,e),!1,f);a=mr(a,h,k,!1,f);return b.concat(a)},UYc=function(a,b){function c(h){for(var k="",q=0,v=-1,A=d.length;v<h.length-1;){v=h.indexOf("\n",q);v==-1&&(v=h.length-1);var E=h.substring(q,v+1);(e.hasOwnProperty?e.hasOwnProperty(E):e[E]!==void 0)?k+=String.fromCharCode(e[E]):
(A==f&&(E=h.substring(q),v=h.length),k+=String.fromCharCode(A),e[E]=A,d[A++]=E);q=v+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}},PYc=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},QYc=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},WYc=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++}},TYc=function(a,b){function c(k,q,v){for(var A=k.substring(v,v+Math.floor(k.length/4)),E=-1,H="",
L,O,S,aa;(E=q.indexOf(A,E+1))!=-1;){var ka=PYc(k.substring(v),q.substring(E)),na=QYc(k.substring(0,v),q.substring(0,E));H.length<na+ka&&(H=q.substring(E-na,E)+q.substring(E,E+ka),L=k.substring(0,v-na),O=k.substring(v+ka),S=q.substring(0,E-na),aa=q.substring(E+ka))}return H.length*2>=k.length?[L,O,S,aa,H]:null}var d=a.length>b.length?a:b,e=a.length>b.length?b:a;if(d.length<4||e.length*2<d.length)return null;var f=c(d,e,Math.ceil(d.length/4));d=c(d,e,Math.ceil(d.length/2));var h;if(f||d)d?h=f?f[4].length>
d[4].length?f:d:d:h=f;else return null;a.length>b.length?(a=h[0],b=h[1],f=h[2],d=h[3]):(f=h[0],d=h[1],a=h[2],b=h[3]);return[a,b,f,d,h[4]]},w5a=function(a,b){for(var c=!1,d=[],e=0,f=null,h=0,k=0,q=0,v=0,A=0;h<b.length;)b[h][0]==0?(d[e++]=h,k=v,q=A,A=v=0,f=b[h][1]):(b[h][0]==1?v+=b[h][1].length:A+=b[h][1].length,f&&f.length<=Math.max(k,q)&&f.length<=Math.max(v,A)&&(b.splice(d[e-1],0,[-1,f]),b[d[e-1]+1][0]=1,e--,e--,h=e>0?d[e-1]:-1,A=v=q=k=0,f=null,c=!0)),h++;c&&SYc(a,b);XYc(b);for(h=1;h<b.length;){if(b[h-
1][0]==-1&&b[h][0]==1){a=b[h-1][1];c=b[h][1];d=WYc(a,c);e=WYc(c,a);if(d>=e){if(d>=a.length/2||d>=c.length/2)b.splice(h,0,[0,c.substring(0,d)]),b[h-1][1]=a.substring(0,a.length-d),b[h+1][1]=c.substring(d),h++}else if(e>=a.length/2||e>=c.length/2)b.splice(h,0,[0,a.substring(0,e)]),b[h-1][0]=1,b[h-1][1]=c.substring(0,c.length-e),b[h+1][0]=-1,b[h+1][1]=a.substring(e),h++;h++}h++}},XYc=function(a){function b(E,H){if(!E||!H)return 6;var L=E.charAt(E.length-1),O=H.charAt(0),S=L.match(YYc),aa=O.match(YYc),
ka=S&&L.match(ZYc),na=aa&&O.match(ZYc);L=ka&&L.match($Yc);O=na&&O.match($Yc);E=L&&E.match(aZc);H=O&&H.match(bZc);return E||H?5:L||O?4:S&&!ka&&na?3:ka||na?2:S||aa?1:0}for(var c=1;c<a.length-1;){if(a[c-1][0]==0&&a[c+1][0]==0){var d=a[c-1][1],e=a[c][1],f=a[c+1][1],h=QYc(d,e);if(h){var k=e.substring(e.length-h);d=d.substring(0,d.length-h);e=k+e.substring(0,e.length-h);f=k+f}h=d;k=e;for(var q=f,v=b(d,e)+b(e,f);e.charAt(0)===f.charAt(0);){d+=e.charAt(0);e=e.substring(1)+f.charAt(0);f=f.substring(1);var A=
b(d,e)+b(e,f);A>=v&&(v=A,h=d,k=e,q=f)}a[c-1][1]!=h&&(h?a[c-1][1]=h:(a.splice(c-1,1),c--),a[c][1]=k,q?a[c+1][1]=q:(a.splice(c+1,1),c--))}c++}},YYc=/[^a-zA-Z0-9]/,ZYc=/\s/,$Yc=/[\r\n]/,aZc=/\n\r?\n$/,bZc=/^\r?\n\r?\n/,SYc=function(a,b){b.push([0,""]);for(var c=0,d=0,e=0,f="",h="",k;c<b.length;)switch(b[c][0]){case 1:e++;h+=b[c][1];c++;break;case -1:d++;f+=b[c][1];c++;break;case 0:d+e>1?(d!==0&&e!==0&&(k=PYc(h,f),k!==0&&(c-d-e>0&&b[c-d-e-1][0]==0?b[c-d-e-1][1]+=h.substring(0,k):(b.splice(0,0,[0,h.substring(0,
k)]),c++),h=h.substring(k),f=f.substring(k)),k=QYc(h,f),k!==0&&(b[c][1]=h.substring(h.length-k)+b[c][1],h=h.substring(0,h.length-k),f=f.substring(0,f.length-k))),d===0?b.splice(c-e,d+e,[1,h]):e===0?b.splice(c-d,d+e,[-1,f]):b.splice(c-d-e,d+e,[-1,f],[1,h]),c=c-d-e+(d?1:0)+(e?1:0)+1):c!==0&&b[c-1][0]==0?(b[c-1][1]+=b[c][1],b.splice(c,1)):c++,d=e=0,h=f=""}b[b.length-1][1]===""&&b.pop();d=!1;for(c=1;c<b.length-1;)b[c-1][0]==0&&b[c+1][0]==0&&(b[c][1].substring(b[c][1].length-b[c-1][1].length)==b[c-1][1]?
(b[c][1]=b[c-1][1]+b[c][1].substring(0,b[c][1].length-b[c-1][1].length),b[c+1][1]=b[c-1][1]+b[c+1][1],b.splice(c-1,1),d=!0):b[c][1].substring(0,b[c+1][1].length)==b[c+1][1]&&(b[c-1][1]+=b[c+1][1],b[c][1]=b[c][1].substring(b[c+1][1].length)+b[c+1][1],b.splice(c+1,1),d=!0)),c++;d&&SYc(a,b)};var vS=function(){this.analytics=r(RE);this.issueComments=r(sK);this.dialogManager=r(RJ)};vS.prototype.show=function(a,b,c){var d=this,e;return z(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:cZc(d,a,b,c)};d.dialog=d.dialogManager.open(uS,{data:e,width:"50vw"});return f.return(Rf(LJ(d.dialog)))})};
var cZc=function(a,b,c,d){return a.issueComments.listHistory(b,c).then(function(e){var f=e.length>0?e[0].unlinkifiedComment:"",h=e.length>0?e[0].formattingMode:"",k=!1,q=[];e=l(e);for(var v=e.next();!v.done;v=e.next()){v=v.value;var A=y5a(v);A||k?(f=dZc(v.unlinkifiedComment),h=dZc(v.formattingMode)):(f=x5a(f,v.unlinkifiedComment),k=v.formattingMode,h=h===k?dZc(k):Zi([dZc(h,"diff-removed"),dZc(k,"diff-added")]));k=v.unlinkifiedComment===void 0?"":v.unlinkifiedComment;var E=v.version,H=v.commentContentVerdict;
q.push({unlinkifiedComment:k,lastEditorUser:v.lastEditorUser,version:E,formattingMode:v.formattingMode,formattingModeDiff:h,lastModified:Number(v.lastModified)/1E3,open:E<25,preview:k.length<=48?k:k.substring(0,45)+"...",diff:f,restricted:H&&H.piiVerdict&&H.piiVerdict.severity!=="NONE_DETECTED"||!1,deleted:y5a(v)});f=v.unlinkifiedComment;h=v.formattingMode;k=A}d>-1?q[d].open=!0:q[0].open=!0;return q})},dZc=function(a,b){return $i("span",b?{"class":b}:void 0,a)};
vS.\u0275fac=function(a){return new (a||vS)};vS.\u0275prov=Cd({token:vS,factory:vS.\u0275fac,providedIn:"root"});var wS=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,wS.messageId)};Y(wS,n);wS.prototype.getUrl=function(){return Rc(this,1,void 0,Nc)};wS.prototype.setUrl=function(a){return Qk(this,1,a,Nc)};wS.prototype.hasUrl=function(){return mk(this,1,Nc)};wS.messageId="b.AttachmentUrlResponse";var xS=function(){this.executor=r(QA)};xS.prototype.get=function(a,b,c,d){if(!a||!b)return Promise.reject(Error("re"));var e={};d&&(e["X-Restricted-Content-Limit"]=String(Kza(d)));return this.executor.get({url:"action/issues/"+a+"/attachments/"+b+"/url",options:{headers:e,params:{download:String(c)}},responseConstructor:wS}).then(function(f){return f.getUrl()})};xS.\u0275fac=function(a){return new (a||xS)};xS.\u0275prov=Cd({token:xS,factory:xS.\u0275fac,providedIn:"root"});var yS=function(){this.templateRef=r(eh);this.viewContainer=r(fh);this.activeSession=r(Bs);this.isInternal=this.activeSession.isInternalSession()};yS.prototype.ngOnInit=function(){this.isInternal&&this.viewContainer.createEmbeddedView(this.templateRef)};yS.\u0275fac=function(a){return new (a||yS)};yS.\u0275dir=vf({type:yS,selectors:[["","internalOnly",""]],standalone:!1});var zS=function(){this.dialogRef=r(KJ);this.data=r(QJ);this.userAccess=r(AD);this.attachmentsUrl=r(xS);this.butterBar=r(GJ);this.domSafe=r(UK);this.documentationLinks=r(JJ);this.changeDetectorRef=r(NE,{self:!0});this.attachment=this.data.attachment;this.issueId=this.data.issueId;this.isLoading=!0;this.hasViewAccess=!1;this.download=this.data.download};zS.prototype.ngOnInit=function(){this.changeDetectorRef.detectChanges();this.setHasViewAccess()};
zS.prototype.setHasViewAccess=function(){var a=this;this.isLoading=!0;A5a(this)?(this.hasViewAccess=!1,BD(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)};zS.prototype.getRestrictionSeverity=function(){var a=this.attachment.contentVerdict;if(a&&(a=a.piiVerdict))return a.severity};
var A5a=function(a){return(a=a.getRestrictionSeverity())?a!=="NONE_DETECTED":!1},eZc=function(a){var b=a.download&&nsa(a.attachment.contentType);a.attachmentsUrl.get(a.issueId,a.attachment.attachmentId,b,a.getRestrictionSeverity()).then(function(c){b?VK(a.domSafe,c):a.domSafe.openInNewTab(c);a.close()},function(){a.butterBar.showWarning("Failed to load attachment. Please refresh and try again.");a.close()})};zS.prototype.close=function(){this.dialogRef.close();this.changeDetectorRef.detectChanges()};
zS.prototype.getRestrictedAccessHelpLink=function(){return this.documentationLinks.getRestrictedAccessHelpLink()};zS.\u0275fac=function(a){return new (a||zS)};
zS.\u0275cmp=y({type:zS,selectors:[["b-attachment-download-dialog"]],standalone:!1,features:[Fh([NE])],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&&(J(0,"h1",0),R(1,"Access Attachment"),K(),J(2,"div",1)(3,"div",2),R(4," Are you sure you would like to access the following attachment? "),K(),M(5,"br"),J(6,"div",3)(7,"div",4),M(8,"mat-icon",5),K(),J(9,"div",6),R(10),K()(),M(11,"br"),D(12,B5a,2,1,"ng-container",7),F(13,C5a,3,0,"div",2),K(),F(14,D5a,1,0,"mat-spinner",8),J(15,"div",
9)(16,"button",10),N("click",function(){return b.close()}),R(17," Cancel "),K(),J(18,"button",11),N("click",function(){return eZc(b)}),R(19," Continue "),K()());a&2&&(x(10),T(" ",b.attachment.filename," "),x(3),G(b.isLoading||b.hasViewAccess?-1:13),x(),G(b.isLoading?14:-1),x(4),I("disabled",!b.hasViewAccess))},dependencies:[FC,oG,Jx,UJ,WJ,VJ,xN,vN,yS],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 fZc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(fZc,n);g=fZc.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getAttachmentId=function(){return xk(this,2)};g.getAttachmentId_asString=function(){return Bk(this,2)};g.setAttachmentId=function(a){return Xl(this,2,a)};
g.getRestrictedRetention=function(){return pk(this,3)};g.setRestrictedRetention=function(a){return Jj(this,3,a)};var gZc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gZc,n);gZc.prototype.getIt=function(){return W(this,fZc,4)};gZc.prototype.setIt=function(a){return X(this,fZc,4,a)};var AS=function(){this.executor=r(PA)};AS.prototype.updateRetention=function(a,b,c){c=(new gZc).setIt((new fZc).setIssueId(a).setAttachmentId(b).setRestrictedRetention(Oxa(c)));return this.executor.post({url:"action/issues/"+a+"/attachments/"+b+"/update_retention",body:c,responseConstructor:jK}).pipe(C(xOa))};AS.\u0275fac=function(a){return new (a||AS)};AS.\u0275prov=Cd({token:AS,factory:AS.\u0275fac,providedIn:"root"});var hZc=Symbol("se"),iZc=/^[a-z0-9-_]{6,30}$/,jZc="productID must match the expression: "+iZc;zu(nr,E5a);for(var kZc=[],lZc=0;lZc<63;lZc++)kZc[lZc]=0;var mZc=[].concat(128,kZc);nr.prototype.reset=function(){this.total_=this.inChunk_=0;this.hash_=ea.Int32Array?new Int32Array(this.initHashBlocks_):Ja(this.initHashBlocks_)};
var nZc=function(a){for(var b=a.chunk_,c=a.w_,d=0,e=0;e<b.length;)c[d++]=b[e]<<24|b[e+1]<<16|b[e+2]<<8|b[e+3],e=d*4;for(b=16;b<64;b++)d=c[b-15]|0,e=c[b-2]|0,c[b]=((c[b-16]|0)+((d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3)|0)+((c[b-7]|0)+((e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)|0)|0;b=a.hash_[0]|0;d=a.hash_[1]|0;e=a.hash_[2]|0;for(var f=a.hash_[3]|0,h=a.hash_[4]|0,k=a.hash_[5]|0,q=a.hash_[6]|0,v=a.hash_[7]|0,A=0;A<64;A++){var E=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&d^b&e^d&e)|0,H=(v+((h>>>6|h<<26)^
(h>>>11|h<<21)^(h>>>25|h<<7))|0)+(((h&k^~h&q)+(F5a[A]|0)|0)+(c[A]|0)|0)|0;v=q;q=k;k=h;h=f+H|0;f=e;e=d;d=b;b=H+E|0}a.hash_[0]=a.hash_[0]+b|0;a.hash_[1]=a.hash_[1]+d|0;a.hash_[2]=a.hash_[2]+e|0;a.hash_[3]=a.hash_[3]+f|0;a.hash_[4]=a.hash_[4]+h|0;a.hash_[5]=a.hash_[5]+k|0;a.hash_[6]=a.hash_[6]+q|0;a.hash_[7]=a.hash_[7]+v|0};
nr.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&&(nZc(this),d=0);else if(Ka(a))for(;c<b;){var e=a[c++];if(!("number"==typeof e&&0<=e&&255>=e&&e==(e|0)))throw Error("te");this.chunk_[d++]=e;d==this.blockSize&&(nZc(this),d=0)}else throw Error("ue");this.inChunk_=d;this.total_+=b};
nr.prototype.digest=function(){var a=[],b=this.total_*8;this.inChunk_<56?this.update(mZc,56-this.inChunk_):this.update(mZc,this.blockSize-(this.inChunk_-56));for(var c=63;c>=56;c--)this.chunk_[c]=b&255,b/=256;nZc(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 G5a=[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],F5a;zu(I5a,nr);var H5a=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];var K5a=new TextEncoder,L5a=K5a.encode("$@#|").buffer;var oZc=["allow-same-origin","allow-scripts","allow-forms","allow-popups"],pZc=new TextEncoder,qZc={},rZc=function(){var a=this;this.productID="buganizer";this.shimOptions=void 0;this.renderCalled=!1;this.shimIframe=document.createElement("iframe");if(!iZc.test("buganizer"))throw Error(jZc);if(!S5a())throw Error("we");qZc.shimBlobUrlFactory!==void 0&&(this.shimBlobUrlFactory=qZc.shimBlobUrlFactory);this.attachedPromise=new Promise(function(b){a.shimIframe.addEventListener("load",function(){b()},{once:!0});
a.shimIframe.addEventListener("error",function(){b()},{once:!0})})},sZc=function(a,b,c){if(!a.shimIframe||!a.shimIframe.contentWindow)throw Error("xe");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);}})},tZc=function(a,b,c,d){var e,f,h,k,q,v,A,E,H,L,O,S,aa,ka,na,za,Na,Pa,hb;z(function(ua){switch(ua.nextAddress){case 1:if(a.renderCalled)throw Error("ye");
a.renderCalled=!0;h=(f=(e=a.shimOptions)==null?void 0:e.sandbox)!=null?f:oZc;c.toLowerCase()!=="application/pdf"&&(a.shimIframe.sandbox.add.apply(a.shimIframe.sandbox,p(h)),a.shimIframe.sandbox.add("allow-scripts"),a.shimIframe.sandbox.add("allow-same-origin"));q=(k=a.shimOptions)==null?void 0:k.useSubtleCrypto;E=(A=a.shimOptions)==null?void 0:A.enableBrowserCaching;L=(H=a.shimOptions)==null?void 0:H.urlFragment;if(!E){v=O5a().buffer;ua.jumpTo(2);break}if(E===!0)return B(ua,N5a({useSubtleCrypto:q,
parts:[b,location.pathname]}),7);if(typeof E!=="object"||!E[hZc])throw Error("ze");return B(ua,J5a(pZc.encode(E[hZc]).buffer,q),6);case 6:v=ua.yieldResult;ua.jumpTo(2);break;case 7:v=ua.yieldResult;case 2:return O=window.origin,B(ua,Q5a({product:a.productID,salt:v,useSubtleCrypto:q,trustedOrigin:O,version:Number("794075209")}),8);case 8:return S=ua.yieldResult,aa=R5a({trustedOrigin:O,fileHash:S,version:"794075209",product:a.productID,cache:!!E}),ka=(new URL(aa)).origin,a.shimBlobUrlFactory!==void 0?
(na=a.shimBlobUrlFactory(aa),za=URL.createObjectURL(na),a.shimIframe.src=za,ka=(new URL(za)).origin):a.shimIframe.src=aa,d.appendChild(a.shimIframe),B(ua,a.attachedPromise,9);case 9:return Na=!1,hb=new Promise(function(Ha){a.shimIframe.addEventListener("load",function(){Na=!0;Ha(Pa)},{once:!0})}),Pa={sendMessage:function(Ha,Ia){if(!a.shimIframe||!a.shimIframe.contentWindow)throw Error("xe");a.shimIframe.contentWindow.postMessage(Ha,ka,Ia)},origin:ka,fullyLoadedPromise:hb,fullyLoadedPromiseWithTimeout:function(Ha){var Ia=
new Promise(function(tb,rb){setTimeout(function(){Na?tb(Pa):rb(Error("Ae"))},Ha)});return Promise.race([hb,Ia])}},B(ua,sZc(a,{body:b,mimeType:c,salt:v,urlFragment:L},ka),10);case 10:return ua.return(Pa)}})};var uZc=["attachmentContent"],BS=function(){Z.apply(this,arguments);this.attachmentsApi=r(mK)};Y(BS,Z);BS.\u0275dir=Z.\u0275dir;BS.prototype.ngOnInit=function(){vZc(this)};var vZc=function(a){a.subscriptions.add(aLc(a.attachmentsApi,a.issueId,a.attachmentId).subscribe(function(b){b&&tZc(new rZc,b,a.mimeType,a.container.nativeElement)}))};BS.\u0275fac=function(){var a;return function(b){return(a||(a=Re(BS)))(b||BS)}}();
BS.\u0275cmp=y({type:BS,selectors:[["attachment-preview"]],viewQuery:function(a,b){a&1&&hh(uZc,5);if(a&2){var c;lh(c=mh())&&(b.container=c.first)}},inputs:{issueId:"issueId",attachmentId:"attachmentId",mimeType:"mimeType"},standalone:!1,features:[Bg],decls:2,vars:0,consts:[["attachmentContent",""],[1,"full-width","full-height"]],template:function(a){a&1&&M(0,"div",1,0)},styles:["[_nghost-%COMP%]     iframe{border:0;height:100%;width:100%}/*# sourceMappingURL=attachment_preview.css.map */"]});var CS=function(){this.inlinedAttachmentSet=new Set};CS.prototype.getCount=function(){return this.inlinedAttachmentSet.size};CS.\u0275fac=function(a){return new (a||CS)};CS.\u0275prov=Cd({token:CS,factory:CS.\u0275fac,providedIn:"root"});var DS=function(){this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.isGreyedOut=!0;this.linkUrl=this.displayName="";this.useCustomHandler=this.linkEnabled=!1;this.customHandler=new LE};DS.prototype.handleClick=function(a){this.useCustomHandler&&(a.preventDefault(),this.customHandler.emit())};DS.\u0275fac=function(a){return new (a||DS)};
DS.\u0275cmp=y({type:DS,selectors:[["b-conditional-link"]],inputs:{isGreyedOut:"isGreyedOut",displayName:"displayName",linkUrl:"linkUrl",linkEnabled:"linkEnabled",useCustomHandler:"useCustomHandler"},outputs:{customHandler:"customHandler"},standalone:!1,decls:2,vars:2,consts:[[3,"muted"],["target","_blank",1,"normal-link",3,"href","rel"],["target","_blank",1,"normal-link",3,"click","href","rel"]],template:function(a,b){a&1&&(F(0,T5a,2,3,"span",0),F(1,U5a,2,3,"a",1));a&2&&(G(b.isGreyedOut||!b.linkEnabled?
0:-1),x(),G(!b.isGreyedOut&&b.linkEnabled?1:-1))},encapsulation:2,changeDetection:0});var ES=function(){this.tooltipRegistry={}};ES.prototype.showTooltip=function(a){return this.tooltipRegistry[a]?!1:this.tooltipRegistry[a]=!0};ES.\u0275fac=function(a){return new (a||ES)};ES.\u0275prov=Cd({token:ES,factory:ES.\u0275fac,providedIn:"root"});var FS=function(){ix.apply(this,arguments)};Y(FS,ix);FS.\u0275fac=function(){var a;return function(b){return(a||(a=Re(FS)))(b||FS)}}();FS.\u0275dir=vf({type:FS,selectors:[["","expandable-tab-content",""]],standalone:!1,features:[Bg]});var GS=function(){ix.apply(this,arguments)};Y(GS,ix);GS.\u0275fac=function(){var a;return function(b){return(a||(a=Re(GS)))(b||GS)}}();GS.\u0275dir=vf({type:GS,selectors:[["","expandable-tab-header",""]],standalone:!1,features:[Bg]});
var HS=function(){ix.apply(this,arguments)};Y(HS,ix);HS.\u0275fac=function(){var a;return function(b){return(a||(a=Re(HS)))(b||HS)}}();HS.\u0275dir=vf({type:HS,selectors:[["","expandable-tab-icon",""]],standalone:!1,features:[Bg]});var IS=function(){};IS.prototype.ngOnInit=function(){};IS.\u0275fac=function(a){return new (a||IS)};
IS.\u0275cmp=y({type:IS,selectors:[["expandable-tab"]],contentQueries:function(a,b,c){a&1&&(ih(c,GS,5,eh),ih(c,FS,5,eh),ih(c,HS,5,eh));if(a&2){var d;lh(d=mh())&&(b.tabHeaderTemplate=d.first);lh(d=mh())&&(b.tabContentTemplate=d.first);lh(d=mh())&&(b.tabIconTemplate=d.first)}},inputs:{key:"key",ariaLabel:"ariaLabel"},standalone:!1,decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var X5a=function(a){return{tab:a}},f6a=function(a){return{allTabsExpanded:a}},r6a=function(){return[]},wZc=function(a,b){return b.key},JS=function(){Z.apply(this,arguments);this.internalTabKeys$=new Kn([]);this.ariaLabel="";this.openTabCallback=function(){return z(function(a){return a.return(!0)})};this.openAllTabsCallback=function(){return z(function(a){return a.return(!0)})};this.expandableTabsTitle="";this.internalExpandedTabs=new IA;this.showIcons=this.showMultiple=!0;this.visibleExpandedTabs$=
Uf([this.internalTabKeys$,this.internalExpandedTabs.value$]).pipe(C(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 LE;this.contentShownChanged=new LE;this.showAllClicked=new LE;this.tabs$=new Kn([]);this.allTabsExpanded$=Uf([this.tabs$,this.internalExpandedTabs.value$]).pipe(C(function(a){var b=l(a);a=b.next().value;var c=b.next().value;return a.every(function(d){return c.has(d.key)})}))};Y(JS,Z);
JS.\u0275dir=Z.\u0275dir;
JS.prototype.ngAfterContentInit=function(){var a=this;this.subscriptions.add(this.internalTabs.changes.pipe(wg(void 0),C(function(){return a.internalTabs.toArray()}),C(function(b){return new Map(b.map(function(c){return[c.key,c]}))}),xg(function(b){return Uf([Nf(b),a.internalTabKeys$])}),C(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(Uf([this.internalTabKeys$,this.internalExpandedTabs.value$]).pipe(C(function(b){var c=
l(b);b=c.next().value;c=c.next().value;return Zra(new Set(b),new Set(c))}),og(gj)).subscribe(function(b){a.contentShownChanged.emit(b)}))};JS.prototype.ngOnInit=function(){};
var c6a=function(a,b){var c;return z(function(d){if(d.nextAddress==1)return(c=a.internalExpandedTabs.has(b))?(a.internalExpandedTabs.delete(b),d.jumpTo(2)):B(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));Lf(d)})};
JS.prototype.showAll=function(){var a=this;return z(function(b){if(b.nextAddress==1)return B(b,a.openAllTabsCallback(a.tabKeys),2);if(!b.yieldResult)return b.return();a.internalExpandedTabs.add.apply(a.internalExpandedTabs,p(a.tabs$.value.map(function(c){return c.key})));a.expandedTabsChanged.emit(new Set(a.internalExpandedTabs));Lf(b)})};JS.prototype.hideAll=function(){this.internalExpandedTabs.clear();this.expandedTabsChanged.emit(new Set(this.internalExpandedTabs))};
JS.prototype.toggleAll=function(){var a=this,b;return z(function(c){if(c.nextAddress==1)return B(c,Rf(a.allTabsExpanded$),2);if(c.nextAddress!=4)return(b=c.yieldResult)?(a.hideAll(),c.jumpTo(0)):B(c,a.showAll(),4);a.showAllClicked.emit(void 0);Lf(c)})};
nd.Object.defineProperties(JS.prototype,{tabKeys:{configurable:!0,enumerable:!0,set:function(a){this.internalTabKeys$.next([].concat(p(a)))},get:function(){return this.internalTabKeys$.value}},expandedTabs:{configurable:!0,enumerable:!0,set:function(a){if(!this.showMultiple&&a.length>1)throw Error("Be");this.internalExpandedTabs.reset(a)},get:function(){return[].concat(p(this.internalExpandedTabs))}}});JS.\u0275fac=function(){var a;return function(b){return(a||(a=Re(JS)))(b||JS)}}();
JS.\u0275cmp=y({type:JS,selectors:[["expandable-tabs"]],contentQueries:function(a,b,c){a&1&&ih(c,IS,5);if(a&2){var d;lh(d=mh())&&(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"},
standalone:!1,features:[Bg],decls:14,vars:7,consts:[["headerText",""],["spacer",""],[1,"tabs-row","flex-kids-x","centered-inside"],[1,"expandable-tabs-title"],["role","tablist","aria-multiselectable","true",1,"expandable-tabs","flex-kids-x"],["type","button","mat-button","","role","tab",1,"expandable-tab","keep-focus-ring",3,"expanded"],[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",3,"click"],["type","button","mat-button","",1,"small","expandable-tabs-show-all","margin-left-none",3,"click"],["iconPositionEnd","","svgIcon","arrow_outward_24px",1,"icon-s"],["role","tabpanel",3,"class","id"],["role","tabpanel",
3,"id"],[1,"spacer"]],template:function(a,b){a&1&&(J(0,"div",2),F(1,V5a,2,2,"span",3),J(2,"div",4),Pg(3,d6a,9,19,"button",5,wZc),U(5,"async"),K(),F(6,g6a,2,5)(7,h6a,5,2),K(),J(8,"div",6),Pg(9,t6a,2,3,null,null,wZc),U(11,"async"),K(),D(12,y6a,2,1,"ng-template",null,0,Lh));a&2&&(x(),G(b.expandableTabsTitle?1:-1),x(),Lg("aria-label",b.ariaLabel),x(),Qg(V(5,3,b.tabs$)),x(3),G(b.showMultiple?6:7),x(3),Qg(V(11,5,b.tabs$)))},dependencies:[Sv,FC,oG,Jx,Tv],styles:[".expandable-tabs[_ngcontent-%COMP%]{gap:8px}.expandable-tab[_ngcontent-%COMP%]{padding:4px 12px 4px 8px;border-radius:16px;border:1px solid;border-color:#dadce0;border-color:var(--c300);color:#3c4043;color:var(--c800)}.expandable-tab.expanded[_ngcontent-%COMP%]{color:#1967d2;color:var(--primary-c700);background-color:#e8f0fe;background-color:var(--primary-c50);border-color:transparent}.expandable-tab[_ngcontent-%COMP%]:hover{-webkit-filter:brightness(95%);filter:brightness(95%)}[_nghost-%COMP%]     .expandable-tab.mat-mdc-button{line-height:unset;height:auto}[_nghost-%COMP%]     .expandable-tab.mat-mdc-button .mat-icon{margin-right:4px}.expandable-tabs.flex-kids-x[_ngcontent-%COMP%]{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.expandable-tabs-title[_ngcontent-%COMP%]{margin-right:8px}.expandable-tabs-hide-all[_ngcontent-%COMP%], .expandable-tabs-show-all[_ngcontent-%COMP%]{margin-left:auto}.expandable-tabs-show-all.margin-left-none[_ngcontent-%COMP%]{margin-left:unset}.expandable-tab-content[_ngcontent-%COMP%]{margin-left:8px;margin-right:8px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.expandable-tab-content[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;gap:4px;color:#202124;color:var(--c900);margin:16px 0}.expandable-tab-content[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]{margin-top:8px}.expandable-tab-content[_ngcontent-%COMP%]:not(:last-child){padding-bottom:16px;border-bottom:1px solid;border-bottom-color:#dadce0;border-bottom-color:var(--divider)}\n/*# sourceMappingURL=expandable_tabs.css.map */"],
changeDetection:0});var xZc={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 KS=function(a,b,c){var d=this;this.document=a;this.focusTrapFactory=b;this.elementRef=c;this.dismiss=new nq;this.action=new nq;this.pointerPosition=2;this.color="blue";this.actionBtnIcon=this.actionBtnText="";this.Position=xZc;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)};KS.prototype.ngAfterContentInit=function(){pw(this.focusTrap);this.setPreviouslyFocusedElement();Oic(this.focusTrap)};
KS.prototype.ngOnDestroy=function(){this.document.removeEventListener("keydown",this.dismissIfEscape);this.document.removeEventListener("focusin",this.setPreviouslyFocusedElement);this.focusTrap.destroy()};
KS.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)};nd.Object.defineProperties(KS.prototype,{widthOffset:{configurable:!0,enumerable:!0,set:function(a){this.width=272+a*64}}});
KS.\u0275fac=function(a){return new (a||KS)(of(ui),of(Gw),of(Te))};
KS.\u0275cmp=y({type:KS,selectors:[["onedev-feature-tooltip-body"]],hostVars:16,hostBindings:function(a,b){a&2&&uh("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:[Fh([{provide:Xic,useValue:{preventFocus:function(){},allowFocus:function(){}}},Gw])],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&&(ch(),J(0,"div",0)(1,"div",1),M(2,"div",2),K(),dh(3),J(4,
"div",3),D(5,A6a,4,2,"button",4),J(6,"button",5),N("click",function(){return b.dismissTooltip()}),R(7," Got it "),K()()());a&2&&(th("width",b.width,"px"),I("ngClass",b.color),x(5),I("ngIf",b.actionBtnText),x(),I("color",b.color==="white"?"primary":""))},dependencies:[sw,Pv,Rv,qJ,FC],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 LS=function(){};LS.\u0275fac=function(a){return new (a||LS)};LS.\u0275mod=uf({type:LS});LS.\u0275inj=Dd({});var MS=function(){this.anchorMap=new Map},yZc=function(a,b){if(a.anchorMap.has(b))return a.anchorMap.get(b);var c={created$:new sg(1),destroyed$:new tg,dismissTooltip$:new tg};a.anchorMap.set(b,c);return c},zZc=function(a,b,c){yZc(a,b).created$.next(c)},AZc=function(a,b){yZc(a,b).destroyed$.next();yZc(a,b).created$.next(void 0)};MS.prototype.dismissTooltip=function(){yZc(this).dismissTooltip$.next()};MS.\u0275fac=function(a){return new (a||MS)};MS.\u0275prov=Cd({token:MS,factory:MS.\u0275fac,providedIn:LS});var NS={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}}},BZc=[NS.TOP_CENTER_RIGHT,NS.TOP_CENTER_LEFT,NS.BOTTOM_CENTER_RIGHT,NS.BOTTOM_CENTER_LEFT],CZc=[NS.TOP_LEFT,NS.TOP_RIGHT,NS.BOTTOM_LEFT,NS.BOTTOM_RIGHT],DZc=[NS.LEFT_CENTER_BOTTOM,NS.LEFT_CENTER_TOP,NS.RIGHT_CENTER_BOTTOM,NS.RIGHT_CENTER_TOP],EZc=[NS.LEFT_TOP,NS.LEFT_BOTTOM,NS.RIGHT_TOP,NS.RIGHT_BOTTOM];var OS=function(){};OS.\u0275fac=function(a){return new (a||OS)};OS.\u0275mod=uf({type:OS});OS.\u0275inj=Dd({});var PS=function(){},GZc=function(a,b){return FZc(a,b).map(function(c){return c.connectedPosition})},HZc=function(a,b,c){a=FZc(a,b).find(function(d){return d.connectedPosition===c});if(!a)throw Error("Ce`"+JSON.stringify(c));return a.pointerPosition},FZc=function(a,b){b=IZc(b).filter(function(c){return!a.includes(c)});return a.concat(b)},IZc=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?BZc:CZc).concat(a!==void 0&&a<60?DZc:EZc)};PS.\u0275fac=function(a){return new (a||PS)};PS.\u0275prov=Cd({token:PS,factory:PS.\u0275fac,providedIn:OS});var JZc=["template"],QS=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 tg;this.customPositions=[];this.widthOffset=0;this.color="blue";this.hasBackdrop=!1;this.actionBtnIcon=this.actionBtnText="";this.dismiss=new nq;this.beforeShown=new nq;this.action=new nq;this.pointerPosition=0;this.destroyed$=new sg;this.init$=new sg;this.savedAnchorStyles={zIndex:"",position:""};this.hideFeatureTooltip=function(){f.overlayRef&&
f.hasBackdrop&&f.anchor&&(f.anchor.nativeElement.style.position=f.savedAnchorStyles.position,f.anchor.nativeElement.style.zIndex=f.savedAnchorStyles.zIndex);var h;(h=f.overlayRef)==null||h.dispose();f.overlayRef=void 0}};QS.prototype.ngOnChanges=function(a){if(a.customPositions){var b;(b=this.overlayRef)==null||qjc(b,KZc(this))}};
QS.prototype.ngOnInit=function(){var a=yZc(this.anchorService,this.tooltipId),b=a.destroyed$,c=a.dismissTooltip$;LZc(this,a.created$);b.pipe(yg(this.destroyed$)).subscribe(this.hideFeatureTooltip);MZc(this,c)};QS.prototype.ngAfterViewInit=function(){this.init$.next()};QS.prototype.ngOnDestroy=function(){this.hideFeatureTooltip();this.destroyed$.next()};
var LZc=function(a,b){a.open$.pipe(Ala(a.init$),zg(function(){a.beforeShown.emit()}),xg(function(){return b.pipe(yg(a.dismiss))}),yg(a.destroyed$),eg(function(c){return!!c&&!a.isVisible()})).subscribe(function(c){a.showFeatureTooltip(c)})},MZc=function(a,b){b.pipe(yg(a.destroyed$),eg(function(){return a.isVisible()})).subscribe(function(){a.hideFeatureTooltip();a.dismiss.emit()})};
QS.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:KZc(this),scrollStrategy:this.getScrollStrategy(),minWidth:"fit-content",hasBackdrop:this.hasBackdrop});var d;(d=this.overlayRef)==null||d.attach(new gx(this.templateRef,this.containerRef))};
QS.prototype.getScrollStrategy=function(){var a=this.overlay.scrollStrategies;return this.hasBackdrop?a.block():a.reposition()};QS.prototype.getPositionStrategy=function(){if(!this.anchor)throw Error("De");return Yw(dx(this.overlay.position(),this.anchor),GZc(this.customPositions,this.anchor))};
var KZc=function(a){var b=a.getPositionStrategy();b.positionChanges.subscribe(function(c){a.ngZone.run(function(){a.pointerPosition=HZc(a.customPositions,a.anchor,c.connectionPair);a.changeDetectorRef.markForCheck()})});return b};QS.prototype.isVisible=function(){return!!this.overlayRef};QS.\u0275fac=function(a){return new (a||QS)(of(MS),of(lx),of(fh),of(Ph),of(Hv),of(PS))};
QS.\u0275cmp=y({type:QS,selectors:[["onedev-feature-tooltip"]],viewQuery:function(a,b){a&1&&hh(JZc,5);if(a&2){var c;lh(c=mh())&&(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:[ov],ngContentSelectors:["*"],decls:2,vars:0,consts:[["template",
""],[3,"action","dismiss","actionBtnText","actionBtnIcon","color","pointerPosition","widthOffset"]],template:function(a){a&1&&(ch(),D(0,B6a,2,5,"ng-template",null,0,Lh))},dependencies:[KS],encapsulation:2,changeDetection:0});var RS=function(){};RS.\u0275fac=function(a){return new (a||RS)};RS.\u0275mod=uf({type:RS});RS.\u0275inj=Dd({});var SS=function(){};SS.prototype.getValue=function(a){a=window.localStorage.getItem(a);return Nf(a?JSON.parse(a):null)};SS.prototype.getValues=function(a){return Nf(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))};SS.prototype.setValue=function(a,b){window.localStorage.setItem(a,JSON.stringify(b));return Nf(void 0)};SS.\u0275fac=function(a){return new (a||SS)};SS.\u0275prov=Cd({token:SS,factory:SS.\u0275fac,providedIn:"root"});var NZc=new le("Feature Tooltip Controller Config"),TS=function(a,b,c){this.config=a;this.keyValueStore=b;this.injector=c;this.clientStreamzService=this.config.enableUsageTracking?this.injector.get(II):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"},OZc=function(a){return a.keyValueStore.getValue(a.lastTooltipKey).pipe(C(function(b){return b===
null?!0:(new Date).getTime()-b>=a.config.cooldownMilliseconds}))};TS.prototype.hideTooltip=function(a){var b;(b=this.clientStreamzService)==null||ZHc(b,this.config.hiddenMetricName,!0);Zf([this.keyValueStore.setValue(this.lastTooltipKey,(new Date).getTime()),this.keyValueStore.setValue(US(this,a),"HIDDEN")]).pipe(lg())};
var PZc=function(a,b){a.keyValueStore.getValue(US(a,b)).pipe(eg(function(c){return c!=="SHOWING"})).subscribe(function(){a.keyValueStore.setValue(US(a,b),"HIDDEN")})},RZc=function(a,b,c){var d=c.map(function(e){return US(a,e)});return a.keyValueStore.getValues(d).pipe(C(function(e){return QZc(a,b,c,e)}))};
TS.prototype.showTooltip=function(a){var b;(b=this.clientStreamzService)==null||ZHc(b,this.config.shownMetricName,!0);return Zf([this.keyValueStore.setValue(this.lastTooltipKey,(new Date).getTime()),this.keyValueStore.setValue(US(this,a),"SHOWING")]).pipe(lg())};var QZc=function(a,b,c,d){return c.filter(function(e){e=d.get(US(a,e));return e===b||b==="UNSEEN"&&e===null})},US=function(a,b){return"onedev.tooltips."+a.config.productName+"."+b};
TS.\u0275fac=function(a){return new (a||TS)(be(NZc),be(SS),be(Cg))};TS.\u0275prov=Cd({token:TS,factory:TS.\u0275fac,providedIn:RS});var VS=function(a){var b=this;this.featureTooltipService=a;this.showTooltip$=Nf(void 0);this.destroyed$=new sg;this.getCurrentlyShowingTooltips=function(){return RZc(b.featureTooltipService,"SHOWING",SZc(b))}};
VS.prototype.ngAfterContentInit=function(){var a=this,b=this.showTooltip$.pipe(xg(this.getCurrentlyShowingTooltips),xg(function(c){return c.length>0?Nf(c[0]):Nf(void 0).pipe(TZc(a),UZc(a))}),C(function(c){return VZc(a,c)}),eg(function(c){return!!c}),C(function(c){return c}),ug({bufferSize:1,refCount:!0}));WZc(this,b);b.pipe(yg(this.destroyed$)).subscribe(function(c){c.open$.next();a.featureTooltipService.showTooltip(c.tooltipId)})};VS.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var TZc=function(a){return Bf(xg(function(){return OZc(a.featureTooltipService)}),eg(Af))},UZc=function(a){return Bf(xg(function(){return RZc(a.featureTooltipService,"UNSEEN",SZc(a))}),eg(function(b){return b.length>0}),C(function(b){return b[0]}))},WZc=function(a,b){b.pipe(xg(function(c){return c.dismiss.pipe(lg(c.tooltipId))}),yg(a.destroyed$)).subscribe(function(c){a.featureTooltipService.hideTooltip(c)})},SZc=function(a){return a.tooltips.map(function(b){return b.tooltipId})},VZc=function(a,b){return a.tooltips.find(function(c){return c.tooltipId===
b})};VS.\u0275fac=function(a){return new (a||VS)(of(TS))};VS.\u0275cmp=y({type:VS,selectors:[["onedev-feature-tooltip-controller"]],contentQueries:function(a,b,c){a&1&&ih(c,QS,4);if(a&2){var d;lh(d=mh())&&(b.tooltips=d)}},inputs:{showTooltip$:"showTooltip$"},standalone:!1,decls:0,vars:0,template:function(){},encapsulation:2,changeDetection:0});var WS=function(a,b){this.anchorService=a;this.element=b;this.hideTooltipWhenAnchorNotVisible=!1};WS.prototype.ngOnInit=function(){var a=this;this.hideTooltipWhenAnchorNotVisible?(this.intersectionObserver=new IntersectionObserver(function(b){l(b).next().value.isIntersecting?zZc(a.anchorService,a.tooltipId,a.element):AZc(a.anchorService,a.tooltipId)}),this.intersectionObserver.observe(this.element.nativeElement)):zZc(this.anchorService,this.tooltipId,this.element)};
WS.prototype.ngOnDestroy=function(){AZc(this.anchorService,this.tooltipId);var a;(a=this.intersectionObserver)==null||a.disconnect()};WS.\u0275fac=function(a){return new (a||WS)(of(MS),of(Te))};WS.\u0275dir=vf({type:WS,selectors:[["","onedevTooltipAnchor",""]],inputs:{tooltipId:[0,"onedevTooltipAnchor","tooltipId"],hideTooltipWhenAnchorNotVisible:"hideTooltipWhenAnchorNotVisible"},standalone:!1});var XS=function(a,b,c){var d=this;this.featureTooltipService=a;this.renderer=b;this.elementRef=c;this.preventTooltipFromShowing=function(){PZc(d.featureTooltipService,d.tooltipId)}};XS.prototype.ngOnInit=function(){this.unsubscribeFromEvent||(this.event="click")};XS.prototype.ngOnDestroy=function(){var a;(a=this.unsubscribeFromEvent)==null||a.call(this)};
nd.Object.defineProperties(XS.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)}}});XS.\u0275fac=function(a){return new (a||XS)(of(TS),of(Ji),of(Te))};
XS.\u0275dir=vf({type:XS,selectors:[["","onedevTooltipPreventer",""]],inputs:{tooltipId:[0,"onedevTooltipPreventer","tooltipId"],event:[0,"onedevPreventTooltipOn","event"]},standalone:!1});var XZc=new le("TooltipAnchor"),YZc=new le("TooltipPeventer"),YS=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)};YS.prototype.ngOnInit=function(){this.tooltipPreventer.ngOnInit();this.tooltipAnchor.ngOnInit()};
YS.prototype.ngOnDestroy=function(){this.tooltipPreventer.ngOnDestroy();this.tooltipAnchor.ngOnDestroy()};nd.Object.defineProperties(YS.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}}});
YS.\u0275fac=function(a){return new (a||YS)(of(TS),of(MS),of(Te),of(Ji),of(XZc),of(YZc))};YS.\u0275dir=vf({type:YS,selectors:[["","onedevFeatureTooltip",""]],inputs:{tooltipId:[0,"onedevFeatureTooltip","tooltipId"],hideTooltipWhenAnchorNotVisible:"hideTooltipWhenAnchorNotVisible",event:[0,"onedevPreventTooltipOn","event"]},standalone:!1,features:[Fh([{provide:XZc,useValue:WS},{provide:YZc,useValue:XS}])]});var ZZc=function(){this.className="gmat-subtitle-1 tooltip-title"};ZZc.\u0275fac=function(a){return new (a||ZZc)};ZZc.\u0275dir=vf({type:ZZc,selectors:[["","onedevTooltipTitle",""]],hostVars:2,hostBindings:function(a,b){a&2&&vh(b.className)},standalone:!1});var C6a=function(a,b){return[a,b]},ZS=function(){Z.apply(this,arguments);this.analytics=r(RE);this.enrichmentApi=r(dB);this.enrichmentCategoryFridge=r(oD);this.attachmentEnrichmentFridge=r(eB);this.confirmationDialogService=r(YJ);this.destroyRef=r(Gg);this.issuePermissionService=r(OK);this.documentationLinks=r(JJ);this.canDeleteEnrichments$=new Kn(!1);this.enrichmentCategoryToContent=new Map;this.enrichmentCategoryToLoading=new Map;this.restrictedDialogContentHtml=Xi("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=$i("a",{href:cd(this.documentationLinks.getRestrictedAccessHelpLink()),target:"_blank"},"Learn More");this.restrictedDialogHtml=Yi([this.restrictedDialogContentHtml,this.requiredDialogLearnMoreHtml]);this.openTabs=new Set;this.categoryToRestriction=new Map;this.cdr=r(NE);this.featureTooltipRegistry=r(ES);this.ATTACHMENT_ENRICHMENTS_FEATURE_TOOLTIP_ID="attachmentEnrichmentsFeatureTooltip";this.TOOLTIP_POSITIONS=NS;this.showFeatureTooltip=this.featureTooltipRegistry.showTooltip("attachmentEnrichmentsFeatureTooltip");
this.CATEGORY_INFO_HOVERCARD_CONFIG=Object.assign({},new GI,{position:[NHc]});this.someEnrichmentsRestricted=!1;this.categoryToActionMenuItems=new Map;this.hasReactedToEnrichment={};this.thumbsUpClickedForEnrichment={};this.thumbsDownClickedForEnrichment={}};Y(ZS,Z);ZS.\u0275dir=Z.\u0275dir;g=ZS.prototype;
g.ngOnInit=function(){var a=this;this.enrichmentCategoryToContent.clear();this.attachmentEnrichments.forEach(function(b){var c,d,e;a.categoryToRestriction.set(b.category,(e=(c=b.contentVerdict)==null?void 0:(d=c.piiVerdict)==null?void 0:d.severity)!=null?e:"NONE_DETECTED");var f,h;((f=b.contentVerdict)==null?void 0:(h=f.piiVerdict)==null?void 0:h.severity)!=="NONE_DETECTED"?a.someEnrichmentsRestricted=!0:a.enrichmentCategoryToContent.set(b.category,{content:b.content,formattedContent:b.formattedContent})});
this.issuePermissionService.hasAclToAdmin$.pipe(lp(this.destroyRef)).subscribe(function(b){a.canDeleteEnrichments$.next(b);a.initializeMenuItems()})};g.initializeMenuItems=function(){var a=this;this.attachmentEnrichments.forEach(function(b){var c=[];a.canDeleteEnrichments$.value&&c.push({type:"action",action:function(){a.showDeleteAttachmentDialog(b.category)},label:"Delete enrichment..."});a.categoryToActionMenuItems.set(b.category,c)})};
g.showDeleteAttachmentDialog=function(a){var b=this;this.confirmationDialogService.open({title:"Delete Enrichment",content:Xi("You are about to delete enrichment "+a+" on attachment "+this.attachmentId+". This action cannot be undone."),onConfirm:function(){vqc(b.enrichmentApi,b.issueId,b.attachmentId,a).pipe(lp(b.destroyRef)).subscribe(function(){b.enrichmentApi.submitEnrichmentFeedback({issueId:b.issueId,attachmentId:b.attachmentId,category:a,feedbackType:"DELETE"}).subscribe();b.attachmentEnrichmentFridge.poke(b.issueId)})}})};
g.openAllTabsCallback=function(a){var b=this,c;return z(function(d){if(!b.someEnrichmentsRestricted||a.every(function(e){return b.enrichmentCategoryToContent.has(e)}))return d.return(!0);c=pj();b.confirmationDialogService.open({title:"Access Enrichment",content:b.restrictedDialogHtml,onConfirm:function(){a.forEach(function(e){b.categoryToRestriction.get(e)!=="NONE_DETECTED"&&$Zc(b,e)});c.resolve(!0)},onDismiss:function(){c.resolve(!1)}});return d.return(c.promise)})};
g.openTabCallback=function(a){var b=this;return z(function(c){return b.categoryToRestriction.get(a)==="NONE_DETECTED"?c.return(!0):c.return(b.openAllTabsCallback([a]))})};
var $Zc=function(a,b){a.enrichmentCategoryToLoading.set(b,!0);tqc(a.enrichmentApi,a.issueId,a.attachmentId,b,a.categoryToRestriction.get(b)).pipe(lp(a.destroyRef)).subscribe(function(c){a.enrichmentCategoryToContent.set(b,{content:c.content,formattedContent:c.formattedContent});a.enrichmentCategoryToLoading.set(b,!1);a.cdr.detectChanges()})},a_c=function(a,b){[].concat(p(b)).filter(function(c){return!a.openTabs.has(c)}).forEach(function(c){a.openTabs.add(c);a.trackEvent("open",a.issueId+"_"+a.attachmentId+
"_"+c);a.enrichmentApi.submitEnrichmentFeedback({issueId:a.issueId,attachmentId:a.attachmentId,category:c,feedbackType:"OPEN"}).subscribe()});[].concat(p(a.openTabs)).filter(function(c){return!b.has(c)}).forEach(function(c){a.openTabs.delete(c);a.trackEvent("close",a.issueId+"_"+a.attachmentId+"_"+c);a.enrichmentApi.submitEnrichmentFeedback({issueId:a.issueId,attachmentId:a.attachmentId,category:c,feedbackType:"CLOSE"}).subscribe()})};g=ZS.prototype;
g.isLoading=function(a){var b;return(b=this.enrichmentCategoryToLoading.get(a))!=null?b:!1};g.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",P6a(a)),this.enrichmentApi.submitEnrichmentFeedback({issueId:a.issueId,attachmentId:a.attachmentId,category:a.category,feedbackType:"COPY"}).subscribe())};
g.hasReacted=function(a){return this.hasReactedToEnrichment[a.category]?this.hasReactedToEnrichment[a.category]:!1};g.thumbsUpClicked=function(a){return this.thumbsUpClickedForEnrichment[a.category]?this.thumbsUpClickedForEnrichment[a.category]:!1};g.thumbsDownClicked=function(a){return this.thumbsDownClickedForEnrichment[a.category]?this.thumbsDownClickedForEnrichment[a.category]:!1};
g.trackThumbsUp=function(a){this.hasReactedToEnrichment[a.category]=!0;this.thumbsUpClickedForEnrichment[a.category]=!0;this.trackEvent("accept",P6a(a));this.enrichmentApi.submitEnrichmentFeedback({issueId:a.issueId,attachmentId:a.attachmentId,category:a.category,feedbackType:"THUMBS_UP"}).subscribe()};
g.trackThumbsDown=function(a){this.hasReactedToEnrichment[a.category]=!0;this.thumbsDownClickedForEnrichment[a.category]=!0;this.trackEvent("reject",P6a(a));this.enrichmentApi.submitEnrichmentFeedback({issueId:a.issueId,attachmentId:a.attachmentId,category:a.category,feedbackType:"THUMBS_DOWN"}).subscribe()};g.trackEvent=function(a,b){this.analytics.trackEvent("attachmentEnrichment",a,b)};
var b_c=function(a){return a.attachmentEnrichments.map(function(b){return b.category})},E6a=function(a,b){return a.enrichmentCategoryFridge.watch(b).pipe(C(function(c){var d;return(d=c==null?void 0:c.displayName)!=null?d:b}),wg(b))},M6a=function(a,b){return a.enrichmentCategoryFridge.watch(b).pipe(C(function(c){var d;return(d=c==null?void 0:c.description)!=null?d:""}),wg(""))};ZS.\u0275fac=function(){var a;return function(b){return(a||(a=Re(ZS)))(b||ZS)}}();
ZS.\u0275cmp=y({type:ZS,selectors:[["b-attachment-enrichments"]],inputs:{issueId:"issueId",attachmentId:"attachmentId",attachmentEnrichments:"attachmentEnrichments"},standalone:!1,features:[Fh([NE]),Bg],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,D6a,5,5,"onedev-feature-tooltip-controller"),J(1,"div",1)(2,"expandable-tabs",2),N("expandedTabsChanged",function(c){return a_c(b,c)}),Pg(3,O6a,3,2,"expandable-tab",3,Og),K()());a&2&&(G(b.showFeatureTooltip?0:-1),x(),I("onedevFeatureTooltip",
b.ATTACHMENT_ENRICHMENTS_FEATURE_TOOLTIP_ID)("hideTooltipWhenAnchorNotVisible",!0),x(),I("tabKeys",b_c(b)),Kg("ariaLabel","Attachment enrichments for attachment id "+b.attachmentId),I("openTabCallback",b.openTabCallback.bind(b))("openAllTabsCallback",b.openAllTabsCallback.bind(b)),x(),Qg(b.attachmentEnrichments))},dependencies:[FC,sS,jO,sO,tO,EL,IS,FS,GS,JS,oG,Kx,zG,xG,DI,JI,QS,VS,YS,ZZc,bL,yN,Tv],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 $S=function(){this.documentationLinks=r(JJ);this.dateFormatter=r(BK);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.retentionModel=$nc;this.label="Restricted";this.contentType="item"};$S.prototype.getRetentionPeriod=function(){return this.retentionState&&this.retentionState.retentionPeriod?Iva(Math.floor(this.retentionState.retentionPeriod.seconds*1E3/864E5)):""};
var R6a=function(a){var b=new Date(864E13);return a.retentionState&&a.retentionState.scheduledDeletionTime?new Date(ql(a.retentionState.scheduledDeletionTime)||b):b},c_c=function(a){return a.retentionState&&a.retentionState.scheduledDeletionTime?ql(a.retentionState.scheduledDeletionTime)-Date.now()<12096E5:!1};$S.\u0275fac=function(a){return new (a||$S)};
$S.\u0275cmp=y({type:$S,selectors:[["b-restricted-chip"]],inputs:{label:"label",contentType:"contentType",retention:"retention",retentionState:"retentionState"},standalone:!1,decls:7,vars:5,consts:[["bubble",""],["popup",""],[1,"bubble",3,"panelTemplate"],["tabindex","0","aria-label","Display retention information","aria-haspopup","dialog","role","button",1,"chip","nowrap",3,"focus","blur"],[1,"icon-s",3,"svgIcon"],[1,"popup"],["target","_blank",3,"rel"]],template:function(a,b){if(a&1){var c=t();
J(0,"xap-bubble",2,0)(2,"div",3);N("focus",function(){u(c);var d=Q(1);return w(d.toggle(!0))})("blur",function(){u(c);var d=Q(1);return w(d.toggle(!1))});M(3,"mat-icon",4);R(4);K();D(5,Y6a,8,4,"ng-template",null,1,Lh);K()}a&2&&(a=Q(6),I("panelTemplate",a),x(2),uh("warning",c_c(b)),x(),I("svgIcon",c_c(b)?"delete-alert":"delete-clock"),x(),T(" ",b.label," "))},dependencies:[FC,RM,Wv],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 $6a=Xc(""),d_c=function(){this.port=this.iframe=null;this.deferredMessages=[]};d_c.prototype.load=function(){var a=this,b=e_c();this.iframe=a7a(b);f_c().then(function(){a.iframe&&document.body.appendChild(a.iframe)});return Z6a(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)})};
d_c.prototype.exec=function(a,b){var c=this;return new Promise(function(d,e){var f=new MessageChannel;f.port1.onmessage=function(E){f.port1.onmessage=null;E=E.data;E.error!=null?e(new EvalError(E.error)):d(E.result)};for(var h=[],k=[],q=[],v=l(b!=null?b:[]),A=v.next();!A.done;A=v.next())A=A.value,h.push(A.name),k.push(A.value),A.transfer&&q.push(A.value);h={code:a,paramNames:h,values:k};c.port?c.port.postMessage(h,[f.port2].concat(p(q))):c.deferredMessages.push({data:h,transferables:[f.port2].concat(p(q))})})};
d_c.prototype.dispose=function(){this.iframe!=null&&(this.iframe.parentNode&&this.iframe.parentNode.removeChild(this.iframe),this.iframe=null)};var e_c=function(){var a=(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(16));return Array.prototype.join.call(a,".")},f_c=function(){return new Promise(function(a){document.readyState!="loading"?a():AE(document,"DOMContentLoaded",function(){a()})})};var g_c={useFilePicker:!1},h_c,aT=function(a){this.options=a=a===void 0?g_c:a;i_c(this.options)||typeof navigator.msSaveOrOpenBlob==="function"||(this.sandbox=new d_c)};aT.download=function(a,b,c,d){c=c===void 0?"":c;d=d===void 0?g_c:d;return z(function(e){if(e.nextAddress==1)return B(e,j_c(a,b,c,d),2);if(e.yieldResult)return e.return();h_c||(h_c=new aT,h_c.init());return B(e,k_c(h_c,a,b,c),0)})};
aT.prototype.init=function(){var a=this;return z(function(b){return a.sandbox==null?b.return():B(b,a.sandbox.load(),0)})};aT.prototype.download=function(a,b,c){c=c===void 0?"":c;var d=this;return z(function(e){return e.nextAddress==1?B(e,j_c(a,b,c,d.options),2):e.yieldResult?e.return():B(e,k_c(d,a,b,c),0)})};
var k_c=function(a,b,c,d){d=d===void 0?"":d;var e,f;return z(function(h){switch(h.nextAddress){case 1:e=b instanceof Blob?b:new Blob([b],{type:d});if(typeof navigator.msSaveOrOpenBlob!=="function"){h.jumpTo(2);break}navigator.msSaveOrOpenBlob(e,c);return B(h,b7a(),3);case 3:return h.return();case 2:if(!ya()||raa(Daa(),16)>=0||!wa()&&(!sa("iPad")&&!sa("iPhone")||vaa()||wa()||(ta()?0:sa("Coast"))||va()||!sa("AppleWebKit"))){h.jumpTo(4);break}f=new FileReader;f.onload=function(){var k=jr(document,"A"),
q=cd(String(f.result));Wda(k,q);k.download=c;k.click()};f.readAsDataURL(e);return B(h,b7a(),5);case 5:return h.return();case 4:return a.sandbox==null&&(a.sandbox=new d_c,a.sandbox.load()),B(h,a.sandbox.exec('var url=URL.createObjectURL(blob);var a=document.createElement("a");if(!("download" in a)){throw new Error("Downloading not supported on this browser");}a.href=url;a.download=filename;document.body.appendChild(a);a.click();setTimeout(function(){document.body.removeChild(a);URL.revokeObjectURL(url);},250);',
[{name:"blob",value:e,transfer:!1},{name:"filename",value:c,transfer:!1}]),6);case 6:return B(h,b7a(),0)}})},j_c=function(a,b,c,d){c=c===void 0?"":c;d=d===void 0?g_c:d;var e;return z(function(f){switch(f.nextAddress){case 1:if(!i_c(d))return f.return(!1);Gf(f,2);return B(f,l_c(a,b,c),4);case 4:uu(f,3);break;case 2:e=Kf(f);if(e instanceof DOMException&&e.name==="SecurityError")return f.return(!1);throw e;case 3:return f.return(!0)}})},i_c=function(a){a=a===void 0?g_c:a;return a.useFilePicker&&!!window.showSaveFilePicker},
l_c=function(a,b,c){c=c===void 0?"":c;var d,e,f,h;return z(function(k){switch(k.nextAddress){case 1:var q={suggestedName:b},v;(v=b.match(/\..+$/))?(v=v[0],v=v.length>16?null:v):v=null;if(v){var A={},E=c;E=E.replace(/;[^]*/,"");q.types=[{description:"*"+v,accept:(A[/^\s*[a-zA-Z0-9+._-]+\/[a-zA-Z0-9+._-]+?\s*$/.test(E)?E:"*/*"]=[v],A)}]}d=q;Gf(k,2);return B(k,window.showSaveFilePicker(d),4);case 4:e=k.yieldResult;uu(k,3);break;case 2:f=Kf(k);if(f instanceof DOMException&&f.name==="AbortError")return k.return();
throw f;case 3:return B(k,e.createWritable(),5);case 5:return h=k.yieldResult,If(k,6),B(k,h.write(a),6);case 6:return Hf(k),B(k,h.close(),9);case 9:Jf(k,7);break;case 7:return k.return()}})};aT.prototype.dispose=function(){this.sandbox!=null&&this.sandbox.dispose()};ldc("SafeDownloader",aT);var bT=function(){Z.apply(this,arguments);var a=this;this.activeSession=r(Bs);this.documentationLinks=r(JJ);this.domSafe=r(UK);this.matDialogService=r(RJ);this.attachmentService=r(AS);this.cdr=r(NE,{self:!0});this.differs=r(Kv);this.paths=r(oN);this.userAccess=r(AD);this.butterBar=r(GJ);this.errorHandler=r(aK);this.analytics=r(RE);this.clipboard=r(aO);this.issueCommentDialogsService=r(ZR);this.issuePermissionService=r(OK);this.editIssueService=r(RK);this.snackBar=r(DJ);this.trackerHelpers=r(iK);this.attachmentCountService=
r(CS);this.attachmentsApi=r(mK);this.attachmentEnrichmentFridge=r(eB);this.routeParams=r(EK);this.attachmentEnrichments$=Yf(function(){return a.activeSession.isInternalSession()?a.attachmentEnrichmentFridge.watch(a.issueId):Nf(void 0)}).pipe(C(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=OA(this.activeSession,"enableInactiveUserContent");this.enableInlineImageAttachments=OA(this.activeSession,"enableInlineImageAttachments");this.canDeleteAttachment$=new Kn(!1);this.canUndeleteAttachment$=new Kn(!1)};Y(bT,Z);bT.\u0275dir=Z.\u0275dir;g=bT.prototype;
g.ngOnInit=function(){var a=this;this.attachment&&(this.attachmentDiffer=this.differs.find(this.attachment).create());var b;this.attachmentRetentionOverride=(b=this.attachment)==null?void 0:b.piiRetention;this.initializeMenuItems();m_c(this);this.issuePermissionService.canDeleteAttachment$(this.attachment,this.attachmentUploader).pipe(yg(this.destroyed$)).subscribe(function(c){a.canDeleteAttachment$.next(c);a.initializeMenuItems()});this.issuePermissionService.canUndeleteAttachment$(this.attachment,
this.attachmentUploader).pipe(yg(this.destroyed$)).subscribe(function(c){a.canUndeleteAttachment$.next(c);a.initializeMenuItems()});this.destroyed$.subscribe(function(){var c;((c=a.attachment)==null?0:c.attachmentId)&&a.attachmentCountService.inlinedAttachmentSet.delete(a.attachment.attachmentId)})};g.ngDoCheck=function(){this.attachmentDiffer&&this.attachmentDiffer.diff(this.attachment)&&this.initializeMenuItems()};
g.ngOnChanges=function(a){this.setHasViewAccess();a.attachment&&this.attachment&&(this.attachmentDiffer=this.differs.find(this.attachment).create())};
g.initializeMenuItems=function(){var a=this;this.actionMenuItems=[];var b;if((b=this.attachment)==null?0:b.attachmentId)this.canDeleteAttachment$.value&&this.actionMenuItems.push({type:"action",action:function(){a.showDeleteAttachmentDialog()},label:"Delete attachment..."}),this.canUndeleteAttachment$.value&&this.actionMenuItems.push({type:"action",action:function(){SMc(a.editIssueService,a.issueId,a.attachment)},label:"Restore attachment"});this.actionMenuItems.push({type:"action",action:function(){MXc(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";LXc(a.issueCommentDialogsService,"attachment",d).then(function(e){e&&n_c(a,d)})},label:c?"Match issue retention...":"Revert to component retention..."})}this.cdr.markForCheck()};
g.setHasViewAccess=function(){var a=this;this.isRestricted()?this.attachment==null?this.hasViewAccess=!1:(this.hasViewAccess=!1,BD(this.userAccess,"reader","issues/"+this.issueId+"/attachments/"+this.attachment.attachmentId).then(function(b){a.hasViewAccess=b;a.cdr.detectChanges()})):this.hasViewAccess=!0};g.getFilename=function(){var a;return((a=this.attachment)==null?void 0:a.filename)||""};g.getSize=function(){var a;return((a=this.attachment)==null?void 0:a.length)||0};
var f7a=function(a,b){b=b===void 0?!0:b;var c;if((c=a.attachment)==null||!c.attachmentId)throw Error("Fe");if(a.enableInactiveUserContent){if(b)return $Kc(a.attachmentsApi)+"/download/attachment/"+a.issueId+"/"+a.attachment.attachmentId+"?download=true";var d;return Dq.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 VAc(a,
"download",b)};bT.prototype.isActive=function(){var a;if((a=this.attachment)==null||!a.attachmentId)return!1;var b;return((b=this.attachment.entityStatus)==null?void 0:b.status)==="ACTIVE"};bT.prototype.viewAttachment=function(){this.isRestricted()?o_c(this,!1):this.domSafe.openInNewTab(f7a(this,!1))};
var h7a=function(a){var b,c=(b=a.attachment)==null?void 0:b.attachmentId,d,e=(d=a.attachment)==null?void 0:d.filename,f,h=(f=a.attachment)==null?void 0:f.contentType;a.isRestricted()?o_c(a,!0):a.enableInactiveUserContent?a.subscriptions.add(aLc(a.attachmentsApi,a.issueId,c.toString()).subscribe(function(k){k&&aT.download(k,e,h)})):a.domSafe.openInNewTab(f7a(a,!0))};bT.prototype.isRestricted=function(){return this.getRestrictionSeverity()!=="NONE_DETECTED"};
bT.prototype.getRestrictionSeverity=function(){var a;return Wm((a=this.attachment)==null?void 0:a.contentVerdict)};bT.prototype.getRestrictedLabel=function(){return Lza(this.getRestrictionSeverity())};var e7a=function(a){return(a=a.getRestrictionSeverity())?"bv2-restricted-content-limit-"+Kza(a):""},o_c=function(a,b){a.analytics.trackEvent("restrictedContent","viewRestrictedContent","attachment");a.matDialogService.open(zS,{width:"400px",data:{attachment:a.attachment,issueId:a.issueId,download:b}})};
bT.prototype.showDeleteAttachmentDialog=function(){var a;(a=this.attachment)!=null&&a.attachmentId&&this.issueCommentDialogsService.showDeleteAttachmentDialog(this.issueId,this.attachment)};
var n_c=function(a,b){var c;(c=a.attachment)!=null&&c.attachmentId?(a.analytics.trackEvent("restrictedContent","updateRetention","attachment"),a.attachmentRetentionSaveInProgress=!0,a.attachmentService.updateRetention(a.issueId,a.attachment.attachmentId||0,b).pipe(yg(a.destroyed$)).subscribe({next:function(d){a.attachmentRetentionSaveInProgress=!1;a.attachment&&(a.attachment.piiRetention=d.piiRetention,a.attachment.piiRetentionState=d.piiRetentionState);Kq(a.butterBar,"Attachment retention updated",
4E3);a.attachmentRetentionOverride=b==="INDEFINITE"?"INDEFINITE":"COMPONENT_DEFAULT";a.initializeMenuItems();a.cdr.detectChanges()},error:function(){a.attachmentRetentionSaveInProgress=!1;bK(a.errorHandler,"Attachment retention update failed")}})):bK(a.errorHandler,"Attachment id is missing")},m_c=function(a){var b,c,d;z(function(e){(b=Number(a.routeParams.downloadAttachment))&&b===((c=a.attachment)==null?void 0:c.attachmentId)&&(d=a.routeParams.download==="true",o_c(a,d));Lf(e)})};
bT.\u0275fac=function(){var a;return function(b){return(a||(a=Re(bT)))(b||bT)}}();
bT.\u0275cmp=y({type:bT,selectors:[["b-attachment-viewer"]],inputs:{attachment:"attachment",issueId:"issueId",attachmentUploader:"attachmentUploader"},standalone:!1,features:[Fh([NE]),Bg,ov],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&&(J(0,"div",1),M(1,"b-icon",2),K(),J(2,
"div",3)(3,"div",4),R(4),J(5,"span",5),F(6,c7a,1,3,"b-restricted-chip",6),F(7,d7a,2,3,"span",7),K()(),J(8,"div",8),R(9),F(10,g7a,2,8,"span",9),F(11,i7a,5,8),J(12,"xap-bubble",10),F(13,j7a,3,3,"span",11),D(14,k7a,4,1,"ng-template",null,0,Lh),K(),F(16,l7a,1,3,"attachment-preview",12),K(),F(17,n7a,1,1),U(18,"async"),K());if(a&2){var c;a=Q(15);x(4);T(" ",b.getFilename()," ");x(2);G(b.isRestricted()?6:-1);x();G(b.actionMenuItems.length>0?7:-1);x(2);T(" ",CQa(b.getSize())," ");x();var d;var e=b.isActive()&&
nsa((d=b.attachment)==null?void 0:d.contentType);G(e?10:-1);x();G(b.isActive()?11:-1);x();I("panelTemplate",a);x();G(b.isRestricted()&&!b.hasViewAccess?13:-1);x(3);var f,h,k;if(d=!(!(b.enableInlineImageAttachments&&b.hasViewAccess&&b.isActive()&&((f=b.attachment)==null?0:f.contentType)&&((h=b.attachment)==null?0:h.contentType.startsWith("image/")))||((k=b.attachment)==null?0:k.contentType.startsWith("image/svg")))){var q;((q=b.attachment)==null?0:q.attachmentId)?(f=b.attachmentCountService,h=b.attachment.attachmentId,
f.inlinedAttachmentSet.has(h)?f=!0:f.getCount()<12?(f.inlinedAttachmentSet.add(h),f=!0):f=!1):f=!1;d=f}G(d?16:-1);x();G((c=V(18,10,b.attachmentEnrichments$))?17:-1,c)}},dependencies:[ZS,BS,FC,sS,DS,eL,oG,Kx,zG,xG,$S,RM,Tv],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 cT=function(){this.contextSensitiveRegistry=r(LK);this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(og());this.requestTogglePreviewVisible=new sg(1);this.isPreviewVisible$=Uf([this.requestTogglePreviewVisible.pipe(wg(void 0)),this.issueId$]).pipe(C(function(a){a=l(a);a.next();a=a.next().value;if(!a)return!0;a=gl("isHmfPreviewVisibleForIssue"+a)();return a===void 0?!0:a==="VISIBLE"}),ug({bufferSize:1,refCount:!0}))},p_c=function(a){var b,c,d;z(function(e){if(e.nextAddress==1)return B(e,
Rf(a.issueId$),2);if(e.nextAddress!=3)return(b=e.yieldResult)?B(e,Rf(a.isPreviewVisible$),3):e.return();d=(c=e.yieldResult)?"HIDDEN":"VISIBLE";$oc("isHmfPreviewVisibleForIssue"+b)(d);a.requestTogglePreviewVisible.next();Lf(e)})};cT.\u0275fac=function(a){return new (a||cT)};cT.\u0275prov=Cd({token:cT,factory:cT.\u0275fac,providedIn:"root"});var dT=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,dT.messageId)};Y(dT,n);dT.prototype.getIssueId=function(){return xk(this,1,void 0,Nc)};dT.prototype.getIssueId_asLegacyNumberOrString=function(){return Um(this,1,void 0,Nc)};dT.prototype.getIssueId_asString=function(){return Bk(this,1,void 0,Nc)};dT.prototype.setIssueId=function(a){return Ek(this,1,a,void 0,Nc)};dT.messageId="tailwind.CreateRunRequest";var pr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,pr.messageId)};Y(pr,n);pr.prototype.getIssueId=function(){return xk(this,2,void 0,Nc)};pr.prototype.getIssueId_asLegacyNumberOrString=function(){return Um(this,2,void 0,Nc)};pr.prototype.getIssueId_asString=function(){return Bk(this,2,void 0,Nc)};pr.prototype.setIssueId=function(a){return Ek(this,2,a,void 0,Nc)};pr.messageId="tailwind.RunMetadata";var q_c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,q_c.messageId)};Y(q_c,n);q_c.messageId="tailwind.GetIssueEligibilityResponse";var eT=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,eT.messageId)};Y(eT,n);eT.prototype.getIssueId=function(){return xk(this,1,void 0,Nc)};eT.prototype.getIssueId_asLegacyNumberOrString=function(){return Um(this,1,void 0,Nc)};eT.prototype.getIssueId_asString=function(){return Bk(this,1,void 0,Nc)};eT.prototype.setIssueId=function(a){return Ek(this,1,a,void 0,Nc)};eT.messageId="tailwind.RetryRunRequest";var u7a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,u7a.messageId)};Y(u7a,n);u7a.messageId="tailwind.RunResultsValidation";var qr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,qr.messageId)};Y(qr,n);qr.prototype.getEntriesList=function(){return Aj(this,1,Bj(),Nc)};qr.prototype.getEntries=function(a){return Ku(this,1,a,Nc)};qr.messageId="tailwind.RunSummarySection";var r_c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,r_c.messageId)};Y(r_c,n);r_c.messageId="tailwind.RunSummary";var sr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,sr.messageId)};Y(sr,n);sr.prototype.getName=function(){return Rc(this,1,void 0,Nc)};sr.prototype.setName=function(a){return Qk(this,1,a,Nc)};sr.prototype.hasName=function(){return mk(this,1,Nc)};sr.prototype.getNameOrUndefined=function(){return Hu(this,1,Nc)};sr.messageId="tailwind.RunTrajectoryStepFunctionCall";var rr=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,rr.messageId)};Y(rr,n);rr.prototype.getText=function(){return Rc(this,1,void 0,Nc)};rr.prototype.setText=function(a){return Qk(this,1,a,Nc)};rr.messageId="tailwind.RunTrajectoryStep";var s7a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,s7a.messageId)};Y(s7a,n);s7a.messageId="tailwind.RunTrajectory";var fT=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,fT.messageId)};Y(fT,n);fT.prototype.getSummary=function(){return W(this,r_c,1,Nc)};fT.prototype.hasSummary=function(){return tk(this,r_c,1,Nc)};fT.messageId="tailwind.RunResults";var s_c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,s_c.messageId)};Y(s_c,n);g=s_c.prototype;g.getMetadata=function(){return W(this,pr,1,Nc)};g.getMutableMetadata=function(){return Cu(this,pr,1,Nc)};g.setMetadata=function(a){X(this,pr,1,a,Nc)};g.hasMetadata=function(){return tk(this,pr,1,Nc)};g.getResults=function(){return W(this,fT,3,Nc)};g.hasResults=function(){return tk(this,fT,3,Nc)};s_c.messageId="tailwind.Run";var gT=function(){this.executor=r(PA)};gT.prototype.getIssueEligibility=function(a){return this.executor.get({url:"action/tailwind/eligibility/"+a,responseConstructor:q_c}).pipe(C(q7a))};gT.prototype.createRun=function(a){return this.executor.post({url:"action/tailwind/create_run",body:(new dT).setIssueId(a),responseConstructor:pr}).pipe(C(p7a))};
gT.prototype.retryRun=function(a){var b=this.executor,c=b.post;var d=(new eT).setIssueId(a.issueId);d=Qk(d,2,a.userInstructions,Nc);a=Qk(d,3,a.previousRunId,Nc);return c.call(b,{url:"action/tailwind/retry_run",body:a,responseConstructor:pr}).pipe(C(p7a))};var t_c=function(a,b){return a.executor.get({url:"action/tailwind/get_run/"+encodeURIComponent(b),responseConstructor:s_c}).pipe(C(v7a))};gT.\u0275fac=function(a){return new (a||gT)};gT.\u0275prov=Cd({token:gT,factory:gT.\u0275fac,providedIn:"root"});var u_c=function(a){this.maxEntries=a;this.dataStore=new Map};u_c.prototype.getKeys=function(){return Array.from(this.dataStore.keys())};
var v_c=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)},w_c=function(a){return Array.from(a.dataStore.keys()).join(",")},x_c=function(a,b){var c;b=(c=b==null?void 0:b.split(","))!=null?c:[];a.dataStore.clear();c=l(b);for(b=c.next();!b.done;b=c.next())a.dataStore.set(b.value,void 0)};u_c.prototype.hasKey=function(a){return this.dataStore.has(a)};var y_c={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"},hT={},z_c=(hT[0]={message:"Use AI to fix this issue"},hT[1]={message:"Generating suggestion. It could take a while. Please check back later and refresh your page."},hT[2]={message:"Loading AI suggested fix status."},
hT[3]={message:"Fix ready for review."},hT[4]={message:"AI was unable to fix this issue. You can try again on another issue."},hT[5]={message:"A previously generated fix exists. This issue is not eligible for regenerating."},hT[6]={message:"A previously failed generation exists. This issue is not eligible for regenerating."},hT[7]={message:"Not eligible for AI fix."},hT),iT=function(){var a=this;this.activeSession=r(Bs);this.tailwindApi=r(gT);this.contextSensitiveRegistry=r(LK);this.ignoredIssuesCache=
new u_c(100);this.pollingObservable=null;this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(C(Oj),og(),ug({bufferSize:1,refCount:!0}));this.runForCurrentIssue$=new Kn(void 0);this.isEnabledForCurrentIssue$=this.issueId$.pipe(xg(function(c){return c&&OA(a.activeSession,"enableTailwind")&&a.activeSession.isInternalSession()&&!a.ignoredIssuesCache.hasKey(c)?a.tailwindApi.getIssueEligibility(c).pipe(C(function(d){return d.eligibilityState==="ELIGIBLE_NOT_STARTED"||d.eligibilityState==="EXISTING"||
d.eligibilityState==="INELIGIBLE_EXISTING"}),hg(function(){return Nf(!1)})):Nf(!1)}),ug({bufferSize:1,refCount:!0}));var b=gl("llm_suggested_bug_fix_ignored_issues")();x_c(this.ignoredIssuesCache,b!=null?b:void 0)},B_c=function(a,b){if(a.pollingObservable)return a.pollingObservable;a.pollingObservable=Yf(function(){return t_c(a.tailwindApi,b)}).pipe(zg(function(c){c.metadata!==void 0&&a.runForCurrentIssue$.next(c)}),C(function(c){if(c.metadata===void 0)throw Error("Ge");return A_c(c)?3:4}),z7a(),
hg(function(c){return c.message==="Not completed"?Nf(1):Nf(4)}),pg(function(){a.pollingObservable=null}));return a.pollingObservable},C_c=function(a,b){return a.tailwindApi.getIssueEligibility(b).pipe(xg(function(c){switch(c.eligibilityState){case "INELIGIBLE":return Nf(7);case "ELIGIBLE_NOT_STARTED":return Nf(0);case "EXISTING":case "INELIGIBLE_EXISTING":return t_c(a.tailwindApi,c.runMetadata.runId).pipe(zg(function(d){d.metadata!==void 0&&a.runForCurrentIssue$.next(d)}),C(function(d){return d.metadata!==
void 0?A_c(d)?c.eligibilityState==="EXISTING"?3:5:c.eligibilityState==="EXISTING"?4:6:1}),hg(function(){return Nf(4)}),wg(2));default:return Nf(0)}}),mg(2),hg(function(){return Nf(4)}))};iT.prototype.createRun=function(a){return this.tailwindApi.createRun(a)};iT.prototype.retryRun=function(a,b,c){return this.tailwindApi.retryRun({issueId:a,userInstructions:b,previousRunId:c})};var A_c=function(a){var b;return!((b=a.results)==null||!b.oclNumber)};iT.\u0275fac=function(a){return new (a||iT)};
iT.\u0275prov=Cd({token:iT,factory:iT.\u0275fac,providedIn:"root"});var D_c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(D_c,n);var E_c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,E_c.messageId)};Y(E_c,n);g=E_c.prototype;g.getIssueId=function(){return xk(this,1,void 0,Nc)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1,void 0,Nc)};g.getIssueId_asString=function(){return Bk(this,1,void 0,Nc)};g.setIssueId=function(a){return Ek(this,1,a,void 0,Nc)};g.getResponseId=function(){return Rc(this,2,void 0,Nc)};g.setResponseId=function(a){return Qk(this,2,a,Nc)};E_c.messageId="hmf.SendFeedbackRequest";var F_c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,F_c.messageId)};Y(F_c,n);g=F_c.prototype;g.getIssueCategory=function(){return pk(this,1,void 0,Nc)};g.getIssueId=function(){return xk(this,2,void 0,Nc)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,2,void 0,Nc)};g.getIssueId_asString=function(){return Bk(this,2,void 0,Nc)};g.setIssueId=function(a){return Ek(this,2,a,void 0,Nc)};F_c.messageId="hmf.GetIssueEligibilityResponse";var G_c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,G_c.messageId)};Y(G_c,n);g=G_c.prototype;g.getResponse=function(){return Rc(this,1,void 0,Nc)};g.setResponse=function(a){return Qk(this,1,a,Nc)};g.getIssueCategory=function(){return pk(this,2,void 0,Nc)};g.getResponseId=function(){return Rc(this,3,void 0,Nc)};g.setResponseId=function(a){return Qk(this,3,a,Nc)};g.getIssueId=function(){return xk(this,4,void 0,Nc)};
g.getIssueId_asLegacyNumberOrString=function(){return Um(this,4,void 0,Nc)};g.getIssueId_asString=function(){return Bk(this,4,void 0,Nc)};g.setIssueId=function(a){return Ek(this,4,a,void 0,Nc)};G_c.messageId="hmf.GetIssueHelpResponse";var jT=function(){this.executor=r(PA)},H_c=function(a,b){return a.executor.get({url:"action/helpmefix/"+b,responseConstructor:G_c}).pipe(C(B7a),hg(function(){return Nf({issueId:b,issueCategory:"ISSUE_CATEGORY_UNSUPPORTED"})}))};jT.prototype.getIssueEligibility=function(a){return this.executor.get({url:"action/helpmefix/"+a+"/eligibility",responseConstructor:F_c}).pipe(C(C7a),hg(function(){return Nf({issueId:a,issueCategory:"ISSUE_CATEGORY_UNSUPPORTED"})}))};
jT.prototype.sendFeedback=function(a,b){var c=this.executor,d=c.post;var e=(new E_c).setIssueId(b.issueId).setResponseId(b.responseId);var f=new D_c;b=Rk(f,1,eoc[b.userFeedback.sentiment]);e=X(e,D_c,3,b,Nc);return d.call(c,{url:"action/helpmefix/"+a+"/feedback",body:e,responseConstructor:null})};jT.\u0275fac=function(a){return new (a||jT)};jT.\u0275prov=Cd({token:jT,factory:jT.\u0275fac,providedIn:"root"});var kT=function(){XA.call(this);this.api=r(jT);this.recordType="issueHelpMeFixEligibility";this.idForRecord=function(a){return String(a.issueId)};this.isEqual=function(a,b){return a.issueId===b.issueId}};Y(kT,XA);kT.prototype.fetchOne=function(a){return this.api.getIssueEligibility(Number(a))};kT.\u0275fac=function(a){return new (a||kT)};kT.\u0275prov=Cd({token:kT,factory:kT.\u0275fac,providedIn:"root"});var lT=function(){XA.call(this);this.api=r(jT);this.recordType="issueHelpMeFix";this.idForRecord=function(a){return String(a.issueId)};this.isEqual=function(a,b){return a.responseId===b.responseId}};Y(lT,XA);lT.prototype.fetchOne=function(a){return H_c(this.api,Number(a))};lT.\u0275fac=function(a){return new (a||lT)};lT.\u0275prov=Cd({token:lT,factory:lT.\u0275fac,providedIn:"root"});var mT=function(){var a=this;this.appEvents=r(FB);this.activeSession=r(Bs);this.contextSensitiveRegistry=r(LK);this.issueHelpMeFixFridge=r(lT);this.issueHelpMeFixEligibilityFridge=r(kT);this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(C(Oj),og(),ug({bufferSize:1,refCount:!0}));this.isHelpMeFixEnabled$=Nf(OA(this.activeSession,"enableHelpMeFixSidebar")&&this.activeSession.isInternalSession()).pipe(ug({bufferSize:1,refCount:!0}));this.isEnabledForCurrentIssue$=this.isHelpMeFixEnabled$.pipe(xg(function(b){return b?
a.issueId$.pipe(xg(function(c){return c?a.issueHelpMeFixEligibilityFridge.watch(Number(c),{trustUncertainMemory:!0}).pipe(C(function(d){return(d==null?void 0:d.issueCategory)!=="ISSUE_CATEGORY_UNSUPPORTED"})):Nf(!1)}),ug({bufferSize:1,refCount:!0})):Nf(!1)}));this.issueHelpMeFix$=this.isEnabledForCurrentIssue$.pipe(xg(function(b){return b?a.issueId$.pipe(mg(1),xg(function(c){return c?a.issueHelpMeFixFridge.watch(Number(c),{trustUncertainMemory:!0}):Nf(void 0)}),ug({bufferSize:1,refCount:!0})):Nf(void 0)}));
this.isHelpMeFixSidebarOpen$=dg(this.appEvents.openHelpMeFixSidebar.pipe(lg(!0)),this.appEvents.closeHelpMeFixSidebar.pipe(lg(!1))).pipe(wg(!1))};mT.\u0275fac=function(a){return new (a||mT)};mT.\u0275prov=Cd({token:mT,factory:mT.\u0275fac,providedIn:"root"});var nT=function(){var a=this;this.appEvents=r(FB);this.analytics=r(RE);this.helpMeFixPreviewService=r(cT);this.helpMeFixService=r(mT);this.llmSuggestedBugFixService=r(iT);this.destroyRef=r(Gg);this.issueHelpMeFixResponseNoHeaders$=this.helpMeFixService.issueHelpMeFix$.pipe(C(function(b){return b&&b.response?H7a(b.response):"Response not available."}));this.shouldDisplayPreview$=Uf([this.helpMeFixService.isHelpMeFixSidebarOpen$,this.helpMeFixService.isEnabledForCurrentIssue$,this.helpMeFixPreviewService.isPreviewVisible$,
this.llmSuggestedBugFixService.isEnabledForCurrentIssue$]).pipe(C(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&&e&&!c}),zg(function(b){b&&a.analytics.trackEvent("helpMeFix","display","previewShown")}),ug({refCount:!0,bufferSize:1}))};
nT.prototype.ngOnInit=function(){var a=this;this.shouldDisplayPreview$.pipe(xg(function(b){return b?a.helpMeFixService.issueHelpMeFix$:Nf(null)}),zg(function(b){b&&a.analytics.trackEvent("helpMeFix","expandButtonShown",String(b==null?void 0:b.issueCategory))}),lp(this.destroyRef)).subscribe()};
nT.prototype.openHelpMeFixSidebar=function(){var a=this,b,c;return z(function(d){if(d.nextAddress==1)return a.appEvents.openHelpMeFixSidebar.next(),B(d,Rf(a.helpMeFixService.issueHelpMeFix$),2);b=d.yieldResult;a.analytics.trackEvent("helpMeFix","openSidebarFromPreview",String((c=b)==null?void 0:c.issueCategory));Lf(d)})};
var D7a=function(a){var b,c;return z(function(d){if(d.nextAddress==1)return p_c(a.helpMeFixPreviewService),B(d,Rf(a.helpMeFixService.issueHelpMeFix$),2);b=d.yieldResult;a.analytics.trackEvent("helpMeFix","hidePreview",String((c=b)==null?void 0:c.issueCategory));Lf(d)})};nT.\u0275fac=function(a){return new (a||nT)};
nT.\u0275cmp=y({type:nT,selectors:[["help-me-fix-preview"]],inputs:{issueId:"issueId"},standalone:!1,decls:2,vars:3,consts:[[1,"container","carded","padded-s"],[1,"flex-kids-x","align-items-center","margin-s-bottom"],["svgIcon","spark_24px",1,"logo","margin-xs-right"],[1,"uppercase"],[1,"flex-kids-y","space-between"],[1,"margined"],[1,"preview","margin-s-bottom","line-clamp-2"],[1,"flex-kids-x"],["type","button","mat-button","",1,"small",3,"click"],["type","button","mat-button","",1,"small","margin-xs-left",
3,"click"]],template:function(a,b){a&1&&(F(0,G7a,8,3,"div",0),U(1,"async"));a&2&&G(V(1,1,b.shouldDisplayPreview$)?0:-1)},dependencies:[FC,oG,Jx,yN,Tv],styles:[".container[_ngcontent-%COMP%]{min-height:50px;max-height:150px;overflow-y:hidden;background-color:#edfbf1;background-color:var(--green-bg)}.preview[_ngcontent-%COMP%]{max-height:48px;overflow-y:hidden}header[_ngcontent-%COMP%]   mat-icon.logo[_ngcontent-%COMP%]{color:#137333;color:var(--green-text);height:16px;width:16px}header[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{margin-top:2px}"]});var oT=function(){this.helpMeFixPreviewService=r(cT);this.helpMeFixService=r(mT);this.appEvents=r(FB);this.analytics=r(RE);this.shouldDisplayButton$=Uf([this.helpMeFixService.isHelpMeFixSidebarOpen$,this.helpMeFixService.isEnabledForCurrentIssue$,this.helpMeFixPreviewService.isPreviewVisible$]).pipe(C(function(a){var b=l(a);a=b.next().value;var c=b.next().value;b=b.next().value;return!a&&c&&!b}))};
oT.prototype.openHelpMeFixSidebar=function(){var a=this,b,c;return z(function(d){if(d.nextAddress==1)return a.appEvents.openHelpMeFixSidebar.next(),p_c(a.helpMeFixPreviewService),B(d,Rf(a.helpMeFixService.issueHelpMeFix$),2);b=d.yieldResult;a.analytics.trackEvent("helpMeFix","openSidebarFromSmallPreviewButton",String((c=b)==null?void 0:c.issueCategory));Lf(d)})};oT.\u0275fac=function(a){return new (a||oT)};
oT.\u0275cmp=y({type:oT,selectors:[["help-me-fix-preview-button"]],standalone:!1,decls:2,vars:3,consts:[["type","button","mat-stroked-button","",1,"gmat-button","small"],["type","button","mat-stroked-button","",1,"gmat-button","small",3,"click"],["svgIcon","spark_24px",1,"margin-xs-right"]],template:function(a,b){a&1&&(F(0,I7a,3,0,"button",0),U(1,"async"));a&2&&G(V(1,1,b.shouldDisplayButton$)?0:-1)},dependencies:[FC,oG,Jx,Tv],styles:["[_nghost-%COMP%]   button[_ngcontent-%COMP%]{background-color:#edfbf1;background-color:var(--green-bg);color:#137333;color:var(--green-text)}"]});var pT=function(){this.dialogRef=r(KJ);this.documentationLinks=r(JJ);this.data=r(QJ);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc"};pT.prototype.onNoClick=function(){this.dialogRef.close(!1)};pT.\u0275fac=function(a){return new (a||pT)};
pT.\u0275cmp=y({type:pT,selectors:[["b-restricted-confirmation-dialog"]],standalone:!1,decls:12,vars:5,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["target","_blank","aria-label","Learn more about restricted access",3,"rel"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","restricted-confirmation-dialog-cancel",3,"click"],["type","button","mat-flat-button","","color","primary","cdkFocusInitial","",1,"medium","dialog-primary-action","restricted-confirmation-dialog-confirm",
3,"mat-dialog-close"]],template:function(a,b){a&1&&(J(0,"h1",0),R(1),K(),J(2,"div",1)(3,"p"),R(4),J(5,"a",2),R(6," Learn More "),K()()(),J(7,"div",3)(8,"button",4),N("click",function(){return b.onNoClick()}),R(9," Cancel "),K(),J(10,"button",5),R(11," Confirm "),K()());a&2&&(x(),wh(b.data.title),x(3),T(" ",b.data.content," "),x(),I("rel",b.EXTERNAL_LINK_REL),Lg("href",b.documentationLinks.getRestrictedAccessHelpLink(),hf),x(5),I("mat-dialog-close",!0))},dependencies:[oG,Jx,SJ,UJ,WJ,VJ],encapsulation:2});var qT=function(){this.dialog=r(RJ);this.documentationLinks=r(JJ);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.disabled=!1;this.onConfirm=new LE};
qT.prototype.openDialog=function(){var a=this;LJ(this.dialog.open(pT,{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()})};qT.\u0275fac=function(a){return new (a||qT)};
qT.\u0275cmp=y({type:qT,selectors:[["b-restricted-comment-placeholder"]],inputs:{disabled:"disabled"},outputs:{onConfirm:"onConfirm"},standalone:!1,decls:5,vars:3,consts:[["type","button","mat-stroked-button","","color","primary",1,"small","restricted-comment-load",3,"click","disabled"],["target","_blank","aria-label","Learn more about restricted access",3,"rel"]],template:function(a,b){a&1&&(J(0,"span")(1,"button",0),N("click",function(){return b.openDialog()}),R(2," Show Restricted Content "),K(),
J(3,"a",1),R(4," Learn More "),K()());a&2&&(x(),I("disabled",b.disabled),x(2),I("rel",b.EXTERNAL_LINK_REL),Lg("href",b.documentationLinks.getRestrictedAccessHelpLink(),hf))},dependencies:[oG,Jx],styles:[".mat-mdc-outlined-button[_ngcontent-%COMP%]{margin-right:1em}/*# sourceMappingURL=restricted_comment_placeholder.css.map */"],changeDetection:0});var rT=function(){};rT.\u0275fac=function(a){return new (a||rT)};rT.\u0275mod=uf({type:rT});rT.\u0275inj=Dd({imports:[mH,HC,BG,CG]});var I_c=["commentActionsMenu"],J_c=["editDescription"],e8a=function(){return[]},sT=function(){Z.apply(this,arguments);var a=this;this.eventsForIssue=r(TD);this.userPreferencesManager=r(iG);this.issueFullFridge=r(TE);this.issueReferenceResolver=r(nO);this.activeSession=r(Bs);this.commentService=r(rK);this.errorHandler=r(aK);this.analytics=r(RE);this.butterBar=r(GJ);this.userAccess=r(AD);this.issueCommentDialogsService=r(ZR);this.issuePermissionService=r(OK);this.commentHistoryDialogService=r(vS);this.dateFormatter=
r(BK);this.domSafe=r(UK);this.enableLiteralModeRevisions=OA(this.activeSession,"enableLiteralModeRevisions");this.id$=new sg(1);this.issue$=this.id$.pipe(xg(function(b){return a.issueFullFridge.watch(b)}),ug({bufferSize:1,refCount:!0}));this.accessLevel$=this.issue$.pipe(C(function(b){var c;return b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel}));this.firstEventOverride$=new Kn(void 0);this.firstEvent$=this.firstEventOverride$.pipe(xg(function(b){return b?Nf(b):a.issue$.pipe(eg(Qj),C(function(c){if(c.description)var d=
MFa(c.description,c);else{var e,f;d={attachments:[],preDiffs:[],postDiffs:[],modifiedDate:Dta(ek((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(ug({bufferSize:1,refCount:!0}));this.firstNote$=this.firstEvent$.pipe(C(function(b){return b}));this.hasDescription$=this.firstEvent$.pipe(C(function(b){return!!b&&Sva(b)}));this.commentActionMenuItems$=new Kn([]);this.isFormattingOverrideEnabled=this.isDisplayCommentFormatLiteral=!1;this.formattingMode=
"PLAIN";this.formattingModeOverride$=new Kn(void 0);this.formattingMode$=this.formattingModeOverride$.pipe(xg(function(b){return b?Nf(b):a.firstEvent$.pipe(eg(Qj),C(function(c){var d;return(d=c.formattingMode)!=null?d:"PLAIN"}),og())}));this.isRedacted$=this.firstEvent$.pipe(C(function(b){var c;return(c=b==null?void 0:b.commentRedacted)!=null?c:!1}));this.isDeleted$=this.firstEvent$.pipe(C(function(b){return(b==null?void 0:b.commentDeletionStatus)==="DELETED"}));this.shouldShowRestrictedPlaceholder$=
Uf([this.isRedacted$,this.isDeleted$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return!(!b||c)}));this.isRestricted$=this.firstEvent$.pipe(C(function(b){return Wm(b==null?void 0:b.commentContentVerdict)}),C(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:pb(b)}}));this.commentRetentionOverride$=this.firstEvent$.pipe(C(function(b){return b==null?void 0:b.commentRetention}));
this.commentHistoryEnabled=OA(this.activeSession,"enableCommentHistoryUi");this.isShowCommentHistoryActionInMenu$=Uf([this.firstEvent$,this.isRedacted$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return!(!(OA(a.activeSession,"enableCommentHistoryUi")&&((b==null?void 0:b.commentVersion)||0)>0)||c)}));this.canEditComment$=this.firstEvent$.pipe(xg(function(b){return b?a.issuePermissionService.canEditComment$(b):Nf(!1)}),ug({refCount:!0,bufferSize:1}));this.mayReadPii$=this.isRestricted$.pipe(xg(function(b){return b?
a.mayReadPii():Nf(void 0)}));this.reporterUser$=this.issue$.pipe(C(function(b){var c;return b==null?void 0:(c=b.snapshot[0])==null?void 0:c.reporterUser}));this.currentReporterEmail$=this.reporterUser$.pipe(C(function(b){return zj(b)||""}));this.allEvents$=this.id$.pipe(xg(function(b){return a.eventsForIssue.watch(b)}));this.attachments$=this.allEvents$.pipe(C(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(C(function(b){return b==
null?void 0:b.events[0]}),C(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$=Uf([this.initialReporterEmail$,this.currentReporterEmail$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b||c}));this.originalAuthor$=this.allEvents$.pipe(C(function(b){return b==null?void 0:b.events[0]}),C(function(b){return b==null?void 0:b.userPerformingActionUser}));
this.originalAuthorEmail$=this.originalAuthor$.pipe(C(zj));this.isAuthorNotReporter$=Uf([this.originalAuthorEmail$,this.onBehalfOfEmail$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b!==c}));this.lastNonCreatorCommentEditorUser$=Uf([this.firstEvent$.pipe(eg(Qj)),this.onBehalfOfEmail$]).pipe(C(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(eg(Qj),xg(function(b){var c="Last edited";b.lastCommentEditorUser&&(c+=" by "+wj(b.lastCommentEditorUser));return b.commentLastModifiedAtDate?bMc(a.dateFormatter,new Date(b.commentLastModifiedAtDate)).pipe(C(function(d){return c+" on "+d})):Nf(c)}))};Y(sT,Z);sT.\u0275dir=Z.\u0275dir;
sT.prototype.mayReadPii=function(){var a=this;return this.id$.pipe(xg(function(b){return Yf(function(){return BD(a.userAccess,"reader","issues/"+b+"/comments/1").catch(function(c){Xj("error: ",c);return!1})})}))};
sT.prototype.ngOnInit=function(){var a=this;K_c(this,"PLAIN");this.canEditComment$.pipe(yg(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()});this.userPreferencesManager.textDisplayPreferences$.pipe(yg(this.destroyed$)).subscribe(function(b){a.isFormattingOverrideEnabled=b.commentDisplayOverride!=null;a.initializeActionsMenu()});this.userPreferencesManager.commentFormattingPreferences$.pipe(yg(this.destroyed$)).subscribe(function(b){a.isDisplayCommentFormatLiteral=b.commentDisplayOverride===
"LITERAL_FORMATTING_MODE";a.initializeActionsMenu()});this.formattingMode$.pipe(yg(this.destroyed$)).subscribe(function(b){a.formattingMode=b!=null?b:"PLAIN";K_c(a,b!=null?b:"PLAIN");a.initializeActionsMenu()});this.issuePermissionService.canChangeCommentRetention$.pipe(yg(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()})};
sT.prototype.initializeActionsMenu=function(){var a=this,b,c,d,e,f,h,k,q,v,A,E,H;return z(function(L){switch(L.nextAddress){case 1:return b=[],c=!1,(c=a.enableLiteralModeRevisions?!a.isDisplayCommentFormatLiteral:!a.isFormattingOverrideEnabled)&&b.push(Object.assign({},MYc,{items:[a.formattingModeMenuItems.PLAIN,a.formattingModeMenuItems.MARKDOWN,a.formattingModeMenuItems.LITERAL]})),B(L,Rf(a.firstEvent$),2);case 2:return d=L.yieldResult,B(L,Rf(a.canEditComment$),3);case 3:return e=L.yieldResult,
B(L,Rf(a.isRedacted$),4);case 4:return f=L.yieldResult,B(L,Rf(a.isRestricted$),5);case 5:return h=L.yieldResult,B(L,Rf(a.isDeleted$),6);case 6:return k=L.yieldResult,B(L,Rf(a.accessLevel$),7);case 7:return q=L.yieldResult,e&&d&&b.push({type:"action",action:function(){$9a(a.issueCommentDialogsService,a.id,d).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Edit description...",disabled:f}),B(L,Rf(a.isShowCommentHistoryActionInMenu$),8);case 8:return(v=L.yieldResult)&&d&&
b.push(Object.assign({},OYc,{action:function(){d.commentNumber&&a.showCommentHistoryDialog(d.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}})),d&&qMc(a.issuePermissionService,d)&&b.push({type:"action",action:function(){d.commentEtag&&JXc(a.issueCommentDialogsService,a.id,1,d.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete description"}),d&&pMc(a.issuePermissionService,d)&&b.push({type:"action",action:function(){GXc(a.issueCommentDialogsService,
a.id,1).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Restore description"}),B(L,Rf(a.issuePermissionService.hasAclToView$),9);case 9:A=L.yieldResult;d&&A&&b.push(Object.assign({},NYc,{action:function(){KXc(a.issueCommentDialogsService,a.id,d).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}}));if(!h||!a.issuePermissionService.canChangeCommentRetention()||k||!a.activeSession.isInternalSession()){L.jumpTo(10);break}return B(L,Rf(a.commentRetentionOverride$),
11);case 11:E=L.yieldResult,H=E==="COMPONENT_DEFAULT",b.push({type:"action",action:function(){var O=H?"INDEFINITE":"COMPONENT_DEFAULT";LXc(a.issueCommentDialogsService,"comment",O).then(function(S){a.commentActionsMenu.actionsMenuIconButton.focus();S&&a.updateCommentRetention(O)})},label:H?"Match issue retention...":"Revert to component retention..."});case 10:J4a({userIsExternal:!a.activeSession.isInternalSession(),issueIsExternal:q!=="INTERNAL"})&&b.push(Object.assign({},LYc,{action:function(){var O=
K4a({bugId:a.id,comment:1});a.domSafe.openInNewTab(O)}})),a.commentActionMenuItems$.next(b),Lf(L)}})};
var K_c=function(a,b){var c={};a.formattingModeMenuItems=(c.PLAIN={type:"select",action:function(){a.formattingModeOverride$.next("PLAIN")},label:"Classic",selected:b==="PLAIN"},c.MARKDOWN={type:"select",action:function(){a.formattingModeOverride$.next("MARKDOWN")},label:"Markdown",selected:b==="MARKDOWN"},c.LITERAL={type:"select",action:function(){a.formattingModeOverride$.next("LITERAL")},label:"Source",selected:b==="LITERAL"},c)};
sT.prototype.updateCommentRetention=function(a){var b=this,c,d;z(function(e){if(e.nextAddress==1)return B(e,Rf(b.firstEvent$),2);if(e.nextAddress!=3)return c=e.yieldResult,B(e,Rf(b.id$),3);d=e.yieldResult;c&&!c.commentNumber&&bK(b.errorHandler,"Comment number is missing");b.analytics.trackEvent("restrictedContent","updateRetention","comment");d&&c&&b.commentService.updateRetention(d,c.commentNumber||0,a).pipe(yg(b.destroyed$)).subscribe({next:function(){b.eventsForIssue.poke(d);Kq(b.butterBar,"Comment retention updated",
4E3);b.initializeActionsMenu()},error:function(){bK(b.errorHandler,"Comment retention update failed")}});Lf(e)})};
sT.prototype.loadRestrictedComment=function(a,b){var c=this;this.analytics.trackEvent("restrictedContent","viewRestrictedContent","comment");var d=b.commentNumber||0,e=Wm(b.commentContentVerdict);a&&this.commentService.get(a,d,e).pipe(mg(1),yg(this.destroyed$)).subscribe(function(f){f=Uva(b,f);c.firstEventOverride$.next(f);c.initializeActionsMenu()},function(f){var h;c.butterBar.showWarning("Error showing comment "+d+": "+((h=f.error)==null?void 0:h.message))})};
sT.prototype.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(this.id,a,-1)};var J7a=function(a){var b;return z(function(c){if(c.nextAddress==1)return B(c,Rf(a.firstEvent$),2);if(c.nextAddress!=3)return(b=c.yieldResult)?B(c,$9a(a.issueCommentDialogsService,a.id,b),3):c.return();a.editDescriptionButton.focus();Lf(c)})};nd.Object.defineProperties(sT.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)},get:function(){return ip(this.id$)}}});
sT.\u0275fac=function(){var a;return function(b){return(a||(a=Re(sT)))(b||sT)}}();
sT.\u0275cmp=y({type:sT,selectors:[["b-issue-description"]],viewQuery:function(a,b){a&1&&(hh(I_c,5),hh(J_c,5));if(a&2){var c;lh(c=mh())&&(b.commentActionsMenu=c.first);lh(c=mh())&&(b.editDescriptionButton=c.first)}},inputs:{id:"id"},standalone:!1,features:[Bg],decls:3,vars:3,consts:[["commentActionsMenu",""],["editDescription",""],["card",""],["lastEditorCard",""],["id","comment1",1,"flex-kids-x","comment1"],["svgIcon","description_24px","color","primary",1,"margin-xs-right","shrink-0"],[1,"flex-1-hemmed"],
[1,"b-description-heading","flex-kids-x"],[1,"flex-1"],[1,"uppercase","inline-block","margin-xs-right"],["type","button","mat-stroked-button","","color","primary","aria-label","Edit description",1,"update-button","small","margin-xs-right"],[1,"keep-focus-ring","first-comment",3,"routerLinkObj"],[1,"muted",3,"matTooltip"],[1,"margin-s-right"],["mode","datetime",1,"margin-s-right",3,"timestamp"],[1,"issue-detail-actions",3,"buttonLabel","menuItems"],[1,"description-deleted"],["type","button","mat-stroked-button",
"","color","primary","aria-label","Edit description",1,"update-button","small","margin-xs-right",3,"click"],[3,"onedevHovercardTrigger","model"],[3,"email"],[3,"email","showEmail"],[1,"keep-focus-ring","first-comment",3,"click","routerLinkObj"],[1,"critical-feature",3,"disabled"],[1,"critical-feature",3,"onConfirm","disabled"],[3,"issueId"],[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,f8a,28,27,"div",4),U(1,"async"),Mg(2,g8a,1,0,"b-spinner"));if(a&2){var c;G((c=V(1,1,b.firstEvent$))?0:2,c)}},dependencies:[sS,bT,AO,FC,CC,EL,nT,oT,DI,JI,WK,oG,Jx,zG,xG,qT,yN,aL,bL,Tv],styles:["[_nghost-%COMP%]{display:block}.description-deleted[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted);font-style:italic}.first-comment[_ngcontent-%COMP%]:hover{text-decoration:underline}"]});var tT=function(){this.reactionState$=new sg(1);this.issueId="";this.emails$=this.reactionState$.pipe(eg(Qj),C(function(a){return a.recentResponders.map(zj).filter(function(b){return b!==""}).slice(0,5)}))};nd.Object.defineProperties(tT.prototype,{reactionState:{configurable:!0,enumerable:!0,set:function(a){a&&this.reactionState$.next(a)}}});tT.\u0275fac=function(a){return new (a||tT)};
tT.\u0275cmp=y({type:tT,selectors:[["b-comment-reaction-responders-card"]],inputs:{reactionState:"reactionState",issueId:"issueId",commentNumber:"commentNumber"},standalone:!1,decls:5,vars:2,consts:[["role","dialog","tabindex","0","aria-label","Comment Reactions Hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"]],template:function(a,b){a&1&&(J(0,"div",0)(1,"div",1),Pg(2,j8a,5,2,"div",null,Og),U(4,"async"),K()());a&2&&(x(2),Qg(V(4,0,b.emails$)))},dependencies:[Tv],styles:[".onedev-hovercard-content[_ngcontent-%COMP%]{width:auto;max-width:400px}.normal-link.unstyled-button[_ngcontent-%COMP%]{color:#1a73e8;color:var(--link)}"]});var L_c=function(){};L_c.\u0275fac=function(a){return new (a||L_c)};L_c.\u0275cmp=y({type:L_c,selectors:[["b-comment-edit-timestamp-message"]],inputs:{event:"event"},standalone:!1,decls:1,vars:1,consts:[["mode","datetime",3,"timestamp"]],template:function(a,b){a&1&&F(0,l8a,6,2);a&2&&G(b.event.commentLastModifiedAtDate?0:-1)},dependencies:[EL],encapsulation:2,changeDetection:0});var uT=function(){this.texts=[]};uT.prototype.getIssueId=function(a){return a.text};uT.\u0275fac=function(a){return new (a||uT)};uT.\u0275cmp=y({type:uT,selectors:[["b-tagged-text"]],inputs:{texts:"texts"},standalone:!1,decls:2,vars:0,consts:[[3,"email","withProfile"],[3,"href","issueId"]],template:function(a,b){a&1&&Pg(0,p8a,3,1,null,null,Ng);a&2&&Qg(b.texts)},dependencies:[pO,dL],encapsulation:2,changeDetection:0});var M_c=function(){this.hotlists=r(cD);this.ROUTES=Dq};M_c.\u0275fac=function(a){return new (a||M_c)};M_c.\u0275cmp=y({type:M_c,selectors:[["hotlist-link"]],inputs:{id:"id"},standalone:!1,decls:3,vars:4,consts:[[3,"href"]],template:function(a,b){a&1&&(J(0,"a",0),R(1),U(2,"async"),K());if(a&2){var c;I("href",b.ROUTES.viewHotlist.makeHref(b.id),hf);x();wh(((c=V(2,2,b.hotlists.watch(b.id)))==null?null:c.name)||b.id)}},dependencies:[Tv],encapsulation:2,changeDetection:0});var vT=function(){var a=this;this.componentFridge=r(BB);this.id$=new sg(1);this.name$=this.id$.pipe(og(),xg(function(b){return a.componentFridge.watch(b).pipe(C(function(c){var d=c?(c=(d=c.componentPathInfo)==null?void 0:d.componentPathName)?c.join(" > "):b:b;return d}))}))};vT.prototype.ngOnChanges=function(){this.id$.next(this.id)};vT.\u0275fac=function(a){return new (a||vT)};
vT.\u0275cmp=y({type:vT,selectors:[["plain-component-path"]],inputs:{id:"id"},standalone:!1,features:[ov],decls:6,vars:4,consts:[["thisHovercard","onedevHovercard"],["cardBody",""],[3,"onedevHovercardTrigger"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"]],template:function(a,b){a&1&&(J(0,"span",2),R(1),U(2,"async"),K(),J(3,"onedev-hovercard",null,0),D(5,s8a,3,2,"ng-container",3),K());a&2&&(a=Q(4),I("onedevHovercardTrigger",a),x(),wh(V(2,2,b.name$)||b.id))},dependencies:[DI,
EI,JI,FI,TM,Tv],encapsulation:2,changeDetection:0});var j9a=function(a,b,c){return{diff:a,change:b,isLast:c}},wT=function(){Z.apply(this,arguments);this.activeSession=r(Bs);this.preferences=r(iG);this.customFieldMap={};this.effortEnabled=!0;this.isStringArray=ij;this.isLinkedItemArray=Zwa;this.isIssueDiff=Wwa;this.isHotlistDiff=Xwa;this.DiffType=woc};Y(wT,Z);wT.\u0275dir=Z.\u0275dir;
var N_c=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)},O_c=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)};wT.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(eg(Qj),yg(this.destroyed$)).subscribe(function(b){a.internalDiffs.length<2||(b&&N_c(a)||!b&&O_c(a))&&a.internalDiffs.reverse()})};
var v9a=function(a,b,c){return Ora(b,c)==="<none>"?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&a.customFieldMap[b.customFieldId].type==="DATE"?!0:!1},w9a=function(a,b,c){return Ora(b,c)==="<none>"?!1:b.customFieldId&&a.customFieldMap[b.customFieldId]&&a.customFieldMap[b.customFieldId].type==="REPEATED_DATE"?!0:!1};wT.prototype.asNumber=function(a){return Number(a)};
wT.prototype.customFieldName=function(a){if(a.customFieldId){var b;return((b=this.customFieldMap[a.customFieldId])==null?void 0:b.customFieldName)||"customfield"+a.customFieldId}return""};nd.Object.defineProperties(wT.prototype,{diffs:{configurable:!0,enumerable:!0,set:function(a){this.internalDiffs=[].concat(p(a))}}});wT.\u0275fac=function(){var a;return function(b){return(a||(a=Re(wT)))(b||wT)}}();
wT.\u0275cmp=y({type:wT,selectors:[["b-issue-event-details"]],inputs:{diffs:"diffs",customFieldMap:"customFieldMap",effortSpecName:"effortSpecName",effortEnabled:"effortEnabled"},standalone:!1,features:[Bg],decls:5,vars:0,consts:[["changeCollection",""],[1,"bv2-event-details"],[1,"bv2-diff-row"],["mode","time",1,"float-right",3,"timestamp"],[1,"bv2-diff-detail"],[3,"id"],[1,"bv2-diff-arrow"],[3,"email","showEmail"],["mode","date",3,"timestamp"],[3,"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&&(J(0,"div",1),Pg(1,M9a,2,1,"div",2,Ng),K(),D(3,S9a,1,1,"ng-template",null,0,Lh));a&2&&(x(),Qg(b.internalDiffs))},dependencies:[Sv,EL,aL,pO,M_c,vT,Xv],styles:["/*# sourceMappingURL=issue_event_details.css.map */"],changeDetection:0});var xT=function(){var a=r(iG);Z.call(this);var b=this;a.textDisplayPreferences$.pipe(yg(this.destroyed$)).subscribe(function(c){switch(c.commentDisplayOverride){case "LITERAL_FORMATTING_MODE":b.formattingModeOverride="LITERAL";break;case "MARKDOWN_FORMATTING_MODE":b.formattingModeOverride="MARKDOWN";break;case "PLAIN_FORMATTING_MODE":b.formattingModeOverride="PLAIN";break;case "COMMENT_FORMATTING_MODE_UNSPECIFIED":case void 0:b.formattingModeOverride=void 0;break;default:pb(c.commentDisplayOverride)}})};
Y(xT,Z);xT.\u0275dir=Z.\u0275dir;xT.prototype.ngOnInit=function(){};xT.prototype.ngOnChanges=function(){this.rawComment=this.note.unlinkifiedComment||"";this.summaryType==="CRITIQUE"?P_c(this):this.summaryType==="GERRIT"&&Q_c(this);this.audience=this.issueAccessLevel&&this.issueAccessLevel==="INTERNAL"?"INTERNAL":"EXTERNAL";this.idPrefix="b"+this.issueId+"-c"+this.note.commentNumber};
var P_c=function(a){if(a.rawComment.split("\n").slice(0,3).filter(Boolean).length<2)a.rawComment=VKa(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=R_c(a,b)}},Q_c=function(a){var b=a.rawComment.split("\n");if(b.length>9){var c=b.slice(0,8).filter(Boolean).map(function(h){return h.trim()}),d=c[0],e=c[1],f=c[3];c=c[5];b=b.at(-2);a.rawComment=R_c(a,[d,e,f,"Gerrit change: "+b,"",c])}},R_c=
function(a,b){return a.formattingMode==="MARKDOWN"||a.formattingModeOverride==="MARKDOWN"?b.join("\n\n"):b.join("\n")};xT.\u0275fac=function(a){return new (a||xT)};
xT.\u0275cmp=y({type:xT,selectors:[["b-summarized-note-container"]],inputs:{note:"note",issueId:"issueId",formattingMode:"formattingMode",summaryType:"summaryType",issueAccessLevel:"issueAccessLevel"},standalone:!1,features:[Bg,ov],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:[yO],styles:["[_nghost-%COMP%]     b-live-preview .md-preview{background-color:#fff;background-color:var(--background);padding:0}"]});var S_c=["commentActionsMenu"],T_c=["commentReactionButton"],c$a=function(){return[]},U_c=[{label:"Classic",mode:"PLAIN"},{label:"Markdown",mode:"MARKDOWN"},{label:"Source",mode:"LITERAL"}],yT=function(){Z.apply(this,arguments);var a=this;this.documentationLinks=r(JJ);this.activeSession=r(Bs);this.issueReferenceResolver=r(nO);this.commentService=r(rK);this.el=r(Te);this.userAccess=r(AD);this.butterBar=r(GJ);this.errorHandler=r(aK);this.analytics=r(RE);this.userPreferencesManager=r(iG);this.issueDetailsBrain=
r(MK);this.editIssueService=r(RK);this.issuePermissionService=r(OK);this.commentHistoryDialogService=r(vS);this.issueCommentDialogsService=r(ZR);this.dateFormatter=r(BK);this.paths=r(oN);this.domSafe=r(UK);this.eventsForIssueFridge=r(TD);this.isSummarized=!1;this.issueId$=new sg(1);this.distinctIssueId$=this.issueId$.pipe(og());this.event$=new sg(1);this.isCommentEvent=ul;this.isNonObfuscatedEmail=pl;this.commentActionMenuItems$=new Kn([]);this.isInternalSession=this.activeSession.isInternalSession();
this.enableTeamAnnotations=this.activeSession.isInternalSession();this.formattingMode$=new Kn("PLAIN");this.commentRetentionOverride=null;this.wasSummarized=!1;this.formattingModeMenuItems$=this.formattingMode$.pipe(C(function(b){return U_c.map(function(c){return{type:"select",action:function(){a.formattingMode$.next(c.mode);a.initializeActionsMenu()},label:c.label,selected:b===c.mode}})}));this.isFormattingOverrideEnabled=this.isDisplayCommentFormatLiteral=!1;this.canEditComment$=this.event$.pipe(xg(function(b){return a.issuePermissionService.canEditComment$(b)}),
ug({refCount:!0,bufferSize:1}));this.commentHistoryEnabled=OA(this.activeSession,"enableCommentHistoryUi");this.commentReactionsEnabled=this.activeSession.isInternalSession();this.enableLiteralModeRevisions=OA(this.activeSession,"enableLiteralModeRevisions");this.effortSpec$=this.issueDetailsBrain.effortSpec$;this.isEffortEnabled$=this.issueDetailsBrain.isEffortEnabled$;this.teamId$=this.issueDetailsBrain.teamId$;this.issue$=this.distinctIssueId$.pipe(xg(function(b){return a.editIssueService.editableIssue$(b)}));
this.modifiedDateDisplay$=this.event$.pipe(C(function(b){return new Date(b.modifiedDate)}),xg(function(b){return bMc(a.dateFormatter,b)}));this.ariaLabelHeading$=Uf([this.event$,this.modifiedDateDisplay$]).pipe(C(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(wj(b.userPerformingActionUser));d.push("Modified: "+c);b=d.join(", ")}return b}));this.ReactionType=Unc;this.upvoteReactionCount$=
this.event$.pipe(C(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(C(function(b){return b&&b!==0?b>999?"999+":String(b):null}));this.noUpvoteReactions$=this.upvoteReactionCount$.pipe(C(function(b){return b===0}));this.commentReactionsHovercardConfig=Object.assign({},new GI,{position:[NHc]});this.commentReactionIsSaving=!1;this.FormattingMode=Uj;this.showRecentEventsFirst$=
this.userPreferencesManager.showRecentEventsFirst$;this.showFullHistoryFromFiltering$=this.userPreferencesManager.commentFilterPreferences$.pipe(C(function(b){var c;return(c=b.commentFilter)!=null?c:""}));this.isFullHistoryPreference$=this.showFullHistoryFromFiltering$.pipe(C(function(b){return b==="FULL_HISTORY"}));this.preEventDiffs$=Uf([this.event$,this.showRecentEventsFirst$]).pipe(C(function(b){var c=l(b);b=c.next().value;return c.next().value?b.postDiffs:b.preDiffs}));this.postEventDiffs$=Uf([this.event$,
this.showRecentEventsFirst$]).pipe(C(function(b){var c=l(b);b=c.next().value;return c.next().value?b.preDiffs:b.postDiffs}));this.hasAclToUpvoteReact$=Uf([this.event$,this.issuePermissionService.hasAclToComment$]).pipe(C(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$=Uf([this.issuePermissionService.hasAclToEdit$,this.upvoteReactionCount$]).pipe(C(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(C(function(b){return b&&z$a(a)&&(a.event.preDiffs.length>0||a.event.postDiffs.length>0)}));this.getCommentNumberLink=function(b){return KOa(a.issueId,{comment:b})};this.initializeActionsMenu.bind(this)};Y(yT,Z);yT.\u0275dir=Z.\u0275dir;g=yT.prototype;
g.ngOnInit=function(){var a=this;this.event.commentNumber&&this.el.nativeElement.setAttribute("id","comment"+this.event.commentNumber);this.commentRetentionOverride=this.event.commentRetention;this.event$.pipe(yg(this.destroyed$)).subscribe(function(){ul(a.event)&&a.isRestricted()?a.mayReadPii$=a.mayReadPii():a.mayReadPii$=Nf(void 0)});this.userPreferencesManager.textDisplayPreferences$.pipe(yg(this.destroyed$)).subscribe(function(b){a.isFormattingOverrideEnabled=b.commentDisplayOverride!=null;a.initializeActionsMenu()});
this.userPreferencesManager.commentFormattingPreferences$.pipe(yg(this.destroyed$)).subscribe(function(b){a.isDisplayCommentFormatLiteral=b.commentDisplayOverride==="LITERAL_FORMATTING_MODE";a.initializeActionsMenu()});this.issueDetailsBrain.canonicalIssueId$.pipe(yg(this.destroyed$)).subscribe(function(b){a.canonicalIssueId=b;a.initializeActionsMenu()});this.canEditComment$.pipe(yg(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()});this.issuePermissionService.canChangeCommentRetention$.pipe(yg(this.destroyed$)).subscribe(function(){a.initializeActionsMenu()})};
g.updateCommentRetention=function(a){var b=this;this.event.commentNumber||bK(this.errorHandler,"Comment number is missing");this.analytics.trackEvent("restrictedContent","updateRetention","comment");this.commentService.updateRetention(this.issueId,this.event.commentNumber||0,a).pipe(yg(this.destroyed$)).subscribe({next:function(c){var d;b.event=Object.assign({},b.event,{commentRetention:c.piiRetention,commentRetentionState:(d=c.piiRetentionState)!=null?d:null});Kq(b.butterBar,"Comment retention updated",
4E3);b.commentRetentionOverride=a==="INDEFINITE"?"INDEFINITE":"COMPONENT_DEFAULT";b.initializeActionsMenu()},error:function(){bK(b.errorHandler,"Comment retention update failed")}})};
g.ngOnChanges=function(a){a.issueId&&this.issueId$.next(String(this.issueId));a=a.event;var b;if(b=a&&this.deobfuscatedEvent)b=a.previousValue,a=a.currentValue,b=(b==null?void 0:b.commentVersion)!==(a==null?void 0:a.commentVersion)||(b==null?void 0:b.commentContentVerdict)!==(a==null?void 0:a.commentContentVerdict);b&&(this.deobfuscatedEvent=void 0);this.event.formattingMode&&(this.event.formattingMode==="UNSPECIFIED_FORMATTING_MODE"?this.formattingMode$.next("PLAIN"):this.formattingMode$.next(this.event.formattingMode));
this.initializeActionsMenu()};g.scrollCommentIntoView=function(a,b){this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+b,event:a})};g.getRestrictedLabel=function(){return Lza(Wm(this.event.commentContentVerdict))};g.isRestricted=function(){var a=Wm(this.event.commentContentVerdict);switch(a){case "NONE_DETECTED":case "RESTRICTION_SEVERITY_UNSPECIFIED":return!1;case "RESTRICTED":case "RESTRICTED_PLUS":return!0;default:pb(a)}};
g.isDeleted=function(){return this.event.commentDeletionStatus==="DELETED"};var vr=function(a){var b;return((b=a.event)==null?void 0:b.commentRedacted)&&!a.deobfuscatedEvent};
yT.prototype.loadRestrictedComment=function(){var a=this;this.analytics.trackEvent("restrictedContent","viewRestrictedContent","comment");var b=this.event.commentNumber||0;this.commentService.get(String(this.issueId),b,Wm(this.event.commentContentVerdict)).pipe(mg(1)).subscribe(function(c){a.deobfuscatedEvent=Uva(a.event,c);a.initializeActionsMenu()},function(c){var d;a.butterBar.showWarning("Error showing comment "+b+": "+((d=c.error)==null?void 0:d.message))})};
yT.prototype.initializeActionsMenu=function(){var a=this,b,c,d,e,f,h;return z(function(k){switch(k.nextAddress){case 1:b=[];if(!a.isCommentEvent(a.event))return a.commentActionMenuItems$.next(b),k.return();c=!1;c=a.enableLiteralModeRevisions?!a.isDisplayCommentFormatLiteral:!a.isFormattingOverrideEnabled;if(!c){k.jumpTo(2);break}return B(k,Rf(a.formattingModeMenuItems$),3);case 3:(d=k.yieldResult)&&b.push(Object.assign({},MYc,{items:d}));case 2:return B(k,Rf(a.canEditComment$),4);case 4:return(e=
k.yieldResult)&&b.push({type:"action",action:function(){$9a(a.issueCommentDialogsService,String(a.issueId),a.deobfuscatedEvent||a.event).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Edit comment",disabled:vr(a)}),a.commentHistoryEnabled&&(a.event.commentVersion||0)>0&&!vr(a)&&b.push(Object.assign({},OYc,{action:function(){a.event.commentNumber&&a.showCommentHistoryDialog(a.event.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}})),
!a.canonicalIssueId||a.isDeleted()||a.activeSession.isAnonymous()||b.push({type:"action",action:function(){var q=Fq(a.canonicalIssueId,{template_issue:a.issueId,template_comment:a.event.commentNumber,do_attribution:!0});a.domSafe.openInNewTab(q);a.commentActionsMenu.actionsMenuIconButton.focus()},label:"Copy to canonical issue",disabled:vr(a)}),a.isDeleted()||a.activeSession.isAnonymous()||b.push({type:"action",action:function(){EXc(a.issueCommentDialogsService,String(a.issueId),a.event.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},
label:"Copy comment to",disabled:vr(a)}),qMc(a.issuePermissionService,a.event)&&b.push({type:"action",action:function(){JXc(a.issueCommentDialogsService,String(a.issueId),a.event.commentNumber,a.event.commentEtag).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},label:"Delete comment"}),pMc(a.issuePermissionService,a.event)&&b.push({type:"action",action:function(){GXc(a.issueCommentDialogsService,String(a.issueId),a.event.commentNumber).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})},
label:"Restore comment"}),B(k,Rf(a.issuePermissionService.hasAclToView$),5);case 5:(f=k.yieldResult)&&b.push(Object.assign({},NYc,{action:function(){KXc(a.issueCommentDialogsService,String(a.issueId),a.event).then(function(){a.commentActionsMenu.actionsMenuIconButton.focus()})}})),a.isRestricted()&&a.issuePermissionService.canChangeCommentRetention()&&!a.isDeleted()&&(h=a.commentRetentionOverride==="COMPONENT_DEFAULT",b.push({type:"action",action:function(){var q=h?"INDEFINITE":"COMPONENT_DEFAULT";
LXc(a.issueCommentDialogsService,"comment",q).then(function(v){a.commentActionsMenu.actionsMenuIconButton.focus();v&&a.updateCommentRetention(q)})},label:h?"Match issue retention":"Revert to component retention"})),J4a({userIsExternal:!a.isInternalSession,issueIsExternal:a.issueAccessLevel!=="INTERNAL"})&&b.push(Object.assign({},LYc,{action:function(){a.event.commentNumber==null&&Xj("unable to buildLegalReportingUrl() correctly without an event.commentNumber");var q,v=K4a({bugId:a.event.issueId,comment:(q=
a.event.commentNumber)!=null?q:0});a.domSafe.openInNewTab(v)}})),a.commentActionMenuItems$.next(b),Lf(k)}})};var z$a=function(a){return ul(a.event)&&a.event.isCommentEvent};yT.prototype.getSummaryType=function(){return Al(this.event)?"GERRIT":"CRITIQUE"};yT.prototype.showCommentHistoryDialog=function(a){return this.commentHistoryDialogService.show(this.issueId,a,-1)};
yT.prototype.mayReadPii=function(){var a=BD(this.userAccess,"reader","issues/"+this.issueId+"/comments/"+this.event.commentNumber);a.catch(function(b){Xj("error: ",b);return!1});return Ef(a)};
var q$a=function(a){var b,c,d,e,f;return z(function(h){if(h.nextAddress==1)return B(h,Rf(a.hasAclToUpvoteReact$),2);if(h.nextAddress!=3){b=h.yieldResult;if(!b)return h.return();a.commentReactionIsSaving=!0;c=s$a(a,"UPVOTE");return B(h,a.issueCommentDialogsService.updateCommentReaction({issueId:a.issueId,commentId:(d=a.event.commentNumber)!=null?d:2,reactionType:"UPVOTE",hasReacted:!c}),3)}e=h.yieldResult;a.commentReactionIsSaving=!1;if(!e)return h.return();f=a.event;f.commentReactions=e;a.event$.next(f);
a.eventsForIssueFridge.manualUpdate(a.issueId,function(k){var q;k.events=Vva(k.events,(q=a.event.commentNumber)!=null?q:2,{commentReactions:e})});a.analytics.trackEvent("editIssue","click",c?"removeUpvoteReaction":"addUpvoteReaction");Lf(h)})},s$a=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},r$a=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};nd.Object.defineProperties(yT.prototype,{event:{configurable:!0,enumerable:!0,set:function(a){this.internalEvent=a;this.event$.next(a)},get:function(){return this.internalEvent}}});yT.\u0275fac=function(){var a;return function(b){return(a||(a=Re(yT)))(b||yT)}}();
yT.\u0275cmp=y({type:yT,selectors:[["b-history-event"]],viewQuery:function(a,b){a&1&&(hh(S_c,5),hh(T_c,5));if(a&2){var c;lh(c=mh())&&(b.commentActionsMenu=c.first);lh(c=mh())&&(b.commentReactionButton=c.first)}},inputs:{issueId:"issueId",issueAccessLevel:"issueAccessLevel",isSummarized:"isSummarized",event:"event"},standalone:!1,features:[Bg,ov],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,A$a,41,28),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.issue$))?0:-1,c)}},dependencies:[sS,bT,AO,Sv,FC,CC,EL,DI,JI,wT,WK,$S,qT,cL,bL,fL,zG,xG,xT,oG,Jx,tT,L_c,uT,Tv],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%]{margin-top:14px;-webkit-box-flex:0.92;-webkit-flex:0.92;-moz-box-flex:0.92;-ms-flex:0.92;flex:0.92}.comment-number[_ngcontent-%COMP%]:hover{text-decoration:underline}\n/*# sourceMappingURL=history_event.css.map */"],
changeDetection:0});var zT=function(){};zT.prototype.watch=function(a,b){b=b===void 0?document.documentElement:b;return Xf(Yf(function(){return Nf(document.getElementById(a))}),BAa(b,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0}).pipe(C(function(){return document.getElementById(a)}))).pipe(eg(Qj),mg(1))};zT.\u0275fac=function(a){return new (a||zT)};zT.\u0275prov=Cd({token:zT,factory:zT.\u0275fac,providedIn:"root"});var AT=function(){this.idWatch=r(zT)},V_c=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(mg(1),C(function(h){h.scrollIntoView();if(h=document.getElementById(e))h.scrollTop-=f}))};AT.\u0275fac=function(a){return new (a||AT)};AT.\u0275prov=Cd({token:AT,factory:AT.\u0275fac,providedIn:"root"});var W_c={FULL:"full",SUMMARIZED:"summarized",FOLDED:"folded",HIDDEN:"hidden"},X_c=RegExp("(comment|attachment)([0-9]+)"),BT=function(){Z.apply(this,arguments);var a=this;this.formattedCommentsForIssueFridge=r(XD);this.preferences=r(iG);this.eventsForIssue=r(TD);this.dynamicScrollIntoView=r(AT);this.bLocation=r(DH);this.elementRef=r(Te);this.routerEvents=r(QE);this.analytics=r(RE);this.teamFridge=r(YF);this.issueFullFridge=r(TE);this.activeSession=r(Bs);this.issueId$=new sg(1);this.internalIssueId=
"";this.eventDisplayModes=W_c;this.internalEvents=[];this.showRecentEventsFirst=null;this.currentFilterLevel="FULL_HISTORY";this.issue$=this.issueId$.pipe(xg(function(b){return a.issueFullFridge.watch(b)}));this.events$=new sg(1);this.commentsToFormat$=new sg(1);this.eventDisplayMode=new Map;this.commentNumbersDisplayed=new Set;this.foldedCommentsCounts=new Map;this.authoritativeEmails=new Set;this.authoritativeEmails$=this.preferences.commentFilterPreferences$.pipe(xg(function(b){var c=new Set;return b.commentFilter!==
"TEAM_AND_ASSIGNEE"?Nf(c):a.issue$.pipe(xg(function(d){var e;if((d==null?void 0:(e=d.snapshot[0].assigneeUser)==null?void 0:e.emailAddress)!==void 0){var f;c.add(d==null?void 0:(f=d.snapshot[0].assigneeUser)==null?void 0:f.emailAddress)}var h;if((d==null?void 0:(h=d.snapshot[0].verifierUser)==null?void 0:h.emailAddress)!==void 0){var k;c.add(d==null?void 0:(k=d.snapshot[0].verifierUser)==null?void 0:k.emailAddress)}var q;if((d==null?void 0:(q=d.aggregatedData)==null?void 0:q.teamId)===void 0)return Nf(c);
var v;return Y_c(a,String(d==null?void 0:(v=d.aggregatedData)==null?void 0:v.teamId)).pipe(xg(function(A){A=l(A);for(var E=A.next();!E.done;E=A.next())c.add(E.value);return Nf(c)}))}))}));this.isLoading$=Uf([this.formattedCommentsForIssueFridge.thinking$,this.eventsForIssue.thinking$]).pipe(ng(0),C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b||c}));this.sendAnalytics=vz(function(){var b=[].concat(p(document.querySelectorAll(".bv2-event-note, .bv2-event-major-status"))).map(function(c){return c.innerText}).join("").length;
a.analytics.trackEvent("editIssue","updateCommentThread","visibleCharCount",b)},200);this.scrollToCommentOrAttachment=vz(function(){var b=a.bLocation.hash();if(b&&a.lastHashScrolled!==b&&a.internalEvents){var c,d=l((c=b.match(X_c))!=null?c:[]);d.next();c=d.next().value;var e=d.next().value;d=c;var f=e;if(b==="lastcomment"){d=Zva(a.internalEvents);if(d===-1)return;f=String(d);d="comment"}if(d&&f){c=a.internalEvents.findIndex(function(k){return k.commentNumber===Number(f)});e=c>-1;var h=a.internalEvents.flatMap(function(k){return k.attachments}).some(function(k){return k.attachmentId===
Number(f)});if(e||h)e&&a.eventDisplayMode.get(c)==="folded"&&(a.eventDisplayMode.set(c,"full"),Z_c(a,c)),h&&(c=a.internalEvents.findIndex(function(k){return k.attachments.findIndex(function(q){return q.attachmentId===Number(f)})>-1}),a.eventDisplayMode.get(c)||(a.eventDisplayMode.set(c,"full"),Z_c(a,c))),V_c(a.dynamicScrollIntoView,{elementId:d+f,parentElement:a.elementRef.nativeElement,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(zg(function(){a.lastHashScrolled=
b}),yg(a.destroyed$)).subscribe()}else V_c(a.dynamicScrollIntoView,{elementId:b,parentElement:a.elementRef.nativeElement,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(zg(function(){a.lastHashScrolled=b}),yg(a.destroyed$)).subscribe()}},200)};Y(BT,Z);BT.\u0275dir=Z.\u0275dir;
BT.prototype.ngOnInit=function(){var a=this;this.authoritativeEmails$.pipe(yg(this.destroyed$)).subscribe(function(b){a.authoritativeEmails=b});this.preferences.showRecentEventsFirst$.pipe(eg(Qj),og(),yg(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst!==b&&(a.showRecentEventsFirst=b,$_c(a))});Uf([this.events$,this.preferences.commentFilterPreferences$,this.authoritativeEmails$]).pipe(yg(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,a0c(a,c,d.commentFilter,e),b0c(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(eg(Qj),xg(function(b){return a.formattedCommentsForIssueFridge.watchSet(b)}),yg(this.destroyed$)).subscribe(function(b){c0c(a,
b)});this.routerEvents.navigationEnd$.pipe(yg(this.destroyed$)).subscribe(function(){a.internalEvents&&a.internalEvents.length!==0&&a.scrollToCommentOrAttachment()})};
var c0c=function(a,b){for(var c={i$jscomp$924:0};c.i$jscomp$924<a.internalEvents.length;c={i$jscomp$924:c.i$jscomp$924},c.i$jscomp$924++)if(G$a(a.eventDisplayMode.get(c.i$jscomp$924))&&ul(a.internalEvents[c.i$jscomp$924])){var d=b.find(function(e){return function(f){return f.id.commentId===a.internalEvents[e.i$jscomp$924].commentNumber}}(c));d&&(a.internalEvents[c.i$jscomp$924]=Object.assign({},a.internalEvents[c.i$jscomp$924],{formattedComment:d.formattedComment.formattedComment,formattingMode:d.formattedComment.formattingMode}))}$_c(a)},
a0c=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=d0c(b[c]);a.eventDisplayMode.set(c,e?"full":"hidden");ul(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=e0c(b[c]),a.eventDisplayMode.set(c,e?"full":"hidden"),ul(b[c])&&b[c].commentNumber&&e&&(e=void 0,a.commentNumbersDisplayed.add((e=
b[c].commentNumber)!=null?e:0));break;case "HUMAN_ONLY":f0c(a,b,function(f){var h;return(h=Eva(f.userPerformingAction)&&f.isMajorEvent)!=null?h:!0});break;case "TEAM_AND_ASSIGNEE":f0c(a,b,function(f){var h;return(h=d.has(f.userPerformingAction)&&f.isMajorEvent)!=null?h:!0});break;default:for(c=0;c<b.length;c++)a.eventDisplayMode.set(c,"full"),ul(b[c])&&b[c].commentNumber&&(e=void 0,a.commentNumbersDisplayed.add((e=b[c].commentNumber)!=null?e:0))}a.sendAnalytics()},b0c=function(a){if(a.currentFilterLevel!==
"FULL_HISTORY")for(var b=0;b<a.internalEvents.length;b++){var c=a.internalEvents[b];ul(c)&&(zl(c)||c!=null&&c.formattingMode&&c.formattingMode!=="MARKDOWN"&&Al(c))&&(OA(a.activeSession,"enableCLsInHumanFilterView")||a.currentFilterLevel!=="HUMAN_ONLY"&&a.currentFilterLevel!=="TEAM_AND_ASSIGNEE")&&(a.eventDisplayMode.set(b,"summarized"),Z_c(a,b))}},f0c=function(a,b,c){for(var d=0,e=0,f=0,h=0;h<b.length;h++){var k=c(b[h]);a.eventDisplayMode.set(h,k?"full":"folded");if(k){if(d>0||e>0)a.foldedCommentsCounts.has(f)||
a.foldedCommentsCounts.set(f,{commentFoldedCount:d,eventFoldedCount:e});e=d=0;ul(b[h])&&b[h].commentNumber&&(k=void 0,a.commentNumbersDisplayed.add((k=b[h].commentNumber)!=null?k:0))}else{if(ul(b[h])&&b[h].commentNumber||Tva(b[h]))d++,f=h;e++}}if(d>0||e>0)b=Zva(a.internalEvents)===1?a.showRecentEventsFirst?0:a.internalEvents.length:g0c(a),a.foldedCommentsCounts.set(b,{commentFoldedCount:d,eventFoldedCount:e})},g0c=function(a){return Faa(a.internalEvents,function(b){var c;return(c=b.isMajorEvent)!=
null?c:!1})},d0c=function(a){return ul(a)&&a.isCommentEvent||Tva(a)||a.preDiffs.length>0||a.postDiffs.length>0},e0c=function(a){var b;return((b=a.isMajorEvent)!=null?b:!1)&&(ul(a)&&a.isCommentEvent||Tva(a)||a.preDiffs.length>0||a.postDiffs.length>0)},$_c=function(a){if(!(a.internalEvents.length<2)){if(a.showRecentEventsFirst&&a.internalEvents[0].modifiedDate<=h0c(a,a.internalEvents).modifiedDate||!a.showRecentEventsFirst&&a.internalEvents[0].modifiedDate>=h0c(a,a.internalEvents).modifiedDate){a.internalEvents.reverse();
var b;a0c(a,a.internalEvents,(b=a.currentFilterLevel)!=null?b:"FULL_HISTORY",a.authoritativeEmails);b0c(a)}a.internalEvents&&a.internalEvents.length!==0&&a.scrollToCommentOrAttachment()}},h0c=function(a,b){var c;return(c=b.find(function(d){return a.internalEvents[0].modifiedDate!==d.modifiedDate}))!=null?c:b[1]};BT.prototype.trackEventByVersion=function(a,b){return b.version};
var Z_c=function(a,b){if(a.foldedCommentsCounts.has(b)){var c,d,e=(d=(c=a.foldedCommentsCounts.get(b))==null?void 0:c.commentFoldedCount)!=null?d:0,f,h;c=(h=(f=a.foldedCommentsCounts.get(b))==null?void 0:f.eventFoldedCount)!=null?h:0;e>1&&a.foldedCommentsCounts.set(b-1,{commentFoldedCount:e-1,eventFoldedCount:c-1});a.foldedCommentsCounts.delete(b)}else for(e=new Map([].concat(p(a.foldedCommentsCounts.entries())).sort(function(k,q){return k[0]-q[0]})),e=l(e.entries()),f=e.next();!f.done;f=e.next())if(h=
l(f.value),f=h.next().value,h=h.next().value,f>b){if(h.commentFoldedCount-(f-b)===0)a.foldedCommentsCounts.set(f,{commentFoldedCount:h.commentFoldedCount-1,eventFoldedCount:h.eventFoldedCount-1});else{e=0;for(c=b;c<f;c++)(ul(a.internalEvents[c])||Tva(a.internalEvents[c]))&&e++;a.foldedCommentsCounts.set(f,{commentFoldedCount:e,eventFoldedCount:f-b});a.foldedCommentsCounts.set(b-1,{commentFoldedCount:h.commentFoldedCount-e-1,eventFoldedCount:h.eventFoldedCount-(f-b)-1});a.foldedCommentsCounts.delete(b)}break}},
G$a=function(a){return a==="summarized"||a==="full"},Y_c=function(a,b){var c=new Set;return a.teamFridge.watch(b).pipe(C(function(d){if(d!==void 0){d=l(d.members.map(function(f){return f.user.emailAddress}).filter(Qj));for(var e=d.next();!e.done;e=d.next())c.add(e.value)}return c}))};
nd.Object.defineProperties(BT.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){a&&(this.internalIssueId=a,this.issueId$.next(a))}},events:{configurable:!0,enumerable:!0,set:function(a){if(a&&a.length>0){var b=a;a=[].concat(p(b));b=Object.assign({},b[0],{attachments:[],commentNumber:null,formattedComment:void 0,taggedSummary:[],isMajorEvent:!1});a[0]=b}a&&!Jsa(this.internalEvents,a)&&(this.internalEvents=a,this.events$.next(a))}}});
BT.\u0275fac=function(){var a;return function(b){return(a||(a=Re(BT)))(b||BT)}}();
BT.\u0275cmp=y({type:BT,selectors:[["b-event-stream"]],inputs:{issueAccessLevel:"issueAccessLevel",showFullHistory:"showFullHistory",issueId:"issueId",events:"events"},standalone:!1,features:[Bg],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,
B$a,2,0,"aside",0),U(1,"async"),J(2,"div",1),Pg(3,H$a,2,2,null,null,b.trackEventByVersion,!0),K(),F(5,I$a,2,0,"aside",0),U(6,"async"));a&2&&(G(b.showRecentEventsFirst&&V(1,2,b.isLoading$)?0:-1),x(3),Qg(b.internalEvents),x(2),G(!b.showRecentEventsFirst&&V(6,4,b.isLoading$)?5:-1))},dependencies:[yT,oG,Jx,yN,Tv],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 DT=function(){var a=this;this.issueFullFridge=r(TE);this.issueApi=r(RD);this.prompts=r(CT);this.contextSensitiveRegistry=r(LK);this.analytics=r(RE);this.activeSession=r(Bs);this.enableNoButton=OA(this.activeSession,"enableIssueSummarizationNoButton")&&this.activeSession.isInternalSession();this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(eg(Qj),og());this.issue$=this.issueId$.pipe(xg(function(c){return a.issueFullFridge.watch(c)}),eg(Qj),og(function(c,d){return c.issueId===d.issueId&&
c.version===d.version}));this.summarizable$=this.issue$.pipe(xg(function(c){return i0c(a.prompts,c.issueId).pipe(C(function(d){return{issue:c,isSummarizable:d}}))}),ug({refCount:!0,bufferSize:1}));this.pregeneratedSummary$=this.summarizable$.pipe(eg(function(c){return c.isSummarizable}),xg(function(c){return a.getIssueSummary(c.issue,"COMMENTS_LONG")}),ug({refCount:!0,bufferSize:1}));this.generateSummaryRequested$=new sg(1);this.generatedSummary$=this.generateSummaryRequested$.pipe(xg(function(c){return j0c(a,
c)}),ug({refCount:!0,bufferSize:1}));this.summary$=dg(this.pregeneratedSummary$,this.generatedSummary$).pipe(ug({refCount:!0,bufferSize:1}));this.stage$=Uf([this.issueId$.pipe(wg(void 0)),this.issue$.pipe(wg(void 0)),this.pregeneratedSummary$.pipe(wg(void 0)),this.generateSummaryRequested$.pipe(wg(void 0)),this.generatedSummary$.pipe(wg(void 0))]).pipe(C(function(c){var d=l(c);c=d.next().value;var e=d.next().value;var f=d.next().value;var h=d.next().value;d=d.next().value;return c&&e&&f&&f.issueId===
c?f.summary?"SUMMARY_VISIBLE":h&&h.issueId===c&&h.version===e.version?!d||d.issueId!==c||d.issueVersion<e.version?"GENERATING":"SUMMARY_VISIBLE":"BUTTON":"HIDDEN"}),ug({refCount:!0,bufferSize:1}));var b=r(Gg);this.stage$.pipe(lp(b)).subscribe()},K$a=function(a){a.issue$.pipe(mg(1)).subscribe(function(b){a.generateSummaryRequested$.next(b)})};
DT.prototype.getIssueSummary=function(a,b){return this.issueApi.getIssueSummary(a.issueId,b).pipe(C(function(c){return a.version>c.issueVersion?{issueId:a.issueId,summaryType:b,issueVersion:a.version,summary:""}:c}),hg(function(c){c.status!==404&&Xj("Error to get an issue summary: error: ",c);return Nf({issueId:a.issueId,summaryType:b,issueVersion:a.version,summary:""})}))};
var j0c=function(a,b){return a.issueApi.generateIssueSummary(b.issueId,"COMMENTS_LONG").pipe(hg(function(c){Xj("Error to generate an issue summary: error: ",c);return Nf({issueId:b.issueId,summaryType:"COMMENTS_LONG",issueVersion:b.version,summary:""})}))};DT.prototype.trackThumbsUp=function(a,b){this.trackEvent("accept",b);ET(this,a,"THUMBS_UP")};DT.prototype.trackThumbsDown=function(a,b){this.trackEvent("reject",b);ET(this,a,"THUMBS_DOWN")};
DT.prototype.trackEvent=function(a,b){this.analytics.trackEvent("llmSummarize",a,b)};var ET=function(a,b,c){if(b.modelVersion&&b.issueVersion){a=a.issueApi;var d=b.issueId,e=b.summaryType,f=b.modelVersion,h=b.issueVersion;b=new Duc;var k=b.setFeedback;c=(new nuc).setIssueId(d).setSummaryType(Qnc[e]).setModelVersion(f).setIssueVersion(h).setFeedbackType(Onc[c]);c=k.call(b,c);c=(new QD).setIt(c);a.executor.post({url:"action/issues/"+d+"/submitSummaryFeedback",body:c,responseConstructor:null}).subscribe()}};
DT.\u0275fac=function(a){return new (a||DT)};DT.\u0275prov=Cd({token:DT,factory:DT.\u0275fac,providedIn:"root"});
var CT=function(){this.eventsForIssueFridge=r(TD)},i0c=function(a,b){return k0c(a,b).pipe(C(function(c){return!!(c&&c.commentEvents.length>=3)}),og())},k0c=function(a,b){return a.eventsForIssueFridge.watch(b,{trustUncertainMemory:!0}).pipe(C(function(c){if(!c)return{commentEvents:[]};c=c.events;return{commentEvents:[].concat(p(c.slice(0,1).filter(function(d){var e;return(e=d.unlinkifiedComment)==null?void 0:e.trim()})),p(c.slice(1).filter(J$a).filter(function(d){var e;return(e=d.unlinkifiedComment)==
null?void 0:e.trim()})))}}))};CT.\u0275fac=function(a){return new (a||CT)};CT.\u0275prov=Cd({token:CT,factory:CT.\u0275fac,providedIn:"root"});var FT=function(){Z.apply(this,arguments);this.llmIssueSummaryService=r(DT);this.BUTTON="BUTTON";this.enableNoButton=this.llmIssueSummaryService.enableNoButton;this.stage$=this.llmIssueSummaryService.stage$};Y(FT,Z);FT.\u0275dir=Z.\u0275dir;FT.\u0275fac=function(){var a;return function(b){return(a||(a=Re(FT)))(b||FT)}}();
FT.\u0275cmp=y({type:FT,selectors:[["summarize-button"]],standalone:!1,features:[Bg],decls:1,vars:1,consts:[[1,"margin-right"],["svgIcon","chat_spark_24px","color","primary"],["type","button","mat-button","","color","secondary",1,"gmat-button","small","generate-summary",3,"click"]],template:function(a,b){a&1&&F(0,N$a,2,3);a&2&&G(b.enableNoButton?0:-1)},dependencies:[FC,oG,Jx,Tv],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}\n/*# sourceMappingURL=summarize_button.css.map */"]});var GT=function(){Z.apply(this,arguments);this.preferences=r(iG);this.activeSession=r(Bs);this.clearcut=r(FE);this.analytics=r(RE);this.selectedFilter=null;var a=this.activeSession.isInternalSession();Q$a.description=a?"Including CLs, Blunderbuss, etc.":"Including all automated comments";this.filters=l0c;this.showRecentEventsFirst=!1};Y(GT,Z);GT.\u0275dir=Z.\u0275dir;
GT.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(eg(Qj),yg(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b});this.preferences.commentFilterPreferences$.pipe(yg(this.destroyed$)).subscribe(function(b){b.commentFilter?a.selectedFilter=T$a(b.commentFilter):(a.selectedFilter=jG(a.preferences).showFullHistory?P$a:Q$a,a.preferences.save({commentFilterPreferences:{commentFilter:a.selectedFilter.commentFilterType}}).pipe(yg(a.destroyed$)).subscribe())})};
GT.\u0275fac=function(){var a;return function(b){return(a||(a=Re(GT)))(b||GT)}}();
GT.\u0275cmp=y({type:GT,selectors:[["b-event-stream-header"]],standalone:!1,features:[Bg],decls:14,vars:4,consts:[[1,"flex-kids-x","flex-spread"],[1,"uppercase"],[1,"flex-kids-x"],["appearance","outline","subscriptSizing","dynamic",1,"filter-select"],[3,"valueChange","selectionChange","value"],[1,"filter-option",3,"value"],["type","button","mat-stroked-button","","color","primary",1,"sort-order-button",3,"click"],["matButtonIcon","",1,"sort-order-arrow","icon-xs",3,"svgIcon"],[1,"filter-option-name"],
[1,"filter-option-description"]],template:function(a,b){a&1&&(J(0,"div",0)(1,"h4",1),R(2,"Comments"),K(),J(3,"div",2),M(4,"summarize-button"),J(5,"mat-form-field",3)(6,"mat-select",4),Ah("valueChange",function(c){zh(b.selectedFilter,c)||(b.selectedFilter=c);return c}),N("selectionChange",function(c){c=c.value;b.preferences.save({commentFilterPreferences:{commentFilter:c.commentFilterType}}).pipe(yg(b.destroyed$)).subscribe();b.analytics.trackEvent("editIssue","click",c.commentFilterType)}),J(7,"mat-select-trigger"),
R(8),K(),Pg(9,O$a,5,3,"mat-option",5,Og),K()(),J(11,"button",6),N("click",function(){var c=!b.showRecentEventsFirst;Gwc(b.clearcut,"click_recentFirst_"+c);b.preferences.save({showRecentEventsFirst:c}).pipe(yg(b.destroyed$)).subscribe()}),M(12,"mat-icon",7),R(13),K()()());a&2&&(x(6),yh("value",b.selectedFilter),x(2),wh(b.selectedFilter==null?null:b.selectedFilter.displayName),x(),Qg(b.filters),x(3),I("svgIcon",b.showRecentEventsFirst?"arrow-upward":"arrow-downward"),x(),T(" ",b.showRecentEventsFirst?
"Newest first":"Oldest first"," "))},dependencies:[FC,oG,Jx,DM,My,FT,bP,jP,kP,Bx],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 P$a={name:"Full history",description:"Including everything with audit trail",displayName:"Full history",commentFilterType:"FULL_HISTORY"},Q$a={name:"All comments and updates",description:"Including CLs, Blunderbuss, etc.",displayName:"All comments",commentFilterType:"ALL_COMMENTS"},R$a={name:"Users' comments",description:"All human generated comments",displayName:"Users",commentFilterType:"HUMAN_ONLY"},S$a={name:"Team and assignee comments",description:"Issue's owning team and assignee",displayName:"Team and assignee",
commentFilterType:"TEAM_AND_ASSIGNEE"},l0c=[P$a,Q$a,R$a,S$a];var HT=function(){this.admins=[]};HT.prototype.ngOnInit=function(){this.url="hotlists/"+this.hotlist.hotlistId;this.admins=xj(this.hotlist.adminUsers)};HT.\u0275fac=function(a){return new (a||HT)};
HT.\u0275cmp=y({type:HT,selectors:[["b-hotlist-card"]],inputs:{hotlist:"hotlist"},standalone:!1,decls:14,vars:6,consts:[[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hotlist-card"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(J(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3")(4,"a",3),R(5),K()(),J(6,"ul")(7,"li"),R(8),K(),J(9,"li"),R(10),K()(),J(11,"div")(12,"p"),R(13),K()()()()());a&2&&(x(4),I("href",b.url,hf),x(),wh(b.hotlist.name),x(3),T("ID: ",b.hotlist.hotlistId),x(2),
xh("",b.admins.length===1?"Admin":"Admins",": ",b.admins.join(", ")),x(3),wh(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 IT=function(){this.ROUTES=Dq;this.showHovercard=this.removable=!0;this.disabled=!1;this.removeHotlist=new LE};IT.prototype.getAriaLabel=function(a){return"hotlist: "+a.name};IT.\u0275fac=function(a){return new (a||IT)};
IT.\u0275cmp=y({type:IT,selectors:[["b-hotlist-chip"]],hostVars:2,hostBindings:function(a,b){a&2&&uh("removable",b.removable)},inputs:{hotlist:"hotlist",removable:"removable",showHovercard:"showHovercard",disabled:"disabled"},outputs:{removeHotlist:"removeHotlist"},standalone:!1,decls:1,vars:1,consts:[["card","onedevHovercard"],[1,"chip",3,"onedevHovercardTrigger","onedevHovercardActive"],[1,"name"],[1,"keep-focus-ring",3,"href"],["mat-icon-button","","type","button",3,"invisible"],[3,"hotlist"],
["mat-icon-button","","type","button",3,"click"],["svgIcon","close"]],template:function(a,b){a&1&&F(0,V$a,8,9);a&2&&G(b.hotlist?0:-1)},dependencies:[FC,DI,JI,HT,oG,Kx],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 JT=function(){var a=this;this.hotlists=r(cD);this.userAccess=r(AD);this.id$=new sg(1);this.removeHotlist=new LE;this.removable=!0;this.removable$=this.id$.pipe(xg(function(b){return a.removable!=="check-acl"?Nf(a.removable):BD(a.userAccess,"appender","hotlists/"+b)}));this.hotlist$=this.id$.pipe(xg(function(b){return a.hotlists.watch(b)}));this.isDisabled$=Uf([this.id$,this.id$.pipe(xg(this.hotlists.isSaving$))]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b==null?!1:
c?!0:!1}))};nd.Object.defineProperties(JT.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.idInternal=String(a);this.id$.next(String(a))}}});JT.\u0275fac=function(a){return new (a||JT)};
JT.\u0275cmp=y({type:JT,selectors:[["b-hotlist-chip-smart"]],inputs:{id:"id",removable:"removable"},outputs:{removeHotlist:"removeHotlist"},standalone:!1,decls:4,vars:9,consts:[[3,"removeHotlist","hotlist","disabled","removable"]],template:function(a,b){a&1&&(J(0,"b-hotlist-chip",0),U(1,"async"),U(2,"async"),U(3,"async"),N("removeHotlist",function(){b.idInternal==null?Xj("Missing id"):b.removeHotlist.emit()}),K());if(a&2){var c;I("hotlist",V(1,3,b.hotlist$))("disabled",V(2,5,b.isDisabled$)===!0)("removable",
(c=V(3,7,b.removable$))!=null?c:!1)}},dependencies:[IT,Tv],encapsulation:2,changeDetection:0});var m0c=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],n0c=new le("MAT_CARD_CONFIG"),o0c=function(){var a;this.appearance=((a=r(n0c,{optional:!0}))==null?void 0:a.appearance)||"raised"};o0c.\u0275fac=function(a){return new (a||o0c)};
o0c.\u0275cmp=y({type:o0c,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(a,b){a&2&&uh("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&&(ch(),dh(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 KT=function(){};KT.\u0275fac=function(a){return new (a||KT)};KT.\u0275dir=vf({type:KT,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]});var p0c=function(){this.align="start"};p0c.\u0275fac=function(a){return new (a||p0c)};
p0c.\u0275dir=vf({type:p0c,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(a,b){a&2&&uh("mat-mdc-card-actions-align-end",b.align==="end")},inputs:{align:"align"},exportAs:["matCardActions"]});var LT=function(){};LT.\u0275fac=function(a){return new (a||LT)};
LT.\u0275cmp=y({type:LT,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&&(ch(m0c),dh(0),Sg(1,"div",0),dh(2,1),Tg(),dh(3,2))},encapsulation:2,changeDetection:0});var MT=function(){Z.apply(this,arguments);this.onAccept=new LE;this.onDismiss=new LE};Y(MT,Z);MT.\u0275dir=Z.\u0275dir;MT.prototype.ngOnInit=function(){this.url="hotlists/"+this.hotlist.hotlistId};MT.\u0275fac=function(){var a;return function(b){return(a||(a=Re(MT)))(b||MT)}}();
MT.\u0275cmp=y({type:MT,selectors:[["b-hotlist-recommendation-card"]],inputs:{hotlist:"hotlist"},outputs:{onAccept:"onAccept",onDismiss:"onDismiss"},standalone:!1,features:[Bg],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&&(J(0,"div",0)(1,"div",1)(2,"mat-card-header",2),R(3," Suggested hotlist"),K(),J(4,"mat-card-content")(5,"h3",3)(6,"a",4),R(7),K()(),J(8,"div",5)(9,"p"),R(10),K()()(),J(11,"mat-card-actions",6)(12,"button",7),N("click",function(){return b.onAccept.emit(b.hotlist.hotlistId)}),R(13,"Accept"),K(),J(14,"button",8),N("click",function(){return b.onDismiss.emit()}),R(15,"Dismiss"),K()()()());a&2&&(x(6),I("href",b.url,hf),x(),wh(b.hotlist.name),
x(3),wh(b.hotlist.description))},dependencies:[oG,Jx,p0c,KT,LT],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 NT=function(){this.issueFullFridge=r(TE);this.recommendationsApi=r(ZE);this.analytics=r(RE);this.issueRecommendationFridge=r($E);this.ROUTES=Dq;this.updateHotlistsInstantly=this.showHovercard=!0;this.onAccept=new LE;this.hovercardConfig={showDelay:250,hideDelay:250,position:[LHc],triggerKey:[]}};NT.prototype.getAriaLabel=function(a){return"suggested hotlist: "+a.name};
NT.prototype.addHotlist=function(a){var b=this;return z(function(c){if(c.nextAddress==1)return b.issueId==null?c.return():b.updateHotlistsInstantly?B(c,b.issueFullFridge.updateHotlists(b.issueId,[a.toString()],[]),2):c.jumpTo(2);b.onAccept.emit();b.analytics.trackEvent("hotlistRecommendation","accept",b.analyticsLabel);return B(c,b.recommendationsApi.createUserEngagements([{parent:b.recommendationId,userEngagement:{type:"ACCEPTED"}}]),0)})};
var W$a=function(a){return z(function(b){if(b.nextAddress==1){if(a.issueId==null)return b.return();a.analytics.trackEvent("hotlistRecommendation","dismiss",a.analyticsLabel);return B(b,a.recommendationsApi.createUserEngagements([{parent:a.recommendationId,userEngagement:{type:"REJECTED"}}]),2)}return B(b,a.issueRecommendationFridge.poke(a.issueId+"-HOTLIST"),0)})};NT.\u0275fac=function(a){return new (a||NT)};
NT.\u0275cmp=y({type:NT,selectors:[["b-hotlist-recommendation-chip"]],inputs:{hotlist:"hotlist",recommendationId:"recommendationId",issueId:"issueId",analyticsLabel:"analyticsLabel",showHovercard:"showHovercard",updateHotlistsInstantly:"updateHotlistsInstantly"},outputs:{onAccept:"onAccept"},standalone:!1,decls:1,vars:1,consts:[["card","onedevHovercard"],[1,"chip",3,"onedevHovercardTrigger","onedevHovercardActive","onedevHovercardConfig"],["type","button","mat-icon-button","",1,"add-button","vertical-centered",
3,"click"],["svgIcon","add"],["svgIcon","issue-status-new",1,"vertical-centered"],[1,"name"],[1,"keep-focus-ring",3,"href"],[3,"onAccept","onDismiss","hotlist"]],template:function(a,b){a&1&&F(0,X$a,11,10);a&2&&G(b.hotlist?0:-1)},dependencies:[FC,oG,Kx,DI,JI,MT],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 q0c=[[["","before",""]]],aab=function(a,b){return b.name},OT=function(){Z.apply(this,arguments);var a=this;this.activeSession=r(Bs);this.issueFullFridge=r(TE);this.issueInteractionsTracking=r(KK);this.errorHandler=r(aK);this.eventsForIssueFridge=r(TD);this.liveAnnouncer=r(Aw);this.hotlistPickerService=r(jS);this.issueRecommendationFridge=r($E);this.analytics=r(RE);this.isInternalSession=this.activeSession.isInternalSession();this.HOTKEYS=sp;this.issueId$=new sg(1);this.issue$=this.issueId$.pipe(xg(function(b){return a.issueFullFridge.watch(b)}));
this.hotlistIds$=this.issue$.pipe(C(function(b){var c;return(c=b==null?void 0:b.snapshot[0].hotlistId)!=null?c:[]}));this.recommendations$=this.issueId$.pipe(xg(function(b){return a.issueRecommendationFridge.watch(b+"-HOTLIST")}),C(function(b){return((b==null?void 0:b.recommendations)||[]).filter(function(c){return c.confidence==="VERY_HIGH"}).filter(Qj).slice(0,2)}));this.textOfHotlistBtn$=this.hotlistIds$.pipe(C(function(b){return b.length}),C(function(b){return b<=5?"Add Hotlist":""}))};Y(OT,Z);
OT.\u0275dir=Z.\u0275dir;OT.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(this.hotlistIds$.subscribe(function(){if(a.isInternalSession){var b=ip(a.issueId$);a.issueRecommendationFridge.poke(b+"-HOTLIST")}}));this.subscriptions.add(this.recommendations$.subscribe(function(b){b.length>0&&a.analytics.trackEvent("hotlistRecommendation","display","IDP")}))};OT.prototype.openHotlistModal=function(){var a=this;return z(function(b){return B(b,cYc(a.hotlistPickerService,a.issue$),0)})};
var Y$a=function(a,b){var c,d;return z(function(e){switch(e.nextAddress){case 1:return B(e,Rf(a.issueId$),2);case 2:return c=e.yieldResult,Mq(a.issueInteractionsTracking,c,{label:"remove-hotlists",value:1}),Gf(e,3,4),B(e,a.issueFullFridge.removeHotlists(c,[String(b)]),6);case 6:return B(e,a.liveAnnouncer.announce("Hotlist removed successfully"),4);case 4:Hf(e);a.eventsForIssueFridge.poke(c);Jf(e,0);break;case 3:d=Kf(e),cK(a.errorHandler,d),e.jumpTo(4)}})};
nd.Object.defineProperties(OT.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});OT.\u0275fac=function(){var a;return function(b){return(a||(a=Re(OT)))(b||OT)}}();
OT.\u0275cmp=y({type:OT,selectors:[["b-issue-hotlists"]],inputs:{issueId:"issueId"},standalone:!1,features:[Bg],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&&(ch(q0c),F(0,dab,11,11,"div",0),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.hotlistIds$))?0:-1,c)}},dependencies:[FC,JT,NT,RG,oG,Jx,Tv],styles:[".add-hotlists-btn[_ngcontent-%COMP%], button.gmat-mdc-button[_ngcontent-%COMP%]:not(.mat-mdc-icon-button).add-hotlists-btn{font-family:Roboto,Arial,sans-serif;line-height:1.25rem;font-size:.875rem;letter-spacing:.0142857143em;font-weight:400;font-size:.8125rem;line-height:1.3846153846;color:#202124;color:var(--text);background-color:#fff;background-color:var(--surface-default);line-height:22px;height:22px;min-width:22px;padding:0 8px;border-radius:11px}.add-hotlists-btn.icon-only[_ngcontent-%COMP%]{--mat-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:22px}[_nghost-%COMP%]     .chip-container b-hotlist-chip, [_nghost-%COMP%]     .chip-container b-hotlist-recommendation-chip, [_nghost-%COMP%]     .chip-container .b-chip{margin-right:0}"]});var r0c=["issueTitleEl"],s0c=["issueTitleInputEl"],PT=function(){this.issuePermissionService=r(OK);this.issueFullFridge=r(TE);this.bannedWordsChecker=r(UO);this.disabled=!1;this.titleChanged=new LE;this.isEditMode=!1;this.editModeWidth=0;this.isSaving=!1};PT.prototype.ngDoCheck=function(){t0c(this)};var hab=function(a){a.isEditMode=!a.isEditMode;a.isEditMode?setTimeout(function(){return a.issueTitleInputEl.nativeElement.focus()},0):a.bannedWordsChecker.reset()};
PT.prototype.saveTitle=function(a){var b=this,c;return z(function(d){if(d.nextAddress==1)return a&&b.isModified(a)?B(d,b.bannedWordsChecker.check(a,b.issuePermissionService.accessLevel()==="EXTERNAL_PUBLIC",b.componentId),3):d.jumpTo(2);if(d.nextAddress!=2){c=d.yieldResult;if(!c)return b.issueTitleInputEl.nativeElement.focus(),d.return();u0c(b,a.trim());b.bannedWordsChecker.reset()}b.isEditMode=!1;t0c(b);Lf(d)})};
var u0c=function(a,b){z(function(c){a.isSaving=!0;return B(c,Rf(Ywc(a.issueFullFridge,a.issueId,b)).finally(function(){a.isSaving=!1;a.titleChanged.next(b)}),0)})};PT.prototype.isModified=function(a){return a!==this.titlePlain};
var eab=function(a,b){if(b)b.key==="Enter"?a.saveTitle(b.target.value):b.key==="Escape"||b.key==="Esc"?hab(a):a.bannedWordsChecker.reset();else{var c;b=(c=a.issueTitleInputEl)==null?void 0:c.nativeElement.value;a.saveTitle(b)}},t0c=function(a){var b=a.editModeWidth,c,d;a.editModeWidth=(d=Number((c=a.issueTitleEl)==null?void 0:c.nativeElement.offsetWidth)+50)!=null?d:b};PT.prototype.onInputBlur=function(){this.bannedWordsChecker.showWarning()||eab(this)};
nd.Object.defineProperties(PT.prototype,{title:{configurable:!0,enumerable:!0,set:function(a){this.titlePlain=a=a!=null?a:void 0;this.titleTruncated=VKa(a,300);this.isLongTitle=a==null?!1:a.length>=300}}});PT.\u0275fac=function(a){return new (a||PT)};
PT.\u0275cmp=y({type:PT,selectors:[["issue-title"]],viewQuery:function(a,b){a&1&&(hh(r0c,5),hh(s0c,5));if(a&2){var c;lh(c=mh())&&(b.issueTitleEl=c.first);lh(c=mh())&&(b.issueTitleInputEl=c.first)}},inputs:{title:"title",componentId:"componentId",issueId:"issueId",disabled:"disabled",hasAclToEdit:"hasAclToEdit"},outputs:{titleChanged:"titleChanged"},standalone:!1,features:[Fh([UO])],decls:6,vars:5,consts:[["issueTitleInputEl",""],["issueTitleEl",""],[1,"issue-title-container"],["subscriptSizing","dynamic",
3,"width","banned-words-warning"],[1,"heading-m"],["type","button","mat-icon-button","","matTooltip","Edit issue title","aria-label","Edit issue title",1,"small","align-self-center",3,"disabled"],[1,"banned-words-warning","break-word"],["subscriptSizing","dynamic"],["matInput","","aria-label","Enter a new title",1,"heading-m",3,"keyup","blur","value"],["type","button","mat-icon-button","","matTooltip","Edit issue title","aria-label","Edit issue title",1,"small","align-self-center",3,"click","disabled"],
["svgIcon","edit-outline",1,"icon-xxs"],["target","_blank","aria-label","Learn more about banned words","href","http://go/b-trackers#banned-words-for-tracker",1,"color-bad-text","keep-underline"]],template:function(a,b){a&1&&(J(0,"div",2),F(1,fab,4,7,"mat-form-field",3)(2,gab,3,2,"h3",4),F(3,iab,2,1,"button",5),K(),F(4,jab,4,1,"p",6),U(5,"async"));a&2&&(x(),G(b.isEditMode?1:2),x(2),G(b.hasAclToEdit?3:-1),x(),G(V(5,3,b.bannedWordsChecker.showWarning$)?4:-1))},dependencies:[FC,oG,Kx,zG,xG,DM,My,FM,
Uy,Tv],styles:["[_nghost-%COMP%]{display:flex;align-items:center}h3[_ngcontent-%COMP%]{vertical-align:middle;margin-bottom:-1px;word-break:break-word}[_nghost-%COMP%]     mat-form-field{min-width:200px;max-width:100%}[_nghost-%COMP%]     mat-form-field .mat-mdc-text-field-wrapper{padding-left:0}[_nghost-%COMP%]     mat-form-field .mat-mdc-form-field-infix{min-height:initial;padding:0;height:22px}[_nghost-%COMP%]     mat-form-field .mat-mdc-form-field-infix .mat-mdc-form-field-input-control{font-size:1.125rem}[_nghost-%COMP%]     .gmat-mdc-form-field.mat-primary.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper:not(.mdc-text-field--disabled){background-color:rgba(0,0,0,0)}[_nghost-%COMP%]     .gmat-mdc-form-field.mat-primary.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--text-high-contrast)}.issue-title-container[_ngcontent-%COMP%]{display:inline-flex}mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--c700);margin-top:-2px}.banned-words-warning[_ngcontent-%COMP%]{color:#c5221f;color:var(--bad-text)}"]});var QT={},v0c=(QT.ISSUE_DEDUPLICATION=new Set(["VERY_HIGH"]),QT.ISSUE_DEDUPLICATION_BATCH=new Set(["VERY_HIGH"]),QT.NEEDS_INFO=new Set(["VERY_HIGH"]),QT.COMPONENT_ROUTING=new Set(["VERY_HIGH"]),QT.HOTLIST=new Set(["VERY_HIGH"]),QT.TYPE_UNSPECIFIED=new Set([]),QT),RT=function(){this.activeSession=r(Bs);this.issuePermissionService=r(OK);this.issueFridge=r(iE);this.componentFridge=r(BB);this.issueRecommendationFridge=r($E);this.refreshMonitor=r(gE);this.hiddenRecommendationIds=new IA},x0c=function(a,
b){return kvc(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-ISSUE_DEDUPLICATION")}).pipe(xg(function(c){return w0c(a,c==null?void 0:c.recommendations)}))},y0c=function(a,b){return kvc(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-ISSUE_DEDUPLICATION_BATCH")}).pipe(xg(function(c){return w0c(a,c==null?void 0:c.recommendations)}))},z0c=function(a,b){return kvc(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-NEEDS_INFO")}).pipe(xg(function(c){return w0c(a,
c==null?void 0:c.recommendations)}))},A0c=function(a,b){return kvc(a.refreshMonitor,function(){return a.issueRecommendationFridge.watch(b+"-COMPONENT_ROUTING")}).pipe(xg(function(c){return w0c(a,c==null?void 0:c.recommendations)}))},w0c=function(a,b){if(!b||!b.length)return Nf(void 0);b=b.map(function(c){return B0c(a,c).pipe(C(function(d){return d?c:void 0}))});return Uf(b).pipe(C(function(c){return c.filter(Qj)[0]}))},B0c=function(a,b){if(!a.activeSession.isInternalSession())return Nf(!1);var c=
v0c[b.type];if(!c||!c.has(b.confidence))return Nf(!1);c=Gcb(b.resource);if(!c)return Nf(!1);c=a.issueFridge.watch(c);var d=c.pipe(xg(function(e){return(e=XOa(e))?a.componentFridge.watch(e):Nf(void 0)}));return Uf([c,d,a.issuePermissionService.hasAclToEdit$,Qq(a.hiddenRecommendationIds,b.name)]).pipe(C(function(e){var f=l(e);e=f.next().value;var h=f.next().value;var k=f.next().value;f=f.next().value;return C0c(a,{recommendation:b,hasAclToEdit:k,issue:e,component:h,shouldHide:f})}))},C0c=function(a,
b){var c=b.recommendation;var d=b.hasAclToEdit;var e=b.issue;var f=b.component;if(!d||b.shouldHide)return!1;var h,k;b=(k=f==null?void 0:(h=f.componentPathInfo)==null?void 0:h.componentPathId)!=null?k:[];switch(c.type){case "ISSUE_DEDUPLICATION":var q;return xl(e)&&!!(c==null?0:(q=c.content)==null?0:q.recommendedIssue);case "HOTLIST":return!0;case "ISSUE_DEDUPLICATION_BATCH":if(!xl(e))return!1;e=OA(a.activeSession,"enableBatchDedupe");h=b.some(function(O){var S;return(S=a.activeSession.getBatchDedupeComponentAllowlist())==
null?void 0:S.has(O)});if(!e&&!h)return!1;var v;return(c==null?0:(v=c.content)==null?0:v.issueDeduplicationBatch)?!0:!1;case "NEEDS_INFO":if(!OA(a.activeSession,"enableNeedsInfoUi"))return!1;var A,E;return((A=c.content)==null?0:(E=A.issueModification)==null?0:E.addState)&&zj(UOa(e))!==zj(c.content.issueModification.addState.assigneeUser)?!0:!1;case "COMPONENT_ROUTING":if(!OA(a.activeSession,"enableComponentRoutingUi"))return!1;var H,L;return((H=c.content)==null?0:(L=H.issueModification)==null?0:L.addState)&&
c.content.issueModification.addState.componentId!==e.snapshot[0].componentId?!0:!1;default:return!1}};RT.\u0275fac=function(a){return new (a||RT)};RT.\u0275prov=Cd({token:RT,factory:RT.\u0275fac,providedIn:"root"});var D0c={FOCUS_SYNC:"FOCUS_SYNC",REMAIN_ACTIVE:"REMAIN_ACTIVE"},E0c={DISABLED:"DISABLED",INTERNAL_SORT:"INTERNAL_SORT",EXTERNAL_SORT:"EXTERNAL_SORT"},F0c={ALL:"ALL",NONE:"NONE"},G0c=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"]]),H0c=[{type:"TITLE"},{type:"TYPE"},{type:"TEAM"},{type:"ISSUE_ID"},{type:"ASSIGNEE"},{type:"STATUS"}],I0c=[{type:"TITLE"},{type:"TYPE"},{type:"ISSUE_ID"},{type:"ASSIGNEE"},{type:"STATUS"}],J0c=[{type:"PRIORITY"},{type:"TITLE"},{type:"ASSIGNEE"},{type:"STATUS"},{type:"ISSUE_ID"},{type:"MODIFIED_TIME"}],
K0c=[{type:"PRIORITY"},{type:"TITLE"},{type:"ASSIGNEE"},{type:"PROGRESS"},{type:"ISSUE_ID"},{type:"MODIFIED_TIME"}],L0c=[{type:"TITLE"},{type:"ASSIGNEE"},{type:"STATUS"},{type:"ISSUE_ID"}],M0c={modes:{assignee:"avatar-if-open",modifiedTime:"relativepast"},rowLimit:15},N0c={showActiveIndicator:!0,enableDragging:!0,showMenu:!0,modes:{assignee:"avatar-if-open"},hideColumnHeaders:!0};var ST=function(){this.liveAnnouncer=r(Aw);this.originalItems=[];this.allowRemoval=!1;this.itemsOutput=new LE;this.hasChanges=new LE(!1);this.items=[];this.grabbed=!1};ST.prototype.ngOnInit=function(){this.originalItems.forEach(function(a){a.enabled===void 0&&(a.enabled=!0);return a});this.items=hj(this.originalItems)};var O0c=function(a){a.items.sort(function(b,c){return b.name.localeCompare(c.name)});a.detectChanges()};
ST.prototype.drop=function(a){wq(this.items,a.previousIndex,a.currentIndex);this.detectChanges()};var lab=function(a,b){return b>0?(wq(a.items,b,b-1),a.detectChanges(),!0):!1},mab=function(a,b){return b<a.items.length-1?(wq(a.items,b,b+1),a.detectChanges(),!0):!1};ST.prototype.trackByFn=function(){return-1};ST.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.")};
ST.prototype.onKeyDown=function(a,b){if(!(a.target instanceof HTMLInputElement&&a.target.type==="checkbox"))switch(a.key){case " ":a.preventDefault();P0c(this,b);break;case "Tab":this.grabbed&&P0c(this,b);break;case "ArrowUp":Q0c(this,a);break;case "ArrowDown":Q0c(this,a)}};
var P0c=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."))},Q0c=function(a,b){if(a.grabbed){var c=document.activeElement;if(c&&a.grabbedIndex!==void 0){if(b.key==="ArrowUp"){if(lab(a,a.grabbedIndex)){var d=c.previousElementSibling;
a.grabbedIndex--}}else mab(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."))}}};ST.prototype.detectChanges=function(){var a=!gj(this.items,this.originalItems);this.itemsOutput.emit(this.items);this.hasChanges.emit(a)};ST.\u0275fac=function(a){return new (a||ST)};
ST.\u0275cmp=y({type:ST,selectors:[["b-reorder-items"]],inputs:{originalItems:"originalItems",allowRemoval:"allowRemoval"},outputs:{itemsOutput:"items",hasChanges:"hasChanges"},standalone:!1,decls:3,vars:0,consts:[["cdkDropList","",3,"cdkDropListDropped"],["cdkDrag","","tabindex","0"],["cdkDrag","","tabindex","0",3,"keydown","focus"],[3,"checked","aria-label"],["cdkDragHandle","","svgIcon","drag-indicator",1,"drag-handle"],[1,"arrows"],["type","button","mat-icon-button","","aria-label","Move the item up",
3,"click"],["svgIcon","arrow-up"],["type","button","mat-icon-button","","aria-label","Move the item down",3,"click"],["svgIcon","arrow-down"],[3,"change","checked","aria-label"]],template:function(a,b){a&1&&(J(0,"ol",0),N("cdkDropListDropped",function(c){return b.drop(c)}),Pg(1,nab,10,8,"li",1,b.trackByFn,!0),K());a&2&&(x(),Qg(b.items))},dependencies:[FC,MM,LM,IM,oG,Kx,hM],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 TT=function(){this.data=r(QJ);this.dialogRef=r(KJ);this.originalColumns=this.data.columnItems;this.columns=[].concat(p(this.originalColumns));this.hasChanges=!1};TT.prototype.onClose=function(){this.dialogRef.close(this.columns)};TT.\u0275fac=function(a){return new (a||TT)};
TT.\u0275cmp=y({type:TT,selectors:[["b-configure-columns-dialog"]],standalone:!1,decls:12,vars:3,consts:[["reorderItems",""],["mat-dialog-title",""],[1,"flex-kids-x","space-between","align-items-center"],[1,"margin-none"],["mat-dialog-content",""],[3,"items","hasChanges","originalItems","allowRemoval"],["mat-dialog-actions",""],["type","button","mat-stroked-button","",1,"medium","cancel",3,"click"],["type","button","mat-flat-button","","color","primary",1,"medium","dialog-primary-action","save",3,
"click","disabled"]],template:function(a,b){if(a&1){var c=t();J(0,"div",1)(1,"div",2)(2,"h1",3);R(3," Customize columns for triage view ");K()()();J(4,"div",4)(5,"b-reorder-items",5,0);N("items",function(d){u(c);return w(b.columns=d)})("hasChanges",function(d){u(c);return w(b.hasChanges=d)});K()();J(7,"div",6)(8,"button",7);N("click",function(){u(c);return w(b.dialogRef.close())});R(9," Cancel ");K();J(10,"button",8);N("click",function(){u(c);return w(b.onClose())});R(11," Save ");K()()}a&2&&(x(5),
I("originalItems",b.originalColumns)("allowRemoval",!0),x(5),I("disabled",!b.hasChanges))},dependencies:[ST,oG,Jx,UJ,WJ,VJ],encapsulation:2,changeDetection:0});var UT=function(){this.JOINING_ARROW="\u2192";this.showIcon=!0};nd.Object.defineProperties(UT.prototype,{issue:{configurable:!0,enumerable:!0,set:function(a){if(a!=null){var b=twa(1049928)(a);this.startDate=sl(b==null?void 0:b.dateValue);a=twa(1049953)(a);this.endDate=sl(a==null?void 0:a.dateValue);this.startDateShortStr=Mva(this.startDate);this.endDateShortStr=Mva(this.endDate)}}}});UT.\u0275fac=function(a){return new (a||UT)};
UT.\u0275cmp=y({type:UT,selectors:[["issue-timeframe"]],inputs:{issue:"issue",showIcon:"showIcon"},standalone:!1,decls:1,vars:1,consts:[[1,"flex-kids-x","align-items-center"],["svgIcon","calendar_month_24px","title","Start date and/or end date for this project",1,"icon-m","margin-xs-right"],[1,"margin-xs-right","date",3,"title"],[1,"date",3,"title"],[1,"muted"]],template:function(a,b){a&1&&F(0,sab,5,3,"div",0);a&2&&G(b.startDate||b.endDate?0:-1)},dependencies:[FC,Wv],styles:["[_nghost-%COMP%] {\n      white-space: nowrap;\n    }\n    .date[_ngcontent-%COMP%] {\n      display: inline-block;\n    }"],
changeDetection:0});var VT=function(){this.makePie=uab;this.total=this.closed=0;this.useXofYLabel=!1};nd.Object.defineProperties(VT.prototype,{issue:{configurable:!0,enumerable:!0,set:function(a){a!=null&&(this.total=a.descendantCount,this.closed=this.total-a.openDescendantCount)}}});VT.\u0275fac=function(a){return new (a||VT)};
VT.\u0275cmp=y({type:VT,selectors:[["progress-pie"]],inputs:{issue:"issue",closed:"closed",total:"total"},standalone:!1,decls:1,vars:1,consts:[[1,"flex-kids-x","align-items-center",3,"title"],[1,"flex-kids-x","align-items-center",3,"click","title"],[1,"pie","margin-s-right"]],template:function(a,b){a&1&&F(0,Dab,7,14,"div",0);a&2&&G(b.total>0?0:-1)},dependencies:[Zv],encapsulation:2,changeDetection:0});var R0c=ll().user.email,yr={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===R0c&&xl(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===R0c:!1},queryFragment:"assignee:me",
tooltip:"Issues with me as the assignee"},OPEN:{key:"OPEN",displayAs:"Open",check:function(a){return xl(a)},queryFragment:"status:open",tooltip:'Issues that match "status:open"'},FIXED:{key:"FIXED",displayAs:"Fixed",check:cwa,queryFragment:"status:fixed"},BROAD_IN_PROGRESS:{key:"BROAD_IN_PROGRESS",displayAs:"Assigned",check:function(a){return bwa(a,"ASSIGNED")||bwa(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)&&xl(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&&xl(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(owa(a))&&xl(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 xwa(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 WT=function(){this.changes=new tg};WT.\u0275fac=function(a){return new (a||WT)};WT.\u0275prov=Cd({token:WT,factory:WT.\u0275fac,providedIn:"root"});var S0c={provide:WT,deps:[[new qv,new rv,WT]],useFactory:function(a){return a||new WT}};var T0c=new le("MAT_SORT_DEFAULT_OPTIONS"),XT=function(a){this._defaultOptions=a;this._initializedStream=new sg(1);this.sortables=new Map;this._stateChanges=new tg;this.start="asc";this._direction="";this.disabled=!1;this.sortChange=new nq;this.initialized=this._initializedStream};g=XT.prototype;g.register=function(a){this.sortables.set(a.id,a)};g.deregister=function(a){this.sortables.delete(a.id)};
g.sort=function(a){if(this.active!=a.id)this.active=a.id,this.direction=a.start?a.start:this.start;else{if(a){var b,c,d,e=(d=(c=a==null?void 0:a.disableClear)!=null?c:this.disableClear)!=null?d:!((b=this._defaultOptions)==null||!b.disableClear);b=["asc","desc"];(a.start||this.start)=="desc"&&b.reverse();e||b.push("");a=b.indexOf(this.direction)+1;a>=b.length&&(a=0);a=b[a]}else a="";this.direction=a}this.sortChange.emit({active:this.active,direction:this.direction})};g.ngOnInit=function(){this._initializedStream.next()};
g.ngOnChanges=function(){this._stateChanges.next()};g.ngOnDestroy=function(){this._stateChanges.complete();this._initializedStream.complete()};nd.Object.defineProperties(XT.prototype,{direction:{configurable:!0,enumerable:!0,get:function(){return this._direction},set:function(a){this._direction=a}}});XT.\u0275fac=function(a){return new (a||XT)(of(T0c,8))};
XT.\u0275dir=vf({type:XT,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",$h],disabled:[2,"matSortDisabled","disabled",$h]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[ov]});var YT=function(){this._intl=r(WT);this._sort=r(XT,{optional:!0});this._columnDef=r("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});this._changeDetectorRef=r(Hv);this._focusMonitor=r(jw);this._elementRef=r(Te);this._ariaDescriber=r(Cw,{optional:!0});this._animationsDisabled=Ri();this._recentlyCleared=nh.apply(null,[null].concat(p([])));this.arrowPosition="after";this.disabled=!1;this._sortActionDescription="Sort";r(Di).load(wx);var a=r(T0c,{optional:!0});if(a==null?0:a.arrowPosition)this.arrowPosition=
a==null?void 0:a.arrowPosition};g=YT.prototype;g.ngOnInit=function(){var a=this;!this.id&&this._columnDef&&(this.id=this._columnDef.name);this._sort.register(this);this._renderChanges=dg(this._sort._stateChanges,this._sort.sortChange).subscribe(function(){return a._changeDetectorRef.markForCheck()});this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container");this._updateSortActionDescription(this._sortActionDescription)};
g.ngAfterViewInit=function(){var a=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(){return a._recentlyCleared.set(null)})};g.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef);this._sort.deregister(this);var a;(a=this._renderChanges)==null||a.unsubscribe();if(this._sortButton){var b;(b=this._ariaDescriber)==null||Dw(b,this._sortButton,this._sortActionDescription)}};
g._toggleOnInteraction=function(){if(!this._isDisabled()){var a=this._isSorted(),b=this._sort.direction;this._sort.sort(this);this._recentlyCleared.set(a&&!this._isSorted()?b:null)}};g._handleKeydown=function(a){if(a.keyCode===32||a.keyCode===13)a.preventDefault(),this._toggleOnInteraction()};g._isSorted=function(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")};g._isDisabled=function(){return this._sort.disabled||this.disabled};
g._getAriaSortAttribute=function(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"};g._renderArrow=function(){return!this._isDisabled()||this._isSorted()};g._updateSortActionDescription=function(a){if(this._sortButton){var b;(b=this._ariaDescriber)==null||Dw(b,this._sortButton,this._sortActionDescription);var c;(c=this._ariaDescriber)==null||Vic(c,this._sortButton,a)}this._sortActionDescription=a};
nd.Object.defineProperties(YT.prototype,{sortActionDescription:{configurable:!0,enumerable:!0,get:function(){return this._sortActionDescription},set:function(a){this._updateSortActionDescription(a)}}});YT.\u0275fac=function(a){return new (a||YT)};
YT.\u0275cmp=y({type:YT,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&&(Lg("aria-sort",b._getAriaSortAttribute()),uh("mat-sort-header-disabled",b._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled",
"disabled",$h],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",$h]},exportAs:["matSortHeader"],attrs:["mat-sort-header",""],ngContentSelectors:["*"],decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],"viewBox;0 -960 960 960;focusable;false;aria-hidden;true".split(";"),["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(a,b){a&1&&
(ch(),Sg(0,"div",0)(1,"div",1),dh(2),Tg(),F(3,Gab,3,0,"div",2),Tg());a&2&&(uh("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),
Lg("tabindex",b._isDisabled()?null:0)("role",b._isDisabled()?null:"button"),x(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{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 U0c={showActiveIndicator:!0,showMenu:!0,menu:{includeGoToIssueItem:!0},sortMode:"INTERNAL_SORT",activeRowMode:"FOCUS_SYNC"},ZT=function(){Z.call(this);var a=this;this.issueFridge=r(iE);this.router=r(vC);this.domSafe=r(UK);this.llmService=r(pS);this.matDialog=r(RJ);this.cdr=r(NE,{self:!0});this.isOpen=function(b){return xl(b)};this.isSingleIssue=function(b,c){return c.issueIds.length===1};this.isMultiIssue=function(b,c){return c.issueIds.length>1};this.isClosed=awa;this.isUnread=ewa;this.getAssigneeString=
function(b){var c,d;b=zj(b==null?void 0:(c=b.snapshot)==null?void 0:(d=c[0])==null?void 0:d.assigneeUser);return pl(b)?b:void 0};this.userToString=zj;this.toMatSortDirection=Fta;this.idsToString=Acb;this.ClickTargetsForNavigation=F0c;this.SortMode=E0c;this.ActiveRowMode=D0c;this.IssueFieldType=Mnc;this.selection=new Tw(!0,[]);this.issueIds$=new Kn([]);this.menuItemFactory=function(){return[]};this.showReadStatus=!1;this.alerts=[];this.enrichmentCategoriesFunction=function(){return[]};this.optionsInternal=
U0c;this.activeIssueChange=new LE;this.rowClick=new LE;this.sortChange=new LE;this.columnsChange=new LE;this.selectedIssuesChange=new LE;this.issueNavigated=new LE;this.rowLimit$=new Kn(this.options.rowLimit);this.DEFAULT_DATETIME_MODE="datetime";this.DEFAULT_MENU_OPTIONS={buttonIcon:"more-settings-vertical",buttonLabel:"More options"};this.internalFilters=new IA;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 Kn(void 0);this.allRows$=this.issueIds$.pipe(jp(),C(function(b){return b.map(function(c){return{issueIds:c,issue$:c.length===1?dg(a.issueFridge.watch(c[0]),a.issueFridge.watchOneError(c[0]).pipe(C(function(){}))):Nf(void 0),summaryTitle$:Yf(function(){return tYc(a.llmService,c)})}})}),ug({refCount:!0,bufferSize:1}));this.allIssues$=
this.allRows$.pipe(xg(function(b){return Uf(b.map(function(c){return c.issue$}))}),C(function(b){return b.filter(Qj)}),og(),ug({bufferSize:1,refCount:!0}));this.allIssuesAreLoaded$=this.allRows$.pipe(xg(function(b){return Uf(b.map(function(c){return c.issue$.pipe(wg(null))}))}),C(function(b){return b.every(function(c){return c!==null})}),og(),ug({bufferSize:1,refCount:!0}));this.unarchivedRows$=this.allRows$.pipe(ig(this.allIssuesAreLoaded$),C(function(b){var c=l(b);b=c.next().value;return c.next().value?
b.filter(function(d){var e;return!((e=yl(d))==null?0:e.isArchived)}):b}));this.unarchivedRows$.pipe(C(function(b){return b.length}));this.sortRows=Bf(ig(this.activeSort$,this.allIssuesAreLoaded$),C(function(b){var c=l(b);b=c.next().value;var d=c.next().value;return c.next().value&&a.options.sortMode==="INTERNAL_SORT"?Bcb(b,d):b}));this.filterRows=Bf(ig(this.internalFilters.value$),xg(function(b){b=l(b);var c=b.next().value;var d=b.next().value;return d.size===0?Nf(c):Uf(c.map(function(e){return e.issue$})).pipe(C(function(e){return c.filter(function(f,
h){return e[h]?Eab(d,h,e):!0})}))}));this.limitRows=Bf(ig(this.rowLimit$),C(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(ig(this.allIssuesAreLoaded$),C(function(b){b=l(b);var c=b.next().value;if(b.next().value){b=c.map(yl).map(function(h){return h==null?void 0:h.userActivityStats});b={views24h:b.map(function(h){var k;return(k=h==null?void 0:h.oneDayViewCount)!=
null?k:0}),views7d:b.map(function(h){var k;return(k=h==null?void 0:h.sevenDayViewCount)!=null?k:0}),views30d:b.map(function(h){var k;return(k=h==null?void 0:h.thirtyDayViewCount)!=null?k:0})};var d={};c=l(c.entries());for(var e=c.next();!e.done;e=c.next()){var f=l(e.value);e=f.next().value;f=f.next().value.issueIds;(e=Ccb(b,e))&&(d[f[0]]=e)}return d}}));this.rows$=this.filteredRows$.pipe(this.limitRows,this.sortRows);this.rowCountAfterFilters$=this.unarchivedRows$.pipe(this.filterRows,C(function(b){return b.length}));
this.hiddenRowCount$=Uf([this.unarchivedRows$,this.rows$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b.length-c.length}),og());this.trackBy=function(b,c){return Acb(c.issueIds)};this.correctedDisplayedRows=new gh;this.correctedRows$=Yf(function(){return Uf([a.rows$,a.displayedRows.changes.pipe(wg(void 0))])}).pipe(kg(0),C(function(b){b=l(b).next().value;var c=new Map(a.displayedRows.map(function(d){return[Acb(d.row.issueIds),d]}));return b.map(function(d){return c.get(Acb(d.issueIds))}).filter(Qj)}));
this.dataColumns=[].concat(p(H0c));this.tableColumns=this.getRenderableColumns(this.dataColumns);this.columnItems=V0c(this,this.dataColumns)};Y(ZT,Z);ZT.\u0275dir=Z.\u0275dir;ZT.prototype.getMenuItems=function(a){var b=[],c;((c=this.options.menu)==null?0:c.includeGoToIssueItem)&&b.push(this.goToIssueItemFactory(a));b.push.apply(b,p(this.menuItemFactory(a)));return b};
var X0c=function(a,b){var c,d;return z(function(e){c=b.filter(function(f){return f.type==="CUSTOM_FIELD"});a.customFieldIds=rj(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?B(e,W0c(a,d),0):e.jumpTo(0)})},W0c=function(a,b){var c,d,e,f,h,k,q,v;return z(function(A){if(A.nextAddress==1)return B(A,Rf(a.allIssues$),2);c=A.yieldResult;d=l(b);e=d.next();for(f={};!e.done;f=
{id$jscomp$421:void 0},e=d.next()){f.id$jscomp$421=e.value;h=l(c);for(k=h.next();!k.done;k=h.next())if(q=k.value,v=q.customFields.find(function(E){return function(H){return H.customFieldId===E.id$jscomp$421}}(f))){a.customFieldNames.set(f.id$jscomp$421,v.name);break}a.customFieldNames.has(f.id$jscomp$421)||a.customFieldNames.set(f.id$jscomp$421,""+f.id$jscomp$421)}Lf(A)})};
ZT.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,p(a));this.options.showMenu&&b.push("menu");return b};
var V0c=function(a,b){var c=function(h,k){if(h.type==="CUSTOM_FIELD"){var q;var v=(q=a.customFieldNames.get(h.customFieldId))!=null?q:""+h.customFieldId}else{var A;v=(A=G0c.get(h.type))!=null?A:h.type}return{name:v,data:h,enabled:k}};b=b.map(function(h){return c(h,!0)});var d,e,f=(e=(d=a.options.optionalColumns)==null?void 0:d.map(function(h){return c(h,!1)}))!=null?e:[];d=[].concat(p(b),p(f));return rj(d,function(h){return h.name})};ZT.prototype.ngOnInit=function(){this.initialSort&&this.activeSort$.next(this.initialSort)};
ZT.prototype.ngAfterViewInit=function(){var a=this;this.correctedRows$.pipe(yg(this.destroyed$)).subscribe(function(b){a.correctedDisplayedRows.reset(b);kh(a.correctedDisplayedRows);var c;((c=a.focusManager)==null?0:c.activeItem)&&Mw(a.focusManager,a.focusManager.activeItem)});this.focusManager=Lw(new $Sc(this.correctedDisplayedRows,zcb));this.focusManager.change.pipe(yg(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 ncb=function(a,b,c){var d;(d=a.focusManager)==null||d.setActiveItem(c);var e;a.rowClick.emit((e=c.row)==null?void 0:e.issueIds);var f;d=(f=a.options.navigationOptions)==null?void 0:f.clickTargets;switch(d){case void 0:case "ALL":var h;a.navigateToIssue(b,(h=c.row)==null?void 0:h.issueIds[0]);break;case "NONE":break;default:pb(d)}};g=ZT.prototype;g.getDisplayName=function(a){var b;return(b=G0c.get(a))!=null?b:a};
g.navigateToIssue=function(a,b){if(b&&!a.defaultPrevented&&!(a.type==="mouseup"&&a instanceof MouseEvent&&a.button!==1)&&(this.issueNavigated.emit(b),a.target.tagName!=="A")){b=this.getIssueUrl(b);var c;((c=this.options.navigationOptions)==null?0:c.alwaysOpenNewTab)||kn(a)?this.domSafe.openInNewTab(b):a&&a.shiftKey?Jq(this.domSafe,b):Mr(this.router,b)}};g.onRowKeydown=function(a,b){var c;(c=this.focusManager)==null||c.onKeydown(b)};
g.onSortChange=function(a){var b=a.direction;b=b!==""?b==="asc"?"ASCENDING":"DESCENDING":void 0;a=b&&a.active?{column:a.active,direction:b}:void 0;this.activeSort$.next(a);this.sortChange.emit(a)};g.toggleAllRows=function(a){if(Pab(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 qcb=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})},Pab=function(a,b){b=b.filter(function(c){return a.isSingleIssue(0,c)}).length;return a.selection.selected.length===b};ZT.prototype.getIssueUrl=function(a){return this.issueUrlFactory?this.issueUrlFactory(a):Dq.viewIssue.makeHref(a)};
var Jab=function(a){var b,c;return z(function(d){if(d.nextAddress==1)return b=a.matDialog.open(TT,{width:"500px",autoFocus:!1,data:{columnItems:a.columnItems}}),B(d,Rf(LJ(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 B(d,X0c(a,a.dataColumns),3)}a.tableColumns=a.getRenderableColumns(a.dataColumns);a.columnsChange.emit(a.dataColumns);Lf(d)})};
ZT.prototype.getCustomFieldName=function(a){var b;return(b=this.customFieldNames.get(a))!=null?b:String(a)};ZT.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}))?pGa(a):"--"};
nd.Object.defineProperties(ZT.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({},U0c,a);this.rowLimit$.next(a.rowLimit);var c;X0c(this,[].concat(p(this.dataColumns),p((c=this.options.optionalColumns)!=null?c:[]))).then(function(){b.tableColumns=b.getRenderableColumns(b.dataColumns);b.columnItems=V0c(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;X0c(this,this.dataColumns).then(function(){b.tableColumns=b.getRenderableColumns(a);b.columnItems=V0c(b,a);b.cdr.detectChanges()})}}});ZT.\u0275fac=function(a){return new (a||ZT)};
ZT.\u0275cmp=y({type:ZT,selectors:[["b-issues-table"]],viewQuery:function(a,b){a&1&&hh(ZO,5);if(a&2){var c;lh(c=mh())&&(b.displayedRows=c)}},inputs:{issueIds:"issueIds",menuItemFactory:"menuItemFactory",initialSort:"initialSort",teamId:"teamId",showReadStatus:"showReadStatus",alerts:"alerts",enrichmentCategoriesFunction:"enrichmentCategoriesFunction",options:"options",issueUrlFactory:"issueUrlFactory",filters:"filters",tableColumnsInput:[0,"tableColumns","tableColumnsInput"],editableColumns:"editableColumns"},
outputs:{activeIssueChange:"activeIssueChange",rowClick:"rowClick",sortChange:"sortChange",columnsChange:"columnsChange",selectedIssuesChange:"selectedIssuesChange",issueNavigated:"issueNavigated"},standalone:!1,features:[Fh([NE]),Bg],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,rcb,89,36,"table",1),U(1,"async"),F(2,ycb,3,3,"div",2));if(a&2){var c;G((c=V(1,2,b.rows$))?0:-1,c);x(2);G(b.options.rowLimit?2:-1)}},dependencies:[sS,FC,EL,oG,Jx,gM,hM,cP,XP,KP,QP,MP,JP,SP,NP,PP,TP,VP,zG,xG,dO,TTc,bQ,aQ,LQ,XN,cO,MQ,fO,cQ,VO,dQ,eQ,XT,YT,VT,UT,wH,$P,ZO,cL,Tv],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 $T=function(){Z.call(this);var a=this;this.issueFullFridge=r(TE);this.eventsForIssueFridge=r(TD);this.snackBar=r(FJ);this.analytics=r(RE);this.hostElement=r(Te);this.appEvents=r(FB);this.issueDetailsBrain=r(MK);this.trackerHelpers=r(iK);this.enrichmentApi=r(dB);this.activeSession=r(Bs);this.scrolledOnScreenService=r(rH);this.similarIssueIds$=new sg(1);this.similarIssuesEnrichments$=new sg(1);this.enableSimilarIssuesEnrichments=this.activeSession.isInternalSession()&&OA(this.activeSession,"enableSimilarIssuesEnrichments");
this.enableSimilarIssuesEnrichmentFeedback=this.activeSession.isInternalSession();this.limit=3;this.issueIds$=Uf([this.similarIssueIds$,this.similarIssuesEnrichments$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return[].concat(p(c.map(function(d){var e,f;return(f=(e=d.similarIssues)==null?void 0:e.issueIds)!=null?f:[]}).flat()),p(b))}),C(function(b){return b.slice(0,a.limit)}),zg(function(b){a.mostRecentIssueIds=b}));this.mostRecentIssueIds=[];this.tableColumns$=this.similarIssuesEnrichments$.pipe(C(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$=Uf([this.similarIssueIds$,this.similarIssuesEnrichments$]).pipe(C(function(b){b=l(b);var c=b.next().value;var d=b.next().value;b=new Map;d=l(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=void 0,h=void 0,k=l((h=(f=e.similarIssues)==
null?void 0:f.issueIds)!=null?h:[]);for(f=k.next();!f.done;f=k.next()){f=f.value;h=void 0;var q=(h=b.get(f))!=null?h:[];q.push(e.category);b.set(f,q)}}c=l(c);for(d=c.next();!d.done;d=c.next())d=d.value,e=void 0,k=(e=b.get(d))!=null?e:[],k.push("Buganizer"),b.set(d,k);return b}));this.issueTableData$=Uf([this.issueIds$,this.issueIdToCategories$,this.tableColumns$]).pipe(C(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;return{issueIds:b,tableColumns:c,categoriesFunction:function(e){var f;
return(f=d.get(e))!=null?f:[]}}}));this.EnrichmentFeedbackType=xnc;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(){Y0c(a,b)}}]};this.component$=this.issueDetailsBrain.component$;this.gotErr=function(b){a.snackBar.open({message:Ro(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");Dcb(a,b,"ISSUE_HOVERCARD")}}))};Y($T,Z);$T.\u0275dir=Z.\u0275dir;
$T.prototype.ngOnInit=function(){var a=this;this.hostElement.nativeElement.addEventListener("click",this.captureAnyClick,!0);Uf([this.similarIssueIds$,this.similarIssuesEnrichments$,aCc(this.scrolledOnScreenService,this.hostElement.nativeElement,{durationOnScreenMs:3E3})]).pipe(mg(1)).subscribe(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c.next();b.length>0&&a.submitEnrichmentFeedback("Buganizer","VIEW");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.submitEnrichmentFeedback(d.category,"VIEW")}})};$T.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.hostElement.nativeElement.removeEventListener("click",this.captureAnyClick,!0)};
var Y0c=function(a,b){var c=String(a.issueIdInternal);c&&Zwc(a.issueFullFridge,b,c).then(function(){var d,e,f,h,k;return z(function(q){if(q.nextAddress==1)return Z0c(a,b),Z0c(a,c),a.snackBar.open({message:"Issue closed as duplicate",actionLabel:"Undo"}).afterDismissed().subscribe(function(v){v.dismissedByAction&&$0c(a,b,c)}),a.analytics.trackEvent("similar-issues-idp","closeAsDuplicate","fromSummaryWidget"),Dcb(a,b,"CLOSE_AS_DUPLICATE"),B(q,Rf(a.component$),2);d=q.yieldResult;f=(e=d)==null?void 0:
e.componentPathInfo;h=rs(a.trackerHelpers,f);k="";h&&h.componentPathName&&(k=h.componentPathName[0].toString().trim());a.analytics.trackEvent("similar-issues-idp-by-component","closeAsDuplicate","fromSummaryWidget,"+k);Lf(q)})}).catch(a.gotErr)},$0c=function(a,b,c){a.issueFullFridge.removeDuplicate(b,c).then(function(){Z0c(a,b);Z0c(a,c);a.snackBar.open({message:"Un-marked issue as duplicate"})}).catch(a.gotErr);a.analytics.trackEvent("similar-issues-idp","undoCloseAsDuplicate","fromSummaryWidget")},
Z0c=function(a,b){a.issueFullFridge.poke(b);a.eventsForIssueFridge.poke(b)};$T.prototype.captureAnyClick=function(){var a;(a=this.analytics)==null||a.trackEvent("similar-issues-idp","any-click")};var Dcb=function(a,b,c){var d,e,f,h,k,q;return z(function(v){if(v.nextAddress==1)return B(v,Rf(a.issueIdToCategories$),2);d=v.yieldResult;f=(e=d.get(b))!=null?e:[];h=l(f);for(k=h.next();!k.done;k=h.next())q=k.value,a.submitEnrichmentFeedback(q,c);Lf(v)})};
$T.prototype.submitEnrichmentFeedback=function(a,b){this.enableSimilarIssuesEnrichmentFeedback&&this.enrichmentApi.submitEnrichmentFeedback({issueId:String(this.issueIdInternal),category:a,feedbackType:b}).subscribe()};
nd.Object.defineProperties($T.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("He");}},similarIssuesEnrichments:{configurable:!0,enumerable:!0,set:function(a){this.similarIssuesEnrichments$.next(a)},get:function(){throw Error("Ie");}}});$T.\u0275fac=function(a){return new (a||$T)};
$T.\u0275cmp=y({type:$T,selectors:[["suggested-similar-issues"]],inputs:{issueId:"issueId",similarIssueIds:"similarIssueIds",similarIssuesEnrichments:"similarIssuesEnrichments",limit:"limit"},standalone:!1,features:[Bg],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,Ecb,1,5,"b-issues-table",0),U(1,
"async"),Mg(2,Fcb,2,0,"div"));if(a&2){var c;G((c=V(1,1,b.issueTableData$))?0:2,c)}},dependencies:[ZT,yN,Tv],encapsulation:2});var aU={},a1c=(aU.assignee="single_value",aU.attachments="collection",aU.blockedByIssueId="collection",aU.blockingIssueId="collection",aU.ccs="collection",aU.changelists="collection",aU.collaborators="collection",aU.comment="single_value",aU.componentId="single_value",aU.customField="any_value",aU.deletionReason="single_value",aU.duplicateOfIssueId="single_value",aU.effortEstimate="single_value",aU.foundInVersion="collection",aU.gerritChanges="collection",aU.hotlists="collection",aU.inProd="single_value",
aU.isArchived="single_value",aU.isDeleted="single_value",aU.parentId="collection",aU.priority="single_value",aU.readState="single_value",aU.reporter="single_value",aU.severity="single_value",aU.sloEndTime="single_value",aU.sloSnoozeType="single_value",aU.sloStartTime="single_value",aU.staffing="single_value",aU.status="single_value",aU.targetedToVersion="collection",aU.title="single_value",aU.type="single_value",aU.verifiedInVersion="collection",aU.verifier="single_value",aU),Scb=new Set(Object.entries(a1c).filter(function(a){a=
l(a);a.next();return a.next().value==="collection"}).map(function(a){return l(a).next().value})),Rcb=new Set("componentId priority reporter severity status title type".split(" "));var bU={},Jcb=(bU.TYPE_UNSPECIFIED=new Set([]),bU.ISSUE_DEDUPLICATION=new Set([]),bU.HOTLIST=new Set([]),bU.ISSUE_DEDUPLICATION_BATCH=new Set([]),bU.NEEDS_INFO=new Set(["comment"]),bU.COMPONENT_ROUTING=new Set("componentId priority severity type assignee hotlists".split(" ")),bU),cU={},Kcb=(cU.TYPE_UNSPECIFIED=new Set([]),cU.ISSUE_DEDUPLICATION=new Set([]),cU.HOTLIST=new Set([]),cU.ISSUE_DEDUPLICATION_BATCH=new Set(["duplicateOfIssueId"]),cU.NEEDS_INFO=new Set(["comment"]),cU.COMPONENT_ROUTING=new Set("componentId priority severity type assignee hotlists ccs".split(" ")),
cU);var b1c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(b1c,n);g=b1c.prototype;g.getIssueId=function(){return xk(this,1)};g.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};g.getIssueId_asString=function(){return Bk(this,1)};g.setIssueId=function(a){return Xl(this,1,a)};g.getFeature=function(){return pk(this,2)};g.setFeature=function(a){return Jj(this,2,a)};g.getEventType=function(){return pk(this,3)};g.setEventType=function(a){return Jj(this,3,a)};
g.getEnrichmentCategory=function(){return Rc(this,5)};var c1c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(c1c,n);c1c.prototype.getIt=function(){return W(this,b1c,1)};c1c.prototype.setIt=function(a){return X(this,b1c,1,a)};var dU=function(){this.executor=r(PA);this.activeSession=r(Bs)};dU.\u0275fac=function(a){return new (a||dU)};dU.\u0275prov=Cd({token:dU,factory:dU.\u0275fac,providedIn:"root"});var d1c=new Set(["NEEDS_INFO","COMPONENT_ROUTING"]),eU=function(){this.api=r(YE);this.butterBar=r(GJ);this.editIssueService=r(RK);this.issueUserEventsService=r(dU);this.analytics=r(RE);this.errorHandler=r(aK);this.issueFridge=r(iE);this.issueFullFridge=r(TE);this.editIssueComponentService=r(nN);this.issueCommentDialogsService=r(ZR);this.recommendationTriggerService=r(RT);this.issueApi=r(SD);this.activeSession=r(Bs);this.contextSensitiveRegistry=r(LK)},h1c=function(a,b){var c=b.recommendation;var d=
b.originalActions;var e=b.acceptedActions;var f,h,k,q,v;return z(function(A){switch(A.nextAddress){case 1:return d=d.filter(Ocb),e=e.filter(Ocb),Gf(A,2,3),c.type==="ISSUE_DEDUPLICATION_BATCH"?B(A,e1c(a,e),6):B(A,f1c(a,e),6);case 6:return B(A,g1c(a,c,d,e),9);case 9:a.recommendationTriggerService.hiddenRecommendationIds.add(c.name);case 3:Hf(A);f=sj(e.map(function(E){return E.issueId}));h=l(f);for(k=h.next();!k.done;k=h.next())q=k.value,a.editIssueService.clear(q);Jf(A,0);break;case 2:v=Kf(A),cK(a.errorHandler,
v),A.jumpTo(3)}})},k1c=function(a,b){var c,d,e,f;return z(function(h){if(h.nextAddress==1)return a.analytics.trackEvent("editIssue","reject",Tcb(b)),b.type==="ISSUE_DEDUPLICATION_BATCH"?(c=new Set,c.add(b.name),(d=b.content)==null||(e=d.issueDeduplicationBatch)==null||e.entries.forEach(function(k){c.add(k.recommendation)}),f=Array.from(c,function(k){return{parent:k,userEngagement:{type:"REJECTED"}}}),B(h,Rf(a.api.createUserEngagements(f)),3)):B(h,i1c(a,"REJECTED",b),3);if(h.nextAddress!=6)return B(h,
j1c(a,b,"EVENT_TYPE_REJECT"),6);a.recommendationTriggerService.hiddenRecommendationIds.add(b.name);Lf(h)})},e1c=function(a,b){var c,d;return z(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]};Kq(a.butterBar,"Marking "+b.length+" issues as duplicates...");return B(e,a.issueApi.issueBulkEdit(d).then(function(f){f.errors&&f.errors.length?(f=Bwa(f.errors),a.butterBar.showWarning("Failed to mark issue(s) as duplicates: "+
f+".")):Kq(a.butterBar,"Marked "+b.length+" issue(s) as duplicates.");Rf(a.contextSensitiveRegistry.getIssueId()).then(function(h){h&&a.issueFridge.poke(h)})}),0)})},f1c=function(a,b){var c,d,e,f,h,k,q,v,A,E,H,L,O,S,aa,ka,na,za,Na,Pa,hb,ua,Ha,Ia;return z(function(tb){switch(tb.nextAddress){case 1:if(!b.length)return tb.return();c=sj(b.map(function(rb){return rb.issueId}));return B(tb,Promise.all(c.map(function(rb){return Rf(a.issueFridge.watch(rb))})),2);case 2:d=tb.yieldResult.filter(Qj);if(d.length!==
c.length)throw Error("Ke");e=new Map;f=l(d);for(h=f.next();!h.done;h=f.next())k=h.value,q=a.editIssueService.editableIssue(k.issueId),q.setData(k),e.set(k.issueId,q);v=b.filter(function(rb){return rb.fieldName!=="componentId"&&rb.fieldName!=="comment"&&rb.fieldName!=="hotlists"});A=l(v);for(E=A.next();!E.done;E=A.next())H=E.value,L=e.get(H.issueId),WJc(L,H);return B(tb,Promise.all(Array.from(e.values(),function(rb){return SK(a.editIssueService,rb)})),3);case 3:O=b.filter(function(rb){return rb.fieldName===
"comment"}),S=l(O),aa=S.next();case 4:if(aa.done){Pa=b.filter(function(rb){return rb.fieldName==="hotlists"});if(!(Pa.length>0)){tb.jumpTo(8);break}return B(tb,l1c(a,e.get(Pa[0].issueId),Pa),8)}ka=aa.value;if(!ka.value){tb.jumpTo(5);break}na=a.editIssueService.issueCommentDraft(ka.issueId).comment();na.value=ka.value;za=void 0;na.formattingMode=(za=ka.formattingMode)!=null?za:"PLAIN";Na=e.get(ka.issueId);return B(tb,a.issueCommentDialogsService.submitCommentBox(String(Na.componentId),Na.issueId,na),
5);case 5:aa=S.next();tb.jumpTo(4);break;case 8:hb=b.filter(function(rb){return rb.fieldName==="componentId"}),ua=l(hb),Ha=ua.next();case 10:if(Ha.done){tb.jumpTo(0);break}Ia=Ha.value;return B(tb,a.editIssueComponentService.updateComponent(Ia.issueId,Ia.value||null),11);case 11:Ha=ua.next(),tb.jumpTo(10)}})},m1c=function(a,b){z(function(c){a.analytics.trackEvent("editIssue","view",Tcb(b)+"-initialization");Lf(c)})},n1c=function(a,b){z(function(c){return c.nextAddress==1?(a.analytics.trackEvent("editIssue",
"view",Tcb(b)),B(c,i1c(a,"VIEWED",b),2)):B(c,j1c(a,b,"EVENT_TYPE_VIEW"),0)})},g1c=function(a,b,c,d){var e,f,h,k,q,v,A;return z(function(E){return E.nextAddress==1?(a.analytics.trackEvent("editIssue","accept",Tcb(b)),e=gj(c,d),f=void 0,d1c.has(b.type)&&(f=Qcb(d)),b.type==="ISSUE_DEDUPLICATION_BATCH"?(h=new Set,h.add(b.name),k=new Set(d.map(function(H){return H.issueId})),(q=b.content)==null||(v=q.issueDeduplicationBatch)==null||v.entries.filter(function(H){return k.has(H.issue.issueId)}).forEach(function(H){h.add(H.recommendation)}),
A=Array.from(h,function(H){return{parent:H,userEngagement:{type:"ACCEPTED"}}}),B(E,Rf(a.api.createUserEngagements(A)),3)):B(E,i1c(a,e?"ACCEPTED":"PARTIALLY_ACCEPTED",b,f),3)):B(E,j1c(a,b,"EVENT_TYPE_ACCEPT"),0)})},i1c=function(a,b,c,d){var e,f;return z(function(h){if(h.nextAddress==1)return Gf(h,2),e=c.name,B(h,Rf(a.api.createUserEngagements([{parent:e,userEngagement:{type:b,issueModification:d}}])),4);if(h.nextAddress!=2)return uu(h,0);f=Kf(h);cK(a.errorHandler,f);Lf(h)})},j1c=function(a,b,c){var d,
e;return z(function(f){if(f.nextAddress==1){d=Gcb(b.resource);if(!d||a.activeSession.isExternalSession())return f.return();Gf(f,2);if(b.type==="ISSUE_DEDUPLICATION"&&OA(a.activeSession,"enableDuplicateIssuesEventLogging")){var h=a.issueUserEventsService;var k=d,q=b.source;if(h.activeSession.isExternalSession())h=Nf(void 0);else{var v=new c1c,A=v.setIt;k=(new b1c).setIssueId(k).setFeature(Dnc.FEATURE_DUPLICATE_ISSUES).setEventType(znc[c]);q=Hj(k,4,q);q=Hj(q,5);v=A.call(v,q);h=h.executor.post({url:"action/issues/log_event",
body:v,responseConstructor:null})}f=B(f,Rf(h),4)}else f=f.jumpTo(4);return f}if(f.nextAddress!=2)return uu(f,0);e=Kf(f);cK(a.errorHandler,e);Lf(f)})},l1c=function(a,b,c){var d,e,f,h,k,q,v,A,E,H,L,O,S;return z(function(aa){f=new Set((e=(d=b.hotlistId)==null?void 0:d.map(String))!=null?e:[]);h=c.filter(function(ka){return ka.actionType==="ADD"}).flatMap(function(ka){var na,za;return(za=(na=ka.value)==null?void 0:na.split(","))!=null?za:[]}).filter(Boolean);k=c.filter(function(ka){return ka.actionType===
"REMOVE"}).flatMap(function(ka){var na,za;return(za=(na=ka.value)==null?void 0:na.split(","))!=null?za:[]}).filter(Boolean);q=new Set;v=new Set;A=l(h);for(E=A.next();!E.done;E=A.next())H=E.value,f.has(H)||q.add(H);L=l(k);for(O=L.next();!O.done;O=L.next())S=O.value,f.has(S)&&v.add(S);return q.size>0||v.size>0?B(aa,a.issueFullFridge.updateHotlists(b.issueId,[].concat(p(q)),[].concat(p(v))),0):aa.jumpTo(0)})};eU.\u0275fac=function(a){return new (a||eU)};
eU.\u0275prov=Cd({token:eU,factory:eU.\u0275fac,providedIn:"root"});var o1c=function(a,b){return b.issueId},p1c=new Set(["duplicateOfIssueId"]),fU=function(){var a=this;this.clipboard=r(aO);this.eventsForIssueFridge=r(TD);this.issueFridge=r(iE);this.paths=r(oN);this.snackBar=r(DJ);this.excludedActions=new Set;this.canonicalIssueId$=new Kn("");this.issue$=function(b){return a.issueFridge.watch(b)};this.hiddenActionCount=0;this.showExpansionOption=!1;this.draftActions=[];this.actionsToAccept=new LE;this.canonicalIssue$=this.canonicalIssueId$.pipe(xg(function(b){return a.issue$(b)}));
this.canonicalEvents$=this.canonicalIssue$.pipe(xg(function(b){return(b==null?0:b.issueId)?a.eventsForIssueFridge.watch(b.issueId):Nf(void 0)}),C(function(b){var c;return(c=b==null?void 0:b.events)!=null?c:[]}));this.canonicalComments$=this.canonicalEvents$.pipe(C(function(b){return b.filter(ul)}));this.canonicalDuplicates$=this.canonicalIssue$.pipe(C(function(b){var c;return(c=b==null?void 0:b.snapshot[0].duplicateIssueId)!=null?c:[]}))};
fU.prototype.copyIssueId=function(a){this.clipboard.copy(a);this.snackBar.open("Issue ID copied","",{duration:2E3})};fU.prototype.getIssueLink=function(a){return Fq(a)};
var edb=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)}),q1c(a),a.updateActionsToAccept(),r1c(a))}},ddb=function(a,b){var c,d,e,f;return z(function(h){if(h.nextAddress==1)return B(h,Rf(a.canonicalIssueId$),2);c=h.yieldResult;if(!c)return h.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();Lf(h)})},q1c=function(a){a=l(a.draftActions);for(var b=a.next();!b.done;b=a.next())b.value.isDirty=!0},s1c=function(a,b,c){b=oj(b,function(h){return h.actionKey});var d=[];c=c.filter(function(h){return!a.excludedActions.has(h.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 hj(d)};
fU.prototype.updateActionsToAccept=function(){var a=this;this.actionsToAccept.emit(this.draftActions.filter(function(b){return!a.excludedActions.has(b.actionKey)}))};var r1c=function(a){a.draftActions.length<=6?a.showExpansionOption=!1:a.hiddenActionCount=a.draftActions.length-5};
nd.Object.defineProperties(fU.prototype,{actions:{configurable:!0,enumerable:!0,set:function(a){var b=this,c=this.draftActions.length===0;this.draftActions=s1c(this,this.draftActions,a).filter(function(f){return p1c.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()}}});fU.\u0275fac=function(a){return new (a||fU)};
fU.\u0275cmp=y({type:fU,selectors:[["b-dedupe-actions-component"]],inputs:{currentIssue:"currentIssue",actions:"actions"},outputs:{actionsToAccept:"actionsToAccept"},standalone:!1,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,"curved-arrow"],[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"],["mat-button","","color","primary",1,"more-issues",3,"click"]],template:function(a,b){a&1&&(J(0,"div",4),F(1,Zcb,2,3),U(2,"async"),Pg(3,gdb,2,
3,null,null,o1c),F(5,hdb,4,2,"div"),K());if(a&2){var c;x();G((c=V(2,2,b.canonicalIssueId$))?1:-1,c);x(2);a=b.draftActions;Qg(b.showExpansionOption?a.slice(0,5):a);x(2);G(b.showExpansionOption?5:-1)}},dependencies:[FC,oG,Jx,Kx,zG,xG,DI,EI,JI,FI,PO,cO,Tv],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 gU=function(){};var t1c=["popOverContent"],hU=function(a,b){this.overlay=a;this.viewContainerRef=b;this.newlineWithEnterKey=this.displayUnder=!1;this.hasBackdrop=!0;this.fitToViewport=!1;this.minWidth=null;this.saveDisabled=Mh.apply(null,[!1].concat(p([])));this.closedWithAction=new nq;this.isOpen=!1;this.destroyed$=new sg(1);this.backdropClickSubscription=yf.EMPTY};hU.prototype.ngOnInit=function(){};hU.prototype.ngOnDestroy=function(){this.close();this.destroyed$.next();this.destroyed$.complete()};
hU.prototype.open=function(){var a=this;this.isOpen||(this.overlayRef=this.createOverlay(),this.attach(),this.isOpen=!0,this.backdropClickSubscription=this.overlayRef.backdropClick().pipe(yg(this.destroyed$)).subscribe(function(){kdb(a)}))};hU.prototype.close=function(){this.isOpen&&this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=void 0,this.isOpen=!1,this.backdropClickSubscription.unsubscribe())};
var jdb=function(a){a.closedWithAction.emit(0);a.close()},kdb=function(a){a.closedWithAction.emit(1);a.close()};g=hU.prototype;g.processKeydown=function(a){switch(a.key){case "Escape":kdb(this);a.stopPropagation();break;case "Enter":if(this.newlineWithEnterKey){if(a.metaKey||a.ctrlKey)jdb(this),a.stopPropagation(),a.preventDefault()}else a.shiftKey||(jdb(this),a.stopPropagation(),a.preventDefault())}};
g.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy(),c;a=this.overlay.create({positionStrategy:a,scrollStrategy:b,hasBackdrop:this.hasBackdrop,backdropClass:"onedev-pop-over-edit-panel-backdrop",panelClass:"onedev-pop-over-edit-panel",width:8+Math.max((c=this.minWidth)!=null?c:0,this.anchor.offsetWidth)});a.overlayElement.setAttribute("role","dialog");return a};
g.attach=function(){var a=new gx(this.contentTemplateRef,this.viewContainerRef),b;(b=this.overlayRef)==null||b.attach(a);var c;(c=this.overlayRef)==null||c.updatePosition()};g.getPositionStrategy=function(){var a=wjc($w(dx(this.overlay.position(),this.anchor),this.fitToViewport),this.fitToViewport);a._offsetX=-4;a._offsetY=this.displayUnder?this.anchor.offsetHeight:-4;return Yw(a,u1c)};g.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
hU.\u0275fac=function(a){return new (a||hU)(of(lx),of(fh))};
hU.\u0275cmp=y({type:hU,selectors:[["onedev-pop-over-edit-panel"]],viewQuery:function(a,b){a&1&&hh(t1c,7);if(a&2){var c;lh(c=mh())&&(b.contentTemplateRef=c.first)}},inputs:{anchor:"anchor",editorTemplate:"editorTemplate",displayUnder:"displayUnder",newlineWithEnterKey:"newlineWithEnterKey",hasBackdrop:"hasBackdrop",fitToViewport:"fitToViewport",minWidth:"minWidth",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","","color","primary",1,"save",3,"click","disabled"],["mat-button","","color","primary",1,"cancel",3,"click"]],template:function(a){a&1&&D(0,ldb,8,3,"ng-template",null,0,Lh)},dependencies:[Sv,sw,qJ],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 u1c=[{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 v1c=["popOver"],w1c=["inputBox"],iU=function(a){this.defaultAutocompleteConfig=a;this.displayUnder=!1;this.initialInputValue="";this.openPopOverOnInit=!1;this.closed=new nq;this.inputValue="";this.sessionOptions=x1c;this.mergedAutocompleteConfig=Object.assign({},y1c,this.defaultAutocompleteConfig)};g=iU.prototype;g.ngAfterViewInit=function(){this.openPopOverOnInit&&this.openPopOver(this.initialInputValue)};
g.ngOnChanges=function(a){a.autocompleteConfig&&(this.mergedAutocompleteConfig=Object.assign({},y1c,this.defaultAutocompleteConfig,this.autocompleteConfig))};g.selectAutocomplete=function(a){a.length>0&&(this.inputValue=a[0].result().getPrimaryTarget().getValue())};g.openPopOver=function(a){var b=this;this.inputValue=a;this.popOver.open();setTimeout(function(){var c;(c=b.inputBox)==null||c.nativeElement.select()})};
g.onPopOverClose=function(a){this.closed.emit(a===0?this.inputValue:void 0);this.inputValue=""};iU.\u0275fac=function(a){return new (a||iU)(of(z1c,8))};
iU.\u0275cmp=y({type:iU,selectors:[["onedev-user-picker-panel","anchor",""]],viewQuery:function(a,b){a&1&&(hh(v1c,7),hh(w1c,5));if(a&2){var c;lh(c=mh())&&(b.popOver=c.first);lh(c=mh())&&(b.inputBox=c.first)}},inputs:{anchor:"anchor",autocompleteConfig:"autocompleteConfig",displayUnder:"displayUnder",initialInputValue:"initialInputValue",openPopOverOnInit:"openPopOverOnInit"},outputs:{closed:"closed"},standalone:!1,features:[ov],attrs:["anchor",""],decls:4,vars:3,consts:[["popOver","onedevPopOverEditPanel"],
["autocompleteTemplate",""],["inputBox",""],[3,"closedWithAction","anchor","displayUnder","editorTemplate"],["peoplekitAutocomplete","",3,"peoplekitAutocompleteSelectionChange","ngModelChange","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions","ngModel"]],template:function(a,b){if(a&1){var c=t();J(0,"onedev-pop-over-edit-panel",3,0);N("closedWithAction",function(d){u(c);return w(b.onPopOverClose(d))});K();D(2,mdb,2,3,"ng-template",null,1,Lh)}a&2&&(a=Q(3),I("anchor",b.anchor)("displayUnder",
b.displayUnder)("editorTemplate",a))},dependencies:[Ui,dy,ky,hU,xQ],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 z1c=new le("user-picker-autocomplete-config"),y1c={showSuggestions:!0,moveAutocompleteAboveAnchorIfOffscreen:!0,density:2},x1c=(new et).setFilter(lYa(hYa(1),new kSc(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 pdb=function(a){return{$implicit:a}},A1c=0,jU=function(){this.val="";this.disabled=!1;this.emailChange=new nq;this.displayUnder=!1;this.displayValueOverride="";this.popOverOpen=this.active=!1;this.contentId="onedev-user-picker-"+A1c;this.onChange=function(){};this.onTouched=function(){};A1c++};Y(jU,gU);g=jU.prototype;g.openPopOver=function(){this.disabled||(this.onTouched(),this.popOver.openPopOver(this.email),this.popOverOpen=!0)};
g.onPopOverClose=function(a){a!=null&&a!==this.email&&(this.onChange(a),this.emailChange.emit(a),this.email=a);this.popOverOpen=!1};g.contentAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.contentId};g.writeValue=function(a){a!=null&&(this.val=a)};g.isActive=function(){return this.active||this.popOverOpen};g.registerOnChange=function(a){this.onChange=a};g.registerOnTouched=function(a){this.onTouched=a};g.setDisabledState=function(a){this.disabled=a};
nd.Object.defineProperties(jU.prototype,{email:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});jU.\u0275fac=function(a){return new (a||jU)};
jU.\u0275cmp=y({type:jU,selectors:[["onedev-user-picker"]],viewQuery:function(a,b){a&1&&hh(iU,7);if(a&2){var c;lh(c=mh())&&(b.popOver=c.first)}},inputs:{email:"email",disabled:"disabled",labelledById:"labelledById",selectedUserTemplate:"selectedUserTemplate",autocompleteConfig:"autocompleteConfig",anchor:"anchor",displayUnder:"displayUnder",displayValueOverride:"displayValueOverride"},outputs:{emailChange:"emailChange"},exportAs:["onedevUserPicker"],standalone:!1,features:[Fh([{provide:gU,useExisting:$d(function(){return jU}),
multi:!0},{provide:Yx,useExisting:$d(function(){return jU}),multi:!0}]),Bg],decls:7,vars:10,consts:[["button",""],[1,"unstyled-button",3,"focus","blur","click"],["class","edit-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",4,"ngIf"],[3,"closed","displayUnder","anchor","autocompleteConfig"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",1,"edit-icon"],["d","M20.71,5.63l-2.34-2.34C18.18,3.1,17.92,3,17.67,3c-0.26,0-0.51,0.1-0.71,0.29L3,17.25L3,21h3.75L20.71,7.04 C21.1,6.65,21.1,6.02,20.71,5.63z M5.92,19H5l0-0.92L15.54,7.53l0.92,0.92L5.92,19z"]],
template:function(a,b){if(a&1){var c=t();J(0,"button",1,0);N("focus",function(){u(c);return w(b.active=!0)})("blur",function(){u(c);return w(b.active=!1)})("click",function(){u(c);return w(b.openPopOver())});F(2,ndb,1,1)(3,qdb,1,4,"ng-container")(4,rdb,1,1);D(5,sdb,2,0,"svg",2);K();J(6,"onedev-user-picker-panel",3);N("closed",function(d){u(c);return w(b.onPopOverClose(d))});K()}a&2&&(a=Q(1),uh("active",b.isActive()),Lg("tabindex",b.disabled?-1:null)("id",b.contentId)("aria-labelledby",b.contentAriaLabelledBy()),
x(2),G(b.displayValueOverride?2:b.selectedUserTemplate?3:4),x(3),I("ngIf",!b.disabled),x(),I("displayUnder",b.displayUnder)("anchor",b.anchor||a)("autocompleteConfig",b.autocompleteConfig))},dependencies:[Rv,Sv,iU],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 B1c=["picker"],kU=function(){this.autocompleteConfigService=r(GO);this.disabled=!1;this.emailChange=new LE;this.userEmail=this.displayValueOverride=""};Y(kU,gU);kU.prototype.openPopOver=function(){this.picker.openPopOver()};kU.prototype.isActive=function(){return this.picker.isActive()};nd.Object.defineProperties(kU.prototype,{user:{configurable:!0,enumerable:!0,set:function(a){this.userJs=a;this.userEmail=zj(a)||""},get:function(){return this.userJs}}});
kU.\u0275fac=function(){var a;return function(b){return(a||(a=Re(kU)))(b||kU)}}();
kU.\u0275cmp=y({type:kU,selectors:[["b-user-picker"]],viewQuery:function(a,b){a&1&&hh(B1c,7);if(a&2){var c;lh(c=mh())&&(b.picker=c.first)}},inputs:{user:"user",teamId:"teamId",disabled:"disabled",labelledById:"labelledById",anchor:"anchor",displayValueOverride:"displayValueOverride"},outputs:{emailChange:"emailChange"},exportAs:["bUserPicker"],standalone:!1,features:[Fh([{provide:gU,useExisting:$d(function(){return kU}),multi:!0}]),Bg],decls:4,vars:8,consts:[["picker","onedevUserPicker"],["userChip",
""],[3,"emailChange","anchor","displayUnder","email","disabled","labelledById","selectedUserTemplate","autocompleteConfig","displayValueOverride"],[3,"user","email","teamId","enableSmallChip"]],template:function(a,b){if(a&1){var c=t();J(0,"onedev-user-picker",2,0);N("emailChange",function(d){u(c);b.userJs=Dj(d);b.userEmail=d;b.emailChange.emit(d);return w()});K();D(2,udb,1,1,"ng-template",null,1,Lh)}a&2&&(a=Q(3),I("anchor",b.anchor)("displayUnder",!0)("email",b.userEmail)("disabled",b.disabled)("labelledById",
b.labelledById)("selectedUserTemplate",a)("autocompleteConfig",tYa(b.autocompleteConfigService))("displayValueOverride",b.displayValueOverride))},dependencies:[fL,jU],styles:["[_nghost-%COMP%]     .user-chip-small, [_nghost-%COMP%]     .internal-non-team-member-chip{width:100%}  .peoplekit-autocomplete-anchor{z-index:1001}  .pop-over-edit-panel-content{min-width:180px}/*# sourceMappingURL=user_picker.css.map */"]});var Adb=function(a){return{group:a,fieldName:"Assignee"}},Fdb=function(a){return{group:a,fieldName:"Priority"}},Jdb=function(a){return{group:a,fieldName:"Comment"}},Ndb=function(a){return{group:a,fieldName:"Component"}},Vdb=function(a){return{group:a,fieldName:"Hotlist"}},deb=function(a){return{group:a,fieldName:"CCs"}},Xdb=function(a,b){return b.actionKey},C1c=new Set("assignee comment componentId hotlists priority ccs".split(" ")),lU=function(){var a=this;this.issueFridge=r(iE);this.constants=r(dK);
this.editCommentDialogService=r(WR);this.issuePermissionService=r(OK);this.hotlistFridge=r(cD);this.hotlistPickerService=r(jS);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 LE;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.excludedActions=new Set;this.IssueFieldName=xoc;this.IssuePriority=Tnc;this.FormattingMode=Uj;this.ActionType=pnc;this.FieldType=CL;this.emailToUser=Dj;this.userToString=zj;this.getTeamId=WOa;this.getComponentId=XOa;this.getReporter=VOa;this.getAssignee=UOa;this.getPriority=TOa};
lU.prototype.ngOnChanges=function(){this.draftActions=leb(this.draftActions,this.actions).filter(function(a){return C1c.has(a.fieldName)});this.updateActionsToAccept()};var D1c=function(a){return Msa(a,function(b){return b.fieldName})},Cdb=function(a,b,c){E1c(a,b,function(d){d.value=String(c)})};lU.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 aeb=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},E1c=function(a,b,c){b&&(a.draftActions=a.draftActions.map(function(d){if(d.actionKey!==b.actionKey)return d;d=hj(d);c(d);d.isDirty=!0;return d}),a.updateActionsToAccept())},Idb=function(a,b,c){var d,e,f,h,k,q,v;return z(function(A){if(A.nextAddress==1)return e=(d=a.issuePermissionService.audience())!=null?d:"EXTERNAL",k=(h=(f=c)==null?void 0:f.snapshot[0].componentId)!=
null?h:void 0,B(A,a.editCommentDialogService.show({issueId:b.issueId,audience:e,componentId:k,text:b.value,formattingMode:(q=b.formattingMode)!=null?q:"PLAIN",showPiiWarning:!1,dialogTitle:"Edit draft comment"}),2);(v=A.yieldResult)&&E1c(a,b,function(E){E.value=v.text;E.formattingMode=v.formattingMode});Lf(A)})};
lU.prototype.openHotlistPicker=function(a){var b=this,c,d,e,f,h,k,q,v,A,E,H,L,O,S,aa,ka,na,za,Na,Pa,hb,ua,Ha,Ia,tb,rb,dc;return z(function(bc){if(bc.nextAddress==1)return c=a[0].issueId,B(bc,Rf(b.issue$(c)),2);if(bc.nextAddress!=3)return d=bc.yieldResult,k=(h=(e=d)==null?void 0:(f=e.snapshot[0].hotlistId)==null?void 0:f.map(String))!=null?h:[],q=a.find(function(Ac){return Ac.actionType==="ADD"}),v=a.find(function(Ac){return Ac.actionType==="REMOVE"}),L=new Set((H=(A=q)==null?void 0:(E=A.value)==null?
void 0:E.split(","))!=null?H:[]),ka=new Set((aa=(O=v)==null?void 0:(S=O.value)==null?void 0:S.split(","))!=null?aa:[]),na=[].concat(p(k),p(L)).filter(function(Ac){return!ka.has(Ac)}),B(bc,bYc(b.hotlistPickerService,a[0].issueId,na.map(Number),!1),3);za=bc.yieldResult;if(!za)return bc.return();Na=za;Pa=Na.addedIds;hb=Na.removedIds;ua=l(hb);for(Ha=ua.next();!Ha.done;Ha=ua.next())Ia=Ha.value,L.delete(Ia),ka.add(Ia);tb=l(Pa);for(rb=tb.next();!rb.done;rb=tb.next())dc=rb.value,L.add(dc),ka.delete(dc);E1c(b,
q,function(Ac){Ac.value=[].concat(p(L)).join(",")});E1c(b,v,function(Ac){Ac.value=[].concat(p(ka)).join(",")});Lf(bc)})};lU.prototype.updateActionsToAccept=function(){var a=this;this.actionsToAccept.emit(this.draftActions.filter(function(b){return!a.excludedActions.has(b.actionKey)}).filter(Ocb))};lU.\u0275fac=function(a){return new (a||lU)};
lU.\u0275cmp=y({type:lU,selectors:[["b-issue-actions-component"]],inputs:{actions:"actions"},outputs:{actionsToAccept:"actionsToAccept"},standalone:!1,features:[ov],decls:5,vars:0,consts:[["excludeButton",""],["assigneePicker",""],["priorityPicker",""],["componentPicker",""],[1,"flex-kids-y","gap-s"],[1,"row","flex-kids-x","gap-xs","align-items-center",3,"excluded"],[1,"row","flex-kids-x","gap-xs","align-items-center"],[1,"field-name"],[1,"field-value","gap-xs","flex-kids-x","align-items-center"],
[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"],[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",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"],["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&&(J(0,"div",4),Pg(1,geb,5,
7,"div",5,vdb,!0),K(),D(3,keb,2,2,"ng-template",null,0,Lh));a&2&&(x(),Qg(D1c(b.draftActions)))},dependencies:[Sv,FC,yO,aS,BL,oG,Kx,zG,xG,IT,kU,Tv],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}.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 meb=function(){return[]},F1c=new Map(["componentId","hotlists","priority","assignee","comment"].map(function(a,b){return[a,b]})),G1c=gk(function(a){var b;return(b=F1c.get(a.fieldName))!=null?b:Infinity},hk,"ASCENDING"),mU=function(){Z.apply(this,arguments);var a=this;this.activeSession=r(Bs);this.recommendationsService=r(eU);this.documentationLinks=r(JJ);this.domSafe=r(UK);this.checkBeforeExit=r(UR);this.issueFridge=r(iE);this.scrolledOnScreenService=r(rH);this.cdr=r(Hv);this.elementRef=r(Te);
this.RecommendationType=noc;this.recommendation$=new sg(1);this.issueId$=this.recommendation$.pipe(C(function(b){return Gcb(b==null?void 0:b.resource)}));this.currentIssue$=this.issueId$.pipe(xg(function(b){return b?a.issueFridge.watch(b):Nf(void 0)}));this.actions=[];this.actions$=Uf([this.recommendation$,this.currentIssue$]).pipe(C(function(b){var c=l(b);b=c.next().value;var d=c.next().value;d&&b.type==="ISSUE_DEDUPLICATION_BATCH"&&(b=hj(b),b.content.issueDeduplicationBatch.recommendedCanonicalIssue||
(b.content.issueDeduplicationBatch.recommendedCanonicalIssue=d));b=hj(b);if(d){var e=H1c[b.type];if(e){var f,h,k;c=new Set((k=(f=b.content)==null?void 0:(h=f.issueModification)==null?void 0:h.addMask)!=null?k:[]);var q,v,A;f=new Set((A=(q=b.content)==null?void 0:(v=q.issueModification)==null?void 0:v.removeMask)!=null?A:[]);q=new Set([].concat(p(c),p(f)));var E,H;if((E=b.content)==null?0:(H=E.issueModification)==null?0:H.addState)b.content.issueModification.addState=Object.assign({},d.snapshot[0],
b.content.issueModification.addState);var L,O;if((L=b.content)==null?0:(O=L.issueModification)==null?0:O.addMask)for(E=l(e),H=E.next();!H.done;H=E.next())H=H.value,q.has(H)||b.content.issueModification.addMask.push(H);var S;e.has("comment")&&((S=b.content)==null?0:S.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});S=l(q);for(d=S.next();!d.done;d=S.next())d=d.value,Scb.has(d)&&(c.has(d)||(H=E=void 0,(E=b.content)==null||(H=E.issueModification)==null||H.addMask.push(d)),f.has(d)||(H=E=void 0,(E=b.content)==null||(H=E.issueModification)==null||H.removeMask.push(d)))}}return Lcb(b)}),C(function(b){return G1c(b,"ASCENDING")}));this.actionsToAccept=[];this.isSaving$=new Kn(!1)};Y(mU,Z);
mU.\u0275dir=Z.\u0275dir;
mU.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(VR(this.checkBeforeExit,function(){return a.hasUnsavedChanges()&&a.recommendation.type!=="ISSUE_DEDUPLICATION_BATCH"&&a.recommendation.type!=="ISSUE_DEDUPLICATION"},!0));m1c(this.recommendationsService,this.recommendation);this.subscriptions.add(Uf([aCc(this.scrolledOnScreenService,this.elementRef.nativeElement,{durationOnScreenMs:3E3})]).pipe(mg(1)).subscribe(function(){n1c(a.recommendationsService,a.recommendation)}));this.subscriptions.add(this.actions$.subscribe(function(b){a.actions=
b}))};mU.prototype.updateActionsToAccept=function(a){this.actionsToAccept=a;this.cdr.detectChanges()};mU.prototype.accept=function(a){var b=this;return z(function(c){if(c.nextAddress==1)return b.isSaving$.next(!0),B(c,h1c(b.recommendationsService,{recommendation:a,acceptedActions:b.actionsToAccept,originalActions:b.actions}),2);b.isSaving$.next(!1);Lf(c)})};
mU.prototype.reject=function(a){var b=this;return z(function(c){if(c.nextAddress==1)return b.isSaving$.next(!0),B(c,k1c(b.recommendationsService,a),2);b.isSaving$.next(!1);Lf(c)})};
var I1c=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"}},J1c=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"}};mU.prototype.openLink=function(a){this.domSafe.openInNewTab(a)};mU.prototype.hasUnsavedChanges=function(){return this.actionsToAccept.some(function(a){return a.isDirty})};
nd.Object.defineProperties(mU.prototype,{recommendation:{configurable:!0,enumerable:!0,set:function(a){this.recommendation$.next(a)},get:function(){return ip(this.recommendation$)}}});mU.\u0275fac=function(){var a;return function(b){return(a||(a=Re(mU)))(b||mU)}}();
mU.\u0275cmp=y({type:mU,selectors:[["b-recommendation"]],inputs:{recommendation:"recommendation"},standalone:!1,features:[Bg],decls:18,vars:16,consts:[[1,"flex-kids-y","gap-s","rounded","container"],[3,"actions"],[1,"flex-kids-x","space-between","full-width"],[1,"actions","flex-kids-x","gap-s","align-items-center","padded-s-bottom","full-width"],["mat-flat-button","","color","primary",1,"accept","keep-focus-ring",3,"click","disabled"],["svgIcon","done",1,"icon-s"],["mat-button","","mainSegment","",
"color","primary",1,"reject","small",3,"click","disabled"],["svgIcon","close",1,"icon-s"],[1,"margin-left-auto"],[1,"flex-kids-x"],[3,"currentIssue","actions"],[3,"actionsToAccept","currentIssue","actions"],[3,"actionsToAccept","actions"],[1,"flex-kids-x","gap-s","margin-s-bottom"],[3,"formattedComment","canEditComment"],["type","button","mat-icon-button","","aria-label","help",1,"feedback-button",3,"click"],["svgIcon","help-outline",1,"icon-s"]],template:function(a,b){if(a&1){var c=t();J(0,"div",
0);F(1,oeb,2,3)(2,peb,2,4,"b-issue-actions-component",1);F(3,seb,6,1);J(4,"div",2)(5,"div",3)(6,"button",4);U(7,"async");N("click",function(){u(c);return w(b.accept(b.recommendation))});M(8,"mat-icon",5);R(9);K();J(10,"button",6);U(11,"async");N("click",function(){u(c);return w(b.reject(b.recommendation))});M(12,"mat-icon",7);R(13," Reject ");K();F(14,teb,1,0,"b-spinner",8);U(15,"async");K();$g(16);F(17,ueb,3,0,"div",9);K()()}if(a&2){x();G(b.recommendation.type===b.RecommendationType.ISSUE_DEDUPLICATION_BATCH||
b.recommendation.type===b.RecommendationType.ISSUE_DEDUPLICATION?1:2);x(2);G(b.recommendation.rationale?3:-1);x(3);I("disabled",V(7,9,b.isSaving$)||b.actionsToAccept.length===0);Lg("aria-label",I1c(b,b.recommendation));x(3);a:switch(b.recommendation.type){case "ISSUE_DEDUPLICATION":a="Close issue as duplicate";break a;case "ISSUE_DEDUPLICATION_BATCH":a=b.actionsToAccept.length>1?"Close "+b.actionsToAccept.length+" issues as duplicates":"Close "+b.actionsToAccept.length+" issue as duplicate";break a;
default:a="Accept changes"}T(" ",a," ");x();I("disabled",V(11,11,b.isSaving$));Lg("aria-label",J1c(b.recommendation));x(4);G(V(15,13,b.isSaving$)?14:-1);x(2);a:{switch(b.recommendation.type){case "ISSUE_DEDUPLICATION":a="https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/mark-as-duplicate";break a}a=void 0}a=ah(a);x();G(a?17:-1)}},dependencies:[FC,xO,oG,Jx,Kx,pL,yN,fU,lU,Tv],styles:[".container[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg);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 K1c={},H1c=(K1c.COMPONENT_ROUTING=new Set(["componentId","hotlists","priority","assignee"]),K1c.NEEDS_INFO=new Set(["comment"]),K1c);var nU=function(){this.isReady=!1};nU.\u0275fac=function(a){return new (a||nU)};nU.\u0275cmp=y({type:nU,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&&(ch(),D(0,veb,1,0,"div",0)(1,web,2,0,"ng-container",1));a&2&&(I("ngIf",!b.isReady),x(),I("ngIf",b.isReady))},dependencies:[Rv],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 L1c=function(){this.warning=""};L1c.\u0275fac=function(a){return new (a||L1c)};
L1c.\u0275cmp=y({type:L1c,selectors:[["onedev-warning-icon"]],hostVars:2,hostBindings:function(a,b){a&2&&uh("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&&D(0,xeb,2,
1,"svg",0);a&2&&I("ngIf",b.warning)},dependencies:[Rv,HQ],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 M1c=["*",[["","actions",""]]],N1c=[[["onedev-field-label"]],[["onedev-field-value"]]],O1c=0,oU=function(){this.thinking=!1;this.warning=this.labelTooltip="";this.id="onedev-field-label-"+O1c;O1c++};oU.\u0275fac=function(a){return new (a||oU)};
oU.\u0275cmp=y({type:oU,selectors:[["onedev-field-label"]],hostVars:1,hostBindings:function(a,b){a&2&&Lg("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&&(ch(),J(0,"onedev-async-data-placeholder",0)(1,"span",1),dh(2),K(),M(3,"onedev-warning-icon",2),K());a&2&&(I("isReady",!b.thinking),x(),I("matTooltip",b.labelTooltip),
x(2),I("warning",b.warning))},dependencies:[nU,HQ,L1c],styles:["[_nghost-%COMP%]{line-height:29px;font-size:13px}span.label[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]});var pU=function(){this.thinking=!1};pU.\u0275fac=function(a){return new (a||pU)};
pU.\u0275cmp=y({type:pU,selectors:[["onedev-field-value"]],inputs:{thinking:"thinking"},standalone:!1,ngContentSelectors:["*","[actions]"],decls:3,vars:1,consts:[[3,"isReady"]],template:function(a,b){a&1&&(ch(M1c),J(0,"onedev-async-data-placeholder",0),dh(1),dh(2,1),K());a&2&&I("isReady",!b.thinking)},dependencies:[nU],encapsulation:2});var qU=function(){this.labelPosition="left"};qU.prototype.ngAfterContentInit=function(){var a=this;setTimeout(function(){a.field&&a.label&&(a.field.labelledById=a.label.id)})};
qU.\u0275fac=function(a){return new (a||qU)};
qU.\u0275cmp=y({type:qU,selectors:[["onedev-edit-field"]],contentQueries:function(a,b,c){a&1&&(ih(c,gU,5),ih(c,oU,7));if(a&2){var d;lh(d=mh())&&(b.field=d.first);lh(d=mh())&&(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&&(ch(N1c),J(0,"div",0),dh(1),dh(2,1),K());a&2&&uh("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 P1c=["traditionalEditorField"],Q1c=["peopleKitUserPicker"],rU=function(){this.activeSession=r(Bs);this.issuePermissionService=r(OK);this.issueDetailsBrain=r(MK);this.elementRef=r(Te);this.cdr=r(Hv);this.title=this.name="";this.value=null;this.valueChange=new LE;this.emailChange=new LE;this.displayValueOverride="";this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;this.teamId$=this.issueDetailsBrain.teamId$;this.enablePeoplekitAc=
OA(this.activeSession,"enablePeoplekitUserAc");this.FieldType=CL};rU.prototype.emailToUser=function(a){return Pj(Dj(a))};rU.prototype.openEditor=function(){if(this.enablePeoplekitAc){var a;(a=this.peopleKitUserPicker)==null||a.openPopOver()}else{var b;(b=this.traditionalEditorField)==null||tq(b,null,!0,!1)}};rU.\u0275fac=function(a){return new (a||rU)};
rU.\u0275cmp=y({type:rU,selectors:[["b-single-user-control"]],viewQuery:function(a,b){a&1&&(hh(P1c,5),hh(Q1c,5));if(a&2){var c;lh(c=mh())&&(b.traditionalEditorField=c.first);lh(c=mh())&&(b.peopleKitUserPicker=c.first)}},inputs:{name:"name",title:"title",value:"value",user:"user",anchor:"anchor",isSaving:"isSaving",displayValueOverride:"displayValueOverride"},outputs:{valueChange:"valueChange",emailChange:"emailChange"},standalone:!1,decls:2,vars:1,consts:[["traditionalEditorField",""],["peopleKitUserPicker",
""],[1,"flex-1",3,"name","title","type","value","user","isUser","readonly","disabled","showAvailability","teamId","displayValueOverride"],[1,"flex-1",3,"valueChange","name","title","type","value","user","isUser","readonly","disabled","showAvailability","teamId","displayValueOverride"],[3,"thinking"],[3,"emailChange","anchor","user","teamId","disabled","displayValueOverride"]],template:function(a,b){a&1&&F(0,yeb,4,15,"b-edit-field",2)(1,zeb,8,11,"onedev-edit-field");a&2&&G(b.enablePeoplekitAc?1:0)},
dependencies:[BL,oU,pU,qU,kU,Tv],encapsulation:2});var R1c=[[["","expansion-panel-header",""]],"*"],sU=function(){this.instance=sU.instanceCounter;this.expanded=!1};sU.prototype.ngOnInit=function(){sU.instanceCounter++};sU.prototype.toggle=function(){this.expanded=!this.expanded};sU.instanceCounter=0;sU.\u0275fac=function(a){return new (a||sU)};
sU.\u0275cmp=y({type:sU,selectors:[["b-expansion-panel"]],inputs:{expanded:"expanded"},exportAs:["expansionPanel"],standalone:!1,ngContentSelectors:["[expansion-panel-header]","*"],decls:6,vars:7,consts:[[1,"flex-kids-y"],["role","button","tabindex","0","aria-disabled","false",1,"header","flex-kids-x","padded-s","clickable-row",3,"click","keydown.enter","keydown.space","keyup.space","id"],["type","button","mat-icon-button","","aria-label","Toggle expansion state",1,"small","margin-left-auto",3,"click"],
["svgIcon","arrow-down",1,"icon-m"],["role","region",1,"content",3,"id"]],template:function(a,b){a&1&&(ch(R1c),J(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()}),dh(2),J(3,"button",2),N("click",function(c){b.toggle();return c.stopPropagation()}),M(4,"mat-icon",3),K()(),F(5,Aeb,2,3,"div",4),K());a&2&&(uh("expanded",b.expanded),x(),I("id",
Dh("expansion-panel-header-",b.instance)),Lg("aria-controls","expansion-panel-content-"+b.instance)("aria-expanded",b.expanded),x(4),G(b.expanded?5:-1))},dependencies:[FC,oG,Kx],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 Neb=function(){return[]},Teb=function(a,b){return b.key},tU=function(){Z.apply(this,arguments);var a=this;this.issueFridge=r(iE);this.issueFullFridge=r(TE);this.eventsForIssueFridge=r(TD);this.paramsService=r(CK);this.issueExperimentalFieldsFridge=r(eE);this.issuePermissionService=r(OK);this.triageService=r(nG);this.activeSession=r(Bs);this.errorHandler=r(aK);this.preferences=r(iG);this.similarIssuesApi=r(UN);this.issueMarkAsDuplicateDialogService=r($R);this.analytics=r(RE);this.recommendationTriggerService=
r(RT);this.refreshMonitor=r(gE);this.issueId$=this.triageService.currentIssueId$.pipe(eg(Qj),og());this.PHASE_TO_ACTIONS=Uzc;this.TriagePhase=koc;this.MAX_SIMILAR_ISSUES=10;this.displaySecondaryFooter=!1;this.refreshTable=new LE;this.teamId$=DK(this.paramsService,"teamId").pipe(og(),eg(Qj));this.triageViewId=this.paramsService.params.triageId;this.phaseUrlSlug=this.paramsService.params.phase;this.data$=this.teamId$.pipe(C(function(b){return a.triageService.triageDataFactory.get(b,a.triageViewId)}));
this.triageScope$=this.data$.pipe(xg(function(b){return b.triageScope$}));this.issue$=this.issueId$.pipe(xg(function(b){return a.issueFridge.watch(b)}));this.canonicalIssueId$=this.issue$.pipe(C(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(xg(function(b){return a.issueExperimentalFieldsFridge.watch(b)}));this.reporterUser$=this.issue$.pipe(C(function(b){var c;return b==null?void 0:(c=
b.snapshot[0])==null?void 0:c.reporterUser}));this.reporterEmail$=this.reporterUser$.pipe(C(function(b){return zj(b)||""}));this.triagerEmail$=this.experimentalFields$.pipe(C(function(b){var c;return b==null?void 0:(c=b.triage)==null?void 0:c.triagerEmail}));this.triager$=this.triagerEmail$.pipe(C(function(b){return Dj(b)}));this.issuePhase$=this.issue$.pipe(C(El));this.issuePhaseDisplay$=this.issuePhase$.pipe(C(function(b){var c;return(c=b&&lr.get(b))!=null?c:""}));this.issueSubphase$=this.issue$.pipe(C(Fl));
this.issueSubphaseDisplay$=this.issueSubphase$.pipe(C(function(b){var c;return(c=b&&Coc[b])!=null?c:""}));this.events$=this.issueId$.pipe(xg(function(b){return a.eventsForIssueFridge.watch(b)}),C(function(b){return(b==null?void 0:b.events)||[]}));this.comments$=this.events$.pipe(C(function(b){return b.filter(ul).slice(1)}));this.accessLevel$=this.issue$.pipe(C(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(C(Boolean),wg(!0));this.similarIssueIds$=Uf([this.issueId$,this.triageScope$]).pipe(xg(function(b){var c=l(b);b=c.next().value;c=c.next().value;return wRc(a.similarIssuesApi,{issueId:Number(b),scope:c})}),C(function(b){return b.similarIssues}),zg(function(b){b.forEach(function(c){a.issueFullFridge.announce(c)})}),C(function(b){return b.map(function(c){return c.issueId})}),C(function(b){return b.slice(0,10)}),ug({bufferSize:1,refCount:!0}));
this.needsInfoAutomaticChanges$=this.reporterEmail$.pipe(C(function(b){return[{field:"ASSIGNEE",value:b},{field:"COMMENT",value:"Hi @"+b+", "}]}));this.teamId$.pipe(xg(function(b){return Yzc(a.triageService.triageDataFactory.get(b,a.triageViewId),"NEW")}),C(function(b){var c=[].concat(p(Rzc.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(xg(function(b){return x0c(a.recommendationTriggerService,
b)}),ug({bufferSize:1,refCount:!0}));this.dedupeBatchRecommendation$=this.issueId$.pipe(xg(function(b){return y0c(a.recommendationTriggerService,b)}),ug({bufferSize:1,refCount:!0}));this.dedupeRecommendation$=Uf([this.dedupeCanonicalRecommendation$,this.dedupeBatchRecommendation$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b!=null?b:c}),ug({bufferSize:1,refCount:!0}))};Y(tU,Z);tU.\u0275dir=Z.\u0275dir;g=tU.prototype;
g.ngOnInit=function(){var a=this;this.subscriptions.add(this.refreshMonitor.getObservable().pipe(Ag(this.issueId$)).subscribe(function(b){b=l(b);b.next();b=b.next().value;a.eventsForIssueFridge.poke(b)}))};g.setNeedsInfo=function(a){var b=this;return z(function(c){return c.nextAddress==1?B(c,fE(b.issueExperimentalFieldsFridge,a,function(d){d.triage.phase="NEW";d.triage.subphase="NEEDS_INFO"}),2):c.return(c.yieldResult)})};
g.setConfirmed=function(a){var b=this;return z(function(c){return c.nextAddress==1?B(c,fE(b.issueExperimentalFieldsFridge,a,function(d){d.triage.phase="CONFIRMED";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};g.setPendingOwner=function(a){var b=this;return z(function(c){return c.nextAddress==1?B(c,fE(b.issueExperimentalFieldsFridge,a,function(d){d.triage.phase="CONFIRMED";d.triage.subphase="PENDING_OWNER"}),2):c.return(c.yieldResult)})};
g.setInProgress=function(a){var b=this;return z(function(c){return c.nextAddress==1?B(c,fE(b.issueExperimentalFieldsFridge,a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};g.setExpected=function(a){var b=this;return z(function(c){return c.nextAddress==1?B(c,fE(b.issueExperimentalFieldsFridge,a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="EXPECTED"}),2):c.return(c.yieldResult)})};
g.setPlanned=function(a){var b=this;return z(function(c){return c.nextAddress==1?B(c,fE(b.issueExperimentalFieldsFridge,a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="PLANNED"}),2):c.return(c.yieldResult)})};g.setCommitted=function(a){var b=this;return z(function(c){return c.nextAddress==1?B(c,fE(b.issueExperimentalFieldsFridge,a,function(d){d.triage.phase="IN_PROGRESS";d.triage.subphase="COMMITTED"}),2):c.return(c.yieldResult)})};
g.setFixed=function(a){var b=this;return z(function(c){return c.nextAddress==1?B(c,fE(b.issueExperimentalFieldsFridge,a,function(d){d.triage.phase="FIXED";d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};g.setNew=function(a){var b=this;return z(function(c){return c.nextAddress==1?B(c,fE(b.issueExperimentalFieldsFridge,a,function(d){d.triage.phase="NEW";d.triage.triagerEmail=void 0;d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};
g.setWontFix=function(a){var b=this;return z(function(c){return c.nextAddress==1?B(c,fE(b.issueExperimentalFieldsFridge,a,function(d){d.triage.phase="WONT_FIX";d.triage.triagerEmail=void 0;d.triage.subphase="TRIAGE_SUBPHASE_UNSPECIFIED"}),2):c.return(c.yieldResult)})};
g.openSecondaryActionFooter=function(a,b){var c=this;return z(function(d){if(d.nextAddress==1)return a!=="MARK_AS_DUPLICATE"?d.jumpTo(2):B(d,PXc(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);Lf(d)})};
g.finalizeSecondaryAction=function(a){var b=this,c,d,e;return z(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("le");default:pb(c)}f.jumpTo(13);break;case 2:return B(f,b.setNeedsInfo(d),14);case 14:e=f.yieldResult;f.jumpTo(13);break;case 3:return B(f,b.setConfirmed(d),15);case 15:e=f.yieldResult;f.jumpTo(13);break;case 4:return B(f,b.setPendingOwner(d),16);case 16:e=f.yieldResult;f.jumpTo(13);break;case 5:return B(f,b.setNew(d),17);case 17:e=f.yieldResult;
f.jumpTo(13);break;case 6:return B(f,b.setInProgress(d),18);case 18:e=f.yieldResult;f.jumpTo(13);break;case 7:return B(f,b.setExpected(d),19);case 19:e=f.yieldResult;f.jumpTo(13);break;case 8:return B(f,b.setPlanned(d),20);case 20:e=f.yieldResult;f.jumpTo(13);break;case 9:return B(f,b.setCommitted(d),21);case 21:e=f.yieldResult;f.jumpTo(13);break;case 10:return B(f,b.setFixed(d),22);case 22:e=f.yieldResult;f.jumpTo(13);break;case 11:return B(f,b.setNew(d),23);case 23:e=f.yieldResult;f.jumpTo(13);
break;case 12:return B(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),Lf(f)}})};g.announceUpdate=function(a,b){a&&(this.issueFullFridge.poke(b),this.refreshTable.emit())};g.cancelAction=function(){this.selectedTriageAction=void 0;this.displaySecondaryFooter=!1};
var Feb=function(a,b){var c,d;return z(function(e){if(e.nextAddress==1)return b&&b.length>0&&((c=b)==null||!c.endsWith("@google.com"))?(bK(a.errorHandler,"Only Googlers can be triagers."),e.return()):B(e,Rf(a.issueId$),2);d=e.yieldResult;return B(e,fE(a.issueExperimentalFieldsFridge,d,function(f){f.triage.triagerEmail=b}),0)})};tU.prototype.claim=function(){Feb(this,this.activeSession.getUserEmail());this.analytics.trackEvent("triageIssue","claim")};
tU.\u0275fac=function(){var a;return function(b){return(a||(a=Re(tU)))(b||tU)}}();
tU.\u0275cmp=y({type:tU,selectors:[["issue-triage-sidebar"]],outputs:{refreshTable:"refreshTable"},standalone:!1,features:[Bg],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,Xeb,19,19,"div",6),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.issueId$))?0:-1,c)}},dependencies:[FC,GT,BT,sU,oG,Jx,Kx,zG,xG,DI,EI,JI,FI,PO,sT,OT,bO,WK,dO,PT,pL,mU,rU,$T,lS,cL,bL,vG,iL,Tv],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 S1c=function(){var a=this;this.activeSession=r(Bs);this.issueExperimentalFieldsFridge=r(eE);this.triageService=r(nG);this.currentUserEmail=this.activeSession.getUserEmail();this.issueIds$=this.triageService.currentIssueIds$;this.onToggleClaim$=new Kn(void 0);this.hasUserClaimedIssues$=Uf([this.issueIds$,this.onToggleClaim$]).pipe(C(function(b){var c=l(b);b=c.next().value;c.next();return b}),xg(function(b){return a.issueExperimentalFieldsFridge.watchSet(b)}),C(function(b){return b.every(function(c){var d;
return((d=c.triage)==null?void 0:d.triagerEmail)===a.currentUserEmail})}));this.buttonText$=Uf([this.hasUserClaimedIssues$]).pipe(C(function(b){return l(b).next().value?"Unclaim":"Claim"}));this.isSaving=!1},Yeb=function(a,b,c){var d,e,f;return z(function(h){switch(h.nextAddress){case 1:a.isSaving=!0,d=l(b),e=d.next();case 2:if(e.done){h.jumpTo(4);break}f=e.value;return B(h,fE(a.issueExperimentalFieldsFridge,f,function(k){k.triage.triagerEmail=c?void 0:a.currentUserEmail}),3);case 3:e=d.next();h.jumpTo(2);
break;case 4:a.isSaving=!1,a.onToggleClaim$.next(),Lf(h)}})};S1c.\u0275fac=function(a){return new (a||S1c)};
S1c.\u0275cmp=y({type:S1c,selectors:[["claim-issues-button"]],standalone:!1,decls:2,vars:3,consts:[["type","button","mat-button","",1,"gmat-button",3,"ariaLabel","disabled"],["type","button","mat-button","",1,"gmat-button",3,"click","ariaLabel","disabled"]],template:function(a,b){a&1&&(F(0,Zeb,6,8,"button",0),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.issueIds$))?0:-1,c)}},dependencies:[oG,Jx,Tv],encapsulation:2,changeDetection:0});var gfb=function(a,b){return b.key},uU=function(){Z.apply(this,arguments);var a=this;this.triageService=r(nG);this.analytics=r(RE);this.butterBar=r(GJ);this.errorHandler=r(aK);this.issueApi=r(SD);this.issueFridge=r(iE);this.issueFullFridge=r(TE);this.issuePermissionService=r(OK);this.issuePicker=r(dR);this.paramsService=r(CK);this.triagePhaseService=r(mS);this.phaseUrlSlug=this.paramsService.params.phase;this.issueIds$=this.triageService.currentIssueIds$;this.hasAclToEdit$=this.issuePermissionService.hasAclToEdit$;
this.PHASE_TO_ACTIONS=Uzc;this.TriagePhase=koc;this.displaySecondaryFooter=!1;this.issue$=this.issueIds$.pipe(xg(function(b){return a.issueFridge.watch(b[0])}));this.issuePhase$=this.issue$.pipe(C(El));this.issuePhaseDisplay$=this.issuePhase$.pipe(C(function(b){var c;return(c=b&&lr.get(b))!=null?c:""}));this.issues$=this.issueIds$.pipe(xg(function(b){return a.issueFridge.watchSet(b)}));this.issueSubphases$=this.issues$.pipe(C(function(b){return b.map(function(c){return Fl(c)}).filter(function(c){return c!==
void 0})}));this.issueSubphasesDisplay$=this.issueSubphases$.pipe(C(function(b){b=b.map(function(c){var d;return(d=Coc[c])!=null?d:""});return sj(b)}));this.refreshTable=new LE};Y(uU,Z);uU.\u0275dir=Z.\u0275dir;g=uU.prototype;
g.openDupeDialog=function(){var a=this,b,c,d,e,f,h,k;return z(function(q){switch(q.nextAddress){case 1:return B(q,Rf(a.issueIds$),2);case 2:b=q.yieldResult;if(!b||!b.length)return q.return();c=Awa;return B(q,Rf(a.issueFridge.watchSet(b)),3);case 3:return d=c(q.yieldResult),e=l,B(q,a.issuePicker.open({componentId:d||null,allowMultipleIds:!1,currentResource:{id:b[0],type:"issue"},edgeType:"canonical",originIsBulk:!0}),4);case 4:return f=e(q.yieldResult),(k=h=f.next().value)?B(q,a.markAsDuplicate(k,
b),0):q.return()}})};g.openSecondaryActionFooter=function(a){var b=this;return z(function(c){if(c.nextAddress==1)return a!=="MARK_AS_DUPLICATE"?c.jumpTo(2):B(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;Lf(c)})};g.cancelAction=function(){this.displaySecondaryFooter=!1};g.closeSidebar=function(){this.triageService.closeSidebar();this.triageService.setMode(0)};
g.finalizeSecondaryAction=function(a){var b=this,c,d;return z(function(e){if(e.nextAddress==1){if(!b.selectedTriageAction)return e.return();c=b.selectedTriageAction;return B(e,mYc(b.triagePhaseService,a,c),2)}d=e.yieldResult;b.displaySecondaryFooter=!1;b.announceUpdate(a,d);Lf(e)})};
g.markAsDuplicate=function(a,b){var c=this,d,e,f;return z(function(h){if(h.nextAddress==1){d=b.filter(function(k){return k!==a});if(!d.length)return h.return();e={bulkEditOps:[{actions:[{fieldName:"duplicateOfIssueId",value:a}],issueIds:b}]};Gf(h,2);Kq(c.butterBar,"Saving...");return B(h,c.issueApi.issueBulkEdit(e),4)}if(h.nextAddress!=2)return Kq(c.butterBar,"Marked "+b.length+" issues as duplicate."),c.announceUpdate(b),c.closeSidebar(),uu(h,0);f=Kf(h);cK(c.errorHandler,f);return B(h,Promise.all([].concat(p(b.map(function(k){return c.issueFridge.poke(k)})),
[c.issueFridge.poke(a)])),0)})};g.announceUpdate=function(a,b){if(b&&b.length)for(a=l(a),b=a.next();!b.done;b=a.next())this.issueFullFridge.poke(b.value);this.refreshTable.emit()};uU.\u0275fac=function(){var a;return function(b){return(a||(a=Re(uU)))(b||uU)}}();
uU.\u0275cmp=y({type:uU,selectors:[["selection-triage-sidebar"]],outputs:{refreshTable:"refreshTable"},standalone:!1,features:[Bg],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&&(J(0,"div",0)(1,"div",1),F(2,$eb,5,1,"div",2),U(3,"async"),F(4,
cfb,1,1),U(5,"async"),J(6,"button",3),N("click",function(){return b.closeSidebar()}),M(7,"mat-icon",4),K()(),J(8,"div",5)(9,"h3",6),R(10),U(11,"async"),K(),J(12,"div",7),F(13,jfb,2,3),U(14,"async"),K()()());if(a&2){var c,d,e,f;x(2);G((c=V(3,4,b.issuePhaseDisplay$))?2:-1,c);x(2);G((d=V(5,6,b.issueSubphasesDisplay$))?4:-1,d);x(6);T("",(e=V(11,8,b.issueIds$))==null?null:e.length," issues");x(3);G((f=V(14,10,b.issueIds$))?13:-1,f)}},dependencies:[FC,oG,Jx,Kx,zG,xG,S1c,lS,vG,Tv],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 vU=function(){var a=this;this.editIssueService=r(RK);this.issueFridge=r(iE);this.IssueFieldKey=hYc;this.issueId$=new sg(1);this.automaticChange$=new sg(1);this.editableIssue$=this.issueId$.pipe(xg(function(b){return a.editIssueService.editableIssue$(b)}),ug({refCount:!0,bufferSize:1}));this.undone=!1;this.text$=Uf([this.editableIssue$,this.automaticChange$]).pipe(C(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:pb(d)}b=void 0}return b}))};vU.prototype.ngOnInit=function(){};
vU.prototype.undo=function(){var a=this,b,c,d;return z(function(e){if(e.nextAddress==1)return b=a.automaticChange.field,B(e,Rf(a.editableIssue$),2);if(e.nextAddress!=3)return c=e.yieldResult,B(e,Rf(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(wj(d.snapshot[0].assigneeUser));break;case "COMMENT":throw Error("Le");default:pb(b)}a.undone=!0;Lf(e)})};
nd.Object.defineProperties(vU.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)},get:function(){return ip(this.issueId$)}},automaticChange:{configurable:!0,enumerable:!0,set:function(a){this.automaticChange$.next(a)},get:function(){return ip(this.automaticChange$)}}});vU.\u0275fac=function(a){return new (a||vU)};
vU.\u0275cmp=y({type:vU,selectors:[["automatic-change-chip"]],hostVars:2,hostBindings:function(a,b){a&2&&th("display",b.automaticChange.field===b.IssueFieldKey.COMMENT||b.undone?"none":"block")},inputs:{issueId:"issueId",automaticChange:"automaticChange"},standalone:!1,decls:7,vars:3,consts:[[1,"b-chip","blue","flex-kids-x","align-items-center","gap-xs"],["matTooltip","System suggestion","svgIcon","pen_spark_24px",1,"icon-s","margin-xs-right","color-text"],[1,"color-text"],["type","button","mat-button",
"",1,"gmat-button","small",3,"click"]],template:function(a,b){a&1&&(J(0,"div",0),M(1,"mat-icon",1),J(2,"span",2),R(3),U(4,"async"),K(),J(5,"button",3),N("click",function(){return b.undo()}),R(6,"Undo"),K()());a&2&&(x(3),wh(V(4,1,b.text$)))},dependencies:[FC,oG,Jx,zG,xG,Tv],encapsulation:2,changeDetection:0});var T1c=["pickerToggle"],wU=function(){this.customAriaLabelledBy=this.customFormId=void 0;this.required=!1;this.valueChange=new LE};wU.\u0275fac=function(a){return new (a||wU)};
wU.\u0275cmp=y({type:wU,selectors:[["b-date-time-input"]],viewQuery:function(a,b){a&1&&hh(T1c,7);if(a&2){var c;lh(c=mh())&&(b.pickerToggle=c.first)}},inputs:{customFormId:"customFormId",customAriaLabelledBy:"customAriaLabelledBy",value:"value",required:"required"},outputs:{valueChange:"valueChange"},exportAs:["bDateTimeInput"],standalone:!1,decls:4,vars:6,consts:[["pickerToggle","bDateTimePickerToggle"],["mat-stroked-button","","type","button","bDateTimePickerToggle","",3,"bDateTimePickerToggleSelectedChange",
"id","bDateTimePickerToggleRequired","bDateTimePickerToggleSelected","bDateTimePickerToggleFocusTrapHost"],["mode","date",3,"date"]],template:function(a,b){if(a&1){var c=t();J(0,"button",1,0);N("bDateTimePickerToggleSelectedChange",function(d){u(c);b.value=d;b.valueChange.emit(d);return w()});F(2,kfb,1,1,"b-formatted-date-time",2)(3,lfb,2,0,"ng-container");K()}a&2&&(I("id",b.customFormId)("bDateTimePickerToggleRequired",b.required)("bDateTimePickerToggleSelected",b.value)("bDateTimePickerToggleFocusTrapHost",
!1),Lg("aria-labelledby",b.customAriaLabelledBy),x(2),G(b.value?2:3))},dependencies:[sL,EL,oG,Jx],styles:["/*# sourceMappingURL=date_time_input.css.map */"]});var U1c=["filterInput"],xU=function(){Z.apply(this,arguments);this.dateFormatter=r(eK);this.enumChoices=[];this.onSave=new LE;this.valueMap=new Map;this.sortedValues=[];this.filterValue=null;this.currentSelectedDate=void 0};Y(xU,Z);xU.\u0275dir=Z.\u0275dir;g=xU.prototype;g.ngOnInit=function(){this.initValues()};g.ngOnChanges=function(a){a.originalValueMap&&this.initValues()};g.ngAfterViewInit=function(){var a=this,b;(b=this.trigger)==null||b.menuOpened.pipe(xg(function(){return bg(0)}),yg(this.destroyed$)).subscribe(function(){a.focusFilterBox()})};
g.showMenu=function(){this.trigger.openMenu()};g.closeMenu=function(){this.trigger.closeMenu()};g.focusFilterBox=function(){var a;(a=this.filterElement)==null||a.nativeElement.focus()};var V1c=function(a){return a.filterValue&&a.type!=="REPEATED_DATE"?a.sortedValues.filter(function(b){return a.getDisplayString(b).includes(String(a.filterValue))}):a.sortedValues};
xU.prototype.addValue=function(){var a=this.filterValue;this.filterValue=null;a&&!this.valueMap.get(a)&&(this.valueMap.set(a,!0),W1c(this),this.onSave.emit({valueMap:this.valueMap,valueChanged:this.valueChanged()}))};xU.prototype.changeSelection=function(a){this.focusFilterBox();var b=this.valueMap.get(a);b?this.valueMap.set(a,!1):b===!1?(b=this.originalValueMap.get(a)===null,this.valueMap.set(a,b?null:!0)):this.valueMap.set(a,!0);this.onSave.emit({valueMap:this.valueMap,valueChanged:this.valueChanged()})};
xU.prototype.valueChanged=function(){var a=this;return Array.from(this.valueMap.keys()).some(function(b){var c=a.valueMap.get(b);b=a.originalValueMap.get(b);return c||b!==void 0?c!==b:!1})};xU.prototype.initValues=function(){this.valueMap=new Map(this.originalValueMap||[]);this.enumChoices=this.enumChoices||[];for(var a=l(this.enumChoices),b=a.next();!b.done;b=a.next())b=b.value,this.valueMap.has(b)||this.valueMap.set(b,!1);W1c(this)};
var W1c=function(a){a.sortedValues=Array.from(a.valueMap.keys()).sort(function(b,c){b=a.valueMap.get(b);c=a.valueMap.get(c);return(c?1:c===!1?-1:0)-(b?1:b===!1?-1:0)})},nfb=function(a){return!!a.filterValue&&a.type!=="REPEATED_ENUM"&&a.type!=="REPEATED_DATE"};xU.prototype.getDisplayString=function(a){return this.type==="REPEATED_DATE"?this.dateFormatter.formatUserCalendar(lsa(a)):a};xU.prototype.getLabel=function(){return this.valueChanged()?"Changed":"Unchanged"};
xU.\u0275fac=function(){var a;return function(b){return(a||(a=Re(xU)))(b||xU)}}();
xU.\u0275cmp=y({type:xU,selectors:[["b-bulk-repeated-field-picker"]],viewQuery:function(a,b){a&1&&(hh(uG,5),hh(U1c,5));if(a&2){var c;lh(c=mh())&&(b.trigger=c.first);lh(c=mh())&&(b.filterElement=c.first)}},inputs:{type:"type",originalValueMap:"originalValueMap",enumChoices:"enumChoices"},outputs:{onSave:"onSave"},standalone:!1,features:[Bg,ov],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&&(J(0,"button",2)(1,"span"),R(2),K(),M(3,"b-icon",3),K(),J(4,"mat-menu",null,0),Pg(6,mfb,3,4,"div",4,Og),M(8,"mat-divider"),J(9,"div",5),F(10,ofb,2,3,"input",6),K(),F(11,pfb,1,0,"mat-divider"),F(12,qfb,2,0,"div",7),F(13,rfb,4,1,"div"),K());a&2&&(a=Q(5),I("matMenuTriggerFor",a),x(2),wh(b.getLabel()),x(4),Qg(V1c(b)),x(4),G(b.type!=="REPEATED_DATE"?10:-1),x(),G(nfb(b)?11:-1),x(),G(nfb(b)?12:-1),x(),G(b.type==="REPEATED_DATE"?13:-1))},dependencies:[pG,sG,qG,uG,pL,eL,oG,Jx,gM,hM,Ui,dy,ky,wU],styles:[".multi-edit-menuitem[_ngcontent-%COMP%]{padding:0 5px}.filter[_ngcontent-%COMP%]{padding:0 5px}/*# sourceMappingURL=bulk_repeated_field_picker.css.map */"]});var X1c=0,yU=function(a){this.changeDetectorRef=a;this.active=!1;this.id="b-list-option-"+X1c;X1c+=1};yU.prototype.setActiveStyles=function(){this.active=!0;this.changeDetectorRef.markForCheck()};yU.prototype.setInactiveStyles=function(){this.active=!1;this.changeDetectorRef.markForCheck()};yU.\u0275fac=function(a){return new (a||yU)(of(Hv))};
yU.\u0275dir=vf({type:yU,selectors:[["","onedevListOption",""]],hostVars:3,hostBindings:function(a,b){a&2&&(Rg("id",b.id),uh("active",b.active))},inputs:{option:"option"},exportAs:["onedevListOption"],standalone:!1});var zU=function(){};zU.\u0275fac=function(a){return new (a||zU)};zU.\u0275mod=uf({type:zU});zU.\u0275inj=Dd({});var ufb=function(a){return{$implicit:a}},AU=function(a){var b=this;this.includeEmptyOption=this.disabled=!1;this.emptyOptionValue=void 0;this.showFilterBar=!1;this.options$=new Kn([]);this.filterText$=new Kn("");this.filteredOptions$=Uf([this.options$,this.filterText$]).pipe(C(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 nq;this.selected=new nq;this.destroyed$=
new sg(1);a&&this.handleKeydown(a.keydown$)};g=AU.prototype;g.ngOnInit=function(){};g.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};g.ngAfterViewInit=function(){this.keyManager=Jw(Iw(new Nw(this.viewOptions)))};g.ngOnChanges=function(a){a.value&&Y1c(this);a.options&&this.options$.next(this.options)};g.isSelected=function(a){return this.value===a};g.select=function(a){this.disabled||(this.isSelected(a)||this.valueChange.emit(a),this.selected.emit())};
var Y1c=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),Z1c(a))}};AU.prototype.clearActiveItem=function(){this.keyManager&&this.keyManager.activeItem&&this.keyManager.setActiveItem(-1)};
AU.prototype.handleKeydown=function(a){var b=this;a.pipe(yg(this.destroyed$)).subscribe(function(c){if(!b.disabled&&b.keyManager){var d=c.code;d==="ArrowUp"||d==="ArrowDown"?(c.preventDefault(),b.keyManager.onKeydown(c),Z1c(b)):d==="Home"||d==="End"?(c.preventDefault(),d==="Home"?b.keyManager._setActiveItemByIndex(0,1):cjc(b.keyManager),Z1c(b)):d!=="Enter"&&d!=="Space"||!b.keyManager.activeItem||(c.preventDefault(),b.select(b.keyManager.activeItem.option))}})};
var Z1c=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"})}};AU.\u0275fac=function(a){return new (a||AU)(of(YN,8))};
AU.\u0275cmp=y({type:AU,selectors:[["onedev-selectable-list"]],viewQuery:function(a,b){a&1&&hh(yU,5);if(a&2){var c;lh(c=mh())&&(b.viewOptions=c)}},hostAttrs:["role","listbox"],hostVars:3,hostBindings:function(a,b){a&1&&N("focus",function(){return Y1c(b)})("blur",function(){return b.clearActiveItem()});a&2&&(a=b.keyManager&&b.keyManager.activeItem?b.keyManager.activeItem.id:void 0,Lg("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:[ov],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&&(D(0,sfb,5,0,"div",4)(1,Ffb,5,2,"ng-container",5),U(2,"async"));
a&2&&(I("ngIf",b.showFilterBar),x(),I("ngIf",V(2,2,b.filteredOptions$)))},dependencies:[Qv,Rv,Sv,yU,Tv],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 $1c=["trigger"],Hfb=function(a){return{$implicit:a}},a2c=0,BU=function(){this.includeEmptyOption=this.disabled=!1;this.emptyOptionValue=void 0;this.showFilterBar=!1;this.popupMaxHeight=300;this.label="";this.valueChange=new nq;this.displayArrowIcon=!0;this.openPopupOnInit=!1;this.required=Mh.apply(null,[!1].concat(p([])));this.focused=!1;this.contentId="onedev-single-select-"+a2c;this.onChange=function(){};this.onTouched=function(){};a2c++};Y(BU,gU);g=BU.prototype;g.ngOnInit=function(){};
g.ngAfterViewInit=function(){this.openPopupOnInit&&(this.popupTrigger.open(),this.focused=!0)};g.writeValue=function(a){this.val=a};g.onSelectionChange=function(a){a!==this.val&&(this.onChange(a),this.value=a,this.valueChange.emit(a))};g.isActive=function(){return this.popupTrigger.isOpen||this.focused};g.contentAriaLabelledBy=function(){if(this.labelledById)return this.labelledById+" "+this.contentId};g.registerOnChange=function(a){this.onChange=a};
g.registerOnTouched=function(a){this.onTouched=a};var b2c=function(a){var b="";a.label&&(b+=a.label+", ");a.required()&&(b+="required, ");return b};BU.prototype.setDisabledState=function(a){this.disabled=a};nd.Object.defineProperties(BU.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});BU.\u0275fac=function(a){return new (a||BU)};
BU.\u0275cmp=y({type:BU,selectors:[["onedev-single-select"]],viewQuery:function(a,b){a&1&&hh($1c,7);if(a&2){var c;lh(c=mh())&&(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"},standalone:!1,features:[Fh([{provide:Yx,useExisting:$d(function(){return BU}),multi:!0},{provide:gU,useExisting:$d(function(){return BU}),multi:!0}]),Bg],decls:13,vars:22,consts:[["trigger","onedevPopupPanelTrigger"],["optionTemplateOrTextLabel",""],["textLabel",""],["panel","onedevPopupPanel"],["emptyValue",""],["onedevPopupPanelTrigger","",3,"focus","blur","click","closed","onedevPopupPanelTriggerDisabled",
"disabled","onedevPopupPanelTriggerFor"],[1,"cdk-visually-hidden"],[4,"ngIf","ngIfElse"],["class","arrow-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",4,"ngIf"],["onedevKeyEventReceiver","",3,"relayOnly"],["tabindex","0",1,"single-select-panel",3,"valueChange","selected","value","includeEmptyOption","emptyOptionValue","options","optionTemplate","label","showFilterBar","filterFunction"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-label","empty"],["xmlns","http://www.w3.org/2000/svg",
"viewBox","0 0 24 24",1,"arrow-icon"],["d","M7 10l5 5 5-5H7z"]],template:function(a,b){if(a&1){var c=t();J(0,"button",5,0);N("focus",function(){u(c);return w(b.focused=!0)})("blur",function(){u(c);return w(b.focused=!1)})("click",function(){u(c);var e=Q(1);return w(e.open())})("closed",function(){u(c);b.onTouched();return w()});J(2,"span",6);R(3);K();D(4,Ifb,2,4,"ng-container",7)(5,Lfb,1,2,"ng-template",null,1,Lh)(7,Ofb,3,2,"ng-template",null,2,Lh)(9,Pfb,2,0,"svg",8);K();J(10,"onedev-popup-panel",
9,3)(12,"onedev-selectable-list",10);N("valueChange",function(e){u(c);return w(b.onSelectionChange(e))})("selected",function(){u(c);var e=Q(1);return w(e.close())});K()()}if(a&2){a=Q(6);var d=Q(11);uh("active",b.isActive());I("onedevPopupPanelTriggerDisabled",b.disabled)("disabled",b.disabled)("onedevPopupPanelTriggerFor",d);Lg("id",b.contentId)("aria-labelledby",b.contentAriaLabelledBy());x(3);wh(b2c(b));x();I("ngIf",b.valueTemplate)("ngIfElse",a);x(5);I("ngIf",b.displayArrowIcon);x();I("relayOnly",
!0);x(2);th("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:[Rv,Sv,YN,AU,ZN,$N],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 Xfb=function(){return[]},CU=function(){this.data=r(QJ);this.dialogRef=r(KJ);this.customFields=[];this.originalCustomFields=new Map;this.repeatedCustomFieldsMap=new Map;this.issues=this.data;this.bulkEditOps=[]};g=CU.prototype;
g.ngOnInit=function(){for(var a=new Map,b=null,c=l(this.issues),d=c.next();!d.done;d=c.next()){var e=d.value;d=e.customFieldMap;e=e.customFieldValueMap;if(!b){b=new Map;for(var f=l(Object.keys(d)),h=f.next();!h.done;h=f.next())h=h.value,b.set(kj(h),e[h]||void 0)}f=l(b);for(h=f.next();!h.done;h=f.next()){var k=l(h.value);h=k.next().value;k=k.next().value;var q=d[h],v=e[h],A=void 0,E=(A=q)==null?void 0:A.type;if(q)if(E==="REPEATED_DATE"||E==="REPEATED_ENUM"||E==="REPEATED_NUMERIC"||E==="REPEATED_TEXT"){k=
this.repeatedCustomFieldsMap.get(h)||new Map;q=k.size===0;v=c2c(v);A=Array.from(k.keys()).concat(v);A=l(A);for(E=A.next();!E.done;E=A.next())E=E.value,v.includes(E)?k.has(E)||k.set(E,q||null):k.set(E,null);this.repeatedCustomFieldsMap.set(h,k)}else(!v&&k!==void 0||v&&!gj(v,k))&&b.set(h,null);else b.delete(h)}d=l(Object.entries(d));for(e=d.next();!e.done;e=d.next())f=l(e.value),e=f.next().value,f=f.next().value,a.set(Number(e),hj(f))}this.customFields=Array.from(b.keys()).map(function(H){return a.get(H)}).filter(function(H){return H});
this.customFields=this.customFields.map(function(H){var L=b.get(H.customFieldId);H.hasMultipleValues=L===null;L?H=Object.assign(L,H):H.hasMultipleValues||H.type!=="ENUM"||(H.enumValue="");return H});c=l(this.customFields);for(d=c.next();!d.done;d=c.next())d=d.value,this.originalCustomFields.set(d.customFieldId,hj(d))};
g.clearCustomFieldValue=function(a){a.hasMultipleValues=!1;switch(a.type){case "TEXT":a.textValue="";break;case "DATE":a.dateValue=null;break;case "ENUM":a.enumValue="";break;case "NUMERIC":a.numericValue=null}};g.getCustomFieldName=function(a){return a.name};g.isCustomFieldRequired=function(a){return a.required};g.getCustomFieldAllowedValues=function(a){return a.allowedValue};g.getCustomFieldType=function(a){return a.type};
var Sfb=function(a){return"bv2-custom-field-"+a.customFieldId+"-label"},c2c=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()}):[]},Vfb=function(a){return a?Il(a):null},Zfb=function(a,b,c){for(var d=l(a.bulkEditOps),e=d.next();!e.done;e=d.next())e=e.value,e.actions=e.actions.filter(function(A){return A.customFieldValue.customFieldId!==
b});a.bulkEditOps=a.bulkEditOps.filter(function(A){return A.actions.length});if(c.valueChanged){d=l(a.issues);var f=d.next();for(e={};!f.done;e={issueValues$jscomp$1:void 0,action$jscomp$127:void 0},f=d.next()){f=f.value;var h=Kra(f.customFieldValueMap,function(A){return A.customFieldId===b});e.issueValues$jscomp$1=c2c(h);c.valueMap.forEach(function(A){return function(E,H){E&&!A.issueValues$jscomp$1.includes(H)?A.issueValues$jscomp$1.push(H):E===!1&&(A.issueValues$jscomp$1=A.issueValues$jscomp$1.filter(function(L){return L!==
H}))}}(e));h=a.originalCustomFields.get(b).type;var k=[],q=[];h=="REPEATED_DATE"?k=e.issueValues$jscomp$1.map(function(A){return Swa(lsa(A))}):h=="REPEATED_NUMERIC"&&(q=e.issueValues$jscomp$1.map(function(A){return Number(A)}));var v={customFieldId:b};switch(h){case "REPEATED_TEXT":v.repeatedTextValue={values:e.issueValues$jscomp$1};break;case "REPEATED_DATE":v.repeatedDateValue={values:k};break;case "REPEATED_ENUM":v.repeatedEnumValue={values:e.issueValues$jscomp$1};break;case "REPEATED_NUMERIC":v.repeatedNumericValue=
{values:q}}e.action$jscomp$127={fieldName:"customField",customFieldValue:v,actionType:zo(v)?"REMOVE":"ADD"};h=a.bulkEditOps.findIndex(function(A){return function(E){return E.actions.some(function(H){return gj(A.action$jscomp$127,H)})}}(e));h!==-1?a.bulkEditOps[h].issueIds.push(f.issueId):a.bulkEditOps.push({actions:[e.action$jscomp$127],issueIds:[f.issueId]})}}},d2c=function(a){var b=a.customFields.filter(function(k){return!k.type.includes("REPEATED")&&!gj(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=zo(d))d.textValue="";c.push({fieldName:"customField",customFieldValue:d,actionType:e?"REMOVE":"ADD"})}if(c.length){var h=a.issues.map(function(k){return k.issueId});b=a.bulkEditOps.findIndex(function(k){a:if(k=
k.issueIds,Ka(h)&&Ka(k)&&h.length==k.length){for(var q=h.length,v=0;v<q;v++)if(h[v]!==k[v]){k=!1;break a}k=!0}else k=!1;return k});b!==-1?a.bulkEditOps[b].actions=a.bulkEditOps[b].actions.concat(c):a.bulkEditOps.push({actions:c,issueIds:h})}};CU.\u0275fac=function(a){return new (a||CU)};
CU.\u0275cmp=y({type:CU,selectors:[["b-bulk-custom-field-dialog"]],standalone:!1,decls:11,vars:1,consts:[["mat-dialog-title",""],[1,"bv2-create-adv-field"],["mat-button","","mat-dialog-close","","type","button",3,"class"],["mat-flat-button","","type","button","color","primary",1,"medium","dialog-primary-action","save",3,"click"],[1,"bv2-top-field-label"],["matTooltipPosition","right",3,"matTooltip"],["name","customInput","placeholder","no value","type","text",3,"ngModel"],["step","any","name","customInput",
"type","number",3,"ngModel"],[3,"value","options","labelledById"],[3,"type","originalValueMap","enumChoices"],["name","customInput","placeholder","no value","type","text",3,"ngModelChange","ngModel"],["step","any","name","customInput","type","number",3,"ngModelChange","ngModel"],[3,"valueChange","value","required","customAriaLabelledBy","customFormId"],[3,"valueChange","value","options","labelledById"],[3,"onSave","type","originalValueMap","enumChoices"],["title","Clear values",3,"click"]],template:function(a,
b){a&1&&(J(0,"h2",0),R(1,"Update custom fields"),K(),J(2,"mat-dialog-content"),F(3,Qfb,2,0,"div"),Pg(4,cgb,7,5,"div",1,Og),K(),J(6,"mat-dialog-actions")(7,"button",2),N("class",function(){return b.dialogRef.close()}),R(8,"Cancel"),K(),J(9,"button",3),N("click",function(){d2c(b);b.bulkEditOps.length?b.dialogRef.close(b.bulkEditOps):b.dialogRef.close()}),R(10," Save "),K()());a&2&&(x(3),G(b.customFields.length===0?3:-1),x(),Qg(b.customFields))},dependencies:[SJ,UJ,WJ,VJ,BU,xU,Ui,my,dy,ky,wU,oG,Jx,zG,
xG],encapsulation:2});var ggb=function(){return[]},DU=function(){this.disabled=this.readonly=!1;this.save=new LE},e2c=function(a){return a.issue.customFieldMap[a.field.customFieldId]};DU.prototype.getDisplayValue=function(){var a,b,c=(b=(a=e2c(this).displayValues)==null?void 0:a[0])!=null?b:null;c==="0.0"&&(c="0");return c};DU.prototype.getTooltip=function(){var a=this.field.customFieldId;a=this.field.shared?"(Shared Field "+a+". see go/b-scf)":"[ID: "+a+"]";var b;return((b=this.field.description)!=null?b:"")+" "+a};
var fgb=function(a){return(a=yo(e2c(a)))&&a.values===void 0?a:null},dgb=function(a){return(a=yo(e2c(a)))&&a.values!==void 0?a.values:null};nd.Object.defineProperties(DU.prototype,{isShared:{configurable:!0,enumerable:!0,get:function(){return this.field.shared}}});DU.\u0275fac=function(a){return new (a||DU)};
DU.\u0275cmp=y({type:DU,selectors:[["b-custom-field-editor"]],viewQuery:function(a,b){a&1&&hh(BL,5);if(a&2){var c;lh(c=mh())&&(b.editField=c.first)}},hostVars:2,hostBindings:function(a,b){a&2&&uh("is-shared-field",b.isShared)},inputs:{issue:"issue",field:"field",readonly:"readonly",disabled:"disabled"},outputs:{save:"save"},standalone:!1,decls:1,vars:1,consts:[[3,"readonly","defaultLineCount","title","type","customFieldId","tooltip","values","displayValuesOverride","enumChoices","listFieldDisabled"],
[3,"readonly","name","title","type","tooltip","clearable","value","displayValueOverride","choices","showEnumTitle","disabled","customFieldId"],[3,"valuesChange","readonly","defaultLineCount","title","type","customFieldId","tooltip","values","displayValuesOverride","enumChoices","listFieldDisabled"],[3,"valueChange","readonly","name","title","type","tooltip","clearable","value","displayValueOverride","choices","showEnumTitle","disabled","customFieldId"]],template:function(a,b){a&1&&F(0,jgb,2,1);if(a&
2){var c;G((c=e2c(b))?0:-1,c)}},dependencies:[OM,BL],encapsulation:2});var EU=function(){};EU.\u0275fac=function(a){return new (a||EU)};EU.\u0275mod=uf({type:EU});EU.\u0275inj=Dd({imports:[HC,PM,DL]});var kgb=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 FU=function(){Z.apply(this,arguments);var a=this;this.componentFridge=r(BB);this.editIssueService=r(RK);this.issueFridge=r(iE);this.matDialog=r(RJ);this.paramsService=r(CK);this.triageService=r(nG);this.hasMultipleIssues=!1;this.subphase=this.phase=void 0;this.onCustomFieldBulkEdit=new LE;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(xg(function(b){return a.issueFridge.watchSet(b)}));this.components$=this.issues$.pipe(xg(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 Kn([]);this.issueRows$=Uf([this.issues$,this.components$]).pipe(C(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$237:void 0},e=c.next())f.issue$jscomp$237=
e.value,e=b.find(function(h){return function(k){return k.componentId===h.issue$jscomp$237.snapshot[0].componentId}}(f)),d.push(mgb(f.issue$jscomp$237,e));return d}));this.updatedIssueRows$=Uf([this.issueRows$,this.bulkEditUpdate$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return c.length?f2c(b,c):b}));this.customFieldConfigs$=Xzc(this.triageService.triageDataFactory.get(this.teamId,this.triageViewId),this.phase,this.subphase);this.visibleCustomFields$=this.issueId$.pipe(xg(function(b){return b?
a.editIssueService.issueFields(b).visibleCustomFields$:Nf(void 0)}));this.customFields$=Uf([this.visibleCustomFields$,this.customFieldConfigs$]).pipe(C(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}),ug({refCount:!0,bufferSize:1}))};Y(FU,Z);FU.\u0275dir=Z.\u0275dir;
FU.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 ngb=function(a,b){var c,d;return z(function(e){if(e.nextAddress==1)return c=a.matDialog.open(CU,{data:b,width:"500px"}),B(e,Rf(LJ(c)),2);d=e.yieldResult;if(!d)return e.return();a.onCustomFieldBulkEdit.emit(d);a.bulkEditUpdate$.next(d);Lf(e)})};FU.prototype.updateCustomField=function(a,b){this.editableIssue.setCustomField(a,b)};
var f2c=function(a,b){b=l(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.issueIds;d=l(d.actions);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.fieldName==="customField"&&(e=e.customFieldValue))for(var f=e.customFieldId,h=l(c),k=h.next(),q={};!k.done;q={issueId$jscomp$332:void 0},k=h.next())q.issueId$jscomp$332=k.value,(k=a.find(function(v){return function(A){return A.issueId===v.issueId$jscomp$332}}(q)))&&(k.customFieldValueMap[f]=e)}return a};
FU.\u0275fac=function(){var a;return function(b){return(a||(a=Re(FU)))(b||FU)}}();
FU.\u0275cmp=y({type:FU,selectors:[["triage-custom-fields-editor"]],inputs:{editableIssue:"editableIssue",hasMultipleIssues:"hasMultipleIssues",phase:"phase",subphase:"subphase"},outputs:{onCustomFieldBulkEdit:"onCustomFieldBulkEdit"},standalone:!1,features:[Bg],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,pgb,2,3)(1,rgb,3,2);a&2&&G(b.hasMultipleIssues?0:1)},dependencies:[DU,oG,Jx,Tv],encapsulation:2,changeDetection:0});var g2c=new le("SearchBarClientConfig");var GU=function(a){var b=new tSc;a.peopleApiEnv&&b.setPeopleApiEnv(a.peopleApiEnv);a.apiKey&&b.setApiKey(a.apiKey);this.peopleStore=a.peopleStoreClient.create(b);this.peopleStore.warmUpCache();this.environmentConfig=new eEc(b.getPeopleApiEnv(),new fEc(""))};GU.\u0275fac=function(a){return new (a||GU)(be(g2c))};GU.\u0275prov=Cd({token:GU,factory:GU.\u0275fac});var HU=function(a,b,c){this.clientConfig=a;this.searchBarService=b;this.searchBarEl=c;this.selectionChange=new nq;this.enterKeyDown=new nq;this.sessionOptions=(new et).setFilter(h2c);this.destroyed$=new sg(1)};g=HU.prototype;g.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.searchBar.dispose()};g.select=function(a){return this.searchBar.select(a)};g.deselect=function(a){this.searchBar.deselect(a)};g.focus=function(){this.searchBar.focus()};
g.ngOnInit=function(){var a=this,b=this.clientConfig.searchBarFactory.createConfig(this.searchBarService.environmentConfig);sgb(b,this.config);var c;this.searchBar=(c=this.clientConfig.searchBarFactory)==null?void 0:c.create(this.searchBarEl.nativeElement,this.searchBarService.peopleStore,b,this.sessionOptions);this.searchBar.subscribeToSelectionChanged(function(e){a.selectionChange.emit(e)});this.searchBar.subscribeToEnterKeyDown(function(e){a.enterKeyDown.emit(e)});var d;((d=this.config)==null?
void 0:d.preselectedIds)!=null&&this.searchBar.select(this.config.preselectedIds)};HU.\u0275fac=function(a){return new (a||HU)(of(g2c),of(GU),of(Te))};
HU.\u0275dir=vf({type:HU,selectors:[["div","peoplekitSearchBar",""]],hostAttrs:[1,"peoplekit-searchbar-anchor"],inputs:{config:[0,"peoplekitSearchBarConfig","config"],sessionOptions:[0,"peoplekitSearchSessionOptions","sessionOptions"]},outputs:{selectionChange:"peoplekitSearchBarSelectionChange",enterKeyDown:"peoplekitSearchBarEnterKeyDown"},exportAs:["peoplekitSearchBar"],standalone:!1});var h2c=hYa(1);var i2c=["peopleKitDiv"],IU=function(){this.currEmails=[];this.lastSelectedEmails=new Set;this.autocompleteConfigService=r(GO);this.destroyRef=r(Gg);this.darkmodeService=r(FO);this.emails$=new Kn([]);this.refresh$=dg(this.darkmodeService.clientDarkmode$).pipe(C(function(){}));this.ariaLabel="";this.shouldHighlight=!1;this.sessionOptions=(new et).setFilter(mSc);this.emailsChange=new LE;this.searchBarEnterKeyDown=new LE};
IU.prototype.ngAfterViewInit=function(){var a=this;this.emails$.pipe(lp(this.destroyRef)).subscribe(function(b){var c=new Set(b);b=[].concat(p(a.lastSelectedEmails)).filter(function(h){return!c.has(h)});var d=[].concat(p(c)).filter(function(h){return!a.lastSelectedEmails.has(h)}),e;(e=a.peopleKitDiv)==null||e.deselect(b.map(Gt));var f;(f=a.peopleKitDiv)==null||f.select(d.map(Gt));a.lastSelectedEmails=c})};IU.prototype.focus=function(){var a;(a=this.peopleKitDiv)==null||a.focus()};
nd.Object.defineProperties(IU.prototype,{emails:{configurable:!0,enumerable:!0,set:function(a){Isa(this.currEmails,a!=null?a:[])||(this.currEmails=a!=null?a:[],this.emails$.next(a!=null?a:[]))}}});IU.\u0275fac=function(a){return new (a||IU)};
IU.\u0275cmp=y({type:IU,selectors:[["b-peoplekit-searchbar"]],viewQuery:function(a,b){a&1&&(hh(i2c,5,HU),hh(i2c,5));if(a&2){var c;lh(c=mh())&&(b.peopleKitDiv=c.first);lh(c=mh())&&(b.peopleKitRawDiv=c)}},inputs:{ariaLabel:"ariaLabel",shouldHighlight:"shouldHighlight",emails:"emails"},outputs:{emailsChange:"emailsChange",searchBarEnterKeyDown:"searchBarEnterKeyDown"},standalone:!1,decls:1,vars:1,consts:[["peopleKitDiv",""],[3,"refreshable"],["type","text","aria-expanded","true","peoplekitSearchBar",
"",3,"peoplekitSearchBarSelectionChange","peoplekitSearchBarEnterKeyDown","peoplekitSearchBarConfig","peoplekitSearchSessionOptions"]],template:function(a,b){a&1&&D(0,vgb,2,5,"ng-template",1);a&2&&I("refreshable",b.refresh$)},dependencies:[TG,HU],encapsulation:2,changeDetection:0});var j2c=["peopleKitDiv"],JU=function(){this.cdr=r(Hv);this.activeSession=r(Bs);this.destroyRef=r(Gg);this.autocompleteConfigService=r(GO);this.actionName="Addition";this.inputValidator=null;this.title="";this.onAddItems=new LE;this.onCancel=new LE;this.newlySelectedUsersString=this.invalidMessage="";this.enablePeoplekitAc=OA(this.activeSession,"enablePeoplekitUserAc")};JU.prototype.emailsChange=function(a){this.newlySelectedUsersString=a.join(",")};
JU.prototype.textPopupSubmit=function(a,b){var c=this,d,e,f,h,k;return z(function(q){c.enablePeoplekitAc?(h=[c.newlySelectedUsersString,(f=(e=c.peopleKitDiv)==null?void 0:e.peopleKitRawDiv.get(0).nativeElement.querySelector("input").value)!=null?f:""].filter(Boolean),d=pMa(h.join(","))):d=a.value.input;k=Yf(function(){return c.inputValidator?c.inputValidator(d):Nf("")});k.pipe(mg(1),lp(c.destroyRef)).subscribe(function(v){c.invalidMessage=v;if(a.valid&&!c.invalidMessage){a==null||a.reset();if(c.enablePeoplekitAc){var A;
(A=c.peopleKitDiv)==null||A.focus()}else{var E;(E=b.querySelector("input"))==null||E.focus()}c.onAddItems.emit(d);c.newlySelectedUsersString=""}c.cdr.markForCheck()});Lf(q)})};JU.\u0275fac=function(a){return new (a||JU)};
JU.\u0275cmp=y({type:JU,selectors:[["b-person-lookup-form"]],viewQuery:function(a,b){a&1&&hh(j2c,5,IU);if(a&2){var c;lh(c=mh())&&(b.peopleKitDiv=c.first)}},inputs:{actionName:"actionName",isAllowedToEditCollection:"isAllowedToEditCollection",inputValidator:"inputValidator",title:"title"},outputs:{onAddItems:"onAddItems",onCancel:"onCancel"},standalone:!1,decls:11,vars:9,consts:[["textPopupForm","ngForm","formEl",""],["peopleKitDiv",""],[3,"ngSubmit"],["type","text","name","input","ngModel","","required",
"","aria-expanded","true","autofocus","",3,"bContactAutocomplete"],["aria-expanded","true"],[1,"bv2-list-field-addition-dialog-buttons"],["mat-flat-button","","type","submit",1,"medium","field-popup-button",3,"disabled"],["svgIcon","done"],["mat-stroked-button","","type","button",1,"medium","field-popup-button",3,"click"],["svgIcon","close"],["aria-expanded","true",3,"emailsChange","searchBarEnterKeyDown"]],template:function(a,b){if(a&1){var c=t();J(0,"form",2,0);N("ngSubmit",function(){u(c);var d=
Q(1),e=Q(2);return w(b.textPopupSubmit(d,e))});F(3,wgb,1,4,"input",3)(4,xgb,2,3,"b-peoplekit-searchbar",4);J(5,"div",5)(6,"button",6);M(7,"mat-icon",7);K();J(8,"button",8);N("click",function(){u(c);return w(b.onCancel.emit())});M(9,"mat-icon",9);K()();F(10,ygb,2,4,"mat-error");K()}a&2&&(a=Q(1),x(3),G(b.enablePeoplekitAc?4:3),x(3),Lg("aria-label",Eh("Apply ",b.actionName," to ",b.title)),I("disabled",!a.valid||!b.isAllowedToEditCollection),x(2),Lg("aria-label",Eh("Discard ",b.actionName," to ",b.title)),
x(2),G(b.invalidMessage?10:-1))},dependencies:[FC,zI,ly,Ui,dy,ey,vy,ky,iy,oG,Jx,Dy,IU],encapsulation:2,changeDetection:0});var k2c=["addButton"],l2c=["removeButton"],KU=function(){this.inputValidator=null;this.title=this.subtitle="";this.addCurrentUser=new LE;this.removeCurrentUser=new LE;this.onAddUsers=new LE;this.onRemoveUsers=new LE};KU.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 Bgb=function(a){var b,c=l((b=a.popupTriggers)!=null?b:[]);for(b=c.next();!b.done;b=c.next())a.closeInlineDialog(b.value)};
KU.prototype.handleAddItems=function(a){Agb(a,this.onAddUsers);this.closeAddPopup()};KU.prototype.closeInlineDialog=function(a){a.disabled||(a.disabled=!0,a.disabled=!1)};var Agb=function(a,b){a&&(a=a.split(/[,; ]/).filter(function(c){return!!c}),a.length&&b.emit(a))};KU.\u0275fac=function(a){return new (a||KU)};
KU.\u0275cmp=y({type:KU,selectors:[["triage-edit-user-buttons"]],viewQuery:function(a,b){a&1&&(hh(k2c,5),hh(l2c,5),hh(yM,5));if(a&2){var c;lh(c=mh())&&(b.addButtonEl=c.first);lh(c=mh())&&(b.removeButtonEl=c.first);lh(c=mh())&&(b.popupTriggers=c)}},inputs:{inputValidator:"inputValidator",isAllowedToEditCollection:"isAllowedToEditCollection",subtitle:"subtitle",title:"title"},outputs:{addCurrentUser:"addCurrentUser",removeCurrentUser:"removeCurrentUser",onAddUsers:"onAddUsers",onRemoveUsers:"onRemoveUsers"},
standalone:!1,decls:22,vars:12,consts:[["addButton",""],["removeButton",""],["addUsersPopup",""],["removeUsersPopup",""],[1,"bv2-issue-metadata-list-field","bv2-issue-metadata-field"],[1,"bv2-issue-metadata-field-inner","align-items-center"],[1,"bv2-editable-title"],[1,"subtitle"],[1,"flex-kids-x","gap"],["type","button","mat-button","",1,"small",3,"xapInlineDialogClick","dialogLabel"],["type","button","mat-button","",1,"gmat-button","small",3,"click","disabled"],[3,"onAddItems","onCancel","actionName",
"inputValidator","isAllowedToEditCollection","title"]],template:function(a,b){if(a&1){var c=t();J(0,"div",4)(1,"div",5)(2,"div",6)(3,"label");R(4);K()();J(5,"div",7);R(6);K();J(7,"div",8)(8,"button",9,0);R(10," Add ");K();J(11,"button",9,1);R(13," Remove ");K();J(14,"button",10);N("click",function(){u(c);return w(b.addCurrentUser.emit())});R(15," Add me ");K();J(16,"button",10);N("click",function(){u(c);return w(b.removeCurrentUser.emit())});R(17," Remove me ");K()()()();D(18,zgb,3,4,"ng-template",
null,2,Lh)(20,Cgb,3,4,"ng-template",null,3,Lh)}if(a&2){a=Q(19);var d=Q(21);x(4);T(" ",b.title," ");x(2);wh(b.subtitle);x(2);I("dialogLabel",Dh("Add users to ",b.title))("xapInlineDialogClick",a);x(3);I("dialogLabel",Dh("Remove users from ",b.title))("xapInlineDialogClick",d);x(3);I("disabled",!b.isAllowedToEditCollection);Lg("aria-label","Add me to "+b.title);x(2);I("disabled",!b.isAllowedToEditCollection);Lg("aria-label","Remove me from "+b.title)}},dependencies:[oG,Jx,JU,uM,tM,yM],styles:[".subtitle[_ngcontent-%COMP%]{cursor:default}.subtitle[_ngcontent-%COMP%]:hover{cursor:default}\n/*# sourceMappingURL=edit_user_buttons.css.map */"],
changeDetection:0});var Jgb=function(a,b){return b.name},LU=function(){Z.apply(this,arguments);var a=this;this.hotlistPickerService=r(jS);this.issueFullFridge=r(TE);this.paramsService=r(CK);this.triageService=r(nG);this.issueRecommendationFridge=r($E);this.analytics=r(RE);this.hotlistIdsChange=new LE;this.hotlistIdsMapChange=new LE;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(eg(Qj),og());this.issue$=this.issueId$.pipe(xg(function(b){return a.issueFullFridge.watch(b)}));this.issueIds$=this.triageService.currentIssueIds$.pipe(eg(Qj),og());this.issues$=this.issueIds$.pipe(xg(function(b){return a.issueFullFridge.watchSet(b)}));this.recommendations$=this.issueId$.pipe(xg(function(b){return a.issueRecommendationFridge.watch(b+"-HOTLIST")}),C(function(b){return((b==null?void 0:
b.recommendations)||[]).filter(function(c){return c.confidence==="VERY_HIGH"}).filter(Qj).slice(0,2)}))};Y(LU,Z);LU.\u0275dir=Z.\u0275dir;
LU.prototype.ngOnInit=function(){var a=this,b,c,d,e,f,h,k,q,v,A,E,H,L,O,S;return z(function(aa){if(aa.nextAddress==1)return B(aa,Rf(a.issue$),2);if(aa.nextAddress!=3)return b=aa.yieldResult,B(aa,Rf(a.issues$),3);d=(c=aa.yieldResult)!=null?c:[];a.hasMultipleIssues=d.length>1;q=(k=(e=b)==null?void 0:(f=e.snapshot[0])==null?void 0:(h=f.hotlistId)==null?void 0:h.map(String))!=null?k:[];a.hotlistIdSet=new Set(q);a.hotlistIdsChange.emit([].concat(p(a.hotlistIdSet)));v=l(d);for(A=v.next();!A.done;A=v.next())E=
A.value,O=L=H=void 0,S=(O=(H=E)==null?void 0:(L=H.snapshot[0])==null?void 0:L.hotlistId)!=null?O:[],a.selectedHotlistIdsMap.set(E.issueId.toString(),new Set(S.map(String)));a.areAllHotlistsEqual=m2c(a);a.subscriptions.add(Yzc(a.triageService.triageDataFactory.get(a.teamId,a.triageViewId),a.phase,a.subphase).subscribe(function(ka){var na=[],za=[];ka=l(ka);for(var Na=ka.next();!Na.done;Na=ka.next())Na=Na.value,Na.operation==="ADD"&&na.push.apply(na,p(Na.hotlistIds)),Na.operation==="REMOVE"&&za.push.apply(za,
p(Na.hotlistIds));na.length&&a.addHotlists(na);za.length&&a.removeHotlists(za)}));a.subscriptions.add(a.recommendations$.pipe(mg(1)).subscribe(function(ka){ka.length>0&&a.analytics.trackEvent("hotlistRecommendation","display","Triage")}));Lf(aa)})};LU.prototype.openHotlistModal=function(){this.hasMultipleIssues?Lgb(this):n2c(this)};
var n2c=function(a){var b,c,d,e,f;z(function(h){if(h.nextAddress==1)return B(h,Rf(a.issueId$),2);if(h.nextAddress!=3)return b=h.yieldResult,B(h,bYc(a.hotlistPickerService,b,[].concat(p(a.hotlistIdSet)).map(Number),!1),3);c=h.yieldResult;if(!c)return h.return();d=c;e=d.addedIds;f=d.removedIds;e.length>0&&a.addHotlists(e);f.length>0&&a.removeHotlists(f);Lf(h)})},Lgb=function(a){var b,c,d,e,f,h,k,q,v,A,E,H,L;return z(function(O){if(O.nextAddress==1)return B(O,Rf(a.issueIds$),2);if(O.nextAddress!=3){b=
O.yieldResult;c=new Map;d=l(a.selectedHotlistIdsMap.entries());for(e=d.next();!e.done;e=d.next())f=e.value,h=l(f),k=h.next().value,q=h.next().value,v=k,A=q,c.set(v,new Set([].concat(p(A)).map(Number)));return B(O,gYc(a.hotlistPickerService,c),3)}E=O.yieldResult;if(!E)return O.return();o2c(a,E);a.areAllHotlistsEqual=m2c(a);a.areAllHotlistsEqual&&((H=a.selectedHotlistIdsMap.get(b[0]))?(L=[].concat(p(H)).map(String),a.hotlistIdSet=new Set(L)):a.hotlistIdSet.clear());Lf(O)})};
LU.prototype.addHotlists=function(a){for(var b=l(a),c=b.next();!c.done;c=b.next())this.hotlistIdSet.add(c.value);this.updateSelectedHotlists(function(d){for(var e=l(a),f=e.next();!f.done;f=e.next())d.add(f.value)});this.hotlistIdsChange.emit([].concat(p(this.hotlistIdSet)))};LU.prototype.removeHotlists=function(a){for(var b=l(a),c=b.next();!c.done;c=b.next())this.hotlistIdSet.delete(c.value);this.updateSelectedHotlists(function(d){for(var e=l(a),f=e.next();!f.done;f=e.next())d.delete(f.value)});this.hotlistIdsChange.emit([].concat(p(this.hotlistIdSet)))};
var Ggb=function(a,b){var c,d,e,f=b==null?void 0:(c=b.content)==null?void 0:(d=c.recommendedHotlist)==null?void 0:(e=d.hotlistId)==null?void 0:e.toString();f&&!a.hotlistIdSet.has(f)&&a.hotlistIdSet.add(f);a.updateSelectedHotlists(function(h){f&&h.add(f)});a.hotlistIdsChange.emit([].concat(p(a.hotlistIdSet)))},m2c=function(a){if(a.selectedHotlistIdsMap.size<2)return!0;var b=[].concat(p(a.selectedHotlistIdsMap.values()));a=b[0];b=l(b);for(var c=b.next();!c.done;c=b.next())if(!Wra(a,c.value))return!1;
return!0},o2c=function(a,b){b=b.issueMapDiffs;for(var c=l(b.values()),d=c.next(),e={};!d.done;e={added$jscomp$11:void 0,removed$jscomp$8:void 0},d=c.next())d=d.value,e.added$jscomp$11=d.added,e.removed$jscomp$8=d.removed,a.updateSelectedHotlists(function(f){return function(h){for(var k=l(f.added$jscomp$11),q=k.next();!q.done;q=k.next())h.add(q.value.toString());k=l(f.removed$jscomp$8);for(q=k.next();!q.done;q=k.next())h.delete(q.value.toString())}}(e));a.hotlistIdsMapChange.emit(b)};
LU.prototype.updateSelectedHotlists=function(a){var b=[].concat(p(this.selectedHotlistIdsMap.values()));b=l(b);for(var c=b.next();!c.done;c=b.next())a(c.value)};LU.\u0275fac=function(){var a;return function(b){return(a||(a=Re(LU)))(b||LU)}}();
LU.\u0275cmp=y({type:LU,selectors:[["triage-hotlists-editor"]],inputs:{phase:"phase",subphase:"subphase"},outputs:{hotlistIdsChange:"hotlistIdsChange",hotlistIdsMapChange:"hotlistIdsMapChange"},standalone:!1,features:[Bg],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,Mgb,12,4,"div",0),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.issue$))?0:-1,c)}},dependencies:[FC,oG,Jx,zG,xG,JT,NT,Tv],styles:["button.add-hotlists-btn[_ngcontent-%COMP%]{margin-right:8px}"]});var MU=function(){var a=this;this.elementRef=r(Te);this.eventType="click";this.clickOutside=new LE;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))}};MU.prototype.ngOnInit=function(){document.addEventListener(this.eventType,this.clickHandler,!0)};
MU.prototype.ngOnDestroy=function(){document.removeEventListener(this.eventType,this.clickHandler,!0)};MU.\u0275fac=function(a){return new (a||MU)};MU.\u0275dir=vf({type:MU,selectors:[["","clickOutside",""]],inputs:{eventType:[0,"clickOutsideEvent","eventType"]},outputs:{clickOutside:"clickOutside"},standalone:!1});var NU=function(){};NU.\u0275fac=function(a){return new (a||NU)};NU.\u0275mod=uf({type:NU});NU.\u0275inj=Dd({});var OU=function(){};OU.\u0275fac=function(a){return new (a||OU)};OU.\u0275mod=uf({type:OU});OU.\u0275inj=Dd({imports:[lM,HC,AI,Ay,ox,NU,yH,hQ,QN,BG,CG,gL,yQ]});var PU=function(){};PU.\u0275fac=function(a){return new (a||PU)};PU.\u0275mod=uf({type:PU});PU.\u0275inj=Dd({imports:[HC,BG,qQ]});var QU=function(){};QU.\u0275fac=function(a){return new (a||QU)};QU.\u0275mod=uf({type:QU});QU.\u0275inj=Dd({imports:[PQ,HC,BG,SQ,tJ,CG,PU]});var RU=function(){};RU.\u0275fac=function(a){return new (a||RU)};RU.\u0275mod=uf({type:RU});RU.\u0275inj=Dd({imports:[px,px]});var SU=function(){};SU.\u0275fac=function(a){return new (a||SU)};SU.\u0275mod=uf({type:SU});SU.\u0275inj=Dd({imports:[HC,BG,RU]});var TU=function(){};TU.\u0275fac=function(a){return new (a||TU)};TU.\u0275mod=uf({type:TU});TU.\u0275inj=Dd({imports:[HC,BG,tJ,SU]});var UU=function(){};UU.\u0275fac=function(a){return new (a||UU)};UU.\u0275mod=uf({type:UU});UU.\u0275inj=Dd({imports:[HC]});var VU=function(){};VU.\u0275fac=function(a){return new (a||VU)};VU.\u0275mod=uf({type:VU});VU.\u0275inj=Dd({imports:[HC,tJ,UU,TU,BG]});var WU=function(){};WU.\u0275fac=function(a){return new (a||WU)};WU.\u0275mod=uf({type:WU});WU.\u0275inj=Dd({imports:[aw,Bw,ox,kx,sJ]});var XU=function(){};XU.\u0275fac=function(a){return new (a||XU)};XU.\u0275mod=uf({type:XU});XU.\u0275inj=Dd({imports:[aw,Ay,WU,yQ]});var YU=function(){};YU.\u0275fac=function(a){return new (a||YU)};YU.\u0275mod=uf({type:YU});YU.\u0275inj=Dd({imports:[HC,hL,XU]});var p2c=["input"],q2c=["underlay"],ZU=function(){this.logic=r(OR);this.viewContainer=r(fh);this.elementRef=r(Te);this.injector=r(Cg);this.environmentInjector=r(pf);this.placeholderPrefix="";this.candidateDenylist=[]};
ZU.prototype.ngOnInit=function(){var a=this,b=this.viewContainer.createComponent($U,{injector:this.injector,environmentInjector:this.environmentInjector}),c=this.viewContainer.createComponent(r2c,{injector:this.injector,environmentInjector:this.environmentInjector});this.logic.initialize({placeholderPrefix:this.placeholderPrefix,candidateDenylist:this.candidateDenylist,isMentionAutocompleteEnabled:function(){return!0},getTextarea:function(){return a.elementRef.nativeElement},focusOnComponent:function(){a.elementRef.nativeElement.focus()},
emitContentChange:function(){},getHiddenInput:function(){var d;return(d=b.instance.input)==null?void 0:d.nativeElement},getAutocompleteUnderlay:function(){var d;return(d=c.instance.underlay)==null?void 0:d.nativeElement}})};ZU.prototype.handlePeoplePickerSelection=function(a){a.length>0&&(a=a[0].result().getPrimaryTarget().getValue(),sXc(this.logic,this.placeholderPrefix+a),PR(this.logic),this.elementRef.nativeElement.focus())};ZU.prototype.handleKeyUp=function(a){this.logic.textAreaKeyUp(a)};
ZU.prototype.handleScroll=function(){this.logic.synchronizeScrolling()};ZU.\u0275fac=function(a){return new (a||ZU)};
ZU.\u0275dir=vf({type:ZU,selectors:[["input","bPeoplekitEmailAutocomplete",""],["textarea","bPeoplekitEmailAutocomplete",""]],hostBindings:function(a,b){a&1&&N("keydown",function(c){b.logic.textAreaKeyDown(c)})("keyup",function(c){return b.handleKeyUp(c)})("scroll",function(){return b.handleScroll()})},inputs:{placeholderPrefix:"placeholderPrefix",candidateDenylist:"candidateDenylist"},standalone:!1,features:[Fh([OR])]});
var $U=function(){this.autocompleteConfigService=r(GO);this.darkmodeService=r(FO);this.destroyRef=r(Gg);this.parent=r(ZU);this.refresh$=this.darkmodeService.clientDarkmode$.pipe(C(function(){}));this.logic=this.parent.logic;this.autocompleteTop$=this.logic.autocompleteTop$;this.autocompleteLeft$=this.logic.autocompleteLeft$;this.taggingInProgress$=this.logic.taggingInProgress$;this.autocompleteUserName$=this.logic.autocompleteUserName$;this.sessionOptions=(new et).setFilter(mSc)};
$U.prototype.ngOnInit=function(){var a=this;Uf([this.taggingInProgress$,this.autocompleteUserName$]).pipe(ng(0),lp(this.destroyRef)).subscribe(function(b){var c=l(b);b=c.next().value;c=c.next().value;if(b){var d;if((d=a.input)==null?0:d.nativeElement)d=a.input.nativeElement,d.value!==c&&(d.value=c,d.dispatchEvent(new Event("input")))}})};$U.prototype.getConfig=function(){return tYa(this.autocompleteConfigService)};$U.\u0275fac=function(a){return new (a||$U)};
$U.\u0275cmp=y({type:$U,selectors:[["b-hidden-input"]],viewQuery:function(a,b){a&1&&hh(p2c,5);if(a&2){var c;lh(c=mh())&&(b.input=c.first)}},standalone:!1,decls:2,vars:3,consts:[["input",""],[3,"refreshable"],["inert","","tabIndex","-1","autocomplete","off","spellcheck","off","peoplekitAutocomplete","",3,"peoplekitAutocompleteSelectionChange","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions"]],template:function(a,b){a&1&&(F(0,Ogb,1,1,null,1),U(1,"async"));a&2&&G(V(1,1,b.taggingInProgress$)?
0:-1)},dependencies:[TG,xQ,Tv],styles:["[_nghost-%COMP%]   input[_ngcontent-%COMP%] {\n  height: 18px !important;\n  line-height: 18px !important;\n  border: 0 !important;\n  margin: 0 !important;\n  padding: 0 !important;\n  opacity: 0 !important;\n}\n\n[_nghost-%COMP%]   input[_ngcontent-%COMP%]:focus {\n  outline: none !important;\n  border: 0 !important;\n  padding: 0 !important;\n}"],changeDetection:0});var r2c=function(){};r2c.\u0275fac=function(a){return new (a||r2c)};
r2c.\u0275cmp=y({type:r2c,selectors:[["b-hidden-sizing-underlay"]],viewQuery:function(a,b){a&1&&hh(q2c,5);if(a&2){var c;lh(c=mh())&&(b.underlay=c.first)}},standalone:!1,decls:2,vars:0,consts:[["underlay",""],["contentEditable","","inert",""]],template:function(a){a&1&&M(0,"div",1,0)},styles:["[_nghost-%COMP%]   div[_ngcontent-%COMP%] {\n  width: 100%;\n  height: 100%;\n  margin: 0;\n  display: block;\n  position: absolute;\n  top: 0;\n  left: 0;\n  z-index: -2;\n  box-sizing: border-box;\n  visibility: hidden;\n  overflow-y: scroll;\n  white-space: pre;\n  pointer-events: none;\n}"],
changeDetection:0});var aV=function(){this.elementRef=r(Te);this.autocompleteConfigService=r(GO);this.destroyRef=r(Gg);this.darkmodeService=r(FO);this.refresh$=dg(this.darkmodeService.clientDarkmode$).pipe(C(function(){}));this.name=this.email=this.ariaLabel="";this.cdkFocusInitial=this.disabled=this.required=this.asMatInput=!1;this.emailChange=new LE;this.sessionOptions=(new et).setFilter(mSc);this.id="peoplekit-single-"+aV.nextId++;this.stateChanges=new tg;this.placeholderInternal="";this.ngControl=null;this.errorState=
this.focused=!1;this.controlType="peoplekit-single";this.describedByIds=[]};aV.prototype.getConfig=function(){return tYa(this.autocompleteConfigService)};var Pgb=function(a,b){b.length>0&&a.emailChange.emit(b[0].result().getPrimaryTarget().getValue())},Qgb=function(a){a.focused||(a.focused=!0,a.stateChanges.next())},Rgb=function(a,b){a.elementRef.nativeElement.contains(b.relatedTarget)||(a.focused=!1,a.stateChanges.next())};aV.prototype.setDescribedByIds=function(a){this.describedByIds=a;this.stateChanges.next()};
aV.prototype.onContainerClick=function(){};
nd.Object.defineProperties(aV.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}}});
aV.nextId=0;aV.\u0275fac=function(a){return new (a||aV)};
aV.\u0275cmp=y({type:aV,selectors:[["b-peoplekit-single"]],hostVars:1,hostBindings:function(a,b){a&2&&Rg("id",b.id)},inputs:{ariaLabel:"ariaLabel",email:"email",name:"name",asMatInput:"asMatInput",required:"required",disabled:"disabled",cdkFocusInitial:"cdkFocusInitial",placeholder:"placeholder"},outputs:{emailChange:"emailChange"},standalone:!1,features:[Fh([{provide:Hy,useExisting:aV}])],decls:1,vars:1,consts:[[3,"refreshable"],["matInput","","type","text","autocomplete","off","peoplekitAutocomplete",
"",3,"name","required","placeholder","disabled","ngModel","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions"],["type","text","autocomplete","off","peoplekitAutocomplete","",3,"name","required","placeholder","disabled","ngModel","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions"],["matInput","","type","text","autocomplete","off","peoplekitAutocomplete","",3,"ngModelChange","peoplekitAutocompleteSelectionChange","focusin","focusout","name","required","placeholder","disabled","ngModel",
"peoplekitAutocompleteConfig","peoplekitSearchSessionOptions"],["type","text","autocomplete","off","peoplekitAutocomplete","",3,"ngModelChange","peoplekitAutocompleteSelectionChange","focusin","focusout","name","required","placeholder","disabled","ngModel","peoplekitAutocompleteConfig","peoplekitSearchSessionOptions"]],template:function(a,b){a&1&&D(0,Ugb,2,1,"ng-template",0);a&2&&I("refreshable",b.refresh$)},dependencies:[Ui,dy,vy,ky,TG,xQ,FM,Uy],styles:["input[_ngcontent-%COMP%] { width: 100%; }"],
changeDetection:0});var bV=function(){};bV.\u0275fac=function(a){return new (a||bV)};bV.\u0275mod=uf({type:bV});bV.\u0275inj=Dd({imports:[aw]});var cV=function(){};cV.\u0275fac=function(a){return new (a||cV)};cV.\u0275mod=uf({type:cV});cV.\u0275inj=Dd({imports:[HC,Ay,yH,yQ,bV,GM]});var dV=function(){};dV.\u0275fac=function(a){return new (a||dV)};dV.\u0275mod=uf({type:dV});dV.\u0275inj=Dd({imports:[HC,AI,Ay,BG,EM,gL,bV,YU,cV]});var s2c=function(a){this.uploadUrl_=a};var t2c=function(){Cp.call(this)};zu(t2c,Cp);var eV=function(a){yE.call(this,a)};zu(eV,yE);var fV=function(a){yE.call(this,a)};zu(fV,yE);var u2c=function(a,b){this.name_=a;this.inputElement_=b};u2c.prototype.getName=function(){return this.name_};var v2c=function(){this.maxChunkSize_=1073741824;this.retryOnHttpClientErrorEnabled_=!0};var gV=function(){Cp.call(this);this.name_="closure_frame"+w2c++;this.iframesForDisposal_=[];x2c[this.name_]=this},hV;zu(gV,Cp);var x2c={},w2c=0,y2c=function(a,b){var c=Gp(a);NAc(b,function(d,e){Array.isArray(d)||(d=[d]);Ca(d,function(f){f=c.createDom("INPUT",{type:"hidden",name:e,value:f});a.appendChild(f)})})};g=gV.prototype;g.form_=null;g.iframe_=null;g.iframeName_=null;g.nextIframeId_=0;g.active_=!1;g.complete_=!1;g.success_=!1;g.lastUri_=null;g.lastContent_=null;g.lastErrorCode_=0;
g.iframeDisposalTimer_=null;
g.send=function(a,b,c,d){if(this.active_)throw Error("Me");this.lastUri_=a=new Mp(a);b=b?b.toUpperCase():"GET";c&&eBc(a);hV||(hV=fmc("FORM"),hV.acceptCharset="utf-8",c=hV.style,c.position="absolute",c.visibility="hidden",c.top=c.left="-10px",c.width=c.height="10px",c.overflow="hidden",document.body.appendChild(hV));this.form_=hV;b=="GET"&&y2c(this.form_,a.queryData_);d&&y2c(this.form_,d);c=a.toString();d=this.form_;c=dd(new Zc(c===null?"null":c===void 0?"undefined":c));c!==void 0&&(d.action=c);this.form_.method=
b;z2c(this);A2c(this)};g.abort=function(a){if(this.active_){var b=B2c(this);if(b)if(zE(b))b.removeAllListeners();else if(b=twc(b)){var c=0,d;for(d in b.listeners)for(var e=b.listeners[d].concat(),f=0;f<e.length;++f)CE(e[f])&&++c}this.success_=this.active_=this.complete_=!1;this.lastErrorCode_=a||7;this.dispatchEvent("abort");C2c(this)}};
g.disposeInternal=function(){this.active_&&this.abort();gV.superClass_.disposeInternal.call(this);this.iframe_&&D2c(this);A2c(this);delete this.errorChecker_;this.lastUri_=this.lastContent_=this.form_=null;this.lastErrorCode_=0;delete x2c[this.name_]};g.isComplete=function(){return this.complete_};g.isSuccess=function(){return this.success_};g.isActive=function(){return this.active_};g.getResponseText=function(){return this.lastContent_};g.getResponseJson=function(){return cDc(this.lastContent_)};
g.getLastUri=function(){return this.lastUri_};g.getLastErrorCode=function(){return this.lastErrorCode_};g.getLastError=function(){return kVc(this.lastErrorCode_)};
var z2c=function(a){a.active_=!0;a.complete_=!1;a.lastErrorCode_=0;a.iframeName_=a.name_+"_"+(a.nextIframeId_++).toString(36);a.iframe_=Gp(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";Jp?b.marginTop=b.marginLeft="-10px":(b.position="absolute",b.top=b.left="-10px");Gp(a.form_).document_.body.appendChild(a.iframe_);b=a.iframeName_+"_inner";var c=imc(a.iframe_);if(document.baseURI){var d=Rr(b);
d=$da('<head><base href="'+Rr(document.baseURI)+'"></head><body><iframe id="'+d+'" name="'+d+'"></iframe>')}else d=Rr(b),d=fd('<body><iframe id="'+d+'" name="'+d+'"></iframe>');c.write(hd(d));Ep(c.getElementById(b),"load",a.onIframeLoaded_,!1,a);d=kz("TEXTAREA",a.form_);for(var e=0,f=d.length;e<f;e++){var h=d[e].value,k=[];mmc(d[e],k,!1);k.join("")!=h&&(rz(d[e],h),d[e].value=h)}d=c.importNode(a.form_,!0);d.target=b;d.action=a.form_.action;c.body.appendChild(d);e=kz("SELECT",a.form_);f=kz("SELECT",
d);h=0;for(k=e.length;h<k;h++)for(var q=kz("OPTION",e[h]),v=kz("OPTION",f[h]),A=0,E=q.length;A<E;A++)v[A].selected=q[A].selected;e=kz("INPUT",a.form_);f=kz("INPUT",d);h=0;for(k=e.length;h<k;h++)if(e[h].type=="file"&&e[h].value!=f[h].value){a.form_.target=b;d=a.form_;break}try{a.errorHandled_=!1,d.submit(),c.close(),Kp&&setTimeout(a.testForFirefoxSilentError_.bind(a),250)}catch(H){BE(c.getElementById(b),"load",a.onIframeLoaded_,!1,a),c.close(),a.handleError_(2)}};
gV.prototype.onIframeLoaded_=function(){BE(B2c(this),"load",this.onIframeLoaded_,!1,this);try{var a=this.iframe_?imc(B2c(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"),C2c(this))}catch(e){this.handleError_(1)}};
gV.prototype.handleError_=function(a){this.errorHandled_||(this.active_=this.success_=!1,this.complete_=!0,this.lastErrorCode_=a,this.dispatchEvent("complete"),this.dispatchEvent("error"),C2c(this),this.errorHandled_=!0)};
var C2c=function(a){D2c(a);A2c(a);a.form_=null;a.dispatchEvent("ready")},D2c=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);Kp?a.iframeDisposalTimer_=setTimeout(a.disposeIframes_.bind(a),2E3):a.disposeIframes_();a.iframe_=null;a.iframeName_=null};
gV.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var a=this.iframesForDisposal_.pop();pz(a)}};var A2c=function(a){a.form_&&a.form_==hV&&oz(a.form_)},B2c=function(a){return a.iframe_?imc(a.iframe_).getElementById(a.iframeName_+"_inner"):null};
gV.prototype.testForFirefoxSilentError_=function(){if(this.active_){var a=this.iframe_?imc(B2c(this)):null;a&&!Gdc(a,"documentUri")?(BE(B2c(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?this.handleError_(3):this.handleError_(9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};var E2c=function(a,b,c,d,e){Cp.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 Mp(a);Ir(a,"upload_protocol","multipart");this.url_=a.toString();this.request_=new gV;this.state_="Ready";this.errorDescription_=
null;this.eventHandler_=new Fs(this);Er(this,this.eventHandler_);this.eventHandler_.listen(this.request_,"success",this.onTransferSuccess_);this.eventHandler_.listen(this.request_,"error",this.onTransferError_)};Y(E2c,t2c);g=E2c.prototype;g.run=function(){this.state_="Transferring";var a=this.request_,b=this.form_;if(a.active_)throw Error("Me");var c=new Mp(this.url_||b.action);a.lastUri_=c;a.form_=b;b=a.form_;c=dd(c.toString());c!==void 0&&(b.action=c);z2c(a)};g.getBytesTransferred=function(){return null};
g.getResponseCode=function(){return null};g.getErrorType=function(){return null};g.getResponseHeaders=function(){return null};g.getResponseText=function(){return this.request_&&this.request_.getResponseText()||null};g.getErrorDescription=function(){return this.errorDescription_};g.cancel=function(){this.request_&&this.request_.abort();this.state_="Cancelled";this.dispatchEvent(new eV("q"))};g.pause=function(){};g.unpause=function(){};g.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new eV("n"))};
g.onTransferError_=function(){this.errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new eV("p"))};var H2c=function(a,b){a.name!==void 0?(this.name=a.name,this.code=F2c[a.name]):(this.code=a=a.code,this.name=G2c(a));ca.call(this,Efc("%s %s",this.name,b))};zu(H2c,ca);
var G2c=function(a){var b=Jra(F2c,function(c){return a==c});if(b===void 0)throw Error("Ne`"+a);return b},iV={},F2c=(iV.AbortError=3,iV.EncodingError=5,iV.InvalidModificationError=9,iV.InvalidStateError=7,iV.NotFoundError=1,iV.NotReadableError=4,iV.NoModificationAllowedError=6,iV.PathExistsError=12,iV.QuotaExceededError=10,iV.SecurityError=2,iV.SyntaxError=8,iV.TypeMismatchError=11,iV);var I2c=function(a,b){yE.call(this,a.type,b);this.event_=a};zu(I2c,yE);var J2c=function(a,b,c){c===void 0&&(c=a.size);return a.slice?a.slice(b,c):null};Ap(function(){if(!ea.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 K2c=Ap(function(){if(!ea.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return J2c(b,0,1)===null?!1:!0});var L2c=function(){Cp.call(this);this.reader_=new FileReader;this.reader_.onloadstart=bt(this.dispatchProgressEvent_,this);this.reader_.onprogress=bt(this.dispatchProgressEvent_,this);this.reader_.onload=bt(this.dispatchProgressEvent_,this);this.reader_.onabort=bt(this.dispatchProgressEvent_,this);this.reader_.onerror=bt(this.dispatchProgressEvent_,this);this.reader_.onloadend=bt(this.dispatchProgressEvent_,this)};zu(L2c,Cp);g=L2c.prototype;
g.abort=function(){try{this.reader_.abort()}catch(a){throw new H2c(a,"aborting read");}};g.getReadyState=function(){return this.reader_.readyState};g.getError=function(){return this.reader_.error&&new H2c(this.reader_.error,"reading file")};g.dispatchProgressEvent_=function(a){this.dispatchEvent(new I2c(a,this))};g.disposeInternal=function(){L2c.superClass_.disposeInternal.call(this);delete this.reader_};g.readAsBinaryString=function(a){this.reader_.readAsBinaryString(a)};g.readAsArrayBuffer=function(a){this.reader_.readAsArrayBuffer(a)};
g.readAsText=function(a,b){this.reader_.readAsText(a,b)};var M2c=function(a){var b=new zH;a.listen("loadend",yu(function(c,d){var e=d.reader_.result,f=d.getError();e==null||f?eCc(c,f):c.callback(e);d.dispose()},b,a));return b};var jV=function(){Uq.call(this)};Y(jV,Uq);jV.prototype.createXhr=function(){var a=Uq.prototype.createXhr.call(this);a.upload&&(a.upload.onprogress=bt(this.onProgress_,this));return a};jV.prototype.onProgress_=function(a){this.dispatchEvent(a)};var N2c=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},P2c=function(a,b){var c=a.attempt_+1;if(a.maxAttempts_>0&&c>a.maxAttempts_)return!1;c==0?b():a.delayCallId_=Vq(function(){a.delayCallId_=null;b()},O2c(a),a);a.attempt_=c;return!0};N2c.prototype.reset=function(){this.delayCallId_&&Wq(this.delayCallId_);this.attempt_=-1};var O2c=function(a){var b=250*Math.pow(2,a.attempt_);a.maxDelayMs_>=0&&(b=Math.min(b,a.maxDelayMs_));return b};var Wgb=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var Q2c=function(a){Cp.call(this);a=a||new v2c;this.request_=this.state_=null;this.withCredentials_=!1;this.transferHandle_=null;this.offset_=this.bytesTransferred_=0;this.retryIterator_=new N2c;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.errorType_=this.errorDescription_=null;this.eventHandler_=new Fs(this);Er(this,this.eventHandler_);this.url_=this.blob_=null;this.method_=void 0;this.metadata_=this.headers_=null;this.maxChunkSize_=a.maxChunkSize_;this.chunkSize_=
null;this.retryOnHttpClientErrorEnabled_=a.retryOnHttpClientErrorEnabled_;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.responseText_=this.responseHeaders_=this.responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};zu(Q2c,t2c);g=Q2c.prototype;g.run=function(){kV(this)};g.getBytesTransferred=function(){return this.bytesTransferred_};g.getResponseCode=function(){return this.responseCode_};
g.getResponseHeaders=function(){return this.responseHeaders_};g.getResponseText=function(){return this.responseText_};g.getErrorDescription=function(){return this.errorDescription_};g.getErrorType=function(){return this.errorType_};
g.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.eventHandler_.removeAll();this.request_&&this.request_.abort();this.retryIterator_.reset();var a=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(a==="Upload"||a==="Query")a=new jV,a.withCredentials_=this.withCredentials_,a.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.bytesTransferred_=0;this.dispatchEvent(new eV("q"))}};
g.pause=function(){this.pauseRequested_=!0};g.unpause=function(){this.pauseRequested_=!1;this.state_==="Paused"&&(this.state_=this.stateAfterUnpausing_,this.stateAfterUnpausing_=null,R2c(this))};
var kV=function(a){var b=a.state_;a.pauseRequested_?(a.pauseRequested_=!1,a.stateAfterUnpausing_=b,a.state_="Paused"):P2c(a.retryIterator_,function(){return R2c(a)})||lV(a,1,"Transfer encountered too many consecutive failures.")},R2c=function(a){switch(a.state_){case "Start":a.start_();break;case "Upload":var b=a.transferHandle_.uploadUrl_,c=a.blob_.size;if(K2c()){var d=a.chunkSize_;var e=a.offset_+d>=c;c=J2c(a.blob_,a.offset_,e?c:a.offset_+d)}else a.offset_=0,c=a.blob_,e=!0;a.request_=new jV;a.request_.withCredentials_=
a.withCredentials_;a.eventHandler_.removeAll();a.eventHandler_.listen(a.request_,"progress",a.onUploadProgress_);d=bt(a.onUploadComplete_,a,a.offset_+c.size,e);a.eventHandler_.listen(a.request_,"complete",d);a.lastCommandResponseCode_=null;a.dispatchEvent(new fV("s"));e=Object.assign({},a.headers_||{},{"X-Goog-Upload-Command":"upload"+(e?", finalize":""),"X-Goog-Upload-Offset":a.offset_});a.request_.send(b,"POST",c,e);break;case "Query":a.query_();break;default:throw Error("Oe");}},lV=function(a,
b,c){a.state_="Error";a.errorDescription_=c;a.errorType_=b;a.dispatchEvent(new eV("p"))};g=Q2c.prototype;
g.start_=function(){this.request_=new jV;var a=ej(this.headers_);this.blob_.size!=null&&(a["Content-Length"]=this.blob_.size);a=Xgb(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 fV("s"))};
g.onStartComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new fV("t"));S2c(b)?T2c(this,b):U2c(b)?(b=zr(a.target.getAllResponseHeaders()),this.dispatchEvent(new eV("o")),a=Ar(b,"X-Goog-Upload-URL"),b=(b=Ar(b,"X-Goog-Upload-Chunk-Granularity"))?parseInt(b,10):1,a===void 0||isNaN(b)||b<=0?lV(this,2,"Server returned invalid headers."):(this.chunkSize_=Math.floor(this.maxChunkSize_/b)*b,this.transferHandle_=new s2c(a),this.dispatchEvent(new eV("r")),this.state_=
"Upload",this.retryIterator_.reset(),kV(this))):kV(this)};g.onUploadProgress_=function(a){this.bytesTransferred_=this.offset_+a.loaded;this.dispatchEvent(new eV("m"))};
g.onUploadComplete_=function(a,b,c){var d=this,e,f;return z(function(h){switch(h.nextAddress){case 1:e=c.target;d.lastCommandResponseCode_=e.getStatus();d.dispatchEvent(new fV("t"));if(d.retryOnHttpClientErrorEnabled_?V2c(e)||e.getStatus()==404:S2c(e))return d.bytesTransferred_=a,T2c(d,e),h.return();if(U2c(e)){h.jumpTo(2);break}if(!(f=d.detectCorruptedBlobEnabled_)){h.jumpTo(3);break}return B(h,W2c(d),4);case 4:f=h.yieldResult;case 3:if(f)return lV(d,3,"Blob has been modified or corrupted."),h.return();
d.requireUploadRequestModification_=e.getStatus()==400;d.state_="Query";kV(d);return h.return();case 2:if(b)return lV(d,4,"Got a non-final success response after issuing a finalize command."),h.return();d.bytesTransferred_=a;d.offset_=a;d.retryIterator_.reset();kV(d);return h.return()}})};
g.query_=function(){this.request_=new jV;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 fV("s"))};
g.onQueryComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new fV("t"));S2c(b)?(b.getStatus()===200&&(this.bytesTransferred_=this.blob_.size),T2c(this,b)):U2c(b)?(a=zr(a.target.getAllResponseHeaders()),a=parseInt(Ar(a,"X-Goog-Upload-Size-Received"),10),isNaN(a)?lV(this,5,"Server did not respond with current offset."):a<this.offset_?lV(this,6,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+a+"."):this.requireUploadRequestModification_&&
this.offset_===a?lV(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",kV(this))):kV(this)};
var T2c=function(a,b){a.responseCode_=b.getStatus();var c=zr(b.getAllResponseHeaders());a.responseHeaders_=Ygb(c);a.responseText_=b.getResponseText();a.state_="Response received";a.dispatchEvent(new eV("n"))},U2c=function(a){var b=a.getStatus();a=zr(a.getAllResponseHeaders());a=Ar(a,"X-Goog-Upload-Status");return b===200&&a==="active"},V2c=function(a){a=zr(a.getAllResponseHeaders());return Ar(a,"X-Goog-Upload-Status")==="final"},S2c=function(a){if(V2c(a))return!0;a=a.getStatus();return a>=400&&a<
500},W2c=function(a){var b;return z(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);Gf(c,2);if(b=J2c(a.blob_,0,1)){var d=new L2c,e=M2c(d);d.readAsBinaryString(b);c=B(c,e,4)}else c=c.return(!0);return c}if(c.nextAddress!=2)return c.return(a.blob_.size!==a.originalBlobSize_);Kf(c);return c.return(!0)})};var X2c=function(a,b,c,d,e,f){Cp.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 jj;this.boundary_="uploader-"+vhb()+"-"+a.toIsoString();this.transferRequest_=null;this.bytesTransferred_=0;this.responseText_=this.responseHeaders_=this.responseCode_=null;this.state_="Ready";this.errorDescription_=null;this.eventHandler_=new Fs(this);Er(this,this.eventHandler_)};Y(X2c,t2c);g=X2c.prototype;
g.run=function(){var a=ej(this.headers_);this.payload_.length!=null&&(a["Content-Length"]=this.payload_.length);a=Xgb(a);a["X-Goog-Upload-Protocol"]="multipart";a["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new jV;this.eventHandler_.removeAll();this.eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.eventHandler_.listen(this.transferRequest_,"complete",this.onTransferComplete_);var b=this.transferRequest_,
c=b.send,d=this.url_,e=this.method_,f="--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.metadata_+"\r\n--")+this.boundary_+'\r\nContent-Disposition: form-data; name="Filedata"\r\nContent-Transfer-Encoding: '+(this.encoding_+"\r\n\r\n")+this.payload_+"\r\n--"+this.boundary_+"--\r\n";this.metadataOverhead_=f.length-this.payload_.length;c.call(b,d,e,f,a)};g.getBytesTransferred=function(){return this.bytesTransferred_};g.getResponseCode=function(){return this.responseCode_};
g.getResponseHeaders=function(){return this.responseHeaders_};g.getResponseText=function(){return this.responseText_};g.getErrorDescription=function(){return this.errorDescription_};g.getErrorType=function(){return null};g.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new eV("q")))};g.pause=function(){};g.unpause=function(){};
g.onTransferProgress_=function(a){this.bytesTransferred_=Math.max(0,a.loaded-this.metadataOverhead_);this.dispatchEvent(new eV("m"))};g.onTransferComplete_=function(a){var b=a.target.getStatus();b===void 0||b===-1?(this.errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new eV("p"))):(this.responseCode_=b,a=a.target,b=zr(a.getAllResponseHeaders()),this.responseHeaders_=Ygb(b),this.responseText_=a.getResponseText(),this.state_="Complete",this.dispatchEvent(new eV("n")))};var Y2c=function(){},Z2c=function(a,b,c,d,e){e=e===void 0?!1:e;if(c instanceof u2c)return new E2c(a,"POST",b,c.inputElement_,d);if(typeof c==="string"||c instanceof String)return new X2c(a,"POST",b,c,d);var f=new Q2c(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 $2c=new le("ScottyUploaderConfigFactory"),a3c=new le("ScottyUploader",{factory:function(){return new Y2c}}),mV=function(a,b){this.uploader=a;this.configFactory=b;this.internalTransferStatus=new tg;this.transferStatus=xv(this.internalTransferStatus)};
mV.prototype.upload=function(a,b){var c=this;b=b===void 0?this.configFactory.create(a):b;a=Z2c(b.url,b.headers||{},a,b.metadata||"",!!b.withCredentials);this.transferSubscription&&!b.allowSimultaneousUpload&&this.transferSubscription.unsubscribe();this.transferSubscription=dg($f(a,"o"),$f(a,"m"),$f(a,"r"),$f(a,"p"),$f(a,"n"),$f(a,"q")).pipe(yg($f(a,"n").pipe(ng(0)))).subscribe(function(d){c.internalTransferStatus.next(d)});a.run()};mV.\u0275fac=function(a){return new (a||mV)(be(a3c),be($2c))};
mV.\u0275prov=Cd({token:mV,factory:mV.\u0275fac});var b3c=function(a){this.name_=a;this.files_=[];this.directories_=[];this.directoryMap_={}};b3c.prototype.getDirectory=function(a){return this.directoryMap_[a]};b3c.prototype.getName=function(){return this.name_};var d3c=function(a,b,c){b=b===void 0?"single_file":b;c=c===void 0?[]:c;Cp.call(this);this.overlayTarget_=a;this.parentOverlay_=a!=null?a.parentNode:jr(document,"scotty-overlay-parent");this.selectorType_=b;this.acceptTypes_=c;this.overlay_=c3c(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};Y(d3c,Cp);
var c3c=function(a,b,c,d){var e=document.createElement("input");e.setAttribute("type","file");e.setAttribute("name","Filedata");Ep(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),Js(e,new Is(b.offsetLeft,b.offsetTop)),e;a.parentOverlay_.appendChild(e);return e};d3c.prototype.click=function(){this.overlay_.click()};
d3c.prototype.onFilesSelected_=function(a){a:{try{var b=(new XMLHttpRequest).upload!==void 0;break a}catch(v){}b=!1}if(b){var c;a=Array.from((c=a.target.files)!=null?c:[]);c=[];if(this.selectorType_==="single_directory"&&(Jp||Idc||Kp)){c=new b3c("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(b=0;b<a.length;b++)for(var d=a[b],e=d.webkitRelativePath.split("/"),f=c,h=0;h<e.length;h++){var k=e[h];if(h==e.length-1){k!="."&&f.files_.push(d);break}var q=f.getDirectory(k);q==void 0&&(k=q=
new b3c(k),f.directoryMap_[k.getName()]=k,f.directories_.push(k));f=q}c=c.directories_}this.dispatchEvent(new e3c(a,c,null))}else a=a.target.value,a.match(/^c:\\fakepath\\/i)&&(a=a.substring(12)),this.dispatchEvent(new e3c([],[],new u2c(a,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=c3c(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var f3c={SINGLE_FILE_SELECTION:"single_file",MULTIPLE_FILE_SELECTION:"multiple_file",SINGLE_DIRECTORY_SELECTION:"single_directory"},e3c=function(a,b){yE.call(this,"y");this.files=a;this.directories=b};Y(e3c,yE);var nV=function(a,b){this.elementRef=a;this.ngZone=b;this.destroyed=new sg(1);this.supportedFileExtensions=null;this.fileExtensionRejected=new nq;this.maxFileSize=null;this.fileSizeRejected=new nq;this.fileSelected=new nq;this.fileNameLengthRejected=new nq};
nV.prototype.ngAfterViewInit=function(){var a=this;this.getOverlay().pipe(xg(function(b){return dg($f(b,"u"),$f(b,"y"))}),yg(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){$f(b,"w").subscribe(function(){a.ngZone.run(function(){})})});this.getOverlay().subscribe(function(b){$f(b,"x").subscribe(function(){a.ngZone.run(function(){})})})};
nV.prototype.ngOnDestroy=function(){this.destroyed.next(!0);this.destroyed.complete()};nV.\u0275fac=function(a){return new (a||nV)(of(Te),of(Ph))};nV.\u0275dir=vf({type:nV,inputs:{supportedFileExtensions:"supportedFileExtensions",maxFileSize:"maxFileSize",maxFileNameLength:"maxFileNameLength"},outputs:{fileExtensionRejected:"fileExtensionRejected",fileSizeRejected:"fileSizeRejected",fileSelected:"fileSelected",fileNameLengthRejected:"fileNameLengthRejected"}});var oV=function(a,b){nV.call(this,a,b);this.overlay=this.fileSelectorOverlay=null};Y(oV,nV);
oV.prototype.getOverlay=function(){var a=this;this.overlay||(this.overlay=this.ngZone.runOutsideAngular(function(){return dg($f(a.elementRef.nativeElement,"mouseover"),$f(a.elementRef.nativeElement,"focus")).pipe(qg(),yg(a.destroyed),C(function(){a.fileSelectorOverlay=new d3c(a.elementRef.nativeElement,a.selectorType,g3c(a));a.fileSelectorOverlay.overlay_.style.display="none";return a.fileSelectorOverlay}),ug(1))}));return this.overlay};oV.prototype.onClick=function(){this.fileSelectorOverlay&&this.fileSelectorOverlay.click()};
var g3c=function(a){return(a.supportedFileExtensions||[]).map(function(b){return"."+b})};oV.\u0275fac=function(a){return new (a||oV)(of(Te),of(Ph))};oV.\u0275dir=vf({type:oV,hostBindings:function(a,b){a&1&&N("click",function(){return b.onClick()})},inputs:{selectorType:"selectorType"},features:[Bg]});var pV=function(a,b,c){oV.call(this,a,b);this.uploader=c;this.disableAutoUploadInternal=!1};Y(pV,oV);
pV.prototype.ngOnInit=function(){var a=this;this.fileSelected.pipe(yg(this.destroyed),eg(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)}})};nd.Object.defineProperties(pV.prototype,{disableAutoUpload:{configurable:!0,enumerable:!0,get:function(){return this.disableAutoUploadInternal},set:function(a){this.disableAutoUploadInternal=pi(a)}}});
pV.\u0275fac=function(a){return new (a||pV)(of(Te),of(Ph),of(mV,8))};pV.\u0275dir=vf({type:pV,selectors:[["","xapUploaderTrigger",""],["","xapScottyUploaderTrigger",""]],inputs:{disableAutoUpload:"disableAutoUpload"},features:[Bg]});var qV=function(){this.SelectorType=f3c;this.includeTextLabel=this.disabled=!1;this.onSelect=new LE},Zgb=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)}};qV.\u0275fac=function(a){return new (a||qV)};
qV.\u0275cmp=y({type:qV,selectors:[["b-attachment-selector"]],inputs:{disabled:"disabled",includeTextLabel:"includeTextLabel"},outputs:{onSelect:"onSelect"},standalone:!1,decls:3,vars:1,consts:[[1,"goog-inline-block","vertical-centered"],["type","button","mat-icon-button","","xapUploaderTrigger","","matTooltip","Add attachments","aria-label","Add attachments",3,"selectorType","disableAutoUpload","disabled"],["type","button","mat-stroked-button","","xapUploaderTrigger","","matTooltip","Add attachments",
"aria-label","Add attachments",3,"selectorType","disableAutoUpload","disabled"],["type","button","mat-icon-button","","xapUploaderTrigger","","matTooltip","Add attachments","aria-label","Add attachments",3,"fileSelected","selectorType","disableAutoUpload","disabled"],["svgIcon","attachment"],["type","button","mat-stroked-button","","xapUploaderTrigger","","matTooltip","Add attachments","aria-label","Add attachments",3,"fileSelected","selectorType","disableAutoUpload","disabled"]],template:function(a,
b){a&1&&(J(0,"div",0),F(1,$gb,2,3,"button",1)(2,ahb,3,3,"button",2),K());a&2&&(x(),G(b.includeTextLabel?2:1))},dependencies:[FC,oG,Jx,Kx,zG,xG,pV],encapsulation:2});var h3c=function(a,b){mLc.call(this,a.size,a.name);var c=this;this.destroyed$=new tg;this.onTransferEventUpdate=function(d){var e=d.target;c.transfer=e;switch(d.type){case "m":case "o":case "r":c.state=1;c.transferredBytes=e.getBytesTransferred()||0;break;case "p":c.handleError(e);break;case "n":c.transferredBytes=e.getBytesTransferred()||0;(d=e.getResponseCode())&&d!=200?c.handleError(e):(d=e.getResponseText())?(c.state=2,c.blobRef=JSON.parse(d).encryptedMedia):c.handleError(e);c.unsubscribe();break;
case "q":c.state=4;c.transferredBytes=e.getBytesTransferred()||0;break;default:c.transferredBytes=e.getBytesTransferred()||0}};b.pipe(yg(this.destroyed$)).subscribe(function(d){c.onTransferEventUpdate(d)})};Y(h3c,mLc);
h3c.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){Xj("Unable to extract error message",b,d);var c;this.errorMessage=(c=a.getErrorDescription())!=null?c:""}this.errorMessage||(this.errorMessage="Error while uploading.")};h3c.prototype.cancel=function(){var a,b;(a=this.transfer)==null||(b=a.cancel)==null||b.call(a);this.unsubscribe()};
h3c.prototype.unsubscribe=function(){this.destroyed$.next();this.destroyed$.complete()};var rV=function(){this.activeSession=r(Bs)};
rV.prototype.create=function(a){for(var b=a.name,c=[],d=0,e=0;e<b.length;e++){var f=b.charCodeAt(e);f<128?c[d++]=f:(f<2048?c[d++]=f>>6|192:((f&64512)==55296&&e+1<b.length&&(b.charCodeAt(e+1)&64512)==56320?(f=65536+((f&1023)<<10)+(b.charCodeAt(++e)&1023),c[d++]=f>>18|240,c[d++]=f>>12&63|128):c[d++]=f>>12|224,c[d++]=f>>6&63|128),c[d++]=f&63|128)}b=gec(c);a=XKa(a.name)?a.name:b;return{url:Ir(fBc().setPath("/upload/"),"authuser",this.activeSession.getSessionIdentifier()).toString(),headers:{"X-Bv2-Encoded-Upload-File-Name":b,
"X-Goog-Upload-File-Name":a},withCredentials:!0}};rV.\u0275fac=function(a){return new (a||rV)};rV.\u0275prov=Cd({token:rV,factory:rV.\u0275fac,providedIn:"root"});var sV=function(){this.uploader=r(a3c);this.uploaderConfigFactory=r(rV)};sV.prototype.create=function(){return new mV(this.uploader,this.uploaderConfigFactory)};sV.\u0275fac=function(a){return new (a||sV)};sV.\u0275prov=Cd({token:sV,factory:sV.\u0275fac,providedIn:"root"});var tV=function(){Z.apply(this,arguments);this.scottyUploaderFactory=r(sV);this.uploads=[];this.onUploadCancel=new LE;this.onUploadComplete=new LE;this.uploadStates=nLc};Y(tV,Z);tV.\u0275dir=Z.\u0275dir;tV.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);for(var a=l(this.uploads),b=a.next();!b.done;b=a.next())b.value.cancel()};
tV.prototype.upload=function(a){var b=this,c=this.scottyUploaderFactory.create();c.upload(a);a=new h3c(a,c.transferStatus);c.transferStatus.pipe(yg(this.destroyed$)).subscribe(function(d){d.type==="n"&&b.onUploadComplete.emit()});return a};tV.prototype.cancel=function(a){a.cancel();this.onUploadCancel.emit(a)};tV.\u0275fac=function(){var a;return function(b){return(a||(a=Re(tV)))(b||tV)}}();
tV.\u0275cmp=y({type:tV,selectors:[["b-attachment-uploader"]],inputs:{uploads:"uploads"},outputs:{onUploadCancel:"onUploadCancel",onUploadComplete:"onUploadComplete"},standalone:!1,features:[Bg],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,fhb,3,0,"div",0);a&2&&G(b.uploads.length>0?0:-1)},dependencies:[FC,zG,xG,oNc],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 i3c=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 j3c=function(a){mLc.call(this,a.size,a.name);this.attachment=a};Y(j3c,mLc);var k3c=function(a,b){a.state=1;ZKc(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=Qo(c)?Ro(c):"Error while uploading."})};var Br=function(a){this.id_=a;this.opts={}};g=Br.prototype;g.setLabel=function(a){this.label_=a||void 0;return this};g.setOptions=function(a){this.opts=a};g.setQuery=function(a){this.opts.query=a;return this};g.setParent=function(a){this.opts.parent=a;return this};g.toArray=function(){var a=cj(this.opts,function(c){return c!==null});a=Lra(a)?null:a;a=[this.id_,this.label_,a];var b=Faa(a,Amc);return a=a.slice(0,b+1)};
g.toString=function(){var a=this.toArray();return"("+Ddc(a,function(b){return JSON.stringify(b)}).join(",")+")"};g.getId=function(){return this.id_};g.getLabel=function(){return this.label_};g.getOptions=function(){return ej(this.opts)};g.getQuery=function(){return this.opts.query};zu(Cr,Br);var l3c=["dr","fileIds","parent"],m3c=function(){var a=(new Cr("all")).setOwnedByMe(!0);a.opts.drdis=!0;a.opts.includeFolders=!0;a.opts.sortKey=7;a.opts.ff=!0;return a};g=Cr.prototype;g.setMode=function(a){this.opts.mode=a;return this};g.setOwnedByMe=function(a){a!==void 0?this.opts.ownedByMe=a:delete this.opts.ownedByMe;return this};g.setLabel=function(a){Cr.superClass_.setLabel.call(this,a);return this};g.setQuery=function(a){Cr.superClass_.setQuery.call(this,a);return this};
g.setParent=function(a){for(var b=l(l3c),c=b.next();!c.done;c=b.next())c=c.value,this.opts[c]&&delete this.opts[c];Cr.superClass_.setParent.call(this,a);return this};g.setItems=function(a){this.opts.items=a};var n3c=function(){Br.call(this,"image-search")};Y(n3c,Br);g=n3c.prototype;g.setType=function(a){this.opts.type=a;return this};g.setSize=function(a){this.opts.imgsz=a;return this};g.setColor=function(a){this.opts.imgcolor=a;return this};g.setLabel=function(a){Br.prototype.setLabel.call(this,a);return this};g.setQuery=function(a){Br.prototype.setQuery.call(this,a);return this};g.setParent=function(a){Br.prototype.setParent.call(this,a);return this};var uV=function(){Br.call(this,"maps")};Y(uV,Br);uV.prototype.setMode=function(a){this.opts.mode=a;return this};uV.prototype.setLabel=function(a){Br.prototype.setLabel.call(this,a);return this};uV.prototype.setQuery=function(a){Br.prototype.setQuery.call(this,a);return this};uV.prototype.setParent=function(a){Br.prototype.setParent.call(this,a);return this};var o3c=function(){Br.call(this,"photos")};Y(o3c,Br);g=o3c.prototype;g.setMode=function(a){this.opts.mode=a;return this};g.setType=function(a){this.opts.type=a;return this};g.setLabel=function(a){Br.prototype.setLabel.call(this,a);return this};g.setQuery=function(a){Br.prototype.setQuery.call(this,a);return this};g.setParent=function(a){Br.prototype.setParent.call(this,a);return this};g.removeDuplicates=function(){this.opts.rdv=!0;return this};var vV=function(){Br.call(this,"url")};Y(vV,Br);vV.prototype.setType=function(a){this.opts.type=a;return this};vV.prototype.setLabel=function(a){Br.prototype.setLabel.call(this,a);return this};vV.prototype.setQuery=function(a){Br.prototype.setQuery.call(this,a);return this};vV.prototype.setParent=function(a){Br.prototype.setParent.call(this,a);return this};var p3c=function(){Br.call(this,"video-search")};Y(p3c,Br);p3c.prototype.setLabel=function(a){Br.prototype.setLabel.call(this,a);return this};p3c.prototype.setQuery=function(a){Br.prototype.setQuery.call(this,a);return this};p3c.prototype.setParent=function(a){Br.prototype.setParent.call(this,a);return this};var q3c=function(){Br.call(this,"web")};Y(q3c,Br);q3c.prototype.setLabel=function(a){Br.prototype.setLabel.call(this,a);return this};q3c.prototype.setQuery=function(a){Br.prototype.setQuery.call(this,a);return this};q3c.prototype.setParent=function(a){Br.prototype.setParent.call(this,a);return this};var r3c=function(){this.root_=void 0;this.items_=[];this.opts={}},s3c=function(a){switch(a){case "image-search":return new n3c;case "maps":return new uV;case "photos":return new o3c;case "url":return new vV;case "video-search":return new p3c;case "web":return new q3c}return new Br(a)};r3c.prototype.addView=function(a){this.items_.push(typeof a==="string"?s3c(a):a);return this};
var t3c=function(a){return"("+Ddc(a.items_,function(b){return b.toString()}).join(",")+")"},u3c=function(a){a=cj(a.opts,function(b){return b!==null});return(a=Lra(a)?null:a)?JSON.stringify(Fra(a,function(b){return b.toString()})):""};r3c.prototype.toString=function(){if(this.root_){var a=["{root:",this.root_.toString(),",items:",t3c(this)],b=u3c(this);b&&(a.push(",options:"),a.push(b));a.push("}");return a.join("")}return t3c(this)};r3c.prototype.getOptions=function(){return ej(this.opts)};
r3c.prototype.setCollapsible=function(a){this.opts.collapsible=a};var ghb=function(a){this.basePickerUrl_=a||"https://docs.google.com/picker";this.nav_=new r3c};g=ghb.prototype;g.nav_=null;g.domHelper_=null;g.addView=function(a){this.nav_.addView(a);return this};g.getAppId=function(){return this.appId_};g.getBaseUrl=function(){return this.basePickerUrl_};g.getDomHelper=function(){return this.domHelper_};g.setAppId=function(a){this.appId_=a};g.setCallback=function(a){this.callback_=a;return this};zu(hhb,ghb);var wV=function(a){Cp.call(this);this.dom_=a||Gp();this.rightToLeft_=v3c;this.id_=null;this.inDocument_=!1;this.element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=null;this.wasDecorated_=!1};zu(wV,Cp);wV.prototype.idGenerator_=Qs.getInstance();var v3c=!1;g=wV.prototype;g.getId=function(){return this.id_||(this.id_=Es(this.idGenerator_))};
g.setId=function(a){this.parent_&&this.parent_.childIndex_&&(dj(this.parent_.childIndex_,this.id_),Nra(this.parent_.childIndex_,a,this));this.id_=a};g.getElement=function(){return this.element_};g.getHandler=function(){this.googUiComponentHandler_||(this.googUiComponentHandler_=new Fs(this));return this.googUiComponentHandler_};
g.setParent=function(a){if(this==a)throw Error("Pe");if(a&&this.parent_&&this.id_&&w3c(this.parent_,this.id_)&&this.parent_!=a)throw Error("Pe");this.parent_=a;wV.superClass_.setParentEventTarget.call(this,a)};g.getParent=function(){return this.parent_};g.setParentEventTarget=function(a){if(this.parent_&&this.parent_!=a)throw Error("Qe");wV.superClass_.setParentEventTarget.call(this,a)};g.getDomHelper=function(){return this.dom_};g.createDom=function(){this.element_=this.dom_.createElement("DIV")};
g.render=function(a){if(this.inDocument_)throw Error("Re");this.element_||this.createDom();a?a.insertBefore(this.element_,null):this.dom_.document_.body.appendChild(this.element_);this.parent_&&!this.parent_.inDocument_||this.enterDocument()};g.decorate=function(a){if(this.inDocument_)throw Error("Re");if(a&&this.canDecorate(a)){this.wasDecorated_=!0;var b=jz(a);this.dom_&&this.dom_.document_==b||(this.dom_=Gp(a));this.decorateInternal(a);this.enterDocument()}else throw Error("Se");};
g.canDecorate=function(){return!0};g.decorateInternal=function(a){this.element_=a};g.enterDocument=function(){this.inDocument_=!0;x3c(this,function(a){!a.inDocument_&&a.getElement()&&a.enterDocument()})};g.exitDocument=function(){x3c(this,function(a){a.inDocument_&&a.exitDocument()});this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
g.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);x3c(this,function(a){a.dispose()});!this.wasDecorated_&&this.element_&&pz(this.element_);this.parent_=this.element_=this.childIndex_=this.children_=null;wV.superClass_.disposeInternal.call(this)};g.setModel=function(){};
g.addChild=function(){var a=this.children_?this.children_.length:0;if((void 0).inDocument_&&!this.inDocument_)throw Error("Re");if(a<0||a>(this.children_?this.children_.length:0))throw Error("Te");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;Fa(this.children_)}else Nra(this.childIndex_,(void 0).getId());(void 0).setParent(this);Jaa(this.children_,a,0,void 0);(void 0).inDocument_&&this.inDocument_&&
(void 0).getParent()==this?(b=this.getContentElement(),(b.childNodes[a]||null)!=(void 0).getElement()&&((void 0).getElement().parentElement==b&&b.removeChild((void 0).getElement()),a=b.childNodes[a]||null,b.insertBefore((void 0).getElement(),a))):this.inDocument_&&!(void 0).inDocument_&&(void 0).element_&&(void 0).element_.parentNode&&(void 0).element_.parentNode.nodeType==1&&(void 0).enterDocument()};g.getContentElement=function(){return this.element_};
g.isRightToLeft=function(){this.rightToLeft_==null&&(this.rightToLeft_=At(this.inDocument_?this.element_:this.dom_.document_.body));return this.rightToLeft_};g.hasChildren=function(){return!!this.children_&&this.children_.length!=0};var w3c=function(a,b){return a.childIndex_&&b?Ora(a.childIndex_,b)||null:null},x3c=function(a,b){a.children_&&a.children_.forEach(b,void 0)};
wV.prototype.removeChild=function(a,b){if(a){var c=typeof a==="string"?a:a.getId();a=w3c(this,c);c&&a&&(dj(this.childIndex_,c),Fa(this.children_,a),b&&(a.exitDocument(),a.element_&&pz(a.element_)),a.setParent(null))}if(!a)throw Error("Ue");return a};wV.prototype.removeChildren=function(a){for(var b=[];this.hasChildren();){var c=b,d=c.push;var e=this.removeChild(this.children_?this.children_[0]||null:null,a);d.call(c,e)}return b};zu(jhb,ihb);zu(khb,ihb);var y3c=ru(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),z3c=ru(["//apis.google.com/js/rpc.js"]),yhb=aj(y3c),xhb=aj(z3c),mhb=null;var A3c=function(a){Cp.call(this);this.element_=a;this.listenKeyIn_=Ep(this.element_,"focus",this,!0);this.listenKeyOut_=Ep(this.element_,"blur",this,!0)};zu(A3c,Cp);A3c.prototype.handleEvent=function(a){var b=new Ip(a.event_);b.type=a.type=="focusin"||a.type=="focus"?"focusin":"focusout";this.dispatchEvent(b)};A3c.prototype.disposeInternal=function(){A3c.superClass_.disposeInternal.call(this);CE(this.listenKeyIn_);CE(this.listenKeyOut_);delete this.element_};var B3c=new Map;B3c.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");B3c.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");B3c.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var C3c=new Set;C3c.add("application/vnd.google-apps.kix");C3c.add("application/vnd.google-apps.ritz");C3c.add("application/vnd.google-apps.punch");var O3c=function(a,b,c){var d=c&&Rc(c,1);c=D3c(c);switch(a[0].getId().getSourceId()){case 13:return E3c(a,b,d,c);case 3:return F3c(a,b,d,c);case 10:return G3c(a,b,d,c);case 27:return G3c(a,b,d,c);case 12:return H3c(a,b);case 2:return I3c(a,b,d,c);case 5:return J3c(a,b,d,c);case 9:return K3c(a,b,d,c);case 6:return L3c(a,b,d,c);case 25:return M3c(a,b,d,c);case 1:return tk(a[0],Blc,26)?N3c(a,b,d,c):G3c(a,b,d,c);default:return{}}},L3c=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),
serviceId:"youtube",name:e.getName(),description:e.getDescription(),type:xV(e),lastEditedUtc:W(e,bk,16).toDate().getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:e.getUrl(),embedUrl:Rc(e,13),thumbnails:yV(dz(e))}});return{action:b,docs:a,viewToken:d,view:c||"youtube",v2Translated:!0}},I3c=function(a,b,c,d){var e=a.map(function(f){var h=f.getId().getId(),k=f.getMimeType(),q=f.getName(),v=xV(f),A=f.getLastModifiedTimestamp().toDate().getTime(),E=f.getUrl(),
H=Number(Dec(f)),L=f.getDescription(),O=f.getIconUrl(),S=yV(dz(f)),aa=W(f,ez,21).getShared(),ka=W(f,ez,21).getDownloadUrl(),na=Rc(f,13);var za=W(f,ez,21);za=kk(za,9);var Na=W(f,ez,21);Na=Rc(Na,11);h={id:h,serviceId:"docs",mimeType:k,name:q,type:v,lastEditedUtc:A,url:E,sizeBytes:H,description:L,iconUrl:O,thumbnails:S,isShared:aa,downloadUrl:ka,embedUrl:na,copyable:za,resourceKey:Na};k=W(f,ez,21);kk(k,12)&&(h.uploadState="success",h.isNew=!0);W(f,ez,21).hasVideoMetadata()&&(f=W(f,ez,21).getVideoMetadata(),
tk(f,dk,2)&&(k=Uc(f.getDuration().getSeconds())+f.getDuration().getNanos()/1E9,h.duration=k),h.aspectRatio=hm(f,1));return h});return{action:b,docs:e,viewToken:d,view:c||"all",extraUserInputs:P3c(a),v2Translated:!0}},J3c=function(a,b,c,d){a=a.map(function(e){var f=W(e,Llc,15);f=W(f,Alc,1);Po(e,10,Alc,f);return{id:e.getId().getId(),serviceId:"web",mimeType:e.getMimeType(),name:e.getName(),type:xV(e),url:e.getUrl(),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",
thumbnails:yV(dz(e))}});return{action:b,docs:a,viewToken:d,view:c||"image-search",v2Translated:!0}},K3c=function(a,b,c,d){a=a.map(function(e){return{serviceId:"url",name:dz(e)[0].getUrl().split("/").pop(),type:xV(e),mimeType:e.getMimeType(),url:e.getUrl(),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yV(dz(e))}});return{action:b,docs:a,viewToken:d,view:c||"url",v2Translated:!0}},N3c=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),
serviceId:"picasa",name:e.getName(),type:xV(e),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yV(dz(e))}});return{action:b,docs:a,viewToken:d,view:c||"webcam",v2Translated:!0}},G3c=function(a,b,c,d){return{action:b,docs:a.map(Q3c),viewToken:d,view:R3c(c||"upload",a),extraUserInputs:P3c(a),v2Translated:!0}},R3c=function(a,b){return b.some(function(c){var d;return((d=W(c,Klc,30))==null?void 0:pk(d,3))===9})?a+"/gmailphotos":a},
F3c=function(a,b,c,d){var e=a.map(function(f){var h={id:f.getId().getId(),serviceId:"picasa",mimeType:f.getMimeType(),name:f.getName(),type:xV(f),lastEditedUtc:f.getLastModifiedTimestamp().toDate().getTime(),url:f.getUrl(),sizeBytes:Number(Dec(f)),description:f.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yV(dz(f)),mediaKey:f.getId().getId(),parentId:f.getParentId()},k,q=(k=W(f,Elc,18))==null?void 0:W(k,Dlc,3);q&&(h.latitude=hm(q,1),h.longitude=
hm(q,2));var v;(f=Vc((v=W(f,Elc,18))==null?void 0:xk(v,6)))&&(h.version=f);return h});return{action:b,docs:e,viewToken:d,view:c||"photos",extraUserInputs:P3c(a),v2Translated:!0}},E3c=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),serviceId:"et",name:dz(e)[0].getUrl().split("/").pop(),description:e.getDescription(),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yV(dz(e),"etjpg")}});return{action:b,docs:a,viewToken:d,view:c||"et",
v2Translated:!0}},M3c=function(a,b,c,d){a=a.map(function(e){var f=e.getId().getId(),h=d["2"];return{id:f,serviceId:h.type!=="gmail_themes"&&h.parent==="6226252643674576769"?"picasa":"static_themes",name:e.getName(),mimeType:e.getMimeType(),type:xV(e),description:e.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:e.getUrl(),embedUrl:e.getUrl(),thumbnails:yV(dz(e))}});return{action:b,docs:a,viewToken:d,view:c||"photos",v2Translated:!0}},H3c=function(a,
b){a=a.map(function(c){var d=W(c,Clc,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}},D3c=function(a){if(!a)return{};var b=Rc(a,3);b=b&&JSON.parse(b)||{};return{0:Rc(a,1),1:a.getLabel(),2:b}},yV=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}})},P3c=function(a){return{isAttachment:a.some(function(b){return kk(b,31)})}},Q3c=function(a){var b,c={id:(b=a.getId())==null?void 0:b.getId(),serviceId:S3c(a),mimeType:a.getMimeType(),name:a.getName(),type:xV(a),sizeBytes:Number(Dec(a)),description:a.getDescription(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yV(dz(a)),isNew:!0};if(b=W(a,Klc,30)){c.dataUrl=
Rc(b,1)||null;a:{var d=W(a,Klc,30);switch(pk(d,3)){case 9:d=im(d,Ilc,2,bz);d={remoteRefs:d&&Rc(d,1)};break a;case 10:case 15:d=im(d,Hlc,4,bz);var e=dz(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=Rc(b,9)||null;c.uploadState=T3c(b)||null}(d=b&&im(b,Hlc,4,bz))&&(c.id=d.getPhotoId());(d=b&&im(b,Jlc,5,bz))&&(c.contentId=
Rc(d,1));(d=b&&im(b,Flc,7,bz))&&(c.contentId=Rc(d,1));(d=b&&im(b,Glc,6,bz))&&(c.contentId=Rc(d,1));(b==null?void 0:pk(b,3))===1&&(c.mediaKey=a.getId().getId());return c},S3c=function(a){var b;switch(((b=W(a,Klc,30))==null?void 0:pk(b,3))||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},xV=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"}},T3c=function(a){switch(a==null?void 0:pk(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 U3c=function(a){this.obj_=a};g=U3c.prototype;g.value=function(){return this.obj_};g.setWidth=function(a){this.obj_.width=a;return this};g.getWidth=function(){return this.obj_.width};g.setHeight=function(a){this.obj_.height=a;return this};g.getHeight=function(){return this.obj_.height};g.setStyle=function(a){this.obj_.style=a;return this};g.getStyle=function(){return this.obj_.style};var V3c=function(a){this.obj_=a||{}};g=V3c.prototype;g.value=function(){return this.obj_};g.setUrl=function(a){this.obj_.url=a;return this};g.getUrl=function(){return this.obj_.url};g.setStyle=function(a){this.obj_.style=a;return this};g.getStyle=function(){return this.obj_.style};g.setId=function(a){this.obj_.id=a;return this};g.getId=function(){return this.obj_.id};g.getContext=function(){return this.obj_.context};
var W3c=function(a){a.obj_.attributes=a.obj_.attributes||{};return new U3c(a.obj_.attributes)},ZFc=function(a){return(a=a.obj_.timeout)?a:null};var X3c=function(){V3c.apply(this,arguments)};Y(X3c,V3c);var Y3c=ru(["https://apis.google.com/js/api.js"]),Z3c=aj(Y3c),c4c=function(a,b){var c=!1,d=$3c(a,b).then(function(f){c=!0;return f}),e=ywc(5E3).then(function(){return c?$3c(a,b):a4c(b).then(function(f){return b4c(f,a)})});return Omc([d,e])},$3c=function(a,b){return d4c(b).then(function(c){return b4c(c,a)})},b4c=function(a,b){var c=b.lastIndexOf("gapi.",0)==0?b.slice(5):b;return a[c]?Imc(a[c]):new xz(function(d,e){var f=Vq(function(){e(Error("Ve"))},3E4);a.load(b,{callback:function(){Wq(f);d(a[c])},
onerror:function(h){Wq(f);e(h)}})})},d4c=function(a){return a.gapi&&a.gapi.load?Imc(a.gapi):a4c(a)},a4c=function(a){return oLa(Z3c,{document:a.document}).then(function(){return a.gapi})},e4c=function(){};e4c.prototype.load=function(a,b){b=b===void 0?window:b;var c=Date.now();return c4c(a,b).then(function(d){var e=Date.now();return{library:d,loadStartMs:c,loadEndMs:e}},function(d){throw d instanceof Error?d:Error(String(d));})};var uhb=function(){jE.call(this);this.gapiLoader_=new e4c;this.origin_=null;this.gapiPickerIframeResolver_=Qmc();this.gapiIframesResolver_=Qmc();this.gapiIframesResolver_.promise.then(null,function(){});this.gapiPickerIframeResolver_.promise.then(null,function(){});this.hostMessageHandlerInternal_={}};Y(uhb,jE);
var f4c=function(a,b){var c=xp("gapi.iframes",b);return c?(a=Date.now(),Imc({library:c,loadStartMs:a,loadEndMs:a})):a.gapiLoader_.load("gapi.iframes",b)},g4c=function(a,b,c,d,e,f){var h=!1;h=h===void 0?!1:h;f4c(a,nz(b.ownerDocument)).then(function(k){var q=k.library;a.gapiIframesResolver_.resolve(q);k=a.gapiPickerIframeResolver_;var v=k.resolve,A=h;A=A===void 0?!1:A;var E={};E["host-message-handler"]=c;a.hostMessageHandlerInternal_=E;var H=Gr(d);H=Gr(H);H=YG(XG(WG(new Mp,H.scheme_),H.getDomain()),
H.port_).toString();a.origin_=H;H=(new X3c).setUrl(d);H.obj_.where=b;H.obj_.allowPost=A;H.obj_.messageHandlers=E;A=xp("makeWhiteListIframesFilter",q)([a.origin_]);H.obj_.messageHandlersFilter=A;e!=null&&H.setId(e);f!=null&&(H.obj_.rpctoken=f);W3c(H).setStyle({display:"block","min-width":"100%",width:"1px"}).setHeight("100%");W3c(H).value().allow="camera 'src' "+a.origin_;q=q.getContext().openChild(H.value());v.call(k,q)},function(k){a.gapiIframesResolver_.reject(k);a.gapiPickerIframeResolver_.reject(k)});
return a.gapiPickerIframeResolver_.promise},h4c=function(a,b){return Nmc([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,xp("makeWhiteListIframesFilter",c)([a.origin_])):Jmc(Error("We"))})};uhb.prototype.disposeInternal=function(){i4c(this);jE.prototype.disposeInternal.call(this)};
var i4c=function(a){a.gapiPickerIframeResolver_.promise.then(function(b){b&&(b.unregister("host-message-handler"),delete a.hostMessageHandlerInternal_["host-message-handler"])})};var j4c=function(){this.nextId=0};j4c.prototype.getUniqueId=function(){return":"+(this.nextId++).toString(36)};var l4c=function(a,b){switch(a.action){case "select-contacts":a=k4c(a.contacts);break;case "visibility":a=a.visible;a=(new Olc).setCommand(7).setVisible(a);var c={};c["iframe-command"]=a.serialize();a=c;break;default:a=null}return a?h4c(b,a):Imc()},k4c=function(a){if(!a||a.length==0)return null;var b=new Olc;b.setCommand(11);var c=new j4c;a.forEach(function(d){if(d.email){var e=(new cz).setName(d.name?d.name:d.email);d=(new Clc).addEmail(d.email);e=X(e,Clc,27,d).setId((new $y).setId(c.getUniqueId()).setSourceId(12))}else e=
null;e&&b.addItem(e)});a={};a["iframe-command"]=b.serialize();return a};var zV=function(a,b,c){Cp.call(this);this.target=a;this.handle=b||a;this.limits=c||new oI(NaN,NaN,NaN,NaN);this.document_=jz(a);this.eventHandler_=new Fs(this);Er(this,this.eventHandler_);this.deltaY=this.deltaX=this.startY=this.startX=this.screenY=this.screenX=this.clientY=this.clientX=0;this.dragging_=!1;Ep(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=m4c};zu(zV,Cp);
var m4c=ea.document&&ea.document.documentElement&&!!ea.document.documentElement.setCapture&&!!ea.document.releaseCapture;g=zV.prototype;g.getHandler=function(){return this.eventHandler_};g.disposeInternal=function(){zV.superClass_.disposeInternal.call(this);BE(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.eventHandler_.removeAll();this.useSetCapture_&&this.document_.releaseCapture();this.handle=this.target=null};
g.startDrag=function(a){var b=a.type=="mousedown";if(this.dragging_||b&&(a.event_.button!=0||ht&&a.ctrlKey))this.dispatchEvent("earlycancel");else if(this.dispatchEvent(new AV("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(nz(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=pmc(Gp(this.document_))}};
g.endDrag=function(a,b){this.eventHandler_.removeAll();this.useSetCapture_&&this.document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new AV("end",this,a.clientX,a.clientY,a,n4c(this,this.deltaX),o4c(this,this.deltaY),b||a.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
g.handleMove_=function(a){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 AV("start",this,a.clientX,a.clientY,a)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(a);return}}c=p4c(this,b,c);b=c.x;c=c.y;this.dragging_&&this.dispatchEvent(new AV("beforedrag",this,a.clientX,a.clientY,
a,b,c))&&(q4c(this,a,b,c),a.preventDefault())};var p4c=function(a,b,c){var d=pmc(Gp(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 Is(n4c(a,a.deltaX),o4c(a,a.deltaY))};zV.prototype.onScroll_=function(a){var b=p4c(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;q4c(this,a,b.x,b.y)};
var q4c=function(a,b,c,d){a.target.style.left=c+"px";a.target.style.top=d+"px";a.dispatchEvent(new AV("drag",a,b.clientX,b.clientY,b,c,d))},n4c=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))},o4c=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))};zV.prototype.isDragging=function(){return this.dragging_};
var AV=function(a,b,c,d,e,f,h){yE.call(this,a);this.clientX=c;this.clientY=d;this.left=f!==void 0?f:b.deltaX;this.top=h!==void 0?h:b.deltaY};zu(AV,yE);var BV=function(a){this.map_=new Map;var b=arguments.length;if(b>1){if(b%2)throw Error("Za");for(var c=0;c<b;c+=2)this.set(arguments[c],arguments[c+1])}else a&&this.addAll(a)};g=BV.prototype;g.getCount=function(){return this.map_.size};g.getValues=function(){return Array.from(this.map_.values())};g.getKeys=function(){return Array.from(this.map_.keys())};g.containsKey=function(a){return this.map_.has(a)};g.containsValue=function(a){return this.getValues().some(function(b){return b==a})};
g.equals=function(a,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))})};g.isEmpty=function(){return this.map_.size==0};g.clear=function(){this.map_.clear()};g.remove=function(a){return this.map_.delete(a)};g.get=function(a,b){return this.map_.has(a)?this.map_.get(a):b};g.set=function(a,b){this.map_.set(a,b);return this};
g.addAll=function(a){if(a instanceof BV){a=l(a.map_);for(var b=a.next();!b.done;b=a.next()){var c=l(b.value);b=c.next().value;c=c.next().value;this.map_.set(b,c)}}else if(a)for(a=l(Object.entries(a)),b=a.next();!b.done;b=a.next())c=l(b.value),b=c.next().value,c=c.next().value,this.map_.set(b,c)};g.forEach=function(a,b){var c=this;b=b===void 0?this:b;this.map_.forEach(function(d,e){return a.call(b,d,e,c)})};g.clone=function(){return new BV(this)};(function(){for(var a=["ms","moz","webkit","o"],b,c=0;b=a[c]&&!ea.requestAnimationFrame;++c)ea.requestAnimationFrame=ea[b+"RequestAnimationFrame"],ea.cancelAnimationFrame=ea[b+"CancelAnimationFrame"]||ea[b+"CancelRequestAnimationFrame"];if(!ea.requestAnimationFrame){var d=0;ea.requestAnimationFrame=function(e){var f=(new Date).getTime(),h=Math.max(0,16-(f-d));d=f+h;return ea.setTimeout(function(){e(f+h)},h)};ea.cancelAnimationFrame||(ea.cancelAnimationFrame=function(e){clearTimeout(e)})}})();
var r4c=[[],[]],s4c=0,t4c=!1,u4c=0,w4c=function(a,b){var c=u4c++,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,r4c[s4c].push(d));t4c||(t4c=!0,window.requestAnimationFrame(v4c))}},v4c=
function(){t4c=!1;var a=r4c[s4c],b=a.length;s4c=(s4c+1)%2;for(var c,d=0;d<b;++d){c=a[d];var e=c.measureTask;c.isScheduled=!1;e.fn&&e.fn.apply(e.context,c.args)}for(d=0;d<b;++d)c=a[d],e=c.mutateTask,c.isScheduled=!1,e.fn&&e.fn.apply(e.context,c.args),c.state={};a.length=0};var x4c=ru(["about:blank"]),y4c=ru(["javascript:undefined"]),z4c=aj(x4c);Yc(z4c);var A4c=aj(y4c);Yc(A4c);var B4c=function(a,b){this.element_=a;this.dom_=b};var CV=function(a,b){wV.call(this,b);this.useIframeMask_=!!a;this.lastFocus_=null;this.resizeBackgroundTask_=w4c({mutate:this.resizeBackground_},this);w4c({mutate:this.updateModalAndBackground_},this)};zu(CV,wV);g=CV.prototype;g.focusHandler_=null;g.visible_=!1;g.bgEl_=null;g.bgIframeEl_=null;g.tabCatcherElement_=null;g.backwardTabWrapInProgress_=!1;g.getCssClass=function(){return"goog-modalpopup"};g.getBackgroundElement=function(){return this.bgEl_};
g.createDom=function(){CV.superClass_.createDom.call(this);var a=this.getElement();nI(a,oa(this.getCssClass()).split(" "));a.tabIndex=0;Kr(a,!1);C4c(this);D4c(this)};
var C4c=function(a){if(a.useIframeMask_&&!a.bgIframeEl_){var b=a.getDomHelper().createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});Xda(b,z4c);a.bgIframeEl_=b;a.bgIframeEl_.className=a.getCssClass()+"-bg";Kr(a.bgIframeEl_,!1);kHc(a.bgIframeEl_,0)}a.bgEl_||(a.bgEl_=a.getDomHelper().createDom("DIV",a.getCssClass()+"-bg"),Kr(a.bgEl_,!1))},D4c=function(a){a.tabCatcherElement_||(a.tabCatcherElement_=a.getDomHelper().createElement("SPAN"),Kr(a.tabCatcherElement_,!1),a.tabCatcherElement_.tabIndex=
0,a.tabCatcherElement_.style.position="absolute")};g=CV.prototype;g.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};g.canDecorate=function(a){return!!a&&a.tagName=="DIV"};g.decorateInternal=function(a){CV.superClass_.decorateInternal.call(this,a);a=oa(this.getCssClass()).split(" ");nI(this.getElement(),a);C4c(this);D4c(this);this.getElement().tabIndex=0;Kr(this.getElement(),!1)};
g.enterDocument=function(){if(this.bgIframeEl_){var a=this.bgIframeEl_,b=this.getElement();b.parentNode&&b.parentNode.insertBefore(a,b)}a=this.bgEl_;b=this.getElement();b.parentNode&&b.parentNode.insertBefore(a,b);CV.superClass_.enterDocument.call(this);a=this.tabCatcherElement_;b=this.getElement();b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);this.focusHandler_=new A3c(this.getDomHelper().document_);this.getHandler().listen(this.focusHandler_,"focusin",this.onFocus);E4c(this,!1)};
g.exitDocument=function(){this.isVisible()&&this.setVisible(!1);Io(this.focusHandler_);CV.superClass_.exitDocument.call(this);pz(this.bgIframeEl_);pz(this.bgEl_);pz(this.tabCatcherElement_)};
g.setVisible=function(a){if(a!=this.visible_)if(this.popupShowTransition_&&this.popupShowTransition_.stop(),this.bgShowTransition_&&this.bgShowTransition_.stop(),this.popupHideTransition_&&this.popupHideTransition_.stop(),this.bgHideTransition_&&this.bgHideTransition_.stop(),this.inDocument_&&E4c(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_);F4c(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)AE(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_)AE(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 E4c=function(a,b){a.modalAriaVisibilityHelper_||(a.modalAriaVisibilityHelper_=new B4c(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_||AAc(d,"hidden")||(NG(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}};
CV.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};var F4c=function(a,b){a.bgIframeEl_&&Kr(a.bgIframeEl_,b);a.bgEl_&&Kr(a.bgEl_,b);Kr(a.getElement(),b);Kr(a.tabCatcherElement_,b)};g=CV.prototype;g.onShow=function(){this.dispatchEvent("show")};g.onHide=function(){F4c(this,!1);this.dispatchEvent("hide")};g.isVisible=function(){return this.visible_};g.focus=function(){this.focusElement_()};
g.resizeBackground_=function(){this.bgIframeEl_&&Kr(this.bgIframeEl_,!1);this.bgEl_&&Kr(this.bgEl_,!1);var a=this.getDomHelper().document_;var b=G4c(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_&&(Kr(this.bgIframeEl_,!0),iHc(this.bgIframeEl_,c,a));this.bgEl_&&(Kr(this.bgEl_,!0),iHc(this.bgEl_,c,a))};
g.reposition=function(){var a;if(fHc(this.getElement())=="fixed")var b=a=0;else b=pmc(this.getDomHelper()),a=b.x,b=b.y;var c=jHc(this.getElement());var d=G4c(this);a=Math.max(a+d.width/2-c.width/2,0);b=Math.max(b+d.height/2-c.height/2,0);Js(this.getElement(),a,b);Js(this.tabCatcherElement_,a,b)};g.onFocus=function(a){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():a.target==this.tabCatcherElement_&&Vq(this.focusElement_,0,this)};g.focusElement_=function(){try{this.getElement().focus()}catch(a){}};
var G4c=function(a){a=a.getDomHelper().document_;return mz(nz(a)||window)};CV.prototype.disposeInternal=function(){Io(this.popupShowTransition_);this.popupShowTransition_=null;Io(this.popupHideTransition_);this.popupHideTransition_=null;Io(this.bgShowTransition_);this.bgShowTransition_=null;Io(this.bgHideTransition_);this.bgHideTransition_=null;CV.superClass_.disposeInternal.call(this)};var Dr=function(a,b,c){CV.call(this,b,c);this.class_=a||"modal-dialog";this.buttons_=DV(DV(new EV,H4c,!0),I4c,!1,!0)};zu(Dr,CV);g=Dr.prototype;g.escapeToCancel_=!0;g.hasTitleCloseButton_=!0;g.modal_=!0;g.backgroundElementOpacity_=.5;g.title_="";g.dragger_=null;g.disposeOnHide_=!1;g.titleEl_=null;g.titleTextEl_=null;g.titleTextId_=null;g.titleCloseEl_=null;g.contentEl_=null;g.buttonEl_=null;g.getCssClass=function(){return this.class_};
g.setTitle=function(a){this.title_=a;this.titleTextEl_&&rz(this.titleTextEl_,a)};g.getTitle=function(){return this.title_};g.getContent=function(){return""};g.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};var J4c=function(a){a.getElement()||a.render();return a.getElement()};Dr.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Dr.superClass_.getBackgroundElement.call(this)};
var K4c=function(a,b){a.backgroundElementOpacity_=b;a.getElement()&&(b=a.getBackgroundElement())&&kHc(b,a.backgroundElementOpacity_)};Dr.prototype.handleDrag=function(){};
var L4c=function(a,b){var c=oa(a.class_+"-title-draggable").split(" ");a.getElement()&&(b?nI(a.titleEl_,c):dHc(a.titleEl_,c));b&&!a.dragger_?(b=new zV(a.getElement(),a.titleEl_),a.dragger_=b,nI(a.titleEl_,c),Ep(a.dragger_,"start",a.setDraggerLimits_,!1,a),Ep(a.dragger_,"drag",a.handleDrag,!1,a)):!b&&a.dragger_&&(a.dragger_.dispose(),a.dragger_=null)};g=Dr.prototype;
g.createDom=function(){Dr.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"));hmc(a,this.titleEl_,this.contentEl_=b.createDom("DIV",{className:this.class_+"-content",id:c}),this.buttonEl_=
b.createDom("DIV",this.class_+"-buttons"));MG(this.titleTextEl_,"heading");MG(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;BAc(this.titleCloseEl_,"Close");MG(a,"dialog");NG(a,"labelledby",this.titleTextId_||"");Kr(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(a=this.buttons_,a.element_=this.buttonEl_,a.render());Kr(this.buttonEl_,!!this.buttons_);K4c(this,this.backgroundElementOpacity_)};
g.decorateInternal=function(a){Dr.superClass_.decorateInternal.call(this,a);a=this.getElement();var b=this.class_+"-content";this.contentEl_=lz(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_=lz(document,null,b,a)[0])?(this.titleTextEl_=lz(document,null,c,this.titleEl_)[0],this.titleCloseEl_=lz(document,null,d,this.titleEl_)[0]):
(this.titleEl_=this.getDomHelper().createDom("DIV",b),a.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=nmc(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=fmc("SPAN",{className:c,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;NG(a,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.getDomHelper().createDom("SPAN",d),this.titleEl_.appendChild(this.titleCloseEl_));
Kr(this.titleCloseEl_,this.hasTitleCloseButton_);b=this.class_+"-buttons";(this.buttonEl_=lz(document,null,b,a)[0])?(this.buttons_=new EV(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()),Kr(this.buttonEl_,!!this.buttons_));K4c(this,this.backgroundElementOpacity_)};
g.enterDocument=function(){Dr.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_);L4c(this,!0);this.getHandler().listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var a=this.getElement();MG(a,"dialog");this.titleTextEl_.id!==""&&NG(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()&&E4c(this,!1)}};g.exitDocument=function(){this.isVisible()&&this.setVisible(!1);L4c(this,!1);Dr.superClass_.exitDocument.call(this)};g.setVisible=function(a){a!=this.isVisible()&&(this.inDocument_||this.render(),Dr.superClass_.setVisible.call(this,a))};g.onShow=function(){Dr.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
g.onHide=function(){Dr.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.disposeOnHide_&&this.dispose()};g.setDraggerLimits_=function(){var a=this.getDomHelper().document_,b=mz(nz(a)||window),c=Math.max(a.body.scrollWidth,b.width);a=Math.max(a.body.scrollHeight,b.height);var d=jHc(this.getElement());fHc(this.getElement())=="fixed"?this.dragger_.limits=new oI(0,0,Math.max(0,b.width-d.width),Math.max(0,b.height-d.height)):this.dragger_.limits=new oI(0,0,c-d.width,a-d.height)};
g.onTitleCloseClick_=function(){M4c(this)};var M4c=function(a){if(a.hasTitleCloseButton_){var b=a.buttons_,c=b&&b.cancelButton_;c?(b=b.get(c),a.dispatchEvent(new N4c(c,b))&&a.setVisible(!1)):a.setVisible(!1)}},O4c=function(a){a.hasTitleCloseButton_=!1;a.titleCloseEl_&&Kr(a.titleCloseEl_,a.hasTitleCloseButton_)};Dr.prototype.setDisposeOnHide=function(a){this.disposeOnHide_=a};Dr.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Dr.superClass_.disposeInternal.call(this)};
Dr.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 N4c(a,b))&&this.setVisible(!1)}};
Dr.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 N4c(f,b))):e||(b=!0)}else{if(a.keyCode==9&&a.shiftKey&&e==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(A){}Vq(this.resetBackwardTabWrap_,0,this)}}else if(a.keyCode==13){if(e.tagName=="BUTTON"&&!e.disabled)f=e.name;
else if(e==this.titleCloseEl_)M4c(this);else if(d){var h=d.defaultButton_,k;if(k=h)a:{k=kz("BUTTON",d.element_);for(var q,v=0;q=k[v];v++)if(q.name==h||q.id==h){k=q;break a}k=null}e=(e.tagName=="TEXTAREA"||e.tagName=="SELECT"||e.tagName=="A")&&!e.disabled;!k||k.disabled||e||(f=h)}f&&d&&(c=!0,b=this.dispatchEvent(new N4c(f,String(d.get(f)))))}else e!=this.titleCloseEl_||a.keyCode!=32&&a.key!=" "||M4c(this);if(b||c)a.stopPropagation(),a.preventDefault();b&&this.setVisible(!1)};
var N4c=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};zu(N4c,yE);var EV=function(a){BV.call(this);this.dom_=a||Gp();this.class_="goog-buttonset";this.cancelButton_=this.element_=this.defaultButton_=null};zu(EV,BV);EV.prototype.clear=function(){BV.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};EV.prototype.set=function(a,b,c,d){BV.prototype.set.call(this,a,b);c&&(this.defaultButton_=a);d&&(this.cancelButton_=a);return this};
var DV=function(a,b,c,d){return a.set(b.key,b.caption,c,d)};EV.prototype.render=function(){if(this.element_){Zda(this.element_,Jr);var a=Gp(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)}};
EV.prototype.decorate=function(a){if(a&&a.nodeType==1){this.element_=a;a=kz("BUTTON",this.element_);for(var b,c,d,e=0;b=a[e];e++)if(c=b.name||b.id,d=nmc(b)||b.value,c){var f=e==0;this.set(c,d,f,b.name=="cancel");f&&bHc(b,this.class_+"-default")}}};EV.prototype.getElement=function(){return this.element_};EV.prototype.getDomHelper=function(){return this.dom_};
var H4c={key:"ok",caption:"OK"},I4c={key:"cancel",caption:"Cancel"},P4c={key:"yes",caption:"Yes"},Q4c={key:"no",caption:"No"},R4c={key:"save",caption:"Save"},S4c={key:"continue",caption:"Continue"};typeof document!="undefined"&&(DV(new EV,H4c,!0,!0),DV(DV(new EV,H4c,!0),I4c,!1,!0),DV(DV(new EV,P4c,!0),Q4c,!1,!0),DV(DV(DV(new EV,P4c),Q4c,!0),I4c,!1,!0),DV(DV(DV(new EV,S4c),R4c),I4c,!0,!0));zu(ohb,Dr);var phb=function(a,b){Cp.call(this);this.element_=a;a=qz(this.element_)?this.element_:this.element_?this.element_.body:null;this.isRtl_=!!a&&At(a);this.listenKey_=Ep(this.element_,Kp?"DOMMouseScroll":"mousewheel",this,b)};zu(phb,Cp);
phb.prototype.handleEvent=function(a){var b=0,c=0,d=a.event_;d.type=="mousewheel"?(a=T4c(-d.wheelDelta),d.wheelDeltaX!==void 0?(b=T4c(-d.wheelDeltaX),c=T4c(-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 U4c(a,d,b,c);this.dispatchEvent(b)};
var T4c=function(a){return Jp&&(ht||Ldc)&&a%40!=0?a:a/40};phb.prototype.disposeInternal=function(){phb.superClass_.disposeInternal.call(this);CE(this.listenKey_);this.listenKey_=null};var U4c=function(a,b,c,d){Ip.call(this,b);this.type="mousewheel";this.detail=a;this.deltaX=c;this.deltaY=d};zu(U4c,Ip);var whb;var V4c=ru(["https://about:blank"]),W4c=ru(['javascript:""']),X4c=ru(["about:blank"]);zu(Lr,ohb);g=Lr.prototype;g.url_="";g.iframe_=null;g.iframeLoaded_=!1;g.loadedFired_=!1;g.callback_=function(){};g.enterDocument=function(){Lr.superClass_.enterDocument.call(this);rhb(this.getBackgroundElement(),this.getHandler())};
g.render=function(a){var b=this;Lr.superClass_.render.call(this,a);this.useGapi_?f4c(this.iframeManager_,window).then(function(){return Y4c(b)}).then(null,function(c){return void b.handleError_(c)}):Z4c(this)};
var Y4c=function(a){var b=a.getDomHelper().createDom("div",["picker-dialog-content","picker-frame"]);Kr(b,!1);a.getContentElement().appendChild(b);return g4c(a.iframeManager_,b,function(c){var d=Qlc(c["iframe-command"]);switch(d.getCommand()){case 1:c=a.callback_;d=W(d,Nlc,2);var e="";switch(d.getStatus()){case 2:e="cancel";break;case 1:e="picked";break;case 3:e="error"}var f=d.getItemList(Cj);d=f.length===0?{action:e}:O3c(f,e,d.getInternalOnlyV1ViewInfo());c.call(a,d);a.setVisible(!1);break;case 4:O4c(a);
a.callback_({action:"loaded"});break;case 7:case 8:c=a.callback_;a:{e=d.getCommand();f=W(d,Nlc,2);switch(e){case 7:e="uploadScheduled";break;case 8:e="uploadStateChange";break;default:d={};break a}d=f.getItemList(Cj);if(d.length===0)d={action:e};else{var h=f.getInternalOnlyV1ViewInfo();f=h&&Rc(h,1);h=D3c(h);d=G3c(d,e,f,h)}}c.call(a,d)}},a.url_,a.targetId_,a.rpcToken_).then(function(c){a.iframe_=c.getIframeEl();$4c(a);Kr(a.iframe_.parentElement,!0);bHc(a.getElement(),"picker-dialog");a5c(a);return c})},
Z4c=function(a){a.iframe_=a.dom_.createDom("IFRAME",{id:a.targetId_,name:a.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});Xda(a.iframe_,b5c(a));bHc(a.getElement(),"picker-dialog");a.getContentElement().appendChild(a.iframe_);a.getHandler().listen(a.iframe_,"load",function(){return void $4c(a)});a.iframe_.src=a.url_;a5c(a)},d5c=function(a){c5c(a,bt(function(b){b.setAuthToken(this.targetId_,this.rpcToken_)},a))},a5c=function(a){var b=Hr(Gr(a.url_),"title");b&&a.setTitle(b)},b5c=function(a){return yaa()>=
7&&a.url_.lastIndexOf("https",0)==0?aj(V4c):Ps?aj(W4c):aj(X4c)},$4c=function(a){d5c(a);a.iframeLoaded_=!0;a.iframe_.tabIndex=0;a.isVisible()&&a.focus()};Lr.prototype.handleKeydown_=function(a){a.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),a.stopPropagation(),a.preventDefault())};var c5c=function(a,b){var c=a.gadgetsDomHelper_;nhb(function(){b(c.getWindow().gadgets.rpc)},c)};
Lr.prototype.setUrl=function(a){a=Ir(new Mp(a),"rpcService",this.targetId_);Ir(a,"rpctoken",this.rpcToken_);YAc(a,"rpctoken="+this.rpcToken_);WG(a,"https");this.url_=a.toString();this.iframe_&&(this.iframe_.src=this.url_)};Lr.prototype.setAppId=function(a){this.appId_=a;this.loadedFired_&&e5c(this)};Lr.prototype.setCallback=function(a){this.callback_=a;c5c(this,bt(function(b){b.register(this.targetId_,bt(this.handlePickerAction_,this))},this))};
Lr.prototype.handlePickerAction_=function(a){var b=a.action;b=="loaded"&&(this.loadedFired_=!0,f5c(this,new khb(this.isVisible())),e5c(this),O4c(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 e5c=function(a){a.appId_&&f5c(a,new jhb(a.appId_,window.location.protocol+"//"+window.location.host))};
Lr.prototype.setRelayUrl=function(a){c5c(this,bt(function(b){b.setRelayUrl(this.targetId_,a)},this))};var f5c=function(a,b){a.useGapi_&&l4c(b,a.iframeManager_).then(null,function(c){return void a.handleError_(c)});c5c(a,bt(function(c){c.call(this.targetId_,"picker",null,b)},a))};g=Lr.prototype;
g.resizePicker_=function(){var a=this.getDomHelper().document_;a=nz(a)||window;if(Hr(Gr(this.url_),"ignoreLimits")=="true")a=new hz(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(Hr(Gr(this.url_),"shadeDialog")=="true"){var b=J4c(this);b=nHc(b);var c=mz(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 hz(a>0?a:0,c>0?c:0)}else(b=this.preferredDialogWidth_)?(b=Math.max(320,Math.min(1051,b)),(c=this.preferredDialogHeight_)||
(c=mz(a).height*.85),c=Math.max(480,Math.min(650,c))):(b=mz(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=mz(a),b=Math.min(b,Math.max(a.width,320)),c=Math.min(c,Math.max(a.height,480)),a=new hz(b,c);iHc(this.getContentElement(),a);this.reposition()};
g.reposition=function(){if(Hr(Gr(this.url_),"shadeDialog")=="true"){var a=jHc(this.getElement()),b=mz(this.getDomHelper().getWindow());a=Math.floor(b.width/2-a.width/2);b=J4c(this);if(b=nHc(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=pmc(this.getDomHelper()).y;Js(this.getElement(),a,b)}else Lr.superClass_.reposition.call(this)};
g.setVisible=function(a){if(a!=this.isVisible()&&this.autoSizeDialog_){var b=this.getDomHelper().getWindow();a?(this.resizePicker_(),this.getHandler().listen(b,"resize",this.resizePicker_),this.iframeLoaded_||this.getHandler().listen(b,"keydown",this.handleKeydown_)):(this.getHandler().unlisten(b,"resize",this.resizePicker_),this.iframeLoaded_||this.getHandler().unlisten(b,"keydown",this.handleKeydown_))}Lr.superClass_.setVisible.call(this,a);f5c(this,new khb(a))};
g.focus=function(){Lr.superClass_.focus.call(this);if(this.iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.iframe_.focus()}catch(a){}};g.handleError_=function(){this.callback_({action:"error"})};var FV=function(a,b){b=b===void 0?Lr:b;ghb.call(this,a);this.pickerConstructor=b;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(a=window.location.origin)||(a=window.location.protocol+"//"+window.location.host);this.setOrigin(a);this.postProcessors_=[];this.gadgetsDomHelper_=void 0};Y(FV,hhb);FV.prototype.disposeOnHide_=!1;
FV.prototype.build=function(){this.getAppId()&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.getAppId());this.urlParamMap_.get("parent")||this.setRelayUrl(YAc(XAc(Gr(window.location.href)),"").setPath("/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("Xe");var a=new this.pickerConstructor(g5c(this).toString(),!0,this.getDomHelper(),this.dialogWidth_,this.dialogHeight_,"",this.gadgetsDomHelper_,!1,!1);a.setDisposeOnHide(this.disposeOnHide_);
a.setAppId(this.getAppId());a.setCallback(this.callback_);return a};var h5c=function(a,b){a.urlParamMap_.set(b,"true");return a};g=FV.prototype;g.getHeight=function(){return this.dialogHeight_};g.getLocale=function(){return this.urlParamMap_.get("hl")};g.getTitle=function(){return this.urlParamMap_.get("title")};g.getWidth=function(){return this.dialogWidth_};g.setDisposeOnHide=function(a){this.disposeOnHide_=a};g.setGroupId=function(a){this.urlParamMap_.set("groupId",a)};
var i5c=function(a){a.urlParamMap_.set("hostId","buganizer-drive");return a};g=FV.prototype;g.setOrigin=function(a){a&&this.urlParamMap_.set("origin",a);return this};g.setLocale=function(a){this.urlParamMap_.set("hl",a);return this};g.setRelayUrl=function(a){this.urlParamMap_.set("parent",a)};g.setSize=function(a){this.dialogWidth_=a;this.dialogHeight_=void 0;return this};g.setTitle=function(a){this.urlParamMap_.set("title",a);return this};
var g5c=function(a){a.postProcessors_.length&&a.urlParamMap_.set("pp",JSON.stringify(a.postProcessors_));a.urlParamMap_.set("nav",t3c(a.nav_));var b=new Mp(a.getBaseUrl());a.urlParamMap_.forEach(function(c,d){Ir(b,d,c)});return b};var GV=function(){this.activeSession=r(Bs);this.attachmentsApi=r(mK);this.onePickUrl=this.activeSession.getOnePickUrl();this.disabled=!1;this.onPickDoc=new LE;this.onCloneBlob=new LE};
GV.prototype.showDialog=function(){var a=this;if(!this.drivePicker){var b=window.location.origin||window.location.protocol+"//"+window.location.host;this.drivePicker=i5c(h5c(h5c(h5c(h5c((new FV(this.onePickUrl)).addView(m3c().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 i3c(e.value),c.extraUserInputs.isAttachment?(e=new j3c(e),k3c(e,a.attachmentsApi),a.onCloneBlob.emit(e)):
a.onPickDoc.emit(e)}).setOrigin(b)).build()}this.drivePicker.setVisible(!0)};GV.\u0275fac=function(a){return new (a||GV)};
GV.\u0275cmp=y({type:GV,selectors:[["b-drive-attachment"]],inputs:{disabled:"disabled"},outputs:{onPickDoc:"onPickDoc",onCloneBlob:"onCloneBlob"},standalone:!1,decls:3,vars:1,consts:[[1,"goog-inline-block","vertical-centered"],["type","button","mat-icon-button","","matTooltip","Add Drive attachments","aria-label","Add Drive attachments",3,"click","disabled"],["svgIcon","google-drive"]],template:function(a,b){a&1&&(J(0,"div",0)(1,"button",1),N("click",function(){return b.showDialog()}),M(2,"mat-icon",
2),K()());a&2&&(x(),I("disabled",b.disabled))},dependencies:[FC,oG,Kx,zG,xG],encapsulation:2});var HV=function(){Z.apply(this,arguments);this.issueDetailsBrain=r(MK);this.userResources=r(aD);this.analytics=r(RE);this.isPlusOneText=!1;this.onSubmitComment=new LE};Y(HV,Z);HV.\u0275dir=Z.\u0275dir;HV.prototype.ngOnChanges=function(a){a.isPlusOneText&&this.isPlusOneText&&this.analytics.trackEvent("editIssue","view","commentAndVoteBanner")};
HV.prototype.onClick=function(a){var b=this,c,d;return z(function(e){if(e.nextAddress==1)return B(e,Rf(b.issueDetailsBrain.id$),2);c=e.yieldResult;b.onSubmitComment.emit(a);if(c==null)return e.return();d={voted:!0,starred:null,notificationSubscription:null};duc(b.userResources,c,d).pipe(yg(b.destroyed$)).subscribe();b.analytics.trackEvent("editIssue","click","commentAndVote");Lf(e)})};HV.\u0275fac=function(){var a;return function(b){return(a||(a=Re(HV)))(b||HV)}}();
HV.\u0275cmp=y({type:HV,selectors:[["b-plus-one-comment-callout"]],inputs:{isPlusOneText:"isPlusOneText"},outputs:{onSubmitComment:"onSubmitComment"},standalone:!1,features:[Bg,ov],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,zhb,7,1,"div",0);a&2&&G(b.isPlusOneText?0:-1)},dependencies:[FC,oG,Jx,zG,xG],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 j5c=["commentBoxContainer"],k5c=[[["","warning",""]],[["","recaptchaContainer",""]],[["","additionalToolbarItems",""]]],l5c=function(a,b){return[a,b]},IV=function(){this.analytics=r(RE);this.hotkeys=r(PG);this.activeSession=r(Bs);this.appEvents=r(FB);this.MARKDOWN="MARKDOWN";this.commentChange=new LE;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 LE;this.onChange=new LE;this.onFocusEvent=new LE;this.onSubmit=new LE;this.onRestrict=new LE;this.createRestrictedResourcesComponentIds=this.activeSession.getCreateRestrictedSubresourcesComponentIds();this.focused=!1;this.commentRebound$=new sg(1);this.destroyed$=new sg(1);this.currentTracker=this.activeSession.getTracker()};g=IV.prototype;g.ngOnDestroy=function(){var a;(a=this.comment)==null||oLc(a);this.destroyed$.next()};
g.ngOnInit=function(){var a=this;this.appEvents.focusCommentBox.pipe(yg(this.destroyed$)).subscribe(function(b){W2a(a,b)});this.appEvents.scrollToCommentBox.pipe(yg(this.destroyed$)).subscribe(function(){a.scrollIntoView()})};g.ngOnChanges=function(a){a.comment&&this.commentRebound$.next()};g.getRestrictedLabel=function(){var a,b,c=(b=(a=this.judgementForNewContent)==null?void 0:a.severity)!=null?b:"NONE_DETECTED";return Lza(c)};
g.isRestricted=function(){var a,b;return((b=(a=this.judgementForNewContent)==null?void 0:a.severity)!=null?b:"NONE_DETECTED")!=="NONE_DETECTED"};var W2a=function(a,b){(b=b===void 0?"":b)&&a.analytics.trackEvent("commentBox","takeFocus",b);a.scrollIntoView();setTimeout(function(){var c;(c=a.commentDraftComponent)==null||zXc(c)})};g=IV.prototype;g.uploadFile=function(a){a=this.attachmentUploader.upload(a);this.addUpload(a)};g.addUpload=function(a){this.comment&&this.comment.uploads.push(a)};
g.removeUpload=function(a){this.comment&&Fa(this.comment.uploads,a)};g.scrollIntoView=function(){var a;(a=this.commentBoxContainer)==null||a.nativeElement.scrollIntoView({behavior:"smooth"})};g.onFocus=function(){this.focused=!0;this.onFocusEvent.emit()};g.onBlur=function(){this.focused=!1};g.onKeydown=function(a){this.hotkeys.isEnabled()&&(a.key!=="Enter"||!a.ctrlKey&&!a.metaKey||this.disabled||this.onSubmit.emit(a))};
g.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))}};
IV.\u0275fac=function(a){return new (a||IV)};
IV.\u0275cmp=y({type:IV,selectors:[["b-comment-box"]],viewQuery:function(a,b){a&1&&(hh(SR,5),hh(j5c,5),hh(tV,5));if(a&2){var c;lh(c=mh())&&(b.commentDraftComponent=c.first);lh(c=mh())&&(b.commentBoxContainer=c.first);lh(c=mh())&&(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"},standalone:!1,features:[ov],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();ch(k5c);J(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 w()})("focus",function(){u(c);return w(b.onFocus())})("blur",function(){u(c);return w(b.onBlur())})("keydown",function(d){u(c);return w(b.onKeydown(d))})("paste",function(d){u(c);return w(b.handlePaste(d))});K();F(4,Ahb,1,1,"b-plus-one-comment-callout",4);K();dh(5);J(6,"b-attachment-uploader",5);N("onUploadCancel",function(d){u(c);b.removeUpload(d);return w(b.onChange.emit())})("onUploadComplete",
function(){u(c);return w(b.onChange.emit())});K();dh(7,1);F(8,Fhb,5,3,"div",6);K();F(9,Ghb,2,4,"div")}a&2&&(uh("focused",b.focused),x(3),I("content",b.comment.value)("placeholder",b.placeholder)("disabled",b.disabled)("textareaClass",Ih(16,l5c,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),
x(),G(b.isPlusOneCalloutEnabled?4:-1),x(2),I("uploads",b.comment.uploads),x(2),G(b.showToolbar?8:-1),x(),G(b.supportsPreview&&b.comment.formattingMode===b.MARKDOWN?9:-1))},dependencies:[FC,SR,zG,xG,yO,GV,qV,tV,oG,Jx,Kx,HV],encapsulation:2});var JV=function(){this.documentationLinks=r(JJ);this.issueLimits=r(dS);this.accessPolicyApi=r(rB);this.implicitAccessEnabled=!1};JV.prototype.ngOnInit=function(){var a=this;this.componentId&&this.accessPolicyApi.checkComponentImplicitAccessEnabled(this.componentId).then(function(b){return a.implicitAccessEnabled=b})};JV.prototype.toggleAccessLimits=function(){var a=this;return z(function(b){if(!a.componentId)return b.return();a.issueLimits.open({componentId:a.componentId,issueId:a.issueId});Lf(b)})};
JV.prototype.toggleAccessLimitsWithKeystroke=function(a){this.toggleAccessLimits();a.stopPropagation();a.preventDefault()};JV.prototype.getAccessLimitLevelDisplay=function(a){return a==="LIMIT_APPEND"?"Commenting":a==="LIMIT_VIEW"||a==="LIMIT_VIEW_TRUSTED"?"Visibility":""};
var m5c=function(a,b){if(b)a:if(a=a.implicitAccessEnabled,b===QXc.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(Q1a),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?R1a.descriptionWithExpandedAccess:R1a.descriptionNoExpandedAccess}else b="";return b};JV.\u0275fac=function(a){return new (a||JV)};
JV.\u0275cmp=y({type:JV,selectors:[["b-access-limits-chip"]],inputs:{issueId:"issueId",componentId:"componentId",accessLimitLevel:"accessLimitLevel"},standalone:!1,decls:12,vars:4,consts:[["card","onedevHovercard"],["type","button","role","button","matTooltip","Press Alt + Right arrow for more details",1,"chippy","rounded","nowrap","access-limited",3,"click","keydown.enter","keydown.space","onedevHovercardTrigger"],["svgIcon","encrypted_24px",1,"icon-s","valign-middle"],[1,"access-limit-display-name"],
[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hovertext"],["target","_blank","aria-label","Learn more about issue access limits",3,"href"]],template:function(a,b){if(a&1){var c=t();J(0,"button",1);N("click",function(){u(c);return w(b.toggleAccessLimits())})("keydown.enter",function(d){u(c);return w(b.toggleAccessLimitsWithKeystroke(d))})("keydown.space",function(d){u(c);return w(b.toggleAccessLimitsWithKeystroke(d))});M(1,"mat-icon",2);J(2,"span",3);R(3);K()();J(4,"onedev-hovercard",
null,0)(6,"div",4)(7,"div",5)(8,"span",6);R(9);J(10,"a",7);R(11," Learn more");K()()()()()}a&2&&(a=Q(5),I("onedevHovercardTrigger",a),x(3),wh(b.getAccessLimitLevelDisplay(b.accessLimitLevel)),x(6),T(" Issue access is limited. ",m5c(b,b.accessLimitLevel)," "),x(),I("href",b.documentationLinks.getIssueAccessLimit(),hf))},dependencies:[FC,zG,xG,DI,JI],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 n5c=[[["","additionalToolbarItems",""]]],KV=function(){var a=this;this.issuePermissionService=r(OK);this.userPreferencesManager=r(iG);this.editIssueService=r(RK);this.analytics=r(RE);this.draftStore=r(IJ);this.activeSession=r(Bs);this.issueDetailsBrain=r(MK);this.issueCommentDialogsService=r(ZR);this.appEvents=r(FB);this.bannedWordsChecker=r(UO);this.componentFridge=r(BB);this.butterBar=r(GJ);this.destroyRef=r(Gg);this.issueId$=new sg(1);this.distinctIssueId$=this.issueId$.pipe(og());this.issue$=
this.distinctIssueId$.pipe(xg(function(b){return a.editIssueService.editableIssue$(b)}));this.wasFocused=!1;this.enableRecaptcha=this.activeSession.userRequiresCaptcha();this.enableLiteralModeRevisions=OA(this.activeSession,"enableLiteralModeRevisions");this.recaptchaResponse$=new Kn("");this.showActionsAfterPreview=!1;this.showCommentButton=!0;this.commentSubmitted=new LE;this.issueComponent$=this.issue$.pipe(xg(function(b){return(b==null?0:b.componentId)?a.componentFridge.watch(b==null?void 0:b.componentId):
Nf(void 0)}));this.issueAccessLimitLevel$=this.issuePermissionService.accessLimitLevel$.pipe(C(function(b){return b!=null?b:"LIMIT_NONE"}));this.isAccessLimited$=this.issueAccessLimitLevel$.pipe(C(function(b){return b==="LIMIT_VIEW"||b==="LIMIT_APPEND"||b==="LIMIT_VIEW_TRUSTED"}));this.HOTKEYS=sp;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(C(function(b){return b.autoCcOnComment}));this.issueCommentDraft$=this.issueId$.pipe(C(function(b){return a.editIssueService.issueCommentDraft(b)}));this.judgementForNewContent$=this.issueCommentDraft$.pipe(xg(function(b){return b.judgementForNewContent$}));this.comment$=this.issueCommentDraft$.pipe(xg(function(b){return b.comment$}));this.events$=
this.issueDetailsBrain.eventsJs$;this.savingState$=this.issueId$.pipe(C(function(b){return a.editIssueService.savingState(b)}));this.isSaving$=this.savingState$.pipe(xg(function(b){return CMc(b,"comment")}));this.commentLimitReached$=this.events$.pipe(C(function(b){var c=a.activeSession.getCommentNumberLimit();return Zva(b)>=c}));this.commentPlaceholderText$=this.commentLimitReached$.pipe(C(function(b){return b?"The comment limit has been reached and no additional comments are permitted.":a.activeSession.isAnonymous()?
"Sign in to use full features.":a.issuePermissionService.hasAclToComment()?"Add a comment.":"You do not have access to comment on this issue."}));this.commentBoxEnabled$=Uf([this.hasAclToComment$,this.commentLimitReached$,this.isSaving$]).pipe(C(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$=Uf([this.hasAclToComment$,this.commentLimitReached$]).pipe(C(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(C(function(b){return a.activeSession.isInternalSession()&&!b}));this.isPlusOneText$=new Kn(!1);this.commentButtonStyle$=Uf([this.isPlusOneCalloutEnabled$,this.isPlusOneText$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b&&c?"hairline":"fill"}));this.commentDraftUpdated$=new Kn(!0);this.commentButtonEnabled$=Uf([this.hasAclToComment$,this.comment$,this.isSaving$,this.recaptchaResponse$,this.commentDraftUpdated$]).pipe(C(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&&qLc(d)&&!e&&(!a.enableRecaptcha||c!=="")}));this.empty$=Uf([this.comment$,this.commentDraftUpdated$]).pipe(C(function(b){var c,d;return(d=(c=l(b).next().value)==null?void 0:c.value)!=null?d:""}),C(function(b){return b.length===0}));this.doAutoRestrictComment$=Uf([this.issueComponent$,this.comment$,this.commentDraftUpdated$,this.judgementForNewContent$]).pipe(C(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 ur(c)&&e&&!Eq(a.activeSession)&&d&&b}))};KV.prototype.setJudgementForNewContent=function(a,b){this.editIssueService.issueCommentDraft(a).setJudgementForNewContent(b)};
KV.prototype.autoRestrictComment=function(a){var b=this,c;return z(function(d){a&&(c={severity:"RESTRICTED",judgementReason:"Auto-restricted for issue on public tracker being edited from outside of a tracker",resourcePath:void 0,contentJudgementId:void 0},b.setJudgementForNewContent(b.issueId,c),Kq(b.butterBar,"Because this issue is displayed on a public tracker, this comment will be Restricted. You may modify the restriction level before submitting the comment."));Lf(d)})};
KV.prototype.ngOnInit=function(){this.doAutoRestrictComment$.pipe(lp(this.destroyRef)).subscribe(this.autoRestrictComment.bind(this))};var Lhb=function(a){var b;return z(function(c){b=!jG(a.userPreferencesManager).autoCcOnComment;a.analytics.trackEvent("editIssue","toggleAutoCcOnComment",String(b));return B(c,Rf(a.userPreferencesManager.save({autoCcOnComment:b})),0)})};
KV.prototype.saveCommentDraft=function(){var a=this,b;return z(function(c){if(c.nextAddress==1)return a.bannedWordsChecker.reset(),B(c,Rf(a.comment$),2);b=c.yieldResult;a.draftStore.$window.sessionStorage.setItem(mq(a.internalIssueId),b.value);a.commentDraftUpdated$.next(!0);Lf(c)})};
KV.prototype.submitCommentBox=function(a){var b=this,c,d,e,f,h,k,q;return z(function(v){switch(v.nextAddress){case 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),B(v,b.bannedWordsChecker.check(e.value,b.issuePermissionService.accessLevel()==="EXTERNAL_PUBLIC",f.componentId),2);case 2:return h=v.yieldResult,h?B(v,b.issueCommentDialogsService.submitCommentBox(String(f.componentId),
b.internalIssueId,e,d),3):((k=a)==null||k.preventDefault(),(q=b.commentBox)==null||W2a(q),v.return());case 3:b.commentSubmitted.emit();if(!b.enableLiteralModeRevisions){v.jumpTo(4);break}return B(v,yzc(b.userPreferencesManager,e.formattingMode),4);case 4:b.bannedWordsChecker.reset(),b.appEvents.recaptchaSubmitted.next(),Lf(v)}})};
KV.prototype.showNewContentJudgementDialog=function(){var a=this;return z(function(b){return B(b,a.issueCommentDialogsService.showNewContentJudgementDialog(a.internalIssueId),0)})};nd.Object.defineProperties(KV.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a);this.internalIssueId=a},get:function(){return this.internalIssueId}},componentIdString:{configurable:!0,enumerable:!0,get:function(){return String(this.editIssueService.editableIssue(this.internalIssueId).componentId)}}});
KV.\u0275fac=function(a){return new (a||KV)};
KV.\u0275cmp=y({type:KV,selectors:[["b-post-comment"]],viewQuery:function(a,b){a&1&&hh(IV,5);if(a&2){var c;lh(c=mh())&&(b.commentBox=c.first)}},inputs:{issueId:"issueId",showActionsAfterPreview:"showActionsAfterPreview",showCommentButton:"showCommentButton"},outputs:{commentSubmitted:"commentSubmitted"},standalone:!1,features:[Fh([UO])],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&&(ch(n5c),F(0,Vhb,1,1),U(1,"async"),D(2,Xhb,1,1,"ng-template",null,0,Lh));if(a&2){var c;G((c=V(1,1,b.issue$))?0:-1,c)}},dependencies:[AG,IV,fQ,Sv,RG,gM,hM,TR,JV,NO,Tv],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 LV=function(){};LV.\u0275fac=function(a){return new (a||LV)};LV.\u0275mod=uf({type:LV});LV.\u0275inj=Dd({providers:[{provide:a3c,useFactory:function(){return new Y2c}}]});var MV=function(){};MV.\u0275fac=function(a){return new (a||MV)};MV.\u0275mod=uf({type:MV});MV.\u0275inj=Dd({imports:[aw,LV]});var NV=function(){};NV.\u0275fac=function(a){return new (a||NV)};NV.\u0275mod=uf({type:NV});NV.\u0275inj=Dd({providers:[{provide:$2c,useFactory:rV}],imports:[HC,BG,CG,MV,nL]});var OV=function(){};OV.\u0275fac=function(a){return new (a||OV)};OV.\u0275mod=uf({type:OV});OV.\u0275inj=Dd({imports:[HC,BG,CG]});var PV=function(){};PV.\u0275fac=function(a){return new (a||PV)};PV.\u0275mod=uf({type:PV});PV.\u0275inj=Dd({imports:[HC,OU,gL,CG,DG,kQ,NV,BG,OV]});var QV=function(){};QV.\u0275fac=function(a){return new (a||QV)};QV.\u0275mod=uf({type:QV});QV.\u0275inj=Dd({imports:[HC,BG,mH,CG,gL]});var RV=function(){};RV.\u0275fac=function(a){return new (a||RV)};RV.\u0275mod=uf({type:RV});RV.\u0275inj=Dd({imports:[QV,HC,QU,gL,BG,wK,mH,CG,zQ,lM]});var SV=function(){};SV.\u0275fac=function(a){return new (a||SV)};SV.\u0275mod=uf({type:SV});SV.\u0275inj=Dd({imports:[HC,oQ,CG,tJ,RV]});var TV=function(){};TV.\u0275fac=function(a){return new (a||TV)};TV.\u0275mod=uf({type:TV});TV.\u0275inj=Dd({});var UV=function(){};UV.\u0275fac=function(a){return new (a||UV)};UV.\u0275mod=uf({type:UV});UV.\u0275inj=Dd({imports:[DG,PV,kQ,HC,qQ,Ay,SG,BG,lM,TV,SV,AQ]});var o5c=["addLink"],p5c=["peopleKitDiv"],q5c=[Object.assign({},lib("start","bottom"),mib("start","top"),{offsetY:8}),Object.assign({},lib("center","bottom"),mib("center","top"),{offsetY:8}),Object.assign({},lib("end","bottom"),mib("end","top"),{offsetY:8}),Object.assign({},lib("start","top"),mib("start","bottom"),{offsetY:-8}),Object.assign({},lib("end","top"),mib("end","bottom"),{offsetY:-8})],VV=function(){var a=this;this.activeSession=r(Bs);this.principalTypesFridge=r(HF);this.issuePermissionService=
r(OK);this.issueDetailsBrain=r(MK);this.autocompleteConfigService=r(GO);this.title=this.name="";this.values=null;this.collectionHovercardDescription=this.removeSelfActionLongDescription=this.removeSelfActionDescription=this.includeSelfActionLongDescription=this.includeSelfActionDescription="";this.valueChange=new LE;this.userInclusionToggle=new LE;this.enablePeoplekitAc=OA(this.activeSession,"enablePeoplekitUserAc");this.iconName="";this.teamId$=this.issueDetailsBrain.teamId$;this.ListFieldType=GPc;
this.providedValues$=new sg(1);this.groups$=this.providedValues$.pipe(xg(function(b){return a.extractGroups(b)}),wg(new Set));this.OVERLAY_POSITION_LIST=q5c;this.newlySelectedUsersString="";this.inputValidator=null;this.checkAccessLimits=!1;this.overlayPosition=q5c;this.toggleAccessLimits=new LE;this.USER_FIELD_HOVERCARD_CONFIG=Object.assign({},new GI,{position:[MHc]});this.hasAclToAdmin$=this.issuePermissionService.hasAclToAdmin$;this.enableTeamAnnotations=this.activeSession.isInternalSession()};
g=VV.prototype;g.extractGroups=function(a){var b=function(c){return c.principalType==="GROUP"};return this.principalTypesFridge.watchSet(a).pipe(C(function(c){return new Set(c.filter(b).map(function(d){return d.email}))}))};g.removeItem=function(a){if(this.values){var b=[].concat(p(this.values));b.splice(a,1);this.valueChange.emit({editField:null,newUsers:b})}};g.getUser=function(a){if(!this.users||!this.values)return{emailAddress:""};a=this.values.indexOf(a);return a===-1?{emailAddress:""}:this.users[a]};
g.closeAddPopup=function(a){var b,c=l((b=this.menuTriggers)!=null?b:[]);for(b=c.next();!b.done;b=c.next())b.value.closeMenu();var d;c=l((d=this.popupTriggers)!=null?d:[]);for(d=c.next();!d.done;d=c.next())this.closeInlineDialog(d.value);a&&this.addLinkEl&&this.addLinkEl.nativeElement.focus()};g.closeInlineDialog=function(a){a.disabled||(a.disabled=!0,a.disabled=!1)};g.handleAddItems=function(a){this.closeAddPopup(!0);this.addItems(a)};
g.addItems=function(a){if(a){var b=[];this.values=this.values||[];a=l(a.split(/[,; ]/));for(var c=a.next();!c.done;c=a.next())(c=c.value)&&!this.values.includes(c)&&b.push(c);b.length!==0&&(this.values=[].concat(p(this.values),p(b)),this.valueChange.emit({editField:null,newUsers:this.values}))}};VV.\u0275fac=function(a){return new (a||VV)};
VV.\u0275cmp=y({type:VV,selectors:[["b-multi-user-control"]],viewQuery:function(a,b){a&1&&(hh(o5c,5),hh(uG,5),hh(yM,5),hh(p5c,5));if(a&2){var c;lh(c=mh())&&(b.addLinkEl=c.first);lh(c=mh())&&(b.menuTriggers=c);lh(c=mh())&&(b.popupTriggers=c);lh(c=mh())&&(b.peopleKitDiv=c)}},inputs:{name:"name",title:"title",values:"values",includeSelfActionDescription:"includeSelfActionDescription",includeSelfActionLongDescription:"includeSelfActionLongDescription",removeSelfActionDescription:"removeSelfActionDescription",
removeSelfActionLongDescription:"removeSelfActionLongDescription",collectionHovercardDescription:"collectionHovercardDescription",users:"users",isSaving:"isSaving",iconName:"iconName",isCurrentUserInCollection:"isCurrentUserInCollection",isAllowedToEditCollection:"isAllowedToEditCollection",inputValidator:"inputValidator",checkAccessLimits:"checkAccessLimits",overlayPosition:"overlayPosition"},outputs:{valueChange:"valueChange",userInclusionToggle:"userInclusionToggle",toggleAccessLimits:"toggleAccessLimits"},
standalone:!1,decls:25,vars:13,consts:[["listActions",""],["textPopup",""],["addLink",""],["hovercard","onedevHovercard"],["removeButton",""],[1,"bv2-issue-metadata-list-field","bv2-issue-metadata-field",3,"onedevHovercardTrigger","onedevHovercardActive","onedevHovercardConfig"],[1,"bv2-issue-metadata-field-inner"],[1,"bv2-editable-title"],[1,"list-field-content"],[3,"isExpanded","iconName","hasCompactTitleBar","title"],[1,"flex-kids-x","flex-cross-axis-centered","flex-wrappable"],[1,"bv2-field-user-action-footer"],
["type","button","mat-button","","panelClass","bv2-add-item-bubble","tabindex","0",1,"mat-primary","bv2-metadata-tool","bv2-metadata-link","tiny",3,"xapInlineDialogClick","dialogLabel","overlayPositions","matTooltip"],[4,"ngTemplateOutlet"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hovertext"],["mat-button","","href","https://developers.google.com/issue-tracker/references/glossary-of-fields","target","_blank",1,"primary"],[1,"value-action"],["tabindex","0","role","button",1,"bv2-metadata-tool",
"bv2-metadata-link",3,"disabled","matTooltip"],["tabindex","0","role","button",1,"bv2-metadata-tool","bv2-metadata-link",3,"click","keydown.enter","keydown.space","matTooltip"],[3,"onAddItems","onCancel","actionName","inputValidator","isAllowedToEditCollection","title"],[1,"bv2-issue-metadata-list-item","list-field-user-container"],[3,"user","email","teamId","enableSmallChip","enableGroupIcon"],["name","group_24px","size","small",1,"group-icon"],[3,"email"],["type","button","aria-label","Open issue access dialog.",
1,"unstyled","keep-focus-ring",3,"disabled"],["type","button","aria-label","Open issue access dialog.",1,"unstyled","keep-focus-ring",3,"click","disabled"],["size","small","name","edit_24px",1,"issue-metadata-field-edit-icon"],["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&&(D(0,aib,2,1,"ng-template",null,0,Lh)(2,bib,3,4,"ng-template",
null,1,Lh),J(4,"div",5)(5,"div",6)(6,"div",7)(7,"label"),R(8),K()(),J(9,"div",8)(10,"collapsible-panel",9),Pg(11,iib,9,8,"div",10,Ng),K(),J(13,"div",11,2),F(15,jib,2,8,"button",12),D(16,kib,1,0,"ng-container",13),K()()()(),J(17,"onedev-hovercard",null,3)(19,"div",14)(20,"div",15)(21,"span",16),R(22),J(23,"a",17),R(24,"Learn more."),K()()()()());if(a&2){a=Q(1);var c=Q(18);x(4);I("onedevHovercardTrigger",c)("onedevHovercardActive",!0)("onedevHovercardConfig",b.USER_FIELD_HOVERCARD_CONFIG);x(4);T(" ",
b.title," ");x(2);I("title",Eh("",(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);x();Qg(b.values);x(4);G(b.isAllowedToEditCollection?15:-1);x();I("ngTemplateOutlet",a);x(6);T(" ",b.collectionHovercardDescription," ")}},dependencies:[Sv,DI,JI,fJ,zG,xG,oG,Jx,rM,fL,eL,yM,uM,tM,JU,Tv],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 WV=function(){};WV.\u0275fac=function(a){return new (a||WV)};WV.\u0275mod=uf({type:WV});WV.\u0275inj=Dd({imports:[aw]});var XV=function(){};XV.\u0275fac=function(a){return new (a||XV)};XV.\u0275mod=uf({type:XV});XV.\u0275inj=Dd({imports:[aw,IQ]});var YV=function(){};YV.\u0275fac=function(a){return new (a||YV)};YV.\u0275mod=uf({type:YV});YV.\u0275inj=Dd({imports:[WV,aw,IQ,XV]});var ZV=function(){};ZV.\u0275fac=function(a){return new (a||ZV)};ZV.\u0275mod=uf({type:ZV});ZV.\u0275inj=Dd({});var $V=function(){};$V.\u0275fac=function(a){return new (a||$V)};$V.\u0275mod=uf({type:$V});$V.\u0275inj=Dd({imports:[aw,sJ,IQ,NM,Bw,ZV]});var aW=function(){};aW.\u0275fac=function(a){return new (a||aW)};aW.\u0275mod=uf({type:aW});aW.\u0275inj=Dd({imports:[CH,HC,PM,YV,tJ,uJ,nL,CG,BG,sM,$V,hL,gL,CM,vM,dV]});var bW=function(){};bW.\u0275fac=function(a){return new (a||bW)};bW.\u0275mod=uf({type:bW});bW.\u0275inj=Dd({imports:[CH,HC,AI,DL,YV,SG,uJ,nL,hL,YU]});var cW=function(){};cW.\u0275fac=function(a){return new (a||cW)};cW.\u0275mod=uf({type:cW});cW.\u0275inj=Dd({imports:[HC,OU,QU,EU,DL,Ay,BG,lM,mH,hQ,CG,SG,VU,TU,tJ,XK,DQ,PM,RN,aW,dV,UV,bW,AN,hL,uM]});xna(kS,[FC,aS,BL,oG,Jx,zG,xG,RG,OM,VV,KV,rU,vU,FU,LU,KU],[Tv]);var dW=function(){};dW.\u0275fac=function(a){return new (a||dW)};dW.\u0275mod=uf({type:dW});dW.\u0275inj=Dd({});var eW=function(){};eW.\u0275fac=function(a){return new (a||eW)};eW.\u0275mod=uf({type:eW});eW.\u0275inj=Dd({imports:[HC]});var fW=function(){};fW.\u0275fac=function(a){return new (a||fW)};fW.\u0275mod=uf({type:fW});fW.\u0275inj=Dd({imports:[HC,BG,kx]});var gW=function(){};gW.\u0275fac=function(a){return new (a||gW)};gW.\u0275mod=uf({type:gW});gW.\u0275inj=Dd({imports:[Bw,LS,aw,RS,sJ,GC,ox,OS]});var hW=function(){};hW.\u0275fac=function(a){return new (a||hW)};hW.\u0275mod=uf({type:hW});hW.\u0275inj=Dd({imports:[HC,rT,kQ,JL,fW,gL,BG,wK,CG,tJ,gW,hL,AN,pQ]});var iW=function(){};iW.\u0275fac=function(a){return new (a||iW)};iW.\u0275mod=uf({type:iW});iW.\u0275inj=Dd({imports:[HC,mH,BG,wK,zL,EM,aM,CG,XQ,RN,lM,Ay,pQ]});var jW=function(){};jW.\u0275fac=function(a){return new (a||jW)};jW.\u0275mod=uf({type:jW});jW.\u0275inj=Dd({imports:[hW,dW,HC,rT,eW,gL,BG,CG,iW,pQ]});var kW=function(){};kW.\u0275fac=function(a){return new (a||kW)};kW.\u0275mod=uf({type:kW});kW.\u0275inj=Dd({imports:[HC,BG,AN]});var lW=function(){};lW.\u0275fac=function(a){return new (a||lW)};lW.\u0275mod=uf({type:lW});lW.\u0275inj=Dd({imports:[rT,jW,kQ,HC,JL,kW,tJ,XK,BG,CG,iW,AN,hL]});var mW=function(){};mW.\u0275fac=function(a){return new (a||mW)};mW.\u0275mod=uf({type:mW});mW.\u0275inj=Dd({imports:[HC]});var nW=function(){};nW.\u0275fac=function(a){return new (a||nW)};nW.\u0275mod=uf({type:nW});nW.\u0275inj=Dd({imports:[HC,qQ]});var oW=function(){};oW.\u0275fac=function(a){return new (a||oW)};oW.\u0275mod=uf({type:oW});oW.\u0275inj=Dd({imports:[HC,tJ,CQ,JL,hL,nW,kQ]});var pW=function(){};pW.\u0275fac=function(a){return new (a||pW)};pW.\u0275mod=uf({type:pW});pW.\u0275inj=Dd({imports:[HC,kQ]});var qW=function(){};qW.\u0275fac=function(a){return new (a||qW)};qW.\u0275mod=uf({type:qW});qW.\u0275inj=Dd({imports:[rT,jW,kQ,HC,JL,tJ,oW,XK,iW,hL,CG,pW,BG,mW]});var rW=function(){};rW.\u0275fac=function(a){return new (a||rW)};rW.\u0275mod=uf({type:rW});rW.\u0275inj=Dd({imports:[HC,qW,oW,BG,AN]});var nib=function(a){return{stage:a}},wib=function(a){return{summary:a}},sW=function(){Z.apply(this,arguments);var a=this;this.llmIssueSummaryService=r(DT);this.userFeedback=r(rS);this.GENERATING="GENERATING";this.SUMMARY_VISIBLE="SUMMARY_VISIBLE";this.isIssueSummaryExpanded=!0;this.stage$=this.llmIssueSummaryService.stage$;this.summary$=this.llmIssueSummaryService.summary$.pipe(zg(function(b){b&&b.summary&&a.llmIssueSummaryService.trackEvent("display","issueDetailsPage")}),ug({refCount:!0,bufferSize:1}));
this.thumbsDownClicked=this.thumbsUpClicked=this.hasReacted=!1};Y(sW,Z);sW.\u0275dir=Z.\u0275dir;g=sW.prototype;g.ngOnInit=function(){var a=this;this.llmIssueSummaryService.summarizable$.pipe(yg(this.destroyed$)).subscribe(function(b){b.isSummarizable&&a.llmIssueSummaryService.trackEvent("viewSummarizableIssue","issueDetailsPage")})};g.trackThumbsUp=function(a){Wj("thumbsup");this.thumbsUpClicked=this.hasReacted=!0;this.llmIssueSummaryService.trackThumbsUp(a,"issueDetailsPage")};
g.trackThumbsDown=function(a){Wj("thumbsdown");this.thumbsDownClicked=this.hasReacted=!0;this.llmIssueSummaryService.trackThumbsDown(a,"issueDetailsPage")};g.openFeedbackDialog=function(a){this.userFeedback.startFeedback();a&&ET(this.llmIssueSummaryService,a,"FEEDBACK")};g.copySummary=function(a){navigator.clipboard.writeText(a.summary);var b=this.llmIssueSummaryService;b.trackEvent("copy","issueDetailsPage");ET(b,a,"COPY")};
sW.\u0275fac=function(){var a;return function(b){return(a||(a=Re(sW)))(b||sW)}}();
sW.\u0275cmp=y({type:sW,selectors:[["llm-summary"]],standalone:!1,features:[Bg],decls:10,vars:3,consts:[["showHeader",""],["showBody",""],["renderedSummary",""],["showingSummary",""],["aiHelp",""],[1,"summary","main-div","carded","margin-s-sides","margin-s-bottom","flex-kids-x","padded-sides"],["svgIcon","chat_spark_24px","color","primary",1,"margin-s-right","shrink-0"],[1,"flex-kids-y","gap-s","full-width"],[3,"ngTemplateOutlet"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"summary-header"],
[1,"uppercase"],[3,"panelTemplate"],["svgIcon","help-outline",1,"icon-s"],["type","button","mat-icon-button","","aria-label","Toggle the AI-generated summary for this issue","matTooltip","Toggle the AI-generated summary for this issue","matTooltipPosition","above",1,"small","expand-button",3,"click"],["svgIcon","arrow-up",1,"icon-s"],["svgIcon","arrow-down",1,"icon-s"],[3,"content"],[1,"white-space-pre-wrap","overflow"],[1,"flex-kids-x","space-between","full-width"],[1,"type-s","instructional"],[1,
"flex-kids-x","gap-s"],["type","button","mat-icon-button","","matTooltip","Copy","aria-label","copy summary",1,"feedback-button","copy-issue-summary",3,"click"],["svgIcon","copy",1,"icon-s"],["type","button","mat-icon-button","","matTooltip","Send feedback","aria-label","send feedback",1,"feedback-button","summary-feedback",3,"click"],["svgIcon","feedback-outline",1,"icon-s"],["type","button","mat-icon-button","","aria-label","thumb up",1,"feedback-button","summary-thumbs-up",3,"click","disabled"],
["svgIcon","thumb_up_24px",1,"icon-s"],["type","button","mat-icon-button","","aria-label","thumb down",1,"feedback-button","summary-thumbs-down",3,"click","disabled"],["svgIcon","thumb_down_24px",1,"icon-s"],[1,"instructional"],["type","button","mat-icon-button","","matTooltip","Send feedback","aria-label","send feedback",1,"feedback-button",3,"click"],["svgIcon","feedback-outline"]],template:function(a,b){a&1&&(F(0,qib,1,1),U(1,"async"),D(2,uib,11,3,"ng-template",null,0,Lh)(4,zib,2,1,"ng-template",
null,1,Lh)(6,Cib,2,1,"ng-template",null,2,Lh)(8,Fib,2,1,"ng-template",null,3,Lh));if(a&2){var c;G((c=V(1,1,b.stage$))?0:-1,c)}},dependencies:[Sv,FC,yN,oG,Kx,zG,xG,RM,BM,sO,Tv],styles:[".main-div[_ngcontent-%COMP%]{background-color:#edfbf1;background-color:var(--green-bg)}.summary-header[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.expand-button[_ngcontent-%COMP%]{margin-left:auto}.feedback-button[_ngcontent-%COMP%]{-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;border-radius:24px;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;height:1.75em;line-height:1.75em;padding:0 0 0 0;color:#3c4043;color:var(--gfx);min-width:20px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:8px}.feedback-button[_ngcontent-%COMP%]   .has-reacted-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.instructional[_ngcontent-%COMP%]{color:#5f6368;color:var(--text-muted)}mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}\n/*# sourceMappingURL=llm_summary.css.map */"]});var tW=function(){};tW.\u0275fac=function(a){return new (a||tW)};tW.\u0275mod=uf({type:tW});tW.\u0275inj=Dd({imports:[HC,AN,BG,wK,CG,pQ,CM,kQ]});var uW=function(){};uW.\u0275fac=function(a){return new (a||uW)};uW.\u0275mod=uf({type:uW});uW.\u0275inj=Dd({imports:[HC,BG,EM,tW,hQ]});var vW=function(){};vW.\u0275fac=function(a){return new (a||vW)};vW.\u0275mod=uf({type:vW});vW.\u0275inj=Dd({imports:[HC,VU,TU,SG,BG]});var wW=function(){};wW.\u0275fac=function(a){return new (a||wW)};wW.\u0275mod=uf({type:wW});wW.\u0275inj=Dd({imports:[HC,BG,CG,EM,GM]});var xW=function(){this.LIMIT_INCREMENT=32;this.limit=8;this.emails=[]};xW.\u0275fac=function(a){return new (a||xW)};
xW.\u0275cmp=y({type:xW,selectors:[["avatar-bunch"]],inputs:{emails:"emails"},standalone:!1,decls:4,vars:5,consts:[["size","medium",3,"email"],["type","button",1,"link-button","subtle-link",3,"title"],["type","button",1,"link-button","subtle-link",3,"click","title"]],template:function(a,b){a&1&&(Pg(0,Gib,1,1,"b-user-image",0,Og),U(2,"slice"),F(3,Iib,1,1));a&2&&(Qg(wna(2,1,b.emails,b.limit)),x(3),G(b.emails.length-b.limit>0?3:-1))},dependencies:[cL,$v],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 Jib=function(){return[]},yW=function(){this.makeCritiqueUrl=tab;this.submitted=[];this.pending=[]};yW.\u0275fac=function(a){return new (a||yW)};
yW.\u0275cmp=y({type:yW,selectors:[["cl-counts"]],inputs:{submitted:"submitted",pending:"pending"},standalone:!1,decls:1,vars:1,consts:[[1,"flex-kids-x","align-items-center"],["aria-hidden","true","alt","","src","https://static.corp.google.com/devtools/codereview/new_logo_only.svg",1,"logo"],["target","_blank","title","Number of total CLs and pending CLs associated with all of these issues",1,"subtle-link",3,"href"],["target","_blank","title","Number of pending CLs associated with all of these issues",
1,"subtle-link",3,"href"]],template:function(a,b){a&1&&F(0,Lib,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 r5c=function(){this.changes=[]};r5c.\u0275fac=function(a){return new (a||r5c)};r5c.\u0275cmp=y({type:r5c,selectors:[["gerrit-changes-count"]],inputs:{changes:"changes"},standalone:!1,decls:5,vars:2,consts:[[1,"flex-kids-x","align-items-center"],["svgIcon","gerrit-logo",1,"icon-xs"]],template:function(a,b){a&1&&(J(0,"div",0),M(1,"mat-icon",1),R(2," \u00a0 "),J(3,"p"),R(4),K()());a&2&&(x(4),xh("",b.changes.length," ",b.changes.length>1?"Gerrit changes":"Gerrit change"))},dependencies:[FC],styles:["a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:focus {\n      color: var(--text-good);\n    }"]});var zW=function(){this.imageUrls=r(YM);this.LOGO_LIGHT=this.imageUrls.LOGO_LIGHT};nd.Object.defineProperties(zW.prototype,{ref:{configurable:!0,enumerable:!0,set:function(a){this.searchPageUrl=a?zab(a):void 0}}});zW.\u0275fac=function(a){return new (a||zW)};
zW.\u0275cmp=y({type:zW,selectors:[["issue-count"]],inputs:{ref:"ref",count:"count"},standalone:!1,decls:5,vars:2,consts:[["title","Total issues in this area, in any status",1,"flex-kids-x","align-items-center"],["aria-hidden","true","alt","",1,"logo",3,"src"],[1,"subtle-link",3,"routerLink"]],template:function(a,b){a&1&&(J(0,"div",0),M(1,"img",1),R(2," \u00a0 "),F(3,Nib,1,1)(4,Oib,1,1),K());a&2&&(x(),I("src",b.LOGO_LIGHT,hf),x(2),G(b.searchPageUrl?3:4))},dependencies:[xC],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 AW=function(){};AW.\u0275fac=function(a){return new (a||AW)};AW.\u0275mod=uf({type:AW});AW.\u0275inj=Dd({imports:[HC,QN,GC,BG,hL]});var BW=function(){};BW.\u0275fac=function(a){return new (a||BW)};BW.\u0275mod=uf({type:BW});BW.\u0275inj=Dd({providers:[S0c],imports:[px]});var CW=function(){};CW.\u0275fac=function(a){return new (a||CW)};CW.\u0275mod=uf({type:CW});CW.\u0275inj=Dd({imports:[Bw,rT,PQ,pJ,jC,HC,JL,Ay,BG,lM,XQ,QN,CG,DQ,QQ,BW,By,AW,yH,$P,AN,$O,hL]});var DW=function(){};DW.\u0275fac=function(a){return new (a||DW)};DW.\u0275mod=uf({type:DW});DW.\u0275inj=Dd({imports:[HC,CW,AN]});var EW=function(){};EW.\u0275fac=function(a){return new (a||EW)};EW.\u0275mod=uf({type:EW});EW.\u0275inj=Dd({imports:[HC,kQ,QU,DL,BG,CG,VU,tJ,CQ,KQ,QQ,zL,GC,AN,YU]});var FW=function(){};FW.\u0275fac=function(a){return new (a||FW)};FW.\u0275mod=uf({type:FW});FW.\u0275inj=Dd({imports:[HC,BG]});var GW=function(){};GW.\u0275fac=function(a){return new (a||GW)};GW.\u0275mod=uf({type:GW});GW.\u0275inj=Dd({imports:[rT,nL,HC,kQ,JL,uW,rW,FW,BG,lM,mH,XQ,CG,VU,tJ,CQ,lW,vW,KQ,XK,DQ,QQ,wW,zL,EW,$P,bW,DW,cW,hL]});var HW=function(){this.matDialog=r(RJ)};HW.prototype.show=function(a){this.dialog=this.matDialog.open(IW,{width:"500px",data:a});return Rf(LJ(this.dialog))};HW.\u0275fac=function(a){return new (a||HW)};HW.\u0275prov=Cd({token:HW,factory:HW.\u0275fac,providedIn:"root"});
var IW=function(){this.butterBar=r(GJ);this.data=r(QJ);this.dialogRef=r(KJ);this.teamsService=r(SF);this.dialogTitle="Create Triage View";this.triageForm=new hy({displayName:new jy("",Si),scope:new jy("",Si),showComponentColumn:new jy(!1)});this.data.triage?(this.triage=hj(this.data.triage),this.triage.displayName=mp(this.data.teamName,this.triage)):this.triage={id:Math.max.apply(Math,p(this.data.teamExperiments.triage.map(function(a){return a.id})))+1,displayName:"",scope:"",showComponentColumn:!1,
config:[]};this.triageForm.patchValue({displayName:this.triage.displayName,scope:this.triage.scope,showComponentColumn:this.triage.showComponentColumn});this.dialogTitle=this.data.triage?"Edit triage view":"Create new triage view"};
IW.prototype.save=function(){var a=this,b,c;return z(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),Kq(a.butterBar,"Saving changes...",0),Gf(d,2),B(d,Rf(izc(a.teamsService,
a.data.teamExperiments)),4);if(d.nextAddress!=2)return Kq(a.butterBar,"Save complete."),a.dialogRef.close(a.triage),uu(d,0);c=Kf(d);a.butterBar.showWarning("Failed to save changes.");console.error(c);Lf(d)})};IW.\u0275fac=function(a){return new (a||IW)};
IW.\u0275cmp=y({type:IW,selectors:[["b-triage-view-config-dialog"]],standalone:!1,decls:22,vars:3,consts:[["mat-dialog-title",""],[1,"bv2-material","flex-kids-x"],[3,"formGroup"],[1,"dialog-row"],[1,"bv2-top-field-label"],["for","triage-title",1,"required"],"type text id triage-title formControlName displayName required  aria-required true".split(" "),["for","triage-scope",1,"required"],"type text id triage-scope formControlName scope placeholder componentid:123+ required  aria-required true".split(" "),
"gmat-checkbox  id triage-component-name-toggle formControlName showComponentColumn".split(" "),["mat-dialog-actions",""],"type button gmat-button  mat-stroked-button  mat-dialog-close ".split(" "),["type","button","gmat-button","","mat-flat-button","","color","primary",3,"click","disabled"]],template:function(a,b){a&1&&(J(0,"h1",0),R(1),K(),J(2,"mat-dialog-content",1)(3,"form",2)(4,"div",3)(5,"div",4)(6,"label",5),R(7,"Title"),K()(),M(8,"input",6),K(),J(9,"div",3)(10,"div",4)(11,"label",7),R(12,
"Search Scope"),K()(),M(13,"textarea",8),K(),J(14,"div",3)(15,"mat-checkbox",9),R(16," Show component name column in triage view "),K()()()(),J(17,"footer",10)(18,"button",11),R(19,"Cancel"),K(),J(20,"button",12),N("click",function(){return b.save()}),R(21,"Save"),K()());a&2&&(x(),wh(b.dialogTitle),x(2),I("formGroup",b.triageForm),x(17),I("disabled",!b.triageForm.valid))},dependencies:[ly,Ui,dy,ey,vy,oG,Jx,gM,hM,SJ,UJ,WJ,VJ,qy,ry],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 JW=function(){};JW.\u0275fac=function(a){return new (a||JW)};JW.\u0275mod=uf({type:JW});JW.\u0275inj=Dd({imports:[Ay,BG,lM,wK,GM,By]});var s5c=new le("CdkAccordion"),KW=function(){this._stateChanges=new tg;this._openCloseAllActions=new tg;this.id=r(Fi).getId("cdk-accordion-");this.multi=!1};KW.prototype.closeAll=function(){this._openCloseAllActions.next(!1)};KW.prototype.ngOnChanges=function(a){this._stateChanges.next(a)};KW.prototype.ngOnDestroy=function(){this._stateChanges.complete();this._openCloseAllActions.complete()};KW.\u0275fac=function(a){return new (a||KW)};
KW.\u0275dir=vf({type:KW,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",$h]},exportAs:["cdkAccordion"],features:[Fh([{provide:s5c,useExisting:KW}]),ov]});var LW=function(){this.accordion=r(s5c,{optional:!0,skipSelf:!0});this._changeDetectorRef=r(Hv);this._expansionDispatcher=r(Uw);this._openCloseAllSubscription=yf.EMPTY;this.closed=new nq;this.opened=new nq;this.destroyed=new nq;this.expandedChange=new nq;this.id=r(Fi).getId("cdk-accordion-child-");this._expanded=!1;this._disabled=nh.apply(null,[!1].concat(p([])));this._removeUniqueSelectionListener=function(){}};g=LW.prototype;
g.ngOnInit=function(){var a=this;this._removeUniqueSelectionListener=this._expansionDispatcher.listen(function(b,c){a.accordion&&!a.accordion.multi&&a.accordion.id===c&&a.id!==b&&(a.expanded=!1)});this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())};g.ngOnDestroy=function(){this.opened.complete();this.closed.complete();this.destroyed.emit();this.destroyed.complete();this._removeUniqueSelectionListener();this._openCloseAllSubscription.unsubscribe()};
g.toggle=function(){this.disabled||(this.expanded=!this.expanded)};g.close=function(){this.disabled||(this.expanded=!1)};g.open=function(){this.disabled||(this.expanded=!0)};g._subscribeToOpenCloseAllActions=function(){var a=this;return this.accordion._openCloseAllActions.subscribe(function(b){a.disabled||(a.expanded=b)})};
nd.Object.defineProperties(LW.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)}}});
LW.\u0275fac=function(a){return new (a||LW)};LW.\u0275dir=vf({type:LW,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",$h],disabled:[2,"disabled","disabled",$h]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Fh([{provide:s5c,useValue:void 0}])]});var MW=function(){};MW.\u0275fac=function(a){return new (a||MW)};MW.\u0275mod=uf({type:MW});MW.\u0275inj=Dd({});var t5c=new le("MAT_ACCORDION");var u5c=new le("MAT_EXPANSION_PANEL");var NW=function(){this._template=r(eh);this._expansionPanel=r(u5c,{optional:!0})};NW.\u0275fac=function(a){return new (a||NW)};NW.\u0275dir=vf({type:NW,selectors:[["ng-template","matExpansionPanelContent",""]]});var v5c=["body"],w5c=["bodyWrapper"],x5c=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],y5c=new le("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),OW=function(){LW.call(this);var a=this;this._viewContainerRef=r(fh);this._animationsDisabled=Ri();this._document=r(ui);this._ngZone=r(Ph);this._elementRef=r(Te);this._renderer=r(Ji);this._hideToggle=!1;this.afterExpand=new nq;this.afterCollapse=new nq;this._inputChanges=new tg;this.accordion=r(t5c,{optional:!0,skipSelf:!0});this._headerId=r(Fi).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=r(y5c,{optional:!0});this._expansionDispatcher=r(Uw);b&&(this.hideToggle=b.hideToggle)};Y(OW,LW);OW.\u0275dir=LW.\u0275dir;g=OW.prototype;g._hasSpacing=function(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1};
g._getExpandedState=function(){return this.expanded?"expanded":"collapsed"};g.toggle=function(){this.expanded=!this.expanded};g.close=function(){this.expanded=!1};g.open=function(){this.expanded=!0};g.ngAfterContentInit=function(){var a=this;this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(wg(null),eg(function(){return a.expanded&&!a._portal}),mg(1)).subscribe(function(){a._portal=new gx(a._lazyContent._template,a._viewContainerRef)});this._setupAnimationEvents()};
g.ngOnChanges=function(a){this._inputChanges.next(a)};g.ngOnDestroy=function(){LW.prototype.ngOnDestroy.call(this);var a;(a=this._cleanupTransitionEnd)==null||a.call(this);this._inputChanges.complete()};g._containsFocus=function(){if(this._body){var a=this._document.activeElement,b=this._body.nativeElement;return a===b||b.contains(a)}return!1};
g._setupAnimationEvents=function(){var a=this;this._ngZone.runOutsideAngular(function(){a._animationsDisabled?(a.opened.subscribe(function(){return a._ngZone.run(function(){return a.afterExpand.emit()})}),a.closed.subscribe(function(){return a._ngZone.run(function(){return a.afterCollapse.emit()})})):setTimeout(function(){var b=a._elementRef.nativeElement;a._cleanupTransitionEnd=a._renderer.listen(b,"transitionend",a._transitionEndListener);b.classList.add("mat-expansion-panel-animations-enabled")},
200)})};nd.Object.defineProperties(OW.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}}});OW.\u0275fac=function(a){return new (a||OW)};
OW.\u0275cmp=y({type:OW,selectors:[["mat-expansion-panel"]],contentQueries:function(a,b,c){a&1&&ih(c,NW,5);if(a&2){var d;lh(d=mh())&&(b._lazyContent=d.first)}},viewQuery:function(a,b){a&1&&(hh(v5c,5),hh(w5c,5));if(a&2){var c;lh(c=mh())&&(b._body=c.first);lh(c=mh())&&(b._bodyWrapper=c.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(a,b){a&2&&uh("mat-expanded",b.expanded)("mat-expansion-panel-spacing",b._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",$h],
togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Fh([{provide:t5c,useValue:void 0},{provide:u5c,useExisting:OW}]),Bg,ov],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&&(ch(x5c),dh(0),J(1,"div",2,0)(3,"div",3,1)(5,"div",4),dh(6,1),D(7,Pib,0,0,"ng-template",5),K(),dh(8,2),K()());a&2&&(x(),Lg("inert",b.expanded?null:""),x(2),I("id",b.id),Lg("aria-labelledby",b._headerId),x(4),I("cdkPortalOutlet",b._portal))},dependencies:[jx],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 z5c=function(){};z5c.\u0275fac=function(a){return new (a||z5c)};z5c.\u0275dir=vf({type:z5c,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]});var A5c=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],PW=function(){var a=this;this.panel=r(OW,{host:!0});this._element=r(Te);this._focusMonitor=r(jw);this._changeDetectorRef=r(Hv);this._parentChangeSubscription=yf.EMPTY;this.tabIndex=0;r(Di).load(wx);var b=this.panel,c=r(y5c,{optional:!0}),d=r(new pv("tabindex"),{optional:!0}),e=b.accordion?b.accordion._stateChanges.pipe(eg(function(f){return!(!f.hideToggle&&!f.togglePosition)})):cg;this.tabIndex=parseInt(d||"")||0;this._parentChangeSubscription=
dg(b.opened,b.closed,e,b._inputChanges.pipe(eg(function(f){return!!(f.hideToggle||f.disabled||f.togglePosition)}))).subscribe(function(){return a._changeDetectorRef.markForCheck()});b.closed.pipe(eg(function(){return b._containsFocus()})).subscribe(function(){return kw(a._focusMonitor,a._element,"program")});c&&(this.expandedHeight=c.expandedHeight,this.collapsedHeight=c.collapsedHeight)};g=PW.prototype;g._toggle=function(){this.disabled||this.panel.toggle()};g._isExpanded=function(){return this.panel.expanded};
g._getExpandedState=function(){return this.panel._getExpandedState()};g._getPanelId=function(){return this.panel.id};g._getTogglePosition=function(){return this.panel.togglePosition};g._showToggle=function(){return!this.panel.hideToggle&&!this.panel.disabled};g._getHeaderHeight=function(){var a=this.panel.expanded;return a&&this.expandedHeight?this.expandedHeight:!a&&this.collapsedHeight?this.collapsedHeight:null};
g._keydown=function(a){switch(a.keyCode){case 32:case 13:ki(a)||(a.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(a)}};g.focus=function(a,b){a?kw(this._focusMonitor,this._element,a,b):this._element.nativeElement.focus(b)};g.ngAfterViewInit=function(){var a=this;this._focusMonitor.monitor(this._element).subscribe(function(b){b&&a.panel.accordion&&a.panel.accordion._handleHeaderFocus(a)})};
g.ngOnDestroy=function(){this._parentChangeSubscription.unsubscribe();this._focusMonitor.stopMonitoring(this._element)};nd.Object.defineProperties(PW.prototype,{disabled:{configurable:!0,enumerable:!0,get:function(){return this.panel.disabled}}});PW.\u0275fac=function(a){return new (a||PW)};
PW.\u0275cmp=y({type:PW,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&&(Lg("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),th("height",b._getHeaderHeight()),uh("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:ai(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&&(ch(A5c),Sg(0,"span",0),dh(1),dh(2,1),dh(3,2),Tg(),F(4,Qib,3,0,"span",1));a&2&&(uh("mat-content-hide-toggle",!b._showToggle()),x(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 B5c=function(){};B5c.\u0275fac=function(a){return new (a||B5c)};B5c.\u0275dir=vf({type:B5c,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]});var QW=function(){};QW.\u0275fac=function(a){return new (a||QW)};QW.\u0275dir=vf({type:QW,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]});var RW=function(){Z.apply(this,arguments);var a=this;this.llmService=r(pS);this.imageUrls=r(YM);this.clusters$=new Kn([]);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({},M0c,{showActiveIndicator:!1,showMenu:!1,rowLimit:20});this.titles$=this.clusters$.pipe(xg(function(b){return vYc(a.llmService,b,a.teamName)}))};
Y(RW,Z);RW.\u0275dir=Z.\u0275dir;nd.Object.defineProperties(RW.prototype,{clusters:{configurable:!0,enumerable:!0,set:function(a){a&&this.clusters$.next(a)}}});RW.\u0275fac=function(){var a;return function(b){return(a||(a=Re(RW)))(b||RW)}}();
RW.\u0275cmp=y({type:RW,selectors:[["b-issue-themes"]],inputs:{clusters:"clusters",teamName:"teamName"},standalone:!1,features:[Bg],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,Wib,2,1),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.clusters$))?0:-1,c)}},dependencies:[ZT,OW,PW,QW,
B5c,Tv],styles:[".empty-state-img[_ngcontent-%COMP%]{max-width:320px}\n/*# sourceMappingURL=issue_themes.css.map */"],changeDetection:0});var C5c=new le("GMAT_SLIDER_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var D5c=function(a){this.options=a;if(a.disableGmatStyle)throw Error("Mc");};D5c.\u0275fac=function(a){return new (a||D5c)(of(C5c))};D5c.\u0275dir=vf({type:D5c,selectors:[["mat-slider"]],hostAttrs:[1,"gmat-mdc-slider"],standalone:!1});var E5c=new le("_MatSlider"),F5c=new le("_MatSliderThumb"),G5c=new le("_MatSliderRangeThumb"),H5c=new le("_MatSliderVisualThumb");var I5c={provide:Yx,useExisting:$d(function(){return SW}),multi:!0},SW=function(){var a=this;this._ngZone=r(Ph);this._elementRef=r(Te);this._cdr=r(Hv);this._slider=r(E5c);this._platform=r(zi);this.valueChange=new nq;this.dragStart=new nq;this.dragEnd=new nq;this.thumbPosition=2;this._hostElement=this._elementRef.nativeElement;this._valuetext=nh.apply(null,[""].concat(p([])));this._knobRadius=8;this._tickMarkOffset=3;this._hasSetInitialValue=this._isFocused=this._isActive=!1;this._destroyed=new tg;
this._skipUIUpdate=!1;this._onTouchedFn=function(){};this._isControlInitialized=!1;var b=r(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))]})};SW.prototype._setValue=function(a){this._hostElement.value=a;this._updateThumbUIByValue();this._slider._onValueChange(this);this._cdr.detectChanges();this._slider._cdr.markForCheck()};
SW.prototype._setIsFocused=function(a){this._isFocused=a};SW.prototype.ngOnDestroy=function(){this._listenerCleanups.forEach(function(a){return a()});this._destroyed.next();this._destroyed.complete();this.dragStart.complete();this.dragEnd.complete()};var J5c=function(a){a._updateWidthInactive();a.disabled!==a._slider.disabled&&(a._slider.disabled=!0);a.step=a._slider.step;a.min=a._slider.min;a.max=a._slider.max;a._initValue()};g=SW.prototype;
g._initValue=function(){this._hasSetInitialValue=!0;this._initialValue===void 0?this.value=this.min:(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())};g._getDefaultValue=function(){return this.min};g._onBlur=function(){this._setIsFocused(!1);this._onTouchedFn()};g._onFocus=function(){this._slider._setTransition(!1);this._slider._updateTrackUI(this);this._setIsFocused(!0)};
g._onChange=function(){this.valueChange.emit(this.value);this._isActive&&this._updateThumbUIByValue({withAnimation:!0})};g._onInput=function(){var a;(a=this._onChangeFn)==null||a.call(this,this.value);!this._slider.step&&this._isActive||this._updateThumbUIByValue({withAnimation:!0});this._slider._onValueChange(this)};g._onNgControlValueChange=function(){this._isActive&&this._isFocused||(this._slider._onValueChange(this),this._updateThumbUIByValue());this._slider.disabled=this._formControl.disabled};
g._onPointerDown=function(a){this.disabled||a.button!==0||(this._platform.IOS?(this._isActive=this._slider._isCursorOnSliderThumb(a,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect()),this._slider._updateDimensions()):(this._isActive=!0,this._setIsFocused(!0),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(a,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(a),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))))};
g._handleValueCorrection=function(a){var b=this;this._skipUIUpdate=!0;setTimeout(function(){b._skipUIUpdate=!1;b._fixValue(a)},0)};
g._fixValue=function(a){var b=a.clientX-this._slider._cachedLeft,c=this._slider._cachedWidth,d=this._slider.step===0?1:this._slider.step,e=Math.floor((this._slider.max-this._slider.min)/d);b=Math.round((Math.round((this._slider._isRtl?1-b/c:b/c)*e)/e*(this._slider.max-this._slider.min)+this._slider.min)/d)*d;if(b!==this.value){this.value=b;this.valueChange.emit(this.value);var f;(f=this._onChangeFn)==null||f.call(this,this.value)}this._slider._onValueChange(this);this._slider.step>0?this._updateThumbUIByValue():
this._updateThumbUIByPointerEvent(a,{withAnimation:this._slider._hasAnimation})};g._onPointerMove=function(a){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(a)};g._onPointerUp=function(){var a=this;this._isActive&&(this._isActive=!1,this._platform.SAFARI&&this._setIsFocused(!1),this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(function(){return a._updateWidthInactive()},this._platform.IOS?10:0))};
g._clamp=function(a){return Math.max(Math.min(a,this._slider._cachedWidth-this._tickMarkOffset),this._tickMarkOffset)};g._calcTranslateXByValue=function(){return this._slider._isRtl?(1-this.percentage)*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset:this.percentage*(this._slider._cachedWidth-this._tickMarkOffset*2)+this._tickMarkOffset};g._calcTranslateXByPointerEvent=function(a){return a.clientX-this._slider._cachedLeft};g._updateWidthActive=function(){};
g._updateWidthInactive=function(){this._hostElement.style.padding="0 "+this._slider._inputPadding+"px";this._hostElement.style.width="calc(100% + "+(this._slider._inputPadding-this._tickMarkOffset*2)+"px)";this._hostElement.style.left="-"+(this._slider._rippleRadius-this._tickMarkOffset)+"px"};g._updateThumbUIByValue=function(a){this.translateX=this._clamp(this._calcTranslateXByValue());this._updateThumbUI(a)};
g._updateThumbUIByPointerEvent=function(a,b){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(a));this._updateThumbUI(b)};g._updateThumbUI=function(a){this._slider._setTransition(!(a==null||!a.withAnimation));this._slider._onTranslateXChange(this)};g.writeValue=function(a){if(this._isControlInitialized||a!==null)this.value=a};g.registerOnChange=function(a){this._onChangeFn=a;this._isControlInitialized=!0};g.registerOnTouched=function(a){this._onTouchedFn=a};
g.setDisabledState=function(a){this.disabled=a};g.focus=function(){this._hostElement.focus()};g.blur=function(){this._hostElement.blur()};
nd.Object.defineProperties(SW.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return ai(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 ai(this._hostElement.min,0)},set:function(a){this._hostElement.min=a+"";this._cdr.detectChanges()}},max:{configurable:!0,enumerable:!0,get:function(){return ai(this._hostElement.max,0)},set:function(a){this._hostElement.max=a+"";this._cdr.detectChanges()}},step:{configurable:!0,enumerable:!0,get:function(){return ai(this._hostElement.step,0)},set:function(a){this._hostElement.step=a+"";this._cdr.detectChanges()}},
disabled:{configurable:!0,enumerable:!0,get:function(){return $h(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}}});SW.\u0275fac=function(a){return new (a||SW)};
SW.\u0275dir=vf({type:SW,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&&Lg("aria-valuetext",b._valuetext())},inputs:{value:[2,"value","value",ai]},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],
features:[Fh([I5c,{provide:F5c,useExisting:SW}])]});var K5c=["knob"],L5c=["valueIndicatorContainer"],TW=function(){var a=this;this._cdr=r(Hv);this._ngZone=r(Ph);this._slider=r(E5c);this._renderer=r(Ji);this._isValueIndicatorVisible=this._isActive=this._isHovered=!1;this._hostElement=r(Te).nativeElement;this._platform=r(zi);this._onPointerMove=function(b){if(!a._sliderInput._isFocused){var c=a._hostElement.getBoundingClientRect();b=a._slider._isCursorOnSliderThumb(b,c);(a._isHovered=b)?a._showHoverRipple():a._hideRipple(a._hoverRippleRef)}};this._onMouseLeave=
function(){a._isHovered=!1;a._hideRipple(a._hoverRippleRef)};this._onFocus=function(){a._hideRipple(a._hoverRippleRef);a._showFocusRipple();a._hostElement.classList.add("mdc-slider__thumb--focused")};this._onBlur=function(){a._isActive||a._hideRipple(a._focusRippleRef);a._isHovered&&a._showHoverRipple();a._hostElement.classList.remove("mdc-slider__thumb--focused")};this._onDragStart=function(b){b.button===0&&(a._isActive=!0,a._showActiveRipple())};this._onDragEnd=function(){a._isActive=!1;a._hideRipple(a._activeRippleRef);
a._sliderInput._isFocused||a._hideRipple(a._focusRippleRef);a._platform.SAFARI&&a._showHoverRipple()}};g=TW.prototype;
g.ngAfterViewInit=function(){var a=this,b=this._slider._getInput(this.thumbPosition);b&&(this._ripple.radius=24,this._sliderInput=b,this._sliderInputEl=this._sliderInput._hostElement,this._ngZone.runOutsideAngular(function(){var c=a._sliderInputEl,d=a._renderer;a._listenerCleanups=[d.listen(c,"pointermove",a._onPointerMove),d.listen(c,"pointerdown",a._onDragStart),d.listen(c,"pointerup",a._onDragEnd),d.listen(c,"pointerleave",a._onMouseLeave),d.listen(c,"focus",a._onFocus),d.listen(c,"blur",a._onBlur)]}))};
g.ngOnDestroy=function(){var a;(a=this._listenerCleanups)==null||a.forEach(function(b){return b()})};g._showHoverRipple=function(){if(!this._isShowingRipple(this._hoverRippleRef)){this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0});var a;(a=this._hoverRippleRef)==null||a.element.classList.add("mat-mdc-slider-hover-ripple")}};
g._showFocusRipple=function(){if(!this._isShowingRipple(this._focusRippleRef)){this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0);var a;(a=this._focusRippleRef)==null||a.element.classList.add("mat-mdc-slider-focus-ripple")}};g._showActiveRipple=function(){if(!this._isShowingRipple(this._activeRippleRef)){this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400});var a;(a=this._activeRippleRef)==null||a.element.classList.add("mat-mdc-slider-active-ripple")}};
g._isShowingRipple=function(a){return(a==null?void 0:a.state)===0||(a==null?void 0:a.state)===1};
g._showRipple=function(a,b){if(!this._slider.disabled){this._showValueIndicator();this._slider._isRange&&this._slider._getThumb(this.thumbPosition===1?2:1)._showValueIndicator();var c;if((c=this._slider._globalRippleOptions)==null||!c.disabled||b)return b=this._ripple,a={animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:a,centered:!0,persistent:!0},typeof a==="number"?Ujc(b._rippleRenderer,a,0,Object.assign({},b.rippleConfig,void 0)):Ujc(b._rippleRenderer,0,0,Object.assign({},
b.rippleConfig,a))}};g._hideRipple=function(a){a!=null&&Vjc(a._renderer,a);this._isShowingAnyRipple()||(this._slider._isRange||this._hideValueIndicator(),a=this._getSibling(),a._isShowingAnyRipple()||(this._hideValueIndicator(),a._hideValueIndicator()))};g._showValueIndicator=function(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")};g._hideValueIndicator=function(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")};
g._getSibling=function(){return this._slider._getThumb(this.thumbPosition===1?2:1)};g._getValueIndicatorContainer=function(){var a;return(a=this._valueIndicatorContainer)==null?void 0:a.nativeElement};g._getKnob=function(){return this._knob.nativeElement};g._isShowingAnyRipple=function(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)};TW.\u0275fac=function(a){return new (a||TW)};
TW.\u0275cmp=y({type:TW,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(a,b){a&1&&(hh(zx,5),hh(K5c,5),hh(L5c,5));if(a&2){var c;lh(c=mh())&&(b._ripple=c.first);lh(c=mh())&&(b._knob=c.first);lh(c=mh())&&(b._valueIndicatorContainer=c.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},features:[Fh([{provide:H5c,useExisting:TW}])],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,Xib,5,1,"div",2),M(1,"div",3,0)(3,"div",4));a&2&&(G(b.discrete?0:-1),x(3),I("matRippleDisabled",!0))},dependencies:[zx],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 M5c=["trackActive"],UW=function(){var a=this;this._ngZone=r(Ph);this._cdr=r(Hv);this._elementRef=r(Te);this._dir=r(Gi,{optional:!0});this._globalRippleOptions=r(yx,{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=Ri();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=r(zi);this._knobRadius=8;this._thumbsOverlap=!1;r(Di).load(wx);this._dir&&(this._dirChangeSubscription=this._dir.change.subscribe(function(){return a._onDirChange()}),this._isRtl=this._dir.value==="rtl")};g=UW.prototype;g._updateMin=function(a){var b=this._min;this._min=a;this._isRange?this._updateMinRange({old:b,new:a}):this._updateMinNonRange(a);this._onMinMaxOrStepChange()};
g._updateMinRange=function(a){var b=this._getInput(2),c=this._getInput(1),d=b.value,e=c.value;c.min=a.new;b.min=Math.max(a.new,c.value);c.max=Math.min(b.max,b.value);c._updateWidthInactive();b._updateWidthInactive();a.new<a.old?this._onTranslateXChangeBySideEffect(b,c):this._onTranslateXChangeBySideEffect(c,b);d!==b.value&&this._onValueChange(b);e!==c.value&&this._onValueChange(c)};
g._updateMinNonRange=function(a){var b=this._getInput(2);if(b){var c=b.value;b.min=a;b._updateThumbUIByValue();this._updateTrackUI(b);c!==b.value&&this._onValueChange(b)}};g._updateMax=function(a){var b=this._max;this._max=a;this._isRange?this._updateMaxRange({old:b,new:a}):this._updateMaxNonRange(a);this._onMinMaxOrStepChange()};
g._updateMaxRange=function(a){var b=this._getInput(2),c=this._getInput(1),d=b.value,e=c.value;b.max=a.new;c.max=Math.min(a.new,b.value);b.min=c.value;b._updateWidthInactive();c._updateWidthInactive();a.new>a.old?this._onTranslateXChangeBySideEffect(c,b):this._onTranslateXChangeBySideEffect(b,c);d!==b.value&&this._onValueChange(b);e!==c.value&&this._onValueChange(c)};
g._updateMaxNonRange=function(a){var b=this._getInput(2);if(b){var c=b.value;b.max=a;b._updateThumbUIByValue();this._updateTrackUI(b);c!==b.value&&this._onValueChange(b)}};g._updateStep=function(a){this._step=a;this._isRange?this._updateStepRange():this._updateStepNonRange();this._onMinMaxOrStepChange()};
g._updateStepRange=function(){var a=this._getInput(2),b=this._getInput(1),c=a.value,d=b.value,e=b.value;a.min=this._min;b.max=this._max;a.step=this._step;b.step=this._step;this._platform.SAFARI&&(a.value=a.value,b.value=b.value);a.min=Math.max(this._min,b.value);b.max=Math.min(this._max,a.value);b._updateWidthInactive();a._updateWidthInactive();a.value<e?this._onTranslateXChangeBySideEffect(b,a):this._onTranslateXChangeBySideEffect(a,b);c!==a.value&&this._onValueChange(a);d!==b.value&&this._onValueChange(b)};
g._updateStepNonRange=function(){var a=this._getInput(2);if(a){var b=a.value;a.step=this._step;this._platform.SAFARI&&(a.value=a.value);a._updateThumbUIByValue();b!==a.value&&this._onValueChange(a)}};
g.ngAfterViewInit=function(){this._platform.isBrowser&&this._updateDimensions();var a=this._getInput(2),b=this._getInput(1);this._isRange=!!a&&!!b;this._cdr.detectChanges();this._rippleRadius=this._getThumb(2)._ripple.radius;this._inputPadding=this._rippleRadius-this._knobRadius;this._isRange?this._initUIRange(a,b):this._initUINonRange(a);this._updateTrackUI(a);this._updateTickMarkUI();this._updateTickMarkTrackUI();this._observeHostResize();this._cdr.detectChanges()};
g._initUINonRange=function(a){J5c(a);a._updateThumbUIByValue();this._updateValueIndicatorUI(a);this._hasViewInitialized=!0;a._updateThumbUIByValue()};g._initUIRange=function(a,b){J5c(a);a._updateThumbUIByValue();J5c(b);b._updateThumbUIByValue();a._updateMinMax();b._updateMinMax();a._updateStaticStyles();b._updateStaticStyles();this._updateValueIndicatorUIs();this._hasViewInitialized=!0;a._updateThumbUIByValue();b._updateThumbUIByValue()};
g.ngOnDestroy=function(){this._dirChangeSubscription.unsubscribe();var a;(a=this._resizeObserver)==null||a.disconnect();this._resizeObserver=null};g._onDirChange=function(){var a;this._isRtl=((a=this._dir)==null?void 0:a.value)==="rtl";this._isRange?this._onDirChangeRange():this._onDirChangeNonRange();this._updateTickMarkUI()};
g._onDirChangeRange=function(){var a=this._getInput(2),b=this._getInput(1);a._setIsLeftThumb();b._setIsLeftThumb();a.translateX=a._calcTranslateXByValue();b.translateX=b._calcTranslateXByValue();a._updateStaticStyles();b._updateStaticStyles();a._updateWidthInactive();b._updateWidthInactive();a._updateThumbUIByValue();b._updateThumbUIByValue()};g._onDirChangeNonRange=function(){this._getInput(2)._updateThumbUIByValue()};
g._observeHostResize=function(){var a=this;typeof ResizeObserver!=="undefined"&&ResizeObserver&&this._ngZone.runOutsideAngular(function(){a._resizeObserver=new ResizeObserver(function(){a._isActive()||a._onResize()});a._resizeObserver.observe(a._elementRef.nativeElement)})};g._isActive=function(){return this._getThumb(1)._isActive||this._getThumb(2)._isActive};g._getValue=function(a){return(a=this._getInput(a===void 0?2:a))?a.value:this.min};
g._skipUpdate=function(){var a,b;return!!(((a=this._getInput(1))==null?0:a._skipUIUpdate)||((b=this._getInput(2))==null?0:b._skipUIUpdate))};g._updateDimensions=function(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth;this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left};g._setTrackActiveStyles=function(a){var b=this._trackActive.nativeElement.style;b.left=a.left;b.right=a.right;b.transformOrigin=a.transformOrigin;b.transform=a.transform};
g._calcTickMarkTransform=function(a){a*=this._tickMarkTrackWidth/(this._tickMarks.length-1);return"translateX("+(this._isRtl?this._cachedWidth-6-a:a)+"px"};g._onTranslateXChange=function(a){this._hasViewInitialized&&(this._updateThumbUI(a),this._updateTrackUI(a),this._updateOverlappingThumbUI(a))};g._onTranslateXChangeBySideEffect=function(a,b){this._hasViewInitialized&&(a._updateThumbUIByValue(),b._updateThumbUIByValue())};
g._onValueChange=function(a){this._hasViewInitialized&&(this._updateValueIndicatorUI(a),this._updateTickMarkUI(),this._cdr.detectChanges())};g._onMinMaxOrStepChange=function(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())};
g._onResize=function(){if(this._hasViewInitialized){this._updateDimensions();if(this._isRange){var a=this._getInput(2),b=this._getInput(1);a._updateThumbUIByValue();b._updateThumbUIByValue();a._updateStaticStyles();b._updateStaticStyles();a._updateMinMax();b._updateMinMax();a._updateWidthInactive();b._updateWidthInactive()}else(a=this._getInput(2))&&a._updateThumbUIByValue();this._updateTickMarkUI();this._updateTickMarkTrackUI();this._cdr.detectChanges()}};
g._areThumbsOverlapping=function(){var a=this._getInput(1),b=this._getInput(2);return a&&b?b.translateX-a.translateX<20:!1};g._updateOverlappingThumbClassNames=function(a){var b=a.getSibling();a=this._getThumb(a.thumbPosition);this._getThumb(b.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top");a._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)};
g._updateOverlappingThumbUI=function(a){this._isRange&&!this._skipUpdate()&&this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(a))};g._updateThumbUI=function(a){this._skipUpdate()||(this._getThumb(a.thumbPosition===2?2:1)._hostElement.style.transform="translateX("+a.translateX+"px)")};
g._updateValueIndicatorUI=function(a){if(!this._skipUpdate()){var b=this.displayWith(a.value);this._hasViewInitialized?a._valuetext.set(b):a._hostElement.setAttribute("aria-valuetext",b);this.discrete&&(a.thumbPosition===1?this.startValueIndicatorText=b:this.endValueIndicatorText=b,a=this._getThumb(a.thumbPosition),b.length<3?a._hostElement.classList.add("mdc-slider__thumb--short-value"):a._hostElement.classList.remove("mdc-slider__thumb--short-value"))}};
g._updateValueIndicatorUIs=function(){var a=this._getInput(2),b=this._getInput(1);a&&this._updateValueIndicatorUI(a);b&&this._updateValueIndicatorUI(b)};g._updateTickMarkTrackUI=function(){if(this.showTickMarks&&!this._skipUpdate()){var a=this._step&&this._step>0?this._step:1;this._tickMarkTrackWidth=(Math.floor(this.max/a)*a-this.min)/(this.max-this.min)*(this._cachedWidth-6)}};g._updateTrackUI=function(a){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(a):this._updateTrackUINonRange(a))};
g._updateTrackUIRange=function(a){var b=a.getSibling();if(b&&this._cachedWidth){var c=Math.abs(b.translateX-a.translateX)/this._cachedWidth;a._isLeftThumb&&this._cachedWidth?this._setTrackActiveStyles({left:"auto",right:this._cachedWidth-b.translateX+"px",transformOrigin:"right",transform:"scaleX("+c+")"}):this._setTrackActiveStyles({left:b.translateX+"px",right:"auto",transformOrigin:"left",transform:"scaleX("+c+")"})}};
g._updateTrackUINonRange=function(a){this._isRtl?this._setTrackActiveStyles({left:"auto",right:"0px",transformOrigin:"right",transform:"scaleX("+(1-a.fillPercentage)+")"}):this._setTrackActiveStyles({left:"0px",right:"auto",transformOrigin:"left",transform:"scaleX("+a.fillPercentage+")"})};g._updateTickMarkUI=function(){if(this.showTickMarks&&this.step!==void 0&&this.min!==void 0&&this.max!==void 0){var a=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(a):this._updateTickMarkUINonRange(a)}};
g._updateTickMarkUINonRange=function(a){var b=this._getValue(),c=Math.max(Math.round((b-this.min)/a),0)+1;a=Math.max(Math.round((this.max-b)/a),0)-1;this._isRtl?c++:a++;this._tickMarks=Array(c).fill(0).concat(Array(a).fill(1))};g._updateTickMarkUIRange=function(a){var b=this._getValue(),c=this._getValue(1),d=Math.max(Math.round((b-c)/a)+1,0);b=Math.max(Math.round((this.max-b)/a),0);this._tickMarks=Array(Math.max(Math.round((c-this.min)/a),0)).fill(1).concat(Array(d).fill(0),Array(b).fill(1))};
g._getInput=function(a){if(a===2&&this._input)return this._input;var b;if((b=this._inputs)==null?0:b.length)return a===1?this._inputs.first:this._inputs.last};g._getThumb=function(a){var b,c;return a===2?(b=this._thumbs)==null?void 0:b.last:(c=this._thumbs)==null?void 0:c.first};g._setTransition=function(a){this._hasAnimation=!this._platform.IOS&&a&&!this._noopAnimations;this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)};
g._isCursorOnSliderThumb=function(a,b){var c=b.width/2;return Math.pow(a.clientX-(b.x+c),2)+Math.pow(a.clientY-(b.y+c),2)<Math.pow(c,2)};
nd.Object.defineProperties(UW.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)}}});UW.\u0275fac=function(a){return new (a||UW)};
UW.\u0275cmp=y({type:UW,selectors:[["mat-slider"]],contentQueries:function(a,b,c){a&1&&(ih(c,F5c,5),ih(c,G5c,4));if(a&2){var d;lh(d=mh())&&(b._input=d.first);lh(d=mh())&&(b._inputs=d)}},viewQuery:function(a,b){a&1&&(hh(M5c,5),hh(H5c,5));if(a&2){var c;lh(c=mh())&&(b._trackActive=c.first);lh(c=mh())&&(b._thumbs=c)}},hostAttrs:[1,"mat-mdc-slider","mdc-slider"],hostVars:12,hostBindings:function(a,b){a&2&&(vh("mat-"+(b.color||"primary")),uh("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",$h],discrete:[2,"discrete","discrete",$h],showTickMarks:[2,"showTickMarks","showTickMarks",$h],min:[2,"min","min",ai],color:"color",disableRipple:[2,"disableRipple","disableRipple",$h],max:[2,"max","max",ai],step:[2,"step","step",ai],displayWith:"displayWith"},exportAs:["matSlider"],features:[Fh([{provide:E5c,useExisting:UW}])],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&&(ch(),dh(0),J(1,"div",2),M(2,"div",3),J(3,"div",4),M(4,"div",5,0),K(),F(6,$ib,3,1,"div",6),K(),F(7,ajb,1,3,"mat-slider-visual-thumb",7),M(8,"mat-slider-visual-thumb",7));a&2&&(x(6),
G(b.showTickMarks?6:-1),x(),G(b._isRange?7:-1),x(),I("discrete",b.discrete)("thumbPosition",2)("valueIndicatorText",b.endValueIndicatorText))},dependencies:[TW],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:bottom;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 N5c=function(a,b){return b.componentId},O5c=function(a,b){return b.displayAs},VW=function(){Z.apply(this,arguments);var a=this;this.activatedRoute=r(Jn);this.teamFridge=r(YF);this.issueFridge=r(iE);this.componentActions=r(WM);this.teamId=this.activatedRoute.snapshot.params.teamId;this.components=[];this.openFilter=lG;this.selectedOpenFilter$=new IA;this.selectComponents$=new IA;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 Kn(this.dateRangeFilters[0]);this.clusterGranularity$=new Kn(1);this.query$=Uf([this.selectedOpenFilter$.value$,this.selectComponents$.value$,this.selectedDateRangeFilter$]).pipe(kg(0,kp),C(function(b){var c=l(b);b=
c.next().value;var d=c.next().value;c=c.next().value;return P5c(a)?op.apply(null,[np("teamid",a.teamId)].concat(p(Array.from(b).map(function(e){return e.queryAtom})),[c.queryAtom])):op.apply(null,[].concat(p(Array.from(b).map(function(e){return e.queryAtom})),[np("componentId",[].concat(p(d)).map(function(e){return e.componentId}),!1),c.queryAtom]))}));this.issues$=this.query$.pipe(xg(function(b){return a.issueFridge.watchMany({filter:b,pageSize:500})}),C(function(b){return b.results.filter(function(c){var d;
return(d=c.experimentalFields)==null?void 0:d.clusterIds.length})}));this.clusters$=Uf([this.issues$,this.clusterGranularity$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return Q5c(b,c)}))};Y(VW,Z);VW.\u0275dir=Z.\u0275dir;
VW.prototype.ngOnInit=function(){var a=this;this.componentActions.search("teamid:"+this.teamId).then(function(b){b.sort(function(c,d){return c.name.localeCompare(d.name)});a.components=b;a.selectComponents$.add.apply(a.selectComponents$,p(a.components))});this.teamId&&Rf(this.teamFridge.watch(this.teamId)).then(function(b){a.teamName=b==null?void 0:b.name})};VW.prototype.openFilterChanged=function(a){a?this.selectedOpenFilter$.add(lG):this.selectedOpenFilter$.delete(lG)};
var P5c=function(a){return a.selectComponents$.size===a.components.length};VW.prototype.onCheckboxChange=function(a){this.selectComponents$.has(a)?this.selectComponents$.delete(a):this.selectComponents$.add(a)};
var Q5c=function(a,b){var c=new Map;a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.experimentalFields.clusterIds[b],f=void 0,h=(f=c.get(e))!=null?f:new Set;h.add(d.issueId);c.set(e,h)}b=[].concat(p(c.values())).map(function(k){return[].concat(p(k))});return rj(b,function(k){return k.sort().join(",")}).filter(function(k){return k.length>=3}).sort(function(k,q){return q.length-k.length}).slice(0,10).map(function(k){return[].concat(p(k))})};
VW.\u0275fac=function(){var a;return function(b){return(a||(a=Re(VW)))(b||VW)}}();
VW.\u0275cmp=y({type:VW,selectors:[["b-issue-themes-dashboard"]],standalone:!1,features:[Bg],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();J(0,"div",5)(1,"header",6)(2,"button",7);M(3,"mat-icon",8);K();J(4,"h2",9);R(5);K();M(6,"mat-icon",10);J(7,"h2",9);R(8,"Explore issue themes");K()();J(9,"div",11)(10,"div",12)(11,"mat-chip-listbox",13);N("change",function(e){u(c);return w(b.openFilterChanged(e.value))});J(12,"mat-chip-option",14)(13,"span",15);R(14);K()()();J(15,"mat-chip-listbox",16)(16,"mat-chip-option",17,0);N("keydown.enter",
function(){u(c);var e=Q(17);return w(e.openMenu())})("keyup.space",function(){u(c);var e=Q(17);return w(e.openMenu())});F(18,bjb,2,0,"span")(19,cjb,2,0,"span");M(20,"mat-icon",18);K()();J(21,"mat-menu",null,1)(23,"button",19);N("click",function(e){u(c);return w(e.stopPropagation())});J(24,"mat-checkbox",20);N("change",function(){u(c);P5c(b)?b.selectComponents$.clear():b.selectComponents$.add.apply(b.selectComponents$,p(b.components));return w()});R(25," Select all ");K()();M(26,"mat-divider");Pg(27,
djb,3,2,"button",21,N5c);K();J(29,"mat-chip-listbox",22)(30,"mat-chip-option",23,2);N("keydown.enter",function(){u(c);var e=Q(31);return w(e.openMenu())})("keyup.space",function(){u(c);var e=Q(31);return w(e.openMenu())});J(32,"span");R(33);K();M(34,"mat-icon",18);K()();J(35,"mat-menu",null,3);Pg(37,ejb,2,1,"button",21,O5c);K();J(39,"span");R(40," Granularity");K();J(41,"mat-slider",24)(42,"input",25,4);N("valueChange",function(e){u(c);b.clusterGranularity$.next(e);return w()});K()()();M(44,"b-issue-themes",
26);U(45,"async");K()()}if(a&2){a=Q(22);var d=Q(36);x(5);wh(b.teamName);x(7);I("value",b.openFilter)("selected",b.selectedOpenFilter$.has(b.openFilter));x();I("matTooltip",b.openFilter.tooltip||"");x();T(" ",b.openFilter.displayAs," ");x();I("selectable",!1);x();I("matMenuTriggerFor",a);x(2);G(P5c(b)?18:19);x(6);I("checked",P5c(b));x(3);Qg(b.components);x(2);I("selectable",!1);x();I("matMenuTriggerFor",d);x(3);wh(b.selectedDateRangeFilter$.value.displayAs);x(4);Qg(b.dateRangeFilters);x(7);I("clusters",
V(45,14,b.clusters$))("teamName",b.teamName)}},dependencies:[FC,oG,Kx,pG,sG,qG,uG,aP,iP,gP,eP,zG,xG,gM,hM,pL,D5c,UW,SW,RW,Tv],styles:["/*# sourceMappingURL=issue_themes_dashboard.css.map */"],changeDetection:0});var WW=function(){};WW.\u0275fac=function(a){return new (a||WW)};WW.\u0275mod=uf({type:WW});WW.\u0275inj=Dd({imports:[px,Cx]});var XW=function(){};XW.\u0275fac=function(a){return new (a||XW)};XW.\u0275mod=uf({type:XW});XW.\u0275inj=Dd({imports:[WW]});var YW=function(){KW.apply(this,arguments);this._ownHeaders=new gh;this.hideToggle=!1;this.displayMode="default";this.togglePosition="after"};Y(YW,KW);YW.prototype.ngAfterContentInit=function(){var a=this;this._headers.changes.pipe(wg(this._headers)).subscribe(function(b){a._ownHeaders.reset(b.filter(function(c){return c.panel.accordion===a}));kh(a._ownHeaders)});this._keyManager=Lw(Iw(new Ow(this._ownHeaders)))};YW.prototype._handleHeaderKeydown=function(a){this._keyManager.onKeydown(a)};
YW.prototype._handleHeaderFocus=function(a){Mw(this._keyManager,a)};YW.prototype.ngOnDestroy=function(){KW.prototype.ngOnDestroy.call(this);var a;(a=this._keyManager)==null||a.destroy();this._ownHeaders.destroy()};YW.\u0275fac=function(){var a;return function(b){return(a||(a=Re(YW)))(b||YW)}}();
YW.\u0275dir=vf({type:YW,selectors:[["mat-accordion"]],contentQueries:function(a,b,c){a&1&&ih(c,PW,5);if(a&2){var d;lh(d=mh())&&(b._headers=d)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(a,b){a&2&&uh("mat-accordion-multi",b.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",$h],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[Fh([{provide:t5c,useExisting:YW}]),Bg]});var ZW=function(){};ZW.\u0275fac=function(a){return new (a||ZW)};ZW.\u0275mod=uf({type:ZW});ZW.\u0275inj=Dd({imports:[px,MW,kx]});var $W=function(){};$W.\u0275fac=function(a){return new (a||$W)};$W.\u0275mod=uf({type:$W});$W.\u0275inj=Dd({imports:[HC,CW,ZW,BG,mH,hQ,VQ,CG,lM,zL,XW]});var mjb=Date.now(),aX=function(){var a=this;this.issueFridge=r(iE);this.router=r(vC);this.ROUTES=Dq;this.phaseToUrlSlug=Nr;this.FETCH_SIZE=500;this.teamId$=new sg(1);this.triageId$=new sg(1);this.phase$=new Kn("NEW");this.heading$=this.phase$.pipe(C(function(b){return lr.get(b)}));this.searchFilter$=Uf([this.teamId$,this.phase$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return"teamid:"+b+"+ "+Goc[c]}));this.issues$=this.searchFilter$.pipe(xg(function(b){return a.issueFridge.watchMany({filter:b,
pageSize:500})}),C(function(b){return b.results}));this.daysOld$=this.issues$.pipe(C(function(b){return b.map(function(c){var d,e;return(e=(d=c.aggregatedData)==null?void 0:d.modifiedTimeMicros)!=null?e:0})}),C(function(b){return b.map(njb)}));this.avgAge$=this.daysOld$.pipe(C(Pva),C(function(b){return Math.round(b*10)/10}));this.countsByDaysOld$=this.daysOld$.pipe(C(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(C(function(b){var c=Math.max.apply(Math,p(b));return b.map(function(d){return d/c})}))};nd.Object.defineProperties(aX.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)}}});
aX.\u0275fac=function(a){return new (a||aX)};
aX.\u0275cmp=y({type:aX,selectors:[["phase-card-contents"]],inputs:{teamId:"teamId",triageId:"triageId",phase:"phase"},standalone:!1,decls:19,vars:12,consts:[[1,"flex-kids-x","margin-s-bottom"],[1,"padded-s-y","padded-right","border-right"],[1,"type-s","muted"],[1,"type-l"],[1,"padded-s-y","padded-sides"],[1,"bar-chart"],[1,"flex-kids-x"],[1,"heading-s","subtle-link","align-self-center",3,"href"],["type","button","mat-button","","color","primary margin-left-auto","title","View issues",3,"click"],
["svgIcon","arrow-forward","iconPositionEnd",""],[3,"title","style"],[3,"title"]],template:function(a,b){a&1&&(F(0,gjb,2,3),U(1,"async"),J(2,"div",0)(3,"div",1)(4,"p",2),R(5,"Total Issues"),K(),J(6,"p",3),F(7,hjb,1,2),U(8,"async"),Mg(9,ijb,1,0),K()(),J(10,"div",4)(11,"p",2),R(12,"Avg Last Modified"),K(),J(13,"p",3),R(14),U(15,"async"),K()()(),J(16,"div",5),F(17,ljb,2,3),U(18,"async"),K());if(a&2){var c,d,e;G((c=V(1,4,b.teamId$))?0:-1,c);x(7);G((d=V(8,6,b.issues$))?7:9,d);x(7);T(" ",V(15,8,b.avgAge$),
" days ");x(3);G((e=V(18,10,b.countsByDaysOld$))?17:-1,e)}},dependencies:[FC,oG,Jx,Tv],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 R5c=/^\s*(?:hotlistid|h):(\d+)\s*$/i,S5c=/(?:\s|^)(?:componentid|c):(\d+)\s*/i,T5c=/^\s*savedsearchid:(\d+)\s*$/i,bX=function(){Z.call(this);var a=this;this.$log=r(ME);this.activeSession=r(Bs);this.contextSensitiveRegistry=r(LK);this.analytics=r(RE);this.currentQuery="";this.currentTrackerScope=[];this.queryState$=new Kn({query:"",cursorPosition:void 0,setViaInteraction:!1});this.currentTrackerIdList$=Yf(function(){var b;return Nf((b=a.activeSession.getTracker())==null?void 0:b.trackerId)}).pipe(C(function(b){return b?
[b]:[]}));this.selectedTrackerIds$=new tg;this.trackerScope$=dg(this.currentTrackerIdList$,this.selectedTrackerIds$);this.searchHandlerStack=[];this.searchTriggered$=new tg;this.subscriptions.add(this.queryState$.pipe(yg(this.destroyed$)).subscribe(function(b){a.currentQuery=b.query;(b=a.currentQuery.match(S5c))?a.contextSensitiveRegistry.componentIdOverride$.next(b[1]):a.contextSensitiveRegistry.componentIdOverride$.next(null);(b=a.currentQuery.match(R5c))?a.contextSensitiveRegistry.hotlistIdOverride$.next(Number(b[1])):
a.contextSensitiveRegistry.hotlistIdOverride$.next(null)}));this.subscriptions.add(this.trackerScope$.pipe(yg(this.destroyed$)).subscribe(function(b){a.currentTrackerScope=b}))};Y(bX,Z);bX.\u0275dir=Z.\u0275dir;bX.prototype.clear=function(){cX(this,"")};var cX=function(a,b){a.queryState$.next({query:b,cursorPosition:void 0,setViaInteraction:!1})},U5c=function(a){return"assignee:"+a+" status:open"},V5c=function(a,b){return a.currentQuery===U5c("me")||a.currentQuery===U5c(b===void 0?"":b)};
bX.prototype.getStarred=function(){return"star:true"};bX.prototype.isStarred=function(){return this.currentQuery===this.getStarred()};var W5c=function(a){return"verifier:"+a+" status:open | status:fixed"},X5c=function(a){return(a=a.currentQuery.match(R5c))?Number(a[1]):0},Y5c=function(a){return(a=a.currentQuery.match(T5c))?Number(a[1]):0},Z5c=function(a){return(a=a.currentQuery.match(S5c))?a[1]:void 0};bX.prototype.track=function(a,b,c){this.analytics.trackEvent("global-search",a,b,c)};
var $5c=function(a,b){a.searchHandlerStack.push(b);return function(){Fa(a.searchHandlerStack,b)}};bX.\u0275fac=function(a){return new (a||bX)};bX.\u0275prov=Cd({token:bX,factory:bX.\u0275fac,providedIn:"root"});var dX=function(){var a=this;this.activatedRoute=r(Jn);this.appSearchState=r(bX);this.teamFridge=r(YF);this.ROUTES=Dq;this.TriagePhase=koc;this.activatedRoute.params.pipe(C(function(b){return{teamId:b.teamId,triageId:b.triageId}}));this.id$=this.activatedRoute.params.pipe(C(function(b){return b.teamId}));this.triageId$=this.activatedRoute.params.pipe(C(function(b){return b.triageId}));Uf([this.id$,this.triageId$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return!(!b||!c&&c!==
"0")}));this.team$=this.id$.pipe(xg(function(b){return a.teamFridge.watch(b)}));this.query$=this.id$.pipe(C(function(b){return"teamid:"+b+"+"}))};dX.prototype.ngOnInit=function(){var a=this;setTimeout(function(){a.appSearchState.clear()})};dX.\u0275fac=function(a){return new (a||dX)};
dX.\u0275cmp=y({type:dX,selectors:[["triage-dashboard"]],standalone:!1,decls:14,vars:11,consts:[[1,"pos-fill","overflow","overflow-on-print-media"],[1,"border-bottom","padded-s-sides"],[1,"left","flex-kids-x","align-items-center","gap-s"],["mat-icon-button","","aria-label","Back to Triage",1,"medium",3,"href"],["color","primary","svgIcon","arrow-backward",1,"icon-m","back-btn"],[3,"title"],[1,"muted"],[1,"main-content","padded","grid"],[1,"carded","bg-off-main",3,"phase","teamId","triageId"]],template:function(a,
b){a&1&&(J(0,"div",0)(1,"header",1)(2,"div",2)(3,"a",3),U(4,"async"),U(5,"async"),M(6,"mat-icon",4),K(),J(7,"h2"),R(8," Dashboard: "),F(9,sjb,2,2,"span",5),U(10,"async"),Mg(11,tjb,3,3,"code",6),K()()(),F(12,vjb,2,3),U(13,"async"),K());if(a&2){var c,d;x(3);I("href",b.ROUTES.viewTriage.makeHref(V(4,3,b.id$),V(5,5,b.triageId$)),hf);x(6);G((c=V(10,7,b.team$))?9:11,c);x(3);G((d=V(13,9,b.id$))?12:-1,d)}},dependencies:[FC,oG,Kx,aX,Tv],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 a6c="comment priority status assignee self-assign self-unassign unassign".split(" "),b6c=["create"],eX=function(){this.paths=r(oN);this.activeSession=r(Bs);this.issueFullFridge=r(TE);this.toIssuePriority=Qsa;this.getResponsibleEmailAddress=Bjb;this.getChangelistNumber=xjb;this.getLink=yjb;this.getPreviousDiffValue=Cjb;this.getNewDiffValue=Ajb;this.shorthandAllDiffs=zjb;this.getClMetadata=wjb;this.isCritiqueComment=zl;this.isFullGerritComment=Al;this.STATUS_CODE_FROM_DISPLAY_STRING=Moc;this.type=
"default"};eX.prototype.ngOnInit=function(){this.type=Djb(this.event)};eX.prototype.getComment=function(){return this.event.unlinkifiedComment?this.event.unlinkifiedComment:this.event.formattedComment?Bva(this.event.formattedComment):""};eX.\u0275fac=function(a){return new (a||eX)};
eX.\u0275cmp=y({type:eX,selectors:[["recent-event-row"]],inputs:{event:"event"},standalone:!1,decls:15,vars:5,consts:[[3,"ldapOnly","email"],[3,"href","issueId"],["mode","relativepast",3,"timestamp"],[3,"id"],["target","_blank",3,"href"],[1,"cl-title","muted",3,"title"],[3,"issuePriority"],[1,"status-update","muted",3,"title"],[3,"title"],[1,"comment-text","muted",3,"title"],[1,"issue-title","muted",3,"title"]],template:function(a,b){a&1&&(M(0,"b-user-email",0),F(1,Ejb,4,4)(2,Ijb,5,4)(3,Jjb,4,4)(4,
Kjb,6,5)(5,Mjb,4,5)(6,Ojb,5,5)(7,Pjb,6,6)(8,Qjb,4,4)(9,Rjb,4,4)(10,Sjb,6,6)(11,Tjb,5,4)(12,Ujb,5,5),F(13,Wjb,1,1),F(14,Yjb,1,1));if(a&2){var c;I("ldapOnly",!0)("email",b.getResponsibleEmailAddress(b.event));x();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);x(12);G(a6c.includes(b.type)?13:-1);x();G(b6c.includes(b.type)?14:-1)}},dependencies:[dL,
EL,pO,dO,VNc],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 fX=function(){Z.apply(this,arguments);var a=this;this.recentEventsForIssuesFridge=r(IF);this.activeSession=r(Bs);this.quickFilter=new jy("");this.printStats=lkb;this.defaultNumEvents=6;this.numDisplayed$=new Kn(this.defaultNumEvents);this.query$=new sg(1);this.renderDelay$=Nf(!0).pipe(ng(1E3));this.allEvents$=this.query$.pipe(eg(Qj),yg(this.destroyed$),C(function(b){return[b,100].join("___")}),xg(function(b){return a.recentEventsForIssuesFridge.watch(b)}),C(function(b){var c;return(c=b==null?
void 0:b.events)!=null?c:[]}));this.events$=Uf([this.allEvents$,this.quickFilter.valueChanges.pipe(wg(""))]).pipe(C(function(b){var c=l(b);b=c.next().value;b=b===void 0?[]:b;c=c.next().value;return b.filter(kkb(c))}));this.bucketedEvents$=Uf([this.events$,this.numDisplayed$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b.slice(0,c)}),C(mkb));this.allBucketedEvents$=this.events$.pipe(C(mkb));this.bucketedEventStats$=this.allBucketedEvents$.pipe(C(function(b){return{"<24h":nkb("<24h",
b),"24h-7d":nkb("24h-7d",b),"7d-30d":nkb("7d-30d",b),">30d":nkb(">30d",b)}}))};Y(fX,Z);fX.\u0275dir=Z.\u0275dir;nd.Object.defineProperties(fX.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)}}});fX.\u0275fac=function(){var a;return function(b){return(a||(a=Re(fX)))(b||fX)}}();
fX.\u0275cmp=y({type:fX,selectors:[["recent-events"]],inputs:{numEvents:"numEvents",query:"query"},standalone:!1,features:[Bg],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,jkb,5,4),U(1,"async"));a&2&&G(V(1,1,b.renderDelay$)?0:-1)},dependencies:[Ui,dy,py,eX,Tv],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 gX=function(){};gX.\u0275fac=function(a){return new (a||gX)};gX.\u0275mod=uf({type:gX});gX.\u0275inj=Dd({imports:[By,Ay,HC,hL,JL,kQ,DQ,KL]});var rkb=function(a,b){return b.searchId},hX=function(){Z.apply(this,arguments);this.dialogRef=r(KJ);this.currentUserBookmarksFridge=r(hD);this.selectedIds=new Set;this.savedSearches$=iuc(this.currentUserBookmarksFridge)};Y(hX,Z);hX.\u0275dir=Z.\u0275dir;var qkb=function(a,b){b.options.forEach(function(c){c.selected?a.selectedIds.add(c.value):a.selectedIds.delete(c.value)})};hX.prototype.onSave=function(){var a=[].concat(p(this.selectedIds)).map(String);this.dialogRef.close(a)};
hX.prototype.onCancel=function(){this.dialogRef.close()};hX.\u0275fac=function(){var a;return function(b){return(a||(a=Re(hX)))(b||hX)}}();
hX.\u0275cmp=y({type:hX,selectors:[["saved-search-picker-dialog"]],standalone:!1,features:[Bg],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&&(J(0,"header",0),R(1," Add a Saved Search "),K(),J(2,"div",1),F(3,skb,3,0,"mat-selection-list",2),U(4,"async"),K(),J(5,"div",3)(6,"button",4),N("click",function(){return b.onCancel()}),R(7," Cancel "),K(),J(8,"button",5),N("click",function(){return b.onSave()}),R(9),K()());if(a&
2){var c;x(3);G((c=V(4,3,b.savedSearches$))?3:-1,c);x(5);I("disabled",b.selectedIds.size===0);x();T(" Save ",b.selectedIds.size>1?"("+b.selectedIds.size+")":""," ")}},dependencies:[oG,Jx,UJ,WJ,VJ,ML,VL,UL,Tv],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 iX=function(){};iX.\u0275fac=function(a){return new (a||iX)};iX.\u0275mod=uf({type:iX});iX.\u0275inj=Dd({imports:[HC,BG,wK,CG,lM,aM,Ay,By,nL,BG,jM,CQ,tJ]});var jX=function(){this.dialog=r(RJ)};jX.prototype.open=function(a){var b=this,c={panelClass:"no-jitter"};return new Promise(function(d){LJ(b.dialog.open(hX,c)).subscribe(function(e){e=e===void 0?[]:e;a==null||a(e);d(e)})})};jX.\u0275fac=function(a){return new (a||jX)};jX.\u0275prov=Cd({token:jX,factory:jX.\u0275fac,providedIn:"root"});var c6c=function(){return[]},kX=function(){Z.apply(this,arguments);var a=this;this.issueFridge=r(iE);this.changelistFridge=r(nB);this.activeSession=r(Bs);this.query$=new sg(1);this.issues$=this.query$.pipe(xg(function(b){return a.issueFridge.watchMany(b).pipe(C(function(c){if(xr(a.ref)==="issue")return c.results;var d;return YKc(c.results,(d=a.activeSession.getTracker())==null?void 0:d.trackerId)}))}));this.emails$=this.issues$.pipe(C(function(b){return b.map(Wva).filter(Qj)}),C(Osa));this.submittedClLinks$=
this.issues$.pipe(C(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(C(function(b){return b.map(function(c){return c.issueId})}),xg(function(b){return a.changelistFridge.watchMany({pendingForIssues:b})}),C(function(b){return b.results}))};Y(kX,Z);kX.\u0275dir=Z.\u0275dir;kX.prototype.getHotlistId=function(){if(xr(this.ref)==="hotlist")return wr(this.ref)};
nd.Object.defineProperties(kX.prototype,{query:{configurable:!0,enumerable:!0,set:function(a){a!=null&&this.query$.next(a)}}});kX.\u0275fac=function(){var a;return function(b){return(a||(a=Re(kX)))(b||kX)}}();
kX.\u0275cmp=y({type:kX,selectors:[["rollups-list"]],inputs:{ref:"ref",query:"query"},standalone:!1,features:[Bg],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&&(J(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,tkb,1,1,"avatar-bunch",4),U(8,"async"),K(),J(9,"div",5),F(10,ukb,3,1,"a",6),K()());if(a&2){var c,d,e;x(2);I("ref",b.ref)("count",(c=V(3,6,b.issues$))==null?null:c.length);x(2);var f,h;I("submitted",(f=V(5,8,b.submittedClLinks$))!=null?f:Gh(14,c6c))("pending",(h=V(6,10,b.pendingCls$))!=null?h:Gh(15,c6c));x(3);G((d=V(8,12,b.emails$))?7:-1,d);x(3);a:{if(ml(b.activeSession.session)&&(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:[FC,oG,Jx,xW,yW,zW,Tv],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 wkb=function(){return[]},lX=function(){Z.call(this);var a=this;this.issueRelationshipsFridge=r(jF);this.metadataFridge=r(YA);this.issueFullFridge=r(TE);this.changelistFridge=r(nB);this.id$=new sg(1);this.issue$=this.id$.pipe(xg(function(b){return a.issueFullFridge.watch(b)}));this.metadata$=this.id$.pipe(xg(function(b){return a.metadataFridge.watch(b)}));this.closedAndTotal$=this.metadata$.pipe(C(Ewa));this.metadata$.pipe(C(Gwa));this.gerritChanges$=this.metadata$.pipe(C(Hwa));this.emails$=this.metadata$.pipe(C(Iwa));
this.pendingCls$=Uf([this.id$,this.metadata$]).pipe(xg(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d;c=(d=c==null?void 0:c.issueIds)!=null?d:[];d=[b].concat(p(c));return a.changelistFridge.watchMany({pendingForIssues:d})}),C(function(b){return b.results}));this.subscriptions.add(dg(this.issueRelationshipsFridge.memoryWasSet$,this.issueRelationshipsFridge.collectiveMemoryWasSet$,this.issueFullFridge.memoryWasSet$,this.issueFullFridge.collectiveMemoryWasSet$).pipe(ig(this.id$),kg(2E3)).subscribe(function(b){return void a.metadataFridge.poke(b[1])}))};
Y(lX,Z);lX.\u0275dir=Z.\u0275dir;nd.Object.defineProperties(lX.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});lX.\u0275fac=function(a){return new (a||lX)};
lX.\u0275cmp=y({type:lX,selectors:[["rollups-project"]],inputs:{id:"id"},standalone:!1,features:[Bg],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&&(J(0,"section",0),F(1,vkb,1,2,"progress-pie",1),U(2,"async"),M(3,"issue-timeframe",2),U(4,"async"),F(5,xkb,2,5,"cl-counts",3),U(6,"async"),F(7,zkb,1,1),U(8,"async"),F(9,Bkb,1,1),U(10,"async"),K());if(a&
2){var c,d,e,f;x();G((c=V(2,5,b.closedAndTotal$))?1:-1,c);x(2);I("issue",V(4,7,b.issue$));x(2);G((d=V(6,9,b.metadata$))?5:-1,d);x(2);G((e=V(8,11,b.gerritChanges$))?7:-1,e);x(2);G((f=V(10,13,b.emails$))?9:-1,f)}},dependencies:[xW,yW,VT,UT,r5c,Tv],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 mX=function(){this.activeSession=r(Bs)};mX.\u0275fac=function(a){return new (a||mX)};mX.\u0275prov=Cd({token:mX,factory:mX.\u0275fac,providedIn:"root"});var d6c=(new mL).transform,nX=function(){var a=this;this.kansasPrefsManager=r(iG);this.activeSession=r(Bs);this.filteredSignalsSource=r(mX);this.destroyRef=r(Gg);this.filteredSignalsOptions=hj(this.filteredSignalsSource.activeSession.isInternalSession()?Gyc:Hyc);this.needsAttentionSourceFilters=this.activeSession.isInternalSession()?Cyc:Dyc;this.prefs$=this.kansasPrefsManager.preferences$.pipe(C(function(b){var c;return(c=b==null?void 0:b.missionControlPreferences)!=null?c:{}}));this.prefs={};this.myTasksSources$=
this.prefs$.pipe(C(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(Dkb):[].concat(p(Eyc))}));this.needsAttentionSources$=this.prefs$.pipe(C(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(Dkb):[].concat(p(c))}));this.needsAttentionTimeBoundary$=this.prefs$.pipe(C(function(b){var c;
return(c=b==null?void 0:b.needsAttentionDaysOld)!=null?c:30}));this.needsAttentionFilteredSignals$=this.prefs$.pipe(C(function(b){return{buganizerSignals:Fkb(b==null?void 0:b.needsAttentionBuganizerFilteredSignals,a.filteredSignalsOptions),driveSignals:Jkb(b==null?void 0:b.needsAttentionDriveFilteredSignals,a.filteredSignalsOptions),gerritSignals:Lkb(b==null?void 0:b.needsAttentionGerritFilteredSignals,a.filteredSignalsOptions),changelistSignals:Hkb(b==null?void 0:b.needsAttentionChangelistFilteredSignals,
a.filteredSignalsOptions),googleTasksSignals:Mkb(b==null?void 0:b.needsAttentionGoogleTasksFilteredSignals,a.filteredSignalsOptions),irmSignals:Nkb(b==null?void 0:b.needsAttentionIrmFilteredSignals,a.filteredSignalsOptions)}}),ug({bufferSize:1,refCount:!0}));this.prefs$.pipe(lp(this.destroyRef)).subscribe(function(b){a.prefs=b})},Qr=function(a,b){a.kansasPrefsManager.save({missionControlPreferences:Object.assign({},a.prefs,b)}).subscribe()},Snb=function(a,b,c){switch(b){case "mc-my-tasks":a.prefs.myTasksTab=
c;Qr(a,{myTasksTab:c});break;case "work-areas-wrapper-card":a.prefs.workAreaTab=c;Qr(a,{workAreaTab:c});break;default:console.error("unhandled tab key, cannot save preference")}};nX.prototype.toggleCollapsed=function(a){var b;this.prefs.collapsed=(b=this.prefs.collapsed)!=null?b:{};this.prefs.collapsed[a]=!this.prefs.collapsed[a];Qr(this,{collapsed:this.prefs.collapsed})};nX.prototype.isCollapsed=function(a){var b;return!((b=this.prefs.collapsed)==null||!b[a])};
var e6c=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")}};nX.prototype.getMyTasksSources=function(){var a,b=(a=this.prefs.myTasksSources)!=null?a:[];a=this.prefs.isMyTasksSourcesConfigured;return b.length!==0||a?b.map(Dkb):[].concat(p(Eyc))};var f6c=function(a,b){var c;return(a=(c=a.prefs.workAreaQuickFilters)==null?void 0:c[b])?[a]:[]};
nX.prototype.addHotlist=function(a){oX(this,vab(a))};nX.prototype.hasHotlist=function(a){return a==null?!1:g6c(this,vab(a))};nX.prototype.hasSavedSearch=function(a){return a==null?!1:g6c(this,wab(a))};
var g6c=function(a,b){var c;return((c=a.prefs.workAreaUrls)!=null?c:[]).includes(b)},oX=function(a,b){typeof b==="string"&&(b=[b]);if(b!=null&&b.length!==0){var c,d=(c=a.prefs.workAreaUrls)!=null?c:[];d=Ksa(b,d);Qr(a,{workAreaUrls:d})}},Onb=function(a,b,c){var d,e=((d=a.prefs.workAreaUrls)!=null?d:[]).slice();d6c(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,Qr(a,{workAreaUrls:e}))};nX.\u0275fac=function(a){return new (a||nX)};
nX.\u0275prov=Cd({token:nX,factory:nX.\u0275fac,providedIn:"root"});var pX=function(){this.issueFridge=r(iE);this.candidateIssues$=this.issueFridge.watchMany(Iyc);this.suggestions$=this.candidateIssues$.pipe(C(Cab))};pX.\u0275fac=function(a){return new (a||pX)};pX.\u0275prov=Cd({token:pX,factory:pX.\u0275fac,providedIn:"root"});var qX=function(){var a=this;this.prefsService=r(nX);this.isNumeric=rjb;this.isActive=function(){return h6c(a,a.prefsService.prefs,a.filter.key)};this.active$=this.prefsService.prefs$.pipe(C(function(b){var c;return h6c(a,b,(c=a.filter)==null?void 0:c.key)}))};
qX.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];Qr(b,{workAreaQuickFilters:b.prefs.workAreaQuickFilters})}};qX.prototype.isDisabled=function(){return String(this.countDisplay)==="0"&&!this.isActive()};
var h6c=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};
nd.Object.defineProperties(qX.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=wl.get(c.status))==null?0:e.open)b+=d.length}}this.countDisplay=b}else if(this.filter.key==="BROAD_IN_PROGRESS")b=Fwa(a,"ASSIGNED"),a=Fwa(a,"ACCEPTED"),this.countDisplay=b+a;else throw Error("Ye`"+
this.filter.key);},get:function(){return this.metadataInternal}},key:{configurable:!0,enumerable:!0,set:function(a){this.filter=yr[a]}},computeCountFor:{configurable:!0,enumerable:!0,set:function(a){if(a==null)this.countDisplay="-";else{var b,c,d=(c=yr[(b=this.filter)==null?void 0:b.key])==null?void 0:c.check;this.countDisplay=a.filter(d).length}}}});qX.\u0275fac=function(a){return new (a||qX)};
qX.\u0275cmp=y({type:qX,selectors:[["qif-stat"]],hostBindings:function(a,b){a&1&&N("click",function(){return b.onClick()})},inputs:{metadata:"metadata",key:"key",prefKey:"prefKey",computeCountFor:"computeCountFor"},standalone:!1,decls:5,vars:7,consts:[["type","button",1,"unstyled-button","stat-card",3,"title"],[1,"big-number",3,"muted"],[1,"big-number"]],template:function(a,b){a&1&&(J(0,"button",0),U(1,"async"),J(2,"label"),R(3),K(),F(4,Qkb,2,3,"div",1),K());if(a&2){var c;I("title",(c=b.filter.tooltip)!=
null?c:"");Lg("aria-pressed",V(1,5,b.active$))("disabled",b.isDisabled()?"true":null);x(3);wh(b.filter.displayAs);x();G(b.metadata||b.countDisplay!==void 0?4:-1)}},dependencies:[Tv],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 rX=function(){};rX.\u0275fac=function(a){return new (a||rX)};rX.\u0275mod=uf({type:rX});rX.\u0275inj=Dd({imports:[HC,QN,GC,BG]});var sX=function(){var a=this;this.issueFridge=r(iE);this.activeSession=r(Bs);this.QuickFilterKey=zoc;this.query$=new sg(1);this.issues$=this.query$.pipe(xg(function(b){return a.issueFridge.watchMany(b)}),C(function(b){if(a.entityType==="issue")return b.results;var c;return YKc(b.results,(c=a.activeSession.getTracker())==null?void 0:c.trackerId)}))};nd.Object.defineProperties(sX.prototype,{query:{configurable:!0,enumerable:!0,set:function(a){a!=null&&this.query$.next(a)}}});
sX.\u0275fac=function(a){return new (a||sX)};
sX.\u0275cmp=y({type:sX,selectors:[["stat-cards-list"]],inputs:{prefKey:"prefKey",entityType:"entityType",query:"query"},standalone:!1,decls:17,vars:40,consts:[[1,"flex-kids-x","gap"],[3,"key","prefKey","computeCountFor"]],template:function(a,b){a&1&&(J(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"),K());a&2&&(x(),I("key",b.QuickFilterKey.OPEN)("prefKey",b.prefKey)("computeCountFor",V(2,24,b.issues$)),x(2),I("key",b.QuickFilterKey.BROAD_IN_PROGRESS)("prefKey",b.prefKey)("computeCountFor",V(4,26,b.issues$)),x(2),I("key",b.QuickFilterKey.ASSIGNED_TO_ME_AND_OPEN)("prefKey",b.prefKey)("computeCountFor",V(6,28,b.issues$)),x(2),I("key",b.QuickFilterKey.NEWLY_FILED)("prefKey",b.prefKey)("computeCountFor",V(8,30,b.issues$)),x(2),I("key",b.QuickFilterKey.RECENTLY_ACTIVE)("prefKey",b.prefKey)("computeCountFor",
V(10,32,b.issues$)),x(2),I("key",b.QuickFilterKey.HIGH_PRIORITY)("prefKey",b.prefKey)("computeCountFor",V(12,34,b.issues$)),x(2),I("key",b.QuickFilterKey.TRENDING)("prefKey",b.prefKey)("computeCountFor",V(14,36,b.issues$)),x(2),I("key",b.QuickFilterKey.PROGRESS)("prefKey",b.prefKey)("computeCountFor",V(16,38,b.issues$)))},dependencies:[qX,Tv],styles:["[_nghost-%COMP%]{display:block;padding-left:1px}\n/*# sourceMappingURL=stat_cards_list.css.map */"],changeDetection:0});var tX=function(){var a=this;this.metadataFridge=r(YA);this.QuickFilterKey=zoc;this.id$=new sg(1);this.metadata$=this.id$.pipe(xg(function(b){return a.metadataFridge.watch(b)}));this.hasDescendants$=this.metadata$.pipe(C(function(b){var c;return((c=b==null?void 0:b.descendantCount)!=null?c:0)>0}))};nd.Object.defineProperties(tX.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a);this.idInternal=a},get:function(){return this.idInternal}}});
tX.\u0275fac=function(a){return new (a||tX)};tX.\u0275cmp=y({type:tX,selectors:[["stat-cards-project"]],inputs:{id:"id"},standalone:!1,decls:2,vars:3,consts:[[1,"flex-kids-x","gap"],[3,"key","prefKey","metadata"]],template:function(a,b){a&1&&(F(0,Rkb,5,10,"div",0),U(1,"async"));a&2&&G(V(1,1,b.hasDescendants$)?0:-1)},dependencies:[qX,Tv],styles:["[_nghost-%COMP%]{display:block;padding-left:1px}\n/*# sourceMappingURL=stat_cards_project.css.map */"],changeDetection:0});var uX=function(){};uX.\u0275fac=function(a){return new (a||uX)};uX.\u0275mod=uf({type:uX});uX.\u0275inj=Dd({imports:[HC,QN,GC,BG,AW,rX]});var i6c={CANCEL:"CANCEL",ARCHIVE_ALL:"ARCHIVE_ALL",ARCHIVE_ONE:"ARCHIVE_ONE"},j6c=function(){this.data=r(QJ);this.paths=r(oN);this.descendantIssuesUrl=this.paths.listIssues({q:"parentId:"+this.data.issueId+"+"});this.numberOfDescendants=this.data.numberOfDescendants;this.ActionType=i6c};j6c.\u0275fac=function(a){return new (a||j6c)};
j6c.\u0275cmp=y({type:j6c,selectors:[["b-issue-archive-dialog"]],standalone:!1,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&&(J(0,"h1",0),R(1,"Archive with all descendant issues?"),
K(),J(2,"div",1),R(3),M(4,"br")(5,"br"),J(6,"a",2),R(7,"View all descendant issues"),K(),M(8,"br"),J(9,"a",3),R(10,"Learn more"),K()(),J(11,"div",4)(12,"button",5),R(13,"Cancel"),K(),J(14,"button",5),R(15," Just this one "),K(),J(16,"button",6),R(17," Archive all "),K()());a&2&&(x(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? "),x(3),I("href",Ch(b.descendantIssuesUrl),
hf),x(6),I("matDialogClose",b.ActionType.CANCEL),x(2),I("matDialogClose",b.ActionType.ARCHIVE_ONE),x(2),I("matDialogClose",b.ActionType.ARCHIVE_ALL))},dependencies:[oG,Jx,SJ,UJ,WJ,VJ],encapsulation:2});var vX=function(){this.issueApi=r(SD);this.dialog=r(RJ);this.confirmationDialogService=r(YJ);this.issueRelationshipsFridge=r(jF);this.issueFullFridge=r(TE);this.eventsForIssueFridge=r(TD);this.paths=r(oN);this.butterBar=r(GJ);this.editIssueService=r(RK)};
vX.prototype.submitArchivalState=function(a,b){var c=this;return z(function(d){if(d.nextAddress==1)return b?B(d,c.archive(a),5):B(d,c.editIssueService.unarchive(a),0);c.issueFullFridge.poke(a);c.eventsForIssueFridge.poke(a);Lf(d)})};
vX.prototype.archive=function(a){var b=this,c,d,e,f,h,k,q,v,A,E;return z(function(H){if(H.nextAddress==1)return B(H,Promise.all([b.getDescendants(a),Rf(b.issueFullFridge.watch(a))]),2);c=H.yieldResult;d=l(c);e=d.next().value;f=d.next().value;h=e;k=f;q=h;v=q.childToParents;A=q.completeResult;E=[].concat(p(v.keys()));v.set(a,k.parentIssueIds||[]);return E.length===0?H.return(k6c(b,a,v)):A?H.return(l6c(b,a,E,v)):H.return(m6c(b,a,v))})};
var l6c=function(a,b,c,d){var e,f,h;return z(function(k){if(k.nextAddress==1)return e={numberOfDescendants:c.length,issueId:b},f={data:e,width:"500px"},B(k,Rf(LJ(a.dialog.open(j6c,f))),2);h=k.yieldResult;switch(h){case "ARCHIVE_ALL":return k.return(n6c(a,[b].concat(p(c)),d));case "ARCHIVE_ONE":return k.return(k6c(a,b,d));case "CANCEL":return k.return();default:return k.return(pb(h))}})},n6c=function(a,b,c){var d=[{issueIds:b,actions:[{fieldName:"isArchived",value:"true"}]}];o6c(a,c);Kq(a.butterBar,
"Archiving "+b.length+" issues...");return a.issueApi.issueBulkEdit({bulkEditOps:d}).then(function(){Kq(a.butterBar,"Archived "+b.length+" issues successfully.")}).catch(function(e){a.butterBar.showWarning(e);p6c(a,c)})},k6c=function(a,b,c){o6c(a,c);return a.issueApi.updateIssue(b,{issueId:b,actions:[{fieldName:"isArchived",value:"true"}]}).then(function(){Kq(a.butterBar,"Archived successfully.")}).catch(function(d){a.butterBar.showWarning(d);p6c(a,c)})},m6c=function(a,b,c){return new Promise(function(d){a.confirmationDialogService.open({title:"Archive issue with descendant issues?",
content:Zi([Xi("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."),$i("br",{}),$i("br",{}),$i("a",{href:a.paths.listIssues({q:"parentId:"+b+"+"}),target:"_blank"},"View all descendant issues"),$i("br",{}),$i("a",{href:"http://go/b-issue-archive",target:"_blank"},"Learn more")]),cancelButtonText:"Cancel",confirmButtonText:"Just this one",
onConfirm:function(){k6c(a,b,c).then(d)},onDismiss:d})})},o6c=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)}},p6c=function(a,b){b=[].concat(p(b.values())).flat();b=l(b);for(var c=b.next();!c.done;c=b.next())a.issueRelationshipsFridge.poke(c.value)};
vX.prototype.getDescendants=function(a){var b=this,c,d,e,f,h,k,q,v,A,E,H,L;return z(function(O){if(O.nextAddress==1)return B(O,Rf(yxc(b.issueRelationshipsFridge,a)),2);c=O.yieldResult;d=c.results;e=!0;f=new Map;h=l(d);for(k=h.next();!k.done;k=h.next()){q=k.value;v=l(q.relatedChildren);for(A=v.next();!A.done;A=v.next())E=A.value,H=void 0,L=(H=f.get(E.targetIssueId))!=null?H:[],L.push(q.issueId),f.set(E.targetIssueId,L);q.totalChildCount===q.relatedChildren.length||(e=!1)}return O.return({childToParents:f,
completeResult:e})})};vX.\u0275fac=function(a){return new (a||vX)};vX.\u0275prov=Cd({token:vX,factory:vX.\u0275fac,providedIn:"root"});var wX=function(a){this.pathToAncestor=a},Or=function(a){return new wX(a.split(">"))},q6c=function(a,b){return new wX([].concat(p(a.pathToAncestor),[b]))};wX.prototype.hash=function(){return this.pathToAncestor.join(">")};wX.prototype.equals=function(a){return!!a&&gj(this.pathToAncestor,a.pathToAncestor)};var r6c=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};
wX.prototype.contains=function(a){return this.pathToAncestor.join(",").includes(a.pathToAncestor.join(","))};wX.prototype.some=function(a){return this.pathToAncestor.some(a)};wX.prototype.toString=function(){return this.hash()};
nd.Object.defineProperties(wX.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 wX(this.pathToAncestor.slice(0,this.size-1))}},root:{configurable:!0,enumerable:!0,get:function(){return this.pathToAncestor[0]}}});var xX=function(){var a=this;this.draftRows=new Map;this.changed$=new tg;this.counter=0;this.createId=function(){return String(a.counter++)}};xX.prototype.create=function(a,b,c){var d=this.createId();b={type:"draft-issue",title:"",ancestorChain:q6c(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};
xX.prototype.get=function(a){var b;return(b=this.draftRows.get(a.hash()))!=null?b:[]};xX.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 s6c=function(a,b){return z(function(c){return c.return(Rf(a.changed$.pipe(wg(a.draftRows),C(function(d){return![].concat(p(d.values())).flat().some(function(e){return e.issueId===b||e.id===b})}),eg(Boolean),C(function(){}))))})};xX.prototype.isSaving=function(){return[].concat(p(this.draftRows.values())).flat().some(function(a){return a.saving})};xX.prototype.set=function(a,b){var c=this.get(a);this.draftRows.set(a.hash(),[].concat(p(c),[b]));this.changed$.next(this.draftRows)};var t6c={defaultExpandedChildren:10,defaultExpansionLevel:3,maxExpansion:500},u6c=function(a){var b=void 0;b=b===void 0?t6c:b;a=a===void 0?{}:a;this.config=b;this.expansionState=this.initialState=a;this.changed$=new sg(1)},v6c=function(a,b){b=b.hash();return a.expansionState[b]},w6c=function(a,b,c){b=b.hash();c===void 0?delete a.expansionState[b]:a.expansionState[b]=c;a.changed$.next(a.expansionState)},x6c=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=q6c(b,
e.nodeId);e.size<=a.config.defaultExpansionLevel&&v6c(a,e)===void 0&&(a.expansionState[f.hash()]=a.config.defaultExpandedChildren,d=!0);for(var h=l(Object.entries(a.expansionState)),k=h.next();!k.done;k=h.next()){k=l(k.value);var q=k.next().value;k=k.next().value;q=Or(q);q.contains(e)&&(d=q.pathToAncestor.join(",").replace(e.pathToAncestor.join(","),f.pathToAncestor.join(",")).split(","),d=new wX(d),delete a.expansionState[q.hash()],a.expansionState[d.hash()]=k,d=!0)}}if(!v6c(a,b)){var v;a.expansionState[b.hash()]=
(v=a.config.defaultExpandedChildren)!=null?v:a.config.maxExpansion;d=!0}d&&a.changed$.next(a.expansionState)};var yX=function(){this.issueApi=r(SD);this.activeSession=r(Bs);this.issueFullFridge=r(TE);this.componentFridge=r(BB);this.componentTemplatesFridge=r(IC);this.currentUser=Dj(this.activeSession.getUserEmail())},z6c=function(a,b){var c,d,e;return z(function(f){if(f.nextAddress==1)return B(f,y6c(a,b),2);c=f.yieldResult;d=c.component;e=c.defaultTemplate;return f.return(Jwa(d,e))})},B6c=function(a,b){return A6c(a,b).pipe(C(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}}))},C6c=function(a,b,c){var d;return z(function(e){if(e.nextAddress==1)return B(e,Rf(A6c(a,b)),2);d=e.yieldResult;d.title=c;return e.return(a.create(d))})};
yX.prototype.create=function(a){var b=this,c,d;return z(function(e){return e.nextAddress==1?B(e,b.issueApi.createIssue({snapshot:a}),2):e.nextAddress!=3?(c=e.yieldResult,d=c.issueId,B(e,b.issueFullFridge.poke(String(d)),3)):e.return({issueId:String(d)})})};
var A6c=function(a,b){return a.issueFullFridge.watch(b).pipe(eg(Qj),xg(function(c){var d,e;return z(function(f){if(f.nextAddress==1)return B(f,y6c(a,String(c.snapshot[0].componentId)),2);d=f.yieldResult;if(c){var h={};c.snapshot[0].priority&&(h.priority=c.snapshot[0].priority);c.snapshot[0].severity&&(h.severity=c.snapshot[0].severity);c.snapshot[0].type&&(h.type=uxc[c.snapshot[0].type])}else h={};e=Object.assign({},{componentId:d.component.componentId},{inProd:!1,status:"NEW",isDeleted:!1,deletionReason:"DELETION_REASON_UNSPECIFIED",
isArchived:!1,formattingMode:"UNSPECIFIED_FORMATTING_MODE",reporterUser:a.currentUser,ccUsers:[a.currentUser]},h,D6c(d.defaultTemplate),E6c(d.component,d.defaultTemplate));e.assigneeUser&&(e.status="ASSIGNED");return f.return(e)})}))},D6c=function(a){if(!a)return{};a=cj(a.snapshot,function(b){return b==null||typeof b==="string"&&ja(b)?!1:!0});delete a.componentId;return a},E6c=function(a,b){var c=[],d,e;a=l((e=(d=a.componentPathInfo)==null?void 0:d.allCustomField)!=null?e:[]);e=a.next();for(d={};!e.done;d=
{customField$jscomp$16:void 0},e=a.next())if(d.customField$jscomp$16=e.value,d.customField$jscomp$16.required){var f=void 0;e=(f=d.customField$jscomp$16.typedDefaultValue)!=null?f:{customFieldId:d.customField$jscomp$16.customFieldId};var h=f=void 0,k=void 0,q=(k=(f=b)==null?void 0:(h=f.snapshot.customField)==null?void 0:h.find(function(v){return function(A){return A.customFieldId===v.customField$jscomp$16.customFieldId}}(d)))!=null?k:e;q&&c.push(Object.assign({},q))}return c.length===0?{}:{customField:c}},
y6c=function(a,b){var c,d,e,f,h,k;return z(function(q){if(q.nextAddress==1)return B(q,Promise.all([Rf(a.componentTemplatesFridge.defaultTemplate$(b)),Rf(a.componentFridge.watch(b).pipe(eg(Qj)))]),2);c=q.yieldResult;d=l(c);e=d.next().value;f=d.next().value;h=e;k=f;return q.return({component:k,defaultTemplate:h})})};yX.\u0275fac=function(a){return new (a||yX)};yX.\u0275prov=Cd({token:yX,factory:yX.\u0275fac,providedIn:"root"});var zX=function(a,b,c,d,e,f,h,k,q,v,A,E,H,L,O){c=c===void 0?1:c;Z.call(this);var S=this;this.rootIssueId=a;this.quickFilters=b;this.defaultExpansionLevel=c;this.saveExpansionAtKey=d;this.analytics=e;this.butterBar=f;this.issueFullFridge=h;this.issuePicker=k;this.issueRelationshipsFridge=q;this.paths=v;this.router=A;this.issueCreationService=E;this.clearcut=H;this.refreshMonitor=L;this.permissionsFridge=O;this.defaultExpandedChildren=10;this.isOneLineCreationSupported=function(){return S.supportsOneLineCreation};
this.defaultApiRequestDepth=this.defaultExpansionLevel+2;a=this.saveExpansionAtKey?hl(this.saveExpansionAtKey):function(){};this.expansion=new u6c(F6c(this));this.draftRows=new xX;this.refetchingAll$=new Kn(!1);this.userRequestedRefresh$=this.refreshMonitor.getObservable().pipe(Ag(Yf(function(){return S.rows$})),xg(function(aa){aa=l(aa);aa.next();var ka=aa.next().value;S.refetchingAll$.next(!0);aa=[];if(!ka)return Promise.resolve();aa.push(zxc(S.issueRelationshipsFridge,S.rootIssueId,S.defaultApiRequestDepth));
ka=l(ka);for(var na=ka.next();!na.done;na=ka.next())na=na.value,na.type==="data"&&aa.push(S.issueFullFridge.poke(na.id)),na.level>S.defaultExpansionLevel&&aa.push(S.issueRelationshipsFridge.poke(na.id));return Promise.all(aa).then(function(){S.refetchingAll$.next(!1)})}));this.rows$=dg(this.draftRows.changed$,this.expansion.changed$,this.userRequestedRefresh$,hka(Nf({}),kp)).pipe(xg(function(){return yxc(S.issueRelationshipsFridge,S.rootIssueId,S.defaultApiRequestDepth)}),xg(function(){for(var aa=
new Map,ka=l(Object.entries(S.expansion.expansionState)),na=ka.next();!na.done;na=ka.next()){na=l(na.value);var za=na.next().value;na=na.next().value;za=Or(za).nodeId;var Na=void 0;na=Math.max(na,(Na=aa.get(za))!=null?Na:0);aa.set(za,na)}return G6c(S,aa)}),ig(this.quickFilters.value$),xg(function(aa){aa=l(aa);var ka=aa.next().value;var na=aa.next().value;return na.size===0?(S.hiddenRowCount$.next(0),Nf(ka)):H6c(S,ka).pipe(C(function(za){return I6c(S,ka,na,za)}))}),C(function(aa){return J6c(S,aa)}),
ug({refCount:!0,bufferSize:1}));this.hiddenRowCount$=new Kn(0);this.rootIssue$=this.issueFullFridge.watch(this.rootIssueId).pipe(eg(Qj));this.ROOT_ROW={type:"data",id:this.rootIssueId,level:-1,ancestorChain:new wX([this.rootIssueId]),expandedCount:500,issue$:Bv,hasChildren$:Bv,isEditMode:!1,issuePermissions$:Bv};this.supportsOneLineCreation=Rf(this.rootIssue$).then(function(aa){return FQa(aa.snapshot[0].componentId)}).then(function(aa){return z6c(S.issueCreationService,aa)});this.saveExpansionAtKey&&
this.subscriptions.add(this.expansion.changed$.pipe(kg(100)).subscribe(a))};Y(zX,Z);zX.\u0275dir=Z.\u0275dir;zX.\u0275fac=Z.\u0275fac;
var F6c=function(a){a=a.saveExpansionAtKey;if(a!=null){a=ova(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}},K6c=function(a,b,c){b=b===void 0?a.ROOT_ROW.ancestorChain:b;var d,e,f,h,k,q,v;z(function(A){switch(A.nextAddress){case 1:return d=b.nodeId,B(A,Rf(a.issueFullFridge.watch(d)),2);case 2:return(e=A.yieldResult)?
B(A,a.supportsOneLineCreation,3):A.return();case 3:if(f=A.yieldResult)return h=B6c(a.issueCreationService,d),A.return(a.draftRows.create(b,h,c));k=e.snapshot[0].componentId;v={};return B(A,Mr(a.router,a.paths.createIssue((v.component=k||void 0,v.parentIssueId=e.issueId,v.redirectUrl=Dq.issueDependencies.makeHref(a.rootIssueId),v.afterIssueId=(q=c)==null?void 0:q.afterIssueId,v))),4);case 4:return A.return()}})};
zX.prototype.addExistingChild=function(a){var b=this,c,d,e,f;z(function(h){if(h.nextAddress==1)return B(h,Rf((d=(c=a)==null?void 0:c.issue$)!=null?d:b.rootIssue$),2);e=h.yieldResult;if(!e)return h.return();f=String(e.issueId);return B(h,b.issuePicker.open({title:"Add Children of b/"+f,allowMultipleIds:!0,edgeType:"child"},function(k){return z(function(q){if(q.nextAddress==1){if(k.length===0)return q.return();b.assignParentToIssues(f,k);b.analytics.trackEvent("editIssue","add","existing-child-issue");
return B(q,Bq(0),2)}a&&w6c(b.expansion,a.ancestorChain,500);Lf(q)})}),0)})};zX.prototype.saveDraft=function(a){var b=this,c;return z(function(d){if(d.nextAddress==1){if(a.saving||!a.title)return d.return();a.saving=!0;return B(d,L6c(b,a),2)}return(c=d.yieldResult)?d.return(M6c(b,a,c)):d.return()})};
var L6c=function(a,b){var c,d,e,f;return z(function(h){switch(h.nextAddress){case 1:return c=b.ancestorChain.parentNodeId,Gf(h,2),B(h,C6c(a.issueCreationService,c,b.title),4);case 4:e=h.yieldResult;d=e.issueId;uu(h,3);break;case 2:return f=Kf(h),a.butterBar.showWarning("Could not create issue. Error: "+JSON.stringify(f)),a.draftRows.remove(b),h.return();case 3:var k=(new Date).getTime()-b.draftStartedAt.getTime();if(k>0){var q=Math.min(k,108E5);Twc("createIssue",q,"from-tree");a.analytics.trackEvent("createIssue",
"createIssue","time-to-create-from-tree",q);GE(a.clearcut,k,"createIssue-fromTree")}w6c(a.expansion,b.ancestorChain.parentChain,500);k=a.draftRows;q=d;b.issueId=q;for(var v=l(k.draftRows.values()),A=v.next();!A.done;A=v.next()){A=l(A.value);for(var E=A.next();!E.done;E=A.next())E=E.value,E.afterDraftId===b.id&&(E.afterIssueId=q)}k.changed$.next(k.draftRows);return h.return(d)}})},M6c=function(a,b,c){var d,e,f,h,k,q;return z(function(v){if(v.nextAddress==1)return d=b.ancestorChain.parentNodeId,f=(e=
b.afterIssueId)!=null?e:b.afterDraftId,f===void 0||f==="-1"?v.jumpTo(2):B(v,s6c(a.draftRows,f),2);if(v.nextAddress!=4)return B(v,a.issueRelationshipsFridge.assignParentToIssues(d,[{issueId:c,afterIssueId:b.afterIssueId}]),4);h=v.yieldResult;k=h.errors;((q=k)==null?0:q.length)&&a.butterBar.showWarning("Could not create issue relationship. Error: "+JSON.stringify(k));a.draftRows.remove(b);Lf(v)})},G6c=function(a,b,c){c=c===void 0?0:c;return Uf([a.rootIssueId].concat(p(b.keys())).map(function(d){return a.refetchingAll$.pipe(eg(function(e){return!e}),
xg(function(){return xxc(a.issueRelationshipsFridge,d)}))})).pipe(xg(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 Nf(e);d=N6c(a,e,c);d=new Map(d.map(function(h){return[h,a.defaultExpandedChildren]}));return G6c(a,d,c+1).pipe(C(function(h){var k=new Map(e);h=l(h.entries());for(var q=h.next();!q.done;q=h.next()){var v=l(q.value);q=v.next().value;v=v.next().value;k.set(q,v)}return k}))}))},N6c=function(a,
b,c){var d=[];a=[{id:a.rootIssueId,level:-1}];for(var e={};a.length>0;e={current$jscomp$45:void 0})if(e.current$jscomp$45=a.pop(),e.current$jscomp$45.level===c&&d.push(e.current$jscomp$45.id),!(e.current$jscomp$45.level>c)){var f=void 0,h=void 0,k=(h=(f=b.get(e.current$jscomp$45.id))==null?void 0:f.relatedChildren)!=null?h:[];a.push.apply(a,p(k.map(function(q){return function(v){return{id:v.targetIssueId,level:q.current$jscomp$45.level+1}}}(e))))}return d},J6c=function(a,b){for(var c=[],d=[a.ROOT_ROW],
e={};d.length>0;e={parentRow$jscomp$1:void 0,childrenLevel:void 0})if(e.parentRow$jscomp$1=d.pop(),e.parentRow$jscomp$1.type==="load-more-children"||e.parentRow$jscomp$1.type==="draft-issue")c.push(e.parentRow$jscomp$1);else{e.parentRow$jscomp$1.id!==a.rootIssueId&&c.push(e.parentRow$jscomp$1);var f=void 0,h=void 0,k=(h=(f=b.get(e.parentRow$jscomp$1.id))==null?void 0:f.relatedChildren)!=null?h:[];f=k.slice(0,e.parentRow$jscomp$1.expandedCount);e.childrenLevel=e.parentRow$jscomp$1.level+1;e.parentRow$jscomp$1.expandedCount&&
f.length<k.length&&(h=q6c(e.parentRow$jscomp$1.ancestorChain,"load-more-children"),d.push({type:"load-more-children",id:h.hash(),level:e.childrenLevel,parentIssue$:e.parentRow$jscomp$1.issue$,ancestorChain:h,truncatedSiblingCount:k.length-f.length}));k=f.map(function(q){return function(v){var A=q6c(q.parentRow$jscomp$1.ancestorChain,v.targetIssueId);return{type:"data",id:v.targetIssueId,level:q.childrenLevel,hasChildren$:a.issueRelationshipsFridge.watch(v.targetIssueId).pipe(C(bIa)),ancestorChain:A,
expandedCount:O6c(a,A,q.childrenLevel,b),issue$:a.issueFullFridge.watch(v.targetIssueId),isEditMode:!1,issuePermissions$:a.permissionsFridge.watch(ln(v.targetIssueId)).pipe(C(function(E){return E!=null?E:oMc}),wg(oMc))}}}(e));d.push.apply(d,p(P6c(a,k,e.parentRow$jscomp$1.ancestorChain).reverse()))}return c},P6c=function(a,b,c){var d=[].concat(p(b));a=a.draftRows.get(c);a=l(a);var e=a.next();for(c={};!e.done;c={draft$jscomp$8:void 0},e=a.next())c.draft$jscomp$8=e.value,b.some(function(f){return function(h){return h.id===
f.draft$jscomp$8.issueId}}(c))||(e=d.findIndex(function(f){return function(h){return h.id===f.draft$jscomp$8.afterDraftId||h.id===f.draft$jscomp$8.afterIssueId}}(c)),d.splice(e===-1?d.length:e+1,0,c.draft$jscomp$8));return d},O6c=function(a,b,c,d){var e=b.nodeId;b=v6c(a.expansion,b);if(b!==void 0)return b;if(c<a.defaultExpansionLevel){var f,h;return Math.min(a.defaultExpandedChildren,(h=(f=d.get(e))==null?void 0:f.relatedChildren.length)!=null?h:0)}return 0};
zX.prototype.assignParentToIssues=function(a,b){var c=this,d,e,f,h;return z(function(k){if(k.nextAddress==1)return b.length===0?k.return():B(k,c.issueRelationshipsFridge.assignParentToIssues(a,b.map(function(q){return{issueId:q,afterIssueId:"-1"}})),2);d=k.yieldResult;e=d.notAdded;f=d.errors;if(e.length)return c.butterBar.showWarning("Could not add "+e+" as child of b/"+a+". "+((h=f)==null?void 0:h.map(function(q){return Ro(q)}))),k.return();Lf(k)})};
var H6c=function(a,b){for(var c=new Set,d=l(b.keys()),e=d.next();!e.done;e=d.next())c.add(e.value);b=l(b.values());for(d=b.next();!d.done;d=b.next())for(d=d.value.relatedChildren.map(function(f){return f.targetIssueId}),d=l(d),e=d.next();!e.done;e=d.next())c.add(e.value);return Uf([].concat(p(c)).map(function(f){return a.issueFullFridge.watch(f)})).pipe(C(function(f){return f.filter(Qj)}))},I6c=function(a,b,c,d){function e(q){if(!q)return!1;var v=f.get(q),A=h.get(q);if(!v||v.relatedChildren.length===
0)return A;var E=v.relatedChildren.filter(function(H){return e(H.targetIssueId)});k+=v.relatedChildren.length-E.length;f.set(q,Object.assign({},v,{relatedChildren:E}));return E.length!==0||A}var f=new Map(b.entries()),h=new Map(d.map(function(q,v,A){return[q.issueId,Eab(c,v,A)]})),k=0;e(a.rootIssueId);a.hiddenRowCount$.next(k);return f},AX=function(){this.analytics=r(RE);this.butterBar=r(GJ);this.issueFullFridge=r(TE);this.issuePicker=r(dR);this.issueRelationshipsFridge=r(jF);this.paths=r(oN);this.router=
r(vC);this.issueCreationService=r(yX);this.clearcut=r(FE);this.refreshMonitor=r(gE);this.permissionsFridge=r(DF)};AX.prototype.create=function(a,b,c,d){b=b===void 0?new IA:b;return new zX(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)};AX.\u0275fac=function(a){return new (a||AX)};AX.\u0275prov=Cd({token:AX,factory:AX.\u0275fac,providedIn:"root"});var BX=function(a,b,c,d){var e=this;this.rootElement=a;this.rows=b;this.ngZone=c;this.rowSelectionModel=d;this.onLongHover$=new tg;this.onRowsMoved$=new tg;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=Cmc(function(f,h){if(e.activeDrag){var k=f||0,q=h.getBoundingClientRect();f=q.height;k-=q.top;f=Vkb(k<=f*.25?
"top":k>=f*.75?"bottom":"middle",h);h=f.position;f=f.rowElement;switch(h){case "current":e.placeholder.style.display="block";e.insertionBar.style.display="none";e.placeholder.style.left=f.offsetLeft+"px";e.placeholder.style.top=f.offsetTop+"px";e.placeholder.style.height=f.offsetHeight+"px";break;case "before":case "after":var v=(k=(v=f.querySelector(".title-location"))==null?void 0:v.getBoundingClientRect().left)?k-f.getBoundingClientRect().left:0;v=f.offsetLeft+v;k=h==="after"?f.offsetTop+f.offsetHeight:
f.offsetTop;q=f.getBoundingClientRect().width;e.insertionBar.style.display="block";e.placeholder.style.display="none";e.insertionBar.style.left=v+"px";e.insertionBar.style.top=k-1+"px";e.insertionBar.style.width=q-v+"px";break;case "none":e.placeholder.style.display="none",e.insertionBar.style.display="none"}e.currentReorderingGuide={rowElement:f,position:h};Q6c(e,f,h)}},10);this.ngZone.runOutsideAngular(function(){a.addEventListener("dragover",function(f){var h,k=(h=f.target)==null?void 0:h.closest("tr");
if(k&&(e.onDragOver(f.clientY,k),k.classList.contains("dragging")||k.classList.contains("nodrop")))return!0;var q;if(((q=e.currentReorderingGuide)==null?void 0:q.position)==="none")return!0;f.preventDefault();return!1});a.addEventListener("dragend",function(){R6c(e)});a.addEventListener("drop",function(){e.reorder(e.currentReorderingGuide,S6c(e.rowSelectionModel),"mouse",4);R6c(e)})})};
BX.prototype.handleDragStart=function(a){var b=this;this.activeDrag=!0;var c=a.target.closest("tr");this.rowSelectionModel.select(Wkb(c));T6c(this.rowSelectionModel);U6c(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 V6c=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)},W6c=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)}};
BX.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)}};
BX.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"?V6c(this,a):(b=c&&b.row.level<Ukb(c)?{position:"before",rowElement:c}:{position:"after",rowElement:b.element},this.reorder(b,[a.row.ancestorChain],"keyboard",1))}};
BX.prototype.onKeydown=function(a){if(a.ctrlKey){var b,c=(b=a.target)==null?void 0:b.closest("tr");if(c){var d=Wkb(c);if(b=this.rows.toArray().find(function(e){return e.row.ancestorChain.equals(d)}))switch(a.key){case "ArrowLeft":V6c(this,b);break;case "ArrowRight":W6c(this,b);break;case "ArrowUp":this.moveUp(b);break;case "ArrowDown":this.moveDown(b)}}}};
BX.prototype.reorder=function(a,b,c,d){var e=this;if(a){var f=Wkb(a.rowElement),h=void 0,k=f;switch(a.position){case "current":k=f;h={parentId:f.nodeId};break;case "before":case "after":k=f.parentChain,h={parentId:f.parentNodeId,position:{issueId:f.nodeId,position:a.position}}}this.ngZone.run(function(){b.length&&h&&e.onRowsMoved$.next({movedRows:b,insertAt:h,parentAncestorChain:k,origin:c,actionMessage:Tkb(d)})})}};
var R6c=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},Q6c=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 Wkb(b).equals(e.row.ancestorChain)});d&&(a.ngZone.run(function(){a.onLongHover$.next(d)}),a.longHoveredRow.emitted=!0)}},U6c=function(a){var b;
(b=a.updatingNoDropRows)==null||b.unsubscribe();a.updatingNoDropRows=a.rows.changes.pipe(wg(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 CX=function(){Z.call(this);var a=this;this.analytics=r(RE);this.dragStarted$=new tg;this.onRowsMoved$=new tg;dg(this.dragStarted$,this.onRowsMoved$).pipe(GJa(),yg(this.destroyed$)).subscribe(function(b){var c=b[b.length-1].timestamp-b[0].timestamp;b=sj(b.map(function(d){return d.event.origin}));b=b.length===1?b[0]:"mixed";a.analytics.trackEvent("editIssue","reorderChildren",b);Twc("reorderChildren",c,b)})};Y(CX,Z);CX.\u0275dir=Z.\u0275dir;CX.\u0275fac=function(a){return new (a||CX)};
CX.\u0275prov=Cd({token:CX,factory:CX.\u0275fac,providedIn:"root"});var DX=function(){this.changed$=new tg;this.selectedRowHashes=new Set;this.isSelectedObservableMap=new Map};DX.prototype.init=function(a){this.visibleRows=a};DX.prototype.isSelected=function(a){return this.selectedRowHashes.has(a.hash())};var Llb=function(a,b){var c=b.hash(),d,e=(d=a.isSelectedObservableMap.get(c))!=null?d:a.changed$.pipe(wg(a.selectedRowHashes),C(function(f){return f.has(b.hash())}),og(),ug({refCount:!0,bufferSize:1}));a.isSelectedObservableMap.set(c,e);return e};
DX.prototype.select=function(a){this.selectedRowHashes.add(a.hash());this.changed$.next(this.selectedRowHashes)};DX.prototype.clear=function(){this.selectedRowHashes.clear();this.changed$.next(this.selectedRowHashes)};
var T6c=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=Or(e.value);for(var f=l(b),h=f.next();!h.done;h=f.next())h=h.value,r6c(e,h)&&(a.selectedRowHashes.add(h.hash()),c=!0)}c&&a.changed$.next(a.selectedRowHashes)},S6c=function(a){var b=a.visibleRows.toArray().map(function(f){return f.row});b=new Map(b.filter(function(f){return f.type==="data"}).map(function(f){return[f.ancestorChain.hash(),
f]}));var c=new Set([].concat(p(a.selectedRowHashes.values())).map(function(f){return Or(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};
nd.Object.defineProperties(DX.prototype,{selectedRows:{configurable:!0,enumerable:!0,get:function(){return[].concat(p(this.selectedRowHashes)).map(function(a){return Or(a)})}},selectedCount:{configurable:!0,enumerable:!0,get:function(){return this.selectedRowHashes.size}}});var X6c=function(){return["active-indicator","load-more-children"]},wlb=function(){return[]},Y6c=Dq.listIssues.makeHref,Z6c={type:"data",id:"",issue$:Bv,hasChildren$:Bv,ancestorChain:new wX([]),level:0,expandedCount:0,isEditMode:!1,issuePermissions$:Bv},EX=function(){Z.call(this);var a=this;this.issueRelationshipsFridge=r(jF);this.router=r(vC);this.butterBar=r(GJ);this.analytics=r(RE);this.issueArchiveService=r(vX);this.ngZone=r(Ph);this.elementRef=r(Te);this.domSafe=r(UK);this.reorderingSessionTracker=
r(CX);this.cdr=r(NE);this.relationsTableModelFactory=r(AX);this.liveAnnouncer=r(Aw);this.clearcut=r(FE);this.paths=r(oN);this.checkBeforeExit=r(UR);this.activeSession=r(Bs);this.enableRenameFeature=OA(this.activeSession,"enableRenameChildBugsInDependenciesTab");this.IssueFieldType=Mnc;this.defaultExpansionLevel=1;this.internalFilters=new IA;this.isClosed=awa;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 DX;this.hasLogged=!1;this.correctedDisplayedRows=new gh;this.TITLE_FIXED_OFFSET_PX=42;this.EDITABLE_TITLE_OFFSET_PX=8;this.rowDirectiveMap=new Map;this.getRowIndex=function(b){var c;return((c=hp(a.rows$))!=null?c:[]).findIndex(function(d){return Skb(d,b)})};this.showError=function(b){return function(c){a.butterBar.showWarning(b+
". "+(Qo(c)?Ro(c):c))}};this.dataColumns=[].concat(p(I0c));this.tableColumns=this.getRenderableColumns(this.dataColumns)};Y(EX,Z);EX.\u0275dir=Z.\u0275dir;
EX.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(VR(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$=hka([this.tableModel.rows$,Nf([Z6c])],ag).pipe(Wf(1),ug({refCount:!0,bufferSize:1}));var b=this.rows$.pipe(xg(function(c){return Uf(c.filter(function(d){return d.type===
"data"}).map(function(d){return d.issue$}))}),kg(0,kp));this.subscriptions.add(b.subscribe(function(c){a.cdr.detectChanges();$6c(a,c)}));this.rowReorderingModel=new BX(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"?Elb(a,d):d.type==="data"&&(c=a.tableModel.expansion,d=d.ancestorChain,v6c(c,d)||w6c(c,d,10))}));this.subscriptions.add(this.rowReorderingModel.onRowsMoved$.subscribe(function(c){var d;
return z(function(e){if(e.nextAddress==1)return Dxc(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")),x6c(a.tableModel.expansion,c.parentAncestorChain,c.movedRows),B(e,Rf(a.correctedDisplayedRows.changes.pipe(C(function(f){return f.find(function(h){return h.row.type==="data"&&h.row.ancestorChain.nodeId===
c.movedRows[0].nodeId&&h.row.ancestorChain.parentNodeId===c.insertAt.parentId})}),eg(Boolean),fg(6E4))),2);d=e.yieldResult;d.focus();Lf(e)})}));this.subscriptions.add(this.rowReorderingModel.onRowsMoved$.subscribe(function(c){a.reorderingSessionTracker.onRowsMoved$.next(c)}))};
EX.prototype.getRenderableColumns=function(a){var b=[];this.options.showActiveIndicator&&b.push("active-indicator");this.options.enableSelection&&b.push("selection");this.options.enableDragging&&b.push("drag-handle");a=a.map(function(c){return c.type});b.push.apply(b,p(a));this.options.showMenu&&b.push("menu");return b};
var $6c=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;Gwc(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",Gwc(a.clearcut,"view-relations-"+c),a.analytics.trackEvent("editIssue","view-relations","ratio-estimated",b),a.analytics.trackEvent("editIssue","view-relations",c))}};
EX.prototype.ngAfterViewInit=function(){var a=this;this.selectionModel.init(this.displayedRows);Uf([this.rows$,this.displayedRows.changes]).pipe(yg(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);kh(a.correctedDisplayedRows)});this.focusManager=Lw(new $Sc(this.correctedDisplayedRows,
Skb))};EX.prototype.toggleExpansion=function(a){w6c(this.tableModel.expansion,a.ancestorChain,a.expandedCount?0:10)};EX.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=Dq.viewIssue.makeHref(b.id),kn(a)?this.domSafe.openInNewTab(b):a&&a.shiftKey?Jq(this.domSafe,b):Mr(this.router,b))};
var Elb=function(a,b){var c;return z(function(d){if(d.nextAddress==1)return c=a.getRowIndex(b),w6c(a.tableModel.expansion,b.ancestorChain.parentChain,500),B(d,Bq(0),2);a.focusManager.setActiveItem(c);Lf(d)})},zlb=function(a,b){return[{type:"action",label:"Continue on the create issue page",action:function(c){return a7c(a,c,b)},title:"Continue on the create issue page",icon:"arrow-forward"}]};
EX.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(C(function(d){d=!!d.writer;return[{type:"action",label:"Go to issue",action:function(e){b.navigateToIssue(e,a)},title:"Go to issue",icon:"arrow-forward"}].concat(p(b.enableRenameFeature&&d?[c]:[]),[{type:"action",label:"View Children",
disabled:!hp(a.hasChildren$),action:function(){var e=Y6c({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(){xnb(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(){b7c(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(){W6c(b.rowReorderingModel,
b.rowDirectiveMap.get(a.ancestorChain.hash()))},title:"Indent",icon:"arrow-right",hintText:"shift+ctrl+right"},{type:"action",label:"Unindent",action:function(){V6c(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(){c7c(b,a)},title:"Archive issue",
icon:"archive_24px"}])}))};EX.prototype.saveDraft=function(a){var b=this,c,d;return z(function(e){if(e.nextAddress==1){if(!a.title)return e.return();b.tableModel.saveDraft(a);b.focusManager.setActiveItem(b.getRowIndex(a));return B(e,Rf(b.displayedRows.changes.pipe(C(function(f){return f.find(function(h){return h.row.type==="data"&&h.row.id===a.issueId})}),eg(Boolean),fg(6E4))),2)}c=e.yieldResult;Skb((d=b.focusManager.activeItem)==null?void 0:d.row,a)&&b.focusManager.setActiveItem(c);Lf(e)})};
var Hlb=function(a,b){if(!b.saving){a.tableModel.draftRows.remove(b);var c;Skb((c=a.focusManager.activeItem)==null?void 0:c.row,b)&&a.focusManager.setPreviousItemActive()}},xnb=function(a,b){K6c(a.tableModel,b==null?void 0:b.ancestorChain,{afterIssueId:"-1"})},b7c=function(a,b){b.type==="data"?K6c(a.tableModel,b.ancestorChain.parentChain,{afterIssueId:b.id}):K6c(a.tableModel,b.ancestorChain.parentChain,{afterDraftId:b.id})};EX.prototype.addExistingChild=function(a){this.tableModel.addExistingChild(a)};
var d7c=function(a){return a.tableColumns.map(function(b){return b==="TITLE"?"editable-title":b==="menu"?"save":b==="ISSUE_ID"?"empty-id":b})};EX.prototype.handleDragStart=function(a){this.reorderingSessionTracker.dragStarted$.next({origin:"mouse"});this.rowReorderingModel.handleDragStart(a)};
EX.prototype.onRowKeydown=function(a,b){var c=this,d;return z(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"&&(Elb(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?B(e,c.tableModel.isOneLineCreationSupported(),4):e.return();case 4:d=e.yieldResult;if(!d)return e.return();a.type===
"data"&&(b.shiftKey?xnb(c,a):b7c(c,a));a.type==="draft-issue"&&a.saving&&b7c(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);Lf(e)}})};
var a7c=function(a,b,c){var d,e,f,h,k,q,v,A;return z(function(E){if(E.nextAddress==1)return b.defaultPrevented||b.type==="mouseup"&&b instanceof MouseEvent&&b.button!==1?E.return():B(E,Rf(c.issue$),2);d=E.yieldResult;v={};A=a.paths.createIssue((v.component=String((e=d)==null?void 0:e.snapshot[0].componentId),v.parentIssueId=c.ancestorChain.parentChain.nodeId,v.redirectUrl=Dq.issueDependencies.makeHref(a.rootIssueId),v.afterIssueId=c.afterIssueId,v.title=c.title,v.priority=(k=(f=d)==null?void 0:f.snapshot[0].priority)!=
null?k:void 0,v.type=(q=(h=d)==null?void 0:h.snapshot[0].type)!=null?q:void 0,v));if(kn(b))return Hlb(a,c),a.domSafe.openInNewTab(A),E.return();if(b&&b.shiftKey)return Hlb(a,c),Jq(a.domSafe,A),E.return();Mr(a.router,A);Lf(E)})},c7c=function(a,b){var c,d;z(function(e){if(e.nextAddress==1)return a.analytics.trackEvent("editIssue","update","archive-child-issue"),c=a.getRowIndex(b),a.issueArchiveService.archive(b.id),B(e,Rf(a.rows$.pipe(C(function(f){return!f.find(function(h){return h.type==="data"&&
h.id===b.id})}),eg(Boolean),fg(6E4))),2);Skb((d=a.focusManager.activeItem)==null?void 0:d.row,b)&&a.focusManager.setActiveItem(c);Lf(e)})};
EX.prototype.unlinkFromParent=function(a){var b=this,c,d;return z(function(e){c=a.ancestorChain.nodeId;d=a.ancestorChain.parentNodeId;b.analytics.trackEvent("editIssue","update","unlink-child-issue");return B(e,b.issueRelationshipsFridge.unlinkFromParent(c,d).then(function(){Kq(b.butterBar,"Unlinked successfully.")}).catch(b.showError("Failed to unlink child "+c+" from parent "+d)),0)})};EX.prototype.isOpen=function(a){return xl(a)};
EX.prototype.getAssigneeString=function(a){var b,c;return EQa(zj(a==null?void 0:(b=a.snapshot)==null?void 0:(c=b[0])==null?void 0:c.assigneeUser)||void 0)};
nd.Object.defineProperties(EX.prototype,{filters:{configurable:!0,enumerable:!0,set:function(a){this.internalFilters.reset(a!=null?a:[])}},hiddenRowCount$:{configurable:!0,enumerable:!0,get:function(){return this.tableModel.hiddenRowCount$}},tableColumnsInput:{configurable:!0,enumerable:!0,set:function(a){this.dataColumns=[].concat(p(a));this.tableColumns=this.getRenderableColumns(this.dataColumns)}}});EX.\u0275fac=function(a){return new (a||EX)};
EX.\u0275cmp=y({type:EX,selectors:[["b-issue-relations-table"]],viewQuery:function(a,b){a&1&&hh(ZO,5);if(a&2){var c;lh(c=mh())&&(b.displayedRows=c)}},inputs:{rootIssueId:"rootIssueId",defaultExpansionLevel:"defaultExpansionLevel",saveExpansionAtKey:"saveExpansionAtKey",filters:"filters",tableColumnsInput:[0,"tableColumns","tableColumnsInput"],options:"options"},standalone:!1,features:[Fh([NE]),Bg],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&&(J(0,"table",3),Wg(1,4),D(2,Xkb,1,0,"th",5)(3,Ykb,2,0,"td",6),Xg(),Wg(4,7),D(5,Zkb,1,0,"th",5)(6,$kb,3,0,"td",8),Xg(),Wg(7,9),D(8,alb,
2,0,"th",5)(9,blb,2,1,"td",10),Xg(),Wg(10,11),D(11,clb,2,0,"th",5)(12,dlb,2,0,"td",10),Xg(),Wg(13,9),D(14,elb,2,0,"th",5)(15,flb,4,9,"td",10),Xg(),Wg(16,9),D(17,glb,2,0,"th",5)(18,hlb,3,3,"td",10),Xg(),Wg(19,9),D(20,klb,3,1,"th",5)(21,qlb,3,1,"td",10),Xg(),Wg(22,9),D(23,rlb,2,0,"th",5)(24,slb,3,4,"td",10),Xg(),Wg(25,9),D(26,tlb,2,0,"th",5)(27,ulb,3,3,"td",10),Xg(),Wg(28,12),D(29,vlb,1,0,"th",5)(30,xlb,3,4,"td",10),Xg(),Wg(31,13),D(32,ylb,1,0,"th",5)(33,Dlb,5,1,"td",14),Xg(),Wg(34,15),D(35,Flb,6,7,
"td",16),Xg(),Wg(36,17),D(37,Glb,2,0,"th",5)(38,Ilb,7,6,"td",16),Xg(),F(39,Klb,1,1,"tr",18),D(40,Mlb,3,12,"tr",19)(41,Nlb,1,4,"tr",20)(42,Olb,1,2,"tr",21),K(),M(43,"div",22)(44,"div",23)(45,"div",24));a&2&&(I("dataSource",b.rows$)("trackBy",b.trackBy),x(7),I("matColumnDef",b.IssueFieldType.ISSUE_ID),x(6),I("matColumnDef",b.IssueFieldType.TITLE),x(3),I("matColumnDef",b.IssueFieldType.TYPE),x(3),I("matColumnDef",b.IssueFieldType.ASSIGNEE),x(3),I("matColumnDef",b.IssueFieldType.STATUS),x(3),I("matColumnDef",
b.IssueFieldType.TEAM),x(14),G(b.options.hideColumnHeaders?-1:39),x(),I("matRowDefColumns",b.tableColumns)("matRowDefWhen",b.isDataRow),x(),I("matRowDefColumns",Gh(15,X6c))("matRowDefWhen",b.isLoadMoreRow),x(),I("matRowDefColumns",d7c(b))("matRowDefWhen",b.isDraftRow))},dependencies:[sw,FC,cP,XP,KP,QP,MP,JP,SP,NP,PP,TP,VP,zG,xG,sS,WN,AG,ZP,bQ,cO,fO,cQ,eQ,NQ,wH,yN,ZO,cL,Tv],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 Rlb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Rlb,n);g=Rlb.prototype;g.getFilename=function(){return Rc(this,1)};g.setFilename=function(a){Qk(this,1,a)};g.getLineNumber=function(a){return Ju(this,2,a)};g.getChangeNumber=function(){return xk(this,3)};g.getChangeNumber_asLegacyNumberOrString=function(){return Um(this,3)};g.setChangeNumber=function(a){return Ek(this,3,a)};var Tlb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Tlb,n);var e7c=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,e7c.messageId)};Y(e7c,n);e7c.messageId="b.MentionSearchResult";var FX=function(){this.executor=r(QA)};FX.\u0275fac=function(a){return new (a||FX)};FX.\u0275prov=Cd({token:FX,factory:FX.\u0275fac,providedIn:"root"});var GX=function(){this.mentionsApi=r(FX);this.refreshMonitor=r(gE);this.analytics=r(RE)},f7c=function(a,b){var c=a.getLink(b);a.cachedId===b&&a.cachedEntry||(a.cachedId=b,a.cachedEntry=lvc(a.refreshMonitor,Yf(function(){return a.mentionsApi.executor.get({url:"action/issues/"+b+"/mentions",responseConstructor:e7c}).then(Ulb).then(function(d){return{mentions:d,link:c}}).catch(function(){return{link:c}})}).pipe(wg({link:c}))).pipe(ug({refCount:!0,bufferSize:1})));return a.cachedEntry};
GX.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"};GX.prototype.getLink=function(a){return"https://todo.corp.google.com/?issue="+a};GX.prototype.trackSqueegeeClick=function(){this.analytics.trackEvent("codeMentions","clickSqueegeeLink")};GX.\u0275fac=function(a){return new (a||GX)};GX.\u0275prov=Cd({token:GX,factory:GX.\u0275fac,providedIn:"root"});var IX=function(){var a=this;this.paramsService=r(CK);this.issueRelationshipsFridge=r(jF);this.issueFullFridge=r(TE);this.issueFridge=r(iE);this.codeMentions=r(GX);this.eventsForIssue=r(TD);this.activeSession=r(Bs);this.issueEnrichmentFridge=r(ZD);this.id$=this.paramsService.issueId$.pipe(eg(Qj),ng(1E3));this.issue$=this.id$.pipe(xg(function(b){return a.issueFullFridge.watch(b)}));this.issueEvents$=this.id$.pipe(xg(function(b){return a.eventsForIssue.watch(b)}),C(function(b){var c;return(c=b==null?
void 0:b.events)!=null?c:[]}));this.blockerIssueIds$=this.issue$.pipe(C(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockedByIssueId)!=null?c:[]}),og(gj));this.blockedIssueIds$=this.issue$.pipe(C(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockingIssueId)!=null?c:[]}),og(gj));this.parentIds$=this.issue$.pipe(C(function(b){var c;return(c=b==null?void 0:b.parentIssueIds)!=null?c:[]}),og(gj));this.childrenIds$=this.id$.pipe(xg(function(b){return a.issueRelationshipsFridge.watch(b)}),
C(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(C(function(b){var c;return(c=b==null?void 0:b.snapshot[0].duplicateIssueId)!=null?c:[]}),og(gj));this.blockersDualCount$=Uf([this.id$,this.blockerIssueIds$]).pipe(xg(function(b){var c=l(b);b=c.next().value;c=c.next().value;return HX(a,b,c,["BLOCKED_BY"])}),ug({bufferSize:1,refCount:!0}));this.countBlockersDisplay$=this.blockersDualCount$.pipe(C(Wlb),
ug({bufferSize:1,refCount:!0}));this.blockedDualCount$=Uf([this.id$,this.blockedIssueIds$]).pipe(xg(function(b){var c=l(b);b=c.next().value;c=c.next().value;return HX(a,b,c,["BLOCKING"])}),ug({bufferSize:1,refCount:!0}));this.countBlockedDisplay$=this.blockedDualCount$.pipe(C(Wlb),ug({bufferSize:1,refCount:!0}));this.childrenDualCount$=Uf([this.id$,this.childrenIds$]).pipe(xg(function(b){var c=l(b);b=c.next().value;c=c.next().value;return HX(a,b,c,["CHILDREN"])}),ug({bufferSize:1,refCount:!0}));this.countChildrenDisplay$=
this.childrenDualCount$.pipe(C(Wlb),ug({bufferSize:1,refCount:!0}));this.parentsDualCount$=Uf([this.id$,this.parentIds$]).pipe(xg(function(b){var c=l(b);b=c.next().value;c=c.next().value;return HX(a,b,c,["PARENT"])}),ug({bufferSize:1,refCount:!0}));this.countParentsDisplay$=this.parentsDualCount$.pipe(C(Wlb),ug({bufferSize:1,refCount:!0}));this.dependenciesDualCount$=Uf([this.id$,this.blockerIssueIds$,this.childrenIds$]).pipe(xg(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;
return HX(a,b,[].concat(p(c),p(d)),["CHILDREN","BLOCKED_BY"])}));this.countDependenciesDisplay$=this.dependenciesDualCount$.pipe(C(Wlb),ug({bufferSize:1,refCount:!0}));this.duplicatesDualCount$=Uf([this.id$,this.duplicateIssueIds$]).pipe(xg(function(b){var c=l(b);b=c.next().value;c=c.next().value;return HX(a,b,c,["DUPLICATE"])}),ug({bufferSize:1,refCount:!0}));this.countDuplicateDisplay$=this.duplicatesDualCount$.pipe(C(function(b){return b.total}),C(Xlb),ug({bufferSize:1,refCount:!0}));this.countResourcesDisplay$=
this.issue$.pipe(C(function(b){var c;return(c=b==null?void 0:b.relatedLinks)!=null?c:[]}),C(function(b){return a.activeSession.isInternalSession()?b:b.filter(function(c){return!PKa(c)})}),C(function(b){return Pr(b.length)}),C(Xlb),ug({bufferSize:1,refCount:!0}));this.countInsightsDisplay$=this.id$.pipe(xg(function(b){return a.issueEnrichmentFridge.watch(b)}),C(function(b){var c;b=((c=b==null?void 0:b.enrichments)!=null?c:[]).filter(function(d){return!!d.general});return Pr(b.length)}),C(Xlb),ug({bufferSize:1,
refCount:!0}));this.countTodosDisplay$=this.id$.pipe(eg(Qj),xg(function(b){return f7c(a.codeMentions,b)}),C(function(b){var c,d;return Pr((d=(c=b.mentions)==null?void 0:c.totalMentions)!=null?d:0)}),C(Xlb),ug({bufferSize:1,refCount:!0}));this.countCommentsDisplay$=this.issueEvents$.pipe(C(function(b){return Pr(b.filter(ul).length)}),C(Xlb),ug({bufferSize:1,refCount:!0}))},HX=function(a,b,c,d){d=d===void 0?[]:d;c=sj(c);if(!b||c.length===0)return Nf({open:{count:0,exact:!0},total:{count:0,exact:!0}});
d=d.map(function(e){return Ylb(b,e)}).filter(Qj).map(function(e){return"("+e+")"}).join(" OR ");return c.length>99&&d?a.issueFridge.watchMany({filter:d,pageSize:100}).pipe(C(function(e){e=e.results.filter(xl).filter(dwa).length;return{open:Pr(e),total:Pr(c.length)}})):Uf(c.map(function(e){return a.issueFullFridge.watch(e)})).pipe(C(function(e){return{open:Pr(e.filter(Qj).filter(xl).filter(dwa).length),total:Pr(e.filter(function(f){return!f||dwa(f)}).length)}}))};
IX.\u0275fac=function(a){return new (a||IX)};IX.\u0275prov=Cd({token:IX,factory:IX.\u0275fac,providedIn:"root"});var JX=function(){Z.call(this);var a=this;this.issueFullFridge=r(TE);this.butterBar=r(GJ);this.analytics=r(RE);this.refreshMonitor=r(gE);this.contextSensitiveRegistry=r(LK);this.issuePermissionService=r(OK);this.issuePicker=r(dR);this.errorHandler=r(aK);this.counts=r(IX);this.issueId$=this.contextSensitiveRegistry.getIssueId();this.issue$=this.issueId$.pipe(xg(function(b){return b?a.issueFullFridge.watch(b):Nf(void 0)}));this.filters=[];this.shouldResetFilters=new LE;this.tableColumns=[].concat(p(H0c));
this.initialSort={column:"STATUS",direction:"ASCENDING"};this.canEdit$=this.issuePermissionService.hasAclToEdit$;this.blockerIds$=this.issue$.pipe(C(function(b){return b==null?void 0:b.snapshot[0]}),C(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(xg(function(b){return b.length===0?Nf(0):a.counts.blockersDualCount$.pipe(C(function(c){return c.total.count}))}));this.showBlockersTable$=this.blockersCount$.pipe(C(function(b){return b>
0}),wg(!0));this.tableOptions={menu:{includeGoToIssueItem:!0},deEmphasizeClosedIssues:!0};this.getMenuItems=function(b){return[{type:"action",label:"Remove blocker",action:function(){g7c(a,b)},title:"Remove blocker",icon:"clear"}]};this.subscriptions.add(this.refreshMonitor.getObservable().pipe(Ag(this.blockerIds$)).subscribe(function(b){b=l(b);b.next();b=b.next().value;if(b!=null){b=l(b);for(var c=b.next();!c.done;c=b.next())a.issueFullFridge.poke(c.value)}}))};Y(JX,Z);JX.\u0275dir=Z.\u0275dir;
var fmb=function(a){var b;return z(function(c){if(c.nextAddress==1)return B(c,Rf(a.issueId$),2);b=c.yieldResult;if(b==null)return c.return();a.analytics.trackEvent("editIssue","update","add-blocker");return B(c,a.issuePicker.open({title:"Add Blockers of "+b,allowMultipleIds:!0,edgeType:"blocker"},function(d){h7c(a,b,d)}),0)})},h7c=function(a,b,c){z(function(d){return c.length===0?d.return():B(d,a.issueFullFridge.addBlockedBy(b,c).catch(function(e){cK(a.errorHandler,e)}),0)})},g7c=function(a,b){var c,
d;z(function(e){switch(e.nextAddress){case 1:return B(e,Rf(a.issueId$),2);case 2:c=e.yieldResult;if(c==null)return e.return();a.analytics.trackEvent("editIssue","update","remove-blocker");Gf(e,3);return B(e,a.issueFullFridge.removeBlockedBy(c,[b]),5);case 5:uu(e,0);break;case 3:d=Kf(e),a.butterBar.showWarning("Could not remove blocker "+b+". "+(Qo(d)?Ro(d):d)),Lf(e)}})};JX.\u0275fac=function(a){return new (a||JX)};
JX.\u0275cmp=y({type:JX,selectors:[["b-blockers-table"]],viewQuery:function(a,b){a&1&&hh(ZT,5);if(a&2){var c;lh(c=mh())&&(b.issuesTable=c.first)}},inputs:{filters:"filters"},outputs:{shouldResetFilters:"shouldResetFilters"},standalone:!1,features:[Bg],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&&(J(0,"div",1)(1,"h4",2)(2,"div",3),M(3,"mat-icon",4),K(),R(4),U(5,"async"),K(),F(6,$lb,1,
1,"ng-container"),U(7,"async"),K(),F(8,bmb,2,3),U(9,"async"),Mg(10,dmb,6,1,"div"),F(11,emb,4,2,"p",5),U(12,"async"),D(13,gmb,3,3,"ng-template",null,0,Lh));if(a&2){var c;x(4);T(" Blockers ",V(5,4,b.counts.countBlockersDisplay$)," ");x(2);G(V(7,6,b.showBlockersTable$)?6:-1);x(2);G(V(9,8,b.showBlockersTable$)?8:10);x(3);G((c=V(12,10,b.issuesTable==null?null:b.issuesTable.hiddenRowCount$))?11:-1,c)}},dependencies:[Sv,FC,zG,xG,AG,ZT,Tv],styles:["[_nghost-%COMP%] {\n      display: block;\n    }\n    b-issues-table[_ngcontent-%COMP%] {\n      display: block;\n      overflow-x: auto;\n    }"],
changeDetection:0});var LX=function(){Z.apply(this,arguments);this.routerEvents=r(QE);this.documentVisibility=r(KX);this.validNavigations=0;this.ignoringNextNav=!1;this.mostRecentlyMeasured="";this.tabWasHidden=!1};Y(LX,Z);LX.\u0275dir=Z.\u0275dir;
LX.prototype.install=function(){var a=this;OGa()&&(this.subscriptions.add(this.routerEvents.routeChangeStart.subscribe(function(){i7c(a)})),this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(function(){a.ignoringNextNav?a.ignoringNextNav=!1:a.validNavigations++})),this.subscriptions.add(this.routerEvents.routeUpdate.subscribe(function(){i7c(a);a.ignoringNextNav?a.ignoringNextNav=!1:a.validNavigations++})),this.subscriptions.add(this.documentVisibility.visibilityState$.pipe(eg(function(b){return b!==
"visible"}),mg(1)).subscribe(function(){a.tabWasHidden=!0})))};
var i7c=function(a){a.ignoringNextNav||(mvc("appNavStart"),a.mostRecentlyMeasured="")},j7c=function(a,b){mvc(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)&&OGa())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)}}};
LX.\u0275fac=function(){var a;return function(b){return(a||(a=Re(LX)))(b||LX)}}();LX.\u0275prov=Cd({token:LX,factory:LX.\u0275fac,providedIn:"root"});var KX=function(){var a=this;this.window=r(HJ);this.visibilityState$=$f(this.window.document,"visibilityChange").pipe(wg(void 0),C(function(){return a.currentVisibility}))};nd.Object.defineProperties(KX.prototype,{currentVisibility:{configurable:!0,enumerable:!0,get:function(){return this.window.document.visibilityState}}});
KX.\u0275fac=function(a){return new (a||KX)};KX.\u0275prov=Cd({token:KX,factory:KX.\u0275fac,providedIn:"root"});var k7c=function(){this.imageUrls=r(YM);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};k7c.\u0275fac=function(a){return new (a||k7c)};
k7c.\u0275cmp=y({type:k7c,selectors:[["b-issue-dependencies-onboarding-dialog"]],standalone:!1,decls:16,vars:4,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"flex-kids-x","centered-inside"],["width","601","height","480","aria-hidden","true","alt","",1,"light-only",3,"src"],["width","601","height","480","aria-hidden","true","alt","",1,"dark-only",3,"src"],[1,"centered"],["href","https://developers.google.com/issue-tracker/concepts/parent-child-relationships","target","_blank",1,"nowrap"],
["mat-dialog-actions",""],"type button mat-flat-button  color primary matDialogClose  cdkFocusInitial ".split(" ")],template:function(a,b){a&1&&(J(0,"h1",0),R(1,"About Dependencies"),K(),J(2,"div",1)(3,"div",2),M(4,"img",3)(5,"img",3)(6,"img",4)(7,"img",4),K(),J(8,"article")(9,"p",5),R(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. "),J(11,"a",6),R(12,"Learn more"),K()()()(),J(13,
"div",7)(14,"button",8),R(15,"Ok"),K()());a&2&&(x(4),I("src",b.EMPTY_CHILD_LIGHT,hf),x(),I("src",b.EMPTY_BLOCKER_LIGHT,hf),x(),I("src",b.EMPTY_CHILD_DARK,hf),x(),I("src",b.EMPTY_BLOCKER_DARK,hf))},dependencies:[oG,Jx,SJ,UJ,WJ,VJ],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 MX=function(){Z.call(this);var a=this;this.issueFullFridge=r(TE);this.butterBar=r(GJ);this.analytics=r(RE);this.refreshMonitor=r(gE);this.issueRelationshipsFridge=r(jF);this.ROUTES=Dq;this.parentIssueIds$=new Kn([]);this.filters=[];this.tableColumns=[].concat(p(H0c));this.tableOptions={menu:{includeGoToIssueItem:!0},deEmphasizeClosedIssues:!0};this.getMenuItems=function(b){return[{type:"action",label:"Unlink parent",action:function(){return l7c(a,b)},title:"Unlink parent",icon:"link"}]};this.showError=
function(b){return function(c){a.butterBar.showWarning(b+". "+(Qo(c)?Ro(c):c))}};this.subscriptions.add(this.refreshMonitor.getObservable().subscribe(function(){for(var b=l(a.parentIssueIds$.value),c=b.next();!c.done;c=b.next())a.issueFullFridge.poke(c.value)}))};Y(MX,Z);MX.\u0275dir=Z.\u0275dir;MX.prototype.ngOnInit=function(){};
var l7c=function(a,b){var c;return z(function(d){a.analytics.trackEvent("editIssue","update","remove-parent");c=a.issueId;return B(d,a.issueRelationshipsFridge.unlinkFromParent(c,b).catch(a.showError("Failed to unlink child "+c+" from parent "+b)),0)})};nd.Object.defineProperties(MX.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$}}});
MX.\u0275fac=function(a){return new (a||MX)};
MX.\u0275cmp=y({type:MX,selectors:[["b-parents-table"]],viewQuery:function(a,b){a&1&&hh(ZT,5);if(a&2){var c;lh(c=mh())&&(b.issuesTable=c.first)}},inputs:{parentIds:"parentIds",filters:"filters",issueId:"issueId"},standalone:!1,features:[Bg],decls:2,vars:3,consts:[[3,"issueIds","tableColumns","options","filters","issueUrlFactory","menuItemFactory"]],template:function(a,b){a&1&&(F(0,hmb,1,6,"b-issues-table",0),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.parentIssueIds$))?0:-1,c)}},dependencies:[ZT,Tv],
encapsulation:2,changeDetection:0});var NX=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 LE;this.onConfirm=new LE;this.onCancel=new LE;this.internalSelectedOptions=new IA};NX.prototype.confirm=function(a){this.onConfirm.emit(new Set(this.internalSelectedOptions));a.close()};NX.prototype.cancel=function(a){this.onCancel.emit();a.close()};
nd.Object.defineProperties(NX.prototype,{selectedOptions:{configurable:!0,enumerable:!0,set:function(a){this.internalSelectedOptions.reset(a)}}});NX.\u0275fac=function(a){return new (a||NX)};
NX.\u0275cmp=y({type:NX,selectors:[["select-menu"]],inputs:{buttonSize:"buttonSize",buttonAriaLabel:"buttonAriaLabel",buttonSvgIcon:"buttonSvgIcon",buttonTooltip:"buttonTooltip",showActiveState:"showActiveState",overlayTitle:"overlayTitle",options:"options",selectedOptions:"selectedOptions",confirmButtonLabel:"confirmButtonLabel",cancelButtonLabel:"cancelButtonLabel",showActionButtons:"showActionButtons"},outputs:{onChange:"onChange",onConfirm:"onConfirm",onCancel:"onCancel"},standalone:!1,decls:12,
vars:14,consts:[["trigger","onedevPopupPanelTrigger"],["optionsPanel","onedevPopupPanel"],["type","button","mat-icon-button","","onedevPopupPanelTrigger","","aria-haspopup","true",3,"click","onedevPopupPanelTriggerFor","color","matTooltip"],[3,"svgIcon"],["role","region","className","select-menu-popup"],[1,"padded-s","flex-kids-y"],[1,"title","margin-s-x","padded-s"],[1,"flex-kids-x"],[1,"badge",3,"title"],[1,"option","grow-1","flex-kids-x","align-items-center","padded-x","padded-s-y","gap"],[3,"change",
"checked"],[1,"flex-kids-x","justify-flex-end","padded-s","gap-s"],["type","button","mat-stroked-button","",1,"cancel",3,"click"],["type","button","mat-flat-button","","color","primary",1,"confirm",3,"click"]],template:function(a,b){if(a&1){var c=t();J(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 w()});M(3,"mat-icon",3);F(4,jmb,2,3);K();J(5,"onedev-popup-panel",4,1)(7,"div",5);F(8,kmb,2,1,"h1",6);Pg(9,nmb,7,5,"div",7,Og);F(11,
omb,6,2);K()()}a&2&&(a=Q(6),uh("large",b.buttonSize==="large")("small",b.buttonSize==="small"),I("onedevPopupPanelTriggerFor",a)("color",b.showActiveState&&V(2,12,b.internalSelectedOptions.size$)?"primary":null)("matTooltip",b.buttonTooltip),Lg("aria-label",b.buttonAriaLabel),x(3),I("svgIcon",b.buttonSvgIcon),x(),G(b.showActiveState?4:-1),x(4),G(b.overlayTitle?8:-1),x(),Qg(b.options),x(2),G(b.showActionButtons?11:-1))},dependencies:[FC,oG,Jx,Kx,gM,hM,pL,zG,xG,ZN,$N,Tv],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 m7c=function(){return[]},wmb=function(a){return{filteredCount:a}},OX=function(){Z.call(this);var a=this;this.brain=r(MK);this.issuePicker=r(dR);this.issueRelationshipsFridge=r(jF);this.issueFullFridge=r(TE);this.router=r(vC);this.routePerformance=r(LX);this.element=r(Te);this.analytics=r(RE);this.issuePermissionService=r(OK);this.activeSession=r(Bs);this.counts=r(IX);this.matDialog=r(RJ);this.butterBar=r(GJ);this.makeIlpUrlForParentIssue=Aab;this.recallFilters=ova("deps-filters");this.saveFilters=
hl("deps-filters");this.isThinking$=Uf([this.issueFullFridge.saving$,this.issueRelationshipsFridge.saving$]).pipe(C(function(b){return b.some(Boolean)}));this.issueId$=this.brain.id$.pipe(eg(Qj),C(FQa));this.issue$=this.brain.issueJs$.pipe(eg(Qj));this.parentIds$=this.issue$.pipe(C(function(b){var c;return(c=b==null?void 0:b.parentIssueIds)!=null?c:[]}));this.parentIssues$=this.parentIds$.pipe(xg(function(b){return a.issueFullFridge.watchSet(b)}));this.parentsCount$=this.parentIssues$.pipe(C(function(b){return b.filter(dwa).length}));
this.childrenIds$=this.issueId$.pipe(xg(function(b){return a.issueRelationshipsFridge.watch(b)}),C(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(C(function(b){var c,d;return((c=vl(b))==null?void 0:(d=c.effort)==null?void 0:d.totalOpen)||0}));this.totalDaysComplete$=this.issue$.pipe(C(function(b){var c,d;return((c=vl(b))==null?void 0:(d=c.effort)==null?void 0:d.totalComplete)||0}));this.unarchivedChildIssueCount$=
this.childrenIds$.pipe(C(function(b){return b.length}));this.isTotalEstimatesEnabled=OA(this.activeSession,"enableAggregationRules");this.isNonPublicSession=this.activeSession.isNonPublicSession();this.isInternalSession=this.activeSession.isInternalSession();this.enableRollupStatsUi=OA(this.activeSession,"enableRollupStatsUi");this.totalDaysCount$=Uf([this.totalDaysOpen$,this.totalDaysComplete$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b+c}));this.totalDaysDisplayPercent$=
tnb(this.totalDaysComplete$,this.totalDaysCount$);this.progressHovercardContent$=Uf([this.totalDaysComplete$,this.totalDaysOpen$,this.totalDaysDisplayPercent$]).pipe(C(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;return unb(Math.round(b*100)/100)+" completed | "+unb(Math.round(d*100)/100)+" open | "+c+"% completed"}));this.canEdit$=this.issuePermissionService.hasAclToEdit$;this.rowCreated$=new tg;this.issueFilters=new IA;this.ISSUE_FILTER_OPTIONS=[{key:yr.OPEN.key,
title:yr.OPEN.displayAs,description:"Hides closed issues"},{key:yr.ASSIGNED_TO_ME.key,title:yr.ASSIGNED_TO_ME.displayAs,description:"Hides issues not assigned to me"}];Rf(CAa("b-issue-relations-table tr .mat-column-title a",this.element.nativeElement).pipe(yg(dg(this.destroyed$,this.rowCreated$)))).then(function(){var b=function(){j7c(a.routePerformance,"issue-details-w-tree")};requestAnimationFrame(b);setTimeout(b)}).catch(function(){});try{this.issueFilters.reset(this.recallFilters().filter(Fab))}catch(b){}this.subscriptions.add(this.issueFilters.value$.subscribe(function(b){a.saveFilters([].concat(p(b)))}))};
Y(OX,Z);OX.\u0275dir=Z.\u0275dir;
var pnb=function(a){var b,c;return z(function(d){if(d.nextAddress==1)return a.analytics.trackEvent("editIssue","update","add-parent"),B(d,Rf(a.issue$),2);b=d.yieldResult;c=b.issueId;return B(d,a.issuePicker.open({title:"Add Parent to b/"+c,allowMultipleIds:!1,edgeType:"parent"},function(e){n7c(a,c,e)}),0)})},n7c=function(a,b,c){var d=l(c).next().value;var e,f,h,k;z(function(q){if(q.nextAddress==1)return(e=d)?B(q,a.issueRelationshipsFridge.assignParentToOneIssue(e,b),2):q.return();f=q.yieldResult;
h=f.errors;return((k=h)==null?0:k.length)?(a.butterBar.showWarning("Could not add parent"),q.return()):B(q,a.issueFullFridge.poke(b),0)})};OX.prototype.shouldResetFilters=function(){this.issueFilters.reset([])};OX.prototype.addChild=function(){this.rowCreated$.next();var a;(a=this.relationsTable)==null||a.addExistingChild()};OX.prototype.createChild=function(){this.rowCreated$.next();var a;(a=this.relationsTable)==null||xnb(a)};
OX.prototype.openLearnMore=function(){this.matDialog.open(k7c,{maxWidth:"1300px",width:"90%"})};OX.\u0275fac=function(a){return new (a||OX)};
OX.\u0275cmp=y({type:OX,selectors:[["b-issue-dependencies"]],viewQuery:function(a,b){a&1&&(hh(EX,5),hh(JX,5),hh(MX,5));if(a&2){var c;lh(c=mh())&&(b.relationsTable=c.first);lh(c=mh())&&(b.blockersTable=c.first);lh(c=mh())&&(b.parentsTable=c.first)}},standalone:!1,features:[Bg],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();J(0,"div",5);F(1,pmb,1,0,"b-spinner");U(2,"async");J(3,"select-menu",6);U(4,
"async");N("onChange",function(f){u(c);return w(b.issueFilters.reset(f))});K();J(5,"button",7);N("click",function(){u(c);return w(b.openLearnMore())});M(6,"mat-icon",8);K()();F(7,mnb,40,47,"div",9);U(8,"async");D(9,onb,1,1,"ng-template",null,0,Lh)(11,qnb,3,3,"ng-template",null,1,Lh)(13,snb,4,4,"ng-template",null,2,Lh)}if(a&2){var d;x();G(V(2,6,b.isThinking$)?1:-1);x(2);var e;I("options",b.ISSUE_FILTER_OPTIONS)("selectedOptions",(e=V(4,8,b.issueFilters.value$))!=null?e:Gh(12,m7c))("showActionButtons",
!1)("showActiveState",!0);x(4);G((d=V(8,10,b.issueId$))?7:-1,d)}},dependencies:[Sv,FC,DI,JI,oG,Kx,zG,xG,AG,NX,yN,lX,JX,EX,MX,Tv,Zv],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 PX=function(){};PX.\u0275fac=function(a){return new (a||PX)};PX.\u0275mod=uf({type:PX});PX.\u0275inj=Dd({imports:[HC,BG,lM,zL,CG,JQ]});var QX=function(){};QX.\u0275fac=function(a){return new (a||QX)};QX.\u0275mod=uf({type:QX});QX.\u0275inj=Dd({imports:[Bw,pJ,jC,HC,Ay,tJ,BG,wK,BW,XQ,QN,CG,By,rT,PQ,DG,CQ,CW,QQ,PX,yH,AN,uX,$O,hL]});var RX=function(){Z.apply(this,arguments);var a=this;this.prefsService=r(nX);this.issueFullFridge=r(TE);this.savedSearchFridge=r(gD);this.analytics=r(RE);this.activeSession=r(Bs);this.TREE_COLUMNS=[].concat(p(L0c));this.TREE_OPTIONS=Object.assign({},N0c);this.isInternalSession=this.activeSession.isInternalSession();this.refreshWorkArea=new tg;this.hideRecentActivity=!1;this.typeAndId$=new Kn([void 0,void 0]);this.typeAndId$.pipe(xg(function(b){var c=l(b);b=c.next().value;return(c=c.next().value)&&
b==="savedsearch"?a.savedSearchFridge.watch(c):Nf(void 0)}));this.issue$=this.typeAndId$.pipe(xg(function(b){var c=l(b);b=c.next().value;return(c=c.next().value)&&b==="issue"?a.issueFullFridge.watch(c):Nf(void 0)}));this.issueFilter$=this.typeAndId$.pipe(C(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}),C(function(b){if(b!==void 0){var c;if((c=a.activeSession.getTracker())==
null?0:c.trackerId){var d;b+=" trackerid:"+((d=a.activeSession.getTracker())==null?void 0:d.trackerId)}return b}}))};Y(RX,Z);RX.\u0275dir=Z.\u0275dir;RX.prototype.ngOnInit=function(){var a=this;this.refreshWorkArea.pipe(yg(this.destroyed$)).subscribe(function(){a.typeAndId$.next([a.entityType,a.referencedId])})};RX.prototype.getFilters=function(){return f6c(this.prefsService,this.entityReference)};RX.prototype.showTable=function(){return this.onlyShowTableWhenFiltered?this.getFilters().length>0:!0};
nd.Object.defineProperties(RX.prototype,{reference:{configurable:!0,enumerable:!0,set:function(a){this.entityReference=a;this.referencedId=wr(a);this.entityType=xr(a);this.analytics.trackEvent("missionControl","view","work-area-"+this.entityType);this.typeAndId$.next([this.entityType,this.referencedId])}}});RX.\u0275fac=function(){var a;return function(b){return(a||(a=Re(RX)))(b||RX)}}();
RX.\u0275cmp=y({type:RX,selectors:[["one-work-area"]],viewQuery:function(a,b){a&1&&hh(EX,5);if(a&2){var c;lh(c=mh())&&(b.relationsTable=c.first)}},inputs:{reference:"reference",refreshWorkArea:"refreshWorkArea",hideRecentActivity:"hideRecentActivity",numRecentActivityEvents:"numRecentActivityEvents",onlyShowTableWhenFiltered:"onlyShowTableWhenFiltered"},standalone:!1,features:[Bg],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,Enb,4,2);if(a&2){var c;G((c=b.referencedId)?0:-1,c)}},styles:["[_nghost-%COMP%] { display: block; }"]});var o7c=Object.assign({},M0c,{showActiveIndicator:!1,showMenu:!1,showTrending:!0}),p7c={column:"MODIFIED_TIME",direction:"DESCENDING"},SX=function(){var a=this;this.prefsService=r(nX);this.activeSession=r(Bs);this.issueFridge=r(iE);this.DEFAULT_COLUMNS=[].concat(p(J0c));this.PROGRESS_COLUMNS=[].concat(p(K0c));this.TABLE_OPTIONS=Object.assign({},o7c);this.INITIAL_SORT=p7c;this.isInternalSession=this.activeSession.isInternalSession();this.searchString$=new Kn(void 0);this.issueQuery$=this.searchString$.pipe(C(Fnb));
this.issueIds$=this.issueQuery$.pipe(xg(function(b){return a.issueFridge.watchMany(b)}),C(function(b){if(a.entityType==="issue")return b.results;var c;return YKc(b.results,(c=a.activeSession.getTracker())==null?void 0:c.trackerId)}),C(function(b){return b.map(function(c){return c.issueId})}))};SX.prototype.getFilters=function(){return this.prefKey==null?[]:f6c(this.prefsService,this.prefKey)};SX.prototype.showTable=function(){return this.onlyShowTableWhenFiltered?this.getFilters().length>0:!0};
nd.Object.defineProperties(SX.prototype,{searchString:{configurable:!0,enumerable:!0,set:function(a){this.searchString$.next(a!=null?a:void 0)}}});SX.\u0275fac=function(a){return new (a||SX)};
SX.\u0275cmp=y({type:SX,selectors:[["one-work-area-list"]],inputs:{searchString:"searchString",prefKey:"prefKey",entityType:"entityType",reference:"reference",onlyShowTableWhenFiltered:"onlyShowTableWhenFiltered"},standalone:!1,decls:2,vars:2,consts:[[1,"margin-bottom",3,"ref","query"],[1,"margin-bottom",3,"prefKey","query","entityType"],[3,"issueIds","options","filters","tableColumns","initialSort"]],template:function(a,b){a&1&&(F(0,Gnb,4,9),F(1,Inb,2,3));a&2&&(G(b.isInternalSession?0:-1),x(),G(b.showTable()?
1:-1))},dependencies:[kX,sX,ZT,Tv],styles:["[_nghost-%COMP%] { display: block; }"]});var Tnb=function(a,b){return b.workAreaUrl},TX=function(){Z.call(this);var a=this;this.prefsService=r(nX);this.issueFullFridge=r(TE);this.hotlistFridge=r(cD);this.savedSearchFridge=r(gD);this.hotlistPicker=r(jS);this.issuePicker=r(dR);this.savedSearchPicker=r(jX);this.analytics=r(RE);this.clipboard=r(aO);this.butterBar=r(GJ);this.parentIssueSuggestions=r(pX);this.imageUrls=r(YM);this.activeSession=r(Bs);this.refreshData=new tg;this.SECTION_SLUG="work-areas-wrapper-card";this.EMPTY_STATE_IMG=this.imageUrls.WORK_AREA_EXAMPLE_ILLUSTRATION;
this.inferEntityType=xr;this.makeBuganizerUrl=zab;this.makeIlpUrlForParentIssue=Aab;this.getEntityTypeName=yab;this.extractLastDigits=wr;this.suggestions=[];this.titles={};var b;this.currentTrackerId=(b=this.activeSession.getTracker())==null?void 0:b.trackerId;this.INITIAL_TAB_INDEX=e6c(this.prefsService,"work-areas-wrapper-card");this.workAreaReferences$=this.prefsService.prefs$.pipe(C(function(d){var e;return(e=d==null?void 0:d.workAreaUrls)!=null?e:[]}));this.issues$=this.workAreaReferences$.pipe(C(function(d){return d.filter(function(e){return xr(e)===
"issue"})}),C(function(d){return d.map(wr)}),og(gj),C(function(d){return d.filter(Qj)}),xg(function(d){return a.issueFullFridge.watchSet(d)}));this.hotlists$=this.workAreaReferences$.pipe(C(function(d){return d.filter(function(e){return xr(e)==="hotlist"})}),C(function(d){return d.map(wr)}),og(gj),C(function(d){return d.filter(Qj)}),xg(function(d){return a.hotlistFridge.watchSet(d)}));this.savedSearches$=this.workAreaReferences$.pipe(C(function(d){return d.filter(function(e){return xr(e)==="savedsearch"})}),
C(function(d){return d.map(wr)}),og(gj),C(function(d){return d.filter(Qj)}),xg(function(d){return a.savedSearchFridge.watchSet(d)}));this.refsForTemplate$=this.workAreaReferences$.pipe(ig(this.issues$),yg(this.destroyed$),C(function(d){var e=l(d);d=e.next().value;var f=e.next().value;return d.map(function(h){var k=f.find(function(q){return q.issueId===h});return{workAreaUrl:h,trackerId:k==null?void 0:k.trackerId}})}));this.issues$.pipe(yg(this.destroyed$)).subscribe(this.updateTitlesForIssues.bind(this));
this.hotlists$.pipe(yg(this.destroyed$)).subscribe(this.updateTitlesForHotlists.bind(this));this.savedSearches$.pipe(yg(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(","));bg(2E3).pipe(xg(function(){return a.parentIssueSuggestions.suggestions$}),
yg(this.destroyed$),mg(1)).subscribe(function(d){var e=3;e=e===void 0?3:e;if(d.length!==0){var f=d.slice(0,e*2),h=[].concat(p(f));if(!(f.length<=1))for(f=h.length-1;f>0;--f){var k=Math.floor(Math.random()*(f+1)),q=h[f];h[f]=h[k];h[k]=q}e=h.slice(0,e);d=d[0];e.includes(d)||(e.pop(),e.unshift(d));d=e}a.suggestions=d;a.workAreaReferences.length===0&&(d=d.length,a.analytics.trackEvent("missionControl","suggestions-shown",String(d),d))})};Y(TX,Z);TX.\u0275dir=Z.\u0275dir;g=TX.prototype;
g.toggleCollapsed=function(){this.prefsService.toggleCollapsed("work-areas-wrapper-card")};g.ariaLabelForToggleButton=function(){return this.isCollapsed?"Expand work areas section":"Collapse work areas section"};g.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}};
g.updateTitlesForHotlists=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.titles[vab(b.hotlistId)]=b.name};g.updateTitlesForSavedSearches=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.titles[wab(b.searchId)]=b.name};
var q7c=function(a){var b,c,d,e,f,h,k,q,v;return z(function(A){if(A.nextAddress==1)return b=a.workAreaReferences.filter(function(E){return xr(E)==="hotlist"}).map(wr).map(Number),B(A,eYc(a.hotlistPicker,b,Nf([])),2);c=A.yieldResult;f=((e=(d=c)==null?void 0:d.hotlistDiff.added)!=null?e:[]).map(vab);q=((k=(h=c)==null?void 0:h.hotlistDiff.removed)!=null?k:[]).map(vab);v=a.workAreaReferences.slice();v=Hsa(q,v);v=Ksa(f,v);Qr(a.prefsService,{workAreaUrls:v});Lf(A)})},r7c=function(a){var b;return z(function(c){if(c.nextAddress==
1)return B(c,a.issuePicker.open({title:"Choose a parent issue",allowMultipleIds:!0}),2);b=c.yieldResult;b!=null&&oX(a.prefsService,b);Lf(c)})},Wnb=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&&oX(a.prefsService,b)},s7c=function(a){var b,c,d,e;return z(function(f){if(f.nextAddress==1)return B(f,a.savedSearchPicker.open(),2);b=f.yieldResult;d=(c=b)!=null?c:[];if(d.length===0)return f.return();
e=d.map(wab);oX(a.prefsService,e);Lf(f)})};nd.Object.defineProperties(TX.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")}}});TX.\u0275fac=function(a){return new (a||TX)};
TX.\u0275cmp=y({type:TX,selectors:[["work-areas-wrapper-card"]],hostVars:4,hostBindings:function(a,b){a&2&&uh("is-empty",b.isEmpty)("collapsed",b.isCollapsed)},inputs:{refreshData:"refreshData"},standalone:!1,features:[Bg],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();J(0,"div",3)(1,"header",4)(2,"h3",5);R(3," Work areas ");K();M(4,"mat-icon",6);J(5,"button",7);N("click",function(){u(c);return w(b.toggleCollapsed())});M(6,"mat-icon",8);K();F(7,Jnb,3,1,"button",9);J(8,"mat-menu",null,0)(10,"button",10);N("click",function(){u(c);return w(r7c(b))});R(11,"Issue (parent/child project)");K();
J(12,"button",10);N("click",function(){u(c);return w(q7c(b))});R(13,"Hotlist");K();J(14,"button",10);N("click",function(){u(c);return w(s7c(b))});R(15,"Saved Search");K()()();F(16,Unb,4,3,"mat-tab-group",11)(17,Znb,9,3,"section",12);K()}a&2&&(x(5),Lg("aria-label",b.ariaLabelForToggleButton()),x(2),G(b.workAreaReferences.length>0?7:-1),x(9),G(b.workAreaReferences.length>0?16:17))},dependencies:[FC,xC,pG,sG,qG,uG,oG,Jx,Kx,pL,ON,FN,IN,JN,KN,zG,xG,PO,DI,JI,$M,RX,Tv],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 UX=function(){};UX.\u0275fac=function(a){return new (a||UX)};UX.\u0275mod=uf({type:UX});UX.\u0275inj=Dd({imports:[HC,mH,GC,BG,zL,QN,CG,uX,CW,iX,QX,gX,CQ,tJ,OQ]});xna(RX,[oG,Jx,lX,tX,EX,fX,SX],[Tv]);var t7c=["*"],u7c=["content"],v7c=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],w7c=new le("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:bob}),x7c=new le("MAT_DRAWER_CONTAINER"),WX=function(){var a=r(Te),b=r(wi),c=r(Ph);Sw.call(this,a,b,c);this._platform=r(zi);this._changeDetectorRef=r(Hv);this._container=r(VX)};Y(WX,Sw);WX.\u0275dir=Sw.\u0275dir;WX.prototype.ngAfterContentInit=function(){var a=this;this._container._contentMarginChanges.subscribe(function(){a._changeDetectorRef.markForCheck()})};
WX.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};WX.\u0275fac=function(a){return new (a||WX)};
WX.\u0275cmp=y({type:WX,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(a,b){a&2&&(th("margin-left",b._container._contentMargins.left,"px")("margin-right",b._container._contentMargins.right,"px"),uh("mat-drawer-content-hidden",b._shouldBeHidden()))},features:[Fh([{provide:Sw,useExisting:WX}]),Bg],ngContentSelectors:t7c,decls:1,vars:0,template:function(a){a&1&&(ch(),dh(0))},encapsulation:2,changeDetection:0});
var XX=function(){var a=this;this._elementRef=r(Te);this._focusTrapFactory=r(rw);this._focusMonitor=r(jw);this._platform=r(zi);this._ngZone=r(Ph);this._renderer=r(Ji);this._interactivityChecker=r(mw);this._doc=r(ui);this._container=r(x7c,{optional:!0});this._elementFocusedBeforeDrawerWasOpened=this._focusTrap=null;this._position="start";this._mode="over";this._disableClose=!1;this._opened=nh.apply(null,[!1].concat(p([])));this._animationStarted=new tg;this._animationEnd=new tg;this.openedChange=new nq(!0);
this._openedStream=this.openedChange.pipe(eg(function(b){return b}),C(function(){}));this.openedStart=this._animationStarted.pipe(eg(function(){return a.opened}),lg());this._closedStream=this.openedChange.pipe(eg(function(b){return!b}),C(function(){}));this.closedStart=this._animationStarted.pipe(eg(function(){return!a.opened}),lg());this._destroyed=new tg;this.onPositionChanged=new nq;this._modeChanged=new tg;this._injector=r(Cg);this._changeDetectorRef=r(Hv);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(yg(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;$f(b,"keydown").pipe(eg(function(c){return c.keyCode===
27&&!a.disableClose&&!ki(c)}),yg(a._destroyed)).subscribe(function(c){return a._ngZone.run(function(){a.close();c.stopPropagation();c.preventDefault()})});a._eventCleanups=[a._renderer.listen(b,"transitionrun",a._handleTransitionEvent),a._renderer.listen(b,"transitionend",a._handleTransitionEvent),a._renderer.listen(b,"transitioncancel",a._handleTransitionEvent)]});this._animationEnd.subscribe(function(){a.openedChange.emit(a.opened)})};g=XX.prototype;
g._forceFocus=function(a,b){var c=this;this._interactivityChecker.isFocusable(a)||(a.tabIndex=-1,this._ngZone.runOutsideAngular(function(){var d=function(){e();f();a.removeAttribute("tabindex")},e=c._renderer.listen(a,"blur",d),f=c._renderer.listen(a,"mousedown",d)}));a.focus(b)};g._focusByCssSelector=function(a,b){(a=this._elementRef.nativeElement.querySelector(a))&&this._forceFocus(a,b)};
g._takeFocus=function(){var a=this;if(this._focusTrap){var b=this._elementRef.nativeElement;switch(this.autoFocus){case !1:case "dialog":break;case !0:case "first-tabbable":Ig(function(){a._focusTrap.focusInitialElement()||typeof b.focus!=="function"||b.focus()},{injector:this._injector});break;case "first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}};
g._restoreFocus=function(a){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?kw(this._focusMonitor,this._elementFocusedBeforeDrawerWasOpened,a):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)};g._isFocusWithinDrawer=function(){var a=this._doc.activeElement;return!!a&&this._elementRef.nativeElement.contains(a)};
g.ngAfterViewInit=function(){this._isAttached=!0;this._position==="end"&&this._updatePositionInParent("end");this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())};
g.ngOnDestroy=function(){this._eventCleanups.forEach(function(c){return c()});var a;(a=this._focusTrap)==null||a.destroy();var b;(b=this._anchor)==null||b.remove();this._anchor=null;this._animationStarted.complete();this._animationEnd.complete();this._modeChanged.complete();this._destroyed.next();this._destroyed.complete()};g.open=function(a){return this.toggle(!0,a)};g.close=function(){return this.toggle(!1)};g._closeViaBackdropClick=function(){return this._setOpen(!1,!0,"mouse")};
g.toggle=function(a,b){(a=a===void 0?!this.opened:a)&&b&&(this._openedVia=b);b=this._setOpen(a,!a&&this._isFocusWithinDrawer(),this._openedVia||"program");a||(this._openedVia=null);return b};
g._setOpen=function(a,b,c){var d=this;if(a===this.opened)return Promise.resolve(a?"open":"close");this._opened.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(mg(1)).subscribe(function(h){return f(h?
"open":"close")})})};g._setIsAnimating=function(a){this._elementRef.nativeElement.classList.toggle("mat-drawer-animating",a)};g._getWidth=function(){return this._elementRef.nativeElement.offsetWidth||0};g._updateFocusTrapState=function(){if(this._focusTrap){var a;this._focusTrap.enabled=!((a=this._container)==null||!a.hasBackdrop)&&this.opened}};
g._updatePositionInParent=function(a){if(this._platform.isBrowser){var b=this._elementRef.nativeElement,c=b.parentNode;a==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),c.insertBefore(this._anchor,b)),c.appendChild(b)):this._anchor&&this._anchor.parentNode.insertBefore(b,this._anchor)}};
nd.Object.defineProperties(XX.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=pi(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=pi(a);this._autoFocus=a}},opened:{configurable:!0,enumerable:!0,get:function(){return this._opened()},set:function(a){this.toggle(pi(a))}}});XX.\u0275fac=function(a){return new (a||XX)};
XX.\u0275cmp=y({type:XX,selectors:[["mat-drawer"]],viewQuery:function(a,b){a&1&&hh(u7c,5);if(a&2){var c;lh(c=mh())&&(b._content=c.first)}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(a,b){a&2&&(Lg("align",null)("tabIndex",b.mode!=="side"?"-1":null),th("visibility",b._container||b.opened?null:"hidden"),uh("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:t7c,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(a){a&1&&(ch(),J(0,"div",1,0),dh(2),K())},dependencies:[Sw],encapsulation:2,changeDetection:0});
var VX=function(){var a=this;this._dir=r(Gi,{optional:!0});this._element=r(Te);this._ngZone=r(Ph);this._changeDetectorRef=r(Hv);this._animationDisabled=Ri();this._transitionsEnabled=!1;this._drawers=new gh;this._autosize=r(w7c);this.backdropClick=new nq;this._destroyed=new tg;this._doCheckSubject=new tg;this._contentMargins={left:null,right:null};this._contentMarginChanges=new tg;this._injector=r(Cg);var b=r(zi),c=r(vi),d;(d=this._dir)==null||d.change.pipe(yg(this._destroyed)).subscribe(function(){a._validateDrawers();
YX(a)});c.change().pipe(yg(this._destroyed)).subscribe(function(){return YX(a)});!this._animationDisabled&&b.isBrowser&&this._ngZone.runOutsideAngular(function(){setTimeout(function(){a._element.nativeElement.classList.add("mat-drawer-transition");a._transitionsEnabled=!0},200)})};
VX.prototype.ngAfterContentInit=function(){var a=this;this._allDrawers.changes.pipe(wg(this._allDrawers),yg(this._destroyed)).subscribe(function(b){a._drawers.reset(b.filter(function(c){return!c._container||c._container===a}));kh(a._drawers)});this._drawers.changes.pipe(wg(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))&&
YX(a);a._changeDetectorRef.markForCheck()});this._ngZone.runOutsideAngular(function(){a._doCheckSubject.pipe(kg(10),yg(a._destroyed)).subscribe(function(){return YX(a)})})};VX.prototype.ngOnDestroy=function(){this._contentMarginChanges.complete();this._doCheckSubject.complete();this._drawers.destroy();this._destroyed.next();this._destroyed.complete()};VX.prototype.open=function(){this._drawers.forEach(function(a){return a.open()})};VX.prototype.close=function(){this._drawers.forEach(function(a){return a.close()})};
var YX=function(a){var b=0,c=0;if(a._left&&a._left.opened)if(a._left.mode=="side")b+=a._left._getWidth();else if(a._left.mode=="push"){var d=a._left._getWidth();b+=d;c-=d}a._right&&a._right.opened&&(a._right.mode=="side"?c+=a._right._getWidth():a._right.mode=="push"&&(d=a._right._getWidth(),c+=d,b-=d));b=b||null;c=c||null;if(b!==a._contentMargins.left||c!==a._contentMargins.right)a._contentMargins={left:b,right:c},a._ngZone.run(function(){return a._contentMarginChanges.next(a._contentMargins)})};
g=VX.prototype;g.ngDoCheck=function(){var a=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return a._doCheckSubject.next()})};g._watchDrawerToggle=function(a){var b=this;a._animationStarted.pipe(yg(this._drawers.changes)).subscribe(function(){YX(b);b._changeDetectorRef.markForCheck()});a.mode!=="side"&&a.openedChange.pipe(yg(this._drawers.changes)).subscribe(function(){return b._setContainerClass(a.opened)})};
g._watchDrawerPosition=function(a){var b=this;a.onPositionChanged.pipe(yg(this._drawers.changes)).subscribe(function(){Ig({read:function(){return b._validateDrawers()}},{injector:b._injector})})};g._watchDrawerMode=function(a){var b=this;a._modeChanged.pipe(yg(dg(this._drawers.changes,this._destroyed))).subscribe(function(){YX(b);b._changeDetectorRef.markForCheck()})};g._setContainerClass=function(a){var b=this._element.nativeElement.classList;a?b.add("mat-drawer-container-has-open"):b.remove("mat-drawer-container-has-open")};
g._validateDrawers=function(){var a=this;this._start=this._end=null;this._drawers.forEach(function(b){b.position=="end"?a._end=b:a._start=b});this._right=this._left=null;this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)};g._isPushed=function(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"};
g._onBackdropClicked=function(){this.backdropClick.emit();this._closeModalDrawersViaBackdrop()};g._closeModalDrawersViaBackdrop=function(){var a=this;[this._start,this._end].filter(function(b){return b&&!b.disableClose&&a._drawerHasBackdrop(b)}).forEach(function(b){return b._closeViaBackdropClick()})};g._isShowingBackdrop=function(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)};
g._isDrawerOpen=function(a){return a!=null&&a.opened};g._drawerHasBackdrop=function(a){return this._backdropOverride==null?!!a&&a.mode!=="side":this._backdropOverride};
nd.Object.defineProperties(VX.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=pi(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:pi(a)}},scrollable:{configurable:!0,
enumerable:!0,get:function(){return this._userContent||this._content}}});VX.\u0275fac=function(a){return new (a||VX)};
VX.\u0275cmp=y({type:VX,selectors:[["mat-drawer-container"]],contentQueries:function(a,b,c){a&1&&(ih(c,WX,5),ih(c,XX,5));if(a&2){var d;lh(d=mh())&&(b._content=d.first);lh(d=mh())&&(b._allDrawers=d)}},viewQuery:function(a,b){a&1&&hh(WX,5);if(a&2){var c;lh(c=mh())&&(b._userContent=c.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(a,b){a&2&&uh("mat-drawer-container-explicit-backdrop",b._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},
exportAs:["matDrawerContainer"],features:[Fh([{provide:x7c,useExisting:VX}])],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&&(ch(v7c),F(0,$nb,1,2,"div",0),dh(1),dh(2,1),F(3,aob,2,0,"mat-drawer-content"));a&2&&(G(b.hasBackdrop?0:-1),x(3),G(b._content?-1:3))},dependencies:[WX],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 y7c=["*"],z7c=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],ZX=function(){WX.apply(this,arguments)};Y(ZX,WX);ZX.\u0275dir=WX.\u0275dir;ZX.\u0275fac=function(){var a;return function(b){return(a||(a=Re(ZX)))(b||ZX)}}();ZX.\u0275cmp=y({type:ZX,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[Fh([{provide:Sw,useExisting:ZX}]),Bg],ngContentSelectors:y7c,decls:1,vars:0,template:function(a){a&1&&(ch(),dh(0))},encapsulation:2,changeDetection:0});
var $X=function(){XX.apply(this,arguments);this._fixedInViewport=!1;this._fixedBottomGap=this._fixedTopGap=0};Y($X,XX);
nd.Object.defineProperties($X.prototype,{fixedInViewport:{configurable:!0,enumerable:!0,get:function(){return this._fixedInViewport},set:function(a){this._fixedInViewport=pi(a)}},fixedTopGap:{configurable:!0,enumerable:!0,get:function(){return this._fixedTopGap},set:function(a){this._fixedTopGap=si(a)}},fixedBottomGap:{configurable:!0,enumerable:!0,get:function(){return this._fixedBottomGap},set:function(a){this._fixedBottomGap=si(a)}}});
$X.\u0275fac=function(){var a;return function(b){return(a||(a=Re($X)))(b||$X)}}();
$X.\u0275cmp=y({type:$X,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(a,b){a&2&&(Lg("tabIndex",b.mode!=="side"?"-1":null)("align",null),th("top",b.fixedInViewport?b.fixedTopGap:null,"px")("bottom",b.fixedInViewport?b.fixedBottomGap:null,"px"),uh("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:[Fh([{provide:XX,useExisting:$X}]),Bg],ngContentSelectors:y7c,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(a){a&1&&(ch(),J(0,"div",1,0),dh(2),K())},dependencies:[Sw],encapsulation:2,changeDetection:0});var aY=function(){VX.apply(this,arguments);this._content=this._allDrawers=void 0};Y(aY,VX);
aY.\u0275fac=function(){var a;return function(b){return(a||(a=Re(aY)))(b||aY)}}();
aY.\u0275cmp=y({type:aY,selectors:[["mat-sidenav-container"]],contentQueries:function(a,b,c){a&1&&(ih(c,ZX,5),ih(c,$X,5));if(a&2){var d;lh(d=mh())&&(b._content=d.first);lh(d=mh())&&(b._allDrawers=d)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(a,b){a&2&&uh("mat-drawer-container-explicit-backdrop",b._backdropOverride)},exportAs:["matSidenavContainer"],features:[Fh([{provide:x7c,useExisting:aY},{provide:VX,useExisting:aY}]),Bg],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&&(ch(z7c),F(0,cob,1,2,"div",0),dh(1),dh(2,1),F(3,dob,2,0,"mat-sidenav-content"));a&2&&(G(b.hasBackdrop?0:-1),x(3),G(b._content?-1:3))},dependencies:[ZX],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 bY=function(){};bY.\u0275fac=function(a){return new (a||bY)};bY.\u0275mod=uf({type:bY});bY.\u0275inj=Dd({imports:[px,Vw,Vw,px]});var cY=function(){};cY.\u0275fac=function(a){return new (a||cY)};cY.\u0275mod=uf({type:cY});cY.\u0275inj=Dd({imports:[HC,Ay,jQ,QN,CG,BG,bY,By,gX,AN,UX]});var dY=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 LE;this.prevPage=new LE;this.pageSizeChange=new LE};dY.prototype.ngOnInit=function(){};dY.\u0275fac=function(a){return new (a||dY)};
dY.\u0275cmp=y({type:dY,selectors:[["b-paginator"]],inputs:{showPageSizeSelector:"showPageSizeSelector",pageSizeOptions:"pageSizeOptions",pageSize:"pageSize",startIndex:"startIndex",endIndex:"endIndex",totalNumber:"totalNumber",hasPreviousPage:"hasPreviousPage",hasNextPage:"hasNextPage",previousPageLabel:"previousPageLabel",nextPageLabel:"nextPageLabel"},outputs:{nextPage:"nextPage",prevPage:"prevPage",pageSizeChange:"pageSizeChange"},standalone:!1,decls:13,vars:8,consts:[["pageSizeMenu","matMenu"],
[1,"page-number"],["type","button","mat-icon-button","","color","primary",3,"click","matTooltip","disabled"],["svgIcon","chevron-left"],["svgIcon","chevron-right"],["type","button","mat-icon-button","","matTooltip","Change page size",3,"matMenuTriggerFor"],["svgIcon","arrow-dropdown"],[1,"b-menu-header"],["type","button","mat-menu-item","","role","menuitemcheckbox",3,"b-menu-item-checked"],["type","button","mat-menu-item","","role","menuitemcheckbox",3,"click"],[1,"b-menu-item-check-mark"],["svgIcon",
"done",1,"icon-s"]],template:function(a,b){a&1&&(F(0,fob,8,1),J(1,"span",1)(2,"strong"),R(3),K(),F(4,gob,4,1,"span"),J(5,"span"),R(6," of "),J(7,"strong"),R(8),K()(),J(9,"button",2),N("click",function(){return b.prevPage.emit()}),M(10,"mat-icon",3),K(),J(11,"button",2),N("click",function(){return b.nextPage.emit()}),M(12,"mat-icon",4),K()());a&2&&(G(b.showPageSizeSelector?0:-1),x(3),wh(b.startIndex),x(),G(b.endIndex!=null?4:-1),x(4),wh(b.totalNumber),x(),I("matTooltip",b.previousPageLabel)("disabled",
!b.hasPreviousPage),x(2),I("matTooltip",b.nextPageLabel)("disabled",!b.hasNextPage))},dependencies:[FC,oG,Kx,pG,sG,qG,uG,zG,xG],styles:["[_nghost-%COMP%] {\n      display: flex;\n      align-items: center;\n    }\n    .page-number[_ngcontent-%COMP%] {\n      white-space: nowrap;\n    }"]});var uob=function(a,b){return{issueIds:a,teamId:b}},Dob=function(){return[]},Eob=function(){return{}},pob=function(a,b){return b.key},eY=function(){Z.call(this);var a=this;this.activeSession=r(Bs);this.paramsService=r(CK);this.appSearchState=r(bX);this.userPreferencesManager=r(iG);this.imageUrls=r(YM);this.teamExperimentalFieldsFridge=r(XF);this.triageService=r(nG);this.punctualService=r(KR);this.issueFridge=r(iE);this.issueFullFridge=r(TE);this.bLocation=r(DH);this.refreshMonitor=r(gE);this.issueExperimentalFieldsFridge=
r(eE);this.starredTeamsService=r(kG);this.teamsService=r(SF);this.ROUTES=Dq;this.TriageServiceMode=Zzc;this.SUBPHASE_TO_DISPLAY_NAME=Coc;this.LAST_30_DAYS=zpc.LAST_30_DAYS;this.EMPTY_STATE_IMG=this.imageUrls.EMPTY_TRIAGE;this.HOTKEYS=sp;this.RIGHT_SIDEBAR_MIN_WIDTH=650;this.RIGHT_SIDEBAR_MAX_WIDTH=1400;this.selectedFilterKeys=new IA;this.teamId=this.paramsService.params.teamId;this.triageId=this.paramsService.params.triageId;this.enableTeamScope=OA(this.activeSession,"enableTeamScope")&&this.activeSession.isInternalSession();
this.phase$=DK(this.paramsService,"phase").pipe(C(function(d){var e;return(e=Foc.get(d))!=null?e:"NEW"}),og());this.subphase$=DK(this.paramsService,"subphase").pipe(C(function(d){var e;return(e=Eoc.get(d))!=null?e:void 0}),og());this.pageSize$=this.userPreferencesManager.resultsPerPage$;this.pageNumber$=new Kn(1);this.activeSort$=new Kn(void 0);this.data=this.triageService.triageDataFactory.get(this.teamId,this.triageId);this.phaseData$=this.phase$.pipe(C(function(d){return a.data.phase(d)}));this.allIssuesInPhase$=
this.phaseData$.pipe(xg(function(d){return d.issues$}));this.allIssuesInSubphase$=Uf([this.allIssuesInPhase$,this.subphase$]).pipe(C(function(d){var e,f=l(d);d=f.next().value;return(e=f.next().value)?d.filter(function(h){return Fl(h)===e}):d}));this.selectedFilters$=this.selectedFilterKeys.value$.pipe(C(function(d){return[].concat(p(d)).map(function(e){return zpc[e]})}));this.alerts$=this.phase$.pipe(C(function(d){return Lob.get(d)}));this.trendingThemes$=this.allIssuesInSubphase$.pipe(C(function(d){return Psa(d)}));
this.filteredIssuesInPhase$=Uf([this.allIssuesInSubphase$,this.selectedFilters$,this.alerts$]).pipe(C(function(d){var e=l(d);d=e.next().value;var f=e.next().value;e=e.next().value;return Iob(d,f,e)}));this.filteredTotalRowCount$=Uf([this.filteredIssuesInPhase$,this.trendingThemes$]).pipe(C(function(d){var e=l(d);d=e.next().value;e=e.next().value;return d.length+e.length}),ug({refCount:!0,bufferSize:1}));this.startIndex$=Uf([this.pageSize$,this.pageNumber$]).pipe(C(function(d){var e=l(d);d=e.next().value;
return(e.next().value-1)*d+1}),ug({refCount:!0,bufferSize:1}));this.endIndex$=Uf([this.pageSize$,this.startIndex$,this.filteredTotalRowCount$]).pipe(C(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)}),ug({refCount:!0,bufferSize:1}));this.sortedFilteredIssueIdsInPhase$=Uf([this.filteredIssuesInPhase$,this.trendingThemes$,this.activeSort$,this.phase$]).pipe(C(function(d){var e=l(d);d=e.next().value;var f=e.next().value;var h=e.next().value;e=e.next().value;
return Kob(d,f,h,e)}),ug({refCount:!0,bufferSize:1}));this.issueIdsToRender$=Uf([this.sortedFilteredIssueIdsInPhase$,this.startIndex$,this.endIndex$]).pipe(C(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)}),og(gj),ug({refCount:!0,bufferSize:1}));this.availableFiltersInCurrentPhase$=Uf([this.phase$,this.allIssuesInSubphase$,this.trendingThemes$]).pipe(C(function(d){var e=l(d);d=e.next().value;var f=e.next().value;var h=e.next().value;var k;return((k=
ypc.get(d))!=null?k:[]).map(function(q){var v=f.filter(q.check).length;q.key==="NEEDS_ATTENTION"&&(v+=h.length);return Object.assign({},q,{count:v})})}),C(function(d){return d.filter(function(e){return e.count||a.selectedFilterKeys.has(e.key)})}));this.issueAlertsForCurrentPhase$=this.phase$.pipe(C(function(d){return Lob.get(d)}));this.issues$=this.issueIdsToRender$.pipe(xg(function(d){return a.issueFridge.watchSet(d.flat())}));this.customFieldConfigs$=Xzc(this.data).pipe(eg(Qj));this.tableOptions$=
Uf([this.issues$,this.customFieldConfigs$]).pipe(C(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:Ym(e.customFieldId)}})}}));this.teamExperimentalFields$=this.teamExperimentalFieldsFridge.watch(this.teamId);this.tableColumns$=Uf([this.teamExperimentalFields$,
this.phase$]).pipe(C(function(d){var e=l(d);d=e.next().value;e=e.next().value;d=d==null?void 0:d.triage.find(function(k){return""+k.id===a.triageId});e=[].concat(p(Ioc[e]));var f,h=(f=d==null?void 0:d.displayColumns)!=null?f:[];(h==null?void 0:h.length)>0&&(e=h);return d!=null&&d.showComponentColumn?e:e.filter(function(k){return k.type!=="COMPONENT_PATH"})}));var b;this.sidebarWidthPreference$=new Kn(Math.max(this.RIGHT_SIDEBAR_MIN_WIDTH,(b=Yoc("triage-sidebar-width")())!=null?b:0));this.sidebarWidth$=
Uf([this.triageService.isSidebarOpen$,this.sidebarWidthPreference$]).pipe(C(function(d){var e=l(d);d=e.next().value;e=e.next().value;return d?e:0}));this.subphases$=this.phase$.pipe(C(function(d){return Boc[d]}));this.subphaseDisplayName$=this.subphase$.pipe(C(function(d){return d?Coc[d]:"All subphases"}));this.subphaseSelectorTooltip$=this.subphase$.pipe(C(function(d){return d?"Showing issues in the "+Coc[d].toLowerCase()+" subphase.":"Showing issues in all subphases"}));this.starred$=this.starredTeamsService.starredTriageViews$.pipe(C(function(d){return d.some(function(e){return e.triageId===
a.triageId&&e.teamId===a.teamId})}));this.savingStar=!1;this.selectedIssues=new Tw(!0,[]);this.punctualSubscriptions=new yf;var c=r(RE);this.subscriptions.add(this.phase$.subscribe(function(){a.selectedFilterKeys.reset([zpc.LAST_30_DAYS.key])}));this.subscriptions.add(this.data.allIssues$.subscribe(function(d){for(var e=l(d.entries()),f=e.next();!f.done;f=e.next()){var h=l(f.value);f=h.next().value;h=h.next().value;xwa(f,d)&&dpc.add(h.issueId)}}));this.subscriptions.add(this.issueIdsToRender$.subscribe(function(d){A7c(a,
d)}));this.subscriptions.add(this.phaseData$.pipe(xg(function(d){return d.totalCount$.pipe(C(function(e){return[e,d.phase]}))}),mg(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)}))};Y(eY,Z);eY.\u0275dir=Z.\u0275dir;
var A7c=function(a,b){a.punctualSubscriptions.unsubscribe();a.punctualSubscriptions=new yf;b=l(b);for(var c=b.next(),d={};!c.done;d={issueId$jscomp$359:void 0},c=b.next())d.issueId$jscomp$359=c.value,Array.isArray(d.issueId$jscomp$359)||(a.punctualSubscriptions.add(a.punctualService.watch("issue-edit",d.issueId$jscomp$359).subscribe(function(e){return function(){a.issueFullFridge.poke(e.issueId$jscomp$359,{trustMemory:!1})}}(d))),a.punctualSubscriptions.add(a.punctualService.watch("issue-experimental-field-edit",
d.issueId$jscomp$359).subscribe(function(e){return function(){a.issueExperimentalFieldsFridge.poke(e.issueId$jscomp$359,{trustMemory:!1})}}(d))))};eY.prototype.ngOnInit=function(){var a=this;setTimeout(function(){a.appSearchState.clear()})};eY.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.punctualSubscriptions.unsubscribe()};
var Cob=function(a,b){a.triageService.mode!==1&&(a.triageService.setIssueIds(b),a.triageService.openSidebar())},B7c=function(a,b){return z(function(c){if(c.nextAddress==1)return B(c,Rf(a.userPreferencesManager.saveResultsPerPage(b)),2);a.pageNumber$.next(1);Lf(c)})};eY.prototype.onSortChange=function(a){this.activeSort$.next(a)};
eY.prototype.onColumnsChange=function(a){var b=this,c,d,e;return z(function(f){if(f.nextAddress==1)return B(f,Rf(b.teamExperimentalFields$),2);d=(c=f.yieldResult)!=null?c:{id:b.teamId,triage:[{id:Ym(b.triageId)}]};e=d.triage.findIndex(function(h){return""+h.id===b.triageId});if(e===-1)return f.return();d.triage[e].displayColumns=a;return B(f,Rf(izc(b.teamsService,d)),0)})};
eY.prototype.toggleStar=function(){var a=this;return z(function(b){if(b.nextAddress==1)return a.savingStar=!0,B(b,Hzc(a.starredTeamsService,a.triageId,a.teamId),2);a.savingStar=!1;Lf(b)})};eY.prototype.refreshTable=function(){this.refreshMonitor.refreshRequest.next();this.data.reload();this.selectedIssues.clear()};
var kob=function(a,b){var c,d,e,f;return z(function(h){if(h.nextAddress==1)return B(h,Rf(a.phase$),2);c=h.yieldResult;d=Nr[c];e=b&&Doc[b];f=Dq.viewTriage.makeHref(a.teamId,a.triageId,d,e);return B(h,a.bLocation.setUrl(f,!0),0)})};eY.\u0275fac=function(a){return new (a||eY)};
eY.\u0275cmp=y({type:eY,selectors:[["b-triage-phase"]],standalone:!1,features:[Bg],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();J(0,"div",2)(1,"header",3)(2,"button",4);N("onHotkey",function(){u(c);return w(b.refreshTable())})("click",function(){u(c);return w(b.refreshTable())});M(3,"mat-icon",5);K();J(4,"b-star-toggle",6);U(5,"async");N("starClicked",function(){u(c);return w(b.toggleStar())});K();J(6,"h2",7);R(7);U(8,"async");K();M(9,"mat-icon",8);F(10,job,9,7,"div",9);U(11,"async");M(12,"mat-icon",8);J(13,"button",10);U(14,"async");J(15,"span",11);R(16);U(17,"async");K();M(18,"b-icon",12);K();J(19,"mat-menu",
null,0)(21,"button",13);N("click",function(){u(c);return w(kob(b))});R(22,"All subphases");K();M(23,"hr");Pg(24,lob,2,1,"button",14,Og);U(26,"async");K();J(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(H){u(c);return w(B7c(b,H))})("prevPage",function(){u(c);b.pageNumber$.next(b.pageNumber$.value-1);return w()})("nextPage",function(){u(c);b.pageNumber$.next(b.pageNumber$.value+1);return w()});
K();J(36,"div",16)(37,"a",17);M(38,"mat-icon",18);K();J(39,"a",19);M(40,"mat-icon",20);K()()();F(41,mob,1,0,"mat-progress-bar",21);U(42,"async");J(43,"div",22)(44,"div",23);F(45,sob,2,3);U(46,"async");F(47,vob,1,5,"ng-container");U(48,"async");K();J(49,"b-resizable-sidebar",24);U(50,"async");N("widthChanged",function(H){u(c);H<b.RIGHT_SIDEBAR_MIN_WIDTH||(b.sidebarWidthPreference$.next(H),Zoc("triage-sidebar-width")(H));return w()});D(51,Bob,2,3,"ng-template",25);K()()();D(52,Hob,2,1,"ng-template",
null,1,Lh)}if(a&2){var d,e,f,h;a=Q(20);x(2);I("hotkey",b.HOTKEYS.REFRESH_ISSUE);x(2);I("starred",V(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");x(3);T(" ",V(8,30,b.data.triageName$)," ");x(3);G((d=V(11,32,b.phaseData$))?10:-1,d);x(3);I("matTooltip",Ch(V(14,34,b.subphaseSelectorTooltip$)))("matMenuTriggerFor",a);x(3);wh(V(17,
36,b.subphaseDisplayName$));x(8);Qg(V(26,38,b.subphases$));x(3);uh("invisible",!((e=V(28,40,b.issueIdsToRender$))==null?0:e.length));var k,q,v,A;I("showPageSizeSelector",!0)("startIndex",(k=V(29,42,b.startIndex$))!=null?k:1)("endIndex",(q=V(30,44,b.endIndex$))!=null?q:0)("totalNumber",(v=V(31,46,b.filteredTotalRowCount$))!=null?v:0)("hasPreviousPage",V(32,48,b.pageNumber$)>1)("hasNextPage",V(33,50,b.filteredTotalRowCount$)>V(34,52,b.endIndex$))("pageSize",(A=V(35,54,b.pageSize$))!=null?A:0);x(12);
I("href",b.ROUTES.editTeam.makeHref(b.teamId,"triage"),hf);x(2);G(V(42,56,b.data.isLoading$)?41:-1);x(4);G(((f=V(46,58,b.allIssuesInSubphase$))==null?0:f.length)?45:-1);x(2);G((h=V(48,60,b.issueIdsToRender$))?47:-1,h);x(2);var E;I("minWidth",b.RIGHT_SIDEBAR_MIN_WIDTH)("maxWidth",b.RIGHT_SIDEBAR_MAX_WIDTH)("size",(E=V(50,62,b.sidebarWidth$))!=null?E:0);x(2);I("refreshable",b.triageService.currentIssueIds$)}},dependencies:[Sv,FC,oG,Jx,Kx,aP,iP,gP,pG,sG,qG,uG,gN,eN,zG,xG,RG,eL,ZT,tU,tS,uU,dY,qH,TG,fS,
Tv],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 fY=function(){};fY.\u0275fac=function(a){return new (a||fY)};fY.\u0275mod=uf({type:fY});fY.\u0275inj=Dd({});var gY=function(){};gY.\u0275fac=function(a){return new (a||gY)};gY.\u0275mod=uf({type:gY});gY.\u0275inj=Dd({imports:[HC,gL,BG,CG,fY]});var hY=function(){};hY.\u0275fac=function(a){return new (a||hY)};hY.\u0275mod=uf({type:hY});hY.\u0275inj=Dd({imports:[HC,BG,mH,CG]});var iY=function(){};iY.\u0275fac=function(a){return new (a||iY)};iY.\u0275mod=uf({type:iY});iY.\u0275inj=Dd({imports:[HC,Ay,BG,VQ,mH,RQ,jQ,CG,SG,gL,CW,GW,GG,hY,By,gX,yH,AN,gY]});var jY=function(){var a=this;this.teamsService=r(SF);this.placeholder="Choose Team";this.panelWidth="574px";this.disabled=!1;this.onTeamSelect=new LE;this.onEmptyQuery=new LE;this.searchQuery$=new tg;this.teamSuggestions$=this.searchQuery$.pipe(kg(300),og(),xg(function(b){return VF(a.teamsService,b)}),C(function(b){return b.map(function(c){return new Nob(c.pathIds,c.pathNames,c.description)})}))};jY.prototype.updateSelectionOnChange=function(a){this.onTeamSelect.emit(a.option.value)};
jY.prototype.search=function(a){a||this.onEmptyQuery.emit();this.searchQuery$.next(a)};jY.prototype.displayFn=function(a){return a?a.name:""};jY.prototype.ngAfterViewInit=function(){};jY.\u0275fac=function(a){return new (a||jY)};
jY.\u0275cmp=y({type:jY,selectors:[["b-team-picker"]],viewQuery:function(a,b){a&1&&hh(dM,7);if(a&2){var c;lh(c=mh())&&(b.autocompleteTrigger=c.first)}},inputs:{teamSelected:"teamSelected",placeholder:"placeholder",panelWidth:"panelWidth",disabled:"disabled"},outputs:{onTeamSelect:"onTeamSelect",onEmptyQuery:"onEmptyQuery"},standalone:!1,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();J(0,"div",2)(1,"input",3,0);N("click",function(){u(c);var d=Q(2);return w(b.search(d.value))})("input",function(){u(c);var d=Q(2);return w(b.search(d.value))});K();J(3,"mat-autocomplete",
4,1);N("optionSelected",function(d){u(c);return w(b.updateSelectionOnChange(d))});Pg(5,Qob,7,7,"mat-option",5,Og);U(7,"async");K()()}a&2&&(a=Q(4),x(),I("placeholder",Ch(b.placeholder))("ngModel",b.teamSelected)("disabled",b.disabled)("matAutocomplete",a),Lg("aria-disabled",b.disabled),x(2),I("panelWidth",b.panelWidth)("displayWith",b.displayFn),x(2),Qg(V(7,8,b.teamSuggestions$)))},dependencies:[fM,cM,Bx,dM,zG,xG,Ui,dy,ky,Tv,$v],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 Nob=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 C7c(a.slice(0,e+1),b.slice(0,e+1))})},C7c=function(a,b){this.pathIds=a;this.pathNames=b;this.name=b.length>0?b[b.length-1]:"";this.pathNameText=b.join(" > ")};var kY=function(){Z.apply(this,arguments);var a=this;this.teamExperimentalFieldsFridge=r(XF);this.teamsService=r(SF);this.starredTeamsService=r(kG);this.teamUserActivity=r(fG);this.selectedTeam$=new Kn(null);this.suggestedTeams$=this.teamUserActivity.mostActiveTeams$;this.starInProgress={};this.starredTriageViews$=this.starredTeamsService.starredTriageViews$;this.tableColumns=["starred","triageName","teamName","scope"];this.populateEmptyExperiments=Bf(C(function(b){b=l(b);var c=b.next().value;b.next().value.forEach(function(d){c.has(d)||
c.set(d,{id:d,triage:[{id:0}]})});return c}));this.suggestedTeamIds$=this.suggestedTeams$.pipe(C(function(b){return b.map(function(c){return c.teamId})}));this.starredAndSuggestedTeamIds$=Uf([this.starredTriageViews$,this.suggestedTeamIds$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;c=new Set(c);b=l(b);for(var d=b.next();!d.done;d=b.next())c.add(d.value.teamId);return[].concat(p(c))}));this.teamIdToTeamExperiments$=this.starredAndSuggestedTeamIds$.pipe(xg(function(b){return a.teamExperimentalFieldsFridge.watchSet([].concat(p(b))).pipe(C(function(c){return new Map(c.map(function(d){return[d.id,
d]}))}))}),ig(this.starredAndSuggestedTeamIds$),this.populateEmptyExperiments);this.teamIds$=this.teamIdToTeamExperiments$.pipe(C(function(b){return[].concat(p(b.keys()))}));this.teamIdToTriageViews$=this.teamIdToTeamExperiments$.pipe(C(function(b){return xsa(b,function(c){return oj(c.triage,function(d){return d.id.toString()})})}));this.teamsIdToTeamName$=this.teamIds$.pipe(xg(function(b){return gzc(a.teamsService,b).pipe(C(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(C(function(b){var c=new Map;b=l(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=e.teamId;e=e.triageId;var f=void 0,h=(f=c.get(d))!=null?f:new Set;h.add(e);c.set(d,h)}return c}));this.defaultTriageViewList$=Uf([this.teamIdToTriageViews$,this.teamsIdToTeamName$,this.starredTeamIdToTriageIds$,this.suggestedTeamIds$]).pipe(C(function(b){var c=l(b);var d=c.next().value;
b=c.next().value;var e=c.next().value;c=c.next().value;c=new Set(c);var f=[];d=l(d);for(var h=d.next();!h.done;h=d.next()){var k=l(h.value);h=k.next().value;var q=k=k.next().value;k=c.has(h);var v=void 0,A=(v=b.get(h))!=null?v:h;q=l(q);for(v=q.next();!v.done;v=q.next()){var E=l(v.value);v=E.next().value;E=E.next().value;var H=void 0,L=void 0,O=(L=(H=e.get(h))==null?void 0:H.has(v))!=null?L:!1;if(k||O)H=void 0,f.push({teamId:h,teamName:A,triageId:v,triageName:mp(A,E),scope:(H=E.scope)!=null?H:""})}}return f}));
this.selectedTeamExperiment$=this.selectedTeam$.pipe(xg(function(b){return b===null?Nf(void 0):a.teamExperimentalFieldsFridge.watch(b.id)}));this.selectedTeamTriageRows$=Uf([this.selectedTeam$,this.selectedTeamExperiment$]).pipe(C(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:mp(c.name)}]:b.triage.map(function(d){var e;return{teamId:c.id,teamName:c.name,triageId:d.id.toString(),triageName:mp(c.name,d),scope:(e=
d.scope)!=null?e:""}})}));this.triageRows$=Uf([this.defaultTriageViewList$,this.selectedTeamTriageRows$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return c.length?c:b}))};Y(kY,Z);kY.\u0275dir=Z.\u0275dir;kY.prototype.getTriageLink=function(a,b){return Dq.viewTriage.makeHref(b,a)};kY.prototype.isTriageStarred=function(a,b,c){return c.some(function(d){return d.triageId===a&&d.teamId===b})};kY.prototype.onTeamSelect=function(a){this.selectedTeam$.next(a)};
kY.prototype.toggleStar=function(a,b){var c=this,d;return z(function(e){if(e.nextAddress==1){d=a+":"+b;if(c.starInProgress[d])return e.jumpTo(0);c.starInProgress[d]=!0;return B(e,Hzc(c.starredTeamsService,a,b),3)}c.starInProgress[d]=!1;Lf(e)})};kY.\u0275fac=function(){var a;return function(b){return(a||(a=Re(kY)))(b||kY)}}();
kY.\u0275cmp=y({type:kY,selectors:[["ng-component"]],standalone:!1,features:[Bg],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&&(J(0,"div",0)(1,"header",1)(2,"h2"),R(3," Search triage view "),K()(),J(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)}),K()(),J(8,"div",5)(9,"h3"),F(10,Rob,1,0),U(11,"async"),Mg(12,Sob,1,0),K(),F(13,epb,3,3),U(14,"async"),
K()()());if(a&2){var c;x(6);I("teamSelected",V(7,5,b.selectedTeam$))("panelWidth","400px")("placeholder","Search by team name or id");x(4);G(V(11,7,b.selectedTeam$)?10:12);x(3);G((c=V(14,9,b.starredTriageViews$))?13:-1,c)}},dependencies:[cP,XP,KP,QP,MP,JP,SP,NP,PP,TP,VP,yN,fS,jY,Tv],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 lY=function(){};lY.\u0275fac=function(a){return new (a||lY)};lY.\u0275mod=uf({type:lY});lY.\u0275inj=Dd({imports:[HC,jM,lM,CG,Ay]});var mY=function(){};mY.\u0275fac=function(a){return new (a||mY)};mY.\u0275mod=uf({type:mY});mY.\u0275inj=Dd({imports:[HC,BG,XQ,CG,AN,gY,$O,lY]});var nY=function(){};nY.\u0275fac=function(a){return new (a||nY)};nY.\u0275mod=uf({type:nY});nY.\u0275inj=Dd({imports:[HC,cY,iY,mY,$W]});var oY=function(){this.roundCorners=this.showDividers=!1};oY.\u0275fac=function(a){return new (a||oY)};
oY.\u0275cmp=y({type:oY,selectors:[["b-button-group"]],hostVars:4,hostBindings:function(a,b){a&2&&uh("show-dividers",b.showDividers)("round-corners",b.roundCorners)},inputs:{showDividers:"showDividers",roundCorners:"roundCorners"},standalone:!1,ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(ch(),dh(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 pY=function(){this.constants=r(dK);this.activeSession=r(Bs);this.STATUS_JS_FULL_TEXT=uj;this.STATUSES=HKc;this.SEVERITIES_VALUES=MKc;this.PRIORITIES_VALUES=GKc;this.enableBulkEstimatedEffortOption=!1;this.onBulkEdit=new LE;this.onQuickBulkEdit=new LE;this.onBulkEditIssueRelation=new LE;this.onBulkMarkIssueRead=new LE;this.isAnonymous=this.activeSession.isAnonymous();this.enableBulkEditUi=!this.activeSession.userRequiresCaptcha()};g=pY.prototype;g.bulkEdit=function(a){this.onBulkEdit.emit(a)};
g.quickBulkEdit=function(a,b){this.onQuickBulkEdit.emit({field:a,newValue:b})};g.bulkEditIssueRelation=function(a,b){this.onBulkEditIssueRelation.emit({issueRelation:a,isMarking:b===void 0?!0:b})};g.bulkMarkIssueRead=function(){this.onBulkMarkIssueRead.emit()};g.getIssueTypes=function(){return this.constants.editIssueTypeChoices.filter(function(a){return a.value!=="VULNERABILITY"})};pY.\u0275fac=function(a){return new (a||pY)};
pY.\u0275cmp=y({type:pY,selectors:[["b-app-bar-bulk-edit-menus"]],inputs:{readStatePrompt:"readStatePrompt",enableBulkEstimatedEffortOption:"enableBulkEstimatedEffortOption"},outputs:{onBulkEdit:"onBulkEdit",onQuickBulkEdit:"onQuickBulkEdit",onBulkEditIssueRelation:"onBulkEditIssueRelation",onBulkMarkIssueRead:"onBulkMarkIssueRead"},standalone:!1,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();J(0,"b-button-group");F(1,fpb,4,2,"button",9);J(2,"button",10);N("click",function(){u(c);return w(b.bulkMarkIssueRead())});R(3);K();F(4,gpb,4,2,"button",9);F(5,hpb,4,2,"button",9);K();J(6,"mat-menu",null,0)(8,"button",11);N("click",function(){u(c);return w(b.bulkEdit("ASSIGNEE"))});R(9,"Assignee");K();J(10,"button",11);N("click",function(){u(c);return w(b.bulkEdit("COMPONENT"))});R(11,"Component");K();J(12,"button",12);R(13,"Priority");K();J(14,"button",12);
R(15,"Severity");K();J(16,"button",12);R(17,"Status");K();J(18,"button",12);R(19,"Type");K();J(20,"button",11);N("click",function(){u(c);return w(b.bulkEdit("VERIFIER"))});R(21,"Verifier");K();J(22,"button",11);N("click",function(){u(c);return w(b.bulkEdit("REPORTER"))});R(23,"Reporter");K();J(24,"button",11);N("click",function(){u(c);return w(b.bulkEdit("CHANGELIST"))});R(25,"Changelist");K();J(26,"button",11);N("click",function(){u(c);return w(b.bulkEdit("CUSTOM_FIELDS"))});R(27,"Custom Fields");
K();J(28,"button",12);R(29," Archival state ");K();J(30,"button",11);N("click",function(){u(c);return w(b.bulkEdit("FOUND_IN"))});R(31,"Found In");K();J(32,"button",11);N("click",function(){u(c);return w(b.bulkEdit("SLO_START_TIME"))});R(33,"SLO Start Time");K();F(34,ipb,2,0,"button",13);J(35,"button",11);N("click",function(){u(c);return w(b.bulkEdit("VERIFIED_IN"))});R(36,"Verified In");K();J(37,"button",11);N("click",function(){u(c);return w(b.bulkEdit("TARGETED_TO"))});R(38,"Targeted To");K();
J(39,"button",12);R(40,"In Prod");K();M(41,"mat-divider");J(42,"button",11);N("click",function(){u(c);return w(b.bulkEdit("COMMENT"))});R(43,"Add Comment");K()();J(44,"mat-menu",null,1);Pg(46,jpb,2,1,"button",13,Og);K();J(48,"mat-menu",null,2);Pg(50,kpb,2,1,"button",13,Og);K();J(52,"mat-menu",null,3);Pg(54,lpb,2,1,"button",13,Og);K();J(56,"mat-menu",null,4);$g(58);Pg(59,opb,4,4,null,null,Og);K();J(61,"mat-menu",null,5)(63,"button",11);N("click",function(){u(c);return w(b.quickBulkEdit("IS_ARCHIVED",
!0))});R(64,"Archive");K();J(65,"button",11);N("click",function(){u(c);return w(b.quickBulkEdit("IS_ARCHIVED",!1))});R(66,"Unarchive");K()();J(67,"mat-menu",null,6)(69,"button",11);N("click",function(){u(c);return w(b.quickBulkEdit("IN_PROD",!0))});R(70,"In Prod");K();J(71,"button",11);N("click",function(){u(c);return w(b.quickBulkEdit("IN_PROD",!1))});R(72,"Not in Prod");K()();J(73,"mat-menu",null,7)(75,"button",11);N("click",function(){u(c);return w(b.bulkEditIssueRelation("BLOCKED_BY",!0))});R(76,
"Mark as Blocked By");K();J(77,"button",11);N("click",function(){u(c);return w(b.bulkEditIssueRelation("BLOCKING",!0))});R(78,"Mark as Blocking");K();J(79,"button",11);N("click",function(){u(c);return w(b.bulkEditIssueRelation("PARENT",!0))});R(80,"Add Parent");K();J(81,"button",11);N("click",function(){u(c);return w(b.bulkEditIssueRelation("DUPLICATE"))});R(82,"Duplicate");K();J(83,"button",11);N("click",function(){u(c);return w(b.bulkEditIssueRelation("BLOCKED_BY",!1))});R(84,"Unmark as Blocked By");
K();J(85,"button",11);N("click",function(){u(c);return w(b.bulkEditIssueRelation("BLOCKING",!1))});R(86,"Unmark as Blocking");K();J(87,"button",11);N("click",function(){u(c);return w(b.bulkEditIssueRelation("PARENT",!1))});R(88,"Remove Parent");K()();J(89,"mat-menu",null,8)(91,"button",11);N("click",function(){u(c);return w(b.quickBulkEdit("CC",!0))});R(92,"CC me");K();J(93,"button",11);N("click",function(){u(c);return w(b.quickBulkEdit("CC",!1))});R(94,"Un-CC me");K();J(95,"button",11);N("click",
function(){u(c);return w(b.bulkEdit("CC"))});R(96,"Edit CC");K()()}if(a&2){a=Q(45);var d=Q(49),e=Q(53),f=Q(57),h=Q(62),k=Q(68);x();G(b.enableBulkEditUi?1:-1);x();I("disabled",b.isAnonymous);x();T(" ",b.readStatePrompt," ");x();G(b.enableBulkEditUi?4:-1);x();G(b.enableBulkEditUi?5:-1);x(7);I("matMenuTriggerFor",a);x(2);I("matMenuTriggerFor",d);x(2);I("matMenuTriggerFor",e);x(2);I("matMenuTriggerFor",f);x(10);I("matMenuTriggerFor",h);x(6);G(b.enableBulkEstimatedEffortOption?34:-1);x(5);I("matMenuTriggerFor",
k);x(7);Qg(b.PRIORITIES_VALUES);x(4);Qg(b.SEVERITIES_VALUES);x(4);Qg(b.STATUSES);x(4);a=ah(b.getIssueTypes());x();Qg(a)}},dependencies:[pG,sG,qG,uG,FC,eL,oY,oG,Jx,pL,zG,xG],encapsulation:2,changeDetection:0});var qY=function(){this.activeSession=r(Bs);this.showFlagIssuesAsSpam=this.showExportCsv=!1;this.exportCsvClicked=new LE;this.flagAsSpamClicked=new LE;this.isAnonymous=this.activeSession.isAnonymous()};qY.\u0275fac=function(a){return new (a||qY)};
qY.\u0275cmp=y({type:qY,selectors:[["b-app-bar-more-menu"]],inputs:{showExportCsv:"showExportCsv",showFlagIssuesAsSpam:"showFlagIssuesAsSpam"},outputs:{exportCsvClicked:"exportCsvClicked",flagAsSpamClicked:"flagAsSpamClicked"},standalone:!1,decls:1,vars:1,consts:[["moreMenu","matMenu"],["type","button","mat-button","",1,"medium",3,"disabled","matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"click"]],template:function(a,
b){a&1&&F(0,rpb,8,4);a&2&&G(b.showExportCsv||b.showFlagIssuesAsSpam?0:-1)},dependencies:[pG,sG,qG,uG,eL,oG,Jx],encapsulation:2,changeDetection:0});var rY=function(){};rY.\u0275fac=function(a){return new (a||rY)};rY.\u0275mod=uf({type:rY});rY.\u0275inj=Dd({imports:[HC]});var sY=function(){};sY.\u0275fac=function(a){return new (a||sY)};sY.\u0275mod=uf({type:sY});sY.\u0275inj=Dd({imports:[mH,HC,gL,rY,BG,zL,CG]});var vY=function(){var a=this;this.activeSession=r(Bs);this.connectionChecker=r(tY);this.ssoInterceptorState=r(uY);this.notifyUserAndWaitForGoodConnection$=new Cf(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$=$f(window,"focus").pipe(xg(function(){return a.connectionChecker.ok$}),
eg(function(b){return b}),mg(1),C(function(){}),yla())};vY.prototype.intercept=function(a,b){return OA(this.activeSession,"enableRefreshSsoPopup")&&a.url&&a.url.startsWith("action/")?D7c(this,b,a):b.handle(a)};
var D7c=function(a,b,c){return new Cf(function(d){var e=b.handle(c).subscribe({next:function(h){d.next(h)},complete:function(){d.complete()},error:function(h){E7c(a,b,c,h).pipe(yg(f)).subscribe(d)}}),f=new sg(1);return function(){f.next();e.unsubscribe()}})},E7c=function(a,b,c,d){return d.status===403||d.status===404||d.status===429?Of(function(){return d}):a.connectionChecker.ok$.pipe(xg(function(e){return e?Of(function(){return d}):a.notifyUserAndWaitForGoodConnection$.pipe(xg(function(){return b.handle(c)}))}))};
vY.\u0275fac=function(a){return new (a||vY)};vY.\u0275prov=Cd({token:vY,factory:vY.\u0275fac,providedIn:"root"});var uY=function(){this.showRefreshSso$=new Kn(!1)};uY.\u0275fac=function(a){return new (a||uY)};uY.\u0275prov=Cd({token:uY,factory:uY.\u0275fac,providedIn:"root"});var tY=function(){var a=this;this.ngZone=r(Ph);this.ok$=new Cf(function(b){var c=o4a("action/yes",function(){a.ngZone.run(function(){c.isSuccess()?b.next(c.getResponseText()==="yes"):b.next(!1);b.complete()})});return function(){c.dispose()}})};
tY.\u0275fac=function(a){return new (a||tY)};tY.\u0275prov=Cd({token:tY,factory:tY.\u0275fac,providedIn:"root"});var F7c={provide:wsc,useClass:vY,multi:!0};var G7c=function(){this.activeSession=r(Bs);this.ssoInterceptorState=r(uY);this.showRefreshSsoMessage$=this.ssoInterceptorState.showRefreshSso$;this.isAnonymous=this.activeSession.isAnonymous()};G7c.\u0275fac=function(a){return new (a||G7c)};
G7c.\u0275cmp=y({type:G7c,selectors:[["b-sso-expired-callout-outlet"]],standalone:!1,decls:2,vars:3,consts:[["format","app",3,"messageType"],["type","button","mat-flat-button",""],["type","button","mat-flat-button","",3,"click"]],template:function(a,b){a&1&&(F(0,wpb,6,3,"b-callout",0),U(1,"async"));a&2&&G(V(1,1,b.showRefreshSsoMessage$)?0:-1)},dependencies:[WO,XO,oG,Jx,Tv],encapsulation:2,changeDetection:0});var H7c=function(){var a=this;this.session=r(Bs);this.principalTypes=r(FF);this.cdr=r(NE,{self:!0});this.showHiringBanner=!1;OA(this.session,"weAreHiring")&&GF(this.principalTypes,this.session.getUserEmail(),!0).then(function(b){a.showHiringBanner=b.detailedUserType==="UNRESTRICTED_GOOGLER";a.cdr.detectChanges()}).catch(function(){})};H7c.\u0275fac=function(a){return new (a||H7c)};
H7c.\u0275cmp=y({type:H7c,selectors:[["b-hiring-banner"]],standalone:!1,features:[Fh([NE])],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,xpb,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 wY=function(){};wY.\u0275fac=function(a){return new (a||wY)};wY.\u0275mod=uf({type:wY});wY.\u0275inj=Dd({imports:[HC]});var xY=function(){this.hotkeys=r(PG)};xY.prototype.ngOnInit=function(){this.hotkeys.pause()};xY.prototype.ngOnDestroy=function(){this.hotkeys.unpause()};xY.\u0275fac=function(a){return new (a||xY)};
xY.\u0275cmp=y({type:xY,selectors:[["b-hotkeys-dialog"]],standalone:!1,decls:9,vars:0,consts:[["mat-dialog-title",""],["mat-button","","mat-dialog-close","","type","button",1,"medium","primary"],["colspan","2"],[1,"bv2-hotkeys-header"],[1,"bv2-hotkeys-key"],[1,"bv2-hotkeys-value"]],template:function(a,b){a&1&&(J(0,"h1",0),R(1,"Keyboard shortcuts"),K(),J(2,"mat-dialog-content")(3,"table"),Pg(4,zpb,7,1,"thead",null,Og),K()(),J(6,"mat-dialog-actions")(7,"button",1),R(8,"Close"),K()());a&2&&(x(4),Qg(HAc(b.hotkeys)))},
dependencies:[oG,Jx,SJ,UJ,WJ,VJ],encapsulation:2});var yY=function(){};yY.\u0275fac=function(a){return new (a||yY)};yY.\u0275mod=uf({type:yY});yY.\u0275inj=Dd({imports:[HC,BG,wK]});var Sr=function(a){this.type=a.type;this.customFieldId=a.customFieldId||void 0;this.customFieldName=a.customFieldName||void 0};Sr.prototype.isCustomField=function(){return this.type==="CUSTOM_FIELD"};Sr.prototype.toApiUrlParam=function(){return this.isCustomField()?this.type.toLowerCase()+"."+this.customFieldId:this.type.toLowerCase()};Sr.prototype.toString=function(){return this.toApiUrlParam()};var Vr=function(a,b){this.fieldId=a;this.direction=b};Vr.prototype.toApiUrlParam=function(){return this.fieldId.toApiUrlParam()+":"+(this.direction==="ASCENDING"?"asc":"desc")};Vr.prototype.toString=function(){return this.toApiUrlParam()};var zY=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 Kn(this)},I7c=function(a,
b){var c=b.positionMap||{},d=b.issues.map(function(e){var f=mgb(e,null);c&&c[e.issueId]&&(f.position=c[e.issueId]);return f});return new zY(d,a,b)};zY.prototype.hasPreviousPage=function(){return this.params.page>1};zY.prototype.hasNextPage=function(){return!!this.responseMetadata.nextPageToken};
var AY=function(a,b){var c=a.issues.findIndex(function(d){return d.issueId===b});return c!==-1?c+a.startIndex:-1},J7c=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=AY(a,c.issueId);e!==-1&&(e-=a.startIndex,lgb(a.issues[e],c,d))}a.changed$.next(a)},K7c=function(a,b,c,d){b=AY(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)};zY.prototype.clone=function(){var a=new zY(this.internalIssues,this.params,this.responseMetadata);a.changed$.next(a);return a};nd.Object.defineProperties(zY.prototype,{issues:{configurable:!0,enumerable:!0,get:function(){return this.internalIssues},set:function(a){this.internalIssues=a;this.changed$.next(this)}}});var BY=function(){this.issueApi=r(SD);this.hotlistApi=r(YC);this.paths=r(oN)};BY.prototype.create=function(a){return new L7c(this.issueApi,this.hotlistApi,this.paths,a)};BY.\u0275fac=function(a){return new (a||BY)};BY.\u0275prov=Cd({token:BY,factory:BY.\u0275fac,providedIn:"root"});
var L7c=function(a,b,c,d){this.issueApi=a;this.hotlistApi=b;this.paths=c;this.params=d;this.resultPromise=this.searchResultsPage=null},CY=function(a){if(a.params.page<1)return Promise.reject(Error("$e"));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=IWa(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=I7c(a.params,e));return a.searchResultsPage},function(e){return Promise.reject(e)})},M7c=function(a){return a.searchResultsPage?a.searchResultsPage.hasNextPage():!0};var DY=function(){this.$window=r(HJ);this.searchResultsPageFetcherFactory=r(BY);this.previousResultsFetcher=this.nextResultsFetcher=this.currentResultsFetcher=null;this.focusedIssueIndex=-1},O7c=function(a,b){var c=pj();N7c(b.page)?(a.setSearchParams(b),CY(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},Q7c=function(a){var b=pj(),c=null;a.currentResultsFetcher?c=a.currentResultsFetcher.params:
c=P7c(a);c?(a.setSearchParams(c),CY(a.currentResultsFetcher).then(function(d){b.resolve(d)},function(d){b.reject(d)})):b.reject("No related search results available.");return b.promise},R7c=function(a){a.currentResultsFetcher=null;a.nextResultsFetcher=null;a.previousResultsFetcher=null;a.focusedIssueIndex=-1},S7c=function(a,b){var c=pj();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=hj(a.currentResultsFetcher.params);e.page=d;a.setSearchParams(e);CY(a.currentResultsFetcher).then(function(f){a:{if(b>=f.startIndex&&b<=f.endIndex){var h=b-f.startIndex;if(h<f.issues.length){f=f.issues[h].issueId;break a}}f=void 0}f?(a.focusedIssueIndex=b,c.resolve(f)):c.reject("No issue available at index "+b)},function(f){c.reject(f)});return c.promise};
DY.prototype.getFocusedIssue=function(){return this.focusedIssueIndex};
var T7c=function(a){a.currentResultsFetcher?CY(a.currentResultsFetcher).then(function(b){a.focusedIssueIndex=b.endIndex>=b.startIndex?b.startIndex:-1}).catch(function(b){Xj("unexpected error fetching:",b)}):a.focusedIssueIndex=-1},P7c=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 Vr(new Sr(b.fieldId),b.direction)}));return a}return null},
U7c=function(a,b,c){b=hj(b);b.page=c;return a.searchResultsPageFetcherFactory.create(b)},V7c=function(a,b){a.currentResultsFetcher||(a.currentResultsFetcher=U7c(a,b,b.page),CY(a.currentResultsFetcher).catch(function(c){Xj("unexpected error fetching:",c)}));!a.previousResultsFetcher&&b.page>1&&(a.previousResultsFetcher=U7c(a,b,b.page-1),Bq(2E3).then(function(){var c;return(c=a.previousResultsFetcher)==null?void 0:CY(c)}).catch(function(c){Xj("unexpected error fetching:",c)}));!a.nextResultsFetcher&&
M7c(a.currentResultsFetcher)&&(a.nextResultsFetcher=U7c(a,b,b.page+1),Bq(2E3).then(function(){var c;return(c=a.nextResultsFetcher)==null?void 0:CY(c)}).catch(function(c){Xj("unexpected error fetching:",c)}))};
DY.prototype.setSearchParams=function(a){a.page=kj(a.page);if(!a.resultsPerPage||isNaN(a.resultsPerPage))throw Error("af");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&&gj(a.sortColumns,b.sortColumns)&&a.resultsPerPage===b.resultsPerPage&&gj(a.trackerIds,b.trackerIds)?this.currentResultsFetcher.params.returnUrl=a.returnUrl:R7c(this)}V7c(this,a);a=JSON.stringify(this.currentResultsFetcher.params);this.$window.sessionStorage.setItem("buganizer.searchParams",a)};
var N7c=function(a){var b=kj(""+a);return isNaN(b)||b!=Number(a)||b<1||b>2147483647?!1:!0};DY.\u0275fac=function(a){return new (a||DY)};DY.\u0275prov=Cd({token:DY,factory:DY.\u0275fac,providedIn:"root"});var EY=function(){this.$window=r(HJ);this.activeSession=r(Bs)};EY.prototype.setTitle=function(a){a=Wr(a,this.activeSession.session);this.$window.document.title=a};EY.\u0275fac=function(a){return new (a||EY)};EY.\u0275prov=Cd({token:EY,factory:EY.\u0275fac,providedIn:"root"});var FY=function(){Z.apply(this,arguments);var a=this;this.paramsService=r(CK);this.issueFullFridge=r(TE);this.pageTitle=r(EY);this.accessIndicatorService=r(MO);this.newTitle$=this.paramsService.routeParams$.pipe(og(gj),xg(function(b){return a.onRouteParamsChanged(b)}));this.init=function(){a.subscriptions.add(a.newTitle$.subscribe(function(b){a.pageTitle.setTitle(b)}))};this.initOnce=qj(this.init)};Y(FY,Z);FY.\u0275dir=Z.\u0275dir;
FY.prototype.onRouteParamsChanged=function(a){return a.issueId?W7c(this,a.issueId):Bv};var W7c=function(a,b){return Uf([a.issueFullFridge.watch(b),RSc(a.accessIndicatorService,b).pipe(wg(void 0),hg(function(){return Nf(void 0)}))]).pipe(wg([void 0,void 0]),C(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}))};
FY.\u0275fac=function(){var a;return function(b){return(a||(a=Re(FY)))(b||FY)}}();FY.\u0275prov=Cd({token:FY,factory:FY.\u0275fac,providedIn:"root"});var $7c=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(X7c(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(),
Y7c(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);X7c(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();Y7c(this);Z7c(this)};$7c.prototype.start=function(){this.parentElement.appendChild(this.element);requestAnimationFrame(this.animate)};
$7c.prototype.stop=function(){this.state=2;Y7c(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 Z7c=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)}};
$7c.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 Y7c=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"},X7c=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};$7c.prototype.transform=function(){this.element.style.transform="translate("+this.x+"px,"+this.y+"px) rotate("+(this.direction+90)%360+"deg) scaleX("+this.flip};var a8c=function(a){this.element=a;this.bugs=[]};a8c.prototype.start=function(){for(var a=this,b=0;b<3;b++)b8c(this);this.intervalSubscription=Kka(1E4).subscribe(function(){b8c(a);a.bugs.length>=10&&a.intervalSubscription&&a.intervalSubscription.unsubscribe()})};a8c.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 b8c=function(a){var b=new $7c(a.element);b.start();a.bugs.push(b)};var GY=function(){var a=this;this.ngZone=r(Ph);this.userPreferencesManager=r(iG);this.snackBar=r(DJ);this.elementRef=r(Te);this.bugAnimation=new a8c(this.elementRef.nativeElement);this.destroyed$=new sg(1);this.active$=new Kn(!0);this.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY;this.active$.pipe(og(),yg(this.destroyed$)).subscribe(function(b){b?c8c(a):d8c(a)})};GY.prototype.ngOnInit=function(){document.visibilityState==="visible"&&e8c(this)};GY.prototype.ngOnDestroy=function(){this.destroyed$.next()};
var e8c=function(a){a.timeoutId=setTimeout(function(){a.active$.next(!1)},18E4)};GY.prototype.onUserEvent=function(){var a=Date.now();a<this.lastTimeoutResetTimestamp+1E4||(this.lastTimeoutResetTimestamp=a,this.active$.next(!0),clearTimeout(this.timeoutId),e8c(this))};GY.prototype.onVisibilityChange=function(){this.onUserEvent();switch(document.visibilityState){case "hidden":clearTimeout(this.timeoutId),this.lastTimeoutResetTimestamp=Number.NEGATIVE_INFINITY}};
var d8c=function(a){a.snackBar.open("Bug screensaver started because of inactivity.","Disable",{duration:5E3}).onAction().subscribe(function(){f8c(a)});a.ngZone.runOutsideAngular(function(){a.bugAnimation.start()})},c8c=function(a){a.ngZone.runOutsideAngular(function(){a.bugAnimation.stop()})},f8c=function(a){var b,c,d;z(function(e){if(e.nextAddress==1)return b=Object,c=b.assign,B(e,Rf(a.userPreferencesManager.bugScreensaverPreferences$),2);d=c.call(b,{},e.yieldResult,{enableBugScreensaver:!1});a.userPreferencesManager.save({bugScreensaverPreferences:d}).subscribe();
Lf(e)})};GY.\u0275fac=function(a){return new (a||GY)};
GY.\u0275cmp=y({type:GY,selectors:[["bug-screensaver"]],hostBindings:function(a,b){a&1&&N("click",function(){return b.onUserEvent()},Ve)("keydown",function(){return b.onUserEvent()},Ve)("mousemove",function(){return b.onUserEvent()},Ve)("wheel",function(){return b.onUserEvent()},Ve)("touchstart",function(){return b.onUserEvent()},Ve)("focus",function(){return b.onUserEvent()},Ve)("visibilitychange",function(){return b.onVisibilityChange()},uha)},standalone:!1,decls:0,vars:0,template:function(){},
encapsulation:2});var g8c=function(){var a=this;this.userPreferencesManager=r(iG);this.activeSession=r(Bs);this.isEnabled$=this.userPreferencesManager.bugScreensaverPreferences$.pipe(C(function(b){return(b.enableBugScreensaver||!1)&&a.activeSession.isInternalSession()}))};g8c.\u0275fac=function(a){return new (a||g8c)};
g8c.\u0275cmp=y({type:g8c,selectors:[["bug-screensaver-manager"]],standalone:!1,decls:2,vars:3,template:function(a,b){a&1&&(F(0,Cpb,1,0,"bug-screensaver"),U(1,"async"));a&2&&G(V(1,1,b.isEnabled$)?0:-1)},dependencies:[GY,Tv],encapsulation:2});var HY=function(){};HY.\u0275fac=function(a){return new (a||HY)};HY.\u0275mod=uf({type:HY});HY.\u0275inj=Dd({imports:[HC,jQ,DG,TQ]});var h8c=function(){this.activeSession=r(Bs);this.currentTracker=this.activeSession.getTracker();var a,b;this.trackerName=(b=(a=this.currentTracker)==null?void 0:a.name)!=null?b:"";var c,d,e;this.trackerLogo=(e=(c=this.currentTracker)==null?void 0:(d=c.branding)==null?void 0:d.logoUrl)!=null?e:"";var f,h,k;this.trackerCoc=(k=(f=this.currentTracker)==null?void 0:(h=f.branding)==null?void 0:h.cocUrl)!=null?k:""};h8c.\u0275fac=function(a){return new (a||h8c)};
h8c.\u0275cmp=y({type:h8c,selectors:[["b-footer"]],standalone:!1,decls:1,vars:1,consts:[["href","https://policies.google.com/privacy","target","_blank"],[1,"padded-s-sides"],["href","https://policies.google.com/terms","target","_blank"],["alt","",1,"logo",3,"src"],[1,"title"],["id","code-of-conduct","target","_blank",3,"href"]],template:function(a,b){a&1&&F(0,Fpb,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 IY=function(){};IY.\u0275fac=function(a){return new (a||IY)};IY.\u0275mod=uf({type:IY});IY.\u0275inj=Dd({imports:[HC]});var JY=function(){var a=this;this.paths=r(oN);this.context=r(LK);this.activeSession=r(Bs);this.componentFridge=r(BB);this.createIssuePath=this.paths.createIssue();this.currentTracker=this.activeSession.getTracker();this.component$=this.context.getComponentId().pipe(xg(function(d){return d?a.componentFridge.watch(d):Nf(void 0)}),C(function(d){return d&&!d.archived?d:void 0}));this.visibleOptions$=Uf([this.component$,this.context.getIssueId(),this.context.getHotlistId()]).pipe(ng(0),C(function(d){var e=
l(d);d=e.next().value;var f=e.next().value;e=e.next().value;return i8c(a,a.currentTracker,d,f,e)}));this.buttonLabel$=this.visibleOptions$.pipe(C(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"};JY.prototype.ngOnInit=function(){};JY.prototype.trackClick=function(a){Fo("create","click",a)};
var i8c=function(a,b,c,d,e){var f=new Map;b=b&&c&&b.trackerId&&b.trackerId!==c.trackerId;c=(c==null?0:c.componentId)?String(c.componentId):void 0;if(e!==null){var h={};f.set("in_same_hotlist",a.paths.createIssue((h.hotlistIds=String(e),h)))}b||c===void 0||(e={},f.set("in_same_component",a.paths.createIssue((e.component=c,e))));b||d===null||(e={},f.set("similar_to_current_issue",a.paths.createIssue((e.template_issue=d,e))),e={},f.set("blocked_by_current_issue",a.paths.createIssue((e.blockedByIssueIds=
d,e.component=c,e))),e={},f.set("blocking_current_issue",a.paths.createIssue((e.blockingIssueIds=d,e.component=c,e))),e={},f.set("parent_of_current_issue",a.paths.createIssue((e.childrenIssueIds=d,e.component=c,e))),e={},f.set("child_of_current_issue",a.paths.createIssue((e.parentIssueId=d,e.component=c,e))));return[].concat(p(f.entries())).map(function(k){var q=l(k);k=q.next().value;q=q.next().value;return{name:xQa(k),path:q}})};JY.\u0275fac=function(a){return new (a||JY)};
JY.\u0275cmp=y({type:JY,selectors:[["b-create-issue-button"]],standalone:!1,decls:2,vars:3,consts:[[3,"label","icon","href","segments"],[3,"clickMain","clickSegment","label","icon","href","segments"]],template:function(a,b){a&1&&(F(0,Hpb,2,3),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.visibleOptions$))?0:-1,c)}},dependencies:[kH,Tv],encapsulation:2,changeDetection:0});var KY=function(){this.router=r(vC);this.location=r(DH)},EOb=function(a){var b=a.location.getUrl();Mr(a.router,"/",{skipLocationChange:!0}).then(function(){return Mr(a.router,b,{skipLocationChange:!0})})};KY.\u0275fac=function(a){return new (a||KY)};KY.\u0275prov=Cd({token:KY,factory:KY.\u0275fac,providedIn:"root"});var MY=function(){Z.call(this);var a=this;this.reloadService=r(KY);this.activeSession=r(Bs);this.bLocation=r(DH);this.paths=r(oN);this.issuePagination=r(DY);this.sidebarItemFactory=r(LY);this.appEvents=r(FB);this.analytics=r(RE);this.currentUserBookmarksFridge=r(hD);this.sidebarData={hotlists:[],bookmarkGroups:[],archivedHotlists:[],archivedBookmarkGroups:[],userSearches:[]};this.userSavedSearches=[];this.userHotlists=[];this.subscriptions.add(huc(this.currentUserBookmarksFridge).subscribe(function(b){a.sidebarData.hotlists=
j8c(a,b.hotlists);a.sidebarData.bookmarkGroups=k8c(a,b.bookmarkGroups);a.sidebarData.archivedHotlists=j8c(a,b.archivedHotlists);a.sidebarData.archivedBookmarkGroups=k8c(a,b.archivedBookmarkGroups);a.appEvents.sidebarUpdated.next()}));this.subscriptions.add(iuc(this.currentUserBookmarksFridge).subscribe(function(b){b=l8c(a,b);a.sidebarData.userSearches=b;Gaa(a.userSavedSearches);Haa(a.userSavedSearches,b);a.appEvents.sidebarUpdated.next()}));this.subscriptions.add(iD(this.currentUserBookmarksFridge).subscribe(function(b){m8c(a,
b);a.appEvents.sidebarUpdated.next()}))};Y(MY,Z);MY.\u0275dir=Z.\u0275dir;
var j8c=function(a,b){return b.map(function(c){return n8c(a.sidebarItemFactory,c)}).sort(function(c,d){return c.name.localeCompare(d.name)})},k8c=function(a,b){return b.map(function(c){var d=a.sidebarItemFactory;return new o8c(c,d.activeSession,d.analytics,d.userApi,d.bookmarkGroupsApi,d.butterBar,d.paths,d.userPreferencesManager,d.errorHandler,d,d.confirmationDialogService,d.appEvents)})},l8c=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 p8c(a.sidebarItemFactory,c)})},m8c=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 n8c(a.sidebarItemFactory,c)});Gaa(a.userHotlists);Haa(a.userHotlists,b)};
MY.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||(R7c(this.issuePagination),CQc(this.paths,a)&&EOb(this.reloadService),this.bLocation.setUrl(a),b.preventDefault(),b.stopPropagation())};MY.\u0275fac=function(a){return new (a||MY)};MY.\u0275prov=Cd({token:MY,factory:MY.\u0275fac,providedIn:"root"});
var NY=function(a,b,c,d,e,f,h,k){this.item=a;this.analytics=c;this.userApi=d;this.bookmarkGroupsApi=e;this.butterBar=f;this.paths=h;this.userPreferencesManager=k;this.id=a.id;this.name=a.name;this.description=a.description;this.adminUsers=a.adminUsers;this.starred=a.starred;this.userEmail=b.getUserEmail()};NY.prototype.getDisplayName=function(){return this.item.name?this.item.name:"resourceType"in this.item?mj(this.item.resourceType.toLowerCase())+" "+this.item.id:this.item.id};
NY.prototype.isEditable=function(){return q8c(this)};NY.prototype.isSelected=function(){var a=this.paths,b=this.href;b=b.charAt(0)!=="/"?"/"+b:b;return a.bLocation.path()===b};NY.prototype.isUnstarable=function(){return!q8c(this)&&this.starred};
var q8c=function(a){return a.adminUsers.some(function(b){return b.emailAddress===a.userEmail})},r8c=function(a,b){var c=jG(a.userPreferencesManager).homepagePreferences;return(c==null?void 0:c.resourceId)===a.id&&c.resourceType===b},s8c=function(a,b){Kq(a.butterBar,"Updating homepage...",0);zzc(a.userPreferencesManager,{resourceType:b,resourceId:a.id}).pipe(mg(1)).subscribe(function(){Kq(a.butterBar,"Homepage updated")})},t8c=function(a,b,c,d,e,f,h,k,q,v,A,E){NY.call(this,a,b,c,d,e,h,k,q);this.hotlistApi=
f;this.errorHandler=v;this.confirmationDialogService=A;this.appEvents=E;this.href=Dq.viewHotlist.makeHref(a.id);this.type="HOTLIST"};Y(t8c,NY);g=t8c.prototype;g.isPreferredHomepage=function(){return r8c(this,"HOTLIST")};g.setAsPreferredHomepage=function(){s8c(this,"HOTLIST")};
g.archive=function(){var a=this;Kq(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});Kq(a.butterBar,'Archived hotlist "'+a.name+'".');a.analytics.trackEvent("sidebarItem","archived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unarchive=function(){var a=this;Kq(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});Kq(a.butterBar,'Unarchived hotlist "'+a.name+'".');a.analytics.trackEvent("sidebarItem","unarchived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unstar=function(){var a=this;this.confirmationDialogService.open({title:"Unstar hotlist: "+this.name,content:Xi("Unstarring a hotlist will remove it from your sidebar. You can restore the hotlist at any time from the hotlist's page."),onConfirm:function(){a.doUnstar()}})};
g.doUnstar=function(){var a=this;Kq(this.butterBar,"Unstarring hotlist ID "+this.id+"...");this.userApi.removeUserBookmark({resourceType:"HOTLIST",resourceId:this.id}).then(function(){Kq(a.butterBar,"Unstarred hotlist ID "+a.id);a.appEvents.hotlistChanged.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};var OY=function(a,b,c,d,e,f,h,k){NY.call(this,a,b,c,d,e,f,h,k);this.href=h.viewSavedSearch(a.id);this.type="SAVED_SEARCH"};Y(OY,NY);OY.prototype.isUnstarable=function(){return!1};
OY.prototype.unstar=function(){};OY.prototype.isPreferredHomepage=function(){return r8c(this,"SAVED_SEARCH")};OY.prototype.setAsPreferredHomepage=function(){s8c(this,"SAVED_SEARCH")};
var o8c=function(a,b,c,d,e,f,h,k,q,v,A,E){NY.call(this,a,b,c,d,e,f,h,k);this.errorHandler=q;this.sidebarItemFactory=v;this.confirmationDialogService=A;this.appEvents=E;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(n8c(this.sidebarItemFactory,b));break;case "SAVED_SEARCH":this.items.push(p8c(this.sidebarItemFactory,b))}this.items.sort(function(H,L){return H.name.localeCompare(L.name)})};Y(o8c,NY);g=o8c.prototype;
g.isPreferredHomepage=function(){return r8c(this,"BOOKMARK_GROUP")};g.setAsPreferredHomepage=function(){s8c(this,"BOOKMARK_GROUP")};
g.archive=function(){var a=this;Kq(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});Kq(a.butterBar,'Archived bookmark group "'+a.name+'".');a.analytics.trackEvent("sidebarItem","archived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unarchive=function(){var a=this;Kq(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});Kq(a.butterBar,'Unarchived bookmark group "'+a.name+'".');a.analytics.trackEvent("sidebarItem","unarchived")}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.unstar=function(){var a=this;this.confirmationDialogService.open({title:"Unstar bookmark group: "+this.name,content:Xi("Unstarring a bookmark group will remove it from your sidebar. You can restore it at any time from the bookmark group's page."),onConfirm:function(){a.doUnstar()}})};
g.doUnstar=function(){var a=this;Kq(this.butterBar,"Unstarring bookmark group ID "+this.id+"...");this.userApi.removeUserBookmark({resourceType:"BOOKMARK_GROUP",resourceId:this.id}).then(function(){Kq(a.butterBar,"Unstarred bookmark group ID "+a.id);a.appEvents.bookmarkGroupModified.next()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var LY=function(){this.activeSession=r(Bs);this.userApi=r(bD);this.bookmarkGroupsApi=r(iB);this.hotlistApi=r(YC);this.errorHandler=r(aK);this.paths=r(oN);this.analytics=r(RE);this.butterBar=r(GJ);this.userPreferencesManager=r(iG);this.confirmationDialogService=r(YJ);this.appEvents=r(FB)},n8c=function(a,b){return new t8c(b,a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.hotlistApi,a.butterBar,a.paths,a.userPreferencesManager,a.errorHandler,a.confirmationDialogService,a.appEvents)},p8c=
function(a,b){return new OY(b,a.activeSession,a.analytics,a.userApi,a.bookmarkGroupsApi,a.butterBar,a.paths,a.userPreferencesManager)};LY.\u0275fac=function(a){return new (a||LY)};LY.\u0275prov=Cd({token:LY,factory:LY.\u0275fac,providedIn:"root"});var PY=function(){this.prefs=r(iG);this.expanded=!0;this.content=this.header=null;this.onExpand=new LE};PY.prototype.ngOnInit=function(){this.prefKey&&(this.expanded=!Bzc(this.prefs,this.prefKey))};PY.prototype.onClick=function(){var a=this,b,c;return z(function(d){if(d.nextAddress==1){b=!a.expanded;a.expanded=b;if(!a.prefKey)return d.jumpTo(2);c={};return B(d,Rf(Azc(a.prefs,(c[a.prefKey]=!b,c))),2)}a.expanded&&a.onExpand.next();Lf(d)})};PY.\u0275fac=function(a){return new (a||PY)};
PY.\u0275cmp=y({type:PY,selectors:[["sidebar-zippy"]],inputs:{expanded:"expanded",header:"header",content:"content",prefKey:"prefKey"},outputs:{onExpand:"onExpand"},standalone:!1,decls:3,vars:7,consts:[["tabindex","0","role","tab",1,"bv2-nav-expandable-header",3,"click","keydown.enter","keydown.space"],[4,"ngTemplateOutlet"]],template:function(a,b){a&1&&(J(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()}),D(1,Ipb,1,0,"ng-container",1),K(),F(2,Kpb,1,1,"ng-container"));a&2&&(uh("opened",b.expanded)("closed",!b.expanded),Lg("aria-expanded",b.expanded),x(),I("ngTemplateOutlet",b.header),x(),G(b.expanded?2:-1))},dependencies:[Sv],encapsulation:2});var u8c=function(){return[]},QY=function(){var a=this;this.location=r(Mi);this.starredTeamsService=r(kG);this.bLocation=r(DH);this.triageService=r(nG);this.sidebar=r(MY);this.routeParamsService=r(CK);this.teamExperimentalFieldsFridge=r(XF);this.teamFridge=r(YF);this.ROUTES=Dq;this.ALL_PHASES=Aoc;this.phaseToUrlSlug=Nr;this.triageTeamIdFromUrl$=this.routeParamsService.routeParams$.pipe(C(function(b){return b.phase&&b.teamId}));this.triageIdFromUrl$=this.routeParamsService.routeParams$.pipe(C(function(b){return b.phase&&
b.triageId}));this.triageViewFromUrl$=Uf([this.triageTeamIdFromUrl$,this.triageIdFromUrl$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;if(b&&c)return{teamId:b,triageId:c}}));this.sidebarTriagePreferences$=Uf([this.starredTeamsService.starredTriageViews$,this.triageViewFromUrl$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return[].concat(p(b),[c]).filter(Qj)}),C(function(b){return rj(b,function(c){return c.teamId+":"+c.triageId})}));this.teamExperiments$=this.sidebarTriagePreferences$.pipe(C(function(b){return b.map(function(c){return c.teamId})}),
C(function(b){return sj(b.filter(Qj))}),xg(function(b){return a.teamExperimentalFieldsFridge.watchSet(b)}),C(function(b){return new Map(b.map(function(c){return[c.id,c]}))}));this.teamIdToTriageViews$=this.teamExperiments$.pipe(C(function(b){return xsa(b,function(c){return oj(c.triage,function(d){return d.id})})}));this.triageSidebarEntries$=Uf([this.teamIdToTriageViews$,this.sidebarTriagePreferences$]).pipe(C(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=[];d=l(d);for(var e=d.next();!e.done;e=
d.next()){e=e.value;var f=e.teamId,h=e.triageId,k=void 0,q=(k=b.get(f))==null?void 0:k.get(Number(h));q?(h=a.teamFridge.watch(f),c.push({teamId:f,triageId:e.triageId,displayName$:HJa(h,f,q)})):console.log("triage not found",f,h)}return c}))},Upb=function(a,b,c){return a.routeParamsService.routeParams$.pipe(C(function(d){return!(d.teamId!==b||d.triageId!==c||!d.phase&&!a.location.path().endsWith("issue-themes"))}))};
QY.prototype.isTriageUrlFor=function(a,b,c){return this.location.path().startsWith(Dq.viewTriage.makeHref(a,c,Nr[b],""))};QY.prototype.goToTriageSettingsPage=function(){this.bLocation.setUrl(Dq.triageSettings.makeHref())};QY.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};QY.\u0275fac=function(a){return new (a||QY)};
QY.\u0275cmp=y({type:QY,selectors:[["nav-sidebar-triage"]],standalone:!1,decls:2,vars:4,consts:[["mainZippyHeader",""],["mainZippyContent",""],["triageMenu",""],["triageZippyHeader",""],["triageZippyContent",""],[1,"canned-searches"],[3,"href"],["svgIcon","story-point-24px",1,"canned-search-icon"],["prefKey","nav-triage",3,"header","content"],[1,"chip-new"],["type","button","mat-icon-button","","disableRipple","true","aria-label","Configure triage",1,"bv2-nav-item-menubutton",3,"click","matMenuTriggerFor"],
["svgIcon","more-settings-vertical"],["matMenuContent",""],["type","button","mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,"click"],[1,"triage-teams-list"],[3,"title"],[3,"onExpand","header","content","expanded"],[1,"bv2-nav-item","bv2-nav-triage-team","full-width"],[1,"bv2-nav-item-text","no-indent"],[1,"bv2-nav-links-no-indent","triage-team-phase-list"],[1,"bv2-nav-item",3,"selected-indented","title"],["title","Issue Themes",1,"bv2-nav-item"],[1,"bv2-nav-indented","flex-kids-x","padded-s-right",
3,"href"],["svgIcon","issue-status-new",1,"vertical-centered","icon-s"],[1,"bv2-nav-item",3,"title"],[1,"bv2-nav-indented","flex-kids-x","padded-s-right",3,"click","href"],[1,"margin-left-auto"]],template:function(a,b){a&1&&(F(0,Ypb,2,1),U(1,"async"));if(a&2){var c,d;G((c=(d=V(1,1,b.triageSidebarEntries$))!=null?d:Gh(3,u8c))?0:-1,c)}},dependencies:[FC,oG,Kx,pG,sG,qG,rG,uG,pL,PY,Tv],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 RY=function(){this.location=r(DH);this.analytics=r(RE);this.paths=r(oN);this.sidebar=r(MY);this.bookmarkGroups=[];this.hotlists=[]};g=RY.prototype;g.handleBookmarkGroupOpen=function(a){this.analytics.trackEvent("sidebarArchived","open");this.location.setUrl(this.paths.viewBookmarkGroup(a))};g.handleBookmarkGroupDashboard=function(a){this.analytics.trackEvent("sidebarArchived","dashboard");this.location.setUrl(Gq(Dq.viewDashboard.routeDeclarationPath,{id:a}))};g.openEditHotlist=function(a){this.location.setUrl(Dq.editHotlist.makeHref(a))};
g.openEditBookmarkGroup=function(a){this.location.setUrl(this.paths.editBookmarkGroup(a))};g.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};RY.\u0275fac=function(a){return new (a||RY)};
RY.\u0275cmp=y({type:RY,selectors:[["sidebar-archived"]],inputs:{bookmarkGroups:"bookmarkGroups",hotlists:"hotlists"},standalone:!1,decls:1,vars:1,consts:[["zippyHeader",""],["zippyContent",""],["bgZippyHeader",""],["bgZippyContent",""],["groupMenu",""],["hotlistMenu",""],["prefKey","nav-archived",3,"header","content"],[1,"archived-list"],[3,"title"],[1,"bv2-nav-item","bv2-user-hotlists-hotlist-item",3,"selected","id","title"],[3,"header","content"],[1,"bv2-nav-item","bv2-nav-bookmark-group"],[1,
"bv2-nav-item-text"],["type","button","mat-icon-button","","disableRipple","true","aria-label","Bookmark group actions",1,"bv2-nav-item-menubutton","keep-focus-ring",3,"matMenuTriggerFor"],["matMenuContent",""],["type","button","mat-icon-button","","disableRipple","true","aria-label","Bookmark group actions",1,"bv2-nav-item-menubutton","keep-focus-ring",3,"click","matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["type","button","mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,"click"],
["type","button","mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem"],[1,"bv2-nav-links-no-indent","bookmark-group-content-list"],[1,"bv2-nav-item",3,"selected-indented","bv2-bookmark-group-hotlist-item","bv2-bookmark-group-saved-search-item","title"],[1,"bv2-nav-item",3,"title"],[1,"bv2-nav-indented",3,"click","href"],[1,"bv2-nav-item","bv2-user-hotlists-hotlist-item",3,"id","title"],[3,"click","href"],["type","button","mat-icon-button","","disableRipple","true","aria-label","Hotlist actions",
1,"bv2-nav-item-menubutton","keep-focus-ring",3,"matMenuTriggerFor"]],template:function(a,b){a&1&&F(0,nqb,7,2,"div");a&2&&G(b.hotlists.length||b.bookmarkGroups.length?0:-1)},dependencies:[FC,oG,Kx,pG,sG,qG,rG,uG,PY],encapsulation:2,changeDetection:0});var SY=function(){this.admins=[]};SY.prototype.ngOnInit=function(){this.url="bookmark-groups/"+this.bookmarkGroup.bookmarkGroupId;this.admins=xj(this.bookmarkGroup.adminUsers)};SY.\u0275fac=function(a){return new (a||SY)};
SY.\u0275cmp=y({type:SY,selectors:[["b-bookmark-group-card"]],inputs:{bookmarkGroup:"bookmarkGroup"},standalone:!1,decls:14,vars:6,consts:[["role","dialog","aria-label","Bookmark group hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"bookmark-group-card"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(J(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3")(4,"a",3),R(5),K()(),J(6,"ul")(7,"li"),R(8),K(),J(9,"li"),R(10),K()(),J(11,"div")(12,"p"),R(13),K()()()()());a&2&&(x(4),
I("href",b.url,hf),x(),wh(b.bookmarkGroup.name),x(3),T("ID: ",b.bookmarkGroup.bookmarkGroupId),x(2),xh("",b.admins.length===1?"Admin":"Admins",": ",b.admins.join(", ")),x(3),wh(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 v8c=["searchBox"],TY=function(){this.cdr=r(NE,{self:!0});this.activeSession=r(Bs);this.userApi=r(bD);this.bookmarkGroupsApi=r(iB);this.hotlistApi=r(YC);this.paths=r(oN);this.analytics=r(RE);this.errorHandler=r(aK);this.appEvents=r(FB);this.currentUserBookmarksFridge=r(hD);this.allowStarring=this.showHotlists=this.showGroups=!0;this.focusOnInit=!1;this.itemSelect=new LE;this.lastProcessedIndex=-1;this.nextRequestIndex=0;this.favoriteBookmarkGroups=new Set;this.favoriteHotlists=new Set;this.currentUserEmail=
this.activeSession.getUserEmail();this.query="";this.matches=[]};TY.prototype.ngOnInit=function(){this.allowStarring&&w8c(this)};TY.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 w8c=function(a){a.favoriteBookmarkGroups.clear();a.favoriteHotlists.clear();Rf(huc(a.currentUserBookmarksFridge)).then(function(b){if(a.showGroups)for(var c=l(b.bookmarkGroups),d=c.next();!d.done;d=c.next()){d=d.value;d.starred&&a.favoriteBookmarkGroups.add(d.id);var e=void 0;d=l((e=d.sublinks)!=null?e:[]);for(e=d.next();!e.done;e=d.next())e=e.value,e.starred&&a.favoriteHotlists.add(e.id)}if(a.showHotlists)for(b=l(b.hotlists),c=b.next();!c.done;c=b.next())c=c.value,c.starred&&a.favoriteHotlists.add(c.id);
a.cdr.detectChanges()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};g=TY.prototype;g.reset=function(){this.query="";this.matches=[]};g.isLoading=function(){return this.lastProcessedIndex+1!==this.nextRequestIndex};g.onQueryChange=function(){this.matches=[];this.query&&typeof this.query!=="string"&&(this.query="");this.search()};
g.search=function(){var a=this,b=this.nextRequestIndex++;if(this.query){var c=this.showGroups?this.bookmarkGroupsApi.query(this.query):Promise.resolve([]);var d=this.showHotlists?this.hotlistApi.queryHotlists(this.query):Promise.resolve([]);Promise.all([c,d]).then(function(e){var f=l(e);e=f.next().value;f=f.next().value;if(b===a.nextRequestIndex-1){for(var h=l(e),k=h.next();!k.done;k=h.next()){k=k.value;var q=k.bookmarkGroupId;k.href=a.paths.viewBookmarkGroup(q);k.isGroup=!0;k.isStarred=a.favoriteBookmarkGroups.has(q)}h=
l(f);for(k=h.next();!k.done;k=h.next())k=k.value,q=k.hotlistId,k.href=Dq.viewHotlist.makeHref(q),k.isGroup=!1,k.isStarred=a.favoriteHotlists.has(q);a.matches=[].concat(p(e),p(f));a.lastProcessedIndex=b;a.cdr.detectChanges()}})}else this.lastProcessedIndex=b};g.shouldShowStar=function(a){return this.allowStarring&&!xj(a.adminUsers).includes(this.currentUserEmail)};
g.toggleStar=function(a){var b=this;if(a.isGroup){var c=a.bookmarkGroupId;var d="BOOKMARK_GROUP"}else c=a.hotlistId,d="HOTLIST";a.isStarred=!a.isStarred;var e=function(){b.appEvents.hotlistChanged.next();b.appEvents.favoritesModified.next();w8c(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))};
TY.\u0275fac=function(a){return new (a||TY)};
TY.\u0275cmp=y({type:TY,selectors:[["b-hotlist-search"]],viewQuery:function(a,b){a&1&&(hh(v8c,5),hh(dM,5));if(a&2){var c;lh(c=mh())&&(b.searchBoxEl=c.first);lh(c=mh())&&(b.autocomplete=c.first)}},hostAttrs:[1,"'bv2-hotlist-search'"],inputs:{showGroups:"showGroups",showHotlists:"showHotlists",allowStarring:"allowStarring",focusOnInit:"focusOnInit"},outputs:{itemSelect:"itemSelect"},standalone:!1,features:[Fh([NE])],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();J(0,"div",3)(1,"input",4,0);Ah("ngModelChange",function(d){u(c);zh(b.query,d)||(b.query=d);return w(d)});N("ngModelChange",function(){u(c);return w(b.onQueryChange())})("keydown.space",function(d){u(c);return w(b.onSpace(d))});K();F(3,oqb,1,0,"b-spinner");J(4,"mat-autocomplete",5,1);N("optionSelected",function(d){u(c);b.itemSelect.emit(d.option.value);return w()});Pg(6,sqb,9,7,"mat-option",6,Og);K();
J(8,"div",7);R(9,' e.g., "foo bar admin:user@google.com" ');M(10,"br");R(11,' or "foo bar admin:group@google.com" ');M(12,"br");R(13," Only identities directly listed as Admins can be searched. ");K()()}a&2&&(a=Q(5),x(),yh("ngModel",b.query),I("matAutocomplete",a),Lg("autofocus",b.focusOnInit)("aria-label","Add query for searching "+(b.showGroups?"bookmark groups":"hotlists")),x(2),G(b.isLoading()?3:-1),x(3),Qg(b.matches))},dependencies:[SY,HT,DI,JI,yN,fS,Ui,dy,ky,fM,cM,Bx,dM],encapsulation:2});var UY=function(){this.allowStarring=this.showHotlists=this.showGroups=!0;this.ariaLabel="";this.itemSelect=new LE};UY.\u0275fac=function(a){return new (a||UY)};
UY.\u0275cmp=y({type:UY,selectors:[["b-hotlist-search-popup"]],viewQuery:function(a,b){a&1&&hh(yM,5);if(a&2){var c;lh(c=mh())&&(b.dialog=c.first)}},inputs:{showGroups:"showGroups",showHotlists:"showHotlists",allowStarring:"allowStarring",ariaLabel:[0,"aria-label","ariaLabel"]},outputs:{itemSelect:"itemSelect"},standalone:!1,decls:4,vars:2,consts:[["popup",""],["matTooltip","Search","dialogLabel","Search",3,"xapInlineDialogClick"],["svgIcon","search"],[3,"itemSelect","showGroups","showHotlists","allowStarring",
"focusOnInit"]],template:function(a,b){a&1&&(J(0,"xap-icon-trigger",1),M(1,"mat-icon",2),K(),D(2,tqb,3,4,"ng-template",null,0,Lh));a&2&&(a=Q(3),I("xapInlineDialogClick",a),Lg("aria-label",b.ariaLabel))},dependencies:[FC,uM,tM,zG,xG,yM,BM,TY],styles:["xap-dialog-layout[_ngcontent-%COMP%] { padding: 16px; }","xap-dialog-layout-content[_ngcontent-%COMP%] { padding: 0; }"]});var VY=function(){this.location=r(DH);this.analytics=r(RE);this.paths=r(oN);this.sidebar=r(MY);this.bookmarkGroups=[]};VY.prototype.handleBookmarkGroupOpen=function(a){this.analytics.trackEvent("sidebarBookmarkGroups","open");this.location.setUrl(this.paths.viewBookmarkGroup(a))};VY.prototype.handleBookmarkGroupDashboard=function(a){this.analytics.trackEvent("sidebarBookmarkGroups","dashboard");this.location.setUrl(Gq(Dq.viewDashboard.routeDeclarationPath,{id:a}))};
VY.prototype.editBookmarkGroup=function(a){this.location.setUrl(this.paths.editBookmarkGroup(a))};VY.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};VY.\u0275fac=function(a){return new (a||VY)};
VY.\u0275cmp=y({type:VY,selectors:[["sidebar-bookmark-groups"]],inputs:{bookmarkGroups:"bookmarkGroups"},standalone:!1,decls:7,vars:2,consts:[["zippyHeader",""],["zippyContent",""],["bgZippyHeader",""],["bgZippyContent",""],["topMenu",""],["innerMenu",""],[1,"bv2-nav-section"],["prefKey","nav-bkg",3,"header","content"],["aria-label","Search for bookmark groups",3,"itemSelect","click","showHotlists"],[1,"bookmark-group-list"],[3,"title"],[3,"header","content","expanded"],[1,"bv2-nav-item","bv2-nav-bookmark-group"],
[1,"bv2-nav-item-text"],["type","button","mat-icon-button","","disableRipple","true","aria-label","Bookmark group actions",1,"bv2-nav-item-menubutton","keep-focus-ring",3,"matMenuTriggerFor"],["matMenuContent",""],["type","button","mat-icon-button","","disableRipple","true","aria-label","Bookmark group actions",1,"bv2-nav-item-menubutton","keep-focus-ring",3,"click","matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["type","button","mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem",3,
"click"],["type","button","mat-menu-item","",1,"bv2-user-hotlists-edit-menuitem"],[1,"bv2-nav-links-no-indent","bookmark-group-content-list"],[1,"bv2-nav-item",3,"selected-indented","bv2-bookmark-group-hotlist-item","bv2-bookmark-group-saved-search-item","title"],[1,"bv2-nav-item",3,"title"],[1,"bv2-nav-indented",3,"click","href"],["type","button","mat-icon-button","","disableRipple","true","aria-label","Bookmark item actions",1,"bv2-nav-item-menubutton",3,"matMenuTriggerFor"]],template:function(a){a&
1&&(J(0,"div",6),M(1,"hr"),J(2,"sidebar-zippy",7),D(3,uqb,3,1,"ng-template",null,0,Lh)(5,Jqb,1,1,"ng-template",null,1,Lh),K()());if(a&2){a=Q(4);var b=Q(6);x(2);I("header",a)("content",b)}},dependencies:[FC,UY,oG,Kx,pG,sG,qG,rG,uG,PY],encapsulation:2,changeDetection:0});var WY=function(){Z.call(this);var a=this;this.location=r(DH);this.activeSession=r(Bs);this.analytics=r(RE);this.sidebar=r(MY);this.paths=r(oN);this.routerEvents=r(QE);this.cdr=r(Hv);this.mcPrefs=r(nX);this.ENABLE_MISSION_CONTROL=this.activeSession.isInternalSession();this.userEmail=this.activeSession.getUserEmail();this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(function(){a.cdr.detectChanges()}))};Y(WY,Z);WY.\u0275dir=Z.\u0275dir;WY.prototype.getUserEmail=function(){return this.userEmail};
WY.prototype.openEditHotlist=function(a){this.location.setUrl(Dq.editHotlist.makeHref(a))};WY.prototype.addToMissionControl=function(a){this.mcPrefs.addHotlist(a);this.location.setUrl(this.paths.home())};WY.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};WY.\u0275fac=function(a){return new (a||WY)};
WY.\u0275cmp=y({type:WY,selectors:[["sidebar-hotlists"]],inputs:{hotlists:"hotlists"},standalone:!1,features:[Bg],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&&(J(0,"div",
3),M(1,"hr"),J(2,"sidebar-zippy",4),D(3,Kqb,3,1,"ng-template",null,0,Lh)(5,Sqb,1,1,"ng-template",null,1,Lh),K()());if(a&2){a=Q(4);var b=Q(6);x(2);I("header",a)("content",b)}},dependencies:[FC,UY,oG,Kx,pG,sG,qG,rG,uG,PY],encapsulation:2,changeDetection:0});var XY=function(){Z.call(this);var a=this;this.cdr=r(NE,{self:!0});this.location=r(DH);this.savedSearchApi=r(fD);this.paths=r(oN);this.butterBar=r(GJ);this.analytics=r(RE);this.sidebar=r(MY);this.errorHandler=r(aK);this.routerEvents=r(QE);this.confirmationDialogService=r(YJ);this.appEvents=r(FB);this.mcPrefs=r(nX);this.activeSession=r(Bs);this.ENABLE_MISSION_CONTROL=this.activeSession.isInternalSession();this.searches=[];this.subscriptions.add(this.routerEvents.routeChangeSuccess.subscribe(function(){a.cdr.detectChanges()}))};
Y(XY,Z);XY.\u0275dir=Z.\u0275dir;XY.prototype.openEditSavedSearch=function(a){this.location.setUrl(this.paths.editSavedSearch(a))};XY.prototype.addToMissionControl=function(a){oX(this.mcPrefs,wab(a));this.location.setUrl(this.paths.home())};
var Wqb=function(a,b){a.confirmationDialogService.open({title:"Deleting saved search: "+b.name,content:Xi("Are you sure you want to delete this search?"),isDestructive:!0,onConfirm:function(){x8c(a,b)}})},x8c=function(a,b){var c=b.id;Kq(a.butterBar,'Deleting saved search "'+b.name+'"...');a.savedSearchApi.delete(c).then(function(){a.appEvents.savedSearchModified.next({savedSearchId:c,action:"delete"});Kq(a.butterBar,'Deleted saved search "'+b.name+'".');a.analytics.trackEvent("sidebarSavedSearches",
"deleted");a.cdr.detectChanges()}).catch(function(d){a.errorHandler.errorHandler(null,d)})};XY.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};XY.\u0275fac=function(a){return new (a||XY)};
XY.\u0275cmp=y({type:XY,selectors:[["sidebar-saved-searches"]],inputs:{searches:"searches"},standalone:!1,features:[Fh([NE]),Bg],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&&(J(0,"div",3),M(1,"hr"),J(2,"sidebar-zippy",4),D(3,Tqb,2,0,"ng-template",null,0,Lh)(5,$qb,1,1,"ng-template",null,
1,Lh),K()());if(a&2){a=Q(4);var b=Q(6);x(2);I("header",a)("content",b)}},dependencies:[FC,oG,Kx,pG,sG,qG,rG,uG,PY],encapsulation:2,changeDetection:0});var y8c=function(){};y8c.\u0275fac=function(a){return new (a||y8c)};
y8c.\u0275cmp=y({type:y8c,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 YY=function(){this._ngZone=r(Ph);this._elementRef=r(Te);this._ariaDescriber=r(Cw);this._renderer=r(Ji);this._animationsDisabled=Ri();this._idGenerator=r(Fi);this._color="primary";this.overlap=!0;this.position="above after";this.size="medium";this._isInitialized=!1;this._interactivityChecker=r(mw);this._document=r(ui);var a=r(Di);a.load(y8c);a.load(nw)};g=YY.prototype;
g.ngOnInit=function(){this._clearExistingBadges();this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content));this._isInitialized=!0};g.ngOnDestroy=function(){if(this._renderer.destroyNode){this._renderer.destroyNode(this._badgeElement);var a;(a=this._inlineBadgeDescription)==null||a.remove()}Dw(this._ariaDescriber,this._elementRef.nativeElement,this.description)};
g._isHostInteractive=function(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})};
g._createBadgeElement=function(){var a=this._renderer.createElement("span");a.setAttribute("id",this._idGenerator.getId("mat-badge-content-"));a.setAttribute("aria-hidden","true");a.classList.add("mat-badge-content");this._animationsDisabled&&a.classList.add("_mat-animation-noopable");this._elementRef.nativeElement.appendChild(a);typeof requestAnimationFrame!=="function"||this._animationsDisabled?a.classList.add("mat-badge-active"):this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){a.classList.add("mat-badge-active")})});
return a};g._updateRenderedContent=function(a){a=(""+(a!=null?a:"")).trim();this._isInitialized&&a&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement());this._badgeElement&&(this._badgeElement.textContent=a);this._content=a};
g._updateDescription=function(a){Dw(this._ariaDescriber,this._elementRef.nativeElement,this.description);a&&!this._isHostInteractive()||this._removeInlineDescription();this._description=a;this._isHostInteractive()?Vic(this._ariaDescriber,this._elementRef.nativeElement,a):this._updateInlineDescription()};
g._updateInlineDescription=function(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden"));this._inlineBadgeDescription.textContent=this.description;var a;(a=this._badgeElement)==null||a.appendChild(this._inlineBadgeDescription)};g._removeInlineDescription=function(){var a;(a=this._inlineBadgeDescription)==null||a.remove();this._inlineBadgeDescription=void 0};
g._setColor=function(a){var b=this._elementRef.nativeElement.classList;b.remove("mat-badge-"+this._color);a&&b.add("mat-badge-"+a)};g._clearExistingBadges=function(){for(var a=l(Array.from(this._elementRef.nativeElement.querySelectorAll(":scope > .mat-badge-content"))),b=a.next();!b.done;b=a.next())b=b.value,b!==this._badgeElement&&b.remove()};
nd.Object.defineProperties(YY.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)}}});YY.\u0275fac=function(a){return new (a||YY)};
YY.\u0275dir=vf({type:YY,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(a,b){a&2&&uh("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",$h],disabled:[2,"matBadgeDisabled","disabled",$h],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",$h]}});var ZY=function(){var a=this;this.cdr=r(NE,{self:!0});this.activeSession=r(Bs);this.butterBar=r(GJ);this.appSearchState=r(bX);this.paths=r(oN);this.userPreferencesManager=r(iG);this.sidebar=r(MY);this.location=r(Mi);this.appEvents=r(FB);this.missionControlPrefs=r(nX);this.needsAttentionTaskFridge=r(CF);this.bLocation=r(DH);this.ROUTES=Dq;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:U5c(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:W5c(this.userEmail)});this.reportedPath=this.paths.listIssues({q:"reporter:"+this.userEmail});this.componentsPath=Dq.listComponents.makeHref();
this.createBookmarkGroupPath=this.paths.createBookmarkGroup();this.missionControlPath=this.paths.home();this.sidebarData=this.sidebar.sidebarData;this.enableTriageView=OA(this.activeSession,"enableTeamScope")&&this.activeSession.isInternalSession();this.enableMissionControlInExternalEnvironments=OA(this.activeSession,"enableMissionControlInExternalEnvironments");this.enableHomepage=!this.activeSession.isAnonymous()&&(this.activeSession.isInternalSession()||this.enableMissionControlInExternalEnvironments);
this.paths.listIssues({q:"vote:true"});this.homepagePreferences$=this.userPreferencesManager.preferences$.pipe(C(function(d){return(d||GA).homepagePreferences}));this.hasPreferredHomepage$=this.homepagePreferences$.pipe(C(function(d){return!(!d||!d.resourceType)}),og());this.isHomepageMissionControl$=this.homepagePreferences$.pipe(C(function(d){return d.resourceType==="MISSION_CONTROL"}),og());this.isHomepageAssignedToMe$=this.homepagePreferences$.pipe(C(function(d){return!a.enableHomepage&&!d.resourceType||
d.resourceType==="ASSIGNED_TO_ME"}),og());this.hideBadgeInNav$=this.userPreferencesManager.preferences$.pipe(C(function(d){var e;return d==null?void 0:(e=d.missionControlPreferences)==null?void 0:e.hideBadgeInNav}),C(Boolean));this.destroyed$=new LE;var b,c=!!this.location.path().match(/^\/home\b/)&&!((b=this.missionControlPrefs.prefs.collapsed)==null?0:b["needs-attention-wrapper"]);OA(this.activeSession,"runQueryForSidebarIssueCount")&&setTimeout(function(){a.enableHomepage&&!c&&Uf([a.missionControlPrefs.needsAttentionTimeBoundary$,
a.missionControlPrefs.needsAttentionSources$,a.missionControlPrefs.needsAttentionFilteredSignals$]).pipe(og(function(d,e){return gj(d,e)}),xg(function(d){var e=l(d);d=e.next().value;var f=e.next().value;e=e.next().value;f=f.map(function(h){return Yo(h)});return a.needsAttentionTaskFridge.watchMany({maxTaskAgeDays:d,sources:f,signalFilter:0,filterSignals:e})}),C(function(d){return d.results.length}),yg(a.destroyed$)).subscribe(function(d){a.appEvents.missionControlTaskCount.next(d)})},1E3)};
ZY.prototype.ngOnInit=function(){var a=this;this.hasPreferredHomepage$.pipe(yg(this.destroyed$)).subscribe(function(){setTimeout(function(){a.cdr.detectChanges()})})};ZY.prototype.ngOnDestroy=function(){this.destroyed$.next()};var drb=function(a,b){Kq(a.butterBar,"Updating homepage...",0);zzc(a.userPreferencesManager,{resourceType:b}).subscribe(function(){Kq(a.butterBar,"Homepage updated")})};ZY.prototype.onAnchorClick=function(a,b){this.sidebar.onAnchorClick(a,b)};
ZY.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)};ZY.prototype.goToTriageSettingsPage=function(){this.bLocation.setUrl(Dq.triageSettings.makeHref())};ZY.\u0275fac=function(a){return new (a||ZY)};
ZY.\u0275cmp=y({type:ZY,selectors:[["b-sidebar"]],standalone:!1,features:[Fh([NE])],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();
J(0,"div",2);M(1,"b-create-issue-button");K();J(2,"div",3)(3,"div",4)(4,"ul",5);F(5,frb,12,11,"li",6);J(6,"li",7)(7,"a",8);N("click",function(d){u(c);return w(b.onAnchorClick(b.assignedPath,d))});M(8,"mat-icon",9);R(9," Assigned to me ");K();F(10,grb,2,1,"button",10);U(11,"async");J(12,"mat-menu",null,0);D(14,hrb,2,0,"ng-template",11);K()();J(15,"li")(16,"a",8);N("click",function(d){u(c);return w(b.onAnchorClick(b.starredPath,d))});M(17,"mat-icon",12);R(18," Starred by me ");K()();J(19,"li")(20,"a",
8);N("click",function(d){u(c);return w(b.onAnchorClick(b.ccdPath,d))});M(21,"mat-icon",13);R(22," CC'd to me ");K()();J(23,"li")(24,"a",8);N("click",function(d){u(c);return w(b.onAnchorClick(b.collaborateOnPath,d))});M(25,"mat-icon",13);R(26," Collaborating ");K()();J(27,"li")(28,"a",8);N("click",function(d){u(c);return w(b.onAnchorClick(b.reportedPath,d))});M(29,"mat-icon",14);R(30," Reported by me ");K()();J(31,"li")(32,"a",8);N("click",function(d){u(c);return w(b.onAnchorClick(b.verifiedPath,d))});
M(33,"mat-icon",15);R(34," To be verified ");K()()();F(35,irb,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");J(41,"div",20)(42,"a",21);R(43," Create hotlist ");K()();J(44,"div",20)(45,"a",21);R(46," Create bookmark group ");K()();J(47,"div",20)(48,"a",21);R(49," Browse components ");K()()()()}a&2&&(x(5),G(b.enableHomepage?5:-1),x(),uh("selected",V5c(b.appSearchState,b.userEmail)),x(),I("href",
b.assignedPath,hf),x(3),G(V(11,29,b.isHomepageAssignedToMe$)?-1:10),x(5),uh("selected",b.appSearchState.isStarred()),x(),I("href",b.starredPath,hf),x(3),uh("selected",b.appSearchState.currentQuery==="cc:"+b.userEmail),x(),I("href",b.ccdPath,hf),x(3),uh("selected",b.appSearchState.currentQuery==="collaborator:"+b.userEmail),x(),I("href",b.collaborateOnPath,hf),x(3),uh("selected",b.appSearchState.currentQuery==="reporter:"+b.userEmail),x(),I("href",b.reportedPath,hf),x(3),uh("selected",b.appSearchState.currentQuery===
W5c(b.userEmail)),x(),I("href",b.verifiedPath,hf),x(3),G(b.enableTriageView?35:-1),x(),I("bookmarkGroups",b.sidebarData.bookmarkGroups),x(),I("searches",b.sidebarData.userSearches),x(),I("hotlists",b.sidebarData.hotlists),x(),I("hotlists",b.sidebarData.archivedHotlists)("bookmarkGroups",b.sidebarData.archivedBookmarkGroups),x(3),I("href",b.ROUTES.createHotlist.makeHref(),hf),x(3),I("href",b.createBookmarkGroupPath,hf),x(3),I("href",b.componentsPath,hf))},dependencies:[JY,FC,oG,Kx,pG,sG,qG,rG,uG,YY,
QY,RY,VY,WY,XY,Tv],encapsulation:2});var $Y=function(){};$Y.\u0275fac=function(a){return new (a||$Y)};$Y.\u0275mod=uf({type:$Y});$Y.\u0275inj=Dd({imports:[HC]});var aZ=function(){};aZ.\u0275fac=function(a){return new (a||aZ)};aZ.\u0275mod=uf({type:aZ});aZ.\u0275inj=Dd({imports:[HC,$Y,UU,tJ,AN,gY,vM,CG,Ay,CM,jM]});var bZ=function(){};bZ.\u0275fac=function(a){return new (a||bZ)};bZ.\u0275mod=uf({type:bZ});bZ.\u0275inj=Dd({imports:[HC,nH]});var cZ=function(){};cZ.\u0275fac=function(a){return new (a||cZ)};cZ.\u0275mod=uf({type:cZ});cZ.\u0275inj=Dd({imports:[Bw,px,px]});var dZ=function(){};dZ.\u0275fac=function(a){return new (a||dZ)};dZ.\u0275mod=uf({type:dZ});dZ.\u0275inj=Dd({imports:[bZ,HC,aZ,BG,mH,cZ,gW,BC,zL]});var eZ=function(){this.executor=r(PA)};eZ.\u0275fac=function(a){return new (a||eZ)};eZ.\u0275prov=Cd({token:eZ,factory:eZ.\u0275fac,providedIn:"root"});var fZ=function(){Z.apply(this,arguments);this.dialogRef=r(KJ);this.tosApi=r(eZ);this.ackChecked=!1};Y(fZ,Z);fZ.\u0275dir=Z.\u0275dir;fZ.prototype.accept=function(){var a=this;this.tosApi.executor.post({url:"action/terms_ack",body:null,responseConstructor:null}).pipe(yg(this.destroyed$)).subscribe(function(){a.dialogRef.close()})};fZ.\u0275fac=function(){var a;return function(b){return(a||(a=Re(fZ)))(b||fZ)}}();
fZ.\u0275cmp=y({type:fZ,selectors:[["b-terms-of-service-dialog"]],standalone:!1,features:[Bg],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&&(J(0,"h1",0),R(1,"Google IssueTracker Terms of Service"),K(),J(2,"mat-dialog-content")(3,"div",1)(4,"mat-checkbox",2),
Ah("ngModelChange",function(c){zh(b.ackChecked,c)||(b.ackChecked=c);return c}),K(),J(5,"span"),R(6," I acknowledge and agree to the "),J(7,"a",3),R(8,"Google Terms of Service"),K(),R(9," and the "),J(10,"a",4),R(11,"Google IssueTracker Conduct Policy"),K(),R(12,". "),K()()(),J(13,"mat-dialog-actions")(14,"button",5),N("click",function(){return b.accept()}),R(15," OK "),K()());a&2&&(x(4),yh("ngModel",b.ackChecked),x(10),I("disabled",!b.ackChecked))},dependencies:[dy,ky,oG,Jx,gM,hM,UJ,WJ,VJ],styles:[".b-tos-content[_ngcontent-%COMP%]{padding-top:1em}.b-tos-content[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]{padding-right:8px}"]});var gZ=function(){Z.apply(this,arguments);this.activeSession=r(Bs);this.matDialogService=r(RJ)};Y(gZ,Z);gZ.\u0275dir=Z.\u0275dir;gZ.prototype.ngOnInit=function(){this.activeSession.getMustAcknowledgeTerms()&&LJ(this.matDialogService.open(fZ,{width:"400px",disableClose:!0})).pipe(yg(this.destroyed$))};gZ.\u0275fac=function(){var a;return function(b){return(a||(a=Re(gZ)))(b||gZ)}}();
gZ.\u0275cmp=y({type:gZ,selectors:[["b-terms-of-service"]],standalone:!1,features:[Bg],decls:0,vars:0,template:function(){},encapsulation:2});var hZ=function(){};hZ.\u0275fac=function(a){return new (a||hZ)};hZ.\u0275mod=uf({type:hZ});hZ.\u0275inj=Dd({imports:[Ay,HC,BG,lM,wK]});var iZ=function(){};iZ.\u0275fac=function(a){return new (a||iZ)};iZ.\u0275mod=uf({type:iZ});iZ.\u0275inj=Dd({imports:[HC,hZ]});var jZ=function(){Z.apply(this,arguments);this.routerEvents=r(QE);this.bLocation=r(DH);this.history=[]};Y(jZ,Z);jZ.\u0275dir=Z.\u0275dir;jZ.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()}))};jZ.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()};jZ.prototype.hasPreviousPage=function(){return this.history.length>1};
var kZ=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("/")};jZ.\u0275fac=function(){var a;return function(b){return(a||(a=Re(jZ)))(b||jZ)}}();jZ.\u0275prov=Cd({token:jZ,factory:jZ.\u0275fac,providedIn:"root"});var lZ=function(){this.$window=r(HJ);this.activeSession=r(Bs);this.faviconUrl=this.defaultFaviconUrl=cd("https://www.gstatic.com/buganizer/img/v4/favicon.png")},z8c=function(a){var b=a.$window.document.head.querySelector('link[rel="shortcut icon"]'),c=b==null?void 0:b.href;a.faviconUrl=c?cd(c):a.defaultFaviconUrl;c=a.activeSession.getTracker();var d;if(c==null?0:(d=c.branding)==null?0:d.logoUrl){var e;a=cd(c==null?void 0:(e=c.branding)==null?void 0:e.logoUrl)}else a=a.faviconUrl;e=a;if(b&&b.href!==
e.toString())if(e instanceof Wc)b.href=Yc(e).toString(),b.rel="icon";else{if(zfc.indexOf("icon")===-1)throw Error("ba`icon");e=dd(e);e!==void 0&&(b.href=e,b.rel="icon")}};lZ.\u0275fac=function(a){return new (a||lZ)};lZ.\u0275prov=Cd({token:lZ,factory:lZ.\u0275fac,providedIn:"root"});var A8c=$oc("edited-ids"),B8c=gl("edited-ids"),C8c=$oc("viewed-ids"),D8c=gl("viewed-ids"),mZ=function(){this.appEvents=r(FB);this.stop$=new tg;this.edited=new u_c(50);this.viewed=new u_c(50)},E8c=function(a){x_c(a.viewed,D8c());x_c(a.edited,B8c());a.appEvents.issueViewed.pipe(yg(a.stop$)).subscribe(function(b){v_c(a.viewed,b);C8c(w_c(a.viewed))});a.appEvents.issueEdited.pipe(yg(a.stop$)).subscribe(function(b){v_c(a.edited,b);A8c(w_c(a.edited))})};mZ.\u0275fac=function(a){return new (a||mZ)};
mZ.\u0275prov=Cd({token:mZ,factory:mZ.\u0275fac,providedIn:"root"});var F8c=/^\s*[^:/?#]+:/i,G8c=/^#/i,nZ=function(){var a=this;this.bLocation=r(DH);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"))&&!F8c.test(c))if(G8c.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)}}};nZ.prototype.install=function(){document.addEventListener("click",this.linkClickHandler)};nZ.\u0275fac=function(a){return new (a||nZ)};nZ.\u0275prov=Cd({token:nZ,factory:nZ.\u0275fac,providedIn:"root"});var H8c=[],I8c=!1,oZ=function(){this.destroyRef=r(Gg);this.hatsService=r(cR);this.iconRegistry=r(EC);this.session=r(Bs);this.appHistory=r(jZ);this.routePerformance=r(LX);this.linkClickHandler=r(nZ);this.issueLru=r(mZ);this.faviconService=r(lZ);this.imageUrls=r(YM);this.ngZone=r(Ph);this.peoplekitService=r(HO)},J8c=function(a){I8c||(a.iconRegistry._addSvgIconSetConfig("",new ztc(a.imageUrls.ICON_URL)),I8c=!0);if(a.session.isInternalSession()){tUc(a.hatsService,"Y4qgAGETM0g6pPHSLo10T83aMF4T").pipe(mg(1),
lp(a.destroyRef)).subscribe();for(var b=l(H8c),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.hatsTriggerId;OA(a.session,c.flagName)&&tUc(a.hatsService,d).pipe(mg(1),lp(a.destroyRef)).subscribe()}}a.appHistory.install();a.routePerformance.install();a.linkClickHandler.install();a.destroyRef.onDestroy(function(){document.removeEventListener("click",a.linkClickHandler.linkClickHandler)});E8c(a.issueLru);z8c(a.faviconService);a.ngZone.runOutsideAngular(function(){a.peoplekitService.peopleStore.warmUpCache()})};
oZ.\u0275fac=function(a){return new (a||oZ)};oZ.\u0275prov=Cd({token:oZ,factory:oZ.\u0275fac,providedIn:"root"});var lrb=0;var K8c=kva("blinkers-activated"),L8c=fl("blinkers-activated"),M8c=fl("log-xhrs-to-console"),N8c=kva("log-xhrs-to-console"),O8c=mrb("debug-dom-mutation","var(--c400)"),P8c=mrb("debug-ng-zone","var(--red-400)"),Q8c=mrb("debug-xhr","var(--green-500)",1200),R8c=function(a,b,c){b=b===void 0?"#ccc":b;c=c===void 0?400:c;lrb++;var d=156;d+=(lrb-1)*12;return function(e,f){f=f===void 0?b:f;var h,k=(h=document.getElementById(a))!=null?h:jrb(a,d);k.style.transition="opacity "+c+"ms";k.style.backgroundColor=
f;k.style.opacity=e?"1":"0"}}("active-user","var(--yellow-500)"),pZ=function(){var a=this;this.activityMonitor=r(KE);this.userActivity=r(OE);this.destroyed$=new tg;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=!M8c(),N8c(b),b?S8c(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()&&T8c(this)};pZ.prototype.ngOnDestroy=function(){U8c(this)};pZ.prototype.isEnabled=function(){return L8c()};pZ.prototype.enable=function(){this.isEnabled()||(K8c(!0),T8c(this))};pZ.prototype.disable=function(){K8c(!1);U8c(this)};
var T8c=function(a){a.activityMonitor.dom$.pipe(yg(a.destroyed$)).subscribe(function(){return void O8c()});Owc(a.activityMonitor);a.activityMonitor.cdr$.pipe(yg(a.destroyed$)).subscribe(function(){return void P8c()});a.activityMonitor.xhr$.pipe(yg(a.destroyed$)).subscribe(function(){Q8c();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(yg(a.destroyed$)).subscribe(function(b){return void R8c(b)});
document.addEventListener("click",a.onAnyClick);M8c()&&S8c(a)},U8c=function(a){a.destroyed$.next();a.activityMonitor.domObserver.disconnect();document.removeEventListener("click",a.onAnyClick)},S8c=function(a){clearInterval(a.loggingInterval);a.loggingInterval=setInterval(a.printXhrLog,1E3)};pZ.\u0275fac=function(a){return new (a||pZ)};pZ.\u0275prov=Cd({token:pZ,factory:pZ.\u0275fac,providedIn:"root"});var qZ=function(){this.activeSession=r(Bs);this.email=this.activeSession.getUserEmail();this.user=Dj(this.activeSession.getUserEmail())};qZ.\u0275fac=function(a){return new (a||qZ)};qZ.\u0275prov=Cd({token:qZ,factory:qZ.\u0275fac,providedIn:"root"});var rZ=function(){var a=this;this.activeSession=r(Bs);this.appEvents=r(FB);this.ngZone=r(Ph);this.window=r(HJ);this.buganizerBlinkers=r(pZ);this.currentUser=r(qZ);this.routeParamsService=r(CK);this.userPreferencesManager=r(iG);this.router=r(vC);this.issueFullFridge=r(TE);this.eventsForIssueFridge=r(TD);this.starredTeamsService=r(kG);this.teamsService=r(SF);this.fridges=[r(YA),r(eB),r(jB),r(nB),r(sB),r(BB),r(IC),r(hD),r(nD),r(oD),r(TD),r(XD),r(YD),r(cD),r(eE),r(iE),r(TE),r($E),r(jF),r(BF),r(CF),r(DF),
r(HF),r(IF),r(gD),r(MF),r(WF),r(XF),r(YF),r(cG)];this.getCurrentIssueId=function(){var b;return(b=a.routeParamsService.routeParams$.value)==null?void 0:b.issueId};this.getCurrentIssue=function(){return a.issueFullFridge.peek(a.getCurrentIssueId())};this.getCurrentIssueEvents=function(){return a.eventsForIssueFridge.peek(a.getCurrentIssueId())};this.enableExternalMentionsFe=OA(this.activeSession,"enableExternalMentionsFe");this.getCurrentIssueAsText=function(){var b=a.getCurrentIssue();if(b==null)return"";
var c,d=(c=a.eventsForIssueFridge.peek(b.issueId))==null?void 0:c.events;return yrb(a.enableExternalMentionsFe,b,d)}};
rZ.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:Mwc,activeSession:this.activeSession,teamsService:this.teamsService,blinkers:this.buganizerBlinkers.publicApi,toggleDebugLogging:apc("debug-logging"),toggleOptOutExperiments:apc("opt-out-experiments"),currentUser:this.currentUser,userPreferencesManager:this.userPreferencesManager,setFlagOverrideForOneDay:sva,
clearFlagOverride:tva,clearAllFlagOverrides:pva,getCurrentIssueAsText:this.getCurrentIssueAsText,printCurrentIssueAsText:function(){var c=a.getCurrentIssueAsText();console.log(c)},get initialSession(){return ll()},get initialPrefs(){return ll().userPreferences},get currentPrefs(){return jG(b.userPreferencesManager)},get currentIssue(){return b.getCurrentIssue()},get currentIssueEvents(){return b.getCurrentIssueEvents()},get flags(){return Object.fromEntries(ll().config.enabledFlags)},showFridgeGuts:function(){console.log("\ud83e\uddca Fridge: printing the values for each fridge. \nTo see details on cache age look for methods like debug() and debugTable() on each fridge instance.");
console.log();b.fridges.forEach(function(c){var d=c.peekAllRecords();d!=null&&d.length!==0&&console.log(c.recordType,d)})},toggleVerboseFridge:function(){return dqc=!dqc},setTrackerOverride:function(c){Brb(String(c),1)},clearTrackerOverride:function(){Brb("")},resetTriageStars:function(){return a.starredTeamsService.reset()},getTeamExperiments:function(c){return hzc(a.teamsService,c)},updateTeamExperiments:function(c){return izc(a.teamsService,c)}})}};rZ.\u0275fac=function(a){return new (a||rZ)};
rZ.\u0275prov=Cd({token:rZ,factory:rZ.\u0275fac,providedIn:"root"});var sZ=function(){this.activatedRoute=r(Jn);var a,b=(a=this.activatedRoute.snapshot.firstChild)==null?void 0:a.routeConfig;this.hideAppChrome=b&&b.hideAppChrome?!0:!1};sZ.\u0275fac=function(a){return new (a||sZ)};sZ.\u0275prov=Cd({token:sZ,factory:sZ.\u0275fac,providedIn:"root"});var V8c=function(a){this.delegate_=a};V8c.prototype.getDelegate=function(){return this.delegate_};var W8c=function(a,b){this.delegate_=a;this.currentTarget_=b;this.target_=null};Y(W8c,V8c);W8c.prototype.getTarget=function(){if(this.target_)return this.target_;for(var a=[],b=this.getDelegate().xb;b instanceof gbar.I&&b!=this.currentTarget_.getDelegate();)a.push(b.ic()),b=b.zb();for(b=this.currentTarget_;a.length>0;)b=w3c(b,a.pop());return this.target_=b};W8c.prototype.getType=function(){return this.getDelegate().xa};var X8c=function(a){this.delegate_=a};Y(X8c,V8c);g=X8c.prototype;g.listen=function(a,b,c,d){var e=this;return this.getDelegate().za(a,function(f){return b.call(d||ea,new W8c(f,e))},c)};g.listenOnce=function(){throw Error("bf");};g.unlisten=function(){throw Error("bf");};g.unlistenByKey=function(){throw Error("bf");};g.dispatchEvent=function(){throw Error("bf");};g.removeAllListeners=function(){throw Error("bf");};g.getParentEventTarget=function(){throw Error("bf");};
g.fireListeners=function(){throw Error("bf");};g.getListener=function(){throw Error("bf");};g.hasListener=function(){throw Error("bf");};X8c.prototype[iwc]=!0;var Y8c=function(a){this.delegate_=a};Y(Y8c,X8c);Y8c.prototype.getHeight=function(){return this.getDelegate().pa()};Y8c.prototype.setPageTitle=function(){this.getDelegate().pb(void 0)};Y8c.prototype.setBackgroundColor=function(a){this.getDelegate().pd(a)};var Z8c=function(a,b){this.delegate_=a;this.wrapperConstructor_=b||null};Y(Z8c,V8c);Z8c.prototype.then=function(a,b,c){var d;a&&(d=$8c(this,a));this.getDelegate().aa(d,b,c)};var $8c=function(a,b){var c=a.wrapperConstructor_;return c?function(d){b.call(this,new c(d))}:b};var tZ=function(a){this.delegate_=a||gbar.a;this.gapiPromise_=this.barPromise_=null};Y(tZ,V8c);tZ.prototype.getGapi=function(){this.gapiPromise_||(this.gapiPromise_=new Z8c(this.getDelegate().bh()));return this.gapiPromise_};tZ.getInstance=function(){var a="instance_";tZ.instance_&&tZ.hasOwnProperty(a)?a=tZ.instance_:(a=new tZ,tZ.instance_=a);return a};
var a9c=function(){return new Promise(function(a){window.gbar||(window.gbar={});if(window.gbar.a)return a(tZ.getInstance());(new Promise(function(b){window.gbar.ap=b})).then(function(){return a(tZ.getInstance())})})};var uZ=function(){Z.apply(this,arguments);this.router=r(vC);this.window=r(HJ)};Y(uZ,Z);uZ.\u0275dir=Z.\u0275dir;uZ.prototype.start=function(){var a=this,b;return z(function(c){if(c.nextAddress==1)return B(c,a9c(),2);b=c.yieldResult;return c.return((new Promise(function(d,e){b.barPromise_||(b.barPromise_=new Z8c(b.getDelegate().bf(),Y8c));b.barPromise_.then(d,e)})).then(function(d){b9c(a,d)}))})};var b9c=function(a,b){a.router.events.pipe(eg(CHa),yg(a.destroyed$)).subscribe(function(){b.getDelegate().pl(a.window.location.href)})};
uZ.\u0275fac=function(){var a;return function(b){return(a||(a=Re(uZ)))(b||uZ)}}();uZ.\u0275prov=Cd({token:uZ,factory:uZ.\u0275fac,providedIn:"root"});var vZ=function(){Z.apply(this,arguments);var a=this;this.paramsService=r(CK);this.issueFullFridge=r(TE);this.eventsForIssueFridge=r(TD);this.handlers$=this.paramsService.routeParams$.pipe(og(gj),xg(function(b){return a.onRouteParamsChanged(b)}));this.init=function(){a.subscriptions.add(a.handlers$.subscribe(function(){}))};this.initOnce=qj(this.init)};Y(vZ,Z);vZ.\u0275dir=Z.\u0275dir;
vZ.prototype.onRouteParamsChanged=function(a){var b=this,c,d;return z(function(e){if(e.nextAddress==1){c={trustUncertainMemory:!0};if(!a.issueId)return e.jumpTo(2);d=a.issueId;return B(e,Promise.all([b.issueFullFridge.poke(d,c),b.eventsForIssueFridge.poke(d,c)]),3)}return e.return()})};vZ.\u0275fac=function(){var a;return function(b){return(a||(a=Re(vZ)))(b||vZ)}}();vZ.\u0275prov=Cd({token:vZ,factory:vZ.\u0275fac,providedIn:"root"});var wZ=function(){var a=r(QE);Z.call(this);var b=this;this.scrollTimingMap=new Map;a.routeChangeSuccess.pipe(yg(this.destroyed$)).subscribe(function(){b.scrollTimingMap.clear()})};Y(wZ,Z);wZ.\u0275dir=Z.\u0275dir;wZ.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)};wZ.\u0275fac=function(a){return new (a||wZ)};
wZ.\u0275prov=Cd({token:wZ,factory:wZ.\u0275fac,providedIn:"root"});var c9c=["leftSidebar"],d9c=function(){this.hideAppChromeHelper=r(sZ);this.renderer=r(Ji);(this.hideAppChrome=this.hideAppChromeHelper.hideAppChrome)?this.renderer.addClass(document.body,"hide-topbar"):this.renderer.removeClass(document.body,"hide-topbar")};d9c.\u0275fac=function(a){return new (a||d9c)};
d9c.\u0275cmp=y({type:d9c,selectors:[["app-root"]],standalone:!1,decls:2,vars:1,consts:[["role","main",1,"full-width","full-height"]],template:function(a,b){a&1&&F(0,Crb,2,0,"div",0)(1,Drb,2,0,"div",0);a&2&&G(b.hideAppChrome?0:1)},dependencies:function(){return[NB,xZ]},encapsulation:2,changeDetection:0});
var xZ=function(){Z.call(this);var a=this;this.appInitializer=r(oZ);this.appSearchState=r(bX);this.appEvents=r(FB);this.performanceToClearcut=r(JE);this.window=r(HJ);this.issueComments=r(sK);this.oneGoogleBar=r(uZ);this.scrollTiming=r(wZ);this.pageTitleUpdaterService=r(FY);this.pageLoadOptimizerService=r(vZ);this.bedbugService=r(rZ);this.userActivity=r(OE);this.bLocation=r(DH);this.reloadService=r(KY);this.activeSession=r(Bs);this.hotkeys=r(PG);this.paths=r(oN);this.userPrefs=r(iG);this.issuePagination=
r(DY);this.userFeedback=r(rS);this.matDialogService=r(RJ);this.renderer=r(Ji);this.densityClass="d-comfort";this.announcement=this.dismissedMessageId=null;this.sidebarWidth=220;this.isAnonymous=this.activeSession.isAnonymous();J8c(this.appInitializer);this.bedbugService.install();this.userActivity.install();Lwc(this.performanceToClearcut);this.subscriptions.add(this.appEvents.onClickAppMenuIcon.subscribe(function(){var v;(v=a.leftSidebar)==null||v.toggle()}));this.renderer.addClass(document.body,
this.densityClass);this.userPrefs.themePreferences$.pipe(yg(this.destroyed$)).subscribe(function(v){v=Jrb(v.density);v!==a.densityClass&&(a.renderer.addClass(document.body,v),a.renderer.removeClass(document.body,a.densityClass),a.densityClass=v)});this.subscriptions.add($5c(this.appSearchState,function(v){a.doSearch(v)}));var b=[{keys:["/","F3"],displayAs:"/ or F3",description:"Search",onPress:function(){var v=document.querySelector(".search-box-container .search-box");v==null||v.focus();v==null||
v.select()}},{keys:[qp("2"),hKa()],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:[rp("g","p")],displayAs:"g then p",description:"Go to your preferred homepage",onPress:function(){a.bLocation.setUrl("/")}},{keys:[rp("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:U5c(this.activeSession.getUserEmail())}),e=this.paths.listIssues({q:"cc:"+this.activeSession.getUserEmail()}),f=this.paths.listIssues({q:W5c(this.activeSession.getUserEmail())}),h=this.paths.listIssues({q:"reporter:"+this.activeSession.getUserEmail()}),k=this.paths.listIssues({q:this.appSearchState.getStarred()}),q=this.paths.listIssues({q:"vote:true"});b.push({keys:[rp("g","a")],displayAs:"g then a",description:'Go to "Assigned to me"',onPress:function(){a.bLocation.setUrl(d)}},
{keys:[rp("g","c")],displayAs:"g then c",description:'Go to "CC\'d to me"',onPress:function(){a.bLocation.setUrl(e)}},{keys:[rp("g","r")],displayAs:"g then r",description:'Go to "Reported by me"',onPress:function(){a.bLocation.setUrl(h)}},{keys:[rp("g","s")],displayAs:"g then s",description:'Go to "Starred by me"',onPress:function(){a.bLocation.setUrl(k)}},{keys:[rp("g","1")],displayAs:"g then 1",description:'Go to "Upvoted by me"',onPress:function(){a.bLocation.setUrl(q)}},{keys:[rp("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:["?",gKa("F1")],displayAs:"? or Ctrl+F1",description:"Display the keyboard shortcuts pop-up",onPress:function(){a.matDialogService.open(xY,{minWidth:512})}});this.subscriptions.add(QG(this.hotkeys,{title:"General",
hotkeys:b}));this.announcement=this.activeSession.getAnnouncement();this.userPrefs.preferences$.pipe(mg(1),yg(this.destroyed$)).subscribe(function(v){a.dismissedMessageId=v.bannerMessageId||"";var A;a.sidebarWidth=((A=v.layoutPreferences)==null?void 0:A.leftSidebarWidth)||220});this.oneGoogleBar.start();OGa()&&(nvc!=null&&nvc.disconnect(),nvc=new YGa.PerformanceObserver(cHa),nvc.observe({entryTypes:["measure"]}));setTimeout(Apb,6E4);this.scrollTiming.start();this.pageTitleUpdaterService.initOnce();
this.pageLoadOptimizerService.initOnce();this.window.emergencyBugjugglerWorkaround={session:this.activeSession,issueComments:this.issueComments}};Y(xZ,Z);xZ.\u0275dir=Z.\u0275dir;var Hrb=function(a,b){var c;return z(function(d){if(d.nextAddress==1){if(b===a.sidebarWidth)return d.return();a.sidebarWidth=b;return B(d,Rf(a.userPrefs.layoutPreferences$),2)}c=d.yieldResult;return B(d,Rf(a.userPrefs.save({layoutPreferences:Object.assign({},c,{leftSidebarWidth:b})})),0)})};
xZ.prototype.doSearch=function(a){a=this.paths.listIssues({q:a});var b=CQc(this.paths,a);R7c(this.issuePagination);b&&EOb(this.reloadService);this.bLocation.setUrl(a)};var Erb=function(a){a.announcement!==null&&(a.dismissedMessageId=a.announcement.messageId,a.userPrefs.save({bannerMessageId:a.dismissedMessageId}).pipe(mg(1),yg(a.destroyed$)).subscribe())};xZ.prototype.startFeedback=function(){this.userFeedback.startFeedback()};xZ.\u0275fac=function(a){return new (a||xZ)};
xZ.\u0275cmp=y({type:xZ,selectors:[["app-root-body"]],viewQuery:function(a,b){a&1&&hh(c9c,5);if(a&2){var c;lh(c=mh())&&(b.leftSidebar=c.first)}},standalone:!1,features:[Bg],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,Grb,4,2,"div",1),M(3,"b-sso-expired-callout-outlet"),J(4,"div",2),F(5,Irb,3,1,"b-resizable-sidebar",3),J(6,"div",4),M(7,"router-outlet"),K()(),M(8,"b-footer")(9,"bug-screensaver-manager"));if(a&2){x(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||!OA(b.activeSession,"canSeeAnnouncementBanner")?!1:a.dismissible?b.dismissedMessageId==null?!1:a.messageId!==b.dismissedMessageId:!0}else c=!1;G(c?2:-1);x(3);G(b.isAnonymous?-1:5)}},dependencies:function(){return[NB,g8c,h8c,H7c,qH,ZY,gZ,G7c]},encapsulation:2});var yZ=function(){};yZ.\u0275fac=function(a){return new (a||yZ)};yZ.\u0275mod=uf({type:yZ});yZ.\u0275inj=Dd({imports:[HC,HY,TQ,IY,BG,wY,yY,yH,dZ,iZ]});var zZ=function(){};zZ.\u0275fac=function(a){return new (a||zZ)};zZ.\u0275mod=uf({type:zZ});zZ.\u0275inj=Dd({imports:[HC]});var AZ=function(){};AZ.\u0275fac=function(a){return new (a||AZ)};AZ.\u0275mod=uf({type:AZ});AZ.\u0275inj=Dd({imports:[HC,BG,wK,zN,DG,zZ]});var BZ=function(){};BZ.\u0275fac=function(a){return new (a||BZ)};BZ.\u0275mod=uf({type:BZ});BZ.\u0275inj=Dd({imports:[AL,JL,BG,HC]});var CZ=function(){};CZ.\u0275fac=function(a){return new (a||CZ)};CZ.\u0275mod=uf({type:CZ});CZ.\u0275inj=Dd({imports:[HC,mH,zL,aM,gL,BG,GM,lM,Ay,BZ]});var DZ=function(){};DZ.\u0275fac=function(a){return new (a||DZ)};DZ.\u0275mod=uf({type:DZ});DZ.\u0275inj=Dd({imports:[aw]});var EZ=function(){};EZ.\u0275fac=function(a){return new (a||EZ)};EZ.\u0275mod=uf({type:EZ});EZ.\u0275inj=Dd({imports:[aw,sJ,zU]});var FZ=function(){};FZ.\u0275fac=function(a){return new (a||FZ)};FZ.\u0275mod=uf({type:FZ});FZ.\u0275inj=Dd({imports:[aw,GC,sJ,Ay,DZ,EZ,JQ]});var GZ=function(){};GZ.\u0275fac=function(a){return new (a||GZ)};GZ.\u0275mod=uf({type:GZ});GZ.\u0275inj=Dd({imports:[HC,wK,FZ,CZ,Ay,BZ,BG,CG]});var HZ=function(){};HZ.\u0275fac=function(a){return new (a||HZ)};HZ.\u0275mod=uf({type:HZ});HZ.\u0275inj=Dd({imports:[HC,JL,lM,BG,wK,uJ,oQ,AN,hL]});var e9c=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"]]),f9c=new Map([["ENABLED","Enabled"],["DISABLED","Disabled"]]),Mrb=new Map([["BUGANIZER_DEFAULT","Default (10 years)"],["CUSTOM_PERIOD","Custom Period"],["INDEFINITE_RETENTION","Indefinite"]]),Nrb=new Map([["BUGANIZER_DEFAULT",
"Default (60 days)"],["CUSTOM_PERIOD","Custom Period"],["INDEFINITE_RETENTION","Match Issue Retention"]]),IZ=function(){this.$log=r(ME);this.activeSession=r(Bs);this.sessionIsInternal=this.activeSession.isInternalSession()};IZ.\u0275fac=function(a){return new (a||IZ)};IZ.\u0275prov=Cd({token:IZ,factory:IZ.\u0275fac,providedIn:"root"});var Prb=new Map([["SLO_SOURCE_UNSPECIFIED","--"],["USER","User"],["BUGSCOPE","Bugscope"]]);var g9c=new le("GMAT_PAGINATOR_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var h9c=function(a){this.options=a;if(a.disableGmatStyle)throw Error("Mc");};h9c.\u0275fac=function(a){return new (a||h9c)(of(g9c))};h9c.\u0275dir=vf({type:h9c,selectors:[["mat-paginator"]],hostAttrs:[1,"gmat-mdc-paginator"],standalone:!1});var JZ=function(){this.changes=new tg;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}};JZ.\u0275fac=function(a){return new (a||JZ)};JZ.\u0275prov=Cd({token:JZ,factory:JZ.\u0275fac,providedIn:"root"});
var i9c={provide:JZ,deps:[[new qv,new rv,JZ]],useFactory:function(a){return a||new JZ}};var j9c=new le("MAT_PAGINATOR_DEFAULT_OPTIONS"),KZ=function(){var a=this;this._intl=r(JZ);this._changeDetectorRef=r(Hv);this._pageSizeLabelId=r(Fi).getId("mat-paginator-page-size-label-");this._isInitialized=!1;this._initializedStream=new sg(1);this._length=this._pageIndex=0;this._pageSizeOptions=[];this.showFirstLastButtons=this.hidePageSize=!1;this.selectConfig={};this.disabled=!1;this.page=new nq;this.initialized=this._initializedStream;var b=this._intl,c=r(j9c,{optional:!0});this._intlChanges=
b.changes.subscribe(function(){return a._changeDetectorRef.markForCheck()});if(c){var d=c.pageSize,e=c.pageSizeOptions,f=c.hidePageSize,h=c.showFirstLastButtons;d!=null&&(this._pageSize=d);e!=null&&(this._pageSizeOptions=e);f!=null&&(this.hidePageSize=f);h!=null&&(this.showFirstLastButtons=h)}this._formFieldAppearance=(c==null?void 0:c.formFieldAppearance)||"outline"};g=KZ.prototype;g.ngOnInit=function(){this._isInitialized=!0;this._updateDisplayedPageSizeOptions();this._initializedStream.next()};
g.ngOnDestroy=function(){this._initializedStream.complete();this._intlChanges.unsubscribe()};g.nextPage=function(){this.hasNextPage()&&this._navigate(this.pageIndex+1)};g.hasPreviousPage=function(){return this.pageIndex>=1&&this.pageSize!=0};g.hasNextPage=function(){return this.pageIndex<(this.pageSize?Math.ceil(this.length/this.pageSize):0)-1&&this.pageSize!=0};g._changePageSize=function(a){var b=this.pageIndex;this.pageIndex=Math.floor(this.pageIndex*this.pageSize/a)||0;this.pageSize=a;this._emitPageEvent(b)};
g._nextButtonsDisabled=function(){return this.disabled||!this.hasNextPage()};g._previousButtonsDisabled=function(){return this.disabled||!this.hasPreviousPage()};
g._updateDisplayedPageSizeOptions=function(){this._isInitialized&&(this.pageSize||(this._pageSize=this.pageSizeOptions.length!=0?this.pageSizeOptions[0]:50),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),this._displayedPageSizeOptions.indexOf(this.pageSize)===-1&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort(function(a,b){return a-b}),this._changeDetectorRef.markForCheck())};
g._emitPageEvent=function(a){this.page.emit({previousPageIndex:a,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})};g._navigate=function(a){var b=this.pageIndex;a!==b&&(this.pageIndex=a,this._emitPageEvent(b))};g._buttonClicked=function(a,b){b||this._navigate(a)};
nd.Object.defineProperties(KZ.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 ai(b,0)});this._updateDisplayedPageSizeOptions()}}});KZ.\u0275fac=function(a){return new (a||KZ)};
KZ.\u0275cmp=y({type:KZ,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ai],length:[2,"length","length",ai],pageSize:[2,"pageSize","pageSize",ai],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",$h],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",$h],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",$h]},outputs:{page:"page"},exportAs:["matPaginator"],
decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive",
"",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],
["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",
3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],
template:function(a,b){a&1&&(J(0,"div",1)(1,"div",2),F(2,Vrb,5,4,"div",3),J(3,"div",4)(4,"div",5),R(5),K(),F(6,Wrb,3,5,"button",6),J(7,"button",7),N("click",function(){return b._buttonClicked(b.pageIndex-1,b._previousButtonsDisabled())}),Ge(),J(8,"svg",8),M(9,"path",9),K()(),He(),J(10,"button",10),N("click",function(){return b._buttonClicked(b.pageIndex+1,b._nextButtonsDisabled())}),Ge(),J(11,"svg",8),M(12,"path",11),K()(),F(13,Xrb,3,5,"button",12),K()()());a&2&&(x(2),G(b.hidePageSize?-1:2),x(3),
T(" ",b._intl.getRangeLabel(b.pageIndex,b.pageSize,b.length)," "),x(),G(b.showFirstLastButtons?6:-1),x(),I("matTooltip",b._intl.previousPageLabel)("matTooltipDisabled",b._previousButtonsDisabled())("disabled",b._previousButtonsDisabled())("tabindex",b._previousButtonsDisabled()?-1:null),Lg("aria-label",b._intl.previousPageLabel),x(3),I("matTooltip",b._intl.nextPageLabel)("matTooltipDisabled",b._nextButtonsDisabled())("disabled",b._nextButtonsDisabled())("tabindex",b._nextButtonsDisabled()?-1:null),
Lg("aria-label",b._intl.nextPageLabel),x(3),G(b.showFirstLastButtons?13:-1))},dependencies:[My,jP,Bx,Kx,xG],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:84px;height:48px;background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}\n"],
encapsulation:2,changeDetection:0});var LZ=function(){this.paths=r(oN);this.ROUTES=Dq;this.children=[];this.onVisit=new LE;this.pageSize=25;this.pageSizeOptions=[10,25,100];this.childrenOnPage=[]};LZ.prototype.ngOnInit=function(){this.childrenOnPage=this.children.slice(0,this.pageSize)};LZ.\u0275fac=function(a){return new (a||LZ)};
LZ.\u0275cmp=y({type:LZ,selectors:[["b-component-children-list"]],inputs:{children:"children"},outputs:{onVisit:"onVisit"},standalone:!1,decls:4,vars:1,consts:[["card","onedevHovercard"],[3,"length","pageSize","pageSizeOptions"],[1,"component-children"],[3,"page","length","pageSize","pageSizeOptions"],[1,"keep-underline","keep-focus-ring",3,"click","onedevHovercardTrigger","href"],[3,"componentId"]],template:function(a,b){a&1&&(F(0,Yrb,1,3,"mat-paginator",1),J(1,"ul",2),Pg(2,Zrb,6,4,"li",null,Og),
K());a&2&&(G(b.children.length>b.pageSize?0:-1),x(2),Qg(b.childrenOnPage))},dependencies:[DI,JI,TM,h9c,KZ],encapsulation:2});var MZ=function(){};MZ.\u0275fac=function(a){return new (a||MZ)};MZ.\u0275mod=uf({type:MZ});MZ.\u0275inj=Dd({providers:[i9c],imports:[Lx,gQ,yG,KZ]});var NZ=function(){};NZ.\u0275fac=function(a){return new (a||NZ)};NZ.\u0275mod=uf({type:NZ});NZ.\u0275inj=Dd({providers:[VTc],imports:[MZ]});var OZ=function(){};OZ.\u0275fac=function(a){return new (a||OZ)};OZ.\u0275mod=uf({type:OZ});OZ.\u0275inj=Dd({imports:[HC,tJ,nW,NZ]});var PZ=function(){this.shouldShowCopyIssueShortLinks=!1;this.shortLinkPrefix="b/";this.onClickCopyIssueIds=new LE;this.onClickCopyIssueShortLinks=new LE;this.onClickCopyAsIssueSearch=new LE};PZ.\u0275fac=function(a){return new (a||PZ)};
PZ.\u0275cmp=y({type:PZ,selectors:[["b-copy-issue-id-button"]],inputs:{shouldShowCopyIssueShortLinks:"shouldShowCopyIssueShortLinks",shortLinkPrefix:"shortLinkPrefix"},outputs:{onClickCopyIssueIds:"onClickCopyIssueIds",onClickCopyIssueShortLinks:"onClickCopyIssueShortLinks",onClickCopyAsIssueSearch:"onClickCopyAsIssueSearch"},standalone:!1,decls:10,vars:2,consts:[["splitMenu","matMenu"],["type","button","mat-button","","aria-label","Copy selected issue IDs",1,"medium","icon-only",3,"click"],["name",
"copy","size","small"],["type","button","mat-button","","aria-label","More copy issue ID options",1,"medium","compact",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"click"]],template:function(a,b){if(a&1){var c=t();J(0,"b-button-group")(1,"button",1);N("click",function(){u(c);return w(b.onClickCopyIssueIds.emit())});M(2,"b-icon",2);K();J(3,"button",3);M(4,"b-icon",4);K();J(5,"mat-menu",null,0);F(7,$rb,2,
1,"button",5);J(8,"button",6);N("click",function(){u(c);return w(b.onClickCopyAsIssueSearch.emit())});R(9," Copy as issue search ");K()()()}a&2&&(a=Q(6),x(3),I("matMenuTriggerFor",a),x(4),G(b.shouldShowCopyIssueShortLinks?7:-1))},dependencies:[pG,sG,qG,uG,oG,Jx,oY,eL],encapsulation:2,changeDetection:0});$Na(bOa(aOa(function(a){this._elementRef=a})));p(["disabled","disableRipple","color","tabIndex"]);var k9c=function(){this.politeness="assertive";this.announcementMessage="";this.duration=0;this.data=null;this.horizontalPosition="center";this.verticalPosition="bottom"};var l9c=function(a,b){var c=this;this._overlayRef=b;this._afterDismissed=new tg;this._afterOpened=new tg;this._onAction=new tg;this._dismissedByAction=!1;this.containerInstance=a;a._onExit.subscribe(function(){return c._finishDismiss()})};g=l9c.prototype;g.dismiss=function(){this._afterDismissed.closed||this.containerInstance.exit();clearTimeout(this._durationTimeoutId)};
g.dismissWithAction=function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss());clearTimeout(this._durationTimeoutId)};g._dismissAfter=function(a){var b=this;this._durationTimeoutId=setTimeout(function(){return b.dismiss()},Math.min(a,2147483647))};g._open=function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())};
g._finishDismiss=function(){this._overlayRef.dispose();this._onAction.closed||this._onAction.complete();this._afterDismissed.next({dismissedByAction:this._dismissedByAction});this._afterDismissed.complete();this._dismissedByAction=!1};g.afterDismissed=function(){return this._afterDismissed};g.afterOpened=function(){return this.containerInstance._onEnter};g.onAction=function(){return this._onAction};var m9c=UMa("state",[aq("void, hidden",$p({transform:"scale(0.8)",opacity:0})),aq("visible",$p({transform:"scale(1)",opacity:1})),bq("* => visible",Zp("150ms cubic-bezier(0, 0, 0.2, 1)")),bq("* => void, * => hidden",Zp("75ms cubic-bezier(0.4, 0.0, 1, 1)",$p({opacity:0})))]);var n9c=0,QZ=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=r(ui);this._trackedModals=new Set;this._announceDelay=150;this._destroyed=!1;this._onAnnounce=new tg;this._onExit=new tg;this._onEnter=new tg;this._animationState="void";this._liveElementId="mat-snack-bar-container-live-"+n9c++;this._live=e.politeness!=="assertive"||e.announcementMessage?e.politeness==="off"?"off":"polite":"assertive";
this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))};Y(QZ,hx);g=QZ.prototype;g.attachComponentPortal=function(a){a=this._portalOutlet.attachComponentPortal(a);this._afterPortalAttached();return a};g.attachTemplatePortal=function(a){a=this._portalOutlet.attachTemplatePortal(a);this._afterPortalAttached();return a};
g.onAnimationEnd=function(a){var b=a.fromState;a=a.toState;(a==="void"&&b!=="void"||a==="hidden")&&this._completeExit();if(a==="visible"){var c=this._onEnter;this._ngZone.run(function(){c.next();c.complete()})}};g.enter=function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())};g.exit=function(){var a=this;this._ngZone.run(function(){a._animationState="hidden";a._elementRef.nativeElement.setAttribute("mat-exit","");clearTimeout(a._announceTimeoutId)})};
g.ngOnDestroy=function(){this._destroyed=!0;this._clearFromModals();this._completeExit()};g._completeExit=function(){var a=this;this._ngZone.onMicrotaskEmpty.pipe(mg(1)).subscribe(function(){a._ngZone.run(function(){a._onExit.next();a._onExit.complete()})})};g._afterPortalAttached=function(){var a=this._elementRef.nativeElement,b=this.snackBarConfig.panelClass;b&&(Array.isArray(b)?b.forEach(function(c){return a.classList.add(c)}):a.classList.add(b));this._exposeToModals()};
g._exposeToModals=function(){for(var a=this._liveElementId,b=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]'),c=0;c<b.length;c++){var d=b[c],e=d.getAttribute("aria-owns");this._trackedModals.add(d);e?e.indexOf(a)===-1&&d.setAttribute("aria-owns",e+" "+a):d.setAttribute("aria-owns",a)}};
g._clearFromModals=function(){var a=this;this._trackedModals.forEach(function(b){var c=b.getAttribute("aria-owns");c&&(c=c.replace(a._liveElementId,"").trim(),c.length>0?b.setAttribute("aria-owns",c):b.removeAttribute("aria-owns"))});this._trackedModals.clear()};g._assertNotAttached=function(){};
g._screenReaderAnnounce=function(){var a=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){a._announceTimeoutId=setTimeout(function(){var b=a._elementRef.nativeElement.querySelector("[aria-hidden]"),c=a._elementRef.nativeElement.querySelector("[aria-live]");if(b&&c){var d=null;a._platform.isBrowser&&document.activeElement instanceof HTMLElement&&b.contains(document.activeElement)&&(d=document.activeElement);b.removeAttribute("aria-hidden");c.appendChild(b);var e;(e=d)==null||
e.focus();a._onAnnounce.next();a._onAnnounce.complete()}},a._announceDelay)})};QZ.\u0275fac=function(a){return new (a||QZ)(of(Ph),of(Te),of(Hv),of(zi),of(k9c))};QZ.\u0275dir=vf({type:QZ,viewQuery:function(a,b){a&1&&hh(jx,7);if(a&2){var c;lh(c=mh())&&(b._portalOutlet=c.first)}},standalone:!1,features:[Bg]});var RZ=function(a,b,c,d,e,f){this._overlay=a;this._live=b;this._injector=c;this._breakpointObserver=d;this._parentSnackBar=e;this._defaultConfig=f;this._snackBarRefAtThisLevel=null};g=RZ.prototype;g.openFromComponent=function(a,b){return this._attach(a,b)};g.open=function(a,b,c){b=b===void 0?"":b;var d=Object.assign({},this._defaultConfig,c);d.data={message:a,action:b};d.announcementMessage===a&&(d.announcementMessage=void 0);return this.openFromComponent(this.simpleSnackBarComponent,d)};
g.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()};g.ngOnDestroy=function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()};g._attachSnackBarContainer=function(a,b){var c=Yh({parent:b&&b.viewContainerRef&&b.viewContainerRef.injector||this._injector,providers:[{provide:k9c,useValue:b}]});a=a.attach(new fx(this.snackBarContainerComponent,b.viewContainerRef,c));a.instance.snackBarConfig=b;return a.instance};
g._attach=function(a,b){var c=this,d=Object.assign({},new k9c,this._defaultConfig,b),e=this._createOverlay(d);b=this._attachSnackBarContainer(e,d);var f=new l9c(b,e);if(a instanceof eh)f.instance=b.attachTemplatePortal(new gx(a,null,{$implicit:d.data,snackBarRef:f}));else{var h=this._createInjector(d,f);a=b.attachComponentPortal(new fx(a,void 0,h));f.instance=a.instance}this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(yg(e._detachments)).subscribe(function(k){e.overlayElement.classList.toggle(c.handsetCssClass,
k.matches)});d.announcementMessage&&b._onAnnounce.subscribe(function(){c._live.announce(d.announcementMessage,d.politeness)});this._animateSnackBar(f,d);return this._openedSnackBarRef=f};
g._animateSnackBar=function(a,b){var c=this;a.afterDismissed().subscribe(function(){c._openedSnackBarRef==a&&(c._openedSnackBarRef=null);b.announcementMessage&&c._live.clear()});this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){a.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):a.containerInstance.enter();b.duration&&b.duration>0&&a.afterOpened().subscribe(function(){return a._dismissAfter(b.duration)})};
g._createOverlay=function(a){var b=new Ii;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"):bx(c);a.verticalPosition==="top"?c.top("0"):c.bottom("0");b.positionStrategy=c;return this._overlay.create(b)};
g._createInjector=function(a,b){return Yh({parent:a&&a.viewContainerRef&&a.viewContainerRef.injector||this._injector,providers:[{provide:l9c,useValue:b},{provide:zJ,useValue:a.data}]})};nd.Object.defineProperties(RZ.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}}});
RZ.\u0275fac=function(a){return new (a||RZ)(be(lx),be(Aw),be(Cg),be(uw),be(RZ,12),be(hKc))};RZ.\u0275prov=Cd({token:RZ,factory:RZ.\u0275fac});var SZ=function(a,b){this.snackBarRef=a;this.data=b};SZ.prototype.action=function(){this.snackBarRef.dismissWithAction()};nd.Object.defineProperties(SZ.prototype,{hasAction:{configurable:!0,enumerable:!0,get:function(){return!!this.data.action}}});SZ.\u0275fac=function(a){return new (a||SZ)(of(l9c),of(zJ))};
SZ.\u0275cmp=y({type:SZ,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],hostVars:1,hostBindings:function(a){a&2&&Lg("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&&(J(0,"span",0),R(1),K(),D(2,asb,3,1,"div",1));a&2&&(x(),wh(b.data.message),x(),I("ngIf",b.hasAction))},dependencies:[Rv,qJ],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 TZ=function(){QZ.apply(this,arguments)};Y(TZ,QZ);TZ.\u0275dir=QZ.\u0275dir;TZ.prototype._afterPortalAttached=function(){QZ.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")};TZ.\u0275fac=function(){var a;return function(b){return(a||(a=Re(TZ)))(b||TZ)}}();
TZ.\u0275cmp=y({type:TZ,selectors:[["snack-bar-container"]],hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(a,b){a&1&&wma("@state.done",function(c){return b.onAnimationEnd(c)});a&2&&(oma("@state",b._animationState),Lg("mat-id-collision",null))},standalone:!1,features:[Bg],decls:3,vars:3,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(a,b){a&1&&(J(0,"div",0),D(1,bsb,0,0,"ng-template",1),K(),M(2,"div"));a&2&&(x(2),Lg("aria-live",b._live)("role",b._role)("id",
b._liveElementId))},dependencies:[jx],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:[m9c]}});var UZ=function(){};UZ.\u0275fac=function(a){return new (a||UZ)};UZ.\u0275mod=uf({type:UZ});UZ.\u0275inj=Dd({imports:[ox,kx,aw,sJ,px,px]});var VZ=function(a,b,c,d,e,f){RZ.call(this,a,b,c,d,e,f);this.simpleSnackBarComponent=SZ;this.snackBarContainerComponent=TZ;this.handsetCssClass="mat-snack-bar-handset"};Y(VZ,RZ);VZ.\u0275fac=function(a){return new (a||VZ)(be(lx),be(Aw),be(Cg),be(uw),be(VZ,12),be(hKc))};VZ.\u0275prov=Cd({token:VZ,factory:VZ.\u0275fac,providedIn:UZ});var o9c={duration:1E3},y9c=new le("xap-clipboard-snackbar-options"),WZ=function(a,b,c){this.clipboard=a;this.snackBar=b;this.snackBarConfig=c;this.textJob=""},z9c=function(a){var b,c,d,e;return z(function(f){if(f.nextAddress==1){b=Object.assign({},o9c,a.snackBarConfig);c=a.text;if(!a.clipboard.copy(c))return a.snackBar.open("Failed to copy.",void 0,b),f.jumpTo(0);if(typeof a.textJob==="string"||(d=a.textJob)==null||!d.richText)return f.jumpTo(3);e=a.textJob.richText instanceof Function?a.textJob.richText():
a.textJob.richText;if(typeof ClipboardItem!=="undefined"){var h=new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([c],{type:"text/plain"})});h=navigator.clipboard.write([h])}else h=Promise.resolve();return B(f,h,3)}a.snackBar.open("Copied to clipboard.",void 0,b);Lf(f)})};
nd.Object.defineProperties(WZ.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}}});WZ.\u0275fac=function(a){return new (a||WZ)(of(aO),of(VZ),of(y9c,8))};WZ.\u0275dir=vf({type:WZ,selectors:[["","xapCopyToClipboard",""]],hostBindings:function(a,b){a&1&&N("click",function(){return z9c(b)})},inputs:{textJob:[0,"xapCopyToClipboard","textJob"]}});var XZ=function(){};XZ.prototype.getAriaLabel=function(){return this.ariaLabel?this.ariaLabel:this.ariaLabelledBy||this.ariaDescribedBy?null:"Copy content to clipboard"};XZ.\u0275fac=function(a){return new (a||XZ)};
XZ.\u0275cmp=y({type:XZ,selectors:[["xap-copy-button"]],hostAttrs:[1,"xap-copy-button"],hostVars:2,hostBindings:function(a,b){a&2&&uh("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&&(J(0,"button",0)(1,"mat-icon",1),R(2," content_copy "),K()());a&2&&(I("xapCopyToClipboard",b.copyText)("disabled",b.disabled)("color",b.color),Lg("tabindex",b.tabIndex)("aria-label",b.getAriaLabel())("aria-labelledby",b.ariaLabelledBy)("aria-describedby",b.ariaDescribedBy))},dependencies:[aw,sJ,qJ,GC,FC,UZ,WZ],encapsulation:2,changeDetection:0});var YZ=function(){};YZ.\u0275fac=function(a){return new (a||YZ)};YZ.\u0275mod=uf({type:YZ});YZ.\u0275inj=Dd({imports:[XZ]});var ZZ=function(){};ZZ.\u0275fac=function(a){return new (a||ZZ)};ZZ.\u0275mod=uf({type:ZZ});ZZ.\u0275inj=Dd({imports:[HC,mH,BG,rY,gL,YZ]});var $Z=function(){this.clipboard=r(aO);this.analytics=r(RE);this.butterBar=r(GJ);this.window=r(HJ);this.activeSession=r(Bs);this.shortLinkPrefix=ml(this.activeSession.session)?"b/":"b-qa/"},Jtb=function(a,b){a.clipboard.copy(b.join(", "));Kq(a.butterBar,"Issue IDs copied.",2E3);a.analytics.trackEvent("listIssues","copyIssueId","IDs")},Ktb=function(a,b){a.clipboard.copy(b.map(function(c){return a.shortLinkPrefix+c}).join(", "));Kq(a.butterBar,"'"+a.shortLinkPrefix+"' links copied.",2E3);a.analytics.trackEvent("listIssues",
"copyIssueId","b/ links")},Ltb=function(a,b){b=Dq.listIssues.makeHref({q:"id:("+b.join("|")+")"});a.clipboard.copy(a.window.location.origin+b);Kq(a.butterBar,"Issue search link copied.",2E3);a.analytics.trackEvent("listIssues","copyIssueId","Issue search link")};$Z.\u0275fac=function(a){return new (a||$Z)};$Z.\u0275prov=Cd({token:$Z,factory:$Z.\u0275fac,providedIn:"root"});var a_=function(){};a_.\u0275fac=function(a){return new (a||a_)};a_.\u0275mod=uf({type:a_});a_.\u0275inj=Dd({imports:[HC,tJ,nW]});var b_=function(){};b_.\u0275fac=function(a){return new (a||b_)};b_.\u0275mod=uf({type:b_});b_.\u0275inj=Dd({imports:[HC,Ay,BG,RN,lM,wK,qQ]});var c_=function(){this.componentActions=r(WM);this.errorHandler=r(aK);this.cdr=r(NE)};c_.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 d_=function(a,b){a.selectedId&&A9c(a.selectedId);a.selectedId=b;if(a=B9c(a.selectedId))a.focus(),a.setAttribute("aria-selected","true")},e_=function(a){if(!a.selectedId)return null;var b;return(b=a.components.find(function(c){return c.componentId===a.selectedId}))!=null?b:null},C9c=function(a){return a.selectedId?a.components.findIndex(function(b){return b.componentId===a.selectedId}):-1},A9c=function(a){a&&(a=B9c(a))&&a.setAttribute("aria-selected","false")},B9c=function(a){return a?document.getElementById("component-"+
a):null},D9c=function(a){for(a=a.target;;){if(!a)return!1;if(a.tagName==="A")return!0;a=a.parentNode}};c_.\u0275fac=function(a){return new (a||c_)};c_.\u0275cmp=y({type:c_,selectors:[["component-subtree-list-base"]],standalone:!1,decls:0,vars:0,template:function(){},encapsulation:2});var fsb=function(a){return{q:a}},f_=function(){c_.apply(this,arguments);this.paths=r(oN);this.ROUTES=Dq;this.includeArchived=!1;this.childClosed=new LE;this.selectedId=null};Y(f_,c_);f_.prototype.ngOnInit=function(){};f_.prototype.ngOnDestroy=function(){this.parentComponent.focusOnChildren=void 0};f_.prototype.ngOnChanges=function(a){a.components&&E9c(this)};f_.prototype.onSubtreeChildClosed=function(a){this.selectedId=a;d_(this,a);this.rootController.selectionChanged(this,a)};
var E9c=function(a){a.parentComponent.focusOnChildren||(a.parentComponent.focusOnChildren=function(){a.selectNext()})};g=f_.prototype;
g.selectNext=function(){if(this.components)if(this.selectedId){var a=C9c(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?(A9c(this.selectedId),this.selectedId=null,b.focusOnChildren()):a+1!=this.components.length&&(d_(this,this.components[a+1].componentId),this.rootController.selectionChanged(this,this.selectedId))}else d_(this,this.components[0].componentId),this.rootController.selectionChanged(this,this.selectedId)};
g.selectPrevious=function(){var a=C9c(this);a==0?(this.selectedId=null,this.childClosed.emit(this.parentComponent.componentId)):(d_(this,this.components[a-1].componentId),this.rootController.selectionChanged(this,this.selectedId))};g.closeSubtree=function(){if(this.selectedId){var a=e_(this);a.showChildren?a.showChildren=!1:(this.selectedId=null,this.parentComponent.showChildren=!1,this.childClosed.emit(this.parentComponent.componentId));this.cdr.detectChanges()}};
g.showChildrenForSelectedId=function(){var a=e_(this);a&&this.showChildren(a)};g.setSelected=function(a,b){D9c(b)||(d_(this,a),this.rootController.selectionChanged(this,a),b.preventDefault(),b.stopPropagation())};g.toggleChildrenForSelectedId=function(){var a=e_(this);a&&(a.showChildren?(a.showChildren=!1,this.cdr.detectChanges()):this.showChildren(a))};f_.\u0275fac=function(){var a;return function(b){return(a||(a=Re(f_)))(b||f_)}}();
f_.\u0275cmp=y({type:f_,selectors:[["component-subtree-list"]],inputs:{parentComponent:"parentComponent",rootController:"rootController",components:"components",includeArchived:"includeArchived"},outputs:{childClosed:"childClosed"},standalone:!1,features:[Fh([NE]),Bg,ov],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&&(J(0,"ol",0),Pg(1,msb,19,11,"li",1,Og),K());a&2&&(x(),Qg(b.components))},dependencies:[FC,zG,xG,oG,Jx,yN,SM,$M,f_],encapsulation:2});var qsb=function(a){return{q:a}},g_=function(){c_.call(this);this.paths=r(oN);this.hotkeys=r(PG);this.elementRef=r(Te);this.ROUTES=Dq;this.scrollArea=this.elementRef.nativeElement.parentElement;this.selectedId=null;this.includeArchived=!1;this.init=new LE;this.subscriptions=new yf;this.destroyed$=new sg(1);this.registerKeys()};Y(g_,c_);g=g_.prototype;
g.ngOnInit=function(){var a=this;this.rootController=this;bg(0).pipe(yg(this.destroyed$)).subscribe(function(){F9c(a)&&!a.selectedId&&d_(a,a.components[0].componentId)});this.init.emit(this)};g.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete();this.subscriptions.unsubscribe()};g.ngOnChanges=function(a){a.components&&G9c(this)};g.onSubtreeChildClosed=function(a){var b=this;d_(this,a);this.focusedController=void 0;bg(0).pipe(yg(this.destroyed$)).subscribe(function(){h_(b)})};
g.fireSelectionEvent=function(a){var b=B9c(a);b&&b.click();h_(this,a)};var G9c=function(a){bg(0).pipe(yg(a.destroyed$)).subscribe(function(){F9c(a)&&!a.selectedId&&d_(a,a.components[0].componentId)})};g=g_.prototype;g.selectionChanged=function(a,b){b&&h_(this,b);a!==this.focusedController&&(this.focusedController&&(b=this.focusedController,b.selectedId&&A9c(b.selectedId),b.selectedId=null),this.focusedController=a||void 0)};
g.setSelected=function(a,b){D9c(b)||(d_(this,a),this.selectionChanged(null),h_(this),b.preventDefault(),b.stopPropagation())};
g.registerKeys=function(){var a=this;this.subscriptions.add(QG(this.hotkeys,{title:"Browse Controls",hotkeys:[{keys:["j","DOWN"],displayAs:"j / Down",description:"Move to the next component",onPress:function(){a.selectNext()}},{keys:["k","UP"],displayAs:"k / Up",description:"Move to the previous component",onPress:function(){a.selectPrevious()}},{keys:["RIGHT"],displayAs:"Right",description:"View the components children",onPress:function(){a.showChildrenForSelectedId()}},{keys:["LEFT"],displayAs:"Left",
description:"Close the components children",onPress:function(){a.closeSubtree()}},{keys:["SPACE","ENTER"],displayAs:"Space / Enter",description:"Toggle component children display",onPress:function(){a.toggleChildrenForSelectedId()}}]}))};g.showChildrenForSelectedId=function(){if(this.focusedController)this.focusedController.showChildrenForSelectedId();else{var a=e_(this);a&&this.showChildren(a)}};
g.toggleChildrenForSelectedId=function(){this.focusedController&&this.focusedController.toggleChildrenForSelectedId();var a=e_(this);a&&(a.showChildren?(a.showChildren=!1,this.cdr.detectChanges()):this.showChildren(a))};g.closeSubtree=function(){this.focusedController?this.focusedController.closeSubtree():this.selectedId&&(e_(this).showChildren=!1,this.cdr.detectChanges())};
g.selectPrevious=function(){if(this.focusedController)this.focusedController.selectPrevious();else{var a=C9c(this);F9c(this)&&a>=1&&(d_(this,this.components[a-1].componentId),h_(this))}};
g.selectNext=function(){if(F9c(this))if(this.focusedController)this.focusedController.selectNext();else if(this.selectedId){var a=C9c(this),b=this.components[a];b.showChildren&&b.focusOnChildren&&!b.noChildren?(A9c(this.selectedId),this.selectedId=null,b.focusOnChildren()):a+1!=this.components.length&&(d_(this,this.components[a+1].componentId),h_(this))}else d_(this,this.components[0].componentId),h_(this)};
var h_=function(a,b){var c=H9c(a.scrollArea),d=c+a.scrollArea.offsetHeight;if(a=B9c(b||a.selectedId)){b=H9c(a);var e=b+a.offsetHeight;b<c?a.scrollIntoView(!1):e>d&&a.scrollIntoView(!0)}},H9c=function(a){for(var b=0;a&&a instanceof HTMLElement;)b+=a.offsetTop,a=a.offsetParent;return b},F9c=function(a){return!!(a.components&&a.components.length>0)};g_.\u0275fac=function(a){return new (a||g_)};
g_.\u0275cmp=y({type:g_,selectors:[["component-tree-list"]],inputs:{components:"components",includeArchived:"includeArchived"},outputs:{init:"init"},standalone:!1,features:[Fh([NE]),Bg,ov],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&&(J(0,"ol",0),Pg(1,xsb,19,10,"li",1,Og),K());a&2&&(x(),Qg(b.components))},dependencies:[FC,zG,xG,oG,Jx,yN,SM,$M,f_],encapsulation:2});var i_=function(){};i_.\u0275fac=function(a){return new (a||i_)};i_.\u0275mod=uf({type:i_});i_.\u0275inj=Dd({imports:[HC,CG,BG,AN,qQ,OQ]});var j_=function(){this.customFields=this.selectedComponent=null;this.fieldSelected=new LE;this.filter=function(){return!0}};j_.prototype.onComponentSelect=function(a){var b=this;if(this.selectedComponent=a){var c;this.customFields=(((c=a.componentPathInfo)==null?void 0:c.allCustomField)||[]).filter(function(d){return b.filter(d)}).sort(function(d,e){return d.name.localeCompare(e.name)})}else this.customFields=null};j_.\u0275fac=function(a){return new (a||j_)};
j_.\u0275cmp=y({type:j_,selectors:[["b-custom-field-picker"]],inputs:{filter:"filter"},outputs:{fieldSelected:"fieldSelected"},standalone:!1,decls:5,vars:4,consts:[[1,"bv2-custom-field-picker"],[1,"bv2-custom-field-picker-message"],[3,"selectedComponentChange","selectedComponent","placeholder","isRequired"],[1,"bv2-custom-field-picker-select-box"],["appearance","outline"],[1,"mat-select","bv2-custom-field-picker-select",3,"selectionChange"],[3,"value"]],template:function(a,b){a&1&&(J(0,"div",0)(1,
"div",1),R(2," First, select a component that contains the custom field. "),K(),J(3,"b-team-component-picker",2),N("selectedComponentChange",function(c){return b.onComponentSelect(c!=null?c:null)}),K(),F(4,Csb,4,3,"div",3),K());a&2&&(x(3),I("selectedComponent",b.selectedComponent)("placeholder","Choose Component")("isRequired",!0),x(),G(b.selectedComponent?4:-1))},dependencies:[bP,My,Fy,jP,Bx,DM,hN],encapsulation:2});var k_=function(){};k_.\u0275fac=function(a){return new (a||k_)};k_.\u0275mod=uf({type:k_});
k_.\u0275inj=Dd({imports:[HC,hQ,SQ]});var I9c=function(a){return{value:a}},l_=function(){this.isNonemptyJsonDateValue=Twa};l_.prototype.toDate=function(a){return Il(a)};l_.\u0275fac=function(a){return new (a||l_)};
l_.\u0275cmp=y({type:l_,selectors:[["b-custom-field-value-display"]],inputs:{customFieldValue:"customFieldValue"},standalone:!1,decls:6,vars:4,consts:[["null",""],["nonNull",""],[1,"bv2-custom-field-value-display"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["mode","date",3,"date"]],template:function(a,b){a&1&&(J(0,"span",2),D(1,Dsb,1,0,"ng-container",3),K(),D(2,Esb,0,0,"ng-template",null,0,Lh)(4,Rsb,8,8,"ng-template",null,1,Lh));a&2&&(a=Q(5),x(),I("ngTemplateOutlet",b.customFieldValue==null?
null:a)("ngTemplateOutletContext",Hh(2,I9c,b.customFieldValue)))},dependencies:[Sv,EL],encapsulation:2});var m_=function(){};m_.\u0275fac=function(a){return new (a||m_)};m_.\u0275mod=uf({type:m_});m_.\u0275inj=Dd({imports:[HC,JL]});var n_=function(){this.documentationLinks=r(JJ);this.userAccess=r(AD);this.errorHandler=r(aK);this.data=r(QJ);this.issuesToFlag=this.data.issuesToFlag;this.issuesChecked=0;this.protectedIssues=[];this.permissionsCheckComplete=!1};n_.prototype.ngOnInit=function(){J9c(this,this.issuesToFlag)};
var J9c=function(a,b){b.length<=0?a.permissionsCheckComplete=!0:BD(a.userAccess,"admin","components/"+b[0].componentId).then(function(c){a.issuesChecked++;c||a.protectedIssues.push(b[0]);J9c(a,b.slice(1))},function(c){a.errorHandler.errorHandler(null,c)})};n_.\u0275fac=function(a){return new (a||n_)};
n_.\u0275cmp=y({type:n_,selectors:[["b-bulk-flag-as-spam-dialog"]],standalone:!1,decls:19,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"bv2-bulk-flag-as-spam-prompt"],["target","_blank",1,"keep-underline",3,"href"],[1,"bv2-bulk-flag-as-spam-warning"],["mat-dialog-actions",""],["type","button","mat-button","","mat-dialog-close","",1,"medium"],["type","button","mat-flat-button","","cdkFocusInitial","",1,"dialog-primary-action",3,"disabled","mat-dialog-close"]],template:function(a,
b){a&1&&(J(0,"h1",0),R(1,"Flag Issues as Spam"),K(),J(2,"div",1)(3,"div",2)(4,"p"),R(5),J(6,"a",3),R(7,"see here"),K(),R(8,". "),K(),J(9,"p"),R(10," This operation cannot be undone in bulk. "),K()(),J(11,"div",4),F(12,Ssb,3,2,"div"),F(13,Usb,6,1,"div"),K()(),J(14,"div",5)(15,"button",6),R(16," Close "),K(),J(17,"button",7),R(18," Flag as Spam "),K()());a&2&&(x(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, "),
x(),I("href",pKc(b.documentationLinks),hf),x(6),G(b.permissionsCheckComplete?-1:12),x(),G(b.permissionsCheckComplete&&b.protectedIssues.length>0?13:-1),x(4),I("disabled",!b.permissionsCheckComplete)("mat-dialog-close",!0))},dependencies:[oG,Jx,SJ,UJ,WJ,VJ],encapsulation:2});var o_=function(){this.cdr=r(NE,{self:!0});this.dialogRef=r(KJ);this.component=null};o_.prototype.updateComponent=function(a){this.component=a;this.cdr.detectChanges()};o_.prototype.save=function(){this.dialogRef.close(this.component)};o_.prototype.cancel=function(){this.dialogRef.close()};o_.\u0275fac=function(a){return new (a||o_)};
o_.\u0275cmp=y({type:o_,selectors:[["b-bulk-move-dialog"]],standalone:!1,features:[Fh([NE])],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&&(J(0,"h1",0),R(1,"Change Component"),K(),J(2,"mat-dialog-content")(3,"p"),R(4,"Choose new component for these issues."),K(),
J(5,"p",1),R(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. "),K(),J(7,"b-team-component-picker",2),N("selectedComponentChange",function(c){return b.updateComponent(c!=null?c:null)}),K()(),J(8,"mat-dialog-actions")(9,"button",3),N("click",function(){return b.cancel()}),R(10," Cancel "),K(),J(11,"button",4),N("click",function(){return b.save()}),R(12," Save "),K()());a&2&&(x(7),I("selectedComponent",
b.component)("placeholder","Choose Component")("isRequired",!0),x(4),I("disabled",b.component==null))},dependencies:[oG,Jx,UJ,WJ,VJ,hN],styles:[".bv2-bulk-move-warning[_ngcontent-%COMP%]{font-weight:bold}mat-dialog-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--text)}"]});var p_=function(){this.renderPanel=this.noneButtonEnabled=!0;this.sloEditCommit=new LE;this.closePicker=new LE;this.currentPickerDate=new rl};p_.prototype.ngOnChanges=function(a){if(a.sloEditTime){var b;this.currentPickerDate=(b=new rl(DQa(this.sloEditTime)))!=null?b:void 0}};p_.prototype.setDate=function(a){this.currentPickerDate=a};p_.\u0275fac=function(a){return new (a||p_)};
p_.\u0275cmp=y({type:p_,selectors:[["slo-edit-date-time-picker"]],inputs:{sloEditTime:"sloEditTime",noneButtonEnabled:"noneButtonEnabled",sloStatus:"sloStatus",renderPanel:"renderPanel"},outputs:{sloEditCommit:"sloEditCommit",closePicker:"closePicker"},standalone:!1,features:[Fh([NE]),ov],decls:2,vars:4,consts:[[3,"clickOutside"],[3,"dateTimeChange","saveClicked","cancelClicked","renderPanel","dateTime","noneButtonEnabled","includeTimePicker"]],template:function(a,b){a&1&&(J(0,"div",0),N("clickOutside",
function(){b.closePicker.emit()}),J(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()}),K()());a&2&&(x(),I("renderPanel",b.renderPanel)("dateTime",b.currentPickerDate)("noneButtonEnabled",b.noneButtonEnabled)("includeTimePicker",!0))},dependencies:[MU,qL],
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 q_=function(){this.data=r(QJ);this.dialogRef=r(KJ);this.fieldDisplayName=this.data.fieldDisplayName;this.commitEvent=void 0};q_.prototype.close=function(){this.dialogRef.close(this.commitEvent)};q_.\u0275fac=function(a){return new (a||q_)};
q_.\u0275cmp=y({type:q_,selectors:[["b-edit-calendar-modal"]],standalone:!1,decls:3,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"sloEditCommit","closePicker","renderPanel"]],template:function(a,b){a&1&&(J(0,"h1",0),R(1),K(),J(2,"slo-edit-date-time-picker",1),N("sloEditCommit",function(c){b.commitEvent=c})("closePicker",function(){return b.close()}),K());a&2&&(x(),T("Edit ",b.fieldDisplayName),x(),I("renderPanel",!1))},dependencies:[UJ,VJ,p_],encapsulation:2});var r_=function(){this.data=r(QJ);this.dialogRef=r(KJ);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})};
r_.prototype.enableSubmit=function(){return this.isEnumSpec&&this.currentEnumLabel!==""||!this.isEnumSpec};r_.prototype.cancel=function(){this.dialogRef.close(void 0)};r_.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)};r_.\u0275fac=function(a){return new (a||r_)};
r_.\u0275cmp=y({type:r_,selectors:[["b-edit-estimated-effort-modal"]],standalone:!1,decls:9,vars:3,consts:[["mat-dialog-title",""],[1,"bv2-top-field-label"],["type","button","mat-button","",3,"click"],["type","button","mat-flat-button","",3,"click","disabled"],[3,"valueChange","value","includeEmptyOption","options"],["matInput","",3,"ngModelChange","keypress","ngModel"]],template:function(a,b){a&1&&(J(0,"h1",0),R(1),K(),F(2,Vsb,4,4,"div",1)(3,Wsb,5,2,"mat-dialog-content"),J(4,"mat-dialog-actions")(5,
"button",2),N("click",function(){return b.cancel()}),R(6," Cancel "),K(),J(7,"button",3),N("click",function(){return b.save()}),R(8," Save "),K()());a&2&&(x(),T("Edit ",b.fieldDisplayName),x(),G(b.isEnumSpec?2:3),x(5),I("disabled",!b.enableSubmit()))},dependencies:[Ui,dy,ky,oG,Jx,UJ,WJ,VJ,FM,Uy,My,Fy,DM,BU],encapsulation:2});var s_=function(){this.data=r(QJ);this.dialogRef=r(KJ);this.removeItems=this.addItems="";this.fieldDisplayName=this.data.fieldDisplayName};s_.prototype.save=function(){this.dialogRef.close({addItems:this.addItems,removeItems:this.removeItems})};s_.prototype.close=function(){this.dialogRef.close()};s_.\u0275fac=function(a){return new (a||s_)};
s_.\u0275cmp=y({type:s_,selectors:[["b-edit-item-modal"]],standalone:!1,decls:20,vars:6,consts:[["mat-dialog-title",""],[1,"bv2-modal-form"],["appearance","outline","subscriptSizing","dynamic"],["matInput","","type","text",3,"ngModelChange","ngModel"],["type","button","mat-button","",3,"click"],["type","button","mat-flat-button","",3,"click"]],template:function(a,b){a&1&&(J(0,"h1",0),R(1),K(),J(2,"mat-dialog-content")(3,"p"),R(4),K(),J(5,"div",1)(6,"mat-form-field",2)(7,"mat-label"),R(8),K(),J(9,
"input",3),Ah("ngModelChange",function(c){zh(b.addItems,c)||(b.addItems=c);return c}),K()(),M(10,"br"),J(11,"mat-form-field",2)(12,"mat-label"),R(13),K(),J(14,"input",3),Ah("ngModelChange",function(c){zh(b.removeItems,c)||(b.removeItems=c);return c}),K()()()(),J(15,"mat-dialog-actions")(16,"button",4),N("click",function(){return b.close()}),R(17," Cancel "),K(),J(18,"button",5),N("click",function(){return b.save()}),R(19," Save "),K()());a&2&&(x(),T("Edit ",b.fieldDisplayName),x(3),T("Enter ",b.fieldDisplayName,
" to add or remove"),x(4),T(" ",b.fieldDisplayName," to Add "),x(),yh("ngModel",b.addItems),x(4),T(" ",b.fieldDisplayName," to Remove "),x(),yh("ngModel",b.removeItems))},dependencies:[Ui,dy,ky,oG,Jx,FM,Uy,My,Fy,DM,UJ,WJ,VJ],styles:["mat-form-field[_ngcontent-%COMP%]{margin-top:8px}"]});var K9c=["hotlistFilterInput"],L9c=["hotlistCreate"],M9c=["hotlistApply"],N9c=["hotlistLoad"],O9c=["menuitem"],t_=function(){Z.apply(this,arguments);this.liveAnnouncer=r(Aw);this.butterBar=r(GJ);this.userAccess=r(AD);this.analytics=r(RE);this.activeSession=r(Bs);this.cdr=r(NE,{self:!0});this.selectedHotlistIds=[[]];this.choices=[];this.checkEditAcl=!0;this.onCreate=new LE;this.onApply=new LE;this.onLoad=new LE;this.hotlistEditAcls={};this.validHotlistIds=new Set;this.pendingChanges=this.canLoad=this.canCreate=
!1;this.oldSelectedHotlistMap={};this.selectedHotlistMap={};this.shouldShowHotlist={};this.filterText="";this.focusedRowIndex=-1;this.isAnonymous=this.activeSession.isAnonymous()};Y(t_,Z);t_.\u0275dir=Z.\u0275dir;t_.prototype.ngAfterViewInit=function(){var a=this,b;(b=this.trigger)==null||b.menuOpened.pipe(yg(this.destroyed$)).subscribe(function(){bg(0).pipe(yg(a.destroyed$)).subscribe(function(){a.focusFilterBox()})});var c;(c=this.trigger)==null||c.menuClosed.pipe(yg(this.destroyed$)).subscribe(function(){P9c(a)})};
t_.prototype.focusFilterBox=function(){this.filterElement.nativeElement.focus()};t_.prototype.ngOnChanges=function(){Q9c(this);this.oldSelectedHotlistMap=Object.assign({},this.selectedHotlistMap);this.pendingChanges=this.canCreate=!1;R9c(this)};
var Q9c=function(a){var b={};Mra(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;Maa(a.choices,function(h,k){var q=b[h.hotlistId],v=b[k.hotlistId];return q>v?-1:q<v?1:ia(h.name,k.name)})}}};t_.prototype.open=function(){this.trigger.openMenu();this.cdr.detectChanges()};t_.prototype.close=function(){this.trigger.closeMenu()};
t_.prototype.hasAclToEdit=function(a){var b=this;if(Ira(this.hotlistEditAcls,a.hotlistId))return this.hotlistEditAcls[a.hotlistId];BD(this.userAccess,"appender","hotlists/"+a.hotlistId).then(function(c){b.hotlistEditAcls[a.hotlistId]=c})};
var Xsb=function(a,b){if(!a.checkEditAcl)return!1;a=a.hasAclToEdit(b);return a===void 0?!0:!a},Ysb=function(a,b){var c=a.selectedHotlistMap[b.hotlistId];a.selectedHotlistMap[b.hotlistId]=c===null?!0:!c;etb(a);a.close()},etb=function(a){a.onApply.emit({oldSelectionMap:a.oldSelectedHotlistMap,newSelectionMap:a.selectedHotlistMap})},R9c=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]=ma(e.name,b),e.name===b&&(c=!0);a.canCreate=
!(!b||c);a.canLoad=rjb(oa(b))&&!!b&&!!a.onLoad},P9c=function(a){a.trigger.menuOpen||(Q9c(a),a.filterText="",R9c(a),a.pendingChanges=!1,a.focusedRowIndex=-1)},S9c=function(a){var b=a.selectedHotlistIds;return b&&b.length===1?"Hotlists ("+Eaa(b[0],function(c){return a.validHotlistIds.has(c)})+")":"Hotlists"};
t_.prototype.createHotlist=function(){var a=this,b=this.filterText;this.canCreate&&(this.filterText="",R9c(this),this.onCreate.emit({name:b,successCallback:function(c){Ysb(a,c)},errorCallback:function(){a.butterBar.showWarning("Failed to create hotlist "+b)}}))};
t_.prototype.loadHotlist=function(){var a=this,b=this.filterText;if(this.canLoad){this.analytics.trackEvent("hotlistPicker","loadHotlist");Kq(this.butterBar,"Loading hotlist "+b.toString());this.filterText="";R9c(this);for(var c=kj(b),d=l(this.choices),e=d.next();!e.done;e=d.next())if(e=e.value,c===e.hotlistId){Ysb(this,e);return}this.onLoad.emit({hotlistId:c,successCallback:function(f){Ysb(a,f)},errorCallback:function(){a.butterBar.showWarning("Failed to load hotlist "+b)}})}};
t_.prototype.handleSelectionChange=function(){this.focusFilterBox();this.pendingChanges=!gj(this.oldSelectedHotlistMap,this.selectedHotlistMap)};
var Zsb=function(a,b){Xsb(a,b)||(a.selectedHotlistMap[b.hotlistId]=!a.selectedHotlistMap[b.hotlistId],a.handleSelectionChange())},Z9c=function(a,b){b=b===void 0?0:b;var c=T9c(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=Da(T9c(a),b),U9c(a),V9c(a,b)):a.focusedRowIndex<d&&a.canCreate?W9c(a,d):a.focusedRowIndex<d+1&&a.canLoad?X9c(a,d):a.focusedRowIndex<d+2&&a.pendingChanges&&
Y9c(a,d)},T9c=function(a){return a.menuItems.map(function(b){return b.nativeElement})},$9c=function(a,b){b=b===void 0?0:b;if(a.focusedRowIndex===a.choices.length+1&&a.canCreate)W9c(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canLoad)X9c(a,a.choices.length);else if(a.focusedRowIndex===a.choices.length+2&&a.canCreate)W9c(a,a.choices.length);else{var c=T9c(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=Da(T9c(a),b),U9c(a),V9c(a,b)):(a.focusedRowIndex=-1,V9c(a,null))}},V9c=function(a,b){a.filterElement&&OG(a.filterElement.nativeElement,b);a.focusFilterBox()},W9c=function(a,b){a.focusedRowIndex=b;OG(a.filterElement.nativeElement,null);var c;(c=a.createElement)==null||c.focus();a.liveAnnouncer.announce("Create new hotlist "+a.filterText);a.focusFilterBox()},X9c=function(a,b){a.focusedRowIndex=b+1;OG(a.filterElement.nativeElement,null);var c;(c=a.loadElement)==
null||c.focus();a.liveAnnouncer.announce("Load hotlist "+a.filterText);a.focusFilterBox()},Y9c=function(a,b){a.focusedRowIndex=b+2;OG(a.filterElement.nativeElement,null);var c;(c=a.applyElement)==null||c.focus();a.liveAnnouncer.announce("Apply");a.focusFilterBox()},U9c=function(a){a.focusedRowIndex===-1||a.focusedRowIndex>=a.choices.length||(a=T9c(a)[a.focusedRowIndex],a.scrollIntoViewIfNeeded?a.scrollIntoViewIfNeeded():a.scrollIntoView({block:"end"}))},$sb=function(a){return a==null?"mixed":a.toString()},
atb=function(a){return a==null?"indeterminate":a?"checked":"unchecked"};t_.\u0275fac=function(){var a;return function(b){return(a||(a=Re(t_)))(b||t_)}}();
t_.\u0275cmp=y({type:t_,selectors:[["b-hotlist-picker"]],viewQuery:function(a,b){a&1&&(hh(uG,5),hh(K9c,5),hh(L9c,5),hh(M9c,5),hh(N9c,5),hh(O9c,5));if(a&2){var c;lh(c=mh())&&(b.trigger=c.first);lh(c=mh())&&(b.filterElement=c.first);lh(c=mh())&&(b.createElement=c.first);lh(c=mh())&&(b.applyElement=c.first);lh(c=mh())&&(b.loadElement=c.first);lh(c=mh())&&(b.menuItems=c)}},inputs:{selectedHotlistIds:"selectedHotlistIds",choices:"choices",checkEditAcl:"checkEditAcl"},outputs:{onCreate:"onCreate",onApply:"onApply",
onLoad:"onLoad"},standalone:!1,features:[Fh([NE]),Bg,ov],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();J(0,"button",7)(1,"span",8);R(2);K();M(3,"b-icon",9);K();J(4,"mat-menu",null,0)(6,"div",10)(7,"div",11)(8,"div",12)(9,"input",13,1);Ah("ngModelChange",function(d){u(c);zh(b.filterText,d)||(b.filterText=d);return w(d)});N("ngModelChange",
function(){u(c);return w(R9c(b))})("mousedown",function(d){u(c);return w(d.stopPropagation())})("blur",function(){u(c);return w(P9c(b))})("click",function(d){u(c);return w(d.stopPropagation())})("keydown",function(d){u(c);d.stopImmediatePropagation();d.key==="Escape"?b.close():d.key==="ArrowDown"?(Z9c(b),d.preventDefault()):d.key==="ArrowUp"?($9c(b),d.preventDefault()):d.key==="PageUp"?$9c(b,11):d.key==="PageDown"?Z9c(b,11):d.key===" "?b.focusedRowIndex===-1||b.focusedRowIndex>=b.choices.length||
(Zsb(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(),etb(b)):0<=b.focusedRowIndex&&b.focusedRowIndex<b.choices.length&&b.hasAclToEdit(b.choices[b.focusedRowIndex])&&Ysb(b,b.choices[b.focusedRowIndex]));return w()});K()()();M(11,"mat-divider");D(12,gtb,12,7,"ng-template",14);K()()}a&2&&(a=Q(5),I("matMenuTriggerFor",a)("disabled",b.isAnonymous),
x(2),wh(S9c(b)),x(7),yh("ngModel",b.filterText))},dependencies:[pG,sG,qG,rG,uG,oG,Jx,Ui,dy,wy,ky,Ax,zG,xG,pL,eL],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 c$c=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 xK;this.selectedVerifiersStatus=this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";a$c(this,b);b$c(this,b)},a$c=function(a,b){var c=b[0],d=wl.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},d$c=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||pl(c)})?b?"MULTIPLE":"IDENTICAL_EMAILS":"POSSIBLY_MULTIPLE"},b$c=function(a,b){var c=
b.map(function(d){return d.assigneeEmail});b=b.map(function(d){return d.verifierEmail});a.selectedAssigneesStatus=d$c(c);a.selectedVerifiersStatus=d$c(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])};
c$c.prototype.clearAssignee=function(){this.commonAssignee="";this.selectedAssigneesStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteAssignee=!0;e$c(this)};c$c.prototype.clearVerifier=function(){this.commonVerifier="";this.selectedVerifiersStatus="ISSUE_SELECTION_STATUS_UNSPECIFIED";this.overwriteVerifier=!0};
var ttb=function(a){return a.origIssues.every(function(b){return!!b.verifierEmail})},mtb=function(a,b){(a.origCommonIssueState=b)?(b.status==="NEW"?f$c(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||f$c(a.selectedAssigneesStatus)||(a.commonAssignee=a.lastCommonAssignee?
a.lastCommonAssignee:a.userEmail),f$c(a.selectedVerifiersStatus)||a.commonVerifier||b.status!=="VERIFIED"||(a.commonVerifier=a.userEmail)),a.issueState=a.origCommonIssueState):a.issueState=void 0},f$c=function(a){return a==="MULTIPLE"||a==="POSSIBLY_MULTIPLE"},e$c=function(a){a.issueState===Tsa&&a.commonAssignee?a.origCommonIssueState===Tsa?a.issueState=Usa:a.issueState=a.origCommonIssueState:a.commonAssignee||a.issueState&&!Soc.has(a.issueState)||(a.issueState=Tsa)},g$c=function(a){var b=a.issueState;
return b?a.origIssues.some(function(c){return b.status!==c.status}):!1},h$c=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);g$c(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 u_=function(){this.externalWarnings=[]};u_.\u0275fac=function(a){return new (a||u_)};
u_.\u0275cmp=y({type:u_,selectors:[["b-external-warnings"]],inputs:{externalWarnings:"externalWarnings"},standalone:!1,decls:1,vars:1,consts:[[1,"bv2-external-component-modal-warning"],[3,"href"],[3,"issueId"],[3,"accessLevel"]],template:function(a,b){a&1&&F(0,ltb,11,0,"div",0);a&2&&G(b.externalWarnings.length>0?0:-1)},dependencies:[SM,NO],styles:[".bv2-external-component-modal-warning[_ngcontent-%COMP%] {\n  padding-top: 10px;\n\n  ul {\n    padding-left: 0;\n  }\n}"],changeDetection:0});
var v_=function(){};v_.\u0275fac=function(a){return new (a||v_)};v_.\u0275mod=uf({type:v_});v_.\u0275inj=Dd({imports:[qQ,AQ]});var i$c=["dialog"],j$c=["statusForm"],w_=function(){Z.call(this);this.matDialog=r(RJ);this.activeSession=r(Bs);this.hotkeys=r(PG);this.userPreferencesManager=r(iG);this.enablePeoplekitAc=OA(this.activeSession,"enablePeoplekitUserAc");this.comment=new xK;this.save=new LE;this.close=new LE;this.externalWarnings=[];this.issueStates=dta();this.issueEditBuilder=null;this.FocusableField=k$c;this.enableRecaptcha=this.activeSession.userRequiresCaptcha()&&OA(this.activeSession,"enableBulkEditCaptchaUi");var a;
this.comment.formattingMode=Tj((a=jG(this.userPreferencesManager).textDisplayPreferences)==null?void 0:a.lastPublishMode)};Y(w_,Z);w_.\u0275dir=Z.\u0275dir;
w_.prototype.showDialog=function(a,b,c){var d=this;this.issueEditBuilder=new c$c(this.activeSession.getUserEmail(),a);this.issueEditBuilder.comment=this.comment;b&&mtb(this.issueEditBuilder,b);this.focus=c;this.hotkeys.pause();this.matDialogRef=this.matDialog.open(this.dialog,{minWidth:512,maxWidth:512});LJ(this.matDialogRef).pipe(yg(this.destroyed$)).subscribe(function(e){d.hotkeys.unpause();e&&d.save.emit();d.close.emit()})};
var Dtb=function(a){var b;if(!(b=!a.statusForm||a.statusForm.invalid))a:{if(a.issueEditBuilder!=null){b=h$c(a.issueEditBuilder);var c=b.get("status");if(c==="DUPLICATE"){b=!b.get("duplicateOfIssueId");break a}if(c==="VERIFIED"){b=!ttb(a.issueEditBuilder)&&!b.get("verifier");break a}}b=!1}return b||a.enableRecaptcha&&a.issueEditBuilder.recaptchaResponse===""?!1:!0},Zr=function(a){if(Dtb(a)){var b;(b=a.matDialogRef)==null||b.close(!0)}};
w_.prototype.setAssignee=function(a){this.issueEditBuilder&&(this.issueEditBuilder.commonAssignee=a,e$c(this.issueEditBuilder))};w_.\u0275fac=function(a){return new (a||w_)};
w_.\u0275cmp=y({type:w_,selectors:[["b-state-modal"]],viewQuery:function(a,b){a&1&&(hh(i$c,5),hh(j$c,5));if(a&2){var c;lh(c=mh())&&(b.dialog=c.first);lh(c=mh())&&(b.statusForm=c.first)}},inputs:{externalWarnings:"externalWarnings"},outputs:{save:"save",close:"close"},standalone:!1,features:[Bg],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,"cdkFocusInitial","email"],["type","text","name","assignee",3,"ngModel","bContactAutocomplete"],["name","assignee",3,"emailChange","keydown.control.enter",
"keydown.meta.enter","cdkFocusInitial","email"],["type","text","name","assignee",3,"ngModelChange","keydown.control.enter","keydown.meta.enter","ngModel","bContactAutocomplete"],["title","Clear verifiers",3,"click"],["name","verifier",3,"cdkFocusInitial","email","required"],["type","text","name","verifier",3,"ngModel","required","bContactAutocomplete"],["name","verifier",3,"emailChange","keydown.control.enter","keydown.meta.enter","cdkFocusInitial","email","required"],["type","text","name","verifier",
3,"ngModelChange","keydown.control.enter","keydown.meta.enter","ngModel","required","bContactAutocomplete"],["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&&D(0,Etb,14,5,"ng-template",null,0,Lh)},dependencies:[SJ,UJ,WJ,VJ,ly,Ui,dy,ey,vy,ky,iy,oG,Jx,eL,pG,sG,qG,uG,zI,IV,TR,u_,aV],encapsulation:2});
var k$c={ASSIGNEE:0,VERIFIER:1,COMMENT:2,DUPE_ID:3,0:"ASSIGNEE",1:"VERIFIER",2:"COMMENT",3:"DUPE_ID"};var x_=function(){this.dialogRef=r(KJ);this.activeSession=r(Bs);this.enablePeoplekitAc=OA(this.activeSession,"enablePeoplekitUserAc");this.reporter="";this.autocompleteActive=!1};x_.prototype.enableSubmit=function(){return this.reporter!==""};x_.prototype.cancel=function(){this.dialogRef.close()};x_.prototype.save=function(){this.dialogRef.close(this.reporter)};x_.\u0275fac=function(a){return new (a||x_)};
x_.\u0275cmp=y({type:x_,selectors:[["b-reporter-picker-dialog"]],standalone:!1,decls:14,vars:2,consts:[["mat-dialog-title",""],["appearance","outline","subscriptSizing","dynamic"],[3,"keydown"],[3,"asMatInput","email"],["matInput","",3,"bContactAutocomplete","ngModel"],["type","button","mat-button","",3,"click"],["type","button","mat-flat-button","",3,"click","disabled"],[3,"emailChange","asMatInput","email"],["matInput","",3,"ngModelChange","autocompleteActive","bContactAutocomplete","ngModel"]],
template:function(a,b){a&1&&(J(0,"h1",0),R(1,"Change Reporter"),K(),J(2,"mat-dialog-content")(3,"mat-form-field",1)(4,"mat-label"),R(5," Reporter "),K(),J(6,"div",2),N("keydown",function(c){c.key==="Enter"&&!b.autocompleteActive&&b.enableSubmit()&&b.save()}),F(7,Ftb,1,2,"b-peoplekit-single",3)(8,Gtb,1,2,"input",4),K()()(),J(9,"mat-dialog-actions")(10,"button",5),N("click",function(){return b.cancel()}),R(11," Cancel "),K(),J(12,"button",6),N("click",function(){return b.save()}),R(13," Save "),K()());
a&2&&(x(7),G(b.enablePeoplekitAc?7:8),x(5),I("disabled",!b.enableSubmit()))},dependencies:[Ui,dy,ky,oG,Jx,UJ,WJ,VJ,FM,Uy,My,Fy,DM,zI,aV],styles:["mat-dialog-content[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{margin-top:8px}"]});var l$c=["addCommentDialog"],y_=function(){Z.apply(this,arguments);var a=this;this.componentFridge=r(BB);this.cdr=r(NE);this.activeSession=r(Bs);this.analytics=r(RE);this.hotkeys=r(PG);this.componentActions=r(WM);this.issueTypeDialog=r(ZJ);this.copyIssueIdService=r($Z);this.matDialog=r(RJ);this.$log=r(ME);this.issuePicker=r(dR);this.userPreferencesManager=r(iG);this.accessIndicatorService=r(MO);this.currentUserEmail=this.activeSession.getUserEmail();this.uniqueComponentIds$=new tg;this.effortSpec$=
this.uniqueComponentIds$.pipe(xg(function(b){return a.componentFridge.watchSet(b)}),C(function(b){return a.getCommonEffortSpec(b)}),ug({bufferSize:1,refCount:!0}));this.enableBulkEstimatedEffortOption$=this.effortSpec$.pipe(C(function(b){return b!==void 0}));this.hotlistIdMatrix=[];this.hotlistChoices=[];this.onSave=new LE;this.onCreateHotlist=new LE;this.onLoadHotlist=new LE;this.externalWarnings=[];this.enableRecaptcha=this.activeSession.userRequiresCaptcha()&&OA(this.activeSession,"enableBulkEditCaptchaUi");
this.recaptchaResponse="";this.controllerName="baseControls"};Y(y_,Z);y_.\u0275dir=Z.\u0275dir;var m$c=function(a){var b=new xK,c;b.formattingMode=Tj((c=jG(a.userPreferencesManager).textDisplayPreferences)==null?void 0:c.lastPublishMode);return b};y_.prototype.hasSelectedIssues=function(){return this.getSelectedIssues().length>0};var n$c=function(a){return a.getSelectedIssues().some(function(b){return!b.isRead})},Htb=function(a){return n$c(a)?"Mark as read":"Mark as unread"},$r=function(a){return a.getSelectedIssues().map(function(b){return b.issueId})};
y_.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=o$c(a);this.uniqueComponentIds$.next(a)};
var o$c=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},p$c=function(a){if(!NA(a.activeSession)){a.externalWarnings=[];var b=Uf(a.getSelectedIssues().map(function(e){return RSc(a.accessIndicatorService,e.issueId,e.componentId).pipe(C(function(f){return{issue:e,indicator:f}}))}));Rf(b).then(function(e){e=l(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;var h=f.issue;f.indicator.type!=="no_indicator"&&a.externalWarnings.push({type:"issue",
issueId:h.issueId})}}).then(function(){a.cdr.detectChanges()});b=new Set(a.getSelectedIssues().map(function(e){return e.componentId}));b=l(b);for(var c=b.next(),d={};!c.done;d={id$jscomp$525:void 0},c=b.next())d.id$jscomp$525=c.value,a.componentActions.get(d.id$jscomp$525).then(function(e){if(a.activeSession.isInternalSession()&&tr(e)||MA(a.activeSession)&&ur(e)){var f,h=(f=e.componentPathInfo)==null?void 0:f.componentPathName;a.externalWarnings.push({type:"component",path:h?h.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$525+".")}}(d))}};g=y_.prototype;g.getCommonEffortSpec=function(a){a=l(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;if(!b.effortSpec)return;b=b.effortSpec;var c=b.id;if(!d){var d=c;var e=b}else if(d!==c)return}return e};
g.bulkEdit=function(a){switch(a){case "ASSIGNEE":z_(this,null,0);break;case "COMPONENT":q$c(this);break;case "VERIFIER":z_(this,null,1);break;case "REPORTER":r$c(this);break;case "CHANGELIST":s$c(this,"changelists","Changelists",!0);break;case "CUSTOM_FIELDS":t$c(this);break;case "FOUND_IN":s$c(this,"foundInVersion","Found In");break;case "VERIFIED_IN":s$c(this,"verifiedInVersion","Verified In");break;case "TARGETED_TO":s$c(this,"targetedToVersion","Targeted To");break;case "COMMENT":u$c(this);break;
case "SLO_START_TIME":v$c(this);break;case "ESTIMATED_EFFORT":w$c(this);break;case "CC":s$c(this,"ccs","CCs");break;default:this.$log.error("unsupported bulk edit field: "+a)}};
g.quickBulkEdit=function(a){switch(a.field){case "PRIORITY":(a=a.newValue)&&A_(this,"priority",a);break;case "SEVERITY":(a=a.newValue)&&A_(this,"severity",a);break;case "STATUS":if(a=a.newValue){var b=a==="DUPLICATE"?3:void 0;z_(this,wl.get(a),b)}break;case "TYPE":(a=a.newValue)&&A_(this,"type",a);break;case "IS_ARCHIVED":A_(this,"isArchived",""+a.newValue);break;case "IN_PROD":A_(this,"inProd",""+a.newValue);break;case "CC":A_(this,"ccs",this.currentUserEmail,a.newValue?"ADD":"REMOVE");break;default:this.$log.error("unsupported bulk edit field: "+
a.field)}};
g.bulkEditIssueRelation=function(a){switch(a.issueRelation){case "BLOCKED_BY":a.isMarking?B_(this,{actionType:"ADD",fieldName:"blockedByIssueId",title:"Mark all selected issues as blocked by:",edgeType:"blocker"}):B_(this,{actionType:"REMOVE",fieldName:"blockedByIssueId",title:"Unmark all selected issues as blocked by:",edgeType:"un-blocker"});break;case "BLOCKING":a.isMarking?B_(this,{actionType:"ADD",fieldName:"blockingIssueId",title:"Mark all selected issues as blocking:",edgeType:"blocking"}):B_(this,
{actionType:"REMOVE",fieldName:"blockingIssueId",title:"Unmark all selected issues as blocking:",edgeType:"un-blocking"});break;case "PARENT":a.isMarking?B_(this,{actionType:"ADD",fieldName:"parentId",title:"Mark all selected issues as children of:",edgeType:"child"}):B_(this,{actionType:"REMOVE",fieldName:"parentId",title:"Unlink all selected issues from this parent:",edgeType:"un-parent"});break;case "DUPLICATE":z_(this,Ysa,3);break;default:this.$log.error("unsupported issue relation: "+a.issueRelation)}};
g.bulkMarkIssueRead=function(){var a=n$c(this);A_(this,"readState",a?"true":"")};
var A_=function(a,b,c,d){var e={fieldName:b,value:c};d!==void 0&&(e.actionType=d);var f=$r(a),h=[e];b==="deletionReason"&&h.push({fieldName:"isDeleted",value:"true"});d=function(){var k={bulkEditOps:[{issueIds:f,actions:h}]};a.enableRecaptcha&&a.recaptchaResponse!==""&&(k.recaptchaToken=a.recaptchaResponse);a.onSave.emit(k)};b!=="type"||c!=="VULNERABILITY"&&c!=="PRIVACY_ISSUE"?d():(c==="VULNERABILITY"&&BKc(a.issueTypeDialog,"VULNERABILITY",d,function(){}),c==="PRIVACY_ISSUE"&&BKc(a.issueTypeDialog,
"PRIVACY_ISSUE",d,function(){}))},z_=function(a,b,c){a.hasSelectedIssues()&&(p$c(a),a.stateModal.showDialog(a.getSelectedIssues(),b,c))},x$c=function(a){var b=a.onSave,c=b.emit,d=$r(a),e=a.stateModal.issueEditBuilder,f=[];e.issueState||mtb(e);e=l(h$c(e));for(var h=e.next();!h.done;h=e.next()){var k=l(h.value);h=k.next().value;k=k.next().value;k!==void 0&&f.push({fieldName:h,value:k})}c.call(b,{bulkEditOps:[{issueIds:d,actions:f}],recaptchaToken:a.stateModal.issueEditBuilder.recaptchaResponse})},r$c=
function(a){a.hasSelectedIssues()&&(p$c(a),LJ(a.matDialog.open(x_,{width:"400px"})).pipe(yg(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&A_(a,"reporter",b)}),a.hotkeys.pause())},s$c=function(a,b,c,d){d=d===void 0?!1:d;a.hasSelectedIssues()&&(LJ(a.matDialog.open(s_,{width:"400px",data:{fieldDisplayName:c}})).pipe(yg(a.destroyed$)).subscribe(function(e){a.hotkeys.unpause();e&&y$c(a,b,e.addItems,e.removeItems,d)}),a.hotkeys.pause())},v$c=function(a){a.hasSelectedIssues()&&(LJ(a.matDialog.open(q_,
{width:"330px",data:{fieldDisplayName:"SLO Start Time"}})).pipe(yg(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:$r(a),actions:c}]})}}),a.hotkeys.pause())},w$c=function(a){var b,c;z(function(d){if(d.nextAddress==1)return B(d,Rf(a.effortSpec$),2);b=d.yieldResult;if(!a.hasSelectedIssues()||b===void 0)return d.return();c=a.matDialog.open(r_,{width:"400px",data:{fieldDisplayName:"Estimated Effort",
effortSpec:b}});LJ(c).pipe(yg(a.destroyed$)).subscribe(function(e){a.hotkeys.unpause();if(e){var f=[];f.push({fieldName:"effortEstimate",value:e.estimate});a.onSave.emit({bulkEditOps:[{issueIds:$r(a),actions:f}]})}});a.hotkeys.pause();Lf(d)})},y$c=function(a,b,c,d,e){e=e===void 0?!1:e;c=Ur(c);d=Ur(d);var f=[],h=!["foundInVersion","targetedToVersion","verifiedInVersion"].includes(b),k=function(q){return rsa(q,h).map(function(v){return v.trim()})};ja(c)||(c=k(c),e&&(c=c.filter(function(q){return!isNaN(q)})),
f.push.apply(f,p(c.map(function(q){return{fieldName:b,value:q,actionType:"ADD"}}))));ja(d)||(d=k(d),f.push.apply(f,p(d.map(function(q){return{fieldName:b,value:q,actionType:"REMOVE"}}))));f.length&&a.onSave.emit({bulkEditOps:[{issueIds:$r(a),actions:f}]})},q$c=function(a){a.hasSelectedIssues()&&(LJ(a.matDialog.open(o_,{width:"600px",position:{top:"100px"},panelClass:"overflow-visible-dialog-panel"})).pipe(yg(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&(a.onSave.emit({bulkEditOps:[{issueIds:$r(a),
actions:[{fieldName:"componentId",value:String(b.componentId)}]}]}),a.analytics.trackEvent(a.controllerName,"bulkMove"))}),a.hotkeys.pause())},z$c=function(a){a.hasSelectedIssues()&&(LJ(a.matDialog.open(n_,{width:"600px",data:{issuesToFlag:a.getSelectedIssues()}})).pipe(yg(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();b&&(a.analytics.trackEvent(a.controllerName,"bulkFlagAsSpam"),A_(a,"deletionReason","ABUSE"))}),a.hotkeys.pause())},u$c=function(a){a.hasSelectedIssues()&&a.addCommentDialog&&
(a.comment||(a.comment=m$c(a)),a.addCommentDialogRef=a.matDialog.open(a.addCommentDialog,{panelClass:"no-jitter",minWidth:512,maxWidth:512}),LJ(a.addCommentDialogRef).pipe(yg(a.destroyed$)).subscribe(function(b){a.hotkeys.unpause();a.comment&&(b&&qLc(a.comment)&&A_(a,"comment",a.comment.value),a.comment.reset())}),a.hotkeys.pause(),p$c(a))},Otb=function(a){var b;(b=a.addCommentDialogRef)==null||b.close(!0)},t$c=function(a){a.hasSelectedIssues()&&LJ(a.matDialog.open(CU,{data:a.getSelectedIssues(),
width:"500px"})).pipe(yg(a.destroyed$)).subscribe(function(b){b&&(a.onSave.emit({bulkEditOps:b}),a.analytics.trackEvent(a.controllerName,"bulkCustomField"))})};y_.prototype.openHotlistPicker=function(){if(this.hasSelectedIssues()){var a;(a=this.hotlistPicker)==null||a.open()}};
y_.prototype.handleHotlistPickerSave=function(a){var b=a.newSelectionMap;var c=a.oldSelectionMap;this.analytics.trackEvent("hotlistPicker","edit","base_controls");var d=[],e=[],f=0;Object.entries(b).forEach(function(h){var k=l(h);h=k.next().value;k=k.next().value;k!==c[h]&&(k?d.push(h):e.push(h),f++)});a=[];d.length&&a.push({fieldName:"hotlists",actionType:"ADD",value:d.join(",")});e.length&&a.push({fieldName:"hotlists",actionType:"REMOVE",value:e.join(",")});a.length&&(this.onSave.emit({bulkEditOps:[{issueIds:$r(this),
actions:a}]}),this.analytics.trackEvent(this.controllerName,"applyHotlists","numHotlists",f))};var B_=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:$r(a),actions:[{fieldName:d,value:e,actionType:c}]}]}))});a.hotkeys.pause()};y_.\u0275fac=function(){var a;return function(b){return(a||(a=Re(y_)))(b||y_)}}();
y_.\u0275cmp=y({type:y_,selectors:[["b-grid-controls-base"]],viewQuery:function(a,b){a&1&&(hh(l$c,5),hh(t_,5),hh(w_,5));if(a&2){var c;lh(c=mh())&&(b.addCommentDialog=c.first);lh(c=mh())&&(b.hotlistPicker=c.first);lh(c=mh())&&(b.stateModal=c.first)}},inputs:{hotlistChoices:"hotlistChoices"},outputs:{onSave:"onSave",onCreateHotlist:"onCreateHotlist",onLoadHotlist:"onLoadHotlist"},standalone:!1,features:[Bg],decls:0,vars:0,template:function(){},encapsulation:2});var C_=function(){};C_.\u0275fac=function(a){return new (a||C_)};C_.\u0275mod=uf({type:C_});C_.\u0275inj=Dd({imports:[HC,mH,BG,GM,Ay,Dx,CG,zL,aM,gL]});var D_=function(){};D_.\u0275fac=function(a){return new (a||D_)};D_.\u0275mod=uf({type:D_});D_.\u0275inj=Dd({imports:[HC,wK,qQ,Ay,BG,gL,mH,AI,PV,TV,v_,cV]});var E_=function(){y_.apply(this,arguments);this.panels=[];this.isNonPublicSession=this.activeSession.isNonPublicSession();this.enableBulkEditUi=!this.activeSession.userRequiresCaptcha();this.controllerName="dashboardControls";this.onSelectionChange.bind(this);this.getCommonEffortSpec.bind(this)};Y(E_,y_);E_.\u0275dir=y_.\u0275dir;E_.prototype.ngOnChanges=function(a){if(a.panels)this.onSelectionChange()};
E_.prototype.getSelectedIssues=function(){var a=this.panels.flatMap(function(b){return b.selectedIssues});Kaa(a,null,function(b){return b.issueId.toString()});return a};E_.\u0275fac=function(){var a;return function(b){return(a||(a=Re(E_)))(b||E_)}}();
E_.\u0275cmp=y({type:E_,selectors:[["b-dashboard-controls"]],inputs:{panels:"panels"},standalone:!1,features:[Fh([NE]),Bg,ov],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,Itb,2,4,"b-app-bar-bulk-edit-menus",1);F(1,Mtb,1,2,"b-copy-issue-id-button",2);F(2,Ntb,2,2,"div",3);J(3,"b-app-bar-more-menu",4);N("flagAsSpamClicked",function(){u(c);return w(z$c(b))});K();J(4,"b-state-modal",5);N("save",function(){u(c);return w(x$c(b))})("close",function(){u(c);return w(b.hotkeys.unpause())});K();
D(5,Rtb,11,6,"ng-template",null,0,Lh)}a&2&&(G(b.hasSelectedIssues()?0:-1),x(),G(b.hasSelectedIssues()?1:-1),x(),G(b.enableBulkEditUi&&b.hasSelectedIssues()?2:-1),x(),I("showFlagIssuesAsSpam",b.isNonPublicSession&&b.hasSelectedIssues()),x(),I("externalWarnings",b.externalWarnings))},dependencies:[qY,pY,IV,PZ,t_,oG,Jx,SJ,UJ,WJ,VJ,w_,TR,u_,Tv],styles:["[_nghost-%COMP%] { display: flex; align-items: center; }"]});var F_=function(){};F_.\u0275fac=function(a){return new (a||F_)};F_.\u0275mod=uf({type:F_});
F_.\u0275inj=Dd({imports:[sY,DG,PV,HC,qQ,ZZ,C_,gL,BG,wK,D_,TV,v_]});var A$c=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},B$c=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)},G_=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=zj(c.assigneeUser)||"";this.verifier=zj(c.verifierUser)||
"";this.collaborators=yj(c.collaboratorsUsers)||[];this.staffing=c.staffing||null;this.cc=yj(c.ccUsers)||[];this.title=c.title||"";this.comment=c.comment||"";this.formattingMode=c.formattingMode?c.formattingMode:"PLAIN";this.hotlistId=c.hotlistId||[];this.inProd=c.inProd||!1;this.issueAccessLimitLevel=c.issueAccessLimitLevel||"LIMIT_NONE";this.customFieldValues=Object.create(null);a=l(c.customField||[]);for(b=a.next();!b.done;b=a.next())b=b.value,this.customFieldValues[b.customFieldId.toString()]=
b;a=l(Object.entries(this.customFields));for(b=a.next();!b.done;b=a.next())c=l(b.value),b=c.next().value,c=c.next().value,b=Number(b),this.customFieldValues[b]||(this.customFieldValues[b]=c.typedDefaultValue!=null?c.typedDefaultValue:{customFieldId:b})},D$c=function(a,b){b.name=a.name;b.description=a.description;b.inheritable=a.inheritable;var c=b.snapshot||{};c.componentId=a.componentId;C$c(a.type)?delete c.type:c.type=a.type;C$c(a.priority)?delete c.priority:c.priority=a.priority;C$c(a.severity)?
delete c.severity:c.severity=a.severity;c.assigneeUser=Dj(a.assignee);c.verifierUser=Dj(a.verifier);c.collaboratorsUsers=a.collaborators.map(function(f){return Dj(f)});a.collaboratorGroups.length>0&&(c.collaboratorsUsers=jta(a.collaboratorGroups).concat(c.collaboratorsUsers||[]));c.staffing=a.staffing;c.ccUsers=a.cc.map(function(f){return Dj(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])&&!zo(e)&&c.customField.push(e);b.snapshot=c};
G_.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:Xj("Unexpected custom field type: "+c)}}bs(this)};G_.prototype.isDirty=function(){return this.dirty};var bs=function(a){a.dirty=!0};G_.prototype.setFormattingMode=function(a){this.formattingMode=a;bs(this)};G_.prototype.onAccessLimitLevelSelected=function(a){this.issueAccessLimitLevel=a;bs(this)};
var C$c=function(a){return ja(a)||a==="--"};G_.prototype.getCollaboratorGroupsString=function(){return this.collaboratorGroups.length===0?"":this.collaboratorGroups.length>1?this.collaboratorGroups.length+" groups selected":this.collaboratorGroups[0]};G_.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 ivb=function(a,b){a.collaborators=b.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});bs(a)},lvb=function(a,b){a.cc=b.split(",").map(function(c){return c.trim()}).filter(function(c){return!!c});bs(a)},E$c={value:"--",displayText:"--"};var F$c=new Ll("M/d/yyyy"),H_=function(){this.dateFormatter=r(eK);this.boundValueChange=new LE;this.textValue="";this.ariaLabelledBy=this.inputId=void 0;this.isRequired=!1};H_.prototype.ngOnInit=function(){if(this.boundValue){if(this.boundValue)if(typeof this.boundValue==="string")var a=lsa(this.boundValue);else{var b;a=(b=Il(this.boundValue))!=null?b:void 0}else a=void 0;this.googDate=a;this.change(this.googDate,!0)}};
H_.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=F$c.format(a);else{var d;a=(d=lGa(F$c.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):""}};H_.\u0275fac=function(a){return new (a||H_)};
H_.\u0275cmp=y({type:H_,selectors:[["bv2-input-date-picker"]],inputs:{boundValue:"boundValue",inputId:[0,"bv2Id","inputId"],ariaLabelledBy:[0,"bv2AriaLabelledby","ariaLabelledBy"],isRequired:"isRequired"},outputs:{boundValueChange:"boundValueChange"},standalone:!1,decls:1,vars:4,consts:[[3,"valueChange","required","value","customFormId","customAriaLabelledBy"]],template:function(a,b){a&1&&(J(0,"b-date-time-input",0),N("valueChange",function(c){return b.change(c)}),K());a&2&&I("required",b.isRequired)("value",
b.googDate)("customFormId",b.inputId)("customAriaLabelledBy",b.ariaLabelledBy)},dependencies:[wU],encapsulation:2});var G$c=["allocationInput"],H$c=["editAllocationBtn"],I$c=function(a,b){return b.columnDef},$tb=function(a,b){return b.value},pub=function(a,b){return b.displayText},I_=function(){var a=this;this.subscriptions=new yf;this.rows$=new Kn([]);this.trackBy=function(b,c){return c[0].user.user.emailAddress};this.tableColumns$=new Kn(["user","involvement","remove-user"]);this.timeboundQuarterColumns$=new Kn([]);this.Involvement=Lnc;this.involvementOptions=JKc.map(function(b){return{value:b,displayText:Cl[b]}});
this.roleOptions$=new Kn([{value:void 0,displayText:"--"}].concat(p(KKc.map(function(b){return{value:b,displayText:EA[b]}}))));this.allocationUnderEdit=null;this.allocationInputChanges$=new Kn("");this.allocations=[];this.staffingEnhancementsEnabled=this.isAllowedToEdit=!1;this.updatedAllocations=new LE;this.removedUser=new LE;this.subscriptions.add(this.allocationInputChanges$.pipe(kg(250),og()).subscribe(function(){vub(a);if(a.allocationInputEl){var b;a.allocationInputEl.nativeElement.value=(b=
a.allocationFromInputPlain)!=null?b:""}}))};I_.prototype.ngOnDestroy=function(){this.subscriptions.unsubscribe()};I_.prototype.ngOnChanges=function(a){(a.allocations||a.staffingEnhancementsEnabled)&&J$c(this);a.staffingEnhancementsEnabled&&this.roleOptions$.next([{value:void 0,displayText:"--"}].concat(p((this.staffingEnhancementsEnabled?LKc:KKc).map(function(b){return{value:b,displayText:EA[b]}}))))};
var J$c=function(a){var b=[];if(a.staffingEnhancementsEnabled){var c=a.allocations.some(function(q){var v;return((v=q.allocation)==null?void 0:v.percentage)!==void 0});b=K$c(a,c);var d=[];d=b.length?b.map(function(q){return q.columnDef}):[c?"allocation":"involvement"];a.tableColumns$.next(["user","role","is-lead"].concat(p(d),["remove-user"]));a.timeboundQuarterColumns$.next(b)}else a.tableColumns$.next(["user","involvement","remove-user"]),a.timeboundQuarterColumns$.next([]);c=new Map;d=l(a.allocations.filter(function(q){var v;
return(v=q.user)==null?void 0:v.user}));for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=void 0,h=void 0,k=(f=e.user)==null?void 0:(h=f.user)==null?void 0:h.emailAddress;k&&(f=void 0,h=(f=c.get(k))!=null?f:[],h.push(e),c.set(k,h))}c=[].concat(p(c.values()));a.rows$.next(c.map(function(q){var v=[];if(b.length){for(var A=l(b),E=A.next();!E.done;E=A.next()){E=E.value;var H=E.extractPlannedAllocation(q),L=void 0,O=void 0;((L=H.allocation)==null?void 0:L.startDate)===E.startDate&&((O=H.allocation)==
null?void 0:O.endDate)===E.endDate?v.push(H):(O=L=void 0,v.push(Object.assign({},H,{allocation:Object.assign({},H.allocation,{aggregationValue:(O=(L=H.allocation)==null?void 0:L.aggregationValue)!=null?O:0,startDate:Kva(E.startDate),endDate:Kva(E.endDate)})})))}q=v}return q}).sort(function(q,v){var A,E,H,L,O,S;q=(O=(A=q[0].user)==null?void 0:(E=A.user)==null?void 0:E.emailAddress)!=null?O:"";v=(S=(H=v[0].user)==null?void 0:(L=H.user)==null?void 0:L.emailAddress)!=null?S:"";return!q&&v?-1:!v&&q?1:
q.localeCompare(v)}))},K$c=function(a,b){a=L$c(a);var c=a.earliestDate,d=a.latestDate;a=[];if(!c||!d)return a;var e=Lva(c).quarterStartDate;c=Lva(d).quarterStartDate;d=e;for(e={};d<=c;e={quarterStartDate$jscomp$1:void 0,quarterEndDate$jscomp$1:void 0}){var f=Lva(d);e.quarterStartDate$jscomp$1=f.quarterStartDate;e.quarterEndDate$jscomp$1=f.quarterEndDate;f=e.quarterStartDate$jscomp$1.getFullYear();var h=Math.floor(e.quarterStartDate$jscomp$1.getMonth()/3)+1;a.push({columnDef:"q"+h+"-"+f,displayText:"Q"+
h+" "+f,startDate:e.quarterStartDate$jscomp$1,endDate:e.quarterEndDate$jscomp$1,extractPlannedAllocation:function(k){return function(q){a:{var v=k.quarterStartDate$jscomp$1,A=k.quarterEndDate$jscomp$1;if(v||A){for(var E=l(q),H=E.next();!H.done;H=E.next()){H=H.value;var L=void 0,O=void 0,S=((L=H.allocation)==null?0:L.startDate)?sl((O=H.allocation)==null?void 0:O.startDate):void 0;O=L=void 0;var aa=((L=H.allocation)==null?0:L.endDate)?sl((O=H.allocation)==null?void 0:O.endDate):void 0;if(!S&&!aa||!S&&
A&&aa>=A||!aa&&v&&S<=v||S&&aa&&v&&A&&S<=v&&aa>=A){q=H;break a}}q=Object.assign({},q[0],{allocation:{involvement:"ZERO",aggregationValue:0,startDate:v?Kva(v):void 0,endDate:A?Kva(A):void 0}})}else q=q[0]}return q}}(e),displayInvolvementAsPercentage:b});d=new Date(d.getFullYear(),d.getMonth()+3,1)}return a},L$c=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,h=((e=d.allocation)==null?0:e.startDate)?sl((f=d.allocation)==null?
void 0:f.startDate):void 0;if(h){if(!b||h<b)b=h;if(!c||h>c)c=h}f=e=void 0;if(h=((e=d.allocation)==null?0:e.endDate)?sl((f=d.allocation)==null?void 0:f.endDate):void 0){if(!b||h<b)b=h;if(!c||h>c)c=h}}return{earliestDate:b,latestDate:c}},iub=function(a,b,c,d,e){var f,h,k,q,v,A,E,H,L,O;return z(function(S){f=Dl(c);if(!f||!d&&e===void 0||((h=c.allocation)==null?void 0:h.involvement)===d&&((k=c.allocation)==null?void 0:k.percentage)===e)return a.allocationUnderEdit=null,a.allocationFromInputPlain=void 0,
S.return();q=b.filter(function(aa){return Dl(aa)!==f});v=Bl(c);A=[].concat(p(a.allocations.filter(function(aa){return Bl(aa)!==v})),p(q));if(d&&d!=="INVOLVEMENT_UNSPECIFIED")E=Object.assign({},c.allocation,{involvement:d,aggregationValue:0,percentage:void 0});else if(e!==void 0||d==="INVOLVEMENT_UNSPECIFIED")e!=null||(e=1),E=Object.assign({},c.allocation,{percentage:e,aggregationValue:0,involvement:void 0});A.push(Object.assign({},c,{allocation:E}));H=a.rows$.value.findIndex(function(aa){return Bl(aa[0])===
v});L=b.findIndex(function(aa){return Dl(aa)===f});O=L*a.rows$.value.length+H;a.updatedAllocations.emit(A);a.allocationUnderEdit=null;a.allocationFromInputPlain=void 0;setTimeout(function(){var aa,ka;(aa=a.editAllocationBtns.get(O))==null||(ka=aa.nativeElement)==null||ka.focus()},0);Lf(S)})},lub=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=Cl[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)},as=function(a,b,c){var d,e=(d=a.allocationInputEl)==null?void 0:d.nativeElement.value.toLowerCase();d=Number(e);var f,h=(f=a.involvementOptions.find(function(v){return v.value.toLowerCase()===e}))==null?void 0:f.value;if(!c||c.key==="Enter")!isNaN(d)&&d>=0&&d<=100?iub(a,b,a.allocationUnderEdit,void 0,Math.round(d)/
100):h&&iub(a,b,a.allocationUnderEdit,h),a.allocationUnderEdit=null,a.allocationFromInputPlain=void 0;else if(c.key==="Escape"||c.key==="Esc")if(c.stopPropagation(),b=a.allocations.findIndex(function(v){return Dl(v)===Dl(a.allocationUnderEdit)}),lub(a),b>=0){var k,q;(k=a.editAllocationBtns.get(b))==null||(q=k.nativeElement)==null||q.focus()}},vub=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)))},dub=function(a,b,c){var d,e,f,h,k,q;return z(function(v){d=Bl(b);if(!d)return v.return();e=[].concat(p(a.allocations));f=!1;for(h=0;h<e.length;h++)k=e[h],q=void 0,Bl(k)===d&&!((q=k.user)==null||!q.isLead)!==c&&(e[h]=Object.assign({},k,{user:Object.assign({},k.user,{isLead:c})}),f=!0);if(!f)return v.return();a.updatedAllocations.emit(e);Lf(v)})},
Ztb=function(a,b,c){var d,e,f,h,k,q;return z(function(v){d=Bl(b);if(!d)return v.return();e=[].concat(p(a.allocations));f=!1;for(h=0;h<e.length;h++)k=e[h],q=void 0,Bl(k)===d&&((q=k.user)==null?void 0:q.role)!==c&&(e[h]=Object.assign({},k,{user:Object.assign({},k.user,{role:c!=="JOB_ROLE_UNSPECIFIED"?c:void 0})}),f=!0);if(!f)return v.return();a.updatedAllocations.emit(e);Lf(v)})},Dub=function(a,b){var c,d,e,f,h;return z(function(k){c=Bl(b);if(!c)return k.return();d=[].concat(p(a.allocations)).filter(function(q){return Bl(q)!==
c});if(d.length===a.allocations.length)return k.return();a.updatedAllocations.emit(d);h=(e=b.user)==null?void 0:(f=e.user)==null?void 0:f.emailAddress;a.removedUser.emit(h);Lf(k)})},mub=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)+"% ("+(Cl[a.involvement]+
")")}return""},aub=function(a){var b;return(a=(b=a.user)==null?void 0:b.role)?Kl[a]:""};I_.\u0275fac=function(a){return new (a||I_)};
I_.\u0275cmp=y({type:I_,selectors:[["b-allocated-users-table"]],viewQuery:function(a,b){a&1&&(hh(G$c,5),hh(H$c,5,Te));if(a&2){var c;lh(c=mh())&&(b.allocationInputEl=c.first);lh(c=mh())&&(b.editAllocationBtns=c)}},inputs:{allocations:"allocations",isAllowedToEdit:"isAllowedToEdit",staffingEnhancementsEnabled:"staffingEnhancementsEnabled"},outputs:{updatedAllocations:"updatedAllocations",removedUser:"removedUser"},features:[ov],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,"email","hovercardFocusEnabled","availabilityChipEnabled"],[1,"role-header"],["name","help-outline","size","small","role","button","tabindex","0",1,"help-icon",3,"matTooltip"],[1,"role-select",3,"selectionChange","disabled","value"],[3,"value"],[1,"is-lead-header"],[3,"change","checked","disabled","aria-label"],
[1,"involvement-header"],[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",""],[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&&($g(0),U(1,"async"),J(2,"div",3)(3,"table",4),D(4,Stb,1,0,"tr",5)(5,Ttb,1,0,"tr",6),Wg(6,7),D(7,Utb,2,0,"th",8)(8,Wtb,2,1,"td",9),Xg(),Wg(9,10),$g(10),D(11,Xtb,4,2,"th",8)(12,
bub,7,5,"td",9),Xg(),Wg(13,11),$g(14),D(15,cub,4,2,"th",8)(16,eub,2,4,"td",9),Xg(),Wg(17,12),$g(18),D(19,fub,4,2,"th",8)(20,jub,5,3,"td",9),Xg(),Wg(21,13),$g(22),D(23,kub,4,2,"th",8)(24,rub,3,1,"td",9),Xg(),Pg(25,Bub,4,2,"ng-container",14,I$c),U(27,"async"),Wg(28,15),D(29,Cub,2,0,"th",8)(30,Eub,3,1,"td",9),Xg(),K()());a&2&&(a=V(1,9,b.tableColumns$),x(3),I("dataSource",b.rows$)("trackBy",b.trackBy),x(),I("matHeaderRowDef",a)("matHeaderRowDefSticky",!0),x(),I("matRowDefColumns",a),x(),I("sticky",!0),
x(3),I("sticky",!0),x(),ah("Optionally override the role of the user. If\n      not overridden, the user will be filling the role aligned with their job profile."),x(3),I("sticky",!0),x(),ah("Optionally mark users as lead(s) for this\n      issue."),x(4),ah("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."),x(4),ah("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."),
x(3),Qg(V(27,15,b.timeboundQuarterColumns$)),x(3),I("stickyEnd",!0))},dependencies:[HC,FC,Ay,Ui,dy,ky,BG,oG,Jx,Kx,lM,gM,hM,XQ,cP,XP,KP,QP,MP,JP,SP,NP,PP,TP,VP,CG,zG,xG,gL,eL,eM,cM,Bx,dM,gQ,jP,kP,hL,cL,aL,Tv],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 J_=function(){this.isAllowedToEdit=!1;this.editPlaceholder=new LE;this.removePlaceholder=new LE},M$c=function(a){a.isAllowedToEdit&&a.editPlaceholder.emit(a.placeholder)};nd.Object.defineProperties(J_.prototype,{roleString:{configurable:!0,enumerable:!0,get:function(){var a=this.placeholder.role;return a&&a!=="JOB_ROLE_UNSPECIFIED"?EA[a]:"Other"}},placeholderLabel:{configurable:!0,enumerable:!0,get:function(){return"Placeholder: "+this.placeholder.count+" "+this.roleString}}});
J_.\u0275fac=function(a){return new (a||J_)};
J_.\u0275cmp=y({type:J_,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&&(J(0,"span",0),M(1,"b-user-image",1),J(2,"span",2),N("click",function(){return M$c(b)})("keydown.enter",function(){return M$c(b)})("keydown.space",function(){return M$c(b)}),R(3),K(),J(4,"button",3),N("click",function(){b.removePlaceholder.emit(b.placeholder)}),M(5,"mat-icon",4),K()());a&2&&(x(),I("email",void 0),x(),I("matTooltip",Dh("Click to edit the ",b.roleString," placeholders")),Lg("aria-label","Click to edit the "+b.roleString+" placeholders"),x(),T(" ",b.placeholderLabel," "),x(),
I("disabled",!b.isAllowedToEdit),Lg("aria-label","Remove placeholders for the "+b.roleString+" role"))},dependencies:[HC,FC,BG,oG,Kx,CG,zG,xG,GC,hL,cL],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 N$c=function(){return[]},K_=function(){this.matDialog=r(RJ)};K_.prototype.show=function(a,b){this.dialog=this.matDialog.open(L_,{width:"325px",panelClass:"no-jitter",data:{allocatedPlaceholders:a,initialRole:b}});return Rf(LJ(this.dialog))};K_.\u0275fac=function(a){return new (a||K_)};K_.\u0275prov=Cd({token:K_,factory:K_.\u0275fac,providedIn:"root"});
var L_=function(){var a=this;this.data=r(QJ);this.dialogRef=r(KJ);this.activeSession=r(Bs);this.staffingEnhancementsEnabled=OA(this.activeSession,"enableStaffingFieldEnhancementsUi");this.role="SWE";this.count=new jy(1,{validators:[Si,vqa(/^\d+$/),qqa(1),rqa(3E5)]});this.roleToCountMap=new Map;this.roleOptions$=new Kn((this.staffingEnhancementsEnabled?LKc:KKc).map(function(f){return{value:f,displayText:EA[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((this.staffingEnhancementsEnabled?LKc:KKc).map(function(f){return{value:f,displayText:EA[f],disabled:a.roleToCountMap.has(f)}}));this.data.initialRole&&(this.role=this.data.initialRole);O$c(this)},O$c=function(a){var b=a.roleToCountMap.get(a.role);a.count.setValue(b!=null?b:1)};L_.prototype.apply=function(){var a,b={role:this.role,count:(a=this.count.value)!=null?a:1};this.dialogRef.close(b)};
nd.Object.defineProperties(L_.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"}}});L_.\u0275fac=function(a){return new (a||L_)};
L_.\u0275cmp=y({type:L_,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&&(J(0,"div",0)(1,"h1",1),R(2),K(),J(3,"section",2)(4,"mat-form-field",3)(5,"mat-label"),R(6,"Role"),K(),J(7,"mat-select",4),N("selectionChange",function(d){b.role=d.value;
O$c(b)}),Pg(8,Fub,4,5,"span",5,Og),U(10,"async"),K()(),J(11,"mat-form-field",6)(12,"mat-label"),R(13,"Number"),K(),M(14,"input",7),F(15,Gub,2,0,"mat-error"),K()(),J(16,"footer",8)(17,"button",9),R(18," Cancel "),K(),J(19,"button",10),N("click",function(){return b.apply()}),R(20),K()()());if(a&2){x(2);wh(b.title);x(5);I("value",b.role)("disabled",b.updatingExistingPlaceholder);x();var c;Qg((c=V(10,9,b.roleOptions$))!=null?c:Gh(11,N$c));x(6);I("formControl",b.count)("required",!0);Lg("aria-label","Enter the "+
(b.updatingExistingPlaceholder?"updated ":"")+"number of placeholders for the "+b.selectedRoleDisplayText+" role");x();G(b.count.invalid?15:-1);x(4);I("disabled",b.count.invalid);x();T(" ",b.buttonText," ")}},dependencies:[HC,BG,oG,Jx,wK,SJ,UJ,WJ,VJ,EM,DM,My,Fy,Dy,GM,FM,Uy,hQ,bP,jP,Bx,CG,zG,xG,ox,By,Ui,my,dy,vy,uy,ty,py,Tv],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 P$c=function(){return[]},M_=function(){this.matDialog=r(RJ)};M_.prototype.show=function(a,b,c){this.dialog=this.matDialog.open(N_,{width:"1000px",disableClose:!0,panelClass:"no-jitter",data:{issueId:b,plannedAllocations:a,isAllowedToEdit:c}});return Rf(LJ(this.dialog))};M_.\u0275fac=function(a){return new (a||M_)};M_.\u0275prov=Cd({token:M_,factory:M_.\u0275fac,providedIn:"root"});
var N_=function(){Z.call(this);var a=this;this.data=r(QJ);this.dialogRef=r(KJ);this.editIssueService=r(RK);this.hotkeys=r(PG);this.placeholderDialogService=r(K_);this.checkBeforeExit=r(UR);this.activeSession=r(Bs);this.staffingEnhancementsEnabled=OA(this.activeSession,"enableStaffingFieldEnhancementsUi");this.userValidators={userNotInGoogleDomain:function(f){return f?f.every(function(h){return h.indexOf("@google.com")>0}):!0},isNotUserType:function(f){return f?f.every(function(h){return h.startsWith("USER:")}):
!0},userAlreadySelected:function(f){if(f){f=Sp(f).map(function(k){var q,v;return(v=(q=k.user)==null?void 0:q.emailAddress)!=null?v:""}).filter(function(k){return!!k});f=l(f);for(var h=f.next();!h.done;h=f.next())if(a.emailsSet.has(h.value))return!1}return!0}};this.issueId=this.data.issueId;this.plannedAllocations$=new Kn([]);this.emailsSet=new Set;this.placeholderAllocations$=this.plannedAllocations$.pipe(C(function(f){return f.filter(function(h){return!!h.placeholder}).map(function(h){return h.placeholder})}));
this.availableRolesToAllocate$=this.placeholderAllocations$.pipe(C(function(f){var h=new Set(f.map(function(k){return k.role}));return(a.staffingEnhancementsEnabled?LKc:KKc).filter(function(k){return!h.has(k)})}));var b;this.isAllowedToEdit=(b=this.data.isAllowedToEdit)!=null?b:!1;this.creatingNewIssue=!this.data.issueId;this.title=(this.isAllowedToEdit?"Editing":"Viewing")+" staffing";var c;this.isSaving$=CMc(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)};Y(N_,Z);N_.\u0275dir=Z.\u0275dir;
N_.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(VR(this.checkBeforeExit,function(){return a.hasChanges()},!1));this.dialogRef.keydownEvents().pipe(yg(this.destroyed$)).subscribe(function(b){b.key==="Escape"&&a.closeIfUnmodified()});this.dialogRef.backdropClick().pipe(yg(this.destroyed$)).subscribe(function(){a.closeIfUnmodified()})};
var Iub=function(a,b,c){var d,e,f,h,k,q;return z(function(v){if(v.nextAddress==1)return B(v,Rf(a.placeholderAllocations$),2);if(v.nextAddress!=3)return d=v.yieldResult,c||(c=b.length>0?b[0]:"SWE"),B(v,a.placeholderDialogService.show(d,c),3);e=v.yieldResult;if(!e)return v.return();f={placeholder:e};h=Bl(f);if(!h)return v.return();k=[].concat(p(a.plannedAllocations$.value));q=k.findIndex(function(A){return Bl(A)===h});q<0?k.push(f):k[q]=f;a.plannedAllocations$.next(k);Lf(v)})};
N_.prototype.removePlaceholder=function(a){var b=this,c,d,e,f;return z(function(h){c={placeholder:a};d=Bl(c);if(!d)return h.return();e=[].concat(p(b.plannedAllocations$.value));f=e.findIndex(function(k){return Bl(k)===d});if(f<0)return h.return();e.splice(f,1);b.plannedAllocations$.next(e);Lf(h)})};N_.prototype.removeEmail=function(a){this.emailsSet.delete(a)};
var Q$c=function(a,b){var c,d,e,f,h,k;return z(function(q){if(b.length<1)return q.return();c=Sp(b);f=(d=c[0])==null?void 0:(e=d.user)==null?void 0:e.emailAddress;if(!f||a.emailsSet.has(f))return q.return();h={user:{user:{emailAddress:f}},allocation:{involvement:"HIGH",aggregationValue:0}};k=[].concat(p(a.plannedAllocations$.value),[h]);a.plannedAllocations$.next(k);a.emailsSet.add(f);a.usersInput.removeItem(0);Lf(q)})};g=N_.prototype;
g.hasChanges=function(){return!gj(this.plannedAllocations$.value,this.data.plannedAllocations)};g.closeIfUnmodified=function(){this.hasChanges()||this.dialogRef.close()};g.close=function(){this.dialogRef.close()};g.save=function(){var a=this;return z(function(b){if(b.nextAddress==1)return a.creatingNewIssue?(a.dialogRef.close(a.plannedAllocations$.value),b.return()):B(b,QMc(a.editIssueService,a.issueId,{plannedAllocations:a.plannedAllocations$.value}),2);a.dialogRef.close();Lf(b)})};
g.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())};N_.\u0275fac=function(a){return new (a||N_)};
N_.\u0275cmp=y({type:N_,selectors:[["b-staffing-dialog"]],viewQuery:function(a,b){a&1&&hh(IO,5);if(a&2){var c;lh(c=mh())&&(b.usersInput=c.first)}},features:[Bg],decls:26,vars:30,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","staffingEnhancementsEnabled"],["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();J(0,"h1",0);R(1);K();$g(2);U(3,"async");J(4,"section",1);N("keydown",function(k){u(c);var q=bh(2);return w(b.onKeydown(k,q!=null?q:!1))});F(5,Hub,3,0,"b-callout",2);$g(6);U(7,"async");J(8,"div",3)(9,"div",4);Pg(10,Jub,1,2,"b-placeholder-chip",5,Og);U(12,"async");K();J(13,"div",6)(14,"span",7)(15,"button",
8);N("click",function(){u(c);var k=bh(6);return w(Iub(b,k))});R(16,"Add placeholder");K()();M(17,"b-icon",9);K()();J(18,"b-multi-user-input",10);N("usersChange",function(k){u(c);return w(Q$c(b,k))});K();J(19,"b-allocated-users-table",11);U(20,"async");N("updatedAllocations",function(k){u(c);b.plannedAllocations$.next(k);return w()})("removedUser",function(k){u(c);return w(b.removeEmail(k))});K()();J(21,"footer",12)(22,"button",13);N("click",function(){u(c);return w(b.close())});R(23," Cancel ");K();
J(24,"button",14);N("click",function(){u(c);return w(b.save())});R(25," Save ");K()()}if(a&2){x();wh(b.title);x();a=ah(V(3,17,b.isSaving$));x(3);G(b.isAllowedToEdit?-1:5);x();var d,e=ah((d=V(7,20,b.availableRolesToAllocate$))!=null?d:Gh(27,P$c));x(4);var f;Qg((f=V(12,23,b.placeholderAllocations$))!=null?f:Gh(28,P$c));x(4);I("matTooltip","All supported roles have already been allocated.")("matTooltipDisabled",e.length>0);x();I("disabled",!b.isAllowedToEdit||!e.length||a);x(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.");
Lg("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.");x();I("maxUserAllowed",1)("removeContainerDivTabIndex",!0)("placeholderText","Search for a user to allocate")("customValidators",b.userValidators);Lg("disabled",b.isAllowedToEdit&&!a?null:!0);x();var h;I("allocations",(h=V(20,25,b.plannedAllocations$))!=null?h:Gh(29,P$c))("isAllowedToEdit",b.isAllowedToEdit&&!a)("staffingEnhancementsEnabled",
b.staffingEnhancementsEnabled);x(3);I("disabled",a);x(2);I("disabled",!b.hasChanges()||a)}},dependencies:[I_,HC,TQ,WO,XO,BG,oG,Jx,wK,SJ,UJ,WJ,VJ,CG,zG,xG,gL,eL,zQ,IO,ox,J_,Tv],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 O_=function(){this.confirmationDialogService=r(YJ)},R$c=function(a,b,c){return z(function(d){return d.return(AKc(a.confirmationDialogService,{title:b,content:Xi(c)}))})},S$c=function(a,b){return z(function(c){if(b.canEditIssuesInComponent){var d;if(d=b.issueAccessLimitLevel==="LIMIT_VIEW"){d=!!b.assigneeUser;var e=!!b.verifierUser,f,h=!((f=b.collaboratorsUsers)==null||!f.length),k;f=!((k=b.ccUsers)==null||!k.length);d=!d&&!e&&!h&&!f}c=d?c.return(R$c(a,b.confirmationDialogText.noListedUsers.title,
b.confirmationDialogText.noListedUsers.content)):b.issueAccessLimitLevel==="LIMIT_VIEW"&&Kub(b)?c.return(R$c(a,b.confirmationDialogText.loseAccess.title,b.confirmationDialogText.loseAccess.content)):c.return(!0)}else c=c.return(!0);return c})};O_.\u0275fac=function(a){return new (a||O_)};O_.\u0275prov=Cd({token:O_,factory:O_.\u0275fac,providedIn:"root"});var T$c=["saveBeforeClosingDialog"],U$c=["deleteDialog"],qvb=function(){return[]},V$c={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?"}},
P_=function(){Z.call(this);var a=this;this.matDialogService=r(RJ);this.cdr=r(NE,{self:!0});this.templatesApi=r(EB);this.hotlistApi=r(YC);this.constants=r(dK);this.paths=r(oN);this.butterBar=r(GJ);this.analytics=r(RE);this.issueTypeDialog=r(ZJ);this.componentActions=r(WM);this.documentationLinks=r(JJ);this.appEvents=r(FB);this.accessPolicyApi=r(rB);this.trackerFridge=r(cG);this.componentFridge=r(BB);this.currentUserBookmarksFridge=r(hD);this.autocompleteConfigService=r(GO);this.confirmIssueAccessLimitSettingsService=
r(O_);this.activeSession=r(Bs);this.staffingDialogService=r(M_);this.defaultIndex=-1;this.componentId="";this.supportCustomFields=!1;this.templates=[];this.customFieldRows=[];this.customFieldIds=Object.create(null);this.currentTemplateRow=this.currentTemplate=null;this.currentIndex=-1;this.templateRows=[];this.afterSaveCheckFunc=null;this.hotlists=[];this.selectedHotlists=[];this.hotlistMap={};this.selectedHotlistIds=[[]];this.templateHotlistIds=[];this.componentIdsToPaths={};this.hotlistPickerIndex=
0;this.enableTemplateInheritance=this.implicitAccessEnabled=!1;this.issueTypeChoices=W$c(this);this.priorityChoices=X$c(this);this.severityChoices=Y$c(this);this.FieldType=CL;this.componentId$=new sg(0);this.component$=this.componentId$.pipe(xg(function(b){return a.componentFridge.watch(b)}));this.trackerId$=this.component$.pipe(C(function(b){return b==null?void 0:b.trackerId}));this.tracker$=this.trackerId$.pipe(xg(function(b){return b?a.trackerFridge.watch(b):Nf(void 0)}));this.ROUTES=Dq;this.COLLABORATOR_GROUPS_TOOLTIP=
"Collaborator groups are trusted groups that are configured by tracker admins only. Select and add these groups if they should be given collaborator access to this issue.";this.trackerCollaboratorGroups=[];this.enablePeoplekitAc=OA(this.activeSession,"enablePeoplekitUserAc");this.subscriptions.add(this.tracker$.subscribe(function(b){b&&(a.trackerCollaboratorGroups=xj(b.collaboratorGroups));a.currentTemplate&&a.currentTemplate.separateCollaboratorGroups(a.trackerCollaboratorGroups)}));this.enableTemplateInheritance=
OA(this.activeSession,"enableTemplateInheritance")};Y(P_,Z);P_.\u0275dir=Z.\u0275dir;g=P_.prototype;
g.ngOnInit=function(){var a=this,b=function(){a.fetchUserHotlists()};this.fetchUserHotlists();this.accessPolicyApi.checkComponentImplicitAccessEnabled(this.componentId).then(function(c){return a.implicitAccessEnabled=c});this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(b));this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(b));this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(b));Promise.all([this.loadCustomFields(),this.loadTemplates()]).finally(function(){Q_(a);
a.cdr.detectChanges()})};g.ngAfterViewInit=function(){this.componentId$.next(this.componentId)};g.updateSelectedHotlists=function(){var a=this,b=this.templateHotlistIds[this.hotlistPickerIndex];this.selectedHotlistIds=b?[b]:[[]];this.selectedHotlists=this.hotlists.filter(function(c){return a.selectedHotlistIds[0].includes(c.hotlistId)});Maa(this.selectedHotlists,function(c,d){return ia(c.name,d.name)})};
g.removeHotlist=function(a){Fa(this.templateHotlistIds[this.hotlistPickerIndex],a);bs(this.currentTemplate);this.updateSelectedHotlists()};g.createHotlist=function(a){var b=this;var c=a.name;var d=a.successCallback;a=a.errorCallback;this.analytics.trackEvent("editTemplate","createHotlist");Kq(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){Kq(b.butterBar,"Hotlist "+c+" created successfully.");b.addHotlist(e);b.appEvents.hotlistCreated.next();d(e);b.cdr.detectChanges()}).catch(a)};
g.handleHotlistPickerSave=function(a){var b=this;var c=a.oldSelectionMap;bj(a.newSelectionMap,function(d,e){e=kj(e);if(d!==c[e]){bs(b.currentTemplate);var f=b.selectedHotlistIds[0].includes(e);d&&!f?(d=b.templateHotlistIds[b.hotlistPickerIndex],Da(d,e)>=0||d.push(e)):!d&&f&&Fa(b.templateHotlistIds[b.hotlistPickerIndex],e)}},this);this.updateSelectedHotlists()};
g.loadHotlist=function(a){var b=this;var c=a.hotlistId;var d=a.successCallback;a=a.errorCallback;this.hotlistApi.get(c).then(function(e){b.addHotlist(e);d(e);b.cdr.detectChanges()}).catch(a)};g.fetchUserHotlists=function(){var a=this;Rf(iD(this.currentUserBookmarksFridge)).then(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next())a.addHotlist(c.value);a.cdr.detectChanges()})};g.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&Fa(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a)};
var W$c=function(a){var b=a.constants.editIssueTypes.map(function(c){return{value:c,displayText:yvb(c),altText:a.constants.issueTypesShortDescriptions.get(c)}});return[E$c].concat(b)},yvb=function(a){return a===E$c.value?a:tj(a)};P_.prototype.getDateValue=function(a){return a};P_.prototype.getListFieldType=function(a){return a};
var tvb=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},Zub=function(a){a.currentTemplateRow.issueType==="VULNERABILITY"||a.currentTemplateRow.issueType==="PRIVACY_ISSUE"?BKc(a.issueTypeDialog,a.currentTemplateRow.issueType==="VULNERABILITY"?"VULNERABILITY":"PRIVACY_ISSUE",function(){a.currentTemplate.type=a.currentTemplateRow.issueType;
bs(a.currentTemplate)},function(){a.currentTemplateRow.issueType=a.currentTemplate.type}):(a.currentTemplate.type=a.currentTemplateRow.issueType,bs(a.currentTemplate))},X$c=function(a){return[E$c].concat(a.constants.priorities.map(function(b){return{value:b,displayText:b}}))},Y$c=function(a){return[E$c].concat(a.constants.severities.map(function(b){return{value:b,displayText:b}}))},Z$c=function(a){return a.templateRows.filter(function(b){return!b.inherited})},$$c=function(a){return a.templateRows.filter(function(b){return b.inherited})};
P_.prototype.setCustomField=function(a,b,c){a.editableTemplate.setCustomField(b,c!==null?c:void 0)};
var xvb=function(a){a.currentTemplate=null;a.currentTemplateRow=null;a.currentIndex=-1;Q_(a)},Oub=function(a,b){var c=a.currentIndex;aad(a,function(){b.index===c?xvb(a):a.openEditor(b.index)})},bad=function(a){a.templateHotlistIds.push([]);aad(a,function(){a.openEditor()})},Qub=function(a,b){return b.index>=0&&b.index===a.currentIndex},Sub=function(a,b){var c;return b.index>=0&&!((c=a.templates[b.index])==null?0:c.default)},wvb=function(a){var b,c,d,e,f,h,k,q,v,A,E,H,L,O;return z(function(S){if(S.nextAddress==
1){if(!a.currentTemplate)return S.return();c=(b=a.currentTemplate.collaborators)!=null?b:[];e=(d=a.currentTemplate.collaboratorGroups)!=null?d:[];return B(S,S$c(a.confirmIssueAccessLimitSettingsService,{assigneeUser:a.currentTemplate.assignee,verifierUser:a.currentTemplate.verifier,ccUsers:a.currentTemplate.cc,collaboratorsUsers:[].concat(p(c),p(e)),issueAccessLimitLevel:a.currentTemplate.issueAccessLimitLevel,currentUserEmail:a.activeSession.getUserEmail(),canEditIssuesInComponent:!0,confirmationDialogText:V$c}),
2)}f=S.yieldResult;if(!f)return S.return();a.currentIndex<0?(k="creating",q={componentId:a.componentId,default:!1},h=function(aa){Kq(a.butterBar,aa.name?'Template "'+aa.name+'" created.':"Template created.");a.analytics.trackEvent("template","create");cad(a,"create",aa.snapshot);dad(a,"create",aa.templateId);ead(a,"create",aa.templateId);a.templates.push(aa);a.openEditor(a.templates.length-1)}):(k="updating",v=a.currentIndex,q=a.templates[v],h=function(aa){Kq(a.butterBar,aa.name?'Template "'+aa.name+
'" updated.':"Template updated.");a.analytics.trackEvent("template","update");cad(a,"update",aa.snapshot);dad(a,"update",aa.templateId);ead(a,"update",aa.templateId);a.templates[v]=aa;xvb(a)});a.currentTemplate.hotlistId=a.templateHotlistIds[a.hotlistPickerIndex];D$c(a.currentTemplate,q);Kq(a.butterBar,"Saving template...");E=A=q;H=E.componentId;O=(L=E.templateId)&&String(L)!=="0"?a.templatesApi.update(H,L,A):a.templatesApi.create(H,A);return S.return(O.then(function(aa){a.appEvents.templateModified.next(String(a.componentId));
h(aa);a.cdr.detectChanges()}).catch(function(aa){aa=Ro(aa);a.butterBar.showWarning(aa?"Error "+k+" template: "+aa:"There was an error "+k+" the template.",0)}))})},Pub=function(a,b){LJ(a.matDialogService.open(a.deleteDialog,{data:b})).pipe(yg(a.destroyed$)).subscribe(function(c){c&&fad(a,b)})},fad=function(a,b){var c=b.index;var d;z(function(e){switch(e.nextAddress){case 1:d=a.templates[c];if(c<0||d.default)return e.return(Promise.resolve());Ea(a.templateHotlistIds,c);Ea(a.templates,c);a.defaultIndex=
a.templates.findIndex(function(f){return f.default});Q_(a);a.cdr.detectChanges();Kq(a.butterBar,"Deleting...");Gf(e,2,3);return B(e,a.templatesApi.delete(d.componentId,d.templateId),5);case 5:a.appEvents.templateModified.next(String(a.componentId)),Kq(a.butterBar,"Deleted template"),a.analytics.trackEvent("template","delete"),a.currentIndex===c&&xvb(a);case 3:return Hf(e),B(e,a.loadTemplates(),6);case 6:Q_(a);a.cdr.detectChanges();Jf(e,0);break;case 2:Kf(e),a.butterBar.showWarning("Error while deleting template"),
e.jumpTo(3)}})},had=function(a,b){b?wvb(a).then(function(){gad(a);a.cdr.detectChanges()}):gad(a)},Rub=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};
P_.prototype.openEditor=function(a){var b=this;this.currentIndex=a===void 0?-1:a;if(this.currentIndex<0){this.currentTemplate=iad(this,{componentId:this.componentId,default:!1,name:"New Template"});bs(this.currentTemplate);this.updateSelectedHotlists();Q_(this);this.cdr.detectChanges();var c;(c=document.getElementById("template-name"))==null||c.focus()}else jad(this,this.templates[this.currentIndex]).then(function(d){b.currentTemplate=iad(b,d);b.hotlistPickerIndex=b.currentIndex;b.updateSelectedHotlists();
Q_(b);b.currentTemplate.separateCollaboratorGroups(b.trackerCollaboratorGroups);b.cdr.detectChanges();var e;(e=document.getElementById("template-name"))==null||e.focus()})};
var jad=function(a,b){return a.templatesApi.get(b.componentId,b.templateId||0)},aad=function(a,b){a.currentTemplate&&a.currentTemplate.isDirty()?(a.afterSaveCheckFunc=b,kad(a)):b()},cad=function(a,b,c){c&&c.issueAccessLimitLevel&&c.issueAccessLimitLevel!=="LIMIT_NONE"&&a.analytics.trackEvent("issueAccessLimits",b,"template:"+c.issueAccessLimitLevel)},dad=function(a,b,c){a.currentTemplate&&a.currentTemplate.collaboratorGroups.length>0&&a.analytics.trackEvent("quickAddCollaborators",b,"template:"+c)},
ead=function(a,b,c){var d;((d=a.currentTemplate)==null?0:d.inheritable)&&a.analytics.trackEvent("templateInheritance",b,"component:"+a.componentId+" template:"+c)},kad=function(a){LJ(a.matDialogService.open(a.saveBeforeClosingDialog,{data:a.currentTemplateRow})).pipe(yg(a.destroyed$)).subscribe(function(b){b!==void 0&&had(a,b)})},gad=function(a){var b=a.afterSaveCheckFunc;a.afterSaveCheckFunc=null;b&&b()},iad=function(a,b){return new G_(a.customFieldIds,b)};
P_.prototype.loadCustomFields=function(){var a=this;this.customFieldRows=[];this.customFieldIds={};return this.supportCustomFields?this.componentActions.get(this.componentId).then(function(b){a.componentIdsToPaths={};var c=[],d,e=((d=b.componentPathInfo)==null?void 0:d.componentPathId)||[];for(d=0;d<e.length;d++){var f=b.componentPathInfo.componentPathId[d];c.push(b.componentPathInfo.componentPathName[d]);a.componentIdsToPaths[f]=c.join(" > ")}b=l(b.componentPathInfo.allCustomField||[]);for(c=b.next();!c.done;c=
b.next()){c=c.value;if(!c.enabledOnIssues)return;a.customFieldIds[c.customFieldId.toString()]=c;a.customFieldRows.push(new B$c(c,c.type==="TEXT"?"1":"2"))}a.cdr.detectChanges()}).catch(function(){a.butterBar.showWarning("Unable to load custom fields")}):Promise.resolve()};
P_.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 Q_=function(a){if(a.currentIndex<0)a.templateRows=a.templates.map(function(e,f){return new A$c(f,e,e.componentId!==a.componentId&&e.inheritable)}),a.currentTemplate&&(a.currentTemplateRow=new A$c(-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 A$c(f,e,e.componentId!==a.componentId&&e.inheritable)}));a.currentTemplate&&(a.currentTemplateRow=
new A$c(b,a.currentTemplate,!1),c.push(a.currentTemplateRow));d=a.templates.slice(b+1);c=c.concat(d.map(function(e,f){return new A$c(b+f+1,e,e.componentId!==a.componentId&&e.inheritable)}));a.templateRows=c;a.hotlistPickerIndex=a.currentIndex}},Nub=function(a,b){var c,d,e,f;return z(function(h){switch(h.nextAddress){case 1:if(b<0||a.defaultIndex===b)return h.return();c=a.templates[b];if(c.default)return h.return();d=c.name;ja(Ur(d))&&(d="(unnamed template)");a.defaultIndex=b;Kq(a.butterBar,"Changing default template...");
a.analytics.trackEvent("template","changeDefault");Gf(h,2,3);return B(h,lad(a,c.templateId),5);case 5:Kq(a.butterBar,"Changed default template to "+d);case 3:return Hf(h),B(h,a.loadTemplates(),6);case 6:Q_(a);a.cdr.detectChanges();Jf(h,0);break;case 2:e=Kf(h),f="Error while changing default message"+(Qo(e)?": "+Ro(e):"."),a.butterBar.showWarning(f),h.jumpTo(3)}})},lad=function(a,b){var c,d;return z(function(e){if(e.nextAddress==1)return B(e,Rf(a.component$),2);if(e.nextAddress!=3){c=e.yieldResult;
if(!c||c.defaultTemplateId===b)return e.return();c.defaultTemplateId=b;return B(e,a.componentActions.update(c),3)}d=e.yieldResult;a.componentFridge.announce(d);a.appEvents.templateModified.next(String(d.componentId));Lf(e)})};
P_.prototype.editStaffing=function(){var a=this,b,c,d,e;return z(function(f){if(f.nextAddress==1)return B(f,a.staffingDialogService.show((c=(b=a.currentTemplate.staffing)==null?void 0:b.plannedAllocations)!=null?c:[],void 0,!0),2);d=f.yieldResult;if(!d)return f.return();e={plannedAllocations:d};a.currentTemplate.staffing=e;bs(a.currentTemplate);Lf(f)})};
P_.prototype.handleAutocompleteSelection=function(a,b,c){b&&b.editableTemplate&&(c==="verifier"?b.editableTemplate.verifier=a:c==="assignee"&&(b.editableTemplate.assignee=a),bs(b.editableTemplate),this.cdr.detectChanges())};P_.\u0275fac=function(a){return new (a||P_)};
P_.\u0275cmp=y({type:P_,selectors:[["b-edit-templates"]],viewQuery:function(a,b){a&1&&(hh(T$c,5),hh(U$c,5));if(a&2){var c;lh(c=mh())&&(b.saveBeforeClosingDialog=c.first);lh(c=mh())&&(b.deleteDialog=c.first)}},inputs:{componentId:"componentId",supportCustomFields:"supportCustomFields"},standalone:!1,features:[Fh([NE]),Bg],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"],["for","template-description"],["id","template-description","type","text",1,"template-field",3,"ngModelChange","ngModel"],"role;region;tabindex;0;aria-label;Standard issue fields".split(";"),[1,"cell-1",
"access-limit-row"],[1,"access-limit-field"],["for","template-issue-access-limits-dropdown"],["id","template-issue-access-limits-dropdown",3,"updatedAccessLimitLevel","disabled","defaultAccessLimitLevel","implicitAccessEnabled"],[1,"collaborator-group-field"],["for","template-title"],["id","template-title","type","text",1,"template-field",3,"ngModelChange","ngModel"],[1,"cell-3"],["for","template-default-type"],["id","template-default-type","type","button","mat-button","",1,"medium","primary",3,"matMenuTriggerFor"],
["name","arrow-dropdown","size","small"],[3,"overlapTrigger"],["type","button","mat-menu-item","",3,"disabled","matTooltip"],["for","template-default-priority"],["id","template-default-priority","type","button","mat-button","",1,"medium","primary",3,"matMenuTriggerFor"],["type","button","mat-menu-item","",3,"disabled"],["for","template-default-severity"],["id","template-default-severity","type","button","mat-button","",1,"medium","primary",3,"matMenuTriggerFor"],[1,"cell-1","bv2-edit-template-hotlists"],
["for","template-default-hotlist"],["id","template-default-hotlist",1,"hotlist-picker",3,"onApply","onCreate","onLoad","selectedHotlistIds","choices"],[1,"bv2-hotlist-chips"],[1,"float-clear"],[1,"cell-2"],["for","template-assignee"],["id","template-assignee","type","text",1,"template-field",3,"bContactAutocomplete","ngModel"],["id","template-assignee","aria-expanded","true",1,"template-field",3,"ariaLabel","email"],["for","template-verifier"],["id","template-verifier","type","text",1,"template-field",
3,"bContactAutocomplete","ngModel"],["id","template-verifier","aria-expanded","true",1,"template-field",3,"ariaLabel","email"],["for","template-comment"],["id","template-comment",1,"template-field",3,"ngModelChange","ngModel"],[3,"change","initialValue"],["for","template-in-prod"],["id","template-in-prod","aria-label","issue in prod",3,"modelChange","model"],[1,"cell-1","staffing-row"],["for","template-staffing"],["matTooltip","The Staffing field represents planned contributors on this issue.","svgIcon",
"help-outline","tabindex","0",1,"icon-xs","valign-middle","margin-xs-left"],["type","button",1,"staffing-button","b-input-style",3,"click"],[1,"staffing-text"],[1,"bv2-edit-button"],"role;region;tabindex;0;aria-label;Custom issue fields".split(";"),[3,"class"],[1,"buttons-row"],["format","fill",3,"onAction","disabled"],["format","hairline",3,"onAction"],["id","template-inheritable","aria-label","template inheritable by child components",3,"modelChange","model"],["for","template-inheritable"],["matTooltip",
"If activated, all child components will inherit this template. Make sure this template meets your organizational needs as sub-components will not be able to hide this template","svgIcon","help-outline","tabindex","0",1,"icon-xs","valign-middle","margin-xs-left"],["for","template-collaborator-groups-dropdown"],["svgIcon","help-outline","tabindex","0","aria-hidden","false",1,"icon-xs","valign-middle","margin-xs-left",3,"matTooltip"],["appearance","outline",1,"static-label"],["multiple","","aria-label",
"Collaborator groups",3,"ngModelChange","ngModel"],[3,"value"],["type","button","mat-menu-item","",3,"click","disabled","matTooltip"],["type","button","mat-menu-item","",3,"click","disabled"],[3,"removeHotlist","hotlist"],["id","template-assignee","type","text",1,"template-field",3,"ngModelChange","bContactAutocomplete","ngModel"],["id","template-assignee","aria-expanded","true",1,"template-field",3,"emailChange","ariaLabel","email"],["id","template-verifier","type","text",1,"template-field",3,"ngModelChange",
"bContactAutocomplete","ngModel"],["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,"emailsChange",
"ariaLabel","emails"],["for","template-collaborators"],["id","template-collaborators","type","text",1,"template-field",3,"ngModelChange","bContactAutocomplete","ngModel"],["for","template-cc-peoplekit"],["id","template-cc-peoplekit","aria-expanded","true",1,"template-field",3,"emailsChange","ariaLabel","emails"],["for","template-cc"],["id","template-cc","type","text",1,"template-field",3,"ngModelChange","bContactAutocomplete","ngModel"],[3,"for"],["type","text",1,"template-field",3,"ngModel"],["type",
"number","step","any",1,"template-field",3,"ngModel"],[3,"type","name","clearable","value","choices"],[3,"boundValue"],[3,"defaultLineCount","type","values","enumChoices","truncate"],["type","text",1,"template-field",3,"ngModelChange","ngModel"],["type","number","step","any",1,"template-field",3,"ngModelChange","ngModel"],[3,"valueChange","type","name","clearable","value","choices"],[3,"boundValueChange","boundValue"],[3,"valuesChange","defaultLineCount","type","values","enumChoices","truncate"],
["role","heading","aria-level","3",1,"template-row-name"],["colspan","2"],[1,"template-component-path"],[1,"header-label"],[3,"onedevHovercardTrigger","href"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"],["mat-dialog-content",""],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","cancel",3,"mat-dialog-close"],["type","button","color","primary","mat-flat-button","",1,"medium","confirm",3,"mat-dialog-close"],["type","button","mat-button","",1,"medium",
3,"mat-dialog-close"],["type","button","cdkFocusInitial","","color","primary","mat-flat-button","",1,"medium","confirm",3,"mat-dialog-close"]],template:function(a,b){if(a&1){var c=t();J(0,"div")(1,"div",9);R(2," A template is a set of default values for new issues created in this component. ");J(3,"a",10);R(4,"Learn more");K()();J(5,"table",11)(6,"tr")(7,"th");R(8,"TEMPLATE");K();J(9,"th",12);R(10,"DEFAULT");K();M(11,"th",12)(12,"th",12);K();Pg(13,Avb,3,1,"tr",null,Og);F(15,Evb,3,1);K();J(16,"div",
13)(17,"b-button",14);N("onAction",function(){u(c);return w(bad(b))});R(18," Create New Template ");K()();D(19,Fvb,7,3,"ng-template",null,0,Lh)(21,Gvb,9,4,"ng-template",null,1,Lh);K()}if(a&2){var d;x(3);I("href","https://g3doc.corp.google.com/company/teams/buganizer/user-guide/concepts/templates",hf);x(10);Qg(Z$c(b));x(2);G((d=$$c(b))?15:-1,d)}},dependencies:[AG,FC,fQ,TM,BL,Ui,my,dy,ky,IT,t_,DI,EI,JI,FI,H_,OM,oG,Jx,SJ,WJ,VJ,kN,IG,zI,bP,My,jP,kP,Bx,DM,zG,xG,eL,pG,sG,qG,uG,bS,IU,aV,nQ],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 R_=function(){};R_.\u0275fac=function(a){return new (a||R_)};R_.\u0275mod=uf({type:R_});R_.\u0275inj=Dd({imports:[HC,BZ]});var S_=function(){};S_.\u0275fac=function(a){return new (a||S_)};S_.\u0275mod=uf({type:S_});S_.\u0275inj=Dd({imports:[DG,HC,kQ,nW,DL,Ay,VU,C_,tJ,R_,PM,BG,lM,wK,RN,JG,nL,AI,hQ,Ex,CG,gL,mH,yQ,QV,oQ,bV,cV]});var T_=function(){this.activeSession=r(Bs);this.appSearchState=r(bX);this.analytics=r(RE);this.domSafe=r(UK);this.enableEstado=OA(this.activeSession,"enableEstado")};T_.prototype.openInEstado=function(){this.analytics.trackEvent("listIssues","addOns","Estado");this.domSafe.openInNewTab("http://go/estado/dashboard-lite/buganizer?buganizer-query="+encodeURIComponent(this.appSearchState.currentQuery))};T_.\u0275fac=function(a){return new (a||T_)};T_.\u0275prov=Cd({token:T_,factory:T_.\u0275fac,providedIn:"root"});var U_=function(){this.sloStatusHelpersService=r(HK);this.dateFormatter=r(BK);this.timeDisplayText="--";this.rawObjectiveDisplayText=this.objectiveDisplayText=null;this.cardActionText="--";this.sloEndTimeDisplayText=Nf("--");this.SloRuleDayType=tnc;this.iconName="slo-status-no-data"};U_.prototype.getIconName=function(a){return mad.has(a)?mad.get(a):"slo-status-no-data"};
var nad=function(a,b,c){a.iconName=a.getIconName(b);c=c!==null?COa(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:Xj("unknown status type: "+b)}};
U_.prototype.ngOnChanges=function(){var a=Date.now()/1E3;if(this.sloBounds&&IK(this.sloBounds)){var b=this.sloBounds.targetTime.seconds,c=b-this.sloBounds.startTime.seconds;c?this.objectiveDisplayText=COa(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=COa(c*1E3);this.sloEndTimeDisplayText=bMc(this.dateFormatter,new Date(b*1E3));d=this.sloBounds;IK(d)&&
d.endTime&&d.endTime.seconds!==0&&d.endTime.seconds<=Date.now()/1E3?(b=this.sloBounds.endTime.seconds,this.sloEndTimeDisplayText=bMc(this.dateFormatter,new Date(b*1E3)),nad(this,"COMPLETED",a-b)):b<a?nad(this,"OUT_OF_SLO",a-b):(d=this.sloStatusHelpersService.isSloStartTimeApplied(this.sloStartTime),a=b-a,nad(this,a>259200?d?"SNOOZED_HEALTHY":"HEALTHY":d?"SNOOZED_NEAR":"NEAR",a))}else nad(this,"NO_DATA",null),this.rawObjectiveDisplayText=this.objectiveDisplayText=null};
U_.\u0275fac=function(a){return new (a||U_)};
U_.\u0275cmp=y({type:U_,selectors:[["b-slo-time-indicator"]],inputs:{sloBounds:"sloBounds",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",includeSnoozeDetails:"includeSnoozeDetails",sloMetricDescription:"sloMetricDescription",includeObjective:"includeObjective"},standalone:!1,features:[ov],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),J(1,"span",2)(2,"span",3),R(3),K()(),J(4,"onedev-hovercard",null,0)(6,"div",4)(7,"div",5)(8,"div"),R(9),K(),J(10,"div",6),R(11),U(12,"async"),K(),F(13,Hvb,4,2)(14,Ivb,2,1,"div"),K()()());a&2&&(a=Q(5),vh(b.iconName),I("svgIcon",b.iconName),Lg("aria-label",b.timeDisplayText==="--"?"No SLO data":""),x(),I("onedevHovercardTrigger",a)("onedevHovercardActive",
!(!b.includeObjective||!b.rawObjectiveDisplayText)),x(2),wh(b.timeDisplayText),x(6),wh(b.timeDisplayText),x(2),xh(" ",b.cardActionText," ",V(12,11,b.sloEndTimeDisplayText)," "),x(2),G((b.sloBounds==null?null:b.sloBounds.dayType)===b.SloRuleDayType.BUSINESS?13:14))},dependencies:[FC,DI,JI,Tv],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 mad=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 V_=function(){this.sloStatusHelpersService=r(HK);this.includeNoSlo=!1};V_.prototype.ngOnInit=function(){oad(this);this.hasSlo=!!this.sloStatus&&iMc(this.sloStatus)};V_.prototype.ngOnChanges=function(){oad(this)};var oad=function(a){a.sloStatus&&(a.assignmentSlo=pad(Pj(a.sloStatus.assignmentBounds)),a.responseSlo=pad(Pj(a.sloStatus.responseBounds)),a.closureSlo=pad(Pj(a.sloStatus.closureBounds)))};V_.prototype.isSloStartTimeApplied=function(){return this.sloStatusHelpersService.isSloStartTimeApplied(this.sloStartTime)};
var pad=function(a){if(IK(a))return a};V_.\u0275fac=function(a){return new (a||V_)};
V_.\u0275cmp=y({type:V_,selectors:[["b-slo-status-summary"]],inputs:{sloStatus:"sloStatus",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",includeNoSlo:"includeNoSlo",onlyShowMetric:"onlyShowMetric"},standalone:!1,features:[ov],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,Jvb,2,4,"div"),F(1,Kvb,2,4,"div"),F(2,Lvb,2,4,"div"));a&2&&(G(!b.includeNoSlo&&!b.assignmentSlo||b.onlyShowMetric&&b.onlyShowMetric!="ASSIGNMENT"?-1:0),x(),G(!b.includeNoSlo&&!b.responseSlo||b.onlyShowMetric&&b.onlyShowMetric!="RESPONSE"?-1:1),x(),G(!b.includeNoSlo&&!b.closureSlo||b.onlyShowMetric&&b.onlyShowMetric!="CLOSURE"?-1:2))},dependencies:[U_],encapsulation:2,changeDetection:0});var W_=function(){this.sloStatusHelpersService=r(HK);this.analytics=r(RE);this.sloApi=r(LF)};W_.prototype.ngOnInit=function(){this.hasSlo=!!this.sloStatus&&jMc(this.sloStatus,this.onlyShowMetric);this.sloId!=="0"?(this.editSloLink=Dq.editSlo.makeHref(this.sloId),qad(this)):this.editSloLink=null};W_.prototype.trackOpenSlo=function(){this.analytics.trackEvent("editSlo","open","fromSloStatusCard")};
var qad=function(a){a.sloApi.get(a.sloId).then(function(b){a.sloName=b.name}).catch(function(){a.sloName=null})};W_.\u0275fac=function(a){return new (a||W_)};
W_.\u0275cmp=y({type:W_,selectors:[["slo-status-card"]],inputs:{sloId:"sloId",sloStatus:"sloStatus",sloStartTime:"sloStartTime",onlyShowMetric:"onlyShowMetric"},standalone:!1,ngContentSelectors:["*"],decls:10,vars:3,consts:[["card",""],[3,"onedevHovercardTrigger"],["role","dialog","aria-label","SLO Hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"bv2-hovercard-narrow"],[1,"slo-indicators"],[1,"no-slo-message"],[3,"sloStatus","sloStartTime","onlyShowMetric"],[1,"slo-link",3,
"href"],[1,"slo-link",3,"click","href"]],template:function(a,b){a&1&&(ch(),J(0,"span",1),dh(1),K(),J(2,"onedev-hovercard",null,0)(4,"div",2)(5,"div",3)(6,"div",4),F(7,Mvb,2,3,"div",5)(8,Pvb,3,1,"div",6),F(9,Svb,4,1,"span"),K()()()());a&2&&(a=Q(3),I("onedevHovercardTrigger",a),x(7),G(b.hasSlo?7:8),x(2),G(b.editSloLink?9:-1))},dependencies:[DI,JI,V_],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 rad=function(){var a=this;this.data=r(QJ);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}};rad.\u0275fac=function(a){return new (a||rad)};
rad.\u0275cmp=y({type:rad,selectors:[["b-column-picker-custom-dialog"]],standalone:!1,decls:9,vars:4,consts:[["mat-dialog-title",""],[3,"fieldSelected","filter"],["type","button","mat-button","",1,"medium","cancel",3,"mat-dialog-close"],["type","button","mat-flat-button","",1,"medium","dialog-primary-action","confirm",3,"disabled","mat-dialog-close"]],template:function(a,b){a&1&&(J(0,"h1",0),R(1),K(),J(2,"mat-dialog-content")(3,"b-custom-field-picker",1),N("fieldSelected",function(c){return b.selectedCustomField=
c}),K()(),J(4,"mat-dialog-actions")(5,"button",2),R(6," Cancel "),K(),J(7,"button",3),R(8," Add "),K()());a&2&&(x(),T("Insert custom field column next to ",b.column.fullLabel),x(2),I("filter",b.isLegalColumn),x(4),I("disabled",!b.selectedCustomField)("mat-dialog-close",b.selectedCustomField))},dependencies:[SJ,UJ,WJ,VJ,j_,oG,Jx],encapsulation:2});var X_=function(){};X_.\u0275fac=function(a){return new (a||X_)};X_.\u0275mod=uf({type:X_});X_.\u0275inj=Dd({imports:[wK,HC,k_,BG]});var Tvb="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(" "),
sad="priority type title assignee status sevenDayViewCount issueId modifiedTime".split(" ");var cs=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)};cs.prototype.toString=function(){return this.isCustomField?"customfield:"+this.name+"["+this.fullLabel+"]":this.name};
var Zvb={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 tad=function(a,b,c){this.target=a;this.eventType=b;this.listener=c;this.target.addEventListener(this.eventType,this.listener)};tad.prototype.off=function(){this.target.removeEventListener(this.eventType,this.listener)};var uad=function(){this.bindings=[]};uad.prototype.off=function(){for(var a=l(this.bindings),b=a.next();!b.done;b=a.next())b.value.off()};
var vad=function(a){var b=this;this.params=a;this.mask=document.createElement("div");this.eventBindings=new uad;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};
vad.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(){wad(a,"dragstart",a.onDragTargetDragstart);wad(a,"dragenter",a.onDragTargetDragenter);wad(a,"dragend",a.onDragTargetDragend);wad(a,"selectstart",a.onDragTargetSelectstart);a.eventBindings.bindings.push(new tad(a.mask,"dragleave",a.onMaskDragLeave));
a.eventBindings.bindings.push(new tad(a.mask,"dragover",a.onMaskDragover));a.eventBindings.bindings.push(new tad(a.mask,"drop",a.onMaskDrop))})};var wad=function(a,b,c){a.eventBindings.bindings.push(new tad(a.element,b,jn("th.drag-target",c)))};vad.prototype.tearDown=function(){this.eventBindings.off()};var xad=["table"],yad=["defaultHeaderCellTemplate"],zad=["defaultViewCellTemplate"],Aad=["dataRows"],bwb=function(a){return{column:a}},ewb=function(a,b,c){return{row:a,column:b,index:c}},gwb=function(a,b){return b.name},iwb=function(a,b){return b.id},Y_=function(){var a=this;this.activeSession=r(Bs);this.ngZone=r(Ph);this.headerCellTemplates={};this.viewCellTemplates={};this.list=[];this.columns=[];this.columnsChange=new LE;this.rowClick=new LE;this.rowLabelRenderer=function(b,c){return"Row "+c};
this.sortChange=new LE;this.focusedRowIndexChange=new LE;this.afterViewInit=new LE;this.enableDragDropHeader=!0;this.readUnreadOptOut=OA(this.activeSession,"readUnreadOptOut");this.onDragDropColumn=function(b,c){var d=[].concat(p(a.columns));b=d.splice(b,1)[0];d.splice(c,0,b);a.columns=d;a.columnsChange.emit([].concat(p(a.columns)))};this.onTdClickableClick=jn("td.clickable",function(b,c){if((b.type!=="mouseup"||b.button===1)&&!cCc(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})}})};Y_.prototype.ngOnInit=function(){this.enableDragDropHeader&&Bad(this);this.tableElement.nativeElement.addEventListener("click",this.onTdClickableClick);this.tableElement.nativeElement.addEventListener("mouseup",this.onTdClickableClick)};
var Bad=function(a){a.dragDropHeaderLogic=new vad({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()};
Y_.prototype.ngOnChanges=function(a){if(a=a.focusedRowIndex){var b=a.currentValue;b!=null&&b!==a.previousValue&&this.dataRows&&(a=this.dataRows.toArray()[b])&&(IKa(a.nativeElement)||a.nativeElement.scrollIntoView({block:"center"}),this.focus())}};Y_.prototype.ngAfterViewInit=function(){this.afterViewInit.emit(this)};
Y_.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 Cad=function(a){return a.columns.map(function(b){b=b.name;return b!=null?a.viewCellTemplates[b]||a.defaultViewCellTemplate:a.defaultViewCellTemplate})};Y_.prototype.renderRowLabel=function(a,b){return this.rowLabelRenderer(a,b)};
Y_.prototype.focus=function(){if(this.focusedRowIndex!=null&&this.dataRows!=null){var a=this.dataRows.toArray()[this.focusedRowIndex];a&&a.nativeElement.focus()}};Y_.prototype.getColumnIndexForElement=function(a){var b=a.dataset.dragTargetColumnName;return this.columns.findIndex(function(c){return c.name===b})};Y_.\u0275fac=function(a){return new (a||Y_)};
Y_.\u0275cmp=y({type:Y_,selectors:[["pop-grid"]],viewQuery:function(a,b){a&1&&(hh(xad,7),hh(yad,7),hh(zad,7),hh(Aad,5,Te));if(a&2){var c;lh(c=mh())&&(b.tableElement=c.first);lh(c=mh())&&(b.defaultHeaderCellTemplate=c.first);lh(c=mh())&&(b.defaultViewCellTemplate=c.first);lh(c=mh())&&(b.dataRows=c)}},inputs:{list:"list",columns:"columns",rowLabelRenderer:"rowLabelRenderer",sort:"sort",focusedRowIndex:"focusedRowIndex",scrollContainer:"scrollContainer",enableDragDropHeader:"enableDragDropHeader"},outputs:{columnsChange:"columnsChange",
rowClick:"rowClick",sortChange:"sortChange",focusedRowIndexChange:"focusedRowIndexChange",afterViewInit:"afterViewInit"},standalone:!1,features:[ov],decls:15,vars:1,consts:[["table",""],["defaultHeaderCellTemplate",""],["defaultViewCellTemplate",""],["dataRows",""],[1,"pop-grid",3,"mousedown"],[3,"class"],[1,"header-row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["tabindex","0",3,"selected","unread","closed","grid-focus"],["tabindex","0",3,"click","focus"],[3,"column"],[3,"row","column"]],
template:function(a,b){if(a&1){var c=t();J(0,"table",4,0);N("mousedown",function(e){u(c);e.shiftKey&&window.getSelection().removeAllRanges();return w()});J(2,"colgroup");Pg(3,$vb,1,3,"col",5,gwb);K();J(5,"thead")(6,"tr",6);Pg(7,cwb,1,4,"ng-container",null,gwb);K()();J(9,"tbody");F(10,jwb,2,0);K()();D(11,kwb,2,1,"ng-template",null,1,Lh)(13,lwb,2,2,"ng-template",null,2,Lh)}if(a&2){var d;x(3);Qg(b.columns);x(4);Qg(b.columns);x(3);G((d=Cad(b))?10:-1,d)}},encapsulation:2});
var Z_=function(){this.templateRef=r(eh);this.popGrid=r(Y_)};Z_.prototype.ngOnInit=function(){this.forHeaderCell&&(this.popGrid.headerCellTemplates[this.forHeaderCell]=this.templateRef)};Z_.\u0275fac=function(a){return new (a||Z_)};Z_.\u0275dir=vf({type:Z_,selectors:[["","forHeaderCell",""]],inputs:{forHeaderCell:"forHeaderCell"},standalone:!1});var a0=function(){this.templateRef=r(eh);this.popGrid=r(Y_)};
a0.prototype.ngOnInit=function(){this.forViewCell&&(this.popGrid.viewCellTemplates[this.forViewCell]=this.templateRef)};a0.\u0275fac=function(a){return new (a||a0)};a0.\u0275dir=vf({type:a0,selectors:[["","forViewCell",""]],inputs:{forViewCell:"forViewCell"},standalone:!1});var b0=function(){this.templateRef=r(eh);this.popGrid=r(Y_)};b0.prototype.ngOnInit=function(){this.popGrid.defaultHeaderCellTemplate=this.templateRef};b0.\u0275fac=function(a){return new (a||b0)};
b0.\u0275dir=vf({type:b0,selectors:[["","forHeaderCellDefault",""]],standalone:!1});var c0=function(){this.columnLabel=this.columnName="";this.defaultSortDirection="ASC";this.sortChanged=new LE};c0.prototype.ariaLabel=function(){var a=this.columnLabel+", sortable";return this.isActive()?this.sort.direction==="ASC"?a+", sorted ascending":a+", sorted descending":a};c0.prototype.isActive=function(){return!!this.sort&&this.sort.field===this.columnName};
c0.prototype.activate=function(){var a=this.defaultSortDirection;this.isActive()&&(a=this.sort.direction==="ASC"?"DESC":"ASC");this.sortChanged.emit({field:this.columnName,direction:a})};c0.\u0275fac=function(a){return new (a||c0)};
c0.\u0275cmp=y({type:c0,selectors:[["b-sortable-header"]],inputs:{columnName:"columnName",columnLabel:"columnLabel",sort:"sort",defaultSortDirection:"defaultSortDirection"},outputs:{sortChanged:"sortChanged"},standalone:!1,decls:3,vars:8,consts:[["role","button","tabindex","0",1,"keep-focus-ring","pop-grid-sort-header",3,"click","keydown.enter","keydown.space"],[1,"arrow"]],template:function(a,b){a&1&&(J(0,"div",0),N("click",function(){return b.activate()})("keydown.enter",function(c){b.activate();
return c.stopPropagation()})("keydown.space",function(c){b.activate();return c.stopPropagation()}),M(1,"span",1),R(2),K());a&2&&(uh("current-sort",b.isActive())("direction-asc",b.isActive()&&b.sort.direction==="ASC")("direction-desc",b.isActive()&&b.sort.direction==="DESC"),Lg("aria-label",b.ariaLabel()),x(2),T(" ",b.columnLabel," "))},encapsulation:2});var d0=function(){this.elementRef=r(Te);this.grid=r(Y_,{optional:!0})};d0.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}}};
d0.prototype.ngOnDestroy=function(){this.cellParent&&delete this.cellParent.dataset.dragTargetColumnName};d0.\u0275fac=function(a){return new (a||d0)};
d0.\u0275cmp=y({type:d0,selectors:[["pop-grid-default-th"]],inputs:{column:"column"},standalone:!1,decls:3,vars:1,consts:[[1,"pop-grid-default-th"],[3,"columnLabel","columnName","defaultSortDirection","sort","matTooltip"],["tabindex","0",1,"pop-grid-non-sort-header","keep-focus-ring"],[3,"sortChanged","columnLabel","columnName","defaultSortDirection","sort","matTooltip"],[1,"a11y-only"]],template:function(a,b){a&1&&(J(0,"div",0),F(1,mwb,1,5,"b-sortable-header",1)(2,owb,3,3,"div",2),K());a&2&&(x(),
G(b.column.sortable?1:2))},dependencies:[zG,xG,c0],encapsulation:2});var Dad=function(){return{before:!1}},Ead=function(){return{before:!0}},vwb=function(a,b){return{columns:a,before:b}},e0=function(){Z.call(this);var a=this;this.matDialog=r(RJ);this.userPreferencesManager=r(iG);this.butterBar=r(GJ);this.analytics=r(RE);this.hotkeys=r(PG);this.activeSession=r(Bs);this.selectedColumnsChange=new LE;this.onAddTeamColumn=new LE;this.currentAvailableItems=[];this.isRemovable=!0;this.menuOpen=!1;this.listViewPrefs=GA.listViewPreferences;this.userPreferencesManager.preferences$.pipe(yg(this.destroyed$)).subscribe(function(b){a.listViewPrefs=
b.listViewPreferences||GA.listViewPreferences})};Y(e0,Z);e0.\u0275dir=Z.\u0275dir;e0.prototype.ngOnChanges=function(a){a.selectedColumns&&Fad(this)};
var Gad=function(a){a.selectedColumnsChange.emit([].concat(p(a.selectedColumns)));Fad(a)},qwb=function(a,b){var c=Object.assign({},a.listViewPrefs),d=rwb(b),e=d.get;d=d.set;d(c,!e(c));a.activeSession.isAnonymous()||Kq(a.butterBar,"Saving display preference...",0);a.userPreferencesManager.save({listViewPreferences:c}).pipe(mg(1),yg(a.destroyed$)).subscribe(function(){a.analytics.trackEvent("preferences","setListViewPref:"+b,e(c).toString());a.listViewPrefs=c;a.activeSession.isAnonymous()||Kq(a.butterBar,
"Display preference saved.",4E3)},function(){a.activeSession.isAnonymous()||a.butterBar.showWarning("Display preference could not be saved.")})},ywb=function(a,b){a.hotkeys.pause();LJ(a.matDialog.open(rad,{data:{column:a.column,columns:a.selectedColumns},position:{top:"100px"},panelClass:"overflow-visible-dialog-panel"})).pipe(yg(a.destroyed$)).subscribe({next:function(c){c&&a.add(c,b)},error:function(){a.hotkeys.unpause()},complete:function(){a.hotkeys.unpause()}})},Fad=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!Ira(b,f.name)});c=[].concat(p(new Set(e.filter(function(f){return f.parentLabel}).map(function(f){return f.parentLabel})))).map(function(f){return{label:f,columns:e.filter(function(h){return h.parentLabel===f})}});d=e.filter(function(f){return!f.parentLabel});a.currentAvailableItems=[].concat(p(d),p(c));a.currentAvailableItems.sort(function(f,h){return ia(f instanceof cs?f.fullLabel:
f.label,h instanceof cs?h.fullLabel:h.label)});a.isRemovable=Had(a)};e0.prototype.isIssueGridColumn=function(a){return a instanceof cs};e0.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,Gad(this),!0}return!1};
e0.prototype.add=function(a,b){var c=this;this.menuTrigger.closeMenu();a="customFieldId"in a&&a.customFieldId?new cs({name:a.customFieldId.toString(),label:a.name,fullLabel:a.name,sortable:!0,draggable:!0,isCustomField:!0}):a;a.label==="TEAM"&&this.onAddTeamColumn.emit();var d=this.selectedColumns.findIndex(function(e){return e.name===c.column.name});if(d===-1)return!1;b=b?d:d+1;this.selectedColumns=[].concat(p(this.selectedColumns));this.selectedColumns.splice(b,0,a);Gad(this);return!0};
var Had=function(a){return a.selectedColumns.filter(function(b){return!b.isMetadata}).length>1};e0.\u0275fac=function(a){return new (a||e0)};
e0.\u0275cmp=y({type:e0,selectors:[["b-column-picker"]],viewQuery:function(a,b){a&1&&hh(uG,5);if(a&2){var c;lh(c=mh())&&(b.menuTrigger=c.first)}},inputs:{column:"column",availableColumns:"availableColumns",selectedColumns:"selectedColumns"},outputs:{selectedColumnsChange:"selectedColumnsChange",onAddTeamColumn:"onAddTeamColumn"},standalone:!1,features:[Bg,ov],decls:21,vars:10,consts:[["pickerMenu","matMenu"],["addColumnMenu","matMenu"],["columnGroupMenu","matMenu"],["menuTrigger","matMenuTrigger"],
[1,"bv2-column-picker-container"],[1,"bv2-columnheader-content"],[3,"column"],["mat-button","","tabindex","0","role","button",1,"columnpicker-button",3,"matMenuTriggerFor","columnpicker-button-active"],[1,"columnpicker-menu"],["type","button","mat-menu-item","",1,"checkbox-item",3,"b-menu-item-checked"],["type","button","mat-menu-item","",3,"click","disabled"],["type","button","mat-menu-item","",3,"matMenuTriggerFor","matMenuTriggerData"],["matMenuContent",""],["mat-button","","tabindex","0","role",
"button",1,"columnpicker-button",3,"menuOpened","menuClosed","keydown.enter","keydown.space","matMenuTriggerFor"],["type","button","mat-menu-item","",1,"checkbox-item",3,"click"],["name","done","size","small",1,"item-checkmark","b-menu-item-check-mark"],[1,"item-description"],["type","button","mat-menu-item","",3,"click"],["type","button","mat-menu-item","",3,"matTooltip"],["type","button","mat-menu-item","",3,"click","keydown.enter","matTooltip"],["type","button","mat-menu-item",""],["type","button",
"mat-menu-item","",3,"click","keydown.enter"]],template:function(a,b){if(a&1){var c=t();J(0,"div",4)(1,"div",5);M(2,"pop-grid-default-th",6);K();F(3,pwb,2,5,"div",7);J(4,"mat-menu",8,0);Pg(6,swb,4,3,"button",9,Og);F(8,twb,1,0,"mat-divider");J(9,"button",10);N("click",function(){u(c);return w(b.remove())});R(10," Remove column ");K();J(11,"button",11);R(12," Add column right ");K();J(13,"button",11);R(14," Add column left ");K()();J(15,"mat-menu",null,1);D(17,zwb,5,0,"ng-template",12);K();J(18,"mat-menu",
null,2);D(20,Bwb,2,0,"ng-template",12);K()()}a&2&&(a=Q(16),x(2),I("column",b.column),x(),G(3),x(3),Qg(b.column.moreOptions),x(2),G(b.column.moreOptions.length?8:-1),x(),I("disabled",!b.isRemovable),x(2),I("matMenuTriggerFor",a)("matMenuTriggerData",Gh(8,Dad)),x(2),I("matMenuTriggerFor",a)("matMenuTriggerData",Gh(9,Ead)))},dependencies:[pG,sG,qG,rG,uG,pL,zG,xG,eL,d0],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 Kad=function(a){var b=this;this.params=a;this.element=this.params.nativeElement;this.dropzone=document.createElement("div");this.onTdDragStart=jn("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=jn("tr",function(c,d){if(b.draggedRow&&b.dragTargetRow!==d&&d.closest("tbody")&&
d!==b.draggedRow){Iad(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=jn("tr",function(){b.draggedRow&&(Iad(b.draggedRow),Iad(b.dragTargetRow),b.draggedRow.setAttribute("aria-grabbed",
"false"),b.draggedRow=b.dragTargetRow=void 0)});this.onTrDragLeave=jn("tr",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragEnter=jn(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDragLeave=jn(".row-dropzone",function(c){Iad(b.dragTargetRow);Jad(b);c.stopPropagation();c.preventDefault()});this.onDropzoneDragOver=jn(".row-dropzone",function(c){c.stopPropagation();c.preventDefault()});this.onDropzoneDrop=jn(".row-dropzone",function(c){Jad(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()})};
Kad.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");Jad(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)})};
Kad.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 Iad=function(a){a&&(a.classList.remove("drag-over"),a.classList.remove("above"),a.classList.remove("below"),a.classList.remove("dragging"))},Jad=function(a){a.dropzone.style.display="none"};var f0=function(){this.sloStatusHelpersService=r(HK);this.includeObjective=this.includeSloMetric=!1;this.firstOpenSlo=null;this.firstOpenSloMetric=""};f0.prototype.ngOnInit=function(){Lad(this)};f0.prototype.ngOnChanges=function(a){(a.sloStatus||a.includeSloMetric)&&Lad(this)};var Lad=function(a){var b=kMc(a.sloStatus);b?(a.firstOpenSlo=b.sloBounds,a.includeSloMetric?a.firstOpenSloMetric=b.sloMetric:a.firstOpenSloMetric=""):(a.firstOpenSlo=null,a.firstOpenSloMetric="")};
f0.\u0275fac=function(a){return new (a||f0)};
f0.\u0275cmp=y({type:f0,selectors:[["b-aggregated-slo-status-indicator"]],inputs:{sloStatus:"sloStatus",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",includeSloMetric:"includeSloMetric",includeObjective:"includeObjective"},standalone:!1,features:[ov],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:[U_],encapsulation:2,changeDetection:0});var Mad=function(){};Mad.\u0275fac=function(a){return new (a||Mad)};Mad.\u0275cmp=y({type:Mad,selectors:[["archived-issue-indicator"]],standalone:!1,decls:3,vars:0,consts:[["aria-hidden","true","svgIcon","archive_24px"]],template:function(a){a&1&&(J(0,"span"),M(1,"mat-icon",0),R(2,"Archived "),K())},dependencies:[FC],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 g0=function(){};g0.\u0275fac=function(a){return new (a||g0)};g0.\u0275mod=uf({type:g0});g0.\u0275inj=Dd({imports:[HC]});var h0=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(h0,n);h0.prototype.getIssueId=function(){return xk(this,1)};h0.prototype.getIssueId_asLegacyNumberOrString=function(){return Um(this,1)};h0.prototype.getIssueId_asString=function(){return Bk(this,1)};h0.prototype.setIssueId=function(a){return Xl(this,1,a)};var Nad=function(a){return Jj(a,2,2)};var Oad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Oad,n);var i0=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,i0.messageId)};Y(i0,n);i0.prototype.getIt=function(){return W(this,Oad,2,Nc)};i0.prototype.setIt=function(a){return X(this,Oad,2,a,Nc)};i0.messageId="b.ListStatusUpdateHistoryResponse";var j0=function(){this.executor=r(PA)};j0.prototype.update=function(a){var b=this.executor,c=b.post,d="action/issues/"+a.issueId+"/statusUpdate";a=(new tD).setIt(aza(a));return c.call(b,{url:d,body:a,responseConstructor:tD}).pipe(C(JFa))};j0.prototype.delete=function(a){return this.executor.delete({url:"action/issues/"+a+"/statusUpdate",responseConstructor:null})};
var Pad=function(a,b){var c=Nad((new h0).setIssueId(Number(b)));return a.executor.post({url:"action/issues/"+b+"/listStatusUpdates",body:c,responseConstructor:i0}).pipe(C(function(d){d=d.getIt();return Sj(d,Om,1,Bj()).map($ya)}))};j0.\u0275fac=function(a){return new (a||j0)};j0.\u0275prov=Cd({token:j0,factory:j0.\u0275fac,providedIn:"root"});var Qad=function(a){return[a]},k0=function(){this.matDialog=r(RJ)};k0.prototype.show=function(a,b,c){a.formattingMode==="LITERAL"&&(a.formattingMode="PLAIN");this.dialog=this.matDialog.open(l0,{width:"60vw",disableClose:!0,panelClass:"no-jitter",data:{componentId:c,formattingAudience:b,statusUpdate:a}});return Rf(LJ(this.dialog))};k0.\u0275fac=function(a){return new (a||k0)};k0.\u0275prov=Cd({token:k0,factory:k0.\u0275fac,providedIn:"root"});
var l0=function(){Z.apply(this,arguments);this.activeSession=r(Bs);this.checkBeforeExit=r(UR);this.data=r(QJ);this.dialogService=r(k0);this.dialogRef=r(KJ);this.bannedWordsChecker=r(UO);this.CHAR_LIMIT=2E3;this.FormattingMode=Uj;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=hj(this.origStatusUpdate)};Y(l0,Z);l0.\u0275dir=Z.\u0275dir;var Rad=function(a){var b,c;return(c=ZKa((b=a.newStatusUpdate)==null?void 0:b.updateText))!=null?c:""};g=l0.prototype;g.ngOnInit=function(){var a=this;this.subscriptions.add(VR(this.checkBeforeExit,function(){return a.isModified()},!1));this.dialogRef.keydownEvents().pipe(yg(this.destroyed$)).subscribe(function(b){b.key==="Escape"&&a.closeIfUnmodified()});this.dialogRef.backdropClick().pipe(yg(this.destroyed$)).subscribe(function(){a.closeIfUnmodified()})};
g.closeIfUnmodified=function(){if(!this.isModified()){var a;(a=this.dialogService.dialog)==null||a.close()}};g.isModified=function(){return!gj(this.newStatusUpdate,this.origStatusUpdate)};g.asNumber=function(a){return Number(a)};
g.closeDialogForSave=function(){var a=this,b,c,d;return z(function(e){if(e.nextAddress==1)return a.isModified()?B(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||zXc(c),e.return();(d=a.dialogService.dialog)==null||d.close(a.newStatusUpdate);Lf(e)})};l0.\u0275fac=function(){var a;return function(b){return(a||(a=Re(l0)))(b||l0)}}();
l0.\u0275cmp=y({type:l0,selectors:[["ng-component"]],viewQuery:function(a,b){a&1&&hh(SR,5);if(a&2){var c;lh(c=mh())&&(b.commentDraft=c.first)}},standalone:!1,features:[Fh([UO]),Bg],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&&(J(0,"h1",0),R(1,"Editing Status Update"),
K(),J(2,"section",1)(3,"p",2),R(4," Editing the Status Update will not permanently remove old ones from database history. "),M(5,"br"),R(6," For deletion of PII or other sensitive content, please "),J(7,"a",3),R(8," file a support request. "),K()(),J(9,"b-comment-draft",4),U(10,"async"),Ah("contentChange",function(d){zh(b.newStatusUpdate.updateText,d)||(b.newStatusUpdate.updateText=d);return d}),N("contentChange",function(){b.bannedWordsChecker.reset()})("onSubmit",function(){return b.closeDialogForSave()}),
K(),F(11,Cwb,2,1,"p",5),F(12,Dwb,4,1,"p",6),U(13,"async"),J(14,"b-markdown-toggle",7),N("change",function(d){return b.newStatusUpdate.formattingMode=d}),K(),F(15,Ewb,2,4,"div",8),K(),J(16,"footer",9)(17,"button",10),R(18," Cancel "),K(),J(19,"button",11),U(20,"async"),N("click",function(){return b.closeDialogForSave()}),R(21),U(22,"async"),K()());if(a&2){x(7);I("href",b.contentRemovalRequestLink,hf);x(2);vh(Rad(b));yh("content",b.newStatusUpdate.updateText);I("textareaClass",Hh(24,Qad,V(10,16,b.bannedWordsChecker.showWarning$)?
"banned-words-warning":""))("isLiteralModeSupported",!1);x(2);G(b.newStatusUpdate.updateText.length>2E3?11:-1);x();G(V(13,18,b.bannedWordsChecker.showWarning$)?12:-1);x(2);uh("margin-bottom",b.newStatusUpdate.formattingMode!==b.FormattingMode.MARKDOWN);var c;I("initialValue",(c=b.origStatusUpdate.formattingMode)!=null?c:b.FormattingMode.PLAIN);x();G(b.newStatusUpdate.formattingMode===b.FormattingMode.MARKDOWN?15:-1);x(2);I("mat-dialog-close",void 0);x(2);I("disabled",b.newStatusUpdate.updateText.length===
0||b.newStatusUpdate.updateText.length>2E3||!b.isModified())("color",V(20,20,b.bannedWordsChecker.showWarning$)?"warn":"primary");x(2);T(" ",V(22,22,b.bannedWordsChecker.showWarning$)?"Save Anyway":"Save"," ")}},dependencies:[SJ,UJ,WJ,VJ,oG,Jx,fQ,yO,SR,Tv],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 m0=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(m0,n);m0.prototype.setContextsList=function(a){return dp(this,1,a)};m0.prototype.addContexts=function(a){return yc(this,1,zb,a,void 0,Ab)};var Sad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Sad,n);g=Sad.prototype;g.getIssueIdsList=function(){return Rj(this,1,1)};g.getIssueIdsList_asString=function(){return Ck(this,1)};g.setIssueIdsList=function(a){return ep(this,1,a)};g.addIssueIds=function(a){return Qu(this,1,a)};g.setIssueIds=function(a){Su(this,1,a)};var n0=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(n0,n);n0.prototype.getWorkspaceId=function(){return xk(this,1)};n0.prototype.getWorkspaceId_asString=function(){return Bk(this,1)};n0.prototype.getType=function(){return pk(this,2)};n0.prototype.setType=function(a){return Jj(this,2,a)};var Tad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Tad,n);Tad.prototype.getTypedWorkspaceIdsList=function(){return Sj(this,n0,1,Bj())};Tad.prototype.getIterationIdsList_asString=function(){return Ck(this,2)};var Uad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Uad,n);g=Uad.prototype;g.getIterationId_asString=function(){return Bk(this,1)};g.getWorkspaceId=function(){return xk(this,2)};g.getWorkspaceId_asString=function(){return Bk(this,2)};g.getType=function(){return pk(this,3)};g.setType=function(a){return Jj(this,3,a)};g.getName=function(){return Rc(this,4)};g.setName=function(a){return Hj(this,4,a)};g.getHotlistId=function(){return xk(this,7)};
g.setHotlistId=function(a){return Xl(this,7,a)};g.getStatus=function(){return pk(this,8)};g.setStatus=function(a){return Jj(this,8,a)};g.getTagsList=function(a){return Fk(this,9,Bj(a))};g.getTags=function(a){return Lu(this,9,a)};g.setVelocity=function(a){return Im(this,11,a)};g.getStartTime=function(){return W(this,bk,12)};g.setStartTime=function(a){X(this,bk,12,a)};g.getEndTime=function(){return W(this,bk,13)};g.setEndTime=function(a){X(this,bk,13,a)};g.getEtag=function(){return Rc(this,18)};
g.setEtag=function(a){return Hj(this,18,a)};var Vad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Vad,n);Vad.prototype.getEmail=function(){return Rc(this,1)};Vad.prototype.setEmail=function(a){return Hj(this,1,a)};var Wad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Wad,n);g=Wad.prototype;g.getWorkspaceId=function(){return xk(this,1)};g.getWorkspaceId_asString=function(){return Bk(this,1)};g.getName=function(){return Rc(this,2)};g.setName=function(a){return Hj(this,2,a)};g.getTimeZone=function(){return W(this,Zo,8)};g.setTimeZone=function(a){return X(this,Zo,8,a)};g.hasTimeZone=function(){return tk(this,Zo,8)};g.getMembersList=function(){return Sj(this,Vad,9,Bj())};
g.setMembersList=function(a){return Bm(this,9,a)};g.getUpdateTime=function(){return W(this,bk,12)};g.setUpdateTime=function(a){X(this,bk,12,a)};g.hasUpdateTime=function(){return tk(this,bk,12)};g.getBookmarkGroupId=function(){return xk(this,14)};g.setBookmarkGroupId=function(a){return Xl(this,14,a)};g.getTeamId=function(){return Rc(this,20)};g.setTeamId=function(a){return Hj(this,20,a)};var Xad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Xad,n);Xad.prototype.getWorkspacesMap=function(){return uc(this,1,Wad,Vb)};Xad.prototype.getIterationsMap=function(){return uc(this,2,Uad,Vb)};var Lwb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Lwb,n);g=Lwb.prototype;g.getContextsMap=function(){return uc(this,1,Tad,Wb)};g.getData=function(){return W(this,Xad,2)};g.setData=function(a){return X(this,Xad,2,a)};g.clearData=function(){return Bu(this,2)};g.getFilter=function(){return W(this,m0,3)};g.setFilter=function(a){return X(this,m0,3,a)};var Yad=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Yad,n);var Zad=Tc(Yad);var $ad=function(a,b,c){this.requestMessage=a;this.methodDescriptor=b;this.metadata=c};$ad.prototype.getMetadata=function(){return this.metadata};var abd=function(a,b){b=b===void 0?{}:b;this.responseMessage=a;this.metadata=b;this.status=null};abd.prototype.getMetadata=function(){return this.metadata};abd.prototype.getStatus=function(){return this.status};var o0=function(a,b,c,d,e){this.name=a;this.requestType=b;this.responseType=c;this.requestSerializeFn=d;this.responseDeserializeFn=e},bbd=function(a,b,c){c=c===void 0?{}:c;return new $ad(b,a,c)};o0.prototype.getName=function(){return this.name};var cbd=new o0("/google.internal.devtools.taskflow.partner.v1.TaskFlowPartnerService/BatchGetIssueContexts",Sad,Yad,function(a){return a.serialize()},Zad);var dbd=new Set(["SAPISIDHASH","APISIDHASH"]);var p0=function(a,b,c){c=c===void 0?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};Y(p0,Error);p0.prototype.toString=function(){var a="RpcError("+(bea(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};var q0=function(a,b){this.xhrNodeReadableStream_=a.nodeReadableStream;this.grpcResponseDeserializeFn_=b;this.xhr_=a.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.onErrorCallbacks_=[];this.xhrNodeReadableStream_&&ebd(this)},lbd=function(a,b){var c=new fbd;Ep(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("df");d=
atob(d)}try{var e=a.grpcResponseDeserializeFn_(d)}catch(k){gbd(a,Fwb(new p0(13,"Error when deserializing response data; error: "+k+(", response: "+d)),c));return}d=aea(a.xhr_.getStatus());hbd(a,ibd(a));d==0?jbd(a,e):gbd(a,Fwb(new p0(d,"Xhr succeeded but the status code is not 200"),c))}else{d=a.xhr_.getResponseText();e=ibd(a);if(d){var f=kbd(a,d);d=f.code;var h=f.details;f=f.metadata}else d=2,h="Rpc failed due to xhr error. uri: "+a.xhr_.getLastUri()+", error code: "+a.xhr_.getLastErrorCode()+", error: "+
a.xhr_.getLastError(),f=e;hbd(a,e);gbd(a,Fwb(new p0(d,h,f),c))}})},ebd=function(a){a.xhrNodeReadableStream_.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.grpcResponseDeserializeFn_(c)}catch(e){gbd(a,new p0(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&jbd(a,d)}if("2"in b)for(b=kbd(a,b["2"]),c=0;c<a.onStatusCallbacks_.length;c++)a.onStatusCallbacks_[c](b)});a.xhrNodeReadableStream_.on("end",function(){hbd(a,ibd(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=aea(c);break;default:d=14}hbd(a,ibd(a));b=kVc(b)+", error: "+a.xhr_.getLastError();c!=-1&&(b+=", http status code: "+c);gbd(a,new p0(d,b))}})},ibd=function(a){var b={},c=a.xhr_.getResponseHeaders();Object.keys(c).forEach(function(d){b[d]=c[d]});return b},
kbd=function(a,b){var c=2,d={};try{var e=DUc(b);c=e.getCode();var f=e.getMessage();Sj(e,xo,3,Bj()).length&&(d["grpc-web-status-details-bin"]=b)}catch(h){a.xhr_&&a.xhr_.getStatus()===404?(c=5,f="Not Found: "+a.xhr_.getLastUri()):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
q0.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 mbd=function(a,b){b=a.indexOf(b);b>-1&&a.splice(b,1)};
q0.prototype.removeListener=function(a,b){a=="data"?mbd(this.onDataCallbacks_,b):a=="metadata"?mbd(this.onMetadataCallbacks_,b):a=="status"?mbd(this.onStatusCallbacks_,b):a=="end"?mbd(this.onEndCallbacks_,b):a=="error"&&mbd(this.onErrorCallbacks_,b);return this};q0.prototype.cancel=function(){this.xhr_.abort()};
var jbd=function(a,b){for(var c=0;c<a.onDataCallbacks_.length;c++)a.onDataCallbacks_[c](b)},hbd=function(a,b){for(var c=0;c<a.onMetadataCallbacks_.length;c++)a.onMetadataCallbacks_[c](b)},gbd=function(a,b){for(var c=0;c<a.onErrorCallbacks_.length;c++)a.onErrorCallbacks_[c](b)};q0.prototype.cancel=q0.prototype.cancel;q0.prototype.removeListener=q0.prototype.removeListener;q0.prototype.on=q0.prototype.on;
var fbd=function(){var a=Error.call(this);this.message=a.message;"stack"in a&&(this.stack=a.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};Y(fbd,Error);var nbd=function(){this.isInputValid_=!0;this.streamPos_=0;this.leftoverInput_=""};nbd.prototype.error_=function(a,b){this.isInputValid_=!1;throw Error("ef`"+this.streamPos_+"`"+b+"`"+a);};
nbd.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=iec(this.leftoverInput_.slice(0,a*4))}catch(c){this.error_(this.leftoverInput_,c.message)}this.streamPos_+=a*4;this.leftoverInput_=this.leftoverInput_.slice(a*4);return b};var ds=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};ds.prototype.getErrorMessage=function(){return this.errorMessage_};ds.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_);};ds.prototype.acceptsBinaryInput=function(){return!0};
ds.prototype.parse=function(a){function b(q){q&128&&f.error_(h,k,"invalid tag");(q&7)!=2&&f.error_(h,k,"invalid wire type");f.tag_=q>>>3;f.tag_!=1&&f.tag_!=2&&f.tag_!=15&&f.error_(h,k,"unexpected tag");f.state_=1;f.length_=0;f.countLengthBytes_=0}function c(q){f.countLengthBytes_++;f.countLengthBytes_==5&&q&240&&f.error_(h,k,"message length too long");f.length_|=(q&127)<<(f.countLengthBytes_-1)*7;q&128||(f.state_=2,f.countMessageBytes_=0,typeof Uint8Array!=="undefined"?f.messageBuffer_=new Uint8Array(f.length_):
f.messageBuffer_=Array(f.length_),f.length_==0&&e())}function d(q){f.messageBuffer_[f.countMessageBytes_++]=q;f.countMessageBytes_==f.length_&&e()}function e(){if(f.tag_<15){var q={};q[f.tag_]=f.messageBuffer_;f.result_.push(q)}f.state_=0}for(var f=this,h=a instanceof Array?a:new Uint8Array(a),k=0;k<h.length;){switch(f.state_){case 3:f.error_(h,k,"stream already broken");break;case 0:b(h[k]);break;case 1:c(h[k]);break;case 2:d(h[k]);break;default:throw Error("ff`"+f.state_);}f.streamPos_++;k++}a=
f.result_;f.result_=[];return a.length>0?a:null};var Jwb=function(){this.errorMessage_=null;this.streamPos_=0;this.base64Decoder_=new nbd;this.pbParser_=new ds};Jwb.prototype.getErrorMessage=function(){return this.errorMessage_};Jwb.prototype.error_=function(a,b){this.errorMessage_="The stream is broken @"+this.streamPos_+". Error: "+b+". With input:\n"+a;throw Error(this.errorMessage_);};Jwb.prototype.acceptsBinaryInput=function(){return!1};
Jwb.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 r0=function(a){return a=="\r"||a=="\n"||a==" "||a=="\t"};var Iwb=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)},obd={INIT:0,VALUE:1,OBJECT_OPEN:2,OBJECT_END:3,ARRAY_OPEN:4,ARRAY_END:5,STRING:6,KEY_START:7,KEY_END:8,TRUE1:9,TRUE2:10,TRUE3:11,FALSE1:12,FALSE2:13,FALSE3:14,FALSE4:15,NULL1:16,NULL2:17,NULL3:18,NUM_DECIMAL_POINT:19,
NUM_DIGIT:20};g=Iwb.prototype;g.getErrorMessage=function(){return this.errorMessage_};g.done=function(){return this.streamState_===2};g.error_=function(a,b){this.streamState_=3;this.errorMessage_="The stream is broken @"+this.pos_+"/"+b+". With input:\n"+a;throw Error(this.errorMessage_);};g.acceptsBinaryInput=function(){return!1};
g.parse=function(a){function b(){for(;H<a.length;)if(r0(a[H]))H++,f.pos_++;else break;return H<v}function c(){for(var O;;){O=a[H++];if(!O)break;f.pos_++;switch(f.state_){case q.INIT:O==="{"?f.state_=q.OBJECT_OPEN:O==="["?f.state_=q.ARRAY_OPEN:r0(O)||f.error_(a,H);continue;case q.KEY_START:case q.OBJECT_OPEN:if(r0(O))continue;if(f.state_===q.KEY_START)h.push(q.KEY_END);else if(O==="}"){e("{}");f.state_=d();continue}else h.push(q.OBJECT_END);O==='"'?f.state_=q.STRING:f.error_(a,H);continue;case q.KEY_END:case q.OBJECT_END:if(r0(O))continue;
O===":"?(f.state_===q.OBJECT_END&&(h.push(q.OBJECT_END),f.depth_++),f.state_=q.VALUE):O==="}"?(f.depth_--,e(),f.state_=d()):O===","?(f.state_===q.OBJECT_END&&h.push(q.OBJECT_END),f.state_=q.KEY_START):f.error_(a,H);continue;case q.ARRAY_OPEN:case q.VALUE:if(r0(O))continue;if(f.state_===q.ARRAY_OPEN)if(f.depth_++,f.state_=q.VALUE,O==="]"){f.depth_--;if(f.depth_===0){f.state_=q.ARRAY_END;return}e("[]");f.state_=d();continue}else h.push(q.ARRAY_END);O==='"'?f.state_=q.STRING:O==="{"?f.state_=q.OBJECT_OPEN:
O==="["?f.state_=q.ARRAY_OPEN:O==="t"?f.state_=q.TRUE1:O==="f"?f.state_=q.FALSE1:O==="n"?f.state_=q.NULL1:O!=="-"&&("0123456789".indexOf(O)!==-1?f.state_=q.NUM_DIGIT:f.error_(a,H));continue;case q.ARRAY_END:if(O===",")h.push(q.ARRAY_END),f.state_=q.VALUE,f.depth_===1&&(E=H);else if(O==="]"){f.depth_--;if(f.depth_===0)return;e();f.state_=d()}else if(r0(O))continue;else f.error_(a,H);continue;case q.STRING:var S=H;a:for(;;){for(;f.unicodeCount_>0;)if(O=a[H++],f.unicodeCount_===4?f.unicodeCount_=0:f.unicodeCount_++,
!O)break a;if(O==='"'&&!f.slashed_){f.state_=d();break}if(O==="\\"&&!f.slashed_&&(f.slashed_=!0,O=a[H++],!O))break;if(f.slashed_)if(f.slashed_=!1,O==="u"&&(f.unicodeCount_=1),O=a[H++])continue;else break;k.lastIndex=H;O=k.exec(a);if(!O){H=a.length+1;break}H=O.index+1;O=a[O.index];if(!O)break}f.pos_+=H-S;continue;case q.TRUE1:if(!O)continue;O==="r"?f.state_=q.TRUE2:f.error_(a,H);continue;case q.TRUE2:if(!O)continue;O==="u"?f.state_=q.TRUE3:f.error_(a,H);continue;case q.TRUE3:if(!O)continue;O==="e"?
f.state_=d():f.error_(a,H);continue;case q.FALSE1:if(!O)continue;O==="a"?f.state_=q.FALSE2:f.error_(a,H);continue;case q.FALSE2:if(!O)continue;O==="l"?f.state_=q.FALSE3:f.error_(a,H);continue;case q.FALSE3:if(!O)continue;O==="s"?f.state_=q.FALSE4:f.error_(a,H);continue;case q.FALSE4:if(!O)continue;O==="e"?f.state_=d():f.error_(a,H);continue;case q.NULL1:if(!O)continue;O==="u"?f.state_=q.NULL2:f.error_(a,H);continue;case q.NULL2:if(!O)continue;O==="l"?f.state_=q.NULL3:f.error_(a,H);continue;case q.NULL3:if(!O)continue;
O==="l"?f.state_=d():f.error_(a,H);continue;case q.NUM_DECIMAL_POINT:O==="."?f.state_=q.NUM_DIGIT:f.error_(a,H);continue;case q.NUM_DIGIT:if("0123456789.eE+-".indexOf(O)!==-1)continue;else H--,f.pos_--,f.state_=d();continue;default:f.error_(a,H)}}}function d(){var O=h.pop();return O!=null?O:q.VALUE}function e(O){f.depth_>1||(O||(O=E===-1?f.buffer_+a.substring(A,H):a.substring(E,H)),f.deliverMessageAsRawString_?f.result_.push(O):f.result_.push(JSON.parse(O)),E=H)}for(var f=this,h=f.stack_,k=f.stringInputPattern_,
q=obd,v=a.length,A=0,E=-1,H=0;H<v;)switch(f.streamState_){case 3:return f.error_(a,H),null;case 2:return b()&&f.error_(a,H),null;case 0:if(b()){var L=a[H++];f.pos_++;if(L==="["){f.streamState_=1;A=H;f.state_=q.ARRAY_OPEN;continue}else f.error_(a,H)}return null;case 1:return c(),f.depth_===0&&f.state_==q.ARRAY_END?(f.streamState_=2,f.buffer_=a.substring(H)):f.buffer_=E===-1?f.buffer_+a.substring(A):a.substring(E),f.result_.length>0?(L=f.result_,f.result_=[],L):null}return null};var Hwb=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.streamPos_=0;this.result_=[];this.statusParsed_=!1};Hwb.prototype.getErrorMessage=function(){return this.errorMessage_};Hwb.prototype.acceptsBinaryInput=function(){return!1};
Hwb.prototype.parse=function(a){function b(q){f.state_=6;f.errorMessage_="The stream is broken @"+f.streamPos_+"/"+h+". Error: "+q+". With input:\n";throw Error(f.errorMessage_);}function c(){f.jsonStreamParser_=new Iwb({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}function d(q){if(q)for(var v=0;v<q.length;v++){var A={};A[1]=q[v];f.result_.push(A)}}function e(q){if(q){(f.statusParsed_||q.length>1)&&b("extra status: "+q);f.statusParsed_=!0;var v={};v[2]=q[0];f.result_.push(v)}}for(var f=
this,h=0;h<a.length;){var k;if(k=f.state_!==2){a:{for(;h<a.length;){if(!r0(a[h])){k=!0;break a}h++;f.streamPos_++}k=!1}k=!k}if(k)return null;switch(f.state_){case 6:b("stream already broken");break;case 0:a[h]==="["?(f.state_=1,h++,f.streamPos_++):b("unexpected input token");break;case 1:a[h]==="["?(f.state_=2,c()):a[h]===","||a.slice(h,h+5)=="null,"?f.state_=3:a[h]==="]"?(f.state_=5,h++,f.streamPos_++):b("unexpected input token");break;case 2:k=f.jsonStreamParser_.parse(a.substring(h));d(k);f.jsonStreamParser_.done()?
(f.state_=3,k=f.jsonStreamParser_.buffer_,f.streamPos_+=a.length-h-k.length,a=k,h=0):(f.streamPos_+=a.length-h,h=a.length);break;case 3:a[h]===","||a.slice(h,h+5)=="null,"?(f.state_=4,c(),f.jsonStreamParser_.parse("["),h+=a[h]===","?1:5,f.streamPos_++):a[h]==="]"&&(f.state_=5,h++,f.streamPos_++);break;case 4:k=f.jsonStreamParser_.parse(a.substring(h));e(k);f.jsonStreamParser_.done()?(f.state_=5,k=f.jsonStreamParser_.buffer_,f.streamPos_+=a.length-h-k.length,a=k,h=0):(f.streamPos_+=a.length-h,h=a.length);
break;case 5:b("extra input after stream end")}}return f.result_.length>0?(a=f.result_,f.result_=[],a):null};var pbd=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 Fs(this);this.eventHandler_.listen(this.xhr_,"readystatechange",this.readyStateChangeHandler_)};pbd.prototype.getXhr=function(){return this.xhr_};
var s0=function(a,b){a.status_!=b&&(a.status_=b,a.statusHandler_&&a.statusHandler_())},qbd=function(a){a.eventHandler_.removeAll();if(a.xhr_){var b=a.xhr_;a.xhr_=null;b.abort();b.dispose()}};pbd.prototype.getStatus=function(){return this.status_};
pbd.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?s0(this,7):c==7?s0(this,8):d||s0(this,3)),this.parser_||(this.parser_=Kwb(this.xhr_),
this.parser_==null&&s0(this,5)),this.status_>2)qbd(this);else{if(a.length>this.pos_){var h=a.length;c=[];try{if(this.parser_.acceptsBinaryInput())for(var k=0;k<h;k++){var q=this.parser_.parse(Array.from(a[k]));q&&(c=c.concat(q))}else{q="";if(!this.textDecoder_){if(typeof TextDecoder==="undefined")throw Error("gf");this.textDecoder_=new TextDecoder}for(k=0;k<h;k++)q+=this.textDecoder_.decode(a[k],{stream:b==4&&k==h-1});c=this.parser_.parse(q)}a.splice(0,h);c&&this.dataHandler_(c)}catch(A){s0(this,
5);qbd(this);break a}}else if(e.length>this.pos_){k=e.slice(this.pos_);this.pos_=e.length;try{var v=this.parser_.parse(k);v!=null&&this.dataHandler_&&this.dataHandler_(v)}catch(A){s0(this,5);qbd(this);break a}}b==4?(e.length!=0||this.hasStreamingResponseData_?s0(this,2):s0(this,4),qbd(this)):s0(this,1)}}}catch(A){s0(this,6),qbd(this)}};var rbd=function(a){a=this.xhrReader_=a;var b=bt(this.onData_,this);a.dataHandler_=b;a=this.xhrReader_;b=bt(this.onStatusChange_,this);a.statusHandler_=b;this.callbackMap_={};this.callbackOnceMap_={}};g=rbd.prototype;g.on=function(a,b){var c=this.callbackMap_[a];c||(c=[],this.callbackMap_[a]=c);c.push(b);return this};g.addListener=function(a,b){this.on(a,b);return this};g.removeListener=function(a,b){var c=this.callbackMap_[a];c&&Fa(c,b);(a=this.callbackOnceMap_[a])&&Fa(a,b);return this};
g.once=function(a,b){var c=this.callbackOnceMap_[a];c||(c=[],this.callbackOnceMap_[a]=c);c.push(b);return this};g.onData_=function(a){var b=this.callbackMap_.data;b&&sbd(this,a,b);(b=this.callbackOnceMap_.data)&&sbd(this,a,b);this.callbackOnceMap_.data=[]};
var sbd=function(a,b,c){for(var d={},e=0;e<b.length;d={message$jscomp$929:void 0},e++)d.message$jscomp$929=b[e],c.forEach(function(f){return function(h){try{h(f.message$jscomp$929)}catch(k){a.handleError_("message-callback exception (ignored) "+k)}}}(d))};rbd.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:tbd(this,"readable");break;case 5:case 6:case 4:case 7:case 3:tbd(this,"error");break;case 8:tbd(this,"close");break;case 2:tbd(this,"end")}};
var tbd=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]=[]};rbd.prototype.handleError_=function(){};var ubd=function(a){a=a===void 0?{}:a;this.suppressCorsPreflight=a.suppressCorsPreflight||xp("suppressCorsPreflight",a)||!1;this.withCredentials=a.withCredentials||xp("withCredentials",a)||!1;this.streamInterceptors=a.streamInterceptors||[];this.unaryInterceptors=a.unaryInterceptors||[];this.workerScope=a.workerScope;this.chunkedServerStreaming=a.useFetchDownloadStreams||!1},xbd=function(a,b,c,d,e,f){f=f===void 0?{}:f;var h=b.substring(0,b.length-e.name.length),k,q=(k=f)==null?void 0:k.signal;return vbd(function(v){return new Promise(function(A,
E){if(q==null?0:q.aborted){var H=new p0(1,"Aborted");H.cause=q.reason;E(H)}else{var L={},O=wbd(a,v,h);O.on("error",function(S){return void E(S)});O.on("metadata",function(S){L=S});O.on("data",function(S){var aa=L;aa=aa===void 0?{}:aa;A(new abd(S,aa))});q&&q.addEventListener("abort",function(){O.cancel();var S=new p0(1,"Aborted");S.cause=q.reason;E(S)})}})},a.unaryInterceptors).call(a,bbd(e,c,d)).then(function(v){return v.responseMessage})},t0=function(a,b,c,d,e,f){f=f===void 0?{}:f;return xbd(a,b,
c,d,e,f)};ubd.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substring(0,a.length-d.name.length);return ybd(function(h){var k=h.methodDescriptor,q=h.getMetadata(),v=zbd(e,!1);q=Abd(e,q,v,f+k.getName());var A=Bbd(v,k.responseDeserializeFn,!0);h=k.requestSerializeFn(h.requestMessage);v.send(q,"POST",h);return A},this.streamInterceptors).call(this,bbd(d,b,c))};
var wbd=function(a,b,c){var d=b.methodDescriptor,e=b.getMetadata(),f=zbd(a,!0);a=Abd(a,e,f,c+d.getName());c=Bbd(f,d.responseDeserializeFn,!1);lbd(c,e["X-Goog-Encode-Response-If-Executable"]==="base64");b=d.requestSerializeFn(b.requestMessage);f.send(a,"POST",b);return c},zbd=function(a,b){b=a.chunkedServerStreaming&&!b;return a.workerScope||b?new Uq(new ER({worker:a.workerScope,streamBinaryChunks:b})):new Uq},Abd=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&&dbd.has(e.split(" ")[0])||a.withCredentials)c.withCredentials_=!0;if(a.suppressCorsPreflight)d=iBc(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},Bbd=function(a,b,c){if(c){c=new pbd(a);var d=new rbd(c)}return new q0({xhr:a,nodeReadableStream:d},b)},ybd=function(a,b){return b.reduce(function(c,d){return function(e){return d.intercept(e,c)}},a)},vbd=function(a,b){return b.reduce(function(c,d){return function(e){return d.intercept(e,
c)}},a)};var Cbd=function(a){var b={withCredentials:!0,suppressCorsPreflight:!0};b=b||{};b.format="jspb";this.client_=new ubd(b);this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};var Dbd={},Ebd;Dbd.Authorization=(Ebd=ALa([]))!=null?Ebd:"";Dbd["X-Goog-Api-Key"]="AIzaSyAVSCxcE30nYSaySrZXBXCTumqIjorZA2c";Dbd["X-Goog-AuthUser"]="0";
var v0=function(){this.activeSession=r(Bs);var a=this.clientFactory=r(u0),b=a.create;a:switch(this.activeSession.getEnvironmentType()){case "NIGHTLY":case "PROD":var c="https://taskflowpartner-pa.clients6.google.com";break a;default:c="https://autopush-taskflowpartner-pa-googleapis.sandbox.google.com"}this.client=b.call(a,c)},Fbd=function(a,b){return a.activeSession.isExternalSession()?Nf([]):Yf(function(){var c=a.client;var d=(new Sad).addIssueIds(b);var e=(new m0).addContexts(1);d=X(d,m0,2,e);return t0(c.client_,
c.hostname_+"/$rpc/google.internal.devtools.taskflow.partner.v1.TaskFlowPartnerService/BatchGetIssueContexts",d,Dbd||{},cbd)}).pipe(C(Mwb(b)),hg(function(){return Nf([])}))};v0.\u0275fac=function(a){return new (a||v0)};v0.\u0275prov=Cd({token:v0,factory:v0.\u0275fac,providedIn:"root"});var u0=function(){};u0.prototype.create=function(a){return new Cbd(a)};u0.\u0275fac=function(a){return new (a||u0)};u0.\u0275prov=Cd({token:u0,factory:u0.\u0275fac,providedIn:"root"});var Gbd=["popOver"],Owb=function(a){return{$implicit:a}},w0=function(){var a=this;this.destroyRef=r(Gg);this.disabled=!1;this.displayEditIcon=!0;this.openPopOverOnInit=!1;this.required=Mh.apply(null,[!1].concat(p([])));this.valueChange=new nq;this.editing=this.headerFocused=!1;this.editingValue=new jy("",{nonNullable:!0});this.editingValueSignal=nh.apply(null,[""].concat(p([])));this.isInvalid=Zh.apply(null,[function(){return a.required()&&a.editingValueSignal()===""}].concat(p([])));this.onChange=
function(){};this.onTouched=function(){}};Y(w0,gU);g=w0.prototype;g.ngOnInit=function(){var a=this;this.required()&&Sqa(this.editingValue,[Si]);this.editingValue.valueChanges.pipe(lp(this.destroyRef)).subscribe(function(b){a.editingValueSignal.set(b!=null?b:"")})};g.ngAfterViewInit=function(){var a=this;this.openPopOverOnInit&&setTimeout(function(){a.startEditing()})};g.valueChanged=function(){return Twb(this.editingValue.value)!==this.value};
g.startEditing=function(){this.disabled||(this.onTouched(),this.editing=!0,this.editingValue.setValue(this.value!=null?String(this.value):""),this.popOver.open())};g.stopEditing=function(a){this.editing=!1;(this.required()?this.editingValue.valid:1)&&a===0&&(this.onChange(this.editingValue.value),this.value=a=Twb(this.editingValue.value),this.valueChange.emit(a))};g.writeValue=function(a){var b=Twb(a);if(a!=null||this.val!==b)this.val=b,this.editingValue.setValue(a!=null?a:"")};
g.isActive=function(){return this.headerFocused||this.editing};g.registerOnChange=function(a){this.onChange=a};g.registerOnTouched=function(a){this.onTouched=a};g.setDisabledState=function(a){this.disabled=a};nd.Object.defineProperties(w0.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a!=null?String(a):null)}}});w0.\u0275fac=function(){var a;return function(b){return(a||(a=Re(w0)))(b||w0)}}();
w0.\u0275cmp=y({type:w0,selectors:[["onedev-numeric-field"]],viewQuery:function(a,b){a&1&&hh(Gbd,7);if(a&2){var c;lh(c=mh())&&(b.popOver=c.first)}},inputs:{value:"value",disabled:"disabled",displayEditIcon:"displayEditIcon",labelledById:[0,"aria-labelledby","labelledById"],openPopOverOnInit:"openPopOverOnInit",valueTemplate:"valueTemplate",required:[1,"required"]},outputs:{valueChange:"valueChange"},standalone:!1,features:[Fh([{provide:Yx,useExisting:$d(function(){return w0}),multi:!0},{provide:gU,
useExisting:$d(function(){return w0}),multi:!0}]),Bg],decls:11,vars:7,consts:[["anchor",""],["standardValueDisplay",""],["popOver","onedevPopOverEditPanel"],["inputTemplate",""],["aria-label","Edit numeric field",3,"click","focus","blur","disabled"],[4,"ngIf","ngIfElse"],["class","edit-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",4,"ngIf"],[3,"closedWithAction","anchor","editorTemplate","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();J(0,"button",4,0);N("click",function(){u(c);return w(b.startEditing())})("focus",function(){u(c);return w(b.headerFocused=!0)})("blur",function(){u(c);return w(b.headerFocused=!1)});J(2,
"span");D(3,Pwb,2,4,"ng-container",5)(4,Qwb,1,1,"ng-template",null,1,Lh);K();D(6,Rwb,2,0,"svg",6);K();J(7,"onedev-pop-over-edit-panel",7,2);N("closedWithAction",function(f){u(c);return w(b.stopEditing(f))});K();D(9,Swb,1,3,"ng-template",null,3,Lh)}if(a&2){a=Q(1);var d=Q(5),e=Q(10);I("disabled",b.disabled);x(3);I("ngIf",b.valueTemplate)("ngIfElse",d);x(3);I("ngIf",!b.disabled&&b.displayEditIcon);x();I("anchor",a)("editorTemplate",e)("saveDisabled",b.isInvalid())}},dependencies:[Rv,Sv,Ui,my,dy,vy,hU,
py],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 Zwb=function(){return[]},x0=function(){this.disabled=this.thinking=!1;this.effortChange=new LE;this.isCompatibleValue=!0;this.fieldName="";this.fieldType="UNKNOWN";this.isNaN=isNaN};
x0.prototype.ngOnChanges=function(){if(this.getFieldType()==="DROPDOWN"){var a;this.effortSpec&&(a=this.effortSpec.enumSpec)!=null&&a.options&&this.effort&&this.effort.estimate?(a=Hbd(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=Ibd(this)};x0.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=Ibd(this);this.effortChange.emit(this.effort)};x0.prototype.getFieldName=function(){return this.effortSpec?this.effortSpec.name||"":this.effort?"Estimate "+this.effort.specId:"Estimate"};
x0.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 Ibd=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"&&Hbd(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},Hbd=function(a){var b;if((b=a.effort)==null?0:b.estimate){var c,d,e,f;return(f=(c=a.effortSpec)==null?void 0:(d=c.enumSpec)==null?void 0:(e=d.options)==null?
void 0:e.find(function(h){var k;return h.label===((k=a.effort)==null?void 0:k.estimate)}))!=null?f:"incompatible"}};x0.\u0275fac=function(a){return new (a||x0)};
x0.\u0275cmp=y({type:x0,selectors:[["b-estimated-effort-row"]],inputs:{thinking:"thinking",effort:"effort",effortSpec:"effortSpec",disabled:"disabled"},outputs:{effortChange:"effortChange"},standalone:!1,features:[ov],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,bxb,15,5,"onedev-edit-field"),D(1,exb,2,1,"ng-template",null,0,Lh));a&2&&G(b.effortSpec?0:-1)},dependencies:[FC,oU,pU,qU,BU,w0,DI,JI],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 y0=function(){this.staffingDialogService=r(M_);this.tooltipText=this.staffingSummary=this.staffingPlaceholderSummary=this.staffingUserSummary=""};
y0.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 Bl(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"?Kl[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 Jbd=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)};y0.\u0275fac=function(a){return new (a||y0)};
y0.\u0275cmp=y({type:y0,selectors:[["b-staffing-row"]],inputs:{staffing:"staffing",issueId:"issueId",isAllowedToEdit:"isAllowedToEdit"},standalone:!1,features:[ov],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();J(0,"div")(1,"div",2)(2,"div",3);N("keydown.enter",function(){u(c);return w(Jbd(b))})("keyup.space",
function(){u(c);return w(Jbd(b))})("keydown.space",function(d){u(c);return w(d.preventDefault())});J(3,"div",4)(4,"label");R(5," Staffing ");K()();J(6,"div",5,0);N("click",function(){u(c);return w(Jbd(b))});J(8,"div",6);F(9,fxb,1,0)(10,gxb,4,2);K();J(11,"div",7);M(12,"mat-icon",8);K()()()();J(13,"onedev-hovercard",null,1)(15,"div",9)(16,"div",10)(17,"div");R(18," Use the Staffing field to represent planned contributors on this issue. ");K();M(19,"br");J(20,"div");R(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. ");
K();M(22,"br");J(23,"a",11);R(24," Learn more ");K()()()()()}a&2&&(a=Q(14),x(2),Lg("aria-label","Staffing: "+b.staffingSummary)("aria-disabled",!1),x(),I("onedevHovercardTrigger",a),x(3),I("matTooltip",Ch(b.tooltipText)),x(3),G(b.staffingUserSummary||b.staffingPlaceholderSummary?10:9))},dependencies:[FC,zG,xG,DI,JI],styles:[".staffing-summaries[_ngcontent-%COMP%]{flex-direction:column}/*# sourceMappingURL=staffing_row.css.map */"],changeDetection:0});var z0=function(){Z.apply(this,arguments);var a=this;this.session=r(Bs);this.userPreferencesManager=r(iG);this.sloStatusHelpersService=r(HK);this.paths=r(oN);this.sloFridge=r(MF);this.userToDisplayString=wj;this.onSloStartTimeChange=new LE;this.onSloEndTimeChange=new LE;this.showInternalOnlyFieldBadge=!1;this.providedSloId$=new sg(1);this.slo$=this.providedSloId$.pipe(xg(function(b){return a.sloFridge.watch(b)}));this.hasClosureSlo=this.isSloEndEditTimePickerOpen=this.isSloStartEditTimePickerOpen=
this.enableEscalationOwnerRolloutUi=this.enableSloEndTime=this.hasSloEndTime=this.hasSloStartTime=this.isAccordionExpanded=!1};Y(z0,Z);z0.\u0275dir=Z.\u0275dir;z0.prototype.ngOnInit=function(){var a=this;Kbd(this);this.userPreferencesManager.layoutPreferences$.pipe(yg(this.destroyed$)).subscribe(function(b){a.isAccordionExpanded=!!b.expandIssueSlo})};z0.prototype.ngOnChanges=function(){this.sloId&&this.providedSloId$.next(this.sloId);Kbd(this)};
var Kbd=function(a){a.hasSlo=!!a.sloStatus&&iMc(a.sloStatus);a.hasClosureSlo=a.hasSlo&&jMc(a.sloStatus,"CLOSURE");a.enableSloEndTime=OA(a.session,"enableSloEndTime");a.enableEscalationOwnerRolloutUi=OA(a.session,"enableEscalationOwnerRolloutUi");var b,c;(c=a.sloStatus)?(c=c.closureBounds,c=IK(Pj(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=Dq.editSlo.makeHref(a.sloId):a.editSloLink=void 0;a.componentId?a.componentSloLink=Dq.editComponent.makeHref(a.componentId):a.componentSloLink=void 0},Lbd=function(a){a.isAccordionExpanded=!a.isAccordionExpanded;xzc(a.userPreferencesManager,{expandIssueSlo:a.isAccordionExpanded}).pipe(yg(a.destroyed$)).subscribe();Fo("issueSlo","toggle",a.isAccordionExpanded?"open":"close")};z0.prototype.updateSloStartTime=function(a){this.onSloStartTimeChange.next(a)};
z0.prototype.updateSloEndTime=function(a){this.onSloEndTimeChange.next(a)};z0.prototype.trackOpenSlo=function(){Fo("editSlo","open","fromIssueSloBox")};z0.\u0275fac=function(){var a;return function(b){return(a||(a=Re(z0)))(b||z0)}}();
z0.\u0275cmp=y({type:z0,selectors:[["b-issue-slo-box"]],inputs:{sloId:"sloId",componentId:"componentId",sloStatus:"sloStatus",sloStartTime:"sloStartTime",sloEndTime:"sloEndTime",isEditable:"isEditable",issueCreationTimestamp:"issueCreationTimestamp",showInternalOnlyFieldBadge:"showInternalOnlyFieldBadge",escalationOwner:"escalationOwner"},outputs:{onSloStartTimeChange:"onSloStartTimeChange",onSloEndTimeChange:"onSloEndTimeChange"},standalone:!1,features:[Bg,ov],decls:20,vars:22,consts:[["trigger",
"cdkOverlayOrigin"],["canonicalHovercard","onedevHovercard"],[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"],[1,"slo-action"],["href","http://go/buganizer/guides/defer-slos","target","_blank","aria-label","View help page on deferring slos","matTooltip","View help page on deferring slos",
1,"clear-link"],[1,"slo-edit"],["role","button","tabindex","0","aria-label","Modify the slo start date value","matTooltip","Modify the slo start date value","cdkOverlayOrigin","",1,"bv2-metadata-link",3,"keydown.enter","keydown.space","click"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen"],["mode","datetime",3,"timestamp"],[3,"closePicker","sloEditCommit","sloStatus","sloEditTime","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"],["id","escalation-owner-label",3,"onedevHovercardTrigger"],[1,"onedev-hovercard-content"],["href","https://goto.google.com/b-slo-attribution","target","_blank"],[3,"user","email","enableSmallChip"],["aria-label","Navigate to the applied slo page","matTooltip","Navigate to the applied slo page",1,"slo-link","bv2-metadata-link","slo-definition"],["aria-label","Navigate to the applied slo page",
"matTooltip","Navigate to the applied slo page",1,"slo-link","bv2-metadata-link","slo-definition",3,"click"],["aria-label","Open page to select an slo","matTooltip","Open page to select an slo",1,"bv2-metadata-link","bv2-metadata-tool","slo-definition",3,"click"]],template:function(a,b){a&1&&(J(0,"div",2)(1,"span",3),N("click",function(){return Lbd(b)}),J(2,"label"),R(3,"SLO Status"),K(),F(4,hxb,1,0,"mat-icon",4),K(),J(5,"div",5)(6,"div",6)(7,"div",7),M(8,"b-aggregated-slo-status-indicator",8),K(),
J(9,"div",7),M(10,"b-slo-status-summary",9),K(),J(11,"button",10),N("click",function(){return Lbd(b)}),F(12,ixb,1,0,"mat-icon",11)(13,jxb,1,0,"mat-icon",12),K()(),J(14,"div",13),F(15,nxb,9,3,"div",14),F(16,sxb,10,5,"div",15),F(17,vxb,12,2,"div",16),F(18,xxb,4,3,"div",17),F(19,yxb,3,1,"div",17),K()()());a&2&&(uh("internal-only",b.showInternalOnlyFieldBadge),x(4),G(b.showInternalOnlyFieldBadge?4:-1),x(3),I("hidden",b.isAccordionExpanded),x(),I("sloStatus",b.sloStatus)("sloStartTime",b.sloStartTime)("sloEndTime",
b.sloEndTime)("includeSloMetric",!0)("includeObjective",!0),x(),I("hidden",!b.isAccordionExpanded),x(),I("sloStatus",b.sloStatus)("sloStartTime",b.sloStartTime)("sloEndTime",b.sloEndTime)("includeNoSlo",!0),x(),Lg("aria-expanded",b.isAccordionExpanded),x(),G(b.isAccordionExpanded?12:13),x(2),I("hidden",!b.isAccordionExpanded),x(),G(b.isEditable?15:-1),x(),G(b.enableSloEndTime&&b.isEditable?16:-1),x(),G(b.enableEscalationOwnerRolloutUi?17:-1),x(),G(b.editSloLink?18:-1),x(),G(!b.editSloLink&&b.componentSloLink?
19:-1))},dependencies:[FC,zG,xG,oG,Kx,DI,JI,f0,EL,V_,p_,nx,mx,fL,Tv],styles:["[_nghost-%COMP%]{align-items:baseline}[_nghost-%COMP%]:focus{outline:0}.slo-container[_ngcontent-%COMP%]{padding-bottom:8px}.internal-only[_ngcontent-%COMP%]{display:flex;flex-direction:column;border-radius:2%;margin:0 5px;background-color:#f4f5f6;background-color:var(--tonal-fill-grey)}.internal-only[_ngcontent-%COMP%]   .issue-slo-box-title[_ngcontent-%COMP%]{margin:0 14px}.internal-only[_ngcontent-%COMP%]   .issue-slo-box-title[_ngcontent-%COMP%]   .internal-only-badge[_ngcontent-%COMP%]{display:inline-block;color:#188038;color:var(--good-bg-inverse);transform:translate(5px, 5px)}.internal-only[_ngcontent-%COMP%]   .slo-body[_ngcontent-%COMP%]{margin:5 14px}[_nghost-%COMP%]:hover   .slo-body[_ngcontent-%COMP%]{box-shadow:0 0 0 1px #d2e3fc;box-shadow:0 0 0 1px var(--primary-c100);border-radius:4px}.internal-only[_ngcontent-%COMP%]:hover   .slo-body[_ngcontent-%COMP%]{box-shadow:0 0 0 1px #9aa0a6;box-shadow:0 0 0 1px var(--c500)}[_nghost-%COMP%]:focus   .slo-body[_ngcontent-%COMP%], [_nghost-%COMP%]:focus-within   .slo-body[_ngcontent-%COMP%]{box-shadow:0 0 0 1px #1a73e8;box-shadow:0 0 0 1px var(--primary);border-radius:4px}[_nghost-%COMP%]:focus   .issue-slo-box-title[_ngcontent-%COMP%], [_nghost-%COMP%]:focus-within   .issue-slo-box-title[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.internal-only[_ngcontent-%COMP%]:focus   .slo-body[_ngcontent-%COMP%]{box-shadow:0 0 0 1px #9aa0a6;box-shadow:0 0 0 1px var(--c500)}.issue-slo-box-title[_ngcontent-%COMP%]{font-family:Roboto,Arial,sans-serif;line-height:1rem;font-size:.75rem;letter-spacing:.025em;font-weight:400;font-weight:500;margin:0 16px;flex:0 0 23%;min-width:80px;max-width:120px;padding-right:10px;color:#5f6368;color:var(--text-muted)}.slo-body[_ngcontent-%COMP%]{display:inline-block;margin:0 14px;padding:8px 0 8px 4px;width:-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 Mbd={MISSING:"MISSING",DELETED:"DELETED",VALID:"VALID"};var A0=function(){Z.call(this);var a=this;this.data=r(QJ);this.dialogRef=r(KJ);this.teamsService=r(SF);this.componentActions=r(WM);this.userPreferencesManager=r(iG);this.snackBar=r(DJ);this.analytics=r(RE);this.errorHandler=r(aK);this.componentFridge=r(BB);this.warningType=this.data.warningType;this.componentId=this.data.componentId;this.parentComponentId=this.data.parentComponentId;this.teamSuggestionIds=this.data.teamSuggestionIds;this.header="";this.suggestedTeams$=gzc(this.teamsService,this.teamSuggestionIds).pipe(C(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 Nbd(e,f.collapsedPathNames))}return c}),wg([]));this.myTeams$=VF(this.teamsService,"").pipe(C(function(b){return b.map(function(c){return new Nbd(c.teamId,c.pathNames)})}));this.teamOptions=[];this.selectedTeam=new Nbd(this.teamSuggestionIds[0]||"0",[]);this.teamAction="CHANGE";this.componentSetting=Dq.editComponent.makeHref(this.componentId);this.WarningType=Mbd;Uf([this.suggestedTeams$,this.myTeams$]).pipe(C(function(b){var c=
l(b);b=c.next().value;c=c.next().value;return[].concat(p(b),p(c))}),C(Fsa(function(b){return b.teamId})),yg(this.destroyed$)).subscribe(function(b){a.teamOptions=b;a.selectedTeam=b[0]})};Y(A0,Z);A0.\u0275dir=Z.\u0275dir;A0.prototype.ngOnInit=function(){this.warningType==="MISSING"?this.header="Add team to the component":this.warningType==="DELETED"&&(this.header="Change team mapping for this component")};
A0.prototype.confirm=function(){var a=this,b,c,d,e,f;return z(function(h){if(h.nextAddress==1){if(a.teamAction==="CHANGE")return a.parentComponentId?B(h,a.componentActions.get(a.parentComponentId),6):(Obd(a,"0",a.selectedTeam.teamId),h.jumpTo(0));b=hj;return B(h,Rf(a.userPreferencesManager.teamWarningPreferences$),4)}if(h.nextAddress!=6)return c=b(h.yieldResult),d=new Date,c.componentTeamWarnings.push({componentId:a.componentId,dismissMillis:d.getTime()}),Dzc(a.userPreferencesManager,c).pipe(yg(a.destroyed$)).subscribe(function(){a.analytics.trackEvent("teamWarning",
"dismiss","componentId",Number(a.componentId));var k;(k=a.dialogRef)==null||k.close()},function(){}),h.jumpTo(0);e=h.yieldResult;Obd(a,((f=e.team)==null?void 0:f.id)||"0",a.selectedTeam.teamId);Lf(h)})};
var Obd=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)})};A0.prototype.selectOption=function(a){this.selectedTeam=a};
A0.prototype.trackClick=function(a){this.analytics.trackEvent("teamWarning","click",a)};A0.prototype.getMomaTeamLink=function(){return"https://moma.corp.google.com/team/"+this.selectedTeam.teamId};A0.\u0275fac=function(a){return new (a||A0)};
A0.\u0275cmp=y({type:A0,selectors:[["b-team-warning-dialog"]],standalone:!1,features:[Bg],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();J(0,"h1",2);R(1);K();F(2,Bxb,13,3,"div",3);F(3,Dxb,6,2,"div",3);D(4,Ixb,1,1,"ng-template",null,0,Lh);J(6,"mat-dialog-actions")(7,"button",4);R(8," Cancel ");K();J(9,
"button",5);N("click",function(){u(c);return w(b.confirm())});R(10," Confirm ");K()()}a&2&&(x(),wh(b.header),x(),G(b.warningType===b.WarningType.MISSING?2:-1),x(),G(b.warningType===b.WarningType.DELETED?3:-1))},dependencies:[Sv,FC,dy,ky,oG,Jx,Kx,SJ,UJ,WJ,VJ,jN,kN,zG,xG,BU],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 Nbd=function(a,b){this.teamId=a;this.teamPath=b.join(" > ")};var B0=function(){Z.apply(this,arguments);this.matDialogService=r(RJ);this.analytics=r(RE);this.teamSuggestions=[];this.messageOnly=!1;this.updateTeam=new LE};Y(B0,Z);B0.\u0275dir=Z.\u0275dir;B0.prototype.ngOnInit=function(){};B0.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")};
B0.prototype.openDialog=function(){var a=this;this.analytics.trackEvent("teamWarning","open");LJ(this.matDialogService.open(A0,{width:"580px",data:{warningType:this.warningType,componentId:this.componentId,parentComponentId:this.parentComponentId,teamSuggestionIds:this.teamSuggestions.map(function(b){return String(b.teamId)})}})).pipe(yg(this.destroyed$)).subscribe(function(b){b&&a.updateTeam.emit(b)})};B0.\u0275fac=function(){var a;return function(b){return(a||(a=Re(B0)))(b||B0)}}();
B0.\u0275cmp=y({type:B0,selectors:[["b-team-warning"]],inputs:{warningType:"warningType",componentId:"componentId",parentComponentId:"parentComponentId",teamSuggestions:"teamSuggestions",messageOnly:"messageOnly"},outputs:{updateTeam:"updateTeam"},standalone:!1,features:[Bg,ov],decls:4,vars:2,consts:[["messageType","caution","format","app"],["format","fill","mat-button","",3,"click"]],template:function(a,b){a&1&&(J(0,"b-callout",0)(1,"b-callout-body"),R(2),K(),F(3,Jxb,3,1,"b-callout-actions"),K());
a&2&&(x(2),T(" ",b.warningMessage," "),x(),G(b.messageOnly?-1:3))},dependencies:[AG,WO,XO],encapsulation:2});var Pxb=function(){return[]},Mxb=function(a){return[a]},jyb=function(a){return{$implicit:a}},Syb=function(a){return{customFieldId:a}},C0=function(){var a=this;this.activeSession=r(Bs);this.editIssueService=r(RK);this.issueService=r(cE);this.issueFullFridge=r(TE);this.issuePermissionService=r(OK);this.issueDetailsBrain=r(MK);this.constants=r(dK);this.refreshMonitor=r(gE);this.userPreferencesManager=r(iG);this.documentationLinks=r(JJ);this.workspaceService=r(v0);this.changelistApi=r(mB);this.issueMarkAsDuplicateDialogService=
r($R);this.analytics=r(RE);this.issueLimits=r(dS);this.jspbPrincipalTypes=r(EF);this.issueId$=new sg(1);this.distinctIssueId$=this.issueId$.pipe(og());this.issue$=this.distinctIssueId$.pipe(xg(function(b){return a.editIssueService.editableIssue$(b)}));this.enableTriageView=OA(this.activeSession,"enableTeamScope")&&this.activeSession.isInternalSession();this.enablePeoplekitAc=OA(this.activeSession,"enablePeoplekitUserAc");this.isGerritEnabled=OA(this.activeSession,"enableGerritChanges");this.sessionIsInternal=
this.activeSession.isInternalSession();this.sessionIsExternal=this.activeSession.isExternalSession();this.defaultAssigneeQuickActionEnabled=this.showSloStatus=this.sessionIsInternal;this.showCodeChanges=!this.sessionIsExternal||this.isGerritEnabled;this.HOTKEYS=sp;this.trackCustomField=function(b,c){return"{"+c.componentId+", "+c.customFieldId+"}"};this.FieldType=CL;this.ListFieldType=GPc;this.IssueFieldName=xoc;this.codeChangesValidator=Rwa;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(C(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(C(zxb));
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(xg(function(b){return hvc(a.issueService,b)}),C(function(b){var c,d;return(d=(c=b.triage)==null?void 0:c.phase)!=null?d:"UNSPECIFIED"}));this.triagePhaseUrl$=Uf([this.teamId$,this.triagePhase$]).pipe(C(function(b){var c=l(b);b=c.next().value;(c=c.next().value)&&
c!=="UNSPECIFIED"||(c="NEW");return Dq.viewTriage.makeHref(b!=null?b:0,0,Nr[c])}));this.issueFields$=this.distinctIssueId$.pipe(C(function(b){return a.editIssueService.issueFields(b)}),ug({refCount:!0,bufferSize:1}));this.isForgottenFourPrimary$=this.issueFields$.pipe(xg(function(b){return b.isForgottenFourPrimary$}));this.showHiddenFieldsLabel$=this.issueFields$.pipe(xg(function(b){return b.showHiddenFieldsLabel$}));this.hasHiddenFields$=this.issueFields$.pipe(xg(function(b){return b.hasHiddenFields$}));
this.isChangelistPrimary$=this.issueFields$.pipe(xg(function(b){return b.isChangelistPrimary$}));this.isSeverityPrimary$=this.issueFields$.pipe(xg(function(b){return b.isSeverityPrimary$}));this.isSloStatusPrimary$=this.issueFields$.pipe(xg(function(b){return b.isSloStatusPrimary$}));this.hiddenCustomFields$=this.issueFields$.pipe(xg(function(b){return b.hiddenCustomFields$}));this.visibleCustomFields$=this.issueFields$.pipe(xg(function(b){return b.visibleCustomFields$}));this.issueQuickActions$=
this.distinctIssueId$.pipe(C(function(b){return a.editIssueService.issueQuickActions(b)}),ug({refCount:!0,bufferSize:1}));this.issueAssigneeQuickAction$=this.issueQuickActions$.pipe(xg(function(b){return b.issueAssigneeQuickAction$}));this.issueStatusQuickAction$=this.issueQuickActions$.pipe(xg(function(b){return b.issueStatusQuickAction$}));this.trackerId$=this.component$.pipe(C(function(b){return b==null?void 0:b.trackerId}));this.priorityChoices=this.constants.priorities.map(function(b){return{value:b,
displayText:b,hotkey:lKa(b)}});this.severityChoices=this.constants.severities.map(function(b){return{value:b,displayText:b}});this.typeChoices=this.constants.editIssueTypeChoices;this.phaseChoices=Object.values(koc).map(function(b){return{value:b,displayText:lr.get(b)}});this.teamHovercardInputs$=Uf([this.issueDetailsBrain.componentId$,this.teamId$]).pipe(C(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$=Uf([this.issue$,
this.userPreferencesManager.preferences$]).pipe(C(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(C(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$=Uf([this.issuePermissionService.userIsComponentAdmin$,
this.isTeamWarningDismissed$,this.teamWarningType$,this.isPersonalComponent$]).pipe(C(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(C(function(b){return a.enableTriageView&&b!=="0"}));this.statusChoices$=this.canonicalIssueId$.pipe(C(function(b){return[].concat(p(Roc.filter(function(c){return c.value!=="DUPLICATE"})),[{value:"DUPLICATE",displayText:b?
"Duplicate of "+b:"Duplicate"}])}),C(function(b){return b.map(function(c){return Object.assign({},c,{hotkey:mKa(c.value)})})}));this.workspaces$=lvc(this.refreshMonitor,this.distinctIssueId$).pipe(xg(function(b){return Fbd(a.workspaceService,b)}),ug({refCount:!0,bufferSize:1}));this.pendingChangelists$=lvc(this.refreshMonitor,this.distinctIssueId$).pipe(xg(function(b){return a.changelistApi.getPendingChangelistsForIssue(b)}),C(function(b){return b.changelistNumbers.map(String)}),C(function(b){return{cls:b,
hasError:!1}}),hg(function(){return Nf({cls:[],hasError:!0})}),ug({refCount:!0,bufferSize:1}));this.pendingCodeChanges$=this.issue$.pipe(xg(function(b){return a.activeSession.isExternalSession()?Nf({issue:b,changelists:{cls:[],hasError:!1}}):a.pendingChangelists$.pipe(C(function(c){return{issue:b,changelists:c}}))}),C(function(b){var c=b.issue;b=b.changelists;c=aKc(c);return{changes:[].concat(p(b.cls),p(c)),hasError:b.hasError}}));this.USER_FIELD_HOVERCARD_CONFIG=Object.assign({},new GI,{position:[MHc]});
this.ACCESS_LIMITS_HOVERCARD_CONFIG=Object.assign({},new GI,{position:[{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-30}]});this.issueIsOnInternalComponent$=this.component$.pipe(C(function(b){var c;return(b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel)==="INTERNAL"}));this.shouldDisplayEffort$=this.issueIsOnInternalComponent$.pipe(C(function(b){return a.sessionIsInternal&&b||OA(a.activeSession,"enableEstimatedEffortExternalUi")}));this.collaboratorUserPrincipalValidator=
function(b){var c,d,e;return z(function(f){if(f.nextAddress==1){if(!b)return f.return("This field is required");c=b.split(",").map(function(h){return h.trim()}).filter(Boolean);return B(f,Myc(a.jspbPrincipalTypes,c,!1),2)}d=f.yieldResult;e=c.find(function(h){var k;return((k=d[h])==null?void 0:k.principalType)!=="USER"});return f.return(e?"You can only add users to collaborators.":"")})};this.reconcileView={assignee:function(b){var c,d;b.value=(d=(c=hp(a.issue$))==null?void 0:c.assignee)!=null?d:""},
reporter:function(b){var c,d;b.value=(d=(c=hp(a.issue$))==null?void 0:c.reporter)!=null?d:""},verifier:function(b){var c,d;b.value=(d=(c=hp(a.issue$))==null?void 0:c.verifier)!=null?d:""},ccs:function(b){var c,d;b.values=(d=(c=hp(a.issue$))==null?void 0:c.cc)!=null?d:[]},collaborators:function(b){var c,d;b.values=(d=(c=hp(a.issue$))==null?void 0:c.collaborators)!=null?d:[]},issueType:function(b){var c,d;b.value=(d=(c=hp(a.issue$))==null?void 0:c.type)!=null?d:null}}};C0.prototype.ngOnChanges=function(){this.issueId$.next(this.issueId)};
var dzb=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!NK(a.issuePermissionService,e)}):[].concat(p(c.cc),[a.activeSession.getUserEmail()]);return OMc(a.editIssueService,a.issueId,d)};
C0.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!NK(a.issuePermissionService,e)}):[].concat(p(c.collaborators),[this.activeSession.getUserEmail()]);return PMc(this.editIssueService,this.issueId,d)};
C0.prototype.toggleAccessLimits=function(){var a=this,b;return z(function(c){if(c.nextAddress==1)return a.issueLimits.isOpen()?c.return():B(c,Rf(a.issueDetailsBrain.componentId$),2);b=c.yieldResult;if(!b)return c.return();a.issueLimits.open({componentId:b,issueId:a.issueId});Lf(c)})};C0.prototype.toggleAccessLimitsWithKeystroke=function(a){this.toggleAccessLimits();a.stopPropagation();a.preventDefault()};
var Zyb=function(a,b){return $yb(a.editIssueService,a.issueId,b.newEmail).finally(function(){a.reconcileView.assignee(b.editField)})},Uyb=function(a,b){return z(function(c){return c.return(Vyb(a.editIssueService,a.issueId,b.newEmail).finally(function(){a.reconcileView.reporter(b.editField)}))})},azb=function(a,b){return z(function(c){return c.return(bzb(a.editIssueService,a.issueId,b.newEmail).finally(function(){a.reconcileView.verifier(b.editField)}))})},ezb=function(a,b){return z(function(c){return c.return(OMc(a.editIssueService,
a.issueId,b.newUsers).finally(function(){b.editField&&a.reconcileView.ccs(b.editField)}))})},czb=function(a,b){return z(function(c){return c.return(PMc(a.editIssueService,a.issueId,b.newUsers).finally(function(){b.editField&&a.reconcileView.collaborators(b.editField)}))})},Wyb=function(a,b,c){var d;return z(function(e){if(e.nextAddress==1)return B(e,Rf(a.trackerId$),2);d=e.yieldResult;return e.return(IMc(a.editIssueService,a.issueId,c,d).finally(function(){a.reconcileView.issueType(b)}))})},es=function(a,
b){a.analytics.trackEvent("editIssue","quickAction (sidebar)",b==null?void 0:b.displayText);return MMc(a.editIssueService,a.issueId,b)},Yyb=function(a,b){var c;return z(function(d){if(d.nextAddress==1){a:switch(b){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=b;break a;default:e=null}return(c=e)?c!=="DUPLICATE"?d.jumpTo(2):B(d,PXc(a.issueMarkAsDuplicateDialogService,
a.issueId),3):d.return()}if(d.nextAddress!=2)return d.return();Uwc(a.analytics,c);return d.return(LMc(a.editIssueService,a.issueId,c))})};C0.prototype.isSaving$=function(a){var b=this;return this.distinctIssueId$.pipe(C(function(c){return b.editIssueService.savingState(c)}),xg(function(c){return CMc(c,a)}))};C0.prototype.getAccessLimitLevelDisplay=function(a){return S1a(a)};C0.\u0275fac=function(a){return new (a||C0)};
C0.\u0275cmp=y({type:C0,selectors:[["edit-issue-metadata"]],inputs:{issueId:"issueId"},standalone:!1,features:[ov],decls:2,vars:3,consts:[["typeField",""],["priorityField",""],["statusField",""],["canonicalHovercard","onedevHovercard"],["ialCard","onedevHovercard"],["assigneeField",""],["sloField",""],["severityField",""],["codeChangesFields",""],["foundInField",""],["targetedToField",""],["verifiedInField",""],["inProdField",""],["forgottenFourFields",""],["customFieldTemplate",""],["phaseField",
""],["canonicalCardBody",""],["implicitAccessHelpBubble",""],[3,"valueChange","emailChange","name","title","value","user","isSaving"],[3,"valueChange","name","title","type","value","choices","readonly","disabled"],[1,"flex-wrappable","flex-kids-y"],[1,"flex-1",3,"onHotkey","valueChange","name","title","type","tooltip","value","choices","hotkey","readonly","disabled","showHotkeyHint"],[1,"status-field-row"],[3,"onHotkey","valueChange","name","title","type","value","choices","showHotkeyHint","hotkey",
"readonly","disabled","onedevHovercardActive","onedevHovercardTrigger"],[1,"phase-field-row"],[3,"onedevIsHovercardReady","issueId",4,"onedevHovercardLazyBody"],[3,"effort","effortSpec","disabled"],[1,"bv2-issue-metadata-field"],["tabindex","0",1,"bv2-issue-metadata-field-inner","bv2-readonly",3,"onedevHovercardTrigger","onedevHovercardActive","onedevHovercardConfig"],[1,"bv2-editable-title","access-level-title"],[1,"bv2-editable-value","access-level-info"],[1,"access-level-current-val"],["tabindex",
"0","role","button",1,"bv2-metadata-tool","bv2-metadata-link",3,"click","keydown.enter","keydown.space","matTooltip"],[1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"hovertext"],["mat-button","","target","_blank","aria-label","Learn more about issue access limits",1,"primary","bv2-metadata-link","keep-focus-ring",3,"href"],[1,"flex-kids-y"],[1,"implicit-access-header","flex-kids-x","flex-cross-axis-centered","flex-spread","full-width"],[1,"flex-1",3,"onHotkey","valueChange","emailChange",
"name","title","hotkey","value","user","isSaving"],[1,"flex-1",3,"valueChange","emailChange","name","title","value","user","isSaving"],[3,"userInclusionToggle","valueChange","toggleAccessLimits","title","values","users","includeSelfActionDescription","includeSelfActionLongDescription","removeSelfActionDescription","removeSelfActionLongDescription","collectionHovercardDescription","isSaving","isCurrentUserInCollection","isAllowedToEditCollection","iconName","inputValidator","checkAccessLimits"],[3,
"userInclusionToggle","valueChange","title","values","users","includeSelfActionDescription","includeSelfActionLongDescription","removeSelfActionDescription","removeSelfActionLongDescription","collectionHovercardDescription","isSaving","isCurrentUserInCollection","isAllowedToEditCollection","iconName"],[3,"staffing","issueId","isAllowedToEdit"],[3,"readonly","defaultLineCount","title","type","values","tooltip"],[1,"hidden-fields-separator"],[3,"titleWhenCollapsed","titleWhenExpanded"],[4,"ngTemplateOutlet"],
[1,"issue-metadata-field-long",3,"readonly","defaultLineCount","title","type","values","showInternalOnlyFieldBadge"],[1,"issue-metadata-field-short"],[3,"updateTeam","warningType","componentId","parentComponentId","teamSuggestions"],[1,"bv2-metadata-quick-action"],[1,"bv2-field-label-spacer"],["tabindex","0","role","button",1,"bv2-metadata-link",3,"click","keydown.enter","keydown.space","matTooltip"],["tooltip","Go to triage view",3,"name","title","type","value","choices","showHotkeyHint","disabled"],
["matTooltip","Go to triage view",1,"bv2-metadata-link",3,"href"],[3,"onedevIsHovercardReady","issueId"],[3,"effortChange","effort","effortSpec","disabled"],[1,"implicit-access-header-text"],[3,"panelTemplate"],["svgIcon","help-outline",1,"icon-s"],["target","_blank",3,"href"],["tabindex","0","role","button",1,"bv2-metadata-quick-action",3,"hotkey","matTooltip"],["tabindex","0","role","button",1,"bv2-metadata-quick-action",3,"onHotkey","click","keydown.enter","keydown.space","hotkey","matTooltip"],
[1,"bv2-metadata-link",3,"disabled"],[1,"bv2-metadata-link"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"refreshable"],["tabindex","0",1,"issue-metadata-field-long",3,"onSloStartTimeChange","onSloEndTimeChange","sloStatus","sloStartTime","sloEndTime","sloId","componentId","isEditable","issueCreationTimestamp","showInternalOnlyFieldBadge","escalationOwner"],[1,"flex-1",3,"valueChange","name","title","type","tooltip","value","choices","readonly","disabled"],[3,"valuesChange","readonly","defaultLineCount",
"title","inputValidator","type","values","listFieldDisabled"],[1,"issue-metadata-field-short","issue-metadata-field-short-left",3,"valueChange","name","title","type","multiline","tooltip","value","readonly","disabled"],[3,"valueChange","name","title","type","multiline","tooltip","value","readonly","disabled"],[3,"valueChange","name","title","type","value","tooltip","readonly","disabled"],[3,"save","issue","field","readonly","disabled"]],template:function(a,b){a&1&&(F(0,fzb,113,177),U(1,"async"));
if(a&2){var c;G((c=V(1,1,b.issue$))?0:-1,c)}},dependencies:[rM,Sv,FC,DU,BL,x0,y0,RG,DI,EI,JI,FI,PO,z0,OM,zG,xG,TG,B0,RM,BM,rU,VV,rNc,Tv],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 Pbd=["descriptionArea"],Qbd=["container"],D0=function(){Z.call(this);var a=this;this.cdr=r(NE,{self:!0});this.issueFullFridge=r(TE);this.eventsForIssueFridge=r(TD);this.editStatusUpdateDialogService=r(k0);this.statusUpdateService=r(j0);this.issueCommentDialogsService=r(ZR);this.contextSensitiveRegistry=r(LK);this.issuePermissionService=r(OK);this.clipboard=r(aO);this.snackBar=r(DJ);this.llmIssueSummaryService=r(DT);this.analytics=r(RE);this.userFeedback=r(rS);this.activeSession=r(Bs);this.closeSidebar=
new LE;this.navigateToNextIssue=new LE;this.navigateToPreviousIssue=new LE;this.issueId$=new sg(1);this.issue$=this.issueId$.pipe(yg(this.destroyed$),xg(function(b){return a.issueFullFridge.watch(b)}),ug({bufferSize:1,refCount:!0}));this.componentId$=this.issue$.pipe(C(function(b){return(b==null?void 0:b.snapshot[0].componentId)||void 0}));this.accessLevel$=this.issue$.pipe(C(function(b){var c;return b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel}));this.events$=this.issueId$.pipe(yg(this.destroyed$),
xg(function(b){return a.eventsForIssueFridge.watch(b)}),C(function(b){return(b==null?void 0:b.events)||[]}));this.firstEvent$=this.events$.pipe(C(function(b){return b.length>0?b[0]:void 0}));this.statusUpdate$=this.issue$.pipe(C(function(b){return b==null?void 0:b.statusUpdate}));this.statusUpdateNote$=this.statusUpdate$.pipe(eg(Qj),C(function(b){return{unlinkifiedComment:b.updateText,formattedComment:b.formattedText}}));this.userCanEditStatusUpdate$=this.issuePermissionService.hasAclToEdit$;this.hasStatusUpdate$=
this.statusUpdate$.pipe(C(function(b){return!!b&&b.updateText!==""}));this.firstNote$=this.events$.pipe(yg(this.destroyed$),C(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}}),ug({bufferSize:1,refCount:!0}));this.userCanEditDescription$=this.firstEvent$.pipe(xg(function(b){return b?a.issuePermissionService.canEditComment$(b):Nf(!1)}));this.hasDescription$=
this.events$.pipe(yg(this.destroyed$),C(function(b){return b&&b.length>0&&Sva(b[0])}));this.isFieldsExpanded=this.isDescriptionExpanded=this.isStatusUpdateExpanded=!0;this.editTitleMode=this.isSavingTitle=!1;this.draftTitle="";this.FormattingMode=Uj;this.descriptionHasMore=!0;this.showFullDescription=!1;this.HIDDEN="HIDDEN";this.BUTTON="BUTTON";this.GENERATING="GENERATING";this.SUMMARY_VISIBLE="SUMMARY_VISIBLE";this.enableIssueSummarizationNoButton=this.llmIssueSummaryService.enableNoButton;this.summaryThumbsDown=
this.summaryThumbsUp=this.hasRatedSummary=this.isIssueSummaryExpanded=!1;this.stage$=this.llmIssueSummaryService.stage$;this.issueSummary$=this.llmIssueSummaryService.summary$.pipe(eg(Qj),zg(function(b){b.summary&&a.llmIssueSummaryService.trackEvent("display","issueSidebar")}));this.containerScrolled=!1;this.destroyed$.subscribe(function(){kzb(a)});this.issueId$.pipe(yg(this.destroyed$)).subscribe(function(){kzb(a);a.hasRatedSummary=!1;a.summaryThumbsUp=!1;a.summaryThumbsDown=!1;a.showFullDescription=
!1});this.firstNote$.pipe(yg(this.destroyed$)).subscribe(function(){Rbd(a)})};Y(D0,Z);D0.\u0275dir=Z.\u0275dir;
D0.prototype.ngOnInit=function(){var a=this;this.stage$.pipe(yg(this.destroyed$)).subscribe(function(b){switch(b){case "HIDDEN":case "BUTTON":a.isIssueSummaryExpanded=!1;break;case "GENERATING":case "SUMMARY_VISIBLE":a.isIssueSummaryExpanded=!0;break;default:pb(b,"stage had an unknown type")}a.cdr.detectChanges()});this.llmIssueSummaryService.summarizable$.pipe(yg(this.destroyed$)).subscribe(function(b){b.isSummarizable&&a.llmIssueSummaryService.trackEvent("viewSummarizableIssue","issueSidebar")})};
D0.prototype.ngAfterViewInit=function(){var a=this;this.issueId$.pipe(yg(this.destroyed$)).subscribe(function(){a.container.nativeElement.scrollTop=0})};var Rbd=function(a){setTimeout(function(){var b;a.descriptionHasMore=((b=a.descriptionArea)==null?void 0:b.nativeElement.scrollHeight)>130;a.cdr.detectChanges()})};g=D0.prototype;g.copyIssueId=function(a){this.clipboard.copy(a);this.snackBar.open("IssueId copied","",{duration:2E3});this.analytics.trackEvent("issueSidebar","copyIssueId")};
g.generateIssueSummary=function(){this.analytics.trackEvent("issueSidebar","generateIssueSummary");this.llmIssueSummaryService.trackEvent("click","issueSidebar");K$a(this.llmIssueSummaryService)};g.trackThumbsUp=function(a){this.summaryThumbsUp=this.hasRatedSummary=!0;this.llmIssueSummaryService.trackThumbsUp(a,"issueSidebar")};g.trackThumbsDown=function(a){this.summaryThumbsDown=this.hasRatedSummary=!0;this.llmIssueSummaryService.trackThumbsDown(a,"issueSidebar")};
g.copySummary=function(a){if(a&&a.summary!==""){this.clipboard.copy(a.summary);this.snackBar.open("Issue summary copied to clipboard","",{duration:2E3});var b=this.llmIssueSummaryService;b.trackEvent("copy","issueSidebar");ET(b,a,"COPY")}};g.openFeedbackDialog=function(a){this.userFeedback.startFeedback();ET(this.llmIssueSummaryService,a,"FEEDBACK")};
g.editStatusUpdate=function(){var a=this,b,c,d,e,f,h,k,q;return z(function(v){switch(v.nextAddress){case 1:return B(v,Rf(a.issueId$),2);case 2:return b=v.yieldResult,B(v,Rf(a.componentId$),3);case 3:return c=v.yieldResult,d={issueId:b,updateText:"",version:-1},B(v,Rf(a.statusUpdate$),4);case 4:return f=(e=v.yieldResult)!=null?e:d,B(v,Rf(a.accessLevel$),5);case 5:return k=(h=v.yieldResult)&&h==="INTERNAL"?"INTERNAL":"EXTERNAL",B(v,a.editStatusUpdateDialogService.show(f,k,c),6);case 6:q=v.yieldResult;
if(!q)return v.return();a.statusUpdateService.update(q).subscribe(function(A){a.analytics.trackEvent("issueSidebar","edit","statusUpdate",A.updateText.length===0);a.issueFullFridge.manualUpdate(b,function(E){E.statusUpdate=A});a.issueFullFridge.poke(b)});Lf(v)}})};
var Ozb=function(a){var b,c;return z(function(d){switch(d.nextAddress){case 1:return B(d,Rf(a.issueId$),2);case 2:return b=d.yieldResult,B(d,Rf(a.firstEvent$),3);case 3:return(c=d.yieldResult)?B(d,$9a(a.issueCommentDialogsService,b,c),4):d.return();case 4:return B(d,a.eventsForIssueFridge.poke(b),5);case 5:a.analytics.trackEvent("issueSidebar","edit","description",Sva(c)),Lf(d)}})},izb=function(a){var b;return z(function(c){if(c.nextAddress==1)return B(c,Rf(a.issue$),2);b=c.yieldResult;if(!b)return c.return();
a.draftTitle=b.snapshot[0].title;a.editTitleMode=!0;Lf(c)})},kzb=function(a){a.isSavingTitle||(a.draftTitle="",a.editTitleMode=!1)};D0.prototype.saveTitle=function(){var a=this,b;return z(function(c){if(c.nextAddress==1)return B(c,Rf(a.issue$),2);b=c.yieldResult;if(!b||b.snapshot[0].title===a.draftTitle)return kzb(a),c.return();a.isSavingTitle=!0;Ywc(a.issueFullFridge,b.issueId,a.draftTitle).subscribe(function(){a.analytics.trackEvent("issueSidebar","edit","title");a.isSavingTitle=!1;kzb(a)});Lf(c)})};
D0.prototype.upvoted=function(a){this.analytics.trackEvent("issueSidebar","toggle","vote",a)};nd.Object.defineProperties(D0.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,Rbd(this))}}});
D0.\u0275fac=function(a){return new (a||D0)};
D0.\u0275cmp=y({type:D0,selectors:[["issue-sidebar"]],viewQuery:function(a,b){a&1&&(hh(Pbd,5),hh(Qbd,5));if(a&2){var c;lh(c=mh())&&(b.content=c.first);lh(c=mh())&&(b.container=c.first)}},inputs:{issueId:"issueId"},outputs:{closeSidebar:"closeSidebar",navigateToNextIssue:"navigateToNextIssue",navigateToPreviousIssue:"navigateToPreviousIssue"},standalone:!1,features:[Fh([NE]),Bg],decls:24,vars:14,consts:[["container",""],["spinner",""],["aiHelp",""],["descriptionArea",""],[1,"container","flex-kids-y",
3,"scroll"],[1,"top-actions","flex-kids-x","space-between","border-bottom"],[1,"flex-kids-x","align-items-center","margin-s-left","gap-s"],[1,"action-buttons"],[3,"issueId","upvoted","voteCount"],["type","button","mat-icon-button","","matTooltip","Previous issue","matTooltipPosition","above","aria-label","Previous issue",3,"click"],["svgIcon","chevron-left"],["type","button","mat-icon-button","","matTooltip","Next issue","matTooltipPosition","above","aria-label","Next issue",3,"click"],["svgIcon",
"chevron-right"],["type","button","mat-icon-button","","matTooltip","Close sidebar","matTooltipPosition","above","aria-label","Close sidebar",3,"click"],["svgIcon","close"],[1,"title"],[1,"details","flex-kids-y","padded-s-sides"],[1,"card-container"],[1,"heading-xs","muted","hover-link",3,"click","href"],[1,"a11y-only"],["type","button","mat-icon-button","","aria-label","copy issue id",1,"small","fade-icon-button","copy-issue-id",3,"click"],["svgIcon","copy",1,"icon-xs"],[3,"onVote","issueId","upvoted",
"voteCount"],[1,"flex"],["type","button","mat-icon-button","","matTooltip","Edit issue title","aria-label","Edit issue title",1,"fade-icon-button","small",3,"click"],["svgIcon","edit-outline",1,"icon-s"],[1,"full-width"],["matInput","","type","text","aria-label","Edit issue title","rows","3",3,"ngModelChange","cdkTextareaAutosize","cdkAutosizeMinRows","ngModel","bFocus"],[1,"flex-kids-x","gap","justify-flex-end","padded-bottom","border-bottom"],["type","button","mat-stroked-button","",1,"small"],
["type","button","mat-flat-button","","color","primary",1,"small",3,"click","disabled"],["type","button","mat-stroked-button","",1,"small",3,"click"],[4,"ngTemplateOutlet"],[1,"card","status-update"],[1,"card-header"],[1,"card-header-inner-left"],["svgIcon","group","color","primary",1,"icon-s"],[1,"card-header-inner-right"],["type","button","mat-icon-button","","aria-label","Edit the status update","matTooltip","Edit the status update","matTooltipPosition","above",1,"small","edit-button"],["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,"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"],[1,"card","no-border","issue-summary"],["svgIcon","chat_spark_24px","color","primary",1,"icon-s"],["type","button","mat-icon-button","","aria-label","Show AI generated summary note","dialogLabel","AI generated summary note",1,"small",3,"xapInlineDialog","dialogTabIndex"],["svgIcon","help-outline",1,"icon-s"],["type","button","mat-flat-button","",1,"small","generate-summary"],
["type","button","mat-icon-button","","aria-label","Toggle the AI-generated summary for this issue","matTooltip","Toggle the AI-generated summary for this issue","matTooltipPosition","above",1,"small"],[1,"issue-summary-area"],["type","button","mat-flat-button","",1,"small","generate-summary",3,"click"],["type","button","mat-icon-button","","aria-label","Toggle the AI-generated summary for this issue","matTooltip","Toggle the AI-generated summary for this issue","matTooltipPosition","above",1,"small",
3,"click"],[3,"ngTemplateOutlet"],[3,"content"],[1,"flex-kids-x","justify-flex-end","gap-s","margin-s-top"],["type","button","mat-icon-button","","aria-label","copy summary","matTooltip","Copy issue summary to clipboard",1,"small","copy-issue-summary",3,"click"],["svgIcon","copy",1,"icon-s"],["type","button","mat-icon-button","","aria-label","send feedback","matTooltip","Send feedback",1,"small","summary-feedback",3,"click"],["svgIcon","feedback-outline",1,"icon-s"],["type","button","mat-icon-button",
"","aria-label","rate thumbs up","matTooltip","Rate summary: Good",1,"small","summary-thumbs-up",3,"click","disabled"],["svgIcon","thumb_up_24px",1,"icon-s"],["type","button","mat-icon-button","","aria-label","rate thumbs down","matTooltip","Rate summary: Bad",1,"gmat-button","small","summary-thumbs-down",3,"click","disabled"],["svgIcon","thumb_down_24px",1,"icon-s"],["type","button","mat-icon-button","","aria-label","Edit the status update","matTooltip","Edit the status update","matTooltipPosition",
"above",1,"small","edit-button",3,"click"],["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"],[3,"issueId"],[1,"text-center"]],template:function(a,b){if(a&1){var c=t();J(0,"div",4,0);N("scroll",function(){u(c);b.containerScrolled=b.container.nativeElement.scrollTop===0?!1:!0;return w()});J(2,"header")(3,"div",5)(4,"div",6);F(5,gzb,6,3);U(6,"async");K();J(7,"div",7);F(8,hzb,1,3,"b-app-vote-button",
8);U(9,"async");J(10,"button",9);N("click",function(){u(c);return w(b.navigateToPreviousIssue.emit())});M(11,"mat-icon",10);K();J(12,"button",11);N("click",function(){u(c);return w(b.navigateToNextIssue.emit())});M(13,"mat-icon",12);K();J(14,"button",13);N("click",function(){u(c);return w(b.closeSidebar.emit())});M(15,"mat-icon",14);K()()();F(16,qzb,4,2,"div",15);U(17,"async");K();J(18,"div",16);F(19,cAb,31,22,"div",17);U(20,"async");Mg(21,eAb,1,1,"ng-container");K()();D(22,fAb,2,0,"ng-template",
null,1,Lh)}if(a&2){var d,e,f,h;x(2);uh("elevated",b.containerScrolled);x(3);G((d=V(6,6,b.issueId$))?5:-1,d);x(3);G((e=V(9,8,b.issue$))?8:-1,e);x(8);G((f=V(17,10,b.issue$))?16:-1,f);x(3);G((h=V(20,12,b.issue$))?19:21,h)}},dependencies:[oG,Jx,Kx,zG,xG,Ui,dy,ky,DM,My,FM,Uy,Sy,uM,tM,zM,Sv,FC,yN,C0,sO,AO,gO,OO,Tv],styles:["header[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--background);position:-webkit-sticky;position:sticky;top:0;z-index:3}header.elevated[_ngcontent-%COMP%]{box-shadow:0 1px 2px 0 rgba(0,0,0,.3),0 1px 3px 1px rgba(0,0,0,.15)}.action-buttons[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center}.fade-icon-button[_ngcontent-%COMP%]{vertical-align:bottom;opacity:0;-webkit-transition:opacity .25s ease-in-out;transition:opacity .25s ease-in-out}.fade-icon-button[_ngcontent-%COMP%]:focus{opacity:1}.card[_ngcontent-%COMP%]:hover   .fade-icon-button[_ngcontent-%COMP%], .title[_ngcontent-%COMP%]:hover   .fade-icon-button[_ngcontent-%COMP%], .top-actions[_ngcontent-%COMP%]:hover   .fade-icon-button[_ngcontent-%COMP%]{opacity:1}.container[_ngcontent-%COMP%]{width:440px;height:100%;overflow-y:scroll}.issue-summary[_ngcontent-%COMP%]{background-color:#edfbf1;background-color:var(--green-bg)}.issue-summary-area[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}.has-reacted-icon[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.title[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;overflow-wrap:anywhere;font-family:Google Sans,Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1rem;letter-spacing:.00625em;font-weight:500;padding:16px 8px}.title[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{font-family:Google Sans,Roboto,Arial,sans-serif;line-height:1.5rem;font-size:1rem;letter-spacing:.00625em;font-weight:500;padding:8px}.card-container[_ngcontent-%COMP%]{display:grid}.card[_ngcontent-%COMP%]{padding:8px 8px 8px 16px;border-radius:4px;border:1px solid;border-color:#dadce0;border-color:var(--divider);margin-bottom:16px}.card.no-border[_ngcontent-%COMP%]{border:none}.card-header[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.card-header-inner-left[_ngcontent-%COMP%], .card-header-inner-right[_ngcontent-%COMP%]{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-moz-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-moz-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.card-header-inner-left[_ngcontent-%COMP%]{font-weight:500;text-transform:uppercase;letter-spacing:.05rem}.card-header-inner-right[_ngcontent-%COMP%]{color:#5f6368;color:var(--muted);font-style:italic}.details[_ngcontent-%COMP%]{width:-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)}.description[_ngcontent-%COMP%], .status-update[_ngcontent-%COMP%]{overflow-x:auto}.description-note[_ngcontent-%COMP%]{max-height:160px;overflow:hidden}.full-height[_ngcontent-%COMP%]{max-height:100%}.description-area[_ngcontent-%COMP%], .fields-area[_ngcontent-%COMP%], .status-update-area[_ngcontent-%COMP%]{position:relative}.edit-description[_ngcontent-%COMP%], .edit-status-update[_ngcontent-%COMP%]{opacity:0}.edit-description[_ngcontent-%COMP%]:focus, .edit-status-update[_ngcontent-%COMP%]:focus{opacity:1}.description[_ngcontent-%COMP%]:hover   .edit-description[_ngcontent-%COMP%], .status-update[_ngcontent-%COMP%]:hover   .edit-status-update[_ngcontent-%COMP%]{opacity:1}\n/*# sourceMappingURL=issue_sidebar.css.map */"]});var Sbd=[[["",8,"tooltip-content"]],[["",8,"chip-content"]]],E0=function(){this.compactMode=this.labelOnlyMode=!1};E0.prototype.ngOnInit=function(){};E0.\u0275fac=function(a){return new (a||E0)};
E0.\u0275cmp=y({type:E0,selectors:[["b-base-chip"]],inputs:{labelOnlyMode:"labelOnlyMode",compactMode:"compactMode",labelClass:"labelClass",hovercardAriaLabel:"hovercardAriaLabel"},standalone:!1,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&&(ch(Sbd),J(0,"span",1)(1,"onedev-hovercard",null,0)(3,"div",2)(4,"div",3),dh(5),K()()(),J(6,"div",4)(7,"span",5),dh(8,1),K()()());if(a&2){a=Q(2);x(3);Lg("aria-label",b.hovercardAriaLabel);x(3);I("onedevHovercardTrigger",a)("onedevHovercardActive",!b.labelOnlyMode);x();var c;vh((c=b.labelClass)!=null?c:"");uh("compact-chip",b.compactMode)}},dependencies:[DI,JI],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 F0=function(){this.documentationLinks=r(JJ);this.documentationLink=ys()};F0.prototype.ngOnChanges=function(){this.retentionState?this.retentionExpireTime=ql(this.retentionState.scheduledDeletionTime):this.retentionExpireTime=void 0};F0.\u0275fac=function(a){return new (a||F0)};
F0.\u0275cmp=y({type:F0,selectors:[["retention-help-text"]],inputs:{retentionState:"retentionState",modifiedTime:"modifiedTime"},standalone:!1,features:[ov],decls:1,vars:1,consts:[["target","_blank",3,"href"],[3,"mode","timestamp","paddingLeftPx"]],template:function(a,b){a&1&&F(0,iAb,4,2);a&2&&G(b.retentionState&&b.modifiedTime?0:-1)},dependencies:[EL],encapsulation:2});var G0=function(){this.dateFormatter=r(BK);this.compactMode=!1;this.text=""};G0.prototype.ngOnChanges=function(){var a;((a=this.retentionState)==null?void 0:a.scheduledDeletionTime)!=null?this.text=Q6a(ql(this.retentionState.scheduledDeletionTime),!this.compactMode):this.text="Indefinite"};G0.\u0275fac=function(a){return new (a||G0)};
G0.\u0275cmp=y({type:G0,selectors:[["retention-text"]],inputs:{retentionState:"retentionState",compactMode:"compactMode"},standalone:!1,features:[ov],decls:1,vars:1,template:function(a,b){a&1&&R(0);a&2&&wh(b.text)},encapsulation:2});var H0=function(){this.documentationLinks=r(JJ);this.showRetentionInfo=this.dangerZone=this.labelOnlyMode=this.compactMode=this.showOnlyInDangerZone=!1};H0.prototype.ngOnChanges=function(){this.retentionState&&this.retentionState.retentionPeriod&&this.retentionState.scheduledDeletionTime?(this.dangerZone=kAb(this.retentionState),this.showRetentionInfo=this.showOnlyInDangerZone&&this.dangerZone||!this.showOnlyInDangerZone):this.showRetentionInfo=!1};H0.\u0275fac=function(a){return new (a||H0)};
H0.\u0275cmp=y({type:H0,selectors:[["b-retention-chip"]],inputs:{showOnlyInDangerZone:"showOnlyInDangerZone",compactMode:"compactMode",labelOnlyMode:"labelOnlyMode",retentionState:"retentionState",modifiedTime:"modifiedTime"},standalone:!1,features:[ov],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,jAb,5,7,"b-base-chip",0);a&2&&G(b.showRetentionInfo?0:-1)},dependencies:[E0,G0,F0],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 Tbd=["issueSidenavContainer"],bDb=function(){return[]},DBb=function(a){return{id:a}},I0=function(){var a=this;this.activeSession=r(Bs);this.cdr=r(NE,{self:!0});this.elementRef=r(Te);this.teamsService=r(SF);this.ngZone=r(Ph);this.userPreferencesManager=r(iG);this.hotlistFridge=r(cD);this.issueFullFridge=r(TE);this.bLocation=r(DH);this.issuePagination=r(DY);this.paths=r(oN);this.errorHandler=r(aK);this.$log=r(ME);this.domSafe=r(UK);this.trackerHelpers=r(iK);this.anayltics=r(RE);this.ISSUE_STATUS_JS_ICON_NAME=
Qoc;this.STATUS_JS_FULL_TEXT=uj;this.STATUS_JS_TERSE=Loc;this.lastCheckedIndex=null;this.focusedRowIndexChange=new LE;this.columns=[];this.columnsChange=new LE;this.enableColumnSaving=!1;this.sort=null;this.enableSidebar=!1;this.sortChange=new LE;this.rowClick=new LE;this.init=new LE;this.onRowDragDrop=new LE;this.onNextPage=new LE;this.onPrevPage=new LE;this.selectionCallbacks=[];this.GET_ISSUE_ACCESS_LEVEL_TITLE=S1a;this.isLoadingTeams=!0;this.isTotalEstimatesEnabled=OA(this.activeSession,"enableAggregationRules");
this.enableEscalationOwnerRolloutUi=OA(this.activeSession,"enableEscalationOwnerRolloutUi");this.isIssueSidebarOpen=this.isIssueSidebarEnabled=!1;this.destroyed$=new sg(1);this.starInProgress={};this.readUnreadOptOut=OA(this.activeSession,"readUnreadOptOut");this.enableAddViewCountColumnsOnIlp=OA(this.activeSession,"enableAddViewCountColumnsOnIlp");var b=Ja(Tvb);this.activeSession.isInternalSession()||(Fa(b,"minSlo"),Fa(b,"responseSlo"),Fa(b,"assignmentSlo"),Fa(b,"closureSlo"),Fa(b,"deletionTime"),
Fa(b,"team"),Fa(b,"estimate"),Fa(b,"estimateTotalOpen"),Fa(b,"estimateTotalComplete"));this.activeSession.isInternalSession()&&this.enableEscalationOwnerRolloutUi||Fa(b,"escalationOwner");this.enableAddViewCountColumnsOnIlp||(Fa(b,"oneDayViewCount"),Fa(b,"sevenDayViewCount"),Fa(b,"thirtyDayViewCount"));this.availableColumns=b.map(Uvb);this.dragDropLogic=new Kad({ngZone:this.ngZone,nativeElement:this.elementRef.nativeElement,rowFinder:function(c){return Ubd(a,c)},onRowDragDrop:function(c){a.onRowDragDrop.emit(c)}})};
g=I0.prototype;g.ngOnInit=function(){var a=this;this.dragDropLogic.setup();this.userPreferencesManager.listViewPreferences$.pipe(yg(this.destroyed$)).subscribe(function(b){a.listViewPrefs=b;a.cdr.detectChanges()});this.isIssueSidebarEnabled=this.enableSidebar&&OA(this.activeSession,"enableIssueSidebar")||!1;this.init.emit(this)};
g.ngOnChanges=function(a){if(a.searchResults){var b,c=Xra(((b=this.searchResults)==null?void 0:b.issues.map(function(e){return new Set([].concat(p(e.hotlistId||[])))}))||[]);this.hotlistFridge.watchSet([].concat(p(c)))}if(a.searchResults||a.columns)for(b=l(this.columns),c=b.next();!c.done;c=b.next())c.value.label==="TEAM"&&Vbd(this);if(a.searchResults){b=a.searchResults.currentValue;var d;a=new Set(((d=a.searchResults.previousValue)==null?void 0:d.issues.filter(function(e){return e.selected}).map(function(e){return e.id}))||
[]);d=new Set((b==null?void 0:b.issues.filter(function(e){return e.selected}).map(function(e){return e.id}))||[]);qsa(a,d)||fs(this)}};g.ngOnDestroy=function(){this.dragDropLogic.tearDown();this.destroyed$.next()};g.focus=function(){this.grid.focus()};g.selectAll=function(){if(this.searchResults){for(var a=l(this.searchResults.issues),b=a.next();!b.done;b=a.next())b.value.selected=!0;this.cdr.detectChanges()}fs(this)};
var Wbd=function(a){if(a.searchResults){for(var b=l(a.searchResults.issues),c=b.next();!c.done;c=b.next())c.value.selected=!1;a.cdr.detectChanges()}fs(a)};I0.prototype.hasSelectedIssues=function(){return this.searchResults?this.searchResults.issues.some(function(a){return a.selected}):!1};
var wAb=function(a){return a.searchResults?a.searchResults.issues.every(function(b){return b.selected}):!1},Xbd=function(a){return a.searchResults?a.searchResults.issues.some(function(b){return b.selected}):!1},vAb=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"};
I0.prototype.getSelectedIssues=function(){return this.searchResults?this.searchResults.issues.filter(function(a){return a.selected}):[]};
var Zbd=function(a){if(Ybd(a)&&a.focusedRowIndex!=null&&a.searchResults){var b=a.searchResults.issues[a.focusedRowIndex];b&&(b.selected=!b.selected,a.cdr.detectChanges(),fs(a))}},uAb=function(a){if(a.searchResults){for(var b=!Xbd(a),c=l(a.searchResults.issues),d=c.next();!d.done;d=c.next())d.value.selected=b;a.cdr.detectChanges();fs(a)}},lAb=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()&&S7c(a.issuePagination,a.searchResults.endIndex+1).catch(function(b){a.$log.warn(b)}).finally(function(){a.onNextPage.emit()})},mAb=function(a){a.focusedRowIndex!=null&&a.focusedRowIndex>0?(a.focusedRowIndex--,a.focusedRowIndexChange.emit(a.focusedRowIndex),a.cdr.detectChanges()):a.searchResults&&a.searchResults.hasPreviousPage()&&S7c(a.issuePagination,a.searchResults.startIndex-1).catch(function(b){a.$log.warn(b)}).finally(function(){a.onPrevPage.emit()})},
J0=function(a,b){b=b===void 0?{}:b;var c=a.getFocusedIssue();c&&(b.openInNewTab?a.domSafe.openInNewTab(Fq(c.issueId)):a.bLocation.setUrl(Fq(c.issueId)))};I0.prototype.getFocusedIssue=function(){return Ybd(this)&&this.focusedRowIndex!=null&&this.searchResults?this.searchResults.issues[this.focusedRowIndex]:null};
var $bd=function(a,b){a.selectionCallbacks.push(b);b()},fs=function(a){a=l(a.selectionCallbacks);for(var b=a.next();!b.done;b=a.next())b=b.value,b()},acd=function(a){Ybd(a)&&a.focusedRowIndex!=null&&a.searchResults&&a.toggleStar(a.searchResults.issues[a.focusedRowIndex])},bcd=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();VE(a.issueFullFridge,c.map(function(f){return f.issueId}),{markRead:b,
userActivityType:"MARK_AS_READ_OR_UNREAD"}).then(function(f){for(var h=l(c),k=h.next();!k.done;k=h.next()){var q=void 0;k.value.lastViewedTime=(q=f)!=null?q:null}}).catch(function(){for(var f=l(c),h=f.next();!h.done;h=f.next())h=h.value,h.isRead=!!h.lastViewedTime&&h.lastViewedTime>=h.majorModifiedTime}).finally(function(){a.cdr.detectChanges()})}};
I0.prototype.toggleStar=function(a){var b=this;a&&!this.starInProgress[a.issueId]&&(a.starred=!a.starred,this.starInProgress[a.issueId]=!0,Wwc(this.issueFullFridge,String(a.issueId),a.starred).pipe(mg(1),yg(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()}))};
I0.prototype.issueDescription=function(a){return(a.isClosed?"Closed ":this.readUnreadOptOut||a.isRead?"":"Unread ")+"Issue ID "+a.id+" titled: "+a.title};
var Ybd=function(a){return a.searchResults!=null&&a.focusedRowIndex!=null&&a.focusedRowIndex>=0&&a.focusedRowIndex<a.searchResults.issues.length},Ubd=function(a,b){return b?a.searchResults?a.searchResults.issues.findIndex(function(c){return c.id===b}):-1:-1},Vbd=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,gzc(a.teamsService,[].concat(p(b))).pipe(yg(a.destroyed$)).subscribe(function(e){if(a.searchResults)for(var f=
l(a.searchResults.issues),h=f.next();!h.done;h=f.next()){h=h.value;var k=String(h.teamId);k!=="0"&&(k=e.get(k))&&(h.team=k.name)}a.isLoadingTeams=!1;a.cdr.detectChanges()})):a.isLoadingTeams=!1}};I0.prototype.isIssueGridColumn=function(){return!0};I0.prototype.getComponentPath=function(a){return ij(a)?a.join(" > "):(a=rs(this.trackerHelpers,a))&&a.componentPathName?a.componentPathName.join(" > "):""};I0.\u0275fac=function(a){return new (a||I0)};
I0.\u0275cmp=y({type:I0,selectors:[["b-issues-grid"]],viewQuery:function(a,b){a&1&&(hh(Y_,7),hh(Tbd,5));if(a&2){var c;lh(c=mh())&&(b.grid=c.first);lh(c=mh())&&(b.sideNavContainer=c.first)}},inputs:{searchResults:"searchResults",focusedRowIndex:"focusedRowIndex",columns:"columns",enableColumnSaving:"enableColumnSaving",sort:"sort",enableSidebar:"enableSidebar"},outputs:{focusedRowIndexChange:"focusedRowIndexChange",columnsChange:"columnsChange",sortChange:"sortChange",rowClick:"rowClick",init:"init",
onRowDragDrop:"onRowDragDrop",onNextPage:"onNextPage",onPrevPage:"onPrevPage"},standalone:!1,features:[Fh([NE]),ov],decls:7,vars:1,consts:[["issuesGrid",""],["issueWithHovercard",""],["issueSidenavContainer",""],["issueHovercard","onedevHovercard"],["cardBody",""],["hasBackdrop","false",3,"sidebar-enabled"],["hasBackdrop","false"],["mode","side","position","end",3,"openedChange","opened","disableClose"],[3,"issueId"],[4,"ngTemplateOutlet"],[3,"closeSidebar","navigateToNextIssue","navigateToPreviousIssue",
"issueId"],[1,"keep-focus-ring",3,"columnsChange","focusedRowIndexChange","sortChange","rowClick","list","columns","focusedRowIndex","scrollContainer","sort","rowLabelRenderer"],["class","focus-indicator",4,"forHeaderCell"],["class","drag-handle",4,"forHeaderCell"],["class","selected-box",4,"forHeaderCell"],[4,"forHeaderCell"],[4,"forHeaderCellDefault"],["class","focus-indicator",4,"forViewCell"],["class","drag-handle","draggable","true",4,"forViewCell"],["class","selected-box",4,"forViewCell"],["class",
"star-cell",4,"forViewCell"],[4,"forViewCell"],["data-template","issueId","class","clickable issue-id-cell",4,"forViewCell"],["class","clickable title-cell",3,"bv2-grid-cell-variable-height",4,"forViewCell"],["class","priority-cell clickable",4,"forViewCell"],["class","severity-cell clickable",4,"forViewCell"],["data-stable-cell","status","class","clickable",4,"forViewCell"],["data-stable-cell","type","class","clickable",4,"forViewCell"],["class","clickable",4,"forViewCell"],["class","clickable datetime-cell",
4,"forViewCell"],["class","componentPath-cell clickable",3,"bv2-grid-cell-variable-height","rtl-component-path",4,"forViewCell"],["class","clickable first-letter-capitalized",4,"forViewCell"],[1,"focus-indicator"],[1,"drag-handle"],[1,"selected-box"],["tabindex","0","aria-label","Select all issues","role","checkbox",1,"keep-focus-ring","b-select-all-toggle",3,"state"],["tabindex","0","aria-label","Select all issues","role","checkbox",1,"keep-focus-ring","b-select-all-toggle",3,"click","keydown.enter",
"keydown.space","state"],[3,"column"],[3,"column","availableColumns","selectedColumns"],[3,"selectedColumnsChange","column","availableColumns","selectedColumns"],["draggable","true",1,"drag-handle"],["tabindex","-1","role","checkbox",3,"state"],["tabindex","-1","role","checkbox",3,"click","state"],[1,"star-cell"],["tabindex","-1",3,"starred","disabled","starMessage","unStarMessage"],["tabindex","-1",3,"starClicked","starred","disabled","starMessage","unStarMessage"],["data-template","issueId",1,"clickable",
"issue-id-cell"],[1,"row-issue-id",3,"issueId","showCopyOptions"],["tabindex","-1",1,"row-issue-id",3,"href"],[1,"row-issue-id",3,"click","issueId","showCopyOptions"],[1,"clickable","title-cell"],[1,"bv2-grid-cell-container",3,"bv2-grid-cell-flex-wrap"],[1,"bv2-grid-cell-container"],[3,"issueId","compactMode"],[3,"trackerId","compactMode"],[3,"retentionState","showOnlyInDangerZone","compactMode","modifiedTime"],[1,"bv2-grid-cell-text"],[1,"row-issue-title",3,"href"],["svgIcon","input_24px",1,"navigate-to-idp",
"icon-s"],[1,"bv2-hotlist-chips"],[3,"id","removable"],[1,"priority-cell","clickable"],[1,"bv2-priority",3,"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&&(J(0,"div"),F(1,pAb,6,6,"mat-sidenav-container",
5)(2,rAb,1,1,"ng-container"),K(),D(3,cDb,55,62,"ng-template",null,0,Lh)(5,eDb,5,2,"ng-template",null,1,Lh));a&2&&(x(),G(b.isIssueSidebarEnabled?1:2))},dependencies:[Mad,Sv,FC,Ax,$X,aY,ZX,Y_,d0,Z_,a0,b0,U_,W_,EL,f0,fJ,JT,H0,$M,fS,DI,EI,JI,FI,PO,D0,pM,bO,NO,e0,jL,iL,pNc,lL],styles:["mat-sidenav-container.sidebar-enabled[_ngcontent-%COMP%]{height:calc(100vh - 100px)}[_nghost-%COMP%]     .title-cell b-hotlist-chip{margin-bottom:1px}/*# sourceMappingURL=issues_grid.css.map */"],changeDetection:0});
var K0=new cs({name:"focused",sortable:!1,draggable:!1,isMetadata:!0}),ccd=new cs({name:"draghandle",sortable:!1,draggable:!1,isMetadata:!0}),L0=new cs({name:"selected",sortable:!1,draggable:!1,isMetadata:!0}),M0=new cs({name:"starred",sortable:!1,draggable:!1,isMetadata:!0}),dcd=new cs({name:"position",sortable:!0,draggable:!1,fullLabel:"Position",label:"POS",isMetadata:!0});var N0=function(){Z.apply(this,arguments);var a=this;this.snackBar=r(DJ);this.issuePicker=r(dR);this.issueApi=r(SD);this.issueAddedToHotlist=new LE;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});ecd(a,a.id,b)}};this.handleSuccessCall=function(b){b.errors&&b.errors.length?(b="Failed to add issue(s) to hotlist. "+
Bwa(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,h=(f=(e=b==null?void 0:(c=b.error)==null?void 0:c.message)!=null?e:b==null?void 0:(d=b.data)==null?void 0:d.message)!=null?f:"Error adding issues to the hotlist";a.snackBar.open(h,"close",{panelClass:"error"})}};Y(N0,Z);N0.\u0275dir=Z.\u0275dir;
var ecd=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)};N0.\u0275fac=function(){var a;return function(b){return(a||(a=Re(N0)))(b||N0)}}();
N0.\u0275cmp=y({type:N0,selectors:[["hotlist-add-issue-btn"]],inputs:{id:[0,"hotlistId","id"]},outputs:{issueAddedToHotlist:"issueAddedToHotlist"},standalone:!1,features:[Bg],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&&(J(0,"button",0),N("click",function(){b.issuePicker.open({title:"Add Issues to this Hotlist",allowMultipleIds:!0},b.onCloseIssuePicker)}),R(1," Add Issue(s) "),K())},dependencies:[oG,
Jx,zG,xG],encapsulation:2});var O0=function(){Z.call(this);var a=this;this.fridge=r(cD);this.snackBar=r(DJ);this.dialog=r(YJ);this.events=r(FB);this.id$=new sg(1);this.hotlist$=this.id$.pipe(xg(function(b){return a.fridge.watch(b)}),ug({refCount:!0,bufferSize:1}));this.archived$=this.hotlist$.pipe(C(function(b){return!(b==null||!b.archived)}),og());this.archiveActionLabel$=this.archived$.pipe(C(function(b){return b?"Unarchive":"Archive"}));this.archiveActionTooltip$=this.archived$.pipe(C(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(Ro(c)||"Error "+d+" the hotlist","close",{panelClass:"error"})}};this.hotlist$.pipe(yg(this.destroyed$)).subscribe(function(b){a.latestHotlist=b})};Y(O0,Z);O0.\u0275dir=Z.\u0275dir;
O0.prototype.isThinking=function(a){return this.fridge.isThinking(a)};O0.prototype.ngOnChanges=function(a){var b;(a=(b=a.hotlistId)==null?void 0:b.currentValue)&&this.id$.next(a)};
var gcd=function(a){if(a.latestHotlist!=null){var b=!a.latestHotlist.archived;b?a.dialog.open({title:"Archive Hotlist",content:Xi("Do you want to archive this hotlist?"),isDestructive:!0,onConfirm:function(){fcd(a,b)}}):fcd(a,b)}},fcd=function(a,b){a.fridge.save(Object.assign({},a.latestHotlist,{archived:b})).subscribe({next:a.didSave(b),error:a.gotErr(b)})};O0.\u0275fac=function(a){return new (a||O0)};
O0.\u0275cmp=y({type:O0,selectors:[["hotlist-archive-btn"]],inputs:{hotlistId:"hotlistId"},standalone:!1,features:[Bg,ov],decls:4,vars:7,consts:[["type","button","mat-button","",1,"medium",3,"click","disabled","matTooltip"]],template:function(a,b){a&1&&(J(0,"button",0),U(1,"async"),N("click",function(){return gcd(b)}),R(2),U(3,"async"),K());if(a&2){var c;I("disabled",b.isThinking(b.hotlistId))("matTooltip",(c=V(1,3,b.archiveActionTooltip$))!=null?c:"");x(2);T(" ",V(3,5,b.archiveActionLabel$)," ")}},
dependencies:[oG,Jx,zG,xG,Tv],encapsulation:2});var P0=function(){y_.apply(this,arguments);this.estadoService=r(T_);this.refreshMonitor=r(gE);this.init=new LE;this.onRefresh=new LE;this.isHotlistAdmin=!1;this.onExportCsv=new LE;this.showHotlistButtons=!1;this.isNonPublicSession=this.activeSession.isNonPublicSession();var a=this.estadoService;this.enableEstadoInAppBar=a.enableEstado&&!Eq(a.activeSession);this.enableBulkEditUi=!this.activeSession.userRequiresCaptcha();this.controllerName="gridControls"};Y(P0,y_);P0.\u0275dir=y_.\u0275dir;g=P0.prototype;
g.ngOnInit=function(){this.init.emit(this)};g.ngOnChanges=function(a){var b=this;a.grid&&this.grid&&$bd(this.grid,function(){b.onSelectionChange()})};g.getSelectedIssues=function(){var a,b;return(b=(a=this.grid)==null?void 0:a.getSelectedIssues())!=null?b:[]};g.refresh=function(){this.refreshMonitor.refreshRequest.next();this.onRefresh.emit()};g.openInEstado=function(){this.estadoService.openInEstado()};var hcd=function(a){return a.hasSelectedIssues()&&a.isNonPublicSession};
P0.\u0275fac=function(){var a;return function(b){return(a||(a=Re(P0)))(b||P0)}}();
P0.\u0275cmp=y({type:P0,selectors:[["b-grid-controls"]],inputs:{grid:"grid",isHotlistAdmin:"isHotlistAdmin",currentHotlistId:"currentHotlistId",showHotlistButtons:"showHotlistButtons"},outputs:{init:"init",onRefresh:"onRefresh",onExportCsv:"onExportCsv"},standalone:!1,features:[Fh([NE]),Bg,ov],decls:11,vars:8,consts:[["addCommentDialog",""],["size","large","format","icon","tooltip","Refresh","bAriaLabel","Refresh",1,"refresh-button",3,"onAction"],["name","refresh","size","large"],[3,"enableBulkEstimatedEffortOption",
"readStatePrompt"],[3,"shortLinkPrefix","shouldShowCopyIssueShortLinks"],[1,"bv2-grid-hotlist-picker"],["tooltip","Reporting","aria-label","Reporting",1,"compact",3,"size","format"],[1,"bv2-appbar-menu",3,"exportCsvClicked","flagAsSpamClicked","showExportCsv","showFlagIssuesAsSpam"],[3,"save","close","externalWarnings"],[3,"onBulkEdit","onQuickBulkEdit","onBulkEditIssueRelation","onBulkMarkIssueRead","enableBulkEstimatedEffortOption","readStatePrompt"],[3,"onClickCopyIssueIds","onClickCopyIssueShortLinks",
"onClickCopyAsIssueSearch","shortLinkPrefix","shouldShowCopyIssueShortLinks"],[3,"onApply","onCreate","onLoad","selectedHotlistIds","choices"],[3,"hotlistId"],[3,"issueAddedToHotlist","hotlistId"],["tooltip","Reporting","aria-label","Reporting",1,"compact",3,"onAction","size","format"],["name","bar-chart","size","large"],[1,"bv2-estado-text"],["mat-dialog-title",""],[3,"comment","showToolbar","isLiteralModeSupported"],[3,"externalWarnings"],[1,"flex-kids-x","justify-flex-end"],["type","button","mat-button",
"",1,"medium",3,"mat-dialog-close"],["type","button","mat-flat-button","","cdkFocusInitial","",1,"medium","primary",3,"disabled","mat-dialog-close"],[3,"commentChange","onSubmit","comment","showToolbar","isLiteralModeSupported"],[3,"onUpdate"]],template:function(a,b){if(a&1){var c=t();J(0,"b-button",1);N("onAction",function(){u(c);return w(b.refresh())});M(1,"b-icon",2);K();F(2,fDb,2,4,"b-app-bar-bulk-edit-menus",3);F(3,gDb,1,2,"b-copy-issue-id-button",4);F(4,hDb,2,2,"div",5);F(5,kDb,2,2);F(6,mDb,
3,3,"b-button",6);J(7,"b-app-bar-more-menu",7);N("exportCsvClicked",function(){u(c);return w(b.onExportCsv.emit())})("flagAsSpamClicked",function(){u(c);return w(z$c(b))});K();J(8,"b-state-modal",8);N("save",function(){u(c);return w(x$c(b))})("close",function(){u(c);return w(b.hotkeys.unpause())});K();D(9,pDb,11,6,"ng-template",null,0,Lh)}a&2&&(x(2),G(b.hasSelectedIssues()?2:-1),x(),G(b.hasSelectedIssues()?3:-1),x(),G(b.enableBulkEditUi&&b.hasSelectedIssues()?4:-1),x(),G(b.showHotlistButtons&&!b.hasSelectedIssues()?
5:-1),x(),G(b.enableEstadoInAppBar?6:-1),x(),I("showExportCsv",b.isNonPublicSession||Apc(b.activeSession))("showFlagIssuesAsSpam",hcd(b)),x(),I("externalWarnings",b.externalWarnings))},dependencies:[qY,pY,AG,IV,PZ,O0,N0,t_,eL,oG,Jx,SJ,UJ,WJ,VJ,w_,TR,u_,Tv],styles:["[_nghost-%COMP%] { display: flex; align-items: center; }"]});var icd=function(a){return{displayText:"Admins",values:a}},jcd=function(a){return[a]},kcd=function(a){return{displayText:"Appenders",values:a}},lcd=Xi("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?"),Q0=function(){var a=r(UR);Z.call(this);var b=this;this.hotlistAccessPolicyFridge=r(YD);this.links=r(JJ);this.snackBar=
r(DJ);this.events=r(FB);this.dialog=r(YJ);this.permissions=r(DF);this.userApi=r(bD);this.activeSession=r(Bs);this.hotlistId$=new sg(1);this.acl$=this.hotlistId$.pipe(xg(function(c){return b.hotlistAccessPolicyFridge.watch(c)}));this.latestCompactPolicy={};this.admins=[];this.appenders=[];this.readers=[];this.accessControlLink=kKc(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:lcd,isDestructive:!0,onConfirm:b.doSave}):b.doSave()};this.doSave=function(){if(b.hotlistId!=null){var c=b.isRevokingAdmin(),d={id:b.hotlistId,admins:Sp(b.admins),appenders:Sp(b.appenders),editors:null,readers:Sp(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(Ro(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(!gj((d=c.admins)!=null?d:[],b.admins))return!0;var e;if(!gj((e=c.appenders)!=null?e:[],b.appenders))return!0;var f;return gj((f=c.readers)!=null?f:[],b.readers)?!1:!0};this.hasNoChanges=function(){return!b.isChanged()};this.acl$.pipe(yg(this.destroyed$)).subscribe(function(c){b.latestPolicy=c;var d,e,f;b.latestCompactPolicy={admins:Rp((d=b.latestPolicy)==null?void 0:d.admins),appenders:Rp((e=b.latestPolicy)==null?
void 0:e.appenders),readers:Rp((f=b.latestPolicy)==null?void 0:f.readers)};b.resetEdits()});this.subscriptions.add(VR(a,this.isChanged,!1))};Y(Q0,Z);Q0.\u0275dir=Z.\u0275dir;var mcd=function(a){return[].concat(p(new Set([].concat(p(a.admins),p(a.appenders)))))};Q0.prototype.ngOnChanges=function(a){var b;(a=(b=a.hotlistId)==null?void 0:b.currentValue)&&this.hotlistId$.next(a)};
Q0.prototype.resetEdits=function(){var a;this.admins=[].concat(p((a=this.latestCompactPolicy.admins)!=null?a:[]));var b;this.appenders=[].concat(p((b=this.latestCompactPolicy.appenders)!=null?b:[]));var c;this.readers=[].concat(p((c=this.latestCompactPolicy.readers)!=null?c:[]));this.allAppenders=mcd(this)};Q0.prototype.isRevokingAdmin=function(){var a=this.admins,b,c=(b=this.latestCompactPolicy.admins)!=null?b:[];return this.isRevokingDirectAdmin(a,c,this.activeSession.getUserEmail())};
Q0.prototype.isRevokingDirectAdmin=function(a,b,c){c=c===void 0?"":c;if(Jsa(a,b))return!1;c="USER:"+c;b=b.includes(c);a=!a.includes(c);return b&&a};Q0.\u0275fac=function(a){return new (a||Q0)};
Q0.\u0275cmp=y({type:Q0,selectors:[["b-edit-hotlist-acl"]],inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},standalone:!1,features:[Bg,ov],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&&(J(0,"form",0)(1,"label"),R(2,"Admins"),K(),J(3,"p",1),R(4,"Edit access controls, edit name and description, reorder hotlist, add/remove issues"),K(),J(5,"b-multi-user-input",2),N("usersChange",function(c){b.admins=c;b.allAppenders=mcd(b)})("isValid",function(c){return b.validity.admins=c}),K(),J(6,"label"),R(7,
"View and append"),K(),J(8,"p",1),R(9,"Reorder hotlist, add/remove issues"),K(),J(10,"b-multi-user-input",3),N("usersChange",function(c){b.appenders=c;b.allAppenders=mcd(b)})("isValid",function(c){return b.validity.appenders=c}),K(),J(11,"label"),R(12,"View only"),K(),J(13,"p",1),R(14,"View the hotlist"),K(),J(15,"b-multi-user-input",4),N("usersChange",function(c){b.readers=c})("isValid",function(c){return b.validity.readers=c}),K()(),J(16,"p"),R(17," Users can see which issues are in a hotlist, even when they don't have view access to the hotlist. See "),
J(18,"a",5),R(19,"access control documentation"),K(),R(20," for an explanation of the settings.\n"),K(),F(21,qDb,5,4,"div",6));a&2&&(x(5),uh("disabled",b.isReadOnly),I("users",b.admins),x(5),uh("disabled",b.isReadOnly),I("users",b.appenders)("includeAliases",!0)("containerChips",Hh(18,jcd,Hh(16,icd,b.admins))),x(5),uh("disabled",b.isReadOnly),I("users",b.readers)("includeAliases",!0)("includeViewAliases",!0)("containerChips",Hh(22,jcd,Hh(20,kcd,b.allAppenders))),x(3),I("href",b.accessControlLink,
hf),x(3),G(b.isReadOnly?-1:21))},dependencies:[ly,ey,iy,oG,Jx,zG,xG,IO],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 ncd=["hotlistName"],R0=function(){Z.call(this);var a=this;this.fridge=r(cD);this.snackBar=r(DJ);this.events=r(FB);this.checkBeforeExit=r(UR);this.isReadOnly=!1;this.id$=new sg(1);this.hotlist$=this.id$.pipe(xg(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(Ro(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!gj(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(yg(this.destroyed$)).subscribe(function(b){a.gotHotlist(b)});this.subscriptions.add(VR(this.checkBeforeExit,
this.isChanged,!1))};Y(R0,Z);R0.\u0275dir=Z.\u0275dir;R0.prototype.ngAfterViewInit=function(){var a=this;setTimeout(function(){var b;(b=a.hotlistName)==null||b.nativeElement.focus()})};R0.prototype.ngOnChanges=function(a){var b;(a=(b=a.hotlistId)==null?void 0:b.currentValue)&&this.id$.next(a)};R0.prototype.resetEdits=function(a){var b;this.localEdits=(b=hj(a))!=null?b:{}};R0.\u0275fac=function(a){return new (a||R0)};
R0.\u0275cmp=y({type:R0,selectors:[["b-edit-hotlist-basic"]],viewQuery:function(a,b){a&1&&hh(ncd,5);if(a&2){var c;lh(c=mh())&&(b.hotlistName=c.first)}},inputs:{hotlistId:"hotlistId",isReadOnly:"isReadOnly"},standalone:!1,features:[Bg,ov],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();J(0,"form",1)(1,"label",2);R(2,"Name");K();J(3,"input",3,0);Ah("ngModelChange",function(d){u(c);
zh(b.localEdits.name,d)||(b.localEdits.name=d);return w(d)});K();J(5,"label",4);R(6,"Description");K();J(7,"textarea",5);Ah("ngModelChange",function(d){u(c);zh(b.localEdits.description,d)||(b.localEdits.description=d);return w(d)});R(8,"  ");K();F(9,rDb,7,7,"div",6);K()}a&2&&(x(3),I("disabled",b.isReadOnly||b.isArchived),yh("ngModel",b.localEdits.name),x(4),I("disabled",b.isReadOnly||b.isArchived),yh("ngModel",b.localEdits.description),x(2),G(b.isReadOnly?-1:9))},dependencies:[ly,Ui,dy,ey,vy,ky,iy,
oG,Jx,zG,xG,O0,Tv],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 S0=function(){Z.apply(this,arguments);var a=this;this.hotlists=r(cD);this.acls=r(YD);this.id$=new sg(1);this.hotlist$=this.id$.pipe(xg(function(b){return a.hotlists.watch(b)}))};Y(S0,Z);S0.\u0275dir=Z.\u0275dir;S0.prototype.isThinking=function(a){var b=a?"hotlists/"+a:void 0;return this.hotlists.isThinking(a)||this.acls.isThinking(b)};S0.prototype.ngOnChanges=function(a){var b;(a=(b=a.hotlistId)==null?void 0:b.currentValue)&&this.id$.next(a)};
S0.\u0275fac=function(){var a;return function(b){return(a||(a=Re(S0)))(b||S0)}}();
S0.\u0275cmp=y({type:S0,selectors:[["b-edit-hotlist-header"]],inputs:{hotlistId:"hotlistId"},standalone:!1,features:[Bg,ov],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&&(J(0,"header",0)(1,"h2")(2,"span",1),R(3),K(),F(4,sDb,1,1),U(5,"async"),K(),F(6,tDb,2,0,"strong",2),U(7,"async"),F(8,uDb,1,0,"b-spinner"),K());if(a&2){var c,d;x(3);T(" Hotlist ",b.hotlistId,": ");x();G((c=V(5,4,b.hotlist$))?4:-1,c);x(2);
G(((d=V(7,6,b.hotlist$))==null?0:d.archived)?6:-1);x(2);G(b.isThinking(b.hotlistId)?8:-1)}},dependencies:[yN,Tv],styles:["[_nghost-%COMP%] {\n      display: block;\n    }"]});var T0=function(){Z.apply(this,arguments);this.activeSession=r(Bs);this.ROUTES=Dq;this.id$=new sg(1);this.enableBulkEditUi=!this.activeSession.userRequiresCaptcha()};Y(T0,Z);T0.\u0275dir=Z.\u0275dir;T0.prototype.ngOnChanges=function(a){var b;(a=(b=a.hotlistId)==null?void 0:b.currentValue)&&this.id$.next(a)};T0.prototype.onPressBack=function(){var a;(a=window.history)==null||a.back()};T0.\u0275fac=function(){var a;return function(b){return(a||(a=Re(T0)))(b||T0)}}();
T0.\u0275cmp=y({type:T0,selectors:[["b-edit-hotlist-toolbar"]],inputs:{hotlistId:"hotlistId"},standalone:!1,features:[Bg,ov],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&&(J(0,"section",0)(1,
"b-button",1),N("onAction",function(){return b.onPressBack()}),M(2,"b-icon",2),K(),J(3,"a",3),R(4," View Issues "),K(),F(5,vDb,2,3,"hotlist-add-issue-btn",4),K());a&2&&(x(3),I("href",b.ROUTES.viewHotlist.makeHref(b.hotlistId),hf),x(2),G(b.enableBulkEditUi?5:-1))},dependencies:[oG,Jx,zG,xG,AG,eL,N0,Tv],styles:[".button-bar[_ngcontent-%COMP%] {\n      display: flex;\n      align-items: center;\n      height: 46px;\n      box-sizing: border-box;\n    }"]});var ocd=new Map([[403,"You do not have permission to view this Hotlist."],[404,"This Hotlist does not exist."]]),U0=function(){this.routeParams=r(EK);this.pageTitle=r(EY);this.permissions=r(DF);this.hotlists=r(cD);this.window=r(HJ);this.id=this.routeParams.hotlistId;this.resourceId="hotlists/"+this.id;this.isAdmin$=this.permissions.watch(this.resourceId).pipe(C(function(a){return a==null?void 0:a.admin}));this.hotlistErrorMsg$=this.hotlists.error$.pipe(C(function(a){var b;return(b=a.status)!=null?
b:-1}),C(function(a){var b;return(b=ocd.get(a))!=null?b:"unknown error"}),wg(void 0));this.tabIndex=0};U0.prototype.ngOnInit=function(){this.pageTitle.setTitle("Edit Hotlist "+this.id);this.window.location.hash.includes("access")&&(this.tabIndex=1)};U0.\u0275fac=function(a){return new (a||U0)};
U0.\u0275cmp=y({type:U0,selectors:[["edit-hotlist"]],standalone:!1,decls:4,vars:6,consts:[[3,"hotlistId"],[1,"bv2-view"],["gmat-tabs","",3,"selectedIndex"],["label","Basic Information"],[3,"hotlistId","isReadOnly"],["label","Access Control"],[1,"muted","padded-x"],[1,"padded-x"]],template:function(a,b){a&1&&(F(0,xDb,12,14),U(1,"async"),F(2,yDb,6,1),U(3,"async"));if(a&2){var c;G(V(1,2,b.hotlistErrorMsg$)===void 0?0:-1);x(2);G((c=V(3,4,b.hotlistErrorMsg$))?2:-1,c)}},dependencies:[ON,JN,KN,oH,Q0,R0,
S0,T0,Tv],encapsulation:2});var V0=function(){};V0.\u0275fac=function(a){return new (a||V0)};V0.\u0275cmp=y({type:V0,selectors:[["b-error-banner"]],inputs:{error:"error"},standalone:!1,decls:1,vars:1,consts:[["messageType","error"]],template:function(a,b){a&1&&F(0,zDb,3,1,"b-callout",0);a&2&&G(b.error?0:-1)},dependencies:[WO,XO],encapsulation:2});var W0=function(){};W0.\u0275fac=function(a){return new (a||W0)};W0.\u0275mod=uf({type:W0});W0.\u0275inj=Dd({imports:[HC,TQ]});var X0=function(){};X0.\u0275fac=function(a){return new (a||X0)};X0.\u0275mod=uf({type:X0});X0.\u0275inj=Dd({imports:[HC,Ay,BG,CG,DG,jQ,QN,gL,AN,W0,zQ,yH]});var Y0=function(){};Y0.\u0275fac=function(a){return new (a||Y0)};Y0.\u0275mod=uf({type:Y0});Y0.\u0275inj=Dd({imports:[sY,DG,PV,HC,qQ,ZZ,X0,C_,gL,BG,wK,CG,D_,TV,v_]});var Z0=function(){Z.call(this);this.element=r(Te);this.bLocation=r(DH);this.hotkeys=r(PG);this.cdr=r(NE,{self:!0});this.focusedIndex=0;this.convertUserToString=zj;this.hotlists=[];this.registerKeys()};Y(Z0,Z);Z0.\u0275dir=Z.\u0275dir;g=Z0.prototype;g.setFocusOnIndex=function(a){this.focusedIndex=a};g.isFocused=function(a){return this.focusedIndex===a};g.selectNext=function(){this.focusedIndex+1>=this.hotlists.length||(this.focusedIndex++,this.scrollToFocusedIndex())};
g.selectPrevious=function(){this.focusedIndex-1<0||(this.focusedIndex--,this.scrollToFocusedIndex())};
g.registerKeys=function(){var a=this,b=QG(this.hotkeys,{title:"Browse Controls",hotkeys:[{keys:["j","DOWN"],displayAs:"j / Down",description:"Move to the next hotlist",onPress:function(){a.selectNext();a.cdr.detectChanges()}},{keys:["k","UP"],displayAs:"k / Up",description:"Move to the previous hotlist",onPress:function(){a.selectPrevious();a.cdr.detectChanges()}},{keys:["ENTER"],displayAs:"Enter",description:"View hotlist detail",onPress:function(){var c=a.hotlists[a.focusedIndex];c&&a.editHotlist(c)}}]});
this.destroyed$.subscribe(b)};g.scrollToFocusedIndex=function(){var a=this.element.nativeElement.parentElement;if(a){var b,c,d=(b=this.element.nativeElement.querySelector("table"))==null?void 0:(c=b.rows)==null?void 0:c[this.focusedIndex];if(d){b=a.getBoundingClientRect();a=b.top;b=b.bottom;c=d.getBoundingClientRect();var e=c.bottom;c.top<a?d.scrollIntoView(!1):e>b&&d.scrollIntoView(!0)}}};g.renderRowLabel=function(a){return this.hotlists[a].name};g.editHotlist=function(a){this.bLocation.path(Dq.editHotlist.makeHref(a.hotlistId))};
Z0.\u0275fac=function(a){return new (a||Z0)};
Z0.\u0275cmp=y({type:Z0,selectors:[["b-hotlist-grid"]],inputs:{hotlists:"hotlists"},standalone:!1,features:[Fh([NE]),Bg],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&&(J(0,"table",0)(1,"thead")(2,"tr",1),M(3,"th",2),J(4,"th")(5,"div",3)(6,"div",4)(7,"div",5),R(8," Hotlist name "),K()()()(),J(9,"th")(10,"div",3)(11,"div",4)(12,"div",5),R(13," Description "),K()()()(),J(14,"th")(15,"div",3)(16,"div",4)(17,"div",5),R(18," Admins "),
K()()()(),J(19,"th")(20,"div",3)(21,"div",4)(22,"div",5),R(23," ID "),K()()()()()(),J(24,"tbody"),Pg(25,CDb,12,8,"tr",6,Og),K()());a&2&&(x(25),Qg(b.hotlists))},encapsulation:2});var a1=function(){};a1.\u0275fac=function(a){return new (a||a1)};a1.\u0275mod=uf({type:a1});a1.\u0275inj=Dd({imports:[HC]});var b1=function(){this.bLocation=r(DH);this.butterBar=r(GJ)},pcd=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};b1.prototype.getCount=function(){var a=pcd(this,"c");return a?kj(a):null};var qcd=function(a){return(a=pcd(a,"p"))?kj(a):null};b1.prototype.getQuery=function(){return pcd(this,"q")};
b1.prototype.getDisplayColumns=function(){var a=this.bLocation.search().d;return a?(Array.isArray(a)?a:[a]).map(Tr).filter(Qj):null};b1.prototype.getSortColumns=function(){var a=this.bLocation.search().s;return a?(Array.isArray(a)?a:[a]).map(Bpb).filter(Qj):null};
var c1=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 rcd(e)}));b.sortColumns!==void 0&&d("s",b.sortColumns==null?null:(b.sortColumns||[]).map(function(e){var f=e.direction=="ASCENDING"?"asc":"desc";return rcd(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)},rcd=function(a){return a.isCustomField()?String(a.customFieldId):a.type.toLowerCase()};b1.\u0275fac=function(a){return new (a||b1)};b1.\u0275prov=Cd({token:b1,factory:b1.\u0275fac,providedIn:"root"});var d1=function(){this.urlPreferences=r(b1);this.userPreferencesManager=r(iG);this.customFieldFridge=r(nD)};d1.prototype.fetch=function(a,b){a=this.getParameters(a,b===void 0?null:b);return{searchPreferences:Aq({page:a.page,query:a.query,resultsPerPage:a.resultsPerPage,sortColumns:a.sortColumns}),displayColumns:a.displayColumns}};
d1.prototype.getParameters=function(a,b){var c=this,d=b?function(){return scd(b)}:function(){return tcd(c)},e=b?function(){return ucd(b)}:function(){return vcd(c)};d=Promise.resolve(this.urlPreferences.getDisplayColumns()).then(function(k){return e1(k)}).then(null,d).then(function(k){return e1(k)}).then(null,zmc(a.displayColumns)).then(function(k){return wcd(c,k)});e=Promise.resolve(this.urlPreferences.getSortColumns()).then(function(k){return e1(k)}).then(null,e).then(function(k){return e1(k)}).then(null,
zmc(a.sortColumns));var f=Promise.resolve(this.urlPreferences.getCount()).then(function(k){return e1(k)}).then(null,function(){return xcd(c)}).then(function(k){return e1(k)}).then(null,zmc(a.resultsPerPage)),h=Promise.resolve(this.urlPreferences.getQuery()).then(function(k){return e1(k)}).then(null,function(){return ycd(b,function(k){return k.query})}).then(null,zmc(a.query));a=qcd(this.urlPreferences)||a.page;return{displayColumns:d,sortColumns:e,resultsPerPage:f,query:h,page:a}};
var e1=function(a){return a==null?Promise.reject(null):a},scd=function(a){return ycd(a,function(b){return b.displayColumn}).then(function(b){return zcd(b)})},ucd=function(a){return ycd(a,function(b){return b.sortOrder}).then(function(b){return Acd(b)})},vcd=function(a){return Rf(a.userPreferencesManager.sortColumnsPreferences$).then(function(b){return e1(b)}).then(function(b){return Acd(b)})},tcd=function(a){return Rf(a.userPreferencesManager.displayColumnsPreferences$).then(function(b){return e1(b)}).then(function(b){return zcd(b)})},
xcd=function(a){return Rf(a.userPreferencesManager.preferences$.pipe(C(function(b){var c;return(c=b.resultsPerPage)!=null?c:null}))).then(function(b){return e1(b)})},ycd=function(a,b){return a?a.then(function(c){c=b(c);return c==null?Promise.reject(null):c}):Promise.reject(null)},zcd=function(a){if(!a||!a.length)return null;a=rj(a,function(b){return b.customFieldId||b.customFieldName||b.type});return a.map(function(b){return new Sr({customFieldId:b.customFieldId||void 0,customFieldName:b.customFieldName||
void 0,type:b.type})})},Acd=function(a){return a&&a.length?a.map(function(b){return b.column!==void 0?new Vr(new Sr(b.column),b.order):new Vr(new Sr(b.field),b.direction)}).filter(function(b){return b.fieldId.type!="CUSTOM_FIELD"||b.fieldId.customFieldId!=null}):null},wcd=function(a,b){function c(){for(var k=l(b),q=k.next();!q.done;q=k.next())if(q=q.value,q.isCustomField()&&!q.customFieldName){var v=d[q.customFieldId];q.customFieldName=v?v:"Custom field "+q.customFieldId}return b}if(!b)return Promise.resolve([]);
for(var d={},e=[],f=l(b),h=f.next();!h.done;h=f.next())h=h.value,h.customFieldId&&h.isCustomField()&&(h.customFieldName?d[h.customFieldId]=h.customFieldName:e.push(Rf(a.customFieldFridge.watch(h.customFieldId)).then(function(k){k&&(d[k.customFieldId]=k.name)})));return Promise.all(e).then(c,c)};d1.\u0275fac=function(a){return new (a||d1)};d1.\u0275prov=Cd({token:d1,factory:d1.\u0275fac,providedIn:"root"});var f1=function(){Z.call(this);var a=this;this.cdr=r(NE);this.bLocation=r(DH);this.$log=r(ME);this.butterBar=r(GJ);this.analytics=r(RE);this.issuePagination=r(DY);this.gridPreferencesFetcher=r(d1);this.paths=r(oN);this.errorHandler=r(aK);this.domSafe=r(UK);this.timeout=r(wD);this.hotkeys=r(PG);this.appSearchState=r(bX);this.componentFridge=r(BB);this.issueFullFridge=r(TE);this.activeSession=r(Bs);this.window=r(HJ);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 LE;this.resultsLoaded=new LE;this.selectionChange=new LE;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||lAb(b)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue in the current panel",onPress:function(){var b;(b=a.issuesGrid)==null||mAb(b)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var b;(b=a.issuesGrid)==null||Zbd(b)}},{keys:["s"],displayAs:"s",description:"Star/Unstar the current issue",onPress:function(){var b;(b=a.issuesGrid)==null||acd(b)}},{keys:[qp("i")],displayAs:"Shift+i",description:"Mark as read",
onPress:function(){var b;(b=a.issuesGrid)==null||bcd(b,!0)}},{keys:[qp("u")],displayAs:"Shift+u",description:"Mark as unread",onPress:function(){var b;(b=a.issuesGrid)==null||bcd(b,!1)}},{keys:[rp("*","a")],displayAs:"* then a",description:"Select all issues in the current panel",onPress:function(){var b;(b=a.issuesGrid)==null||b.selectAll()}},{keys:[rp("*","n")],displayAs:"* then n",description:"Deselect all issues in the current panel",onPress:function(){var b;(b=a.issuesGrid)==null||Wbd(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||J0(d)}else{var e;(e=a.issuesGrid)==null||J0(e)}}}];this.destroyed$.subscribe(function(){var b;(b=a.unregisterHotkeys)==null||b.call(a)})};Y(f1,Z);f1.\u0275dir=Z.\u0275dir;
f1.prototype.columnsChange=function(a){this.issueColumns=a};f1.prototype.ngOnInit=function(){this.getIssues();Bcd(this)};var Bcd=function(a){var b;(b=a.unregisterHotkeys)==null||b.call(a);a.isFocused?a.unregisterHotkeys=QG(a.hotkeys,{title:"Bookmark Group Dashboard",hotkeys:a.BASE_HOTKEYS}):a.unregisterHotkeys=void 0},WDb=function(a,b){a.issuesGrid=b;$bd(a.issuesGrid,function(){var c,d={panelId:a.panel.panelId,selectedIssues:(c=a.issuesGrid)==null?void 0:c.getSelectedIssues()};a.selectionChange.emit(d)})};
g=f1.prototype;g.setSort=function(a,b,c){c=c===void 0?!0:c;var d=Tr(a);if(d==null)this.$log.warn("WARNING: Invalid column name: "+a);else{var e=new Vr(d,b=="ASC"?"ASCENDING":"DESCENDING");Ga(this.sortPreferences,function(f){return gj(f.fieldId,e.fieldId)});this.sortPreferences=c?[e].concat(this.sortPreferences.slice(0,2)):[e];this.page=1;this.refreshResults()}};
g.getSort=function(){if(!this.sortPreferences.length)return null;var a=this.sortPreferences[0];a={field:a.fieldId.type=="CUSTOM_FIELD"?String(a.fieldId.customFieldId):ksa(a.fieldId.type),direction:a.direction=="ASCENDING"?"ASC":"DESC"};gj(a,this.cachedSort)||(this.cachedSort=a);return this.cachedSort};g.initColumns=function(a,b){this.displayColumns=a;this.issueColumnsInternal=[].concat(p(b),p(Xvb(a)));this.initialIssueColumns=hj(this.issueColumns);this.isColumnSaveEnabled=!0};
g.goToIssue=function(a,b,c){c&&c.target.tagName==="A"||(this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"viewIssue",b?"read":"unread"),a=Fq(a),c&&kn(c)?this.domSafe.openInNewTab(a):this.bLocation.setUrl(a))};g.goToPage=function(a){this.page=a;this.getIssues()};g.refreshResults=function(){R7c(this.issuePagination);this.getIssues()};g.exportCsv=function(){VK(this.domSafe,this.getCsvUrl())};g.getCsvUrl=function(){this.$log.warn("WARNING: Method getCsvUrl() not implemented.");return""};
g.getIssues=function(){var a=this;this.searchResults=null;this.isLoading=!0;var b=this.resource?Promise.resolve(this.resource):this.loadResource();return this.doSearch(b).catch(function(c){a.$log.warn("WARNING: unable to doSearch()",c)}).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
g.doSearch=function(a){var b=this,c=this.getGridPreferencesDefaults(),d=this.gridPreferencesFetcher.fetch(c,a.then(function(){return{query:b.resource.query!=null?b.resource.query:null,displayColumn:b.resource.displayColumn,sortOrder:b.resource.sortOrder}}));a=d.searchPreferences.then(function(e){if(!e.query)return Promise.reject(null);e=b.getSearchParams(e);b.searchParams=e;e.trackerIds=b.appSearchState.currentTrackerScope;return O7c(b.issuePagination,e)});a.catch(function(e){typeof e==="number"?
b.goToPage(e):e&&b.errorHandler.errorHandler(null,e)});return Aq({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=hj(b.sortPreferences));d.displayColumns.then(function(h){b.initColumns(h,b.getMetaColumns(f))});b.resultsLoaded.emit(b.searchResults.issues);
b.timeout.schedule(function(){var h=b.issuePagination.getFocusedIssue();h!=-1&&(b.focusedRowIndex=h-f.startIndex)})})};
g.subscribeToIssueChanges=function(a){var b=this,c;(c=this.issueSubscriptions)==null||c.unsubscribe();this.issueSubscriptions=new yf;a=l(a);for(c=a.next();!c.done;c=a.next())this.issueSubscriptions.add(this.issueFullFridge.watch(c.value.id).pipe(eg(Qj),yg(this.destroyed$)).subscribe(function(d){var e,f;return z(function(h){switch(h.nextAddress){case 1:if(!b.searchResults){h.jumpTo(2);break}if(!d.snapshot[0].componentId){e=void 0;h.jumpTo(3);break}return B(h,Rf(b.componentFridge.watch(d.snapshot[0].componentId,
{trustUncertainMemory:!0})),4);case 4:e=h.yieldResult;case 3:f=e;if(!f||!b.searchResults)return h.return();J7c(b.searchResults,[{issue:d,component:f}]);b.searchResults=b.searchResults.clone();case 2:b.cdr.detectChanges(),Lf(h)}})}))};g.getGridPreferencesDefaults=function(){return{page:this.page,displayColumns:f1.DEFAULT_COLUMNS,sortColumns:[],query:"",resultsPerPage:25}};
g.save=function(){var a=this,b=Yvb(this.issueColumns.slice((this.searchResults?this.getMetaColumns(this.searchResults):f1.DEFAULT_META_COLUMNS).length)).map(function(c){return new Sr(c)});this.resource.displayColumn=b;b=this.sortPreferences.map(function(c){return{direction:c.direction,field:c.fieldId}});this.resource.sortOrder=b;Kq(this.butterBar,"Saving changes to panel...");this.saveResource().then(function(){a.initialIssueColumns=hj(a.issueColumns);a.initialSortPreferences=hj(a.sortPreferences);
a.cdr.detectChanges()})};g.discardChanges=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"discardChanges");this.issueColumns=[].concat(p(this.initialIssueColumns||[]));this.initialSortPreferences&&!gj(this.initialSortPreferences,this.sortPreferences)&&(Gaa(this.sortPreferences),yu(Jaa,this.sortPreferences,void 0,0).apply(null,this.initialSortPreferences),this.refreshResults())};
g.hasParamChanges=function(){return this.resource&&this.isEditable()?this.initialIssueColumns&&!gj(this.initialIssueColumns,this.issueColumns)?!0:!!this.initialSortPreferences&&!gj(this.initialSortPreferences,this.sortPreferences):!1};g.isEditable=function(){var a=this;return!!this.resource&&this.resource.adminUsers.some(function(b){return b.emailAddress===a.currentUserEmail})};g.getMetaColumns=function(){return f1.DEFAULT_META_COLUMNS};
g.getSearchParams=function(a){a=hj(a);a.resultsPerPage=10;a.page=this.page;this.sortPreferences.length&&(a.sortColumns=this.sortPreferences);a.returnUrl=this.bLocation.getUrl();return a};
nd.Object.defineProperties(f1.prototype,{issueColumns:{configurable:!0,enumerable:!0,get:function(){return this.issueColumnsInternal},set:function(a){gj(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&&Bcd(this)},
get:function(){return this.focusedRowIndexInternal}},isFocused:{configurable:!0,enumerable:!0,get:function(){return this.focusedRowIndex!==null}}});f1.DEFAULT_META_COLUMNS=[K0,L0,M0];f1.DEFAULT_COLUMNS=sad.map(Tr).filter(Qj);f1.\u0275fac=function(a){return new (a||f1)};
f1.\u0275cmp=y({type:f1,selectors:[["b-base-issues-list"]],viewQuery:function(a,b){a&1&&hh(I0,5);if(a&2){var c;lh(c=mh())&&(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:[Bg],decls:0,vars:0,template:function(){},encapsulation:2});var g1=function(){this.dialog=r(YJ);this.appEvents=r(FB);this.last=this.first=!1};g1.prototype.removePanel=function(){var a=this;this.dialog.open({title:"Remove Item?",content:Xi("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)}})};g1.\u0275fac=function(a){return new (a||g1)};
g1.\u0275cmp=y({type:g1,selectors:[["b-panel-controls"]],inputs:{panelId:"panelId",first:"first",last:"last"},standalone:!1,decls:6,vars:1,consts:[["menu",""],["type","button","mat-icon-button","","aria-label","Customize list view",1,"small","bv2-grid-settings-button",3,"matMenuTriggerFor"],["svgIcon","arrow-dropdown",1,"icon-s"],["matMenuContent",""],["type","button","mat-menu-item","",1,"bv2-panel-move-to-top-menuitem"],["type","button","mat-menu-item","",1,"bv2-panel-move-up-menuitem"],["type",
"button","mat-menu-item","",1,"bv2-panel-move-down-menuitem"],["type","button","mat-menu-item","",1,"bv2-panel-move-to-bottom-menuitem"],["type","button","mat-menu-item","",1,"bv2-panel-remove-edit-menuitem",3,"click"],["type","button","mat-menu-item","",1,"bv2-panel-move-to-top-menuitem",3,"click"],["type","button","mat-menu-item","",1,"bv2-panel-move-up-menuitem",3,"click"],["type","button","mat-menu-item","",1,"bv2-panel-move-down-menuitem",3,"click"],["type","button","mat-menu-item","",1,"bv2-panel-move-to-bottom-menuitem",
3,"click"]],template:function(a){a&1&&(J(0,"div")(1,"button",1),M(2,"mat-icon",2),K(),J(3,"mat-menu",null,0),D(5,HDb,6,4,"ng-template",3),K()());a&2&&(a=Q(4),x(),I("matMenuTriggerFor",a))},dependencies:[FC,pG,sG,qG,rG,uG,oG,Kx],encapsulation:2});var h1=function(){};h1.\u0275fac=function(a){return new (a||h1)};h1.\u0275mod=uf({type:h1});h1.\u0275inj=Dd({imports:[HC,mH,BG]});var i1=function(){};i1.\u0275fac=function(a){return new (a||i1)};i1.\u0275mod=uf({type:i1});i1.\u0275inj=Dd({imports:[HC,tJ]});var j1=function(){};j1.\u0275fac=function(a){return new (a||j1)};j1.\u0275mod=uf({type:j1});j1.\u0275inj=Dd({imports:[HC,i1]});var k1=function(){};k1.\u0275fac=function(a){return new (a||k1)};k1.\u0275mod=uf({type:k1});k1.\u0275inj=Dd({imports:[HC,tJ,j1]});var l1=function(){};l1.prototype.getValue=function(){return this.row[this.column.name]||""};l1.prototype.isCustomField=function(){return this.column.isCustomField};l1.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 gj(this.customFieldValue,a)||(this.customFieldValue=a),this.customFieldValue};
l1.\u0275fac=function(a){return new (a||l1)};l1.\u0275cmp=y({type:l1,selectors:[["pop-grid-default-cell"]],inputs:{row:"row",column:"column"},standalone:!1,decls:2,vars:2,consts:[[3,"customFieldValue"]],template:function(a,b){a&1&&(F(0,IDb,2,2,"span"),F(1,JDb,1,1,"b-custom-field-value-display",0));a&2&&(G(b.isCustomField()?-1:0),x(),G(b.isCustomField()?1:-1))},dependencies:[l_],encapsulation:2,changeDetection:0});var m1=function(){};m1.\u0275fac=function(a){return new (a||m1)};m1.\u0275mod=uf({type:m1});m1.\u0275inj=Dd({imports:[HC,CG,m_]});xna(Y_,[Sv,d0,l1],[]);var n1=function(){};n1.\u0275fac=function(a){return new (a||n1)};n1.\u0275mod=uf({type:n1});n1.\u0275inj=Dd({imports:[HC,mH,zL,CG,BG,gL,m1]});var o1=function(){};o1.\u0275fac=function(a){return new (a||o1)};o1.\u0275mod=uf({type:o1});o1.\u0275inj=Dd({imports:[HC,i1]});var p1=function(){};p1.\u0275fac=function(a){return new (a||p1)};p1.\u0275mod=uf({type:p1});p1.\u0275inj=Dd({imports:[aw,Ay,WU,By]});var q1=function(){};q1.\u0275fac=function(a){return new (a||q1)};q1.\u0275mod=uf({type:q1});q1.\u0275inj=Dd({imports:[HC,CG,YV,FZ,p1,tJ]});var r1=function(){};r1.\u0275fac=function(a){return new (a||r1)};r1.\u0275mod=uf({type:r1});r1.\u0275inj=Dd({imports:[HC,CG,YV,tJ]});var s1=function(){};s1.\u0275fac=function(a){return new (a||s1)};s1.\u0275mod=uf({type:s1});s1.\u0275inj=Dd({imports:[HC,NU,AL,By,hQ]});var t1=function(){};t1.\u0275fac=function(a){return new (a||t1)};t1.\u0275mod=uf({type:t1});t1.\u0275inj=Dd({imports:[HC,CG,BG,tJ,o1,JL,j1,s1,ox,hL]});var u1=function(){};u1.\u0275fac=function(a){return new (a||u1)};u1.\u0275mod=uf({type:u1});u1.\u0275inj=Dd({imports:[DG,TQ,HC,Ay,BG,wK,RN,jQ,CG,FZ]});var Ccd={},Dcd=(Ccd.COMFORTABLE=330,Ccd.COZY=300,Ccd.COMPACT=270,Ccd),v1=function(){Z.call(this);var a=this;this.userPreferencesManager=r(iG);this.RIGHT_SIDEBAR_MIN_WIDTH=245;this.density$=this.userPreferencesManager.preferences$.pipe(C(function(b){var c;return(c=b.themePreferences)==null?void 0:c.density}));this.sidebarWidthPreference$=this.userPreferencesManager.preferences$.pipe(C(function(b){var c;return(c=b.layoutPreferences)==null?void 0:c.rightSidebarWidth}));this.rightSidebarWidthChanged$=
new tg;this.currentSidebarWidth$=Uf([this.density$,this.sidebarWidthPreference$,this.rightSidebarWidthChanged$.pipe(wg(void 0))]).pipe(C(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:Dcd[b!=null?b:"COMFORTABLE"]}));Uf([this.rightSidebarWidthChanged$.pipe(og()),this.sidebarWidthPreference$]).pipe(eg(function(b){var c=l(b);b=c.next().value;return c.next().value!==b}),xg(function(b){var c=l(b);b=c.next().value;c.next();return xzc(a.userPreferencesManager,
{rightSidebarWidth:b})}),yg(this.destroyed$)).subscribe()};Y(v1,Z);v1.\u0275dir=Z.\u0275dir;v1.prototype.ngOnInit=function(){};v1.\u0275fac=function(a){return new (a||v1)};
v1.\u0275cmp=y({type:v1,selectors:[["issue-metadata-sidebar"]],inputs:{issueId:"issueId"},standalone:!1,features:[Bg],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&&(J(0,"h3",0),R(1,"Issue metadata"),K(),J(2,"b-resizable-sidebar",1),U(3,"async"),N("widthChanged",function(d){return b.rightSidebarWidthChanged$.next(d)}),J(4,"div",2)(5,"div",3),F(6,KDb,1,1,"edit-issue-metadata",
4),K()()());if(a&2){x(2);var c;I("minWidth",b.RIGHT_SIDEBAR_MIN_WIDTH)("size",(c=V(3,3,b.currentSidebarWidth$))!=null?c:0);x(4);G(b.issueId?6:-1)}},dependencies:[qH,C0,Tv],styles:["[_nghost-%COMP%] {\n      display: inherit;\n    }"],changeDetection:0});var w1=function(){};w1.\u0275fac=function(a){return new (a||w1)};w1.\u0275mod=uf({type:w1});w1.\u0275inj=Dd({imports:[nL,sM,HC,EU,DL,q1,r1,YV,SG,tJ,CQ,t1,PM,CG,yH,u1,YU,pQ,CM,gW,RV,bW,aW]});var x1=function(){};x1.\u0275fac=function(a){return new (a||x1)};x1.\u0275mod=uf({type:x1});x1.\u0275inj=Dd({imports:[BG,CG,Ay,EM,GM,Ty,vM,CM,HC,DQ,hL,nL,AN,w1,kQ,hO,BQ]});var y1=function(){};y1.\u0275fac=function(a){return new (a||y1)};y1.\u0275mod=uf({type:y1});y1.\u0275inj=Dd({imports:[HC,tJ]});var z1=function(){};z1.\u0275fac=function(a){return new (a||z1)};z1.\u0275mod=uf({type:z1});z1.\u0275inj=Dd({imports:[HC,y1,JL]});var A1=function(){};A1.\u0275fac=function(a){return new (a||A1)};A1.\u0275mod=uf({type:A1});A1.\u0275inj=Dd({imports:[g0,HC,mH,zL,CG,BG,wK,Dx,bY,gL,m1,i1,k1,JL,o1,nL,uJ,VU,z1,OQ,qQ,gY,k_,tJ,CQ,x1,qM,KQ,AQ,X_,n1]});var B1=function(){this.hotlistsApi=r(YC);this.butterBar=r(GJ);this.appEvents=r(FB)};
B1.prototype.repositionIssue=function(a,b,c,d,e,f){var h=this,k=b[0].position,q=k>b[1].position,v=b[c],A=b[d].position;Paa(b,c,d);f==null||f();Kq(this.butterBar,"Saving...",0);return this.hotlistsApi.repositionHotlistIssue(a,v.issueId,A).then(function(){for(var E=k,H=l(b),L=H.next();!L.done;L=H.next())L.value.position=E,E+=q?-1:1;f==null||f();Kq(h.butterBar,"Saved issue position.",4E3);h.appEvents.hotlistChanged.next({hotlistId:a,origin:e});return h.hotlistsApi.get(a)})};
B1.\u0275fac=function(a){return new (a||B1)};B1.\u0275prov=Cd({token:B1,factory:B1.\u0275fac,providedIn:"root"});var C1=function(){this.pageChange=new LE;this.resultsPerPageChange=new LE;this.resultsPerPageFixed=!1;this.resultsPerPageOptions=[10,25,50,100,250]};C1.prototype.nextPage=function(){this.searchResults&&this.pageChange.emit({page:this.searchResults.params.page+1})};C1.prototype.prevPage=function(){this.searchResults&&this.pageChange.emit({page:this.searchResults.params.page-1})};
nd.Object.defineProperties(C1.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}})}}});C1.\u0275fac=function(a){return new (a||C1)};
C1.\u0275cmp=y({type:C1,selectors:[["b-pagination"]],inputs:{searchResults:"searchResults",resultsPerPageFixed:"resultsPerPageFixed"},outputs:{pageChange:"pageChange",resultsPerPageChange:"resultsPerPageChange"},standalone:!1,decls:7,vars:4,consts:[[1,"bv2-appbar-page"],["header","Results per page:","buttonLabel","Results per page","buttonIcon","arrow-dropdown",3,"menuItems"],["aria-live","polite","role","alert",1,"bv2-appbar-pagenums"],["type","button","mat-icon-button","","focusBack","","color",
"primary","mat-tooltip","Go to previous page","aria-label","Go to previous page",1,"large","left","compact",3,"click","keydown.enter","disabled"],["svgIcon","arrow-left",1,"large"],["type","button","mat-icon-button","","focusBack","","color","primary","mat-tooltip","Go to next page","aria-label","Go to next page",1,"large","right","compact",3,"click","keydown.enter","disabled"],["svgIcon","arrow-right",1,"large"]],template:function(a,b){a&1&&(J(0,"div",0),F(1,LDb,1,1,"b-actions-menu",1),F(2,MDb,6,
3,"span",2),J(3,"button",3),N("click",function(){return b.prevPage()})("keydown.enter",function(c){b.prevPage();return c.stopPropagation()}),M(4,"mat-icon",4),K(),J(5,"button",5),N("click",function(){return b.nextPage()})("keydown.enter",function(c){b.nextPage();return c.stopPropagation()}),M(6,"mat-icon",6),K()());a&2&&(x(),G(b.searchResults&&b.searchResults.issues.length>0&&!b.resultsPerPageFixed?1:-1),x(),G(b.searchResults&&b.searchResults.issues.length>0?2:-1),x(),I("disabled",!(b.searchResults==
null?0:b.searchResults.hasPreviousPage())),x(2),I("disabled",!(b.searchResults==null?0:b.searchResults.hasNextPage())))},dependencies:[FC,oG,Kx,sS,eS],encapsulation:2});var D1=function(){};D1.\u0275fac=function(a){return new (a||D1)};D1.\u0275mod=uf({type:D1});D1.\u0275inj=Dd({imports:[HC,BG,rT,fY]});var E1=function(){f1.apply(this,arguments);this.hotlists=r(B1);this.hotlistApi=r(YC);this.appEvents=r(FB);this.ROUTES=Dq;this.resource=null};Y(E1,f1);E1.\u0275dir=f1.\u0275dir;g=E1.prototype;g.ngOnInit=function(){f1.prototype.ngOnInit.call(this)};g.setSort=function(a,b){var c=this.getSort();a==="position"||c&&c.field==="position"?f1.prototype.setSort.call(this,a,b,!1):f1.prototype.setSort.call(this,a,b)};
g.loadResource=function(){var a=this,b=this.hotlistApi.get(this.hotlistId);b.then(function(c){a.resource=c;a.cdr.detectChanges()}).catch(function(c){a.errorHandler.errorHandler(null,c);a.resource=null});return b};
g.saveResource=function(){var a=this;if(this.resource)return this.hotlistApi.updateMetadata(this.hotlistId,this.resource).then(function(b){a.resource=b;a.appEvents.hotlistChanged.next({hotlistId:b.hotlistId,origin:"hotlist-panel"});Kq(a.butterBar,'Saved changes to hotlist "'+b.name+'".');a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"savedParams");a.cdr.detectChanges();return b}).catch(function(b){a.errorHandler.errorHandler(null,b);return Promise.reject(b)});this.butterBar.showWarning("Hotlist is not set at this time.");
return Promise.resolve()};g.getGridPreferencesDefaults=function(){return Object.assign({},f1.prototype.getGridPreferencesDefaults.call(this),{query:"hotlistId:"+this.hotlistId})};g.getMetaColumns=function(a){a=a.params.sortColumns||[];return a.length==0||a.length==1&&a[0].fieldId.type=="POSITION"?Ecd:Fcd};g.getSearchParams=function(a){a=f1.prototype.getSearchParams.call(this,a);a.hotlistId=this.hotlistId;return a};
g.repositionIssue=function(a,b){var c=this;this.searchResults&&this.hotlists.repositionIssue(this.hotlistId,this.searchResults.issues,a,b,"hotlist-panel",function(){c.searchResults&&(c.searchResults=c.searchResults.clone())}).then(function(d){c.resource=d;c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"issueDragDrop")})};E1.\u0275fac=function(){var a;return function(b){return(a||(a=Re(E1)))(b||E1)}}();
E1.\u0275cmp=y({type:E1,selectors:[["b-hotlist-panel"]],inputs:{hotlistId:"hotlistId"},standalone:!1,features:[Fh([NE]),Bg],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&&(J(0,"div",0)(1,"div",1)(2,"div",2),F(3,NDb,2,0,"div"),F(4,ODb,2,0,"div"),F(5,RDb,8,6,"div"),K(),F(6,SDb,5,0,"div",3),J(7,"b-pagination",4),N("pageChange",function(c){return b.goToPage(c.page)}),K()(),F(8,YDb,4,3,"div"),K());a&2&&(Lg("aria-busy",b.isLoading),x(3),G(b.resource||b.isLoading?-1:3),x(),G(!b.resource&&b.isLoading?4:-1),x(),G(b.resource?5:-1),x(),G(b.hasParamChanges()?6:-1),x(),I("searchResults",b.searchResults)("resultsPerPageFixed",!0),x(),G(b.resource?
8:-1))},dependencies:[I0,oG,Jx,zG,xG,C1,g1,yN],encapsulation:2});var Fcd=[K0,L0,M0,dcd],Ecd=[K0,ccd,L0,M0,dcd],F1=function(){};F1.\u0275fac=function(a){return new (a||F1)};F1.\u0275mod=uf({type:F1});F1.\u0275inj=Dd({imports:[HC,A1,BG,CG,D1,h1,AN]});var G1=function(){f1.apply(this,arguments);this.savedSearchApi=r(fD);this.resource=null};Y(G1,f1);G1.\u0275dir=f1.\u0275dir;G1.prototype.ngOnInit=function(){f1.prototype.ngOnInit.call(this)};G1.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};G1.prototype.saveResource=function(){return Promise.resolve()};
G1.\u0275fac=function(){var a;return function(b){return(a||(a=Re(G1)))(b||G1)}}();
G1.\u0275cmp=y({type:G1,selectors:[["b-saved-search-panel"]],inputs:{savedSearchId:"savedSearchId"},standalone:!1,features:[Fh([NE]),Bg],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&&(J(0,"div",0)(1,"div",1)(2,"div",2),F(3,ZDb,2,0,"div"),F(4,$Db,2,0,"div"),F(5,cEb,8,6,"div",3),K(),J(6,"b-pagination",4),N("pageChange",function(c){return b.goToPage(c.page)}),K()(),F(7,hEb,4,3,"div"),K());a&
2&&(Lg("aria-busy",b.isLoading),x(3),G(b.resource||b.isLoading?-1:3),x(),G(!b.resource&&b.isLoading?4:-1),x(),G(b.resource?5:-1),x(),I("searchResults",b.searchResults)("resultsPerPageFixed",!0),x(),G(b.resource?7:-1))},dependencies:[I0,zG,xG,C1,g1,yN],encapsulation:2});var H1=function(){};H1.\u0275fac=function(a){return new (a||H1)};H1.\u0275mod=uf({type:H1});H1.\u0275inj=Dd({imports:[HC,A1,CG,D1,h1,AN]});var I1=function(){this.label="Team"};I1.prototype.ngOnInit=function(){};I1.\u0275fac=function(a){return new (a||I1)};
I1.\u0275cmp=y({type:I1,selectors:[["b-team-breadcrumb"]],inputs:{teamPath:"teamPath",label:"label"},standalone:!1,decls:4,vars:1,consts:[["role","navigation",1,"breadcrumb"],[1,"breadcrumb-items"],[1,"breadcrumb-item"],[1,"keep-focus-ring",3,"routerLink","preserveFragment"]],template:function(a,b){a&1&&(J(0,"div",0)(1,"span",1),Pg(2,iEb,3,4,"span",2,Og),K()());a&2&&(Lg("aria-label",b.label),x(2),Qg(b.teamPath))},dependencies:[xC],encapsulation:2});var J1=function(){};J1.\u0275fac=function(a){return new (a||J1)};J1.\u0275mod=uf({type:J1});J1.\u0275inj=Dd({imports:[HC,oM]});var Gcd=["form"],Hcd=["numberInput"],Icd=/^\d+\.?\d*$/,Jcd={DAYS:0,YEARS:1,0:"DAYS",1:"YEARS"},K1=function(){this.disabled=!1;this.ariaLabel="";this.durationDaysChange=new LE;this.displayUnits=0;this.TimeUnit=Jcd};
K1.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()})};K1.prototype.ngAfterViewInit=function(){};
K1.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))};K1.prototype.ngOnDestroy=function(){this.formSubscription&&this.formSubscription.unsubscribe()};K1.\u0275fac=function(a){return new (a||K1)};
K1.\u0275cmp=y({type:K1,selectors:[["b-duration-picker"]],viewQuery:function(a,b){a&1&&(hh(Gcd,7),hh(Hcd,7));if(a&2){var c;lh(c=mh())&&(b.form=c.first);lh(c=mh())&&(b.numberInput=c.first)}},inputs:{durationDays:"durationDays",disabled:"disabled",ariaLabel:"ariaLabel"},outputs:{durationDaysChange:"durationDaysChange"},standalone:!1,decls:14,vars:7,consts:[["form","ngForm"],["numberInput",""],[1,"duration-picker-form"],"color primary appearance outline subscriptSizing dynamic".split(" "),["matInput",
"","type","number","step","1","min","0","name","numbers",3,"keydown","paste","ngModel","disabled"],["name","unit",3,"ngModel","disabled"],["color","accent",3,"value"]],template:function(a,b){if(a&1){var c=t();J(0,"form",null,0)(2,"div",2)(3,"mat-form-field",3)(4,"mat-label");R(5," Custom Duration ");K();J(6,"input",4,1);N("keydown",function(d){u(c);switch(d.key){case "-":case "e":case "E":d.preventDefault()}return w()})("paste",function(d){u(c);var e=d.clipboardData.getData("Text");Icd.test(e)||d.preventDefault();
return w()});K()();J(8,"mat-form-field",3)(9,"mat-select",5)(10,"mat-option",6);R(11,"days");K();J(12,"mat-option",6);R(13,"year(s)");K()()()()()}a&2&&(x(6),I("ngModel",b.displayNumber)("disabled",b.disabled),Lg("aria-label",b.ariaLabel),x(3),I("ngModel",b.displayUnits)("disabled",b.disabled),x(),I("value",b.TimeUnit.DAYS),x(2),I("value",b.TimeUnit.YEARS))},dependencies:[ly,Ui,my,dy,ey,uy,ky,iy,FM,Uy,My,Fy,DM,bP,jP,Bx],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 L1=function(){};L1.\u0275fac=function(a){return new (a||L1)};L1.\u0275mod=uf({type:L1});L1.\u0275inj=Dd({imports:[HC,Ay,GM,EM,hQ,hO]});var M1=function(){this.dialogRef=r(KJ);this.data=r(QJ);this.documentationLinks=r(JJ)};M1.prototype.getDisablingFieldsHelpLink=function(){return this.documentationLinks.getDisablingFieldsHelpLink()};M1.prototype.onNoClick=function(){this.dialogRef.close(!1)};M1.\u0275fac=function(a){return new (a||M1)};
M1.\u0275cmp=y({type:M1,selectors:[["b-field-state-change-confirmation-dialog"]],standalone:!1,decls:22,vars:6,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],["type","button","mat-stroked-button","",1,"medium",3,"click"],["type","button","mat-flat-button","","color","primary","cdkFocusInitial","",1,"medium","dialog-primary-action",3,"mat-dialog-close"],[1,"notice"],["target","_blank",3,"href"]],template:function(a,b){a&1&&(J(0,"h1",0),R(1),K(),J(2,"div",1)(3,"p"),
R(4," The "),J(5,"strong"),R(6),K(),R(7," field will change state from "),J(8,"strong"),R(9),K(),R(10," to "),J(11,"strong"),R(12),K(),R(13,". "),K(),F(14,jEb,6,2,"p"),J(15,"p"),R(16,"Are you sure?"),K()(),J(17,"div",2)(18,"button",3),N("click",function(){return b.onNoClick()}),R(19," Cancel "),K(),J(20,"button",4),R(21," Confirm "),K()());a&2&&(x(),T("Field State Change for ",b.data.fieldName),x(5),wh(b.data.fieldName),x(3),wh(b.data.oldFieldState),x(3),wh(b.data.newFieldState),x(2),G(b.data.noteText?
14:-1),x(6),I("mat-dialog-close",!0))},dependencies:[oG,Jx,SJ,UJ,WJ,VJ],styles:[".notice[_ngcontent-%COMP%]{font-weight:bold}"]});var Kcd=["fieldStateMenuButton"],N1=function(){this.dialog=r(RJ);this.fieldName="";this.fieldState="INHERIT";this.confirmationDialog=this.enabledOnParent=!0;this.disabled=!1;this.fieldStateChange=new LE;this.FieldState=Gnc;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."}};N1.prototype.ngOnInit=function(){this.updateMenuButton()};N1.prototype.ngOnChanges=function(){this.updateMenuButton()};
var Mcd=function(a,b){b!==a.fieldState&&(a.confirmationDialog?Lcd(a,b):(a.fieldState=b,a.updateMenuButton(),a.fieldStateChange.emit(b)))},Lcd=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);LJ(a.dialog.open(M1,{width:"500px",data:{fieldName:a.fieldName,oldFieldState:Ncd(a,a.fieldState),
newFieldState:Ncd(a,b),noteText:e}})).pipe(mg(1)).subscribe(function(f){f?(a.fieldState=b,a.updateMenuButton(),a.fieldStateChange.emit(b),a.disabled=!0):a.focus()})};N1.prototype.updateMenuButton=function(){this.defaultLabel="Default ("+(this.enabledOnParent?this.msgs.visibleName:this.msgs.hiddenName)+")";this.menuLabel=Ncd(this,this.fieldState)};
var Ncd=function(a,b){switch(b){case "INHERIT":return a.defaultLabel;case "DISABLED":return a.msgs.hiddenName;case "ENABLED":return a.msgs.visibleName;default:pb(b,"Unknown FieldState.")}};N1.prototype.focus=function(){this.disabled=!1;this.fieldStateMenuButton.nativeElement.focus()};N1.\u0275fac=function(a){return new (a||N1)};
N1.\u0275cmp=y({type:N1,selectors:[["b-field-state-menu"]],viewQuery:function(a,b){a&1&&hh(Kcd,5,Te);if(a&2){var c;lh(c=mh())&&(b.fieldStateMenuButton=c.first)}},inputs:{fieldName:"fieldName",fieldState:"fieldState",enabledOnParent:"enabledOnParent",confirmationDialog:"confirmationDialog",disabled:"disabled"},outputs:{fieldStateChange:"fieldStateChange"},standalone:!1,features:[ov],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();J(0,"div")(1,"button",2,0)(3,"div",3);M(4,"span",4)(5,"b-icon",5);K()()();J(6,"mat-menu",null,1)(8,"div",6)(9,"div",7)(10,"button",8);N("click",function(){u(c);return w(Mcd(b,b.FieldState.INHERIT))});M(11,"b-icon",9);J(12,"div",10);R(13);K();J(14,"div",11);R(15);K()()();M(16,"mat-divider");J(17,"button",12);N("click",function(){u(c);
return w(Mcd(b,b.FieldState.DISABLED))});J(18,"div",13)(19,"div",14);M(20,"b-icon",9);J(21,"div",10);R(22);K();J(23,"div",11);R(24);K()()()();J(25,"button",12);N("click",function(){u(c);return w(Mcd(b,b.FieldState.ENABLED))});J(26,"div",13)(27,"div",14);M(28,"b-icon",9);J(29,"div",10);R(30);K();J(31,"div",11);R(32);K()()()()()()}a&2&&(a=Q(7),x(),uh("mat-stroked-button",!b.disabled),I("disabled",b.disabled)("matMenuTriggerFor",a),x(3),I("innerHTML",b.menuLabel,gf),x(6),uh("b-menu-item-checked",b.fieldState===
b.FieldState.INHERIT),x(3),T(" ",b.defaultLabel," "),x(2),T(" ",b.msgs.inheritDescription," "),x(2),uh("b-menu-item-checked",b.fieldState===b.FieldState.DISABLED),x(5),T(" ",b.msgs.hiddenName," "),x(2),T(" ",b.msgs.hiddenDescription," "),x(),uh("b-menu-item-checked",b.fieldState===b.FieldState.ENABLED),x(5),T(" ",b.msgs.visibleName," "),x(2),T(" ",b.msgs.visibleDescription," "))},dependencies:[oG,Jx,pL,pG,sG,qG,uG,eL],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 O1=function(){};O1.\u0275fac=function(a){return new (a||O1)};O1.\u0275mod=uf({type:O1});O1.\u0275inj=Dd({imports:[HC,BG,wK,zL,mH,gL,DG]});var P1=function(){this.dialogRef=r(KJ);this.data=r(QJ);this.issueId=this.data.issueId;this.issueTitle=this.data.issueTitle};P1.prototype.close=function(){this.dialogRef.close(!1)};P1.\u0275fac=function(a){return new (a||P1)};
P1.\u0275cmp=y({type:P1,selectors:[["b-unsubscribe-dialog"]],standalone:!1,decls:21,vars:4,consts:[["mat-dialog-title",""],[1,"gmat-body-2"],[1,"gmat-body-1"],["target","_blank",3,"href"],["type","button","mat-button","",3,"click"],["type","button","mat-flat-button","","cdkFocusInitial","",1,"dialog-primary-action",3,"click"]],template:function(a,b){a&1&&(J(0,"h1",0),R(1,"Unsubscribe From Issue"),K(),J(2,"mat-dialog-content")(3,"div",1),R(4," Are you sure you would like to unsubscribe from the following issue? "),
K(),M(5,"br"),J(6,"div",2)(7,"a",3)(8,"span"),R(9),K()(),R(10," - "),J(11,"span"),R(12),K()(),M(13,"br"),J(14,"div",1),R(15," By unsubscribing, you will no longer receive email updates about this issue. "),K()(),J(16,"mat-dialog-actions")(17,"button",4),N("click",function(){return b.close()}),R(18," Cancel "),K(),J(19,"button",5),N("click",function(){b.dialogRef.close(!0)}),R(20," Unsubscribe "),K()());a&2&&(x(7),I("href",Dh("/issues/",b.issueId),hf),x(2),T("b/",b.issueId),x(3),wh(b.issueTitle))},
dependencies:[oG,Jx,UJ,WJ,VJ],encapsulation:2});var Q1=function(){this.activeSession=r(Bs);this.matDialogService=r(RJ);this.issueFullFridge=r(TE);this.analytics=r(RE);this.routeParams=r(EK);this.iconOnly=!1;this.subscriptionChange=new LE;this.showNotificationSettings=new LE;this.menuLabel="Default";this.menuIcon="notifications_none_24px";this.isAnonymous=this.activeSession.isAnonymous();this.subscriptionInternal="UNKNOWN_SUBSCRIPTION";this.NotificationSubscription=Rnc;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"}]])};
Q1.prototype.ngOnInit=function(){Ocd(this)};Q1.prototype.ngOnChanges=function(){this.updateMenuButton()};Q1.prototype.updateSubscription=function(a){a!==this.subscriptionInternal&&this.subscriptionChange.emit(a)};Q1.prototype.updateMenuButton=function(){var a=this.subscriptions.get(this.subscriptionInternal);a&&(this.menuLabel=a.label,this.menuIcon=a.icon)};
var Ocd=function(a){var b,c;z(function(d){if(d.nextAddress==1)return a.routeParams.unsubscribe!=="true"||a.subscription&&a.subscription==="UNSUBSCRIBED"?d.return():B(d,Rf(a.issueFullFridge.watch(a.issueId)),2);if(d.nextAddress!=3){b=d.yieldResult;if(!b)return d.return();a.matDialogService.closeAll();return B(d,Rf(LJ(a.matDialogService.open(P1,{width:"400px",data:{issueId:a.issueId,issueTitle:b.snapshot[0].title}}))),3)}if(c=d.yieldResult)a.updateSubscription("UNSUBSCRIBED"),a.analytics.trackEvent("editIssue",
"unsubscribeUsingDialog");Lf(d)})};nd.Object.defineProperties(Q1.prototype,{subscription:{configurable:!0,enumerable:!0,set:function(a){a!=null&&(this.subscriptionInternal=a)},get:function(){return this.subscriptionInternal}}});Q1.\u0275fac=function(a){return new (a||Q1)};
Q1.\u0275cmp=y({type:Q1,selectors:[["b-notification-menu"]],inputs:{subscription:"subscription",iconOnly:"iconOnly",issueId:"issueId"},outputs:{subscriptionChange:"subscriptionChange",showNotificationSettings:"showNotificationSettings"},standalone:!1,features:[ov],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();J(0,"div")(1,"button",5)(2,"div",6);M(3,"b-icon",7);F(4,kEb,2,1);K()()();J(5,"mat-menu",null,0)(7,"div",8)(8,"div",9)(9,"button",10);N("click",function(){u(c);return w(b.updateSubscription(b.NotificationSubscription.UNKNOWN_SUBSCRIPTION))});M(10,"b-icon",11);J(11,"div",12);R(12," Default ");K();J(13,"div",13);R(14," receive emails based on your default settings. ");K()();M(15,"mat-divider",14);J(16,"button",15);N("click",function(f){u(c);return w(b.showNotificationSettings.emit(f))});
M(17,"b-icon",16);K()();M(18,"mat-divider");J(19,"div",17)(20,"button",18);N("click",function(){u(c);return w(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES))});J(21,"div",19);M(22,"b-icon",11);J(23,"div",12);R(24," All Updates ");K();J(25,"div",13);R(26," receive emails for major and minor updates. ");K()()();J(27,"button",20);N("click",function(){u(c);return w(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES))})("focus",function(){u(c);var f=Q(29);return w(f.toggle(!0))})("blur",
function(){u(c);var f=Q(29);return w(f.toggle(!1))});J(28,"xap-bubble",21,1);M(30,"mat-icon",22);D(31,lEb,13,0,"ng-template",null,2,Lh);K()()();J(33,"div",17)(34,"button",23);N("click",function(){u(c);return w(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES))});J(35,"div",19);M(36,"b-icon",11);J(37,"div",12);R(38," Major Updates ");K();J(39,"div",13);R(40," receive emails for major updates only. ");K()()();J(41,"button",20);N("click",function(){u(c);return w(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES))})("focus",
function(){u(c);var f=Q(43);return w(f.toggle(!0))})("blur",function(){u(c);var f=Q(43);return w(f.toggle(!1))});J(42,"xap-bubble",21,3);M(44,"mat-icon",22);D(45,mEb,17,0,"ng-template",null,4,Lh);K()()();J(47,"button",24);N("click",function(){u(c);return w(b.updateSubscription(b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY))});J(48,"div",17)(49,"div",19);M(50,"b-icon",11);J(51,"div",12);R(52," Closure Only ");K();J(53,"div",13);R(54," only receive emails when the issue is closed. ");K()()()();
J(55,"button",24);N("click",function(){u(c);return w(b.updateSubscription(b.NotificationSubscription.UNSUBSCRIBED))});J(56,"div",17)(57,"div",19);M(58,"b-icon",11);J(59,"div",12);R(60," None ");K();J(61,"div",13);R(62," unsubscribe from further email updates. ");K()()()()()()}if(a&2){a=Q(6);var d=Q(32),e=Q(46);x();uh("small",b.iconOnly)("medium",!b.iconOnly)("icon-only",b.iconOnly);I("matMenuTriggerFor",a)("disabled",b.isAnonymous);Lg("aria-label","Notifications Menu, current value is "+b.subscriptions.get(b.subscriptionInternal||
"UNKNOWN_SUBSCRIPTION").label);x(2);uh("black",b.menuIcon==="notifications-off");I("name",b.menuIcon);x();G(b.iconOnly?-1:4);x(5);uh("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNKNOWN_SUBSCRIPTION);x(6);I("vertical",!0);x(5);uh("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_ALL_UPDATES);x(7);Lg("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.");
x();I("panelTemplate",d)("overlayPositions",b.bubblePosition);x(6);uh("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.SUBSCRIBED_MAJOR_UPDATES);x(7);Lg("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.");x();I("panelTemplate",e)("overlayPositions",b.bubblePosition);x(5);uh("b-menu-item-checked",b.subscriptionInternal===
b.NotificationSubscription.SUBSCRIBED_CLOSURE_ONLY);x(8);uh("b-menu-item-checked",b.subscriptionInternal===b.NotificationSubscription.UNSUBSCRIBED)}},dependencies:[FC,oG,Jx,pL,pG,sG,qG,uG,eL,RM,zG,xG],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 R1=function(){};R1.\u0275fac=function(a){return new (a||R1)};R1.\u0275mod=uf({type:R1});R1.\u0275inj=Dd({imports:[HC,BG,zL,mH,gL,DG,pQ,CG]});var S1=function(){this.sloApi=r(LF);this.cdr=r(NE,{self:!0});this.isDisabled=!1;this.dropdownChoices=null;this.onSloSelect=new LE;this.internalBoundId=this.selectedSlo=null;this.lastProcessedIndex=-1;this.requestIndex=0},Pcd=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()};
S1.prototype.displayFn=function(a){return(a==null?void 0:a.name)||(a==null?void 0:a.sloId)||""};S1.prototype.updateSelectionOnChange=function(a){if(a=a.option.value)this.boundId=a.sloId;this.onSloSelect.emit(a);this.cdr.detectChanges()};
nd.Object.defineProperties(S1.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)}}});S1.\u0275fac=function(a){return new (a||S1)};
S1.\u0275cmp=y({type:S1,selectors:[["slo-picker"]],inputs:{isDisabled:[0,"bv2Disabled","isDisabled"],placeholder:[0,"bv2Placeholder","placeholder"],boundId:"boundId"},outputs:{onSloSelect:"onSloSelect"},standalone:!1,features:[Fh([NE])],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();J(0,"div",2)(1,"input",3,0);Ah("ngModelChange",function(d){u(c);zh(b.selectedSlo,d)||(b.selectedSlo=d);return w(d)});N("click",function(){u(c);var d=Q(2);return w(Pcd(b,d.value))})("input",function(){u(c);var d=Q(2);return w(Pcd(b,d.value))});K();J(3,"mat-autocomplete",4,1);N("optionSelected",function(d){u(c);return w(b.updateSelectionOnChange(d))});Pg(5,nEb,2,2,"mat-option",
5,Og);K()()}a&2&&(a=Q(4),x(),I("placeholder",b.placeholder),yh("ngModel",b.selectedSlo),I("disabled",b.isDisabled)("matAutocomplete",a),x(2),I("displayWith",b.displayFn),x(2),Qg(b.dropdownChoices))},dependencies:[fM,cM,Bx,dM,Ui,dy,ky],encapsulation:2});var T1=function(){};T1.\u0275fac=function(a){return new (a||T1)};T1.\u0275mod=uf({type:T1});T1.\u0275inj=Dd({imports:[HC,jM,Ay]});var U1=function(){this.documentationLinks=r(JJ);this.activeSession=r(Bs);this.EXTERNAL_LINK_REL="noopener noreferrer nofollow ugc";this.issueRetentionDisabled=!1;this.modelChange=new LE;this.validChange=new LE;this.indefiniteRetentionComponentsAllowlist=new Set(this.activeSession.getIndefiniteRetentionComponentsAllowlist());this.RetentionSelection=aoc};
U1.prototype.ngOnInit=function(){this.initialModel?this.model=this.initialModel:this.model={retentionSelection:"UNSPECIFIED_RETENTION",retentionPeriodDays:null,piiRetentionSelection:"UNSPECIFIED_RETENTION",piiRetentionPeriodDays:null,spiiRetentionPeriodDays:null};gs(this)};U1.prototype.updateSelectionOnChange=function(a){this.model.retentionSelection=a;this.model.retentionPeriodDays=null;this.modelChange.emit(this.model);gs(this)};
var gs=function(a){var b;if(b=xEb(a))b=(b=a.model.piiRetentionSelection)&&b!==a.RetentionSelection.UNSPECIFIED_RETENTION&&(a.model.piiRetentionSelection!==a.RetentionSelection.BUGANIZER_DEFAULT||!Qcd(a))&&(a.model.piiRetentionSelection!==a.RetentionSelection.CUSTOM_PERIOD||Rcd(a));a.validChange.emit(b)},Scd=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},xEb=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)},pEb=function(a){return a?Iva(a):"[unset period]"},Rcd=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},uEb=function(a){if(!xEb(a)||Rcd(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 "+pEb(e):"Restricted+ retention must not exceed Restricted retention."},Qcd=function(a){return a.model.retentionSelection===a.RetentionSelection.CUSTOM_PERIOD&&(!a.model.retentionPeriodDays||a.model.retentionPeriodDays<60)},yEb=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};U1.\u0275fac=function(a){return new (a||U1)};
U1.\u0275cmp=y({type:U1,selectors:[["b-retention-settings-form"]],inputs:{initialModel:"initialModel",isExternal:"isExternal",issueRetentionDisabled:"issueRetentionDisabled",componentId:"componentId",componentPathInfo:"componentPathInfo"},outputs:{modelChange:"modelChange",validChange:"validChange"},standalone:!1,decls:31,vars: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&&(J(0,"mat-radio-group",0),N("ngModelChange",
function(c){return b.updateSelectionOnChange(c)}),J(1,"p")(2,"b"),R(3,"Issue Retention"),K()(),J(4,"mat-radio-button",1),R(5," Buganizer default retention period (for minimal or no PII/SPII): 10 years "),K(),J(6,"mat-radio-button",2),R(7," Custom retention period "),F(8,oEb,2,0,"span",3),F(9,qEb,4,3,"div",4),F(10,rEb,13,0,"div",5),K(),J(11,"mat-radio-button",6),R(12),F(13,sEb,13,0,"div",7),K()(),J(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);gs(b)}),J(15,"p"),M(16,"br"),J(17,"b"),R(18,"Restricted Comments/Attachments Retention "),K(),J(19,"a",9),R(20,"Learn more "),K()(),J(21,"mat-radio-button",1),R(22," Buganizer default retention period : 60 days "),F(23,tEb,2,0,"span",3),K(),J(24,"mat-radio-button",10),R(25," Custom retention period "),F(26,vEb,2,1,"span",3),F(27,zEb,16,7,"div",4),K(),J(28,"mat-radio-button",6),R(29," Match Issue Retention "),F(30,AEb,3,0,"div",
11),K()());a&2&&(uh("empty-list-field-indication",b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION),I("disabled",b.issueRetentionDisabled)("name","retentionForm")("ngModel",b.model.retentionSelection),x(4),I("value",b.RetentionSelection.BUGANIZER_DEFAULT),x(2),I("value",b.RetentionSelection.CUSTOM_PERIOD),x(2),G(b.model.retentionSelection!==b.RetentionSelection.CUSTOM_PERIOD||b.model.retentionPeriodDays&&b.model.retentionPeriodDays>=30&&b.model.retentionPeriodDays<=7300?-1:
8),x(),G(b.model.retentionSelection===b.RetentionSelection.CUSTOM_PERIOD?9:-1),x(),G(b.model.retentionPeriodDays&&b.model.retentionPeriodDays>3650?10:-1),x(),I("disabled",!Scd(b))("value",b.RetentionSelection.INDEFINITE_RETENTION),x(),T(" Indefinite retention period ",Scd(b)?"":"(Internal components only)"," "),x(),G(b.model.retentionSelection===b.RetentionSelection.INDEFINITE_RETENTION?13:-1),x(),uh("empty-list-field-indication",b.model.retentionSelection===b.RetentionSelection.UNSPECIFIED_RETENTION),
I("disabled",b.issueRetentionDisabled)("name","piiRetentionForm")("ngModel",b.model.piiRetentionSelection),x(5),I("rel",b.EXTERNAL_LINK_REL),Lg("href",b.documentationLinks.getRestrictedAccessHelpLink(),hf),x(2),I("value",b.RetentionSelection.BUGANIZER_DEFAULT),x(2),G(b.model.piiRetentionSelection===b.RetentionSelection.BUGANIZER_DEFAULT&&Qcd(b)?23:-1),x(),Kg("aria-label","Custom Retention Period,"+uEb(b)),I("disabled",!xEb(b))("value",b.RetentionSelection.CUSTOM_PERIOD),x(2),G(b.model.piiRetentionSelection!==
b.RetentionSelection.CUSTOM_PERIOD||Rcd(b)?-1:26),x(),G(b.model.piiRetentionSelection===b.RetentionSelection.CUSTOM_PERIOD?27:-1),x(),I("disabled",b.isExternal)("value",b.RetentionSelection.INDEFINITE_RETENTION),x(2),G(b.model.piiRetentionSelection===b.RetentionSelection.INDEFINITE_RETENTION&&yEb(b)?30:-1))},dependencies:[dy,ky,jN,kN,K1],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 V1=function(){};V1.\u0275fac=function(a){return new (a||V1)};V1.\u0275mod=uf({type:V1});V1.\u0275inj=Dd({imports:[HC,Ay,RN,L1]});var Tcd=function(){this.type="component";this.includeChildren=!1},Ucd=function(){this.type="tracker"},Vcd=function(){this.type="team";this.includeChildren=!1},Wcd=function(){this.type="hotlist"},Xcd=function(){this.type="savedsearch"},Ycd=function(){this.type="customfield"};var Zcd=function(a,b){this.query=a;this.cursorIdx=b;this.label=null;this.value={val:"",idx:0};this.value.idx=b},$cd="componentid c hotlistid h savedsearchid teamid trackerid".split(" "),add=$cd.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(" ")),
bdd="attachmentanalysis cl deleted deletionreason deletiontime escalationowner insight nearestslo postmortem teamid".split(" "),cdd="(?:\\s|^)(-?)(customfield\\d+|"+add.join("|")+")(:|>|<|>=|<=|=)";var W1=function(){Z.call(this);var a=this;this.appSearchState=r(bX);this.trackerFridge=r(cG);this.trackerHelpers=r(iK);this.customFieldsApi=r(mD);this.hotlistApi=r(YC);this.savedSearchApi=r(fD);this.componentActions=r(WM);this.teamsService=r(SF);this.activeSession=r(Bs);this.currentUserBookmarksFridge=r(hD);this.query="";this.requestIndex=0;this.enableExternalMentionsFe=OA(this.activeSession,"enableExternalMentionsFe");this.atomsWithoutOp=Object.freeze(new Set(["customfield"]));this.producers=[{match:function(f){return ddd(a,
f)}},{updateHeader:function(f){return edd(a,f)}},{updateHeader:function(f){return fdd(a,f)}},{updateHeader:function(f){return gdd(a,f)}},{updateHeader:function(f){return hdd(a,f)}},{updateHeader:function(f){return idd(a,f)}},{updateHeader:function(f){return jdd(a,f)}}];this.currentSearchContext=null;this.items=[];this.acHeader=null;this.acRefreshed$=new tg;this.refreshRequest$=new tg;var b=OA(this.activeSession,"enableEscalationOwnerRolloutUi"),c=OA(this.activeSession,"enableInsightsEnrichments"),
d=OA(this.activeSession,"enableAttachmentAnalysisSearch");this.refreshRequest$.pipe(kg(250),yg(this.destroyed$)).subscribe(function(f){kdd(a,f.currentRequestIndex,f.currentSearchContext)});this.sessionIsInternal=this.activeSession.isInternalSession();var e=new Set(add);this.sessionIsInternal||this.enableExternalMentionsFe||e.delete("mention");b||e.delete("escalationowner");c||e.delete("insight");d||e.delete("attachmentanalysis");if(!this.sessionIsInternal)for(b=l(bdd),c=b.next();!c.done;c=b.next())e.delete(c.value);
this.isTrackerSearchEnabled()||e.delete("trackerid");this.atoms=Object.freeze(e)};Y(W1,Z);W1.\u0275dir=Z.\u0275dir;W1.prototype.isTrackerSearchEnabled=function(){return!Eq(this.activeSession)};
var kdd=function(a,b,c){for(var d=!1,e=!1,f=[],h=l(a.producers),k=h.next();!k.done;k=h.next())k=k.value,k.match&&f.push(k.match(c).then(function(q){d||(d=!0,a.items=[]);b<a.requestIndex||a.items.push.apply(a.items,p(q))}).catch(function(q){return q})),k.updateHeader&&f.push(k.updateHeader(c).then(function(q){e||(e=!0,a.acHeader=null);b<a.requestIndex||(a.acHeader=q)}).catch(function(q){return q}));Promise.all(f).finally(function(){d||(a.items=[]);e||(a.acHeader=null);a.acRefreshed$.next()})},ddd=
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 ldd(a,b);if(b.label){if(b.label.customFieldId)return mdd(a,b);switch(b.label.val){case "archived":return Promise.resolve(js(ndd,b.value,!0));case "componentid":case "c":return odd(a,b);case "deleted":return pdd(b);case "deletionreason":return Promise.resolve(js(qdd,
b.value,!0));case "hotlistid":case "h":return rdd(a,b);case "savedsearchid":return sdd(a,b);case "status":case "is":return Promise.resolve(js(tdd,b.value,!0));case "trackerid":return udd(a,b);case "teamid":return vdd(a,b);case "type":case "t":return a.matchType(b);case "priority":case "p":return Promise.resolve(js(wdd,b.value,!0));case "severity":case "s":return Promise.resolve(js(xdd,b.value,!0));case "inprod":case "star":case "mute":return pdd(b);case "accesslevel":return Promise.resolve(js(ydd,
b.value,!0));case "staffingplaceholder":return zdd(a,b);default:return Promise.reject(null)}}if(!b.value.val)return Promise.reject(null);c=[];d=DEb(b.value.val);e=l(a.atoms);for(var f=e.next();!f.done;f=e.next())if(f=f.value,d.token!==f&&f.startsWith(d.token)){var h=b.value.idx+(d.negated?1:0);h={type:"atom",startIdx:h,endIdx:h+b.value.val.length,completionValue:f+(a.atomsWithoutOp.has(f)?"":":"),enableShadowPlaceholder:!0};c.push({trackId:"atom:"+f,name:f,completionCfg:h})}c.sort(function(k,q){return ia(k.name,
q.name)});return Promise.resolve(c)},ldd=function(a,b){var c=b.value.val.replace(/^(cf|customfield)/,""),d=Z5c(a.appSearchState);if(!c&&!d)return Promise.reject(null);var e=WKc(a.trackerHelpers)||[];return a.customFieldsApi.query({query:d?"componentid:"+d+" "+c:c,trackerIds:e}).then(function(f){return Add(a,b,f)})},Add=function(a,b,c){var d=c.customFields.map(function(h){return h.componentId}).filter(Qj);d.length>0&&a.componentActions.bulkLoad(d);d=[];c=l(c.customFields);for(var e=c.next(),f={};!e.done;f=
{customField$jscomp$22:void 0},e=c.next())f.customField$jscomp$22=e.value,e=a.getComponentPathNames(f.customField$jscomp$22).then(function(h){return function(k){var q=h.customField$jscomp$22,v=b.value.val,A=q.customFieldId,E=b.value.idx;return{id:A,componentPathNames:k,name:q.name,trackId:"customField:"+A,completionCfg:{type:"customField",startIdx:E,endIdx:E+v.length,completionValue:"customfield"+A+":",matchingString:v}}}}(f)),d.push(e);return Promise.all(d)};
W1.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 mdd=function(a,b){return b.label&&b.label.customFieldId?a.customFieldsApi.get(b.label.customFieldId).then(function(c){if(c.type!=="ENUM"&&c.type!=="REPEATED_ENUM"||!c.allowedValue)return[];var d=c.allowedValue.map(function(e){return{trackId:"customfieldvalue:"+e,id:e,label:"Custom field "+c.name,name:e,completionCfg:{type:"customfieldvalue",completionValue:'"'+e+'"'}}});return js(d,b.value,!1,!1)}):Promise.reject(null)};
W1.prototype.matchType=function(a){return Promise.resolve(js(Bdd,a.value,!0))};
var zdd=function(a,b){return Promise.resolve(js(OA(a.activeSession,"enableStaffingFieldEnhancementsUi")?Cdd:Ddd,b.value,!0))},pdd=function(a){if(!a.label)return Promise.reject(null);var b=a.label.val;return Promise.resolve(js([{trackId:"booleanAtom:"+b+":true",label:b,name:"true",completionCfg:{enableShadowPlaceholder:!0,completionValue:"true",type:b}},{trackId:"booleanAtom:"+b+":false",label:b,name:"false",completionCfg:{enableShadowPlaceholder:!0,completionValue:"false",type:b}}],a.value,!0))},
odd=function(a,b){var c=b.value.val;return!c||is(c,!0)?Promise.reject(null):a.componentActions.search(c,!1).then(function(d){return a.processResponse(b,d)})};
W1.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 h=e.componentId;f.startIdx$jscomp$4=a.value.idx;f.endIdx$jscomp$4=f.startIdx$jscomp$4+c.length;f.paths$jscomp$19=rs(this.trackerHelpers,e.componentPathInfo);f={id:h,name:e.name,description:e.description,trackId:"component:"+h,accessLimit:e.accessLimit,trackerId:e.trackerId,completionCfg:{type:"component",
startIdx:f.startIdx$jscomp$4,endIdx:f.endIdx$jscomp$4,completionValue:h,matchingString:c},componentPath:f.paths$jscomp$19.componentPathId.map(function(k){return function(q,v){return{trackId:"subcomponent:"+q,id:q,name:k.paths$jscomp$19.componentPathName[v],completionCfg:{type:"component",completionValue:q,startIdx:k.startIdx$jscomp$4,endIdx:k.endIdx$jscomp$4}}}}(f))};d.push(f)}return d};
var vdd=function(a,b){var c=b.value.val;if(!a.sessionIsInternal||!c||is(c,!0))return Promise.reject(null);var d=pj();VF(a.teamsService,c).pipe(yg(a.destroyed$)).subscribe(function(e){var f=b.value.idx,h=f+c.length,k=[];e=l(e);for(var q=e.next(),v={};!q.done;v={pathNames$jscomp$5:void 0},q=e.next())q=q.value,v.pathNames$jscomp$5=q.pathNames,v={trackId:"team:"+q.teamId,name:q.name,id:q.teamId,label:"Team "+q.teamId,pathIds:q.pathIds,pathNames:q.pathNames,description:q.description,completionCfg:{type:"team",
startIdx:f,endIdx:h,completionValue:String(q.teamId),matchingString:c},teamPath:q.pathIds.map(function(A){return function(E,H){return{trackId:"team:"+E,id:E,name:A.pathNames$jscomp$5[H],completionCfg:{type:"team",completionValue:String(E),startIdx:f,endIdx:h}}}}(v))},k.push(v);d.resolve(k)},function(){d.reject()});return d.promise},edd=function(a,b){if(!b.label||b.label.val!=="componentid"&&b.label.val!=="c")return Promise.reject(null);var c=new Tcd;b=b.value.val;return is(b,!0)?(ha(b,"+")&&(b=b.slice(0,
b.length-1),c.includeChildren=!0),a.componentActions.get(b).then(function(d){var e;Eq(a.activeSession)&&d.trackerId!==((e=a.activeSession.getTracker())==null?void 0:e.trackerId)||(c.component=d);return c})):Promise.resolve(c)},hdd=function(a,b){if(!a.isTrackerSearchEnabled()||!b.label||b.label.val!=="trackerid")return Promise.reject(null);var c=new Ucd,d=pj();b=b.value.val;is(b)?a.trackerFridge.watch(b).pipe(yg(a.destroyed$)).subscribe(function(e){c.tracker=e;d.resolve(c)}):b&&d.resolve(c);return d.promise},
jdd=function(a,b){if(!a.sessionIsInternal||!b.label||b.label.val!=="teamid")return Promise.reject(null);var c=new Vcd,d=pj(),e=b.value.val;is(e,!0)?(ha(e,"+")&&(e=e.slice(0,e.length-1),c.includeChildren=!0),VF(a.teamsService,e).pipe(yg(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},fdd=function(a,b){if(!b.label||b.label.val!=="hotlistid"&&b.label.val!=="h")return Promise.reject(null);var c=new Wcd;b=b.value.val;return is(b)?a.hotlistApi.get(b).then(function(d){c.hotlist=d;return c}):b?Promise.reject(null):Promise.resolve(c)},gdd=function(a,b){if(!b.label||b.label.val!=="savedsearchid")return Promise.reject(null);var c=new Xcd;b=b.value.val;return is(b)?a.savedSearchApi.get(b).then(function(d){c.savedSearch=d;return c}):b?Promise.reject(null):Promise.resolve(c)},
idd=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]),Fo("search-usage","customfield");else return Promise.reject(null);var d=new Ycd;return c?a.customFieldsApi.get(c).then(function(e){d.customField=e;return d}):Promise.resolve(d)},udd=function(a,b){var c=b.value.val;if(!a.isTrackerSearchEnabled()||!c||is(c,!0))return Promise.reject(null);var d=pj();a.trackerFridge.watchMany({filter:c,
pageSize:5}).pipe(yg(a.destroyed$)).subscribe(function(e){var f=b.value.idx,h=f+c.length,k=[];e=l(e.results);for(var q=e.next();!q.done;q=e.next())q=q.value,k.push({trackId:"trackerid:"+q.trackerId,name:q.name,id:q.trackerId,label:"Tracker "+q.trackerId,completionCfg:{type:"tracker",startIdx:f,endIdx:h,completionValue:q.trackerId,matchingString:c}});d.resolve(k)});return d.promise},rdd=function(a,b){return is(b.value.val)?Promise.reject(null):Rf(iD(a.currentUserBookmarksFridge)).then(function(c){c=
c.map(function(d){var e=d.hotlistId;return{id:e,name:d.name,trackId:"hotlist:"+e,completionCfg:{type:"hotlist",completionValue:""+e}}});return js(c,b.value,!1,!0)})},sdd=function(a,b){return is(b.value.val)?Promise.reject(null):Rf(iuc(a.currentUserBookmarksFridge)).then(function(c){c=c.map(function(d){var e=d.searchId;return{id:e,name:d.name,query:d.query,trackId:"savedsearch:"+e,completionCfg:{type:"savedsearch",completionValue:""+e}}});return js(c,b.value,!1,!0)})};
W1.\u0275fac=function(a){return new (a||W1)};W1.\u0275prov=Cd({token:W1,factory:W1.\u0275fac,providedIn:"root"});
var tdd="accepted assigned closed duplicate fixed inactive infeasible intended_behavior new not_reproducible obsolete open verified".split(" ").map(function(a){return ks({name:a,label:"Status",type:"status"})}),Bdd="bug customer_issue feature_request internal_cleanup process vulnerability privacy_issue program project feature milestone epic story task".split(" ").map(function(a){return ks({name:a,label:"Type",type:"type",trackIdPrefix:"bugType"})}),wdd=["p0","p1","p2","p3","p4"].map(function(a){return ks({name:a,
label:"Priority",type:"priority"})}),xdd=["s0","s1","s2","s3","s4"].map(function(a){return ks({name:a,label:"Severity",type:"severity"})}),ndd=["all","true","false"].map(function(a){return ks({name:a,label:"Archived",type:"archived"})}),qdd=["abuse","pii","user_request","retention"].map(function(a){return ks({name:a,label:"Deletion Reason",type:"deletionreason",trackIdPrefix:"deletionReason"})}),ydd=[["limit_none","Default access"],["limit_view","Limited visibility"],["limit_append","Limited commenting"],
["limit_view_trusted","Limited visibility + Google"]].map(function(a){var b=l(a);a=b.next().value;b=b.next().value;return ks({name:b,label:"Issue access level",type:"accesslevel",id:a})}),Ddd=[["swe",EA.SWE],["sre",EA.SRE],["pm",EA.PM],["tpgm",EA.TPGM],["ux",EA.UX]].map(function(a){var b=l(a);a=b.next().value;b=b.next().value;return ks({name:b,label:"Staffing - Placeholder",type:"staffingplaceholder",id:a})}),Cdd=[["swe",EA.SWE],["sre",EA.SRE],["pm",EA.PM],["tpgm",EA.TPGM],["ux",EA.UX],["uxd",EA.UXD],
["uxr",EA.UXR],["datasci",EA.DATASCI],["ld",EA.LD],["devrel",EA.DEVREL],["tw",EA.TW],["gtm",EA.GTM],["ce",EA.CE],["other",EA.OTHER]].map(function(a){var b=l(a);a=b.next().value;b=b.next().value;return ks({name:b,label:"Staffing - Placeholder",type:"staffingplaceholder",id:a})});var X1=function(){this.cdr=r(NE,{self:!0});this.optionsChange=new LE};X1.prototype.ngOnInit=function(){EEb(this)};
var EEb=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},FEb=function(a){a.validator&&(a.errorString=a.validator(),a.cdr.detectChanges())},Edd=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);FEb(a)},Fdd=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(", ")};X1.\u0275fac=function(a){return new (a||X1)};
X1.\u0275cmp=y({type:X1,selectors:[["slo-element-property-picker"]],inputs:{selectAllText:"selectAllText",validator:"validator",options:"options"},outputs:{optionsChange:"optionsChange"},standalone:!1,features:[Fh([NE])],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();J(0,"div")(1,"button",1)(2,"div",2)(3,"span",3);R(4);R(5," \u00a0 ");K();M(6,"mat-icon",4);K()();J(7,"mat-menu",null,0)(9,"div",
5);N("click",function(d){u(c);return w(Edd(b,d))});J(10,"mat-checkbox",6);N("change",function(d){u(c);b.selectAllValue=d.checked;return w(Edd(b))});R(11);K()();M(12,"mat-divider");Pg(13,GEb,4,3,"div",7,Og);U(15,"keyvalue");K();F(16,HEb,2,1,"div",8);K()}a&2&&(a=Q(8),x(),uh("ng-invalid",!!b.errorString),I("matMenuTriggerFor",a),x(3),T(" ",Fdd(b)," "),x(5),Lg("aria-checked",b.selectAllValue),x(),I("checked",!!b.selectAllValue)("indeterminate",b.selectAllValue===null),x(),T(" ",b.selectAllText," "),x(2),
Qg(V(15,9,b.options.propertyValues)),x(3),G(b.errorString?16:-1))},dependencies:[FC,gM,hM,pG,sG,qG,uG,pL,oG,Jx,Yv],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 Gdd=function(a,b){this.displayString=a;this.value=b},Hdd=function(a){this.propertyValues=a},Idd=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},DFb=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};Hdd.prototype.setAll=function(a){for(var b in this.propertyValues)this.propertyValues[b].value=a};var Y1=function(){};Y1.\u0275fac=function(a){return new (a||Y1)};Y1.\u0275mod=uf({type:Y1});Y1.\u0275inj=Dd({imports:[HC,lM,mH,zL,BG]});var Jdd=function(a,b){this.name=a;this.secondsPerUnit=b},TEb=new Jdd("minute",60),UEb=new Jdd("hour",3600),VEb=new Jdd("day",86400),Z1=function(){this.errorString=null;this.objectiveDurationChange=new LE;this.objectiveBusinessDaysChange=new LE;this.intervalUnit=VEb};Z1.prototype.ngOnInit=function(){Kdd(this)};Z1.prototype.ngOnChanges=function(a){[a.objectiveBusinessDays,a.objectiveDuration,a.dayType].some(function(b){return b&&!b.firstChange})&&Kdd(this)};
var KEb=function(a,b){b=b.name;kj(a.intervalString)!==1&&(b+="s");return b},SEb=function(a){return a.dayType==="BUSINESS"},Kdd=function(a){!SEb(a)&&Ldd(a,VEb)||Ldd(a,UEb)||Ldd(a,TEb);if(a.objectiveBusinessDays!=0||a.businessDayString!="")a.businessDayString=""+a.objectiveBusinessDays},Ldd=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):(SEb(a)?[TEb,UEb]:[TEb,UEb,VEb]).includes(a.intervalUnit)||
(a.intervalUnit=b),!0):!1},NEb=function(a){a.validator&&(a.errorString=a.validator(a.intervalString,a.businessDayString));QEb(a);REb(a)},QEb=function(a){a.objectiveDuration.seconds=a.intervalUnit.secondsPerUnit*(kj(a.intervalString)||0);a.objectiveDurationChange.emit(a.objectiveDuration)},REb=function(a){a.objectiveBusinessDays=kj(a.businessDayString)||0;a.objectiveBusinessDaysChange.emit(a.objectiveBusinessDays)};Z1.\u0275fac=function(a){return new (a||Z1)};
Z1.\u0275cmp=y({type:Z1,selectors:[["slo-objective-selector"]],inputs:{isDisabled:"isDisabled",validator:"validator",dayType:"dayType",objectiveDuration:"objectiveDuration",objectiveBusinessDays:"objectiveBusinessDays"},outputs:{objectiveDurationChange:"objectiveDurationChange",objectiveBusinessDaysChange:"objectiveBusinessDaysChange"},standalone:!1,features:[ov],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,MEb,3,2,"span",0)(1,WEb,7,5,"span",1);a&2&&G(b.isDisabled?0:1)},dependencies:[Ui,dy,ky,bP,jP,Bx],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 a2=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"]])},Pdd=function(a,b){var c=new Mdd,d=Ndd(b,"type",function(f){var h=f.toUpperCase(),k=new Odd;a.typeStringToEnum.has(h)?k.value=h:k.error='The string "'+f+'" is not a valid type';return k});if(d.error)return c.error=d.error,c;d=l(d.values);for(var e=d.next();!e.done;e=d.next())c.types.push(a.typeStringToEnum.get(e.value));d=Ndd(b,"priority",function(f){var h=
f.toUpperCase(),k=new Odd;a.priorityStringToEnum.has(h)?k.value=h:k.error='The string "'+f+'" is not a valid priority';return k});if(d.error)return c.error=d.error,c;d=l(d.values);for(e=d.next();!e.done;e=d.next())c.priorities.push(a.priorityStringToEnum.get(e.value));b=Ndd(b,"postmortem",function(f){var h=f.toUpperCase(),k=new Odd;a.postmortemValuesToCanonical.has(h)?k.value=h:k.error='The string "'+f+'" is not a valid postmortem value';return k});if(b.error)c.error=b.error;else for(b=l(b.values),
d=b.next();!d.done;d=b.next())c.postmortemValues.push(a.postmortemValuesToCanonical.get(d.value));return c},Ndd=function(a,b,c){var d=new Qdd;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};a2.\u0275fac=function(a){return new (a||a2)};a2.\u0275prov=Cd({token:a2,factory:a2.\u0275fac,providedIn:"root"});
var Mdd=function(){this.types=[];this.priorities=[];this.postmortemValues=[];this.error=""},Qdd=function(){this.values=[];this.error=""},Odd=function(){this.error=this.value=""};var b2=function(){};b2.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};b2.\u0275fac=function(a){return new (a||b2)};b2.\u0275dir=vf({type:b2,selectors:[["","customValidators",""]],inputs:{validators:[0,"customValidators","validators"]},standalone:!1,features:[Fh([{provide:Zx,useExisting:b2,multi:!0}])]});var c2=function(){this.constants=r(dK);this.sloParseService=r(a2);this.confirmationDialogService=r(YJ);this.collection=[];this.boundCollection=[];this.onCollectionUpdate=new LE;this.onValidation=new LE;this.metricChoices=["METRIC_UNSPECIFIED"].concat(Nyc);this.dayTypes=["CALENDAR","BUSINESS"];Nyc.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};c2.prototype.updateValidity=function(){this.canPerformActions=!this.openRow};
var HFb=function(a,b,c){EFb(a);a=l(a.collection);for(var d=a.next();!d.done;d=a.next())d.value.canEdit=!1;b.startEditing();c&&c.stopPropagation()},KFb=function(a,b,c){c=NFb(a,b,c);var d=c.newOffset;c.valid&&(EFb(a),Fa(a.collection,b),Fa(a.boundCollection,b.sloElement),a.collection.splice(d,0,b),a.boundCollection.splice(d,0,b.sloElement),Rdd(a))},NFb=function(a,b,c){b=a.collection.indexOf(b)+c;return{valid:b>=0&&b<a.collection.length,newOffset:b}},EFb=function(a){a=l(a.collection);for(var b=a.next();!b.done;b=
a.next())b=b.value,b.stopEditing(),b.canEdit=!0},Sdd=function(a,b){var c=b.map(function(d){return new d2(d,a)});a.openRow=null;a.collection=c;a.boundCollection=b;a.updateValidity()},tFb=function(a){return a==="METRIC_UNSPECIFIED"?" - ":Oyc.get(a)},fFb=function(a,b){return b!=="TYPE_UNSPECIFIED"&&a.constants.issueTypesDisplayNames.has(b)?a.constants.issueTypesDisplayNames.get(b):" - "},lFb=function(a,b){return b!=="PRIORITY_UNSPECIFIED"&&a.constants.issuePrioritiesDisplayNames.has(b)?a.constants.issuePrioritiesDisplayNames.get(b):
" - "},FFb=function(a,b){EFb(a);Fa(a.collection,b);Fa(a.boundCollection,b.sloElement);Rdd(a)},ZEb=function(a,b){a.confirmationDialogService.open({title:"Are you sure you'd like to clear all the rules?",content:Xi("This won't take effect until you save the changes, but any local changes will be lost."),onConfirm:function(){a.collection=[];a.boundCollection=[];Rdd(a)},onDismiss:function(){}});b.stopPropagation()},XEb=function(a,b){var c=new d2({metric:"METRIC_UNSPECIFIED",matcher:"",dayType:"DAY_TYPE_UNSPECIFIED",
objective:{seconds:0,nanos:0},businessDays:0},a,!0);HFb(a,c);a.collection.splice(b,0,c);a.boundCollection.splice(b,0,c.sloElement);Rdd(a)};c2.prototype.onDrop=function(a){KFb(this,this.collection[a.previousIndex],a.currentIndex-a.previousIndex)};var Rdd=function(a){a.onCollectionUpdate.emit(a.boundCollection)};
nd.Object.defineProperties(c2.prototype,{collectionInput:{configurable:!0,enumerable:!0,set:function(a){Sdd(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}}});c2.\u0275fac=function(a){return new (a||c2)};
c2.\u0275cmp=y({type:c2,selectors:[["slo-elements-picker"]],inputs:{collectionInput:[0,"collection","collectionInput"],isDisabled:"isDisabled"},outputs:{onCollectionUpdate:"onCollectionUpdate",onValidation:"onValidation"},standalone:!1,decls:29,vars:5,consts:[["settingsMenu","matMenu"],[1,"bv2-slo-elements-picker"],[1,"bv2-slo-elements-table-label","edit-field-header"],["href","http://g3doc/company/teams/buganizer/user-guide/guides/define-slo#creating-a-new-slo-rule"],["matTooltip","These ordered rules determine the objectives for each type of issue for this SLO",
1,"bv2-slo-elements-table-help-icon",3,"name","size"],[1,"bv2-slo-elements-actionbar"],["cellspacing","0",1,"bv2-slo-elements-table"],[1,"header-row"],[1,"bv2-slo-elements-table-order-header"],[1,"bv2-slo-elements-table-type-header"],[1,"bv2-slo-elements-table-priority-header"],[1,"bv2-slo-elements-table-postmortem-header"],[1,"bv2-slo-elements-table-metric-header"],[1,"bv2-slo-elements-table-objective-header"],[1,"bv2-slo-elements-table-daytype-header"],[1,"bv2-slo-elements-table-actions-header"],
["cdkDropList","",3,"cdkDropListData","cdkDropListDisabled"],[1,"bv2-slo-elements-table-empty-list-description"],[1,"slo-picker-actions"],[1,"slo-picker-icon-action-icon-container"],["matTooltip","Add a new rule",1,"hoverable",3,"name","size"],["matTooltip","Clear all rules",1,"hoverable",3,"click","name","size"],["matTooltip","Add a new rule",1,"hoverable",3,"click","name","size"],["cdkDropList","",3,"cdkDropListDropped","cdkDropListData","cdkDropListDisabled"],["cdkDrag","",1,"bv2-slo-element-row",
3,"draggable"],["cdkDrag","",1,"bv2-slo-element-row"],[1,"bv2-slo-element-row-counter","editable-row"],[1,"bv2-slo-element-row-counter","display-row"],[1,"bv2-slo-element-picker-column","bv2-slo-element-type-column","bv2-editable-slo-element","editable-row"],[1,"bv2-slo-element-type-column","bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-picker-column","bv2-slo-element-priority-column","bv2-editable-slo-element","editable-row"],[1,"bv2-slo-element-priority-column","bv2-slo-element-picker-column",
"display-row"],[1,"bv2-slo-element-picker-column","bv2-slo-element-postmortem-column","bv2-editable-slo-element","editable-row"],[1,"bv2-slo-element-postmortem-column","bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-picker-column","bv2-slo-element-metric","bv2-editable-slo-element","editable-row"],[1,"bv2-slo-element-metric","bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-picker-column","bv2-slo-element-objective","bv2-editable-slo-element","editable-row"],[1,
"bv2-slo-element-objective","bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-picker-column","bv2-slo-element-daytype","bv2-editable-slo-element","editable-row"],[1,"bv2-slo-element-daytype","bv2-slo-element-picker-column","display-row"],[1,"bv2-slo-element-action","editable-row"],[1,"bv2-slo-element-action","display-row"],[1,"bv2-type-property-picker",3,"optionsChange","selectAllText","validator","options"],[1,"bv2-property-display-chips"],[1,"bv2-property-display-chip-container"],
[1,"matcher-chip-content"],[1,"bv2-priority-property-picker",3,"optionsChange","selectAllText","validator","options"],[1,"bv2-postmortem-property-picker",3,"optionsChange","selectAllText","validator","options"],["appearance","outline","subscriptSizing","dynamic"],["required","true",1,"bv2-enum-field","bv2-slo-elements-picker-metric-selector",3,"ngModelChange","ngModel","customValidators"],[3,"value"],["required","",3,"objectiveDurationChange","objectiveBusinessDaysChange","dayType","objectiveDuration",
"objectiveBusinessDays","validator","isDisabled"],["required","",3,"objectiveDurationChange","objectiveBusinessDaysChange","dayType","objectiveDuration","objectiveBusinessDays","isDisabled"],[1,"bv2-enum-field","bv2-slo-elements-picker-daytype-selector",3,"ngModelChange","selectionChange","ngModel"],["matTooltip","Finish editing",1,"bv2-slo-element-action",3,"click","name","size"],["matTooltip","Remove row",1,"bv2-slo-element-action",3,"click","name","size"],["matTooltip","Edit this rule",1,"hoverable",
"bv2-slo-element-action-edit",3,"name","size"],["matTooltip","More options",1,"hoverable","bv2-slo-element-action-more-settings",3,"name","size","matMenuTriggerFor"],["type","button","mat-menu-item","",1,"bv2-slo-element-action-more-settings-move-down"],["type","button","mat-menu-item","",1,"bv2-slo-element-action-more-settings-move-up"],["type","button","mat-menu-item","",1,"bv2-slo-element-action-more-settings-add-row-below",3,"click"],["type","button","mat-menu-item","",1,"bv2-slo-element-action-more-settings-add-row-above",
3,"click"],["type","button","mat-menu-item","",1,"bv2-slo-element-action-more-settings-remove",3,"click"],["matTooltip","Edit this rule",1,"hoverable","bv2-slo-element-action-edit",3,"click","name","size"],["type","button","mat-menu-item","",1,"bv2-slo-element-action-more-settings-move-down",3,"click"],["type","button","mat-menu-item","",1,"bv2-slo-element-action-more-settings-move-up",3,"click"]],template:function(a,b){a&1&&(J(0,"div",1)(1,"div")(2,"div")(3,"label",2),R(4,"Rules"),K(),J(5,"a",3),
M(6,"b-icon",4),K(),F(7,$Eb,6,3,"span",5),K(),J(8,"table",6)(9,"thead")(10,"tr",7)(11,"th",8),R(12,"Order"),K(),J(13,"th",9),R(14,"Type"),K(),J(15,"th",10),R(16,"Priority"),K(),J(17,"th",11),R(18,"Postmortem"),K(),J(19,"th",12),R(20,"Metric"),K(),J(21,"th",13),R(22,"Objective"),K(),J(23,"th",14),R(24," Day Type "),K(),M(25,"th",15),K()(),F(26,QFb,3,2,"tbody",16),K(),J(27,"div"),F(28,RFb,2,0,"div",17),K()()());a&2&&(x(6),I("name","help-outline")("size","small"),x(),G(b.isDisabled?-1:7),x(19),G(b.collection&&
b.collection.length!=0?26:-1),x(2),G(b.collection&&b.collection.length!=0?-1:28))},dependencies:[b2,MM,LM,dy,vy,ky,eL,DM,My,pG,sG,qG,uG,bP,jP,Bx,zG,xG,X1,Z1],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 d2=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=Idd(d.priorityPickerValues)?null:"Priority can't be empty";d.priorityPickerValid=e===null;return e};this.validateTypePicker=function(){var e=Idd(d.typePickerValues)?null:"Type can't be empty";d.typePickerValid=
e===null;return e};this.validatePostmortemPicker=function(){var e=Idd(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=Tdd(a.objective);this.selectedObjectiveBusinessDays=a.businessDays;this.canEdit=!b.isDisabled;this.metricValidators={required:function(e){return Udd(d,e)}};Vdd(this);this.typePickerValues=Wdd(this.controllerReference.sloParseService.enumTypeToString.keys(),function(e){return d.parseResult.types.length===
0||d.parseResult.types.includes(e)},function(e){return fFb(d.controllerReference,e)});this.priorityPickerValues=Wdd(this.controllerReference.sloParseService.enumPriorityToString.keys(),function(e){return d.parseResult.priorities.length===0||d.parseResult.priorities.includes(e)},function(e){return lFb(d.controllerReference,e)});this.postmortemPickerValues=Wdd(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();Udd(this,this.selectedMetric)},Tdd=function(a){return a?a:{seconds:86400,nanos:0}};d2.prototype.isValid=function(){return this.priorityPickerValid&&this.typePickerValid&&this.postmortemPickerValid&&this.metricSelectorValid&&this.objectiveValid};var Udd=function(a,b){b=b!=="METRIC_UNSPECIFIED";return a.metricSelectorValid=b};
d2.prototype.stopEditing=function(){this.isEditingInternal&&(this.isValid()||this.isNewElement)&&(this.controllerReference.openRow=null,this.controllerReference.updateValidity(),this.isEditingInternal=this.isNewElement=!1,this.canEdit=!0,Xdd(this),this.sloElement.metric=this.selectedMetric,this.sloElement.dayType=this.selectedDayType,this.sloElement.objective=this.selectedObjectiveDuration,this.sloElement.businessDays=this.selectedObjectiveBusinessDays,Vdd(this))};
var Xdd=function(a){var b=a.getEnumValues(a.typePickerValues),c=a.getEnumValues(a.priorityPickerValues),d=a.getEnumValues(a.postmortemPickerValues);b=Ydd(b,function(f){return a.controllerReference.sloParseService.enumTypeToString.get(f)});c=Ydd(c,function(f){return a.controllerReference.sloParseService.enumPriorityToString.get(f)});d=Ydd(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};d2.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 Ydd=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("|")+")"};
d2.prototype.startEditing=function(){this.isEditingInternal||(this.controllerReference.canPerformActions=!1,this.controllerReference.openRow=this,this.controllerReference.updateValidity(),this.canEdit=!1,this.isEditingInternal=!0,Vdd(this))};var Vdd=function(a){a.parseResult=Pdd(a.controllerReference.sloParseService,a.matcherText)},Wdd=function(a,b,c){var d={};a=l(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=b(e),h=c(e);d[""+e]=new Gdd(h,f)}return new Hdd(d)};var e2=function(){};e2.\u0275fac=function(a){return new (a||e2)};e2.\u0275mod=uf({type:e2});e2.\u0275inj=Dd({imports:[HC,Ay,hQ]});var f2=function(){};f2.\u0275fac=function(a){return new (a||f2)};f2.\u0275mod=uf({type:f2});f2.\u0275inj=Dd({imports:[HC]});var g2=function(){};g2.\u0275fac=function(a){return new (a||g2)};g2.\u0275mod=uf({type:g2});g2.\u0275inj=Dd({imports:[HC,f2,NM,Ay,gL,EM,mH,hQ,CG,Y1,e2]});var h2=function(){Z.apply(this,arguments);this.element=r(Te);this.cdr=r(NE,{self:!0});this.location=r(DH);this.hotkeys=r(PG);this.focusedIndex=0;this.slos=[]};Y(h2,Z);h2.\u0275dir=Z.\u0275dir;g=h2.prototype;g.setFocusOnIndex=function(a){this.focusedIndex=a};g.isFocused=function(a){return this.focusedIndex===a};g.selectNext=function(){this.focusedIndex+1>=this.slos.length||(this.focusedIndex++,this.scrollToFocusedIndex())};g.selectPrevious=function(){this.focusedIndex-1<0||(this.focusedIndex--,this.scrollToFocusedIndex())};
g.ngOnInit=function(){var a=this,b=QG(this.hotkeys,{title:"Browse Controls",hotkeys:[{keys:["j","DOWN"],displayAs:"j / Down",description:"Move to the next SLO",onPress:function(){a.selectNext();a.cdr.detectChanges()}},{keys:["k","UP"],displayAs:"k / Up",description:"Move to the previous SLO",onPress:function(){a.selectPrevious();a.cdr.detectChanges()}},{keys:["ENTER"],displayAs:"Enter",description:"View SLO detail",onPress:function(){var c=a.slos[a.focusedIndex];c&&a.editSlo(c);a.cdr.detectChanges()}}]});
this.destroyed$.subscribe(b)};g.scrollToFocusedIndex=function(){var a=this.element.nativeElement.parentElement;if(a){var b,c,d=(b=this.element.nativeElement.querySelector("table"))==null?void 0:(c=b.rows)==null?void 0:c[this.focusedIndex];if(d){b=a.getBoundingClientRect();a=b.top;b=b.bottom;c=d.getBoundingClientRect();var e=c.bottom;c.top<a?d.scrollIntoView(!1):e>b&&d.scrollIntoView(!0)}}};g.renderRowLabel=function(a){return this.slos[a].name};g.editSlo=function(a){this.location.path(Dq.editSlo.makeHref(a.sloId))};
h2.\u0275fac=function(){var a;return function(b){return(a||(a=Re(h2)))(b||h2)}}();
h2.\u0275cmp=y({type:h2,selectors:[["b-slo-grid"]],inputs:{slos:"slos"},standalone:!1,features:[Fh([NE]),Bg],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&&(J(0,"table",0)(1,"thead")(2,"tr",1),M(3,"th",2),J(4,"th")(5,"div",3)(6,"div",4)(7,"div",5),R(8," SLO name "),K()()()(),J(9,"th")(10,"div",3)(11,"div",4)(12,"div",5),R(13," Description "),K()()()()()(),J(14,"tbody"),Pg(15,SFb,7,7,"tr",6,Og),K()());a&2&&(x(15),Qg(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 i2=function(){};i2.\u0275fac=function(a){return new (a||i2)};i2.\u0275mod=uf({type:i2});i2.\u0275inj=Dd({imports:[HC]});var j2=function(){this.log=r(ME);this.dateFormatter=r(BK)},$dd=function(a,b){var c=Krb(b.addMask.paths),d=Krb(b.removeMask.paths),e={author:b.author||null,timestamp:b.timestamp||null,diffs:[]},f=b.add;b=b.remove;for(var h=l(new Set([].concat(p(c),p(d)))),k=h.next();!k.done;k=h.next()){var q=k.value;k=Pyc.get(q);if(q==="name"){var v=Xr(d,q,b.name);q=Xr(c,q,f.name);e.diffs.push(Yr(k,v,q))}else if(q==="description")v=Xr(d,q,b.description),q=Xr(c,q,f.description),e.diffs.push(Yr(k,v,q));else if(q==="parentId")v=
Xr(d,q,String(b.parentId)),q=Xr(c,q,String(f.parentId)),e.diffs.push(Yr(k,v,q));else if(q==="elements"){var A=f.elements;v=Lrb(d,q,b.elements.map(function(E){return Zdd(E)}));q=Lrb(c,q,A.map(function(E){return Zdd(E)}));e.diffs.push({fieldName:k,diffType:"COLLECTION",diff:{removed:v,added:q}})}else a.log.error("Unsupported diff field.")}return e},Zdd=function(a){var b=a.matcher,c=Oyc.get(a.metric),d=zFb.get(a.dayType),e=[];a.businessDays>0&&e.push(a.businessDays+" day"+(a.businessDays>1?"s":""));
a.objective.seconds>0&&e.push(COa(a.objective.seconds*1E3));return'("'+b+'", '+c+") - "+(d+" days - "+e.join(", "))};j2.\u0275fac=function(a){return new (a||j2)};j2.\u0275prov=Cd({token:j2,factory:j2.\u0275fac,providedIn:"root"});var k2=function(){};k2.\u0275fac=function(a){return new (a||k2)};k2.\u0275mod=uf({type:k2});k2.\u0275inj=Dd({imports:[HC,BG,wK]});var ced=function(a,b){this.$log=b;this.templateAttributes={};this.templateCustomFields={};b=l(aed);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"?oa(f):""}):e=typeof d==="string"?oa(d):"";this.templateAttributes[c]=e}b=l(bed);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(":"),ja(c)||(this.templateCustomFields[b[0]]=c)},eed=function(a){return Object.keys(a.templateCustomFields||{}).length!==0||ded.some(function(b){return a.templateAttributes[b]!=null})},jed=function(a,b,c){c!=null&&(fed(a,c),ged(a,b,c),hed(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;ied[d](b,e)}a.templateAttributes={};a.templateCustomFields={}},ged=function(a,b,c){b.customField==null&&(b.customField=
[]);for(var d={},e=l(b.customField),f=e.next();!f.done;f=e.next())f=f.value,d[f.customFieldId]=f;e=l(Object.entries(a.templateCustomFields));var h=e.next();for(f={};!h.done;f={customFieldId$jscomp$28:void 0},h=e.next()){var k=l(h.value);h=k.next().value;k=k.next().value;f.customFieldId$jscomp$28=kj(h);k={customFieldId:f.customFieldId$jscomp$28,value:k};h=a.getCustomFieldValue(k,c);d[f.customFieldId$jscomp$28]!=null?(f=b.customField.findIndex(function(q){return function(v){return v.customFieldId===
q.customFieldId$jscomp$28}}(f)),b.customField[f]=h):(b.customField.push(h),d[k.customFieldId]=h)}};
ced.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=lGa(a.value)||void 0;break;case "ENUM":c.enumValue=a.value;break;case "NUMERIC":c.numericValue=mGa(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 lGa(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 mGa(e)}).filter(function(e){return e!==null});c.repeatedNumericValue={values:d};break;default:this.$log.warn("Invalid custom field type '"+b+"'.")}}return c};ced.prototype.getCustomFieldType=function(a,b){var c,d;return(d=(c=b[a.customFieldId])==null?void 0:c.type)!=null?d:""};
var fed=function(a,b){a.templateCustomFields=cj(a.templateCustomFields,function(c,d){return!!b[d]})},hed=function(a,b){if(a.customField!=null){a=l(a.customField);for(var c=a.next(),d={};!c.done;d={allowedValues:void 0},c=a.next()){c=c.value;var e=b[c.customFieldId];if(e&&e.type&&e.type.includes("ENUM")){d.allowedValues=e.allowedValue||[];var f=e.required&&e.typedDefaultValue;e.type.includes("REPEATED")?(c.repeatedEnumValue=c.repeatedEnumValue||{values:[]},c.repeatedEnumValue.values=c.repeatedEnumValue.values.filter(function(h){return function(k){return h.allowedValues.includes(k)}}(d)),
!c.repeatedEnumValue.values.length&&f&&(c.repeatedEnumValue=e.typedDefaultValue.repeatedEnumValue)):d.allowedValues.includes(c.enumValue)||(c.enumValue=f?e.typedDefaultValue.enumValue:"")}}}},aed="title type priority severity assignee verifier reporter collaborators cc hotlistIds blockedByIssueIds blockingIssueIds foundIn targetedTo".split(" "),bed=["inProd"],ded="severity foundIn inProd reporter verifier targetedTo blockedByIssueIds blockingIssueIds".split(" "),l2={},ied=(l2.cc=function(a,b){a.ccUsers=
WFb(b,a.ccUsers||[])},l2.collaborators=function(a,b){a.collaboratorsUsers=WFb(b,a.collaboratorsUsers||[])},l2.title=function(a,b){typeof b==="string"&&(a.title=b)},l2.assignee=function(a,b){VFb(b,function(c){a.assigneeUser=c})},l2.reporter=function(a,b){VFb(b,function(c){a.reporterUser=c})},l2.verifier=function(a,b){VFb(b,function(c){a.verifierUser=c})},l2.hotlistIds=function(a,b){if(b=TFb(b)){a.hotlistId||(a.hotlistId=[]);b=l(b);for(var c=b.next();!c.done;c=b.next())a.hotlistId.push(c.value)}},l2.blockingIssueIds=
function(a,b){if(b=TFb(b))a.blockingIssueId=b.map(String)},l2.blockedByIssueIds=function(a,b){if(b=TFb(b))a.blockedByIssueId=b.map(String)},l2.foundIn=function(a,b){typeof b==="string"&&(a.foundInVersion=b.split(","))},l2.targetedTo=function(a,b){typeof b==="string"&&(a.targetedToVersion=b.split(","))},l2.inProd=function(a,b){a.inProd=b==="true"},l2.priority=function(a,b){if(b=UFb(GKc,b))a.priority=Qsa(b)},l2.severity=function(a,b){if(b=UFb(MKc,b))a.severity=Ssa(b)},l2.type=function(a,b){if(b=UFb(IKc,
b))a.type=Rsa(b)},l2);var m2=function(){this.issueRelationshipApi=r(hF);this.issueApi=r(SD)};
m2.prototype.bulkEdit=function(a){var b=this,c,d,e,f,h,k,q,v,A,E,H,L,O;return z(function(S){switch(S.nextAddress){case 1:c=a.actions[0];d=String(c.value);e=a.issueIds;f=c.actionType;if(f!=="ADD"&&f!=="REMOVE")throw Error("jf");h={};k=[];q=[];v=Nsa(e);A=l(v.reverse());E=A.next();case 2:if(E.done){S.jumpTo(4);break}H=E.value;Gf(S,5);return f==="ADD"?(L=H.map(function(aa){return{targetIssueId:aa,afterIssueId:void 0}}),B(S,Rf(sxc(b.issueRelationshipApi,d,L)),8)):B(S,Rf(txc(b.issueRelationshipApi,d,H)),
8);case 8:return B(S,b.issueApi.batchGetIssuesFull(H).then(function(aa){return aa.map(function(ka){return h[ka.issueId]=ka})}),11);case 11:uu(S,3);break;case 5:O=Kf(S);if(!Qo(O))throw O;q.push(O);k.push.apply(k,p(H));case 3:E=A.next();S.jumpTo(2);break;case 4:return S.return({finishedIssues:h,notFinishedIssueIds:k,errors:q})}})};m2.\u0275fac=function(a){return new (a||m2)};m2.\u0275prov=Cd({token:m2,factory:m2.\u0275fac,providedIn:"root"});var n2=function(){this.issueApi=r(SD);this.templatesApi=r(EB);this.errorHandler=r(aK);this.userAccess=r(AD);this.activeSession=r(Bs)},led=function(a,b){b=a.issueApi.getIssueFull(b).then(function(c){var d=Object,e=d.assign,f=Ba(c.snapshot),h,k=(h=c.description)==null?void 0:h.unlinkifiedComment,q;h=(q=c.description)==null?void 0:q.formattedComment;f.comment=k?k.trim():h?Bva(h):"";f.status="NEW";f.changelist=null;f.gerritChanges=null;f.duplicateIssueId=null;f.duplicateOfIssueId=null;return e.call(d,
{},{snapshot:f},{trackerId:c.trackerId})}).then(function(c){return ked(a,c)});b.catch(function(c){a.errorHandler.errorHandler(null,c)});return b},ked=function(a,b){var c=b.snapshot.hotlistId;if(!c)return b;var d=c.map(function(e){return BD(a.userAccess,"appender","hotlists/"+e)});return Promise.all(d).then(function(e){b.snapshot.hotlistId=c.filter(function(f,h){return e[h]});return b})};n2.\u0275fac=function(a){return new (a||n2)};n2.\u0275prov=Cd({token:n2,factory:n2.\u0275fac,providedIn:"root"});var o2=function(){this.bLocation=r(DH);this.routeParams=r(EK);this.domSafe=r(UK)},med=function(a,b,c){var d=a.routeParams.redirectUrl;if(d&&d.startsWith("http")){if(c&&ha(d,"id=")||ha(d,"bugId="))d+=c;VK(a.domSafe,d)}else{var e;a.bLocation.replaceUrl((e=d)!=null?e:b)}};o2.\u0275fac=function(a){return new (a||o2)};o2.\u0275prov=Cd({token:o2,factory:o2.\u0275fac,providedIn:"root"});var ned={provide:Vtc,useValue:function(a){return a.replace(/(action\/components\/[0-9]+)\/(move|updateSlo|updateTeam)/,"$1")},multi:!0},oed={provide:Vtc,useValue:function(a){return a.replace(/(action\/hotlists\/[0-9]+)\/archive/,"$1")},multi:!0};var p2=function(){this.activeSession=r(Bs)};p2.prototype.intercept=function(a,b){var c=a.method;return c==="POST"||c==="PUT"||c==="DELETE"?(a=a.clone({setHeaders:{"X-XSRF-TOKEN":this.activeSession.getXsrfToken()}}),b.handle(a)):b.handle(a)};p2.\u0275fac=function(a){return new (a||p2)};p2.\u0275prov=Cd({token:p2,factory:p2.\u0275fac,providedIn:"root"});var ped={provide:wsc,useClass:p2,multi:!0};var q2=function(){this.http=r(bC)};Y(q2,PA);g=q2.prototype;g.get=function(a){return this.request("get",a)};g.delete=function(a){return this.request("delete",a)};g.post=function(a){return this.request("post",a,a.body)};g.put=function(a){return this.request("put",a,a.body)};g.request=function(a,b,c){var d=b.options;d=d===void 0?{}:d;d={headers:d.headers||{},params:Object.assign({},d.params)};var e,f;c==null?f=void 0:f=Gca(c);c=(e=f)!=null?e:null;return this.http.request(a,b.url,Object.assign({},d,{body:c})).pipe(C(XFb(b.responseConstructor)))};
q2.\u0275fac=function(){var a;return function(b){return(a||(a=Re(q2)))(b||q2)}}();q2.\u0275prov=Cd({token:q2,factory:q2.\u0275fac,providedIn:"root"});var r2=function(){this.jspbExecutor=r(q2)};Y(r2,QA);r2.prototype.get=function(a){return Rf(this.jspbExecutor.get(a))};r2.prototype.delete=function(a){return Rf(this.jspbExecutor.delete(a))};r2.prototype.post=function(a){return Rf(this.jspbExecutor.post(a))};r2.prototype.put=function(a){return Rf(this.jspbExecutor.put(a))};
r2.\u0275fac=function(){var a;return function(b){return(a||(a=Re(r2)))(b||r2)}}();r2.\u0275prov=Cd({token:r2,factory:r2.\u0275fac,providedIn:"root"});var s2=function(){};s2.\u0275fac=function(a){return new (a||s2)};s2.\u0275mod=uf({type:s2});s2.\u0275inj=Dd({providers:[{provide:PA,useClass:q2},{provide:QA,useClass:r2}],imports:[HC]});var t2=function(){var a=this;this.fridge=r(BB);this.userAccess=r(AD);this.currentComponentId="";this.providedComponentId$=new sg(1);this.accessCheckIsThinking$=new Kn(!0);this.component$=this.providedComponentId$.pipe(xg(function(b){return a.fridge.watch(b)}));this.userIsComponentReader$=this.providedComponentId$.pipe(xg(function(b){b!==a.currentComponentId&&(a.accessCheckIsThinking$.next(!0),a.currentComponentId=b);return BD(a.userAccess,"reader","components/"+b).then(function(c){return c},function(){return!1}).finally(function(){a.accessCheckIsThinking$.next(!1)})}));
this.isReady$=Uf([this.fridge.thinking$,this.accessCheckIsThinking$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return!b&&!c}),wg(!1));this.manageComponentLink=""};t2.prototype.ngOnInit=function(){this.currentComponentId=this.componentId};t2.prototype.ngOnChanges=function(){this.providedComponentId$.next(this.componentId);this.manageComponentLink="/components/"+this.componentId};t2.\u0275fac=function(a){return new (a||t2)};
t2.\u0275cmp=y({type:t2,selectors:[["b-async-component"]],inputs:{componentId:"componentId"},standalone:!1,features:[ov],decls:5,vars:6,consts:[[3,"isReady"],[3,"href"]],template:function(a,b){a&1&&(J(0,"b-async-data-placeholder",0),U(1,"async"),F(2,YFb,3,4,"a",1),U(3,"async"),Mg(4,ZFb,2,1,"output"),K());a&2&&(I("isReady",V(1,2,b.isReady$)),x(2),G(V(3,4,b.userIsComponentReader$)?2:4))},dependencies:[WN,Tv],encapsulation:2});var v2=function(){this.documentationLinks=r(JJ);this.activeSession=r(Bs);this.loginRedirector=r(u2);this.isAnonymous=this.activeSession.isAnonymous();this.enableSignInAnonymousAccessDenied=OA(this.activeSession,"enableSignInAnonymousAccessDenied");this.signInProgressing=this.showIssueMetadataContainer=!1};
nd.Object.defineProperties(v2.prototype,{issueMetadata:{configurable:!0,enumerable:!0,set:function(a){if(a){this.issueId=a.issueId;this.issueLastModified=ql(a.modifiedTime);a.teamId&&a.teamId!==0&&(this.issueTeamId=String(a.teamId));if(a=a.issueState){this.issueType=tj(a.type);var b;this.issueStatus=(b=uj.get(a.status))!=null?b:"";this.issuePriority=a.priority;this.issueSeverity=Poc[a.severity];this.issueComponentId=String(a.componentId);this.accessLimitLevel=S1a(a.accessLimitLevel)}this.showIssueMetadataContainer=
!0}else this.showIssueMetadataContainer=!1}}});v2.\u0275fac=function(a){return new (a||v2)};
v2.\u0275cmp=y({type:v2,selectors:[["b-access-denied-metadata"]],inputs:{issueMetadata:"issueMetadata"},standalone:!1,decls:9,vars:2,consts:[["issueMetadataContainer",""],["anonymousMessage",""],[1,"b-access-denied"],[1,"heading-l","margin-bottom"],[4,"ngTemplateOutlet"],[1,"carded","margin-top"],[3,"issuePriority"],["target","_blank","aria-label","Learn more about issue access limits",3,"href"],[3,"componentId"],[3,"teamId"],"type button mat-flat-button  color primary".split(" "),["type","button",
"mat-flat-button","","color","primary",3,"click"]],template:function(a,b){a&1&&(J(0,"div",2)(1,"h3",3),R(2," Access is denied to this issue "),K(),F(3,aGb,1,1,"ng-container"),F(4,cGb,1,1,"ng-container"),K(),D(5,fGb,40,13,"ng-template",null,0,Lh)(7,jGb,3,1,"ng-template",null,1,Lh));a&2&&(x(3),G(b.showIssueMetadataContainer?3:-1),x(),G(b.isAnonymous?4:-1))},dependencies:[Sv,t2,dO,pM,oG,Jx,yN,Wv],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 u2=function(){this.bLocation=r(DH)};u2.prototype.redirect=function(){var a=cd("/loginRedirect?continue="+encodeURIComponent(this.bLocation.getUrl())),b=window.location;a=dd(a);a!==void 0&&b.replace(a)};u2.\u0275fac=function(a){return new (a||u2)};u2.\u0275prov=Cd({token:u2,factory:u2.\u0275fac,providedIn:"root"});var w2=function(){};w2.\u0275fac=function(a){return new (a||w2)};w2.\u0275mod=uf({type:w2});w2.\u0275inj=Dd({imports:[HC,PQ]});var x2=function(){};x2.\u0275fac=function(a){return new (a||x2)};x2.\u0275mod=uf({type:x2});x2.\u0275inj=Dd({imports:[HC,w2,DQ,qM,BG,AN]});var qed=Symbol("lf"),red=RegExp("today([+-]\\d+)?"),z2=function(){this.ruleConfigService=r(y2)};
z2.prototype.build=function(a){if(a.customField)var b=a.customField.type==="DATE"?new A2(a,B2(this.ruleConfigService)):a.customField.type==="ENUM"?new sed(a,B2(this.ruleConfigService)):a.customField.type==="REPEATED_ENUM"?new ted(a,B2(this.ruleConfigService)):a.customField.type==="NUMERIC"?new C2(a,B2(this.ruleConfigService)):new D2(a,B2(this.ruleConfigService));else b=a.label.field,b=B2(this.ruleConfigService)[b],b=new (b&&b.ruleCtor||E2)(a,B2(this.ruleConfigService));b[qed](a);return b};
var QHb=function(a,b,c){return a.build({label:{field:b,customFieldId:c&&c.customFieldId||void 0},operator:"EQ",negated:!1,type:"",customField:c})};z2.\u0275fac=function(a){return new (a||z2)};z2.\u0275prov=Cd({token:z2,factory:z2.\u0275fac,providedIn:"root"});
var ued=["OR","AND","NAND"],ved=["OR","NAND"],wed="LT GT LE GE RANGE NRANGE DURATION NDURATION OR".split(" "),xed=["AND","OR","NAND"],yed=["OR","LT","GT","LE","GE"],E2=function(a,b){this.ruleConfigLookup=b;this.values=[];this.type="";this.isPendingCustomField=!1;this.label=a.label};E2.prototype[qed]=function(a){this.initType(a);this.initValues(a)};
E2.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]};E2.prototype.initValues=function(a){this.values=(a.values||[]).map(function(b){return{value:b.simpleValues[0].value}})};
var zed=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}};
E2.prototype.toString=function(){var a=zed(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=Aed(this);return(a.negated?"-":"")+d+(d?c[a.operator]:"")+b};var Aed=function(a){var b=a.label.field,c=a.ruleConfigLookup[b];return c&&(c=c.queryLabel,c!=null)?c:ksa(b).toLowerCase()+(a.label.customFieldId||"")};E2.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value}).filter(function(a){return a})};
E2.prototype.getWidgetType=function(){return"default"};E2.prototype.isValid=function(){return this.getLegalTypes().includes(this.type)};E2.prototype.getLegalTypes=function(){return ued};var Bed=[],F2=function(a,b){E2.call(this,a,b);this.enumValues={}};Y(F2,E2);g=F2.prototype;g.getLegalTypes=function(){return ved};g.getWidgetType=function(){return"enum"};
g.initValues=function(a){this.enumValues={};for(var b=l(this.getOptions()),c=b.next();!c.done;c=b.next())this.enumValues[c.value.id]=!1;a=l(a.values||[]);for(b=a.next();!b.done;b=a.next())this.enumValues[kGb(b.value.simpleValues[0].value)]=!0};g.valuesToStrings=function(){return Object.keys(cj(this.enumValues,function(a){return a}))};g.getOptions=function(){return Bed};var Ced=Oaa().map(function(a){return{id:"p"+a,label:"P"+a}}),Ded=function(a,b){F2.call(this,a,b)};Y(Ded,F2);
Ded.prototype.getOptions=function(){return Ced};var Eed=Oaa().map(function(a){return{id:"s"+a,label:"S"+a}}),Fed=function(a,b){F2.call(this,a,b)};Y(Fed,F2);Fed.prototype.getOptions=function(){return Eed};
var Ged=[{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"}],Hed=function(a,b){F2.call(this,a,b)};Y(Hed,F2);Hed.prototype.getOptions=function(){return Ged};
var Ied=[{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"}],Jed=function(a,b){F2.call(this,a,b)};Y(Jed,F2);Jed.prototype.getOptions=function(){return Ied};
var Ked=[{id:"abuse"},{id:"pii"},{id:"user_request",label:"user request"},{id:"retention"}],Led=function(a,b){F2.call(this,a,b)};Y(Led,F2);Led.prototype.getOptions=function(){return Ked};var Med=[{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"}],Ned=function(a,b){F2.call(this,a,b)};Y(Ned,F2);Ned.prototype.getOptions=function(){return Med};
var Oed=[{id:"swe",label:Kl.SWE,tooltip:EA.SWE},{id:"sre",label:Kl.SRE,tooltip:EA.SRE},{id:"pm",label:Kl.PM,tooltip:EA.PM},{id:"tpgm",label:Kl.TPGM,tooltip:EA.TPGM},{id:"ux",label:Kl.UX,tooltip:EA.UX}],Ped=[{id:"swe",label:Kl.SWE,tooltip:EA.SWE},{id:"sre",label:Kl.SRE,tooltip:EA.SRE},{id:"pm",label:Kl.PM,tooltip:EA.PM},{id:"tpgm",label:Kl.TPGM,tooltip:EA.TPGM},{id:"ux",label:Kl.UX,tooltip:EA.UX},{id:"uxd",label:Kl.UXD,tooltip:EA.UXD},{id:"uxr",label:Kl.UXR,tooltip:EA.UXR},{id:"datasci",label:Kl.DATASCI,
tooltip:EA.DATASCI},{id:"ld",label:Kl.LD,tooltip:EA.LD},{id:"devrel",label:Kl.DEVREL,tooltip:EA.DEVREL},{id:"tw",label:Kl.TW,tooltip:EA.TW},{id:"gtm",label:Kl.GTM,tooltip:EA.GTM},{id:"ce",label:Kl.CE,tooltip:EA.CE},{id:"other",label:Kl.OTHER}],Qed=function(a,b){F2.call(this,a,b)};Y(Qed,F2);Qed.prototype.getOptions=function(){return Oed};var Red=function(){F2.apply(this,arguments)};Y(Red,F2);Red.prototype.getOptions=function(){return Ped};
var sed=function(a,b){F2.call(this,a,b);this.allowedValues=[]};Y(sed,F2);sed.prototype[qed]=function(a){this.allowedValues=a.customField.allowedValue.map(function(b){return{label:b,id:kGb(b)}});F2.prototype[qed].call(this,a)};sed.prototype.valuesToStrings=function(){return Object.keys(cj(this.enumValues,function(a){return a})).map(function(a){return'"'+a+'"'})};sed.prototype.getOptions=function(){return this.allowedValues};
var ted=function(a,b){E2.call(this,a,b);this.allowedValues=[];var c,d;this.allowedValues=(d=(c=a.customField)==null?void 0:c.allowedValue)!=null?d:[]};Y(ted,E2);ted.prototype.getWidgetType=function(){return"repeated-enum"};ted.prototype.getOptions=function(){return this.allowedValues};var qs=function(a,b){E2.call(this,a,b);this.csv=""};Y(qs,E2);qs.prototype.getWidgetType=function(){return"csv"};qs.prototype.initValues=function(a){this.csv=(a.values||[]).map(function(b){return b.simpleValues[0].value}).join(",")};
qs.prototype.valuesToStrings=function(){return this.csv.split(",").map(function(a){return a.trim()}).filter(function(a){return a})};var G2=function(a,b){qs.call(this,a,b)};Y(G2,qs);G2.prototype.getWidgetType=function(){return"id"};G2.prototype.valuesToStrings=function(){return qs.prototype.valuesToStrings.call(this).map(function(a){return a.toLowerCase()==="none"?"none":a.toLowerCase()==="any"?"any":String(kj(a))})};var Sed=function(a,b){qs.call(this,a,b)};Y(Sed,G2);Sed.prototype.getLegalTypes=function(){return ved};
var H2=function(a,b){qs.call(this,a,b)};Y(H2,qs);H2.prototype.getWidgetType=function(){return"user"};var I2=function(a,b){qs.call(this,a,b)};Y(I2,H2);I2.prototype.getLegalTypes=function(){return ved};var A2=function(a,b){E2.call(this,a,b);this.dateTo=this.dateFrom=this.duration=""};Y(A2,E2);var vHb=function(a){return a&&typeof a==="string"?a:""};
A2.prototype.initType=function(a){E2.prototype.initType.call(this,a);var b=a.values&&a.values[0];b&&(b.type==="RANGE"?this.type=a.negated?"NRANGE":"RANGE":ha(b.simpleValues[0].value,"d")&&(this.type=a.negated?"NDURATION":"DURATION"))};A2.prototype.getWidgetType=function(){return"date"};
A2.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=Ted(b),this.type==="RANGE"||this.type==="NRANGE")this.dateTo=Ted(a.values[0].simpleValues[1].value)}};
A2.prototype.valuesToStrings=function(){if(this.type==="DURATION"||this.type==="NDURATION"){var a=kj(this.duration);return!a||isNaN(a)?[]:[a+"d"]}if(this.type==="RANGE"||this.type==="NRANGE"){a=this.dateFrom&&Ued(this.dateFrom)||(new jj).toIsoString(!0);var b=this.dateTo&&Ued(this.dateTo)||(new jj).toIsoString(!0);return[a+".."+b]}return[this.dateFrom&&Ued(this.dateFrom)||(new jj).toIsoString(!0)]};
var Ved=function(a){return String(a.getMonth()+1)+"/"+String(a.getDate())+"/"+String(a.getFullYear())},Ted=function(a){if(red.test(a))return a;var b=new rl(2E3);a=oa(a);var c=a.indexOf("T")==-1?" ":"T";a=a.split(c);var d=a[0].match(Jfc);if(d){var e=Number(d[2]),f=Number(d[3]),h=Number(d[4]);c=Number(d[5]);var k=Number(d[6])||1;b.setFullYear(Number(d[1]));h?(b.setDate(1),b.setMonth(0),b.add(new hv("d",h-1))):c?(b.setMonth(0),b.setDate(1),d=b.getDay()||7,b.add(new hv("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(Lfc);if(a)if(c=c.substring(0,c.length-a[0].length),a[0]==="Z")var q=0;else q=Number(a[2])*60+Number(a[3]),q*=a[1]=="-"?1:-1;if(h=c.match(Kfc)){if(a){a=b.getYear();c=b.getMonth();k=b.getDate();d=Number(h[1]);e=Number(h[2])||0;f=Number(h[3])||0;var v=h[4]?Number(h[4])*1E3:0;(h=a>=0&&a<100)&&(a+=400);a=Date.UTC(a,c,k,d,e,f,v);h&&(a-=126227808E5);b.setTime(a+q*6E4)}else b.setHours(Number(h[1])),
b.setMinutes(Number(h[2])||0),b.setSeconds(Number(h[3])||0),b.setMilliseconds(h[4]?Number(h[4])*1E3:0);c=!0}else c=!1}return Ved(c?b:null)},Ued=function(a){if(red.test(a))return a;a=a.split("/").map(Number);return(new jj(a[2],a[0]-1,a[1])).toIsoString(!0)};A2.prototype.getLegalTypes=function(){return wed};var J2=function(a,b){E2.call(this,a,b)};Y(J2,E2);J2.prototype.getWidgetType=function(){return"bool"};
J2.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"};J2.prototype.toString=function(){return Aed(this)+":"+(this.type==="OR")};J2.prototype.getLegalTypes=function(){return ved};var K2=function(a,b){E2.call(this,a,b)};Y(K2,E2);K2.prototype.getWidgetType=function(){return"boolwithall"};
K2.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")};K2.prototype.toString=function(){var a=Aed(this)+":";switch(this.type){case "OR":return a+"true";case "NAND":return a+"false";default:return a+"all"}};
K2.prototype.getLegalTypes=function(){return xed};var D2=function(a,b){E2.call(this,a,b)};Y(D2,E2);D2.prototype.getWidgetType=function(){return"text"};D2.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}})};D2.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value.includes(" ")?'"'+a.value+'"':a.value})};
var Wed=function(a,b){E2.call(this,a,b)};Y(Wed,E2);Wed.prototype.getWidgetType=function(){return"component"};Wed.prototype.initValues=function(a){a.values&&(this.values=a.values.map(function(b){b=b.simpleValues[0].value;var c={value:b,includeSubs:!1};ha(b,"+")&&(b=b.slice(0,b.length-1),c.value=b,c.includeSubs=!0);return c}))};Wed.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value+(a.includeSubs?"+":"")}).filter(function(a){return a})};
var Xed=function(a,b){E2.call(this,a,b)};Y(Xed,E2);Xed.prototype.initValues=function(a){a.values&&(this.values=a.values.map(function(b){b=b.simpleValues[0].value;var c={value:b,includeSubs:!1};ha(b,"+")&&(b=b.slice(0,b.length-1),c.value=b,c.includeSubs=!0);return c}))};Xed.prototype.valuesToStrings=function(){return this.values.map(function(a){return a.value+(a.includeSubs?"+":"")}).filter(function(a){return a})};var Yed=function(a,b){E2.call(this,a,b)};Y(Yed,E2);Yed.prototype.getWidgetType=function(){return"tracker"};
var Zed=function(a,b){E2.call(this,a,b)};Y(Zed,Xed);Zed.prototype.getWidgetType=function(){return"team"};var $ed=function(a,b){E2.call(this,a,b)};Y($ed,E2);$ed.prototype.getWidgetType=function(){return"hotlist"};var afd=function(a,b){E2.call(this,a,b)};Y(afd,E2);afd.prototype.getWidgetType=function(){return"savedsearch"};var C2=function(a,b){qs.call(this,a,b)};Y(C2,qs);C2.prototype.getWidgetType=function(){return"number"};C2.prototype.getLegalTypes=function(){return yed};
var bfd=function(a,b){A2.call(this,a,b)};Y(bfd,A2);bfd.prototype.initType=function(a){A2.prototype.initType.call(this,a);a.negated&&(this.type="ERR")};
var L2={},cfd=(L2.ATTACHMENT={ruleCtor:D2,name:"Attachment name"},L2.COMMENT={ruleCtor:D2},L2.TITLE={ruleCtor:D2},L2.ASSIGNEE={ruleCtor:I2},L2.MODIFIER={ruleCtor:H2},L2.REPORTER={ruleCtor:I2},L2.VERIFIER={ruleCtor:I2},L2.CC={ruleCtor:H2},L2.COLLABORATOR={ruleCtor:H2},L2.COMPONENT_ID={ruleCtor:Wed,name:"Component"},L2.TRACKER_ID={ruleCtor:Yed,name:"Tracker"},L2.TYPE={ruleCtor:Hed},L2.STATUS={ruleCtor:Jed},L2.PRIORITY={ruleCtor:Ded},L2.SEVERITY={ruleCtor:Fed},L2.BLOCKED_BY_ID={ruleCtor:G2},L2.BLOCKING_ID=
{ruleCtor:G2},L2.PARENT_ID={ruleCtor:G2},L2.CANONICAL_ID={ruleCtor:Sed},L2.ID={ruleCtor:Sed},L2.FOUND_IN={ruleCtor:qs},L2.TARGETED_TO={ruleCtor:qs},L2.VERIFIED_IN={ruleCtor:qs},L2.CL={ruleCtor:qs,name:"Changelists"},L2.MODIFIED={ruleCtor:A2},L2.RESOLVED={ruleCtor:bfd},L2.CREATED={ruleCtor:A2},L2.VERIFIED={ruleCtor:bfd},L2.DELETION_TIME={ruleCtor:A2,name:"Deletion time"},L2.SAVED_SEARCH_ID={ruleCtor:afd,name:"Saved search"},L2.HOTLIST_ID={ruleCtor:$ed,name:"Hotlist"},L2.STAR={ruleCtor:J2,name:"Starred"},
L2.MUTE={ruleCtor:J2,name:"Muted"},L2.VOTE={ruleCtor:J2,name:"Upvoted by me"},L2.IN_PROD={ruleCtor:J2,name:"In production"},L2.CC_COUNT={ruleCtor:C2},L2.COLLABORATOR_COUNT={ruleCtor:C2},L2.DUPLICATE_COUNT={ruleCtor:C2},L2.VOTE_COUNT={ruleCtor:C2},L2.COMMENT_COUNT={ruleCtor:C2},L2.DESCENDANT_COUNT={ruleCtor:C2},L2.OPEN_DESCENDANT_COUNT={ruleCtor:C2},L2.ONE_DAY_VIEW_COUNT={ruleCtor:C2},L2.SEVEN_DAY_VIEW_COUNT={ruleCtor:C2},L2.THIRTY_DAY_VIEW_COUNT={ruleCtor:C2},L2.ATTACHMENT_COUNT={ruleCtor:C2},L2.LAST_MODIFIER=
{ruleCtor:I2,name:"Last Modified By"},L2.COMMENTER={ruleCtor:H2},L2.LAST_COMMENTER={ruleCtor:I2},L2.ARCHIVED={ruleCtor:K2},L2.IS_DELETED={ruleCtor:J2,name:"Deleted",queryLabel:"deleted"},L2.DELETION_REASON={ruleCtor:Led,name:"Deletion reason"},L2.ACCESS_LEVEL={ruleCtor:Ned,name:"Issue access level"},L2.STAFFING_PLACEHOLDER_COUNT={ruleCtor:C2,name:"Staffing - Placeholder Count",queryLabel:"staffingplaceholdercount"},L2.STAFFING_USER={ruleCtor:H2,name:"Staffing - User",queryLabel:"staffinguser"},L2.STAFFING_USER_COUNT=
{ruleCtor:C2,name:"Staffing - User Count",queryLabel:"staffingusercount"},L2._TEXT_={ruleCtor:D2,queryLabel:"",name:"All fields"},L2),dfd=Object.assign({},cfd,{EFFORT_LABEL:{ruleCtor:qs},MENTION:{ruleCtor:H2},MIN_SLO_TARGET:{ruleCtor:A2,name:"Nearest SLO",queryLabel:"nearestslo"},POSTMORTEM:{ruleCtor:qs,name:"Postmortems"},TEAM_ID:{ruleCtor:Zed,name:"Team"}}),efd={ESCALATION_OWNER:{ruleCtor:I2}},ffd={INSIGHT:{ruleCtor:D2}},gfd={ATTACHMENT_ANALYSIS:{ruleCtor:D2}},y2=function(){this.activeSession=r(Bs)},
B2=function(a){var b=OA(a.activeSession,"enableStaffingFieldEnhancementsUi")?{STAFFING_PLACEHOLDER:{ruleCtor:Red,name:"Staffing - Placeholder",queryLabel:"staffingplaceholder"}}:{STAFFING_PLACEHOLDER:{ruleCtor:Qed,name:"Staffing - Placeholder",queryLabel:"staffingplaceholder"}};b=a.activeSession.isExternalSession()?Object.assign({},b,cfd):Object.assign({},b,dfd);OA(a.activeSession,"enableEscalationOwnerRolloutUi")&&(b=Object.assign({},b,efd));a.activeSession.isInternalSession()&&OA(a.activeSession,
"enableInsightsEnrichments")&&(b=Object.assign({},b,ffd));a.activeSession.isInternalSession()&&OA(a.activeSession,"enableAttachmentAnalysisSearch")&&(b=Object.assign({},b,gfd));return b};y2.\u0275fac=function(a){return new (a||y2)};y2.\u0275prov=Cd({token:y2,factory:y2.\u0275fac,providedIn:"root"});var hfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hfd,n);g=hfd.prototype;g.getField=function(){return pk(this,1)};g.clearField=function(){return Bu(this,1)};g.getCustomFieldId=function(){return xk(this,2)};g.getCustomFieldId_asString=function(){return sk(this,2)};g.setCustomFieldId=function(a){return Uk(this,2,a)};g.hasCustomFieldId=function(){return Ob(rk(this,2))!=null};var qGb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qGb,n);g=qGb.prototype;g.getType=function(){return pk(this,1)};g.setType=function(a){return Rk(this,1,a)};g.hasType=function(){return nk(this,1)};g.getValue=function(){return Rc(this,2)};g.setValue=function(a){return Qk(this,2,a)};g.hasValue=function(){return mk(this,2)};var M2=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(M2,n);g=M2.prototype;g.getType=function(){return pk(this,1)};g.setType=function(a){return Rk(this,1,a)};g.hasType=function(){return nk(this,1)};g.getValuesList=function(a){return Sj(this,M2,2,Bj(a))};g.setValuesList=function(a){return Bm(this,2,a)};g.setValues=function(a,b){Au(this,2,M2,a,b)};var yGb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(yGb,n);g=yGb.prototype;g.getType=function(){return pk(this,1)};g.setType=function(a){return Rk(this,1,a)};g.hasType=function(){return nk(this,1)};g.getValuesList=function(a){return Sj(this,M2,2,Bj(a))};g.setValuesList=function(a){return Bm(this,2,a)};g.setValues=function(a,b){Au(this,2,M2,a,b)};g.getLabel=function(){return W(this,hfd,4)};g.setLabel=function(a){return X(this,hfd,4,a)};
g.hasLabel=function(){return tk(this,hfd,4)};var ls=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,ls.messageId)};Y(ls,n);ls.prototype.getType=function(){return pk(this,1,void 0,Nc)};ls.prototype.setType=function(a){return Rk(this,1,a,Nc)};ls.prototype.hasType=function(){return nk(this,1,Nc)};ls.messageId="b.QueryBuilderResponse";var vGb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,vGb.messageId)};Y(vGb,n);vGb.messageId="b.SyntaxErrorResponse";var ifd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,ifd.messageId)};Y(ifd,n);ifd.prototype.getKindCase=function(){return Ml(this,wGb,Nc)};var wGb=[1,2];ifd.messageId="b.QueryBuilderResponseOrError";var N2=function(){this.executor=r(QA)},jfd=function(a,b){b=Xm(b);return a.executor.get({url:"action/issue_query_parse/"+b,responseConstructor:ifd}).then(zGb).then(function(c){var d;(d=c.syntaxErrorResponse)!=null?c=d:(c=c.queryBuilderResponse,c={type:c.type,expressions:c.expressions.map(lGb)});return c})};N2.\u0275fac=function(a){return new (a||N2)};N2.\u0275prov=Cd({token:N2,factory:N2.\u0275fac,providedIn:"root"});var O2=function(){var a=this;this.trackerFridge=r(cG);this.placeholder="Choose Tracker";this.disabled=!1;this.onTrackerSelect=new LE;this.searchQuery$=new tg;this.trackerSuggestions$=this.searchQuery$.pipe(kg(300),og(),xg(function(b){return a.trackerFridge.watchMany({filter:b,pageSize:5})}),C(function(b){return b.results}));this.displayFn=function(b){return b?b.name:""}};O2.prototype.ngAfterViewInit=function(){};O2.prototype.updateSelectionOnChange=function(a){this.onTrackerSelect.emit(a.option.value)};
O2.prototype.search=function(a){this.searchQuery$.next(a)};O2.\u0275fac=function(a){return new (a||O2)};
O2.\u0275cmp=y({type:O2,selectors:[["b-tracker-picker"]],viewQuery:function(a,b){a&1&&hh(dM,7);if(a&2){var c;lh(c=mh())&&(b.autocompleteTrigger=c.first)}},inputs:{selectedTracker:"selectedTracker",placeholder:"placeholder",disabled:"disabled"},outputs:{onTrackerSelect:"onTrackerSelect"},standalone:!1,decls:7,vars:8,consts:[["trackerSearchInput",""],["auto","matAutocomplete"],["id","tracker-id","type","text","autocomplete","off","aria-label","Tracker selection",3,"click","input","placeholder","ngModel",
"disabled","matAutocomplete"],[3,"optionSelected","displayWith"],[1,"tracker-search-result",3,"value"],[1,"tracker-name"]],template:function(a,b){if(a&1){var c=t();J(0,"input",2,0);N("click",function(){u(c);var d=Q(1);return w(b.search(d.value))})("input",function(){u(c);var d=Q(1);return w(b.search(d.value))});K();J(2,"mat-autocomplete",3,1);N("optionSelected",function(d){u(c);return w(b.updateSelectionOnChange(d))});Pg(4,AGb,3,2,"mat-option",4,Og);U(6,"async");K()}a&2&&(a=Q(3),I("placeholder",b.placeholder)("ngModel",
b.selectedTracker)("disabled",b.disabled)("matAutocomplete",a),Lg("aria-disabled",b.disabled),x(2),I("displayWith",b.displayFn),x(2),Qg(V(6,6,b.trackerSuggestions$)))},dependencies:[fM,cM,Bx,dM,Ui,dy,ky,Tv],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 P2=function(){Z.apply(this,arguments);this.analytics=r(RE);this.customFieldsApi=r(mD);this.savedSearchApi=r(fD);this.hotlistApi=r(YC);this.trackerFridge=r(cG);this.issueSearchResources=r(N2);this.activeSession=r(Bs);this.elementRef=r(Te);this.errorHandler=r(aK);this.componentActions=r(WM);this.teamsService=r(SF);this.searchRuleConfigService=r(y2);this.searchRuleFactory=r(z2);this.cdr=r(NE,{self:!0});this.trackerHelpers=r(iK);this.currentUserBookmarksFridge=r(hD);this.enablePeoplekitAc=OA(this.activeSession,
"enablePeoplekitUserAc");this.candidateEmailAutocompleteDenylist=["me","none","any"];this.sessionIsInternal=this.activeSession.isInternalSession();this.isTrackerSearchEnabled=!1;this.typeLabels=P2.TYPE_LABELS;this.globalTypeLabels=P2.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};Y(P2,Z);P2.\u0275dir=Z.\u0275dir;var kfd=function(a){var b=[];bj(B2(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,xQa(d)]))},a);b.sort(function(c,d){return Laa(c[1],d[1])});b.push(["SAVED_SEARCH_ID","Saved search"]);b.push(["CUSTOM_FIELD","Custom field"]);return b};P2.prototype.schedule=function(a){this.subscriptions.add(ag.schedule(a))};
P2.prototype.ngOnInit=function(){this.cdr.detectChanges()};P2.prototype.ngOnChanges=function(a){a.isTrackerSearchEnabled&&(this.availableLabels=kfd(this))};
var mfd=function(a,b){a.reset();b?lfd(a,b):(a.expressions=P2.DEFAULT_FIELDS.map(function(c){return QHb(a.searchRuleFactory,c)}),a.state="SUCCESS");Rf(iuc(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()});Rf(iD(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()},lfd=function(a,b){jfd(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 nfd(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()})},nfd=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?ofd(a,b.label.customFieldId).then(function(c){b.customField=
c;return pfd(a,b)}):Promise.resolve(pfd(a,b))},ofd=function(a,b){return a.customFields[b]?Promise.resolve(a.customFields[b]):a.customFieldsApi.get(b).then(function(c){return a.customFields[b]=c})},pfd=function(a,b){b=b.type==="ERR"?null:a.searchRuleFactory.build(b);if(!b||b&&!b.isValid())return null;qfd(a,b);return b},qfd=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]||rfd(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]||sfd(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})}};P2.prototype.fetchComponent=function(a){var b=this;this.componentActions.get(a).then(function(c){var d;Eq(b.activeSession)&&c.trackerId!==((d=b.activeSession.getTracker())==null?void 0:d.trackerId)||(b.components[a]=c)})};
var rfd=function(a,b){a.trackerFridge.watch(b).pipe(yg(a.destroyed$)).subscribe(function(c){c&&(a.trackers[b]=c)})},sfd=function(a,b){VF(a.teamsService,b).pipe(hg(function(){return Nf([])}),yg(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:""}})},tfd=function(a){var b=a.expressionType==="AND"?" ":" | ";return Cdc(a.expressions.map(function(c){return c.label?
c.toString():""}),Amc).join(b)};P2.prototype.getState=function(){return this.state};P2.prototype.reset=function(){this.expressionType="AND";this.expressions=[];this.state="INIT"};
var THb=function(a,b){var c=a.expressions[b],d=c.label;d.field==="CUSTOM_FIELD"?c.isPendingCustomField=!0:(a.expressions[b]=QHb(a.searchRuleFactory,d.field),RHb(a,a.expressions[b]));a.cdr.detectChanges()},RHb=function(a,b){var c=b.getWidgetType();c==="component"||c==="savedsearch"||c==="hotlist"||c==="text"||c==="team"||c==="tracker"||c==="repeatedenum"?os(a,b):c==="date"&&(b.dateFrom||(b.dateFrom=Ved(new jj)),b.dateTo||(b.dateTo=Ved(new jj)))};
P2.prototype.removeExpression=function(a){Fa(this.expressions,a);this.cdr.detectChanges()};var os=function(a,b){var c={value:""};b.values.push(c);b.label.field==="COMPONENT_ID"?ZGb(a,c):b.label.field==="TRACKER_ID"?fHb(a,c):b.label.field==="TEAM_ID"?mHb(a,c):b.label.field==="CUSTOM_FIELD"?GGb(a,c):ps(a,c);a.cdr.detectChanges()},ns=function(a,b,c){Fa(b.values,c);b.values.length||a.removeExpression(b);a.cdr.detectChanges()};
P2.prototype.getDateValue=function(a){var b,c=a.match(red);return c?(b||(b=new Date),c[1]&&b.setDate(b.getDate()+ +c[1]),String(b.getUTCMonth()+1)+"/"+String(b.getUTCDate())+"/"+String(b.getUTCFullYear())):a};
var ps=function(a,b){a.chipUnderEdit=b;a.cdr.detectChanges()},ZGb=function(a,b){ps(a,b);a.componentUnderEdit=b.value?hj(a.components[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-component-picker input").focus()})},GGb=function(a,b){ps(a,b);a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-adv-search-custom-repeated-enum-chip input").focus()})},fHb=function(a,b){ps(a,b);a.trackerUnderEdit=b.value?hj(a.trackers[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-tracker-picker input").focus()})},
mHb=function(a,b){ps(a,b);a.teamUnderEdit=b.value?hj(a.teams[b.value]):null;a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-team-picker input").focus()})},ms=function(a){a.chipUnderEdit=null;a.cdr.detectChanges()},oHb=function(a,b){a.analytics.trackEvent("search","builder-autocomplete-select","team",isNaN(Number(b.id))?0:Number(b.id));a.chipUnderEdit.value=b.id;a.teams[b.id]=b;a.teamUnderEdit=null;ms(a);a.schedule(function(){a.elementRef.nativeElement.querySelector(".bv2-search-team-picker input").focus()})};
P2.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]};P2.prototype.getCustomFieldName=function(a){return(a=a.label.customFieldId)?this.customFields[a].name||String(a):""};P2.prototype.getComponentPath=function(a){if(!a)return"";var b=rs(this.trackerHelpers,a.componentPathInfo);return b&&b.componentPathName?b.componentPathName.join(" > "):a.name};
P2.GLOBAL_TYPE_LABELS={AND:"Match all (AND)",OR:"Match any (OR)"};
P2.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"}};
P2.DEFAULT_FIELDS=["COMPONENT_ID","ASSIGNEE","STATUS","_TEXT_"];P2.\u0275fac=function(){var a;return function(b){return(a||(a=Re(P2)))(b||P2)}}();
P2.\u0275cmp=y({type:P2,selectors:[["b-advanced-search"]],inputs:{isTrackerSearchEnabled:"isTrackerSearchEnabled"},standalone:!1,features:[Fh([NE]),Bg,ov],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"],["type",
"text","aria-label","Add one or more user names, separated by comma","placeholder","One or more user names, comma-separated","bPeoplekitEmailAutocomplete","",3,"ngModel","candidateDenylist"],["type","text","aria-label","Add one or more user names, separated by comma","placeholder","One or more user names, comma-separated",3,"ngModel","bContactAutocomplete"],["type","text","aria-label","Add one or more user names, separated by comma","placeholder","One or more user names, comma-separated","bPeoplekitEmailAutocomplete",
"",3,"ngModelChange","ngModel","candidateDenylist"],["type","text","aria-label","Add one or more user names, separated by comma","placeholder","One or more user names, comma-separated",3,"ngModelChange","ngModel","bContactAutocomplete"],["type","text","aria-label","Add one or more values, separated by comma","placeholder","One or more values, comma-separated",3,"ngModelChange","ngModel"],["type","text","placeholder","One or more IDs, comma-separated - e.g., 1,2,3",3,"ngModelChange","ngModel"],["type",
"text","aria-label","Add the condition",3,"ngModelChange","ngModel"],[1,"bv2-adv-search-chip","bv2-adv-search-chip-text"],["type","button","aria-label","Remove the condition",1,"bv2-adv-search-chip-delete-btn","bv2-remove-icon",3,"click"],[1,"bv2-adv-search-chip","bv2-adv-search-component-chip"],["type","button","role","switch","aria-label","Include subcomponents",1,"unstyled-button",3,"click","title"],[3,"svgIcon"],[1,"bv2-search-component-picker",3,"selectedComponentChange","selectedComponent",
"placeholder","isRequired"],[1,"bv2-adv-search-chip","bv2-adv-search-tracker-chip"],[1,"bv2-search-tracker-picker",3,"onTrackerSelect","selectedTracker"],[1,"bv2-adv-search-chip","bv2-adv-search-team-chip"],["type","button","role","switch","aria-label","Include subteams",1,"unstyled-button",3,"click","title"],[1,"bv2-search-team-picker",3,"onTeamSelect","teamSelected"],[3,"boundValueChange","boundValue","isRequired"],["type","text","maxlength","3",1,"bv2-duration-field",3,"ngModelChange","ngModel"],
[1,"bv2-adv-search-chip","bv2-adv-search-bookmark-item-chip"],["appearance","outline","subscriptSizing","dynamic",1,"bv2-adv-search-bookmark-item-form-field"],["placeholder","Select hotlist",1,"bv2-adv-search-chip-content","bv2-adv-search-chip-content-selectable",3,"ngModelChange","selectionChange","ngModel"],["placeholder","Select search",1,"bv2-adv-search-chip-content","bv2-adv-search-chip-content-selectable",3,"ngModelChange","selectionChange","ngModel"],[3,"fieldSelected"],["mat-menu-item","",
"type","button",3,"click"]],template:function(a,b){a&1&&F(0,WHb,14,3,"div",1);a&2&&G(b.getState()==="SUCCESS"?0:-1)},dependencies:[FC,zI,j_,iM,Ui,dy,wy,ky,oG,Jx,gM,hM,DM,My,pG,sG,qG,uG,bP,jP,Bx,zG,xG,H_,ZU,hN,jY,O2,nNc,Yv],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 Q2=function(){};Q2.\u0275fac=function(a){return new (a||Q2)};Q2.\u0275mod=uf({type:Q2});Q2.\u0275inj=Dd({imports:[HC,jM,lM,CG,Ay]});var R2=function(){};R2.\u0275fac=function(a){return new (a||R2)};R2.\u0275mod=uf({type:R2});R2.\u0275inj=Dd({imports:[nL,HC,AI,k_,mM,Ay,BG,lM,EM,GM,mH,hQ,CG,R_,cV,SQ,lY,Q2]});var S2=function(){this.domSafe=r(UK);this.buttonLabel="";this.alertMode=this.menuMode=!1},XHb=function(a){Jq(a.domSafe,"https://g3doc.corp.google.com/company/teams/buganizer/release-notes/b3-releasenotes.md")};S2.\u0275fac=function(a){return new (a||S2)};
S2.\u0275cmp=y({type:S2,selectors:[["b-whats-new-button"]],inputs:{buttonLabel:"buttonLabel",menuMode:"menuMode",alertMode:"alertMode"},standalone:!1,decls:2,vars:1,consts:["type;button;mat-menu-item;;aria-label;Open release notes in a new tab".split(";"),["type","button","mat-icon-button","","aria-label","Open release notes in a new tab",3,"matTooltip"],["type","button","mat-menu-item","","aria-label","Open release notes in a new tab",3,"click"],["type","button","mat-icon-button","","aria-label",
"Open release notes in a new tab",3,"click","matTooltip"],[3,"svgIcon"]],template:function(a,b){a&1&&F(0,YHb,2,1,"button",0)(1,ZHb,3,3,"button",1);a&2&&G(b.menuMode?0:1)},dependencies:[FC,oG,Kx,qG,zG,xG],styles:["[_nghost-%COMP%] { display: flex; }"]});var ufd=function(){};ufd.\u0275fac=function(a){return new (a||ufd)};ufd.\u0275cmp=y({type:ufd,selectors:[["b-feature-stage-label"]],inputs:{featureStage:"featureStage"},standalone:!1,decls:2,vars:1,consts:[[1,"badged","teamfood"],[1,"badged","early-access"]],template:function(a,b){a&1&&F(0,$Hb,1,0,"div",0)(1,aIb,1,0,"div",1);if(a&2){var c;G((c=b.featureStage)==="TEAM_FOOD"?0:c==="EARLY_ACCESS"?1:-1)}},styles:[".badged[_ngcontent-%COMP%]::after{margin-left:0}"]});var T2=function(){Z.apply(this,arguments);this.session=r(Bs);this.appsEvents=r(FB);this.prefsManager=r(iG);this.enableWhatsNewDialog=OA(this.session,"enableWhatsNewDialog");this.enableBeap=OA(this.session,"enableBeap");this.ThemePreferencesDensity=vnc;this.density="COMFORTABLE"};Y(T2,Z);T2.\u0275dir=Z.\u0275dir;g=T2.prototype;g.ngOnInit=function(){var a=this;this.prefsManager.preferences$.pipe(yg(this.destroyed$)).subscribe(function(b){if(b==null?0:b.themePreferences)a.density=b.themePreferences.density})};
g.setDensity=function(a){this.appsEvents.topBarEvents.setDensity.next(a)};g.browseComponents=function(a){this.appsEvents.topBarEvents.browseComponents.next({newTab:a.ctrlKey||a.metaKey})};g.manageHotlists=function(a){this.appsEvents.topBarEvents.manageHotlists.next({newTab:a.ctrlKey||a.metaKey})};g.manageSlos=function(a){this.appsEvents.topBarEvents.manageSlos.next({newTab:a.ctrlKey||a.metaKey})};T2.\u0275fac=function(){var a;return function(b){return(a||(a=Re(T2)))(b||T2)}}();
T2.\u0275cmp=y({type:T2,selectors:[["b-app-settings-menu"]],standalone:!1,features:[Bg],decls:28,vars:13,consts:[["settingsMenu","matMenu"],["type","button","mat-icon-button","","matTooltip","Settings","aria-label","Settings",3,"disabled","matMenuTriggerFor"],["svgIcon","settings-outline",1,"icon-m"],[1,"b-menu-header"],["type","button","mat-menu-item","","role","menuitemcheckbox","aria-label","set display density to comfortable",3,"click"],[1,"b-menu-item-check-mark"],["svgIcon","done",1,"icon-s"],
["type","button","mat-menu-item","","role","menuitemcheckbox","aria-label","set display density to cozy",3,"click"],["type","button","mat-menu-item","","role","menuitemcheckbox","aria-label","set display density to compact",3,"click"],["type","button","mat-menu-item","",3,"click"],["type","button","mat-menu-item","",3,"click",4,"internalOnly"],["mat-menu-item","","href","/settings/early-access"],["featureStage","TEAM_FOOD","matTooltip","Teamfood"],["buttonLabel","Release Notes",3,"menuMode"]],template:function(a,
b){if(a&1){var c=t();J(0,"button",1);M(1,"mat-icon",2);K();J(2,"mat-menu",null,0)(4,"div",3);R(5,"Display Density");K();J(6,"button",4);N("click",function(){u(c);return w(b.setDensity(b.ThemePreferencesDensity.COMFORTABLE))});J(7,"span",5);M(8,"mat-icon",6);K();R(9," Comfortable ");K();J(10,"button",7);N("click",function(){u(c);return w(b.setDensity(b.ThemePreferencesDensity.COZY))});J(11,"span",5);M(12,"mat-icon",6);K();R(13," Cozy ");K();J(14,"button",8);N("click",function(){u(c);return w(b.setDensity(b.ThemePreferencesDensity.COMPACT))});
J(15,"span",5);M(16,"mat-icon",6);K();R(17," Compact ");K();M(18,"mat-divider");J(19,"button",9);N("click",function(d){u(c);return w(b.browseComponents(d))});R(20,"Browse components");K();J(21,"button",9);N("click",function(d){u(c);return w(b.manageHotlists(d))});R(22,"Manage hotlists");K();D(23,bIb,2,0,"button",10);J(24,"button",9);N("click",function(d){u(c);b.appsEvents.topBarEvents.openSettings.next({newTab:d.ctrlKey||d.metaKey});return w()});R(25,"Settings");K();F(26,cIb,3,0,"a",11);F(27,dIb,
2,1);K()}a&2&&(a=Q(3),I("disabled",b.session.isAnonymous())("matMenuTriggerFor",a),x(6),uh("b-menu-item-checked",b.density===b.ThemePreferencesDensity.COMFORTABLE),Lg("aria-checked",b.density===b.ThemePreferencesDensity.COMFORTABLE),x(4),uh("b-menu-item-checked",b.density===b.ThemePreferencesDensity.COZY),Lg("aria-checked",b.density===b.ThemePreferencesDensity.COZY),x(4),uh("b-menu-item-checked",b.density===b.ThemePreferencesDensity.COMPACT),Lg("aria-checked",b.density===b.ThemePreferencesDensity.COMPACT),
x(12),G(b.enableBeap?26:-1),x(),G(b.enableWhatsNewDialog?27:-1))},dependencies:[FC,pG,sG,qG,uG,oG,Kx,pL,zG,xG,S2,yS,ufd],encapsulation:2,changeDetection:0});var U2=function(){this.theme=r(FO);this.isDark=!1;this.iconName="dark-mode-filled"};U2.prototype.ngOnInit=function(){this.theme.loadLocalDarkmode();vfd(this)};var vfd=function(a){a.isDark=a.theme.clientDarkmodeSubject.getValue();a.iconName=a.isDark?"brightness-high":"dark-mode-filled"};U2.\u0275fac=function(a){return new (a||U2)};
U2.\u0275cmp=y({type:U2,selectors:[["theme-change-btn"]],standalone:!1,decls:2,vars:1,consts:[["type","button","mat-icon-button","","matTooltip","Change theme","aria-label","Change the application's visual theme",3,"click"],[3,"svgIcon"]],template:function(a,b){a&1&&(J(0,"button",0),N("click",function(){var c=b.theme;c.setLocalDarkmode(!c.clientDarkmodeSubject.getValue());c.clientStreamzService&&ZHc(c.clientStreamzService,"toggleDarkmode",!c.clientDarkmodeSubject.getValue());lSc(c,!c.clientDarkmodeSubject.getValue());
vfd(b)}),M(1,"mat-icon",1),K());a&2&&(x(),I("svgIcon",b.iconName))},dependencies:[FC,oG,Kx,zG,xG],encapsulation:2});var V2=function(){this.session=r(Bs);this.userFeedback=r(rS);this.domSafe=r(UK);this.docLinks=r(JJ);this.enableWhatsNewDialog=OA(this.session,"enableWhatsNewDialog");this.majorReleaseNotesUpdated=OA(this.session,"majorReleaseNotesUpdated")};V2.prototype.openFeedbackDialog=function(){this.userFeedback.startFeedback()};V2.\u0275fac=function(a){return new (a||V2)};
V2.\u0275cmp=y({type:V2,selectors:[["b-app-actions"]],standalone:!1,decls:6,vars:1,consts:[["id","whatsNewButton",3,"alertMode"],["type","button","mat-icon-button","","class","feedback-button","matTooltip","Send feedback","aria-label","send feedback",3,"click",4,"internalOnly"],["type","button","mat-icon-button","","matTooltip","Help","aria-label","help",3,"click"],["svgIcon","help-outline"],["type","button","mat-icon-button","","matTooltip","Send feedback","aria-label","send feedback",1,"feedback-button",
3,"click"],["svgIcon","feedback-outline"]],template:function(a,b){a&1&&(M(0,"theme-change-btn"),F(1,eIb,1,1,"b-whats-new-button",0),D(2,fIb,2,0,"button",1),J(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),K(),M(5,"b-app-settings-menu"));a&2&&(x(),G(b.enableWhatsNewDialog?1:-1))},dependencies:[FC,oG,Kx,zG,xG,
S2,yS,U2,T2],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 hIb=function(a){return[a]},iIb=function(){return[]},W2=function(){this.activeSession=r(Bs);this.clickMenu=new LE;this.showMenu=!1;this.clickLogo=new LE;this.chips=[]};W2.prototype.ngOnInit=function(){this.showMenu=!this.activeSession.isAnonymous()&&this.clickMenu.observed};W2.\u0275fac=function(a){return new (a||W2)};
W2.\u0275cmp=y({type:W2,selectors:[["app-logo"]],inputs:{imgSrc:"imgSrc",imgSrcDark:"imgSrcDark",href:"href",name:"name",chips:"chips"},outputs:{clickMenu:"clickMenu",clickLogo:"clickLogo"},standalone:!1,ngContentSelectors:["*"],decls:9,vars:5,consts:[["type","button","mat-icon-button","","aria-label","Expand/Collapse Navigation",1,"menu"],[3,"click"],["alt","",1,"logo","light",3,"src"],["alt","",1,"logo","dark",3,"src"],[1,"b-chip",3,"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&&(ch(),F(0,gIb,2,0,"button",0),J(1,"a",1),N("click",function(){return b.clickLogo.emit()}),M(2,"img",2)(3,"img",3),J(4,"h1"),R(5),K()(),dh(6),Pg(7,jIb,2,6,"output",4,Og));a&2&&(G(b.showMenu?0:-1),x(),Lg("href",b.href?b.href:void 0,hf),x(),I("src",b.imgSrc,hf),x(),I("src",b.imgSrcDark||b.imgSrc,hf),x(2),wh(b.name),x(2),Qg(b.chips))},dependencies:[FC,oG,Kx],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 X2=function(){this.events=r(FB);this.imageUrls=r(YM);this.environmentType="QA";this.frontendAccessMode="INTERNAL";this.href="/";this.chips=[];this.name="Buganizer"};X2.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"})};
X2.prototype.ngOnChanges=function(a){if(a.tracker||a.frontendAccessMode)this.name=this.getAppName()};X2.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:pb(this.frontendAccessMode,"unknown frontend access mode.")}};
nd.Object.defineProperties(X2.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"}}});X2.\u0275fac=function(a){return new (a||X2)};
X2.\u0275cmp=y({type:X2,selectors:[["b-app-logo"]],inputs:{environmentType:"environmentType",frontendAccessMode:"frontendAccessMode",tracker:"tracker",href:"href"},standalone:!1,features:[ov],decls:1,vars:5,consts:[[3,"clickMenu","name","href","chips","imgSrc","imgSrcDark"]],template:function(a,b){a&1&&(J(0,"app-logo",0),N("clickMenu",function(){return b.events.onClickAppMenuIcon.next()}),K());a&2&&I("name",b.name)("href",b.href)("chips",b.chips)("imgSrc",b.imgSrc)("imgSrcDark",b.imgSrcDark)},dependencies:[W2],
encapsulation:2,changeDetection:0});var Y2=function(){this.isActive=!1;this.optionClicked=new LE};Y2.prototype.ngOnInit=function(){};Y2.prototype.onClick=function(){this.optionClicked.emit(this.index)};Y2.\u0275fac=function(a){return new (a||Y2)};
Y2.\u0275cmp=y({type:Y2,selectors:[["b-app-search-auto-complete-option"]],hostVars:2,hostBindings:function(a,b){a&1&&N("click",function(){return b.onClick()});a&2&&uh("active",b.isActive)},inputs:{isActive:"isActive",index:"index"},outputs:{optionClicked:"optionClicked"},standalone:!1,ngContentSelectors:["*"],decls:2,vars:0,consts:[[1,"content","gmat-subtitle-2"]],template:function(a){a&1&&(ch(),J(0,"div",0),dh(1),K())},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 Z2=function(){this.ref=r(NE,{self:!0});this.hostElement=r(Te);this.trackerHelpers=r(iK);this.items=[];this.header=null;this.itemSelected=new LE;this.activeItemChanged=new LE;this.SPECIAL_ITEM_TYPES="issue hotlist savedsearch atom component customField team tracker".split(" ")};Z2.prototype.ngOnChanges=function(a){a.items&&(this.items.length>0?(this.activeItemIndex=0,this.activeItemChanged.emit(this.items[0])):this.clearActiveItem(),this.ref.markForCheck())};Z2.prototype.ngAfterViewInit=function(){};
var KIb=function(a){var b=P(3);VIb(a);b.itemSelected.emit(a)};Z2.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(),wfd(this))};
Z2.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(),wfd(this))};var xfd=function(a){a.activeItemIndex!=null&&a.itemSelected.emit(a.items[a.activeItemIndex])};Z2.prototype.clearActiveItem=function(){this.activeItemIndex=void 0;this.activeItemChanged.emit(void 0)};
var yfd=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}},wfd=function(a){var b=a.itemElements.find(function(c,d){return d===a.activeItemIndex});b&&b7b(b.nativeElement,a.hostElement.nativeElement)},VIb=function(a){Fo("search","autocomplete-select",a.completionCfg.type||"unknown_type",isNaN(Number(a.id))?1:Number(a.id))};Z2.\u0275fac=function(a){return new (a||Z2)};
Z2.\u0275cmp=y({type:Z2,selectors:[["b-app-search-auto-complete-list"]],viewQuery:function(a,b){a&1&&hh(Y2,5,Te);if(a&2){var c;lh(c=mh())&&(b.itemElements=c)}},inputs:{items:"items",header:"header"},outputs:{itemSelected:"itemSelected",activeItemChanged:"activeItemChanged"},standalone:!1,features:[Fh([NE]),ov],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,EIb,7,6,"div",0),J(1,"div",1),Pg(2,WIb,10,13,"b-app-search-auto-complete-option",2,Og),K());a&2&&(G(b.header&&b.header.type?0:-1),x(2),Qg(b.items))},dependencies:[SM,$M,Y2,Uv],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 zfd=["box"],Afd=["initialFocus"],Bfd=["finalFocus"],a3=function(){this.documentationLinks=r(JJ);this.appSearchState=r(bX);this.activeSession=r(Bs);this.placeholder="";this.isSearchDisabled=!1;this.autoCompleteItems=[];this.autoCompleteHeader=null;this.onAdvancedSearchOpen=new LE;this.onAdvancedSearchClose=new LE;this.onAdvancedSearchSubmit=new LE;this.onSaveSearch=new LE;this.dropdownStatus="closed";this.searchName="";this.searchHelpLink=this.documentationLinks.baseDocumentationUrl+"/concepts/search-query-language";
this.destroyed$=new tg;this.currentQuery$=this.appSearchState.queryState$.pipe(C(function(a){return a.query}));this.autoCompleteItemSelected$=new tg;this.isAnonymous=this.activeSession.isAnonymous()};
a3.prototype.ngOnInit=function(){var a=this;this.autoCompleteItemSelected$.pipe(Ag(this.currentQuery$),yg(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()})};
a3.prototype.ngAfterViewInit=function(){var a=this;this.appSearchState.queryState$.pipe(eg(function(b){return!b.setViaInteraction}),yg(this.destroyed$)).subscribe(function(b){var c=b.query;b=b.cursorPosition;a.inputBox.nativeElement.value=c;b!=null&&(c=a.inputBox.nativeElement,bMa(c)&&(c.selectionStart=b,c.selectionEnd=b))})};a3.prototype.ngOnDestroy=function(){this.destroyed$.next();this.destroyed$.complete()};
var Cfd=function(a){a.appSearchState.searchTriggered$.next("keyboard")},Dfd=function(a,b){a.dropdownStatus="auto_complete";a.acList.clearActiveItem();a.appSearchState.queryState$.next({query:b,cursorPosition:a.getCursorPosition(),setViaInteraction:!0})};a3.prototype.onInputFocus=function(){this.dropdownStatus="auto_complete"};
a3.prototype.handleKeydown=function(a){switch(a.key){case "Escape":if(!b3(this))return;Efd(this);break;case "ArrowUp":if(!b3(this))return;this.acList.setPreviousItemActive();break;case "ArrowDown":if(!b3(this))return;this.acList.setNextItemActive();break;case "Tab":case "ArrowRight":if(!b3(this)){Dfd(this,this.inputBox.nativeElement.value);return}xfd(this.acList);break;case "ArrowLeft":Dfd(this,this.inputBox.nativeElement.value);return;case "Enter":b3(this)?this.acList.activeItemIndex!=null?xfd(this.acList):
Cfd(this):Cfd(this);break;default:return}a.preventDefault();a.stopPropagation()};a3.prototype.submitAdvancedSearch=function(){this.onAdvancedSearchSubmit.emit();Ffd(this)};a3.prototype.getCursorPosition=function(){var a=cMa(this.inputBox.nativeElement,!0)[0];if(a===cMa(this.inputBox.nativeElement,!1)[1])return a};
var Efd=function(a){a.dropdownStatus==="auto_complete"&&(a.dropdownStatus="closed")},Ffd=function(a){a.dropdownStatus==="advanced_search"&&(a.dropdownStatus="closed",a.onAdvancedSearchClose.emit())},b3=function(a){return a.dropdownStatus==="auto_complete"&&a.autoCompleteItems.length>0},Gfd=function(a){return a.dropdownStatus==="auto_complete"&&a.autoCompleteHeader!=null},Hfd=function(a){return a.dropdownStatus==="advanced_search"};
a3.prototype.saveSearch=function(){this.searchName&&(this.onSaveSearch.emit(this.searchName),this.searchName="",Ffd(this))};var Ifd=function(a,b){b.shiftKey&&b.key==="Tab"&&a.advancedSearchFinalFocus&&setTimeout(function(){return a.advancedSearchFinalFocus.nativeElement.focus()})},XIb=function(a){a.advancedSearchInitialFocus&&setTimeout(function(){return a.advancedSearchInitialFocus.nativeElement.focus()})};a3.\u0275fac=function(a){return new (a||a3)};
a3.\u0275cmp=y({type:a3,selectors:[["b-app-search-box"]],viewQuery:function(a,b){a&1&&(hh(Z2,7),hh(zfd,5),hh(Afd,7,Te),hh(Bfd,7));if(a&2){var c;lh(c=mh())&&(b.acList=c.first);lh(c=mh())&&(b.inputBox=c.first);lh(c=mh())&&(b.advancedSearchInitialFocus=c.first);lh(c=mh())&&(b.advancedSearchFinalFocus=c.first)}},inputs:{placeholder:"placeholder",isSearchDisabled:"isSearchDisabled",autoCompleteItems:"autoCompleteItems",autoCompleteHeader:"autoCompleteHeader"},outputs:{onAdvancedSearchOpen:"onAdvancedSearchOpen",
onAdvancedSearchClose:"onAdvancedSearchClose",onAdvancedSearchSubmit:"onAdvancedSearchSubmit",onSaveSearch:"onSaveSearch"},standalone:!1,ngContentSelectors:["*"],decls:24,vars:19,consts:[["box",""],["initialFocus",""],["finalFocus",""],[1,"search-form-container","keep-focus-ring",3,"clickOutside"],[1,"search-box-container"],["type","button","mat-icon-button","","aria-label","Search","matTooltip","Search",3,"click"],["svgIcon","search",1,"icon-m"],["spellcheck","false","autocomplete","off","cdkTextareaAutosize",
"","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","6","aria-label","Search issues","role","combobox","aria-autocomplete","list","aria-haspopup","true","aria-owns","b-search-box-autocomplete",1,"search-box",3,"keydown","input","click","focus","placeholder"],["type","button","mat-icon-button","","aria-label","Show search options","matTooltip","Show search options",3,"click"],["svgIcon","arrow-dropdown",1,"icon-m"],["role","search",1,"search-dropdown"],[3,"itemSelected","items","header"],[1,"advanced-search"],
["align","right",1,"advanced-search-header"],["type","button","mat-icon-button","","aria-label","Close advanced search","matTooltip","Close advanced search",3,"keydown","click","disabled"],["svgIcon","close",1,"icon-s"],["cdkScrollable","",1,"advanced-search-content"],[1,"advanced-search-footer"],["type","button","mat-flat-button","",1,"medium",3,"click","disabled"],["target","_blank",1,"keep-underline","search-help-link"],["svgIcon","pop-out",1,"icon-xs"],[1,"save-search-container","gap-s"],["type",
"text","aria-label","Enter the name for saving this search.","placeholder","Save search as",3,"ngModelChange","keydown.Tab","keydown.enter","ngModel"]],template:function(a,b){if(a&1){var c=t();ch();J(0,"div",3);N("clickOutside",function(){u(c);Efd(b);return w()});J(1,"div",4)(2,"button",5);N("click",function(){u(c);return w(Cfd(b))});M(3,"mat-icon",6);K();J(4,"textarea",7,0);N("keydown",function(d){u(c);return w(b.handleKeydown(d))})("input",function(){u(c);var d=Q(5);return w(Dfd(b,d.value))})("click",
function(){u(c);var d=Q(5);return w(Dfd(b,d.value))})("focus",function(){u(c);return w(b.onInputFocus())});K();J(6,"button",8);N("click",function(){u(c);b.dropdownStatus="advanced_search";b.onAdvancedSearchOpen.emit();return w()});M(7,"mat-icon",9);K()();J(8,"aside",10)(9,"b-app-search-auto-complete-list",11);N("itemSelected",function(d){u(c);return w(b.autoCompleteItemSelected$.next(d))});K();J(10,"div",12)(11,"div",13)(12,"button",14,1);N("keydown",function(d){u(c);return w(Ifd(b,d))})("click",
function(){u(c);return w(Ffd(b))});M(14,"mat-icon",15);K()();J(15,"div",16);dh(16);K();J(17,"div",17)(18,"button",18);N("click",function(){u(c);return w(b.submitAdvancedSearch())});R(19," Search ");K();J(20,"a",19);R(21,"Search help ");M(22,"mat-icon",20);K();F(23,YIb,5,2,"div",21);K()()()()}a&2&&(uh("dropdown-opened",b3(b)||Gfd(b)||Hfd(b)),x(),uh("hidden",Hfd(b)),x(3),I("placeholder",b.placeholder),Lg("aria-activedescendant",yfd(b.acList))("aria-expanded",b3(b)||Gfd(b)),x(4),uh("advanced-search-open",
Hfd(b)),x(),uh("hidden",!(b3(b)||Gfd(b))),I("items",b.autoCompleteItems)("header",b.autoCompleteHeader),x(),uh("hidden",!Hfd(b)),x(2),I("disabled",b.isSearchDisabled),x(6),I("disabled",b.isSearchDisabled),x(2),Lg("href",b.searchHelpLink,hf),x(3),G(b.isAnonymous?-1:23))},dependencies:[FC,Sw,oG,Jx,Kx,zG,xG,Ui,dy,ky,MU,Sy,Z2],styles:['[_nghost-%COMP%]{display:flex;align-items:center;flex-grow:1;position:relative;min-width:320px;height:40px}.search-form-container[_ngcontent-%COMP%]{position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:#f1f3f4;background-color:var(--main-search-bg);border-radius:8px;min-width:320px;overflow:hidden;top:0;transition:all .1s ease-in-out;transition-property:box-shadow,height,max-height,overflow;width:100%}@media(forced-colors: active){.search-form-container[_ngcontent-%COMP%]{outline:1px solid;outline-color:#1967d2;outline-color:var(--primary-c700);outline-color:-webkit-focus-ring-color}}.search-box-container[_ngcontent-%COMP%]{display:flex;flex-grow:1;width:calc(100% - 16px);min-height:40px;height:auto}.search-dropdown[_ngcontent-%COMP%]{max-height:0;overflow:hidden;top:40px;width:100%;transition:max-height .2s ease-in-out}.search-form-container.dropdown-opened[_ngcontent-%COMP%]   .search-dropdown[_ngcontent-%COMP%]{max-height:600px;padding-bottom:6px}.search-dropdown[_ngcontent-%COMP%]{padding-bottom:0}.search-form-container[_ngcontent-%COMP%]:focus-within, .search-form-container.dropdown-opened[_ngcontent-%COMP%]{box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.3),0px 2px 6px 2px rgba(0, 0, 0, 0.15);background-color:#fff;background-color:var(--surface-default)}.search-form-container[_ngcontent-%COMP%]:focus-within   textarea[_ngcontent-%COMP%], .search-form-container.dropdown-opened[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{color:#202124;color:var(--text-default)}.search-form-container[_ngcontent-%COMP%]:focus-within   input[_ngcontent-%COMP%], .search-form-container.dropdown-opened[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{color:#202124;color:var(--text-default)}.search-form-container[_ngcontent-%COMP%]:not(:focus-within):not(.dropdown-opened)   textarea[_ngcontent-%COMP%]{height:auto !important;overflow:hidden}.mat-mdc-icon-button[_ngcontent-%COMP%]{height:24px;width:24px;line-height:24px}.search-box-container[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{color:#5f6368;color:var(--icon)}.search-box-container[_ngcontent-%COMP%]   .mat-mdc-icon-button[_ngcontent-%COMP%]{margin-top:8px}textarea[_ngcontent-%COMP%]{border:0;background-color:initial;outline:none;resize:none;padding:0;cursor:auto;color:#202124;color:var(--text-high-contrast);margin:10px 0;margin-left:5px;height:20px;line-height:20px;width:100%;overflow:auto}textarea[_ngcontent-%COMP%]:focus{border:0;padding:0;outline:none}textarea[_ngcontent-%COMP%]::-webkit-scrollbar{width:10px}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:rgba(0,0,0,0);border-radius:10px;border:0}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-track:vertical{margin:5px 0}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-track:horizontal{margin:0 5px}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:rgba(0,0,0,.2)}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background-color:rgba(0,0,0,.4)}textarea[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:active{background-color:rgba(0,0,0,.5)}.advanced-search[_ngcontent-%COMP%]{padding:6px 6px 0 6px}.advanced-search-content[_ngcontent-%COMP%]{overflow:auto;max-height:532px}.advanced-search-footer[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:6px}.search-help-link[_ngcontent-%COMP%]{margin-left:10px}.save-search-container[_ngcontent-%COMP%]{display:inline-flex;align-items:center;margin-left:auto;padding:0 5px}.save-search-container[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border:0;outline:none}[_nghost-%COMP%]     .bv2-adv-search-rule{background-color:#fff;background-color:var(--surface-default);display:flex;border-radius:10px;width:initial}[_nghost-%COMP%]     .bv2-adv-search-rule-title{display:flex}[_nghost-%COMP%]     .bv2-adv-search-rule-content{flex-grow:1;padding-right:25px;width:100%}[_nghost-%COMP%]     .bv2-adv-search-enum-item{min-width:130px;max-width:130px}[_nghost-%COMP%]     .bv2-adv-search-chip-content input:not(.override){border-radius:5px;border:1px solid;border-color:#dadce0;border-color:var(--divider);outline:0}[_nghost-%COMP%]     .goog-flat-menu-button.jfk-select{border-radius:5px;letter-spacing:0;min-width:105px;padding-right:24px}[_nghost-%COMP%]     .goog-flat-menu-button.jfk-select .goog-flat-menu-button-dropdown{border:0;height:initial;margin-top:initial;position:relative;right:initial;top:initial;width:initial}[_nghost-%COMP%]     .goog-flat-menu-button.jfk-select:not(:disabled){border:1px solid;border-color:#dadce0;border-color:var(--divider);color:#3c4043;color:var(--gfx);padding-right:24px}[_nghost-%COMP%]     .goog-flat-menu-button.jfk-select:not(:disabled):hover, [_nghost-%COMP%]     .goog-flat-menu-button.jfk-select:not(:disabled):active, [_nghost-%COMP%]     .goog-flat-menu-button.jfk-select:not(:disabled):not(.mdc-ripple-upgraded):focus{padding-right:24px;border-color:#3c4043;border-color:var(--gfx);color:#202124;color:var(--text-default);box-shadow:none}[_nghost-%COMP%]     .goog-flat-menu-button.goog-flat-menu-button-open.jfk-select{background-color:#fff;background-color:var(--surface-default)}[_nghost-%COMP%]     .bv2-adv-search-custom-field-selection input:not(.override), [_nghost-%COMP%]     .bv2-adv-search-rule-content input:not(.override){border-radius:5px;border:1px solid;border-color:#dadce0;border-color:var(--divider);height:28px;margin:0;padding-left:10px;width:100%}[_nghost-%COMP%]     .bv2-adv-search-custom-field-selection input:not(.override):focus, [_nghost-%COMP%]     .bv2-adv-search-rule-content input:not(.override):focus{border-color:#3c4043;border-color:var(--gfx);outline:0}[_nghost-%COMP%]     .bv2-adv-search-chip-add-btn{margin-right:20px}[_nghost-%COMP%]     .bv2-adv-search-chip{display:inline-flex;border:none;background-color:#fff;background-color:var(--surface-default);height:100%;width:100%;margin-bottom:10px}[_nghost-%COMP%]     .bv2-adv-search-chip button{align-self:center}[_nghost-%COMP%]     .bv2-adv-search-chip-container{display:flex;flex-direction:column;width:100%}[_nghost-%COMP%]     .bv2-adv-search-chip-content{width:100%}[_nghost-%COMP%]     .bv2-adv-search-chip-content input[type=text]:not(.override){width:calc(100% - 10px)}[_nghost-%COMP%]     .bv2-adv-search-chip-content .bv2-adv-search-chip-delete-btn{margin-left:10px}[_nghost-%COMP%]     .bv2-adv-search-chip-content-selectable .goog-flat-menu-button{height:32px;margin:0;width:100%;text-align:left}[_nghost-%COMP%]     .bv2-adv-search-chip-content-btn{display:inline-flex;align-items:center;font-family:"Google Sans",Roboto,Arial,sans-serif;height:32px;border:1px solid;border-color:#dadce0;border-color:var(--divider);border-radius:5px;box-sizing:border-box;color:#3c4043;color:var(--gfx)}[_nghost-%COMP%]     .bv2-adv-search-chip-content-btn:hover, [_nghost-%COMP%]     .bv2-adv-search-chip-content-btn:active, [_nghost-%COMP%]     .bv2-adv-search-chip-content-btn:focus{border-color:#3c4043;border-color:var(--gfx);color:#202124;color:var(--text-default)}[_nghost-%COMP%]     .bv2-adv-search-chip-content-btn::after{margin-left:auto;content:"";width:16px;height:16px;background:no-repeat url("https://www.gstatic.com/buganizer/img/v0/edit.svg") 0 -2px;margin-right:5px;opacity:.6}[_nghost-%COMP%]     .bv2-adv-search-chip-content-text{font-family:"Google Sans",Roboto,Arial,sans-serif;font-size:.875rem;font-weight:500;line-height:1rem;padding-left:12px;vertical-align:middle}/*# sourceMappingURL=app_search_box.css.map */'],
changeDetection:0});var Jfd=function(){this.activeSession=r(Bs);this.logoEnvironmentType="QA";this.logoFrontendAccessMode="INTERNAL";this.isSearchDisabled=!1;this.searchBoxPlaceholder="";this.searchBoxAutoCompleteItems=[];this.searchBoxAutoCompleteHeader=null;this.searchBoxOnAdvancedSearchOpen=new LE;this.searchBoxOnAdvancedSearchClose=new LE;this.searchBoxOnAdvancedSearchSubmit=new LE;this.searchBoxOnSaveSearch=new LE;this.currentTracker=this.activeSession.getTracker()},Kfd=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()})};Jfd.\u0275fac=function(a){return new (a||Jfd)};
Jfd.\u0275cmp=y({type:Jfd,selectors:[["b-app-top-bar"]],inputs:{logoEnvironmentType:"logoEnvironmentType",logoFrontendAccessMode:"logoFrontendAccessMode",isSearchDisabled:"isSearchDisabled",searchBoxPlaceholder:"searchBoxPlaceholder",searchBoxAutoCompleteItems:"searchBoxAutoCompleteItems",searchBoxAutoCompleteHeader:"searchBoxAutoCompleteHeader"},outputs:{searchBoxOnAdvancedSearchOpen:"searchBoxOnAdvancedSearchOpen",searchBoxOnAdvancedSearchClose:"searchBoxOnAdvancedSearchClose",searchBoxOnAdvancedSearchSubmit:"searchBoxOnAdvancedSearchSubmit",
searchBoxOnSaveSearch:"searchBoxOnSaveSearch"},standalone:!1,ngContentSelectors:["*"],decls:7,vars:7,consts:[[3,"environmentType","frontendAccessMode","tracker"],[1,"skip-navigation-wrapper"],["type","button","mat-button","","color","primary","aria-label","Skip to main content",1,"skip-to-main-content-link",3,"click","keydown.enter"],[3,"onAdvancedSearchOpen","onAdvancedSearchClose","onAdvancedSearchSubmit","onSaveSearch","placeholder","autoCompleteItems","autoCompleteHeader","isSearchDisabled"]],
template:function(a,b){a&1&&(ch(),M(0,"b-app-logo",0),J(1,"div",1)(2,"button",2),N("click",function(){return Kfd()})("keydown.enter",function(){return Kfd()}),R(3," Skip Navigation "),K()(),J(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)}),
dh(5),K(),M(6,"b-app-actions"));a&2&&(I("environmentType",b.logoEnvironmentType)("frontendAccessMode",b.logoFrontendAccessMode)("tracker",b.currentTracker),x(4),I("placeholder",b.searchBoxPlaceholder)("autoCompleteItems",b.searchBoxAutoCompleteItems)("autoCompleteHeader",b.searchBoxAutoCompleteHeader)("isSearchDisabled",b.isSearchDisabled))},dependencies:[oG,Jx,X2,V2,a3],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 c3=function(){};c3.\u0275fac=function(a){return new (a||c3)};c3.\u0275mod=uf({type:c3});c3.\u0275inj=Dd({imports:[HC,wK,BG,zN]});var d3=function(){};d3.\u0275fac=function(a){return new (a||d3)};d3.\u0275mod=uf({type:d3});d3.\u0275inj=Dd({imports:[HC,BG,mH,CG]});var e3=function(){};e3.\u0275fac=function(a){return new (a||e3)};e3.\u0275mod=uf({type:e3});e3.\u0275inj=Dd({imports:[HC,BG,CG]});var f3=function(){};f3.\u0275fac=function(a){return new (a||f3)};f3.\u0275mod=uf({type:f3});f3.\u0275inj=Dd({imports:[HC]});var g3=function(){};g3.\u0275fac=function(a){return new (a||g3)};g3.\u0275mod=uf({type:g3});g3.\u0275inj=Dd({providers:[FO]});var h3=function(){};h3.\u0275fac=function(a){return new (a||h3)};h3.\u0275mod=uf({type:h3});h3.\u0275inj=Dd({imports:[HC,BG,CG,g3]});var i3=function(){};i3.\u0275fac=function(a){return new (a||i3)};i3.\u0275mod=uf({type:i3});i3.\u0275inj=Dd({imports:[HC,mH,BG,zL,CG,Ww,Ay,NU,d3,zZ,e3,qQ,Ty,f3,h3,c3,OQ]});var j3=function(){};j3.\u0275fac=function(a){return new (a||j3)};j3.\u0275mod=uf({type:j3});j3.\u0275inj=Dd({imports:[HC,BG,wK]});var k3=function(){};k3.\u0275fac=function(a){return new (a||k3)};k3.\u0275mod=uf({type:k3});k3.\u0275inj=Dd({imports:[HC,Ay,BG,GM,EM,wK,SQ]});var l3=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 LE;this.selectedChange=new LE;this.cardTitleChange=new LE;this.onSaveButtonClicked=new LE;this.onCancelButtonClicked=
new LE;this.isInheritedChange=new LE;this.isExpanded=!1};l3.prototype.expand=function(){this.isExpanded=!0};l3.prototype.collapse=function(){this.isExpanded=!1};l3.prototype.onSave=function(){this.collapse();this.onSaveButtonClicked.emit()};l3.prototype.onCancel=function(){this.collapse();this.onCancelButtonClicked.emit()};l3.\u0275fac=function(a){return new (a||l3)};
l3.\u0275cmp=y({type:l3,selectors:[["b-collapsible-card"]],inputs:{cardTitle:"cardTitle",dropdownOptions:"dropdownOptions",selectedOption:"selectedOption",selected:"selected",disabled:"disabled",isSaveButtonDisabled:"isSaveButtonDisabled",showRequiredToggle:"showRequiredToggle",showDeleteButton:"showDeleteButton",showInheritedToggle:"showInheritedToggle",isInherited:"isInherited",inheritedDisabled:"inheritedDisabled",inheritedDisabledTooltipText:"inheritedDisabledTooltipText",placeholderForCardTitle:"placeholderForCardTitle",
ariaLabelForCardTitle:"ariaLabelForCardTitle"},outputs:{dropdownSelectionChanged:"dropdownSelectionChanged",selectedChange:"selectedChange",cardTitleChange:"cardTitleChange",onSaveButtonClicked:"onSaveButtonClicked",onCancelButtonClicked:"onCancelButtonClicked",isInheritedChange:"isInheritedChange"},standalone:!1,ngContentSelectors:["*"],decls:10,vars: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&&(ch(),J(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)}),K(),F(3,ZIb,2,3,"span",3)(4,dJb,3,7),J(5,"button",4),N("click",function(){b.isExpanded?b.collapse():b.expand()}),F(6,eJb,1,0,"mat-icon",5)(7,fJb,1,0,"mat-icon",
6),K()(),F(8,gJb,2,0,"div",7),F(9,lJb,9,6,"div",8),K());a&2&&(Lg("aria-expanded",b.isExpanded),x(2),uh("expanded-checkbox",b.isExpanded),I("disabled",b.disabled)("checked",b.selected),Kg("aria-label",b.cardTitle),x(),G(b.isExpanded?4:3),x(2),vh(b.isExpanded?"collapse-toggle":"expand-toggle"),Lg("aria-label",b.isExpanded?"Collapse editor":"Expand editor"),x(),G(b.isExpanded?6:7),x(2),G(b.isExpanded?8:-1),x(),G(b.isExpanded?9:-1))},dependencies:[FC,Ui,dy,vy,wy,ky,gM,hM,oG,Jx,Kx,EG,FG,bP,My,Fy,jP,kP,
Bx,DM,pL,FM,Uy,zG,xG],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 m3=function(){};m3.\u0275fac=function(a){return new (a||m3)};m3.\u0275mod=uf({type:m3});m3.\u0275inj=Dd({imports:[HC,Ay,lM,BG,HG,hQ,zL,GM,CG]});var Lfd=function(){this.dialogRef=r(KJ);this.data=r(QJ);this.selected=this.data.sharedFields[0];this.options=this.data.sharedFields};Lfd.\u0275fac=function(a){return new (a||Lfd)};
Lfd.\u0275cmp=y({type:Lfd,selectors:[["activate-shared-field-dialog"]],standalone:!1,decls:11,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium",3,"click"],["type","button","mat-flat-button","","color","primary","cdkFocusInitial","",1,"medium",3,"click"],[3,"valueChange","value"],[3,"value"],["href","http://go/buganizer/concepts/custom-fields#shared-custom-field","target","_blank"]],template:function(a,b){a&1&&(J(0,
"h1",0),R(1,"Activate a shared field"),K(),J(2,"div",1),F(3,nJb,4,1,"mat-form-field")(4,oJb,1,0),F(5,pJb,4,0,"div"),K(),J(6,"footer",2)(7,"button",3),N("click",function(){return b.dialogRef.close()}),R(8,"Cancel"),K(),J(9,"button",4),N("click",function(){return b.dialogRef.close(b.selected)}),R(10,"Confirm"),K()());a&2&&(x(3),G(b.options.length>0?3:4),x(2),G(b.options.length>0?5:-1))},dependencies:[oG,Jx,bP,My,jP,Bx,DM,UJ,WJ,VJ],encapsulation:2});var n3=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,n3.messageId)};Y(n3,n);n3.prototype.getIt=function(){return W(this,sn,4,Nc)};n3.prototype.setIt=function(a){return X(this,sn,4,a,Nc)};n3.messageId="b.FieldConfig";var o3=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(o3,n);o3.prototype.getComponentId=function(){return xk(this,1)};o3.prototype.getComponentId_asString=function(){return Bk(this,1)};o3.prototype.setComponentId=function(a){return Xl(this,1,a)};o3.prototype.setFieldId=function(a){return Au(this,2,em,a)};var Mfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Mfd,n);g=Mfd.prototype;g.getComponentId=function(){return xk(this,1)};g.getComponentId_asString=function(){return Bk(this,1)};g.setComponentId=function(a){return Xl(this,1,a)};g.getFieldConfigsV2List=function(){return Sj(this,on,2,Bj())};g.setFieldConfigsV2List=function(a){return Bm(this,2,a)};var p3=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,p3.messageId)};Y(p3,n);p3.prototype.getIt=function(){return W(this,o3,2,Nc)};p3.prototype.setIt=function(a){return X(this,o3,2,a,Nc)};p3.messageId="b.ReorderFieldsRequest";var q3=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,q3.messageId)};Y(q3,n);q3.prototype.getIt=function(){return W(this,Mfd,1,Nc)};q3.prototype.setIt=function(a){return X(this,Mfd,1,a,Nc)};q3.messageId="b.UpdateFieldConfigsV2Request";var Nfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Nfd,n);Nfd.prototype.getFieldConfigsV2List=function(){return Sj(this,on,1,Bj())};Nfd.prototype.setFieldConfigsV2List=function(a){return Bm(this,1,a)};var r3=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,r3.messageId)};Y(r3,n);r3.prototype.getIt=function(){return W(this,Nfd,1,Nc)};r3.prototype.setIt=function(a){return X(this,Nfd,1,a,Nc)};r3.messageId="b.UpdateFieldConfigsV2Response";var s3=function(){this.executor=r(PA)};s3.prototype.updateCustomFieldState=function(a,b,c){var d={customFieldId:b};var e=new n3;var f=e.setIt;d=(new sn).setFieldId(Yxa(d));c=Jj(d,4,Inc[c]);c=pm(c,5,!1);e=f.call(e,c);return this.executor.post({url:"action/components/"+a+"/field_configs/custom_field_id/"+b,body:e,responseConstructor:n3}).pipe(C(qJb))};
s3.prototype.reorder=function(a,b){var c=new p3,d=c.setIt;var e=(new o3).setComponentId(a);b=b.map(Yxa);e=Bm(e,2,b);c=d.call(c,e);return this.executor.post({url:"action/components/"+a+"/reorder",body:c,responseConstructor:null})};var Ofd=function(a,b,c){c=(new q3).setIt((new Mfd).setComponentId(b).setFieldConfigsV2List(c.map(OAa)));return a.executor.put({url:"action/components/"+b+"/update_field_configs_v2",body:c,responseConstructor:r3}).pipe(C(function(d){return d.getIt().getFieldConfigsV2List().map(JAa)}))};
s3.\u0275fac=function(a){return new (a||s3)};s3.\u0275prov=Cd({token:s3,factory:s3.\u0275fac,providedIn:"root"});var Pfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Pfd,n);g=Pfd.prototype;g.getComponentId=function(){return xk(this,1)};g.getComponentId_asString=function(){return Bk(this,1)};g.setComponentId=function(a){return Xl(this,1,a)};g.getCustomFieldId=function(){return xk(this,2)};g.getCustomFieldId_asString=function(){return Bk(this,2)};g.setCustomFieldId=function(a){return Xl(this,2,a)};var Qfd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Qfd,n);g=Qfd.prototype;g.getComponentId=function(){return xk(this,1)};g.getComponentId_asString=function(){return Bk(this,1)};g.setComponentId=function(a){return Xl(this,1,a)};g.getCustomFieldId=function(){return xk(this,2)};g.getCustomFieldId_asString=function(){return Bk(this,2)};g.setCustomFieldId=function(a){return Xl(this,2,a)};var t3=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,t3.messageId)};Y(t3,n);t3.prototype.getIt=function(){return W(this,Pfd,1,Nc)};t3.prototype.setIt=function(a){return X(this,Pfd,1,a,Nc)};t3.messageId="b.AddSharedCustomFieldToComponentRequest";var u3=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,u3.messageId)};Y(u3,n);u3.prototype.getIt=function(){return W(this,Qfd,1,Nc)};u3.prototype.setIt=function(a){return X(this,Qfd,1,a,Nc)};u3.messageId="b.RemoveSharedCustomFieldFromComponentRequest";var v3=function(){this.executor=r(QA)};v3.prototype.add=function(a,b){var c="/action/components/"+a+"/add_shared_custom_field";a=(new t3).setIt((new Pfd).setComponentId(a).setCustomFieldId(b));return this.executor.post({url:c,body:a,responseConstructor:null})};v3.prototype.remove=function(a,b){var c="/action/components/"+a+"/remove_shared_custom_field";a=(new u3).setIt((new Qfd).setComponentId(a).setCustomFieldId(b));return this.executor.post({url:c,body:a,responseConstructor:null})};
v3.\u0275fac=function(a){return new (a||v3)};v3.\u0275prov=Cd({token:v3,factory:v3.\u0275fac,providedIn:"root"});var Rfd=["fieldStateMenu"],uJb=function(a){return{type:a}},Sfd=["SILENT","MINOR","MAJOR"],Tfd=[{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"}],Ufd=[{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"}],w3=function(){Z.apply(this,arguments);this.customFieldsApi=r(mD);this.checkBeforeExit=r(UR);this.butterBar=r(GJ);this.analytics=r(RE);this.routeParams=r(EK);this.componentActions=r(WM);this.fieldConfigService=r(s3);this.sharedCustomFieldApi=r(v3);this.documentationLinks=r(JJ);this.paths=r(oN);this.confirmationDialog=r(YJ);this.appEvents=
r(FB);this.dialog=r(RJ);this.activeSession=r(Bs);this.isFieldConfigurationV2Enabled=OA(this.activeSession,"enableFieldConfigV2Fe")&&this.activeSession.isInternalSession();this.ROUTES=Dq;this.FieldType=CL;this.ListFieldType=GPc;this.getSingleEditFieldType=PRa;this.getListFieldType=ZTa;this.isRepeated=Txa;this.typeChoices=["TEXT","DATE","ENUM","NUMERIC"];this.secondaryTypes=["Single","Multiple"];this.significanceChoices=Sfd;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);this.msgFieldStateTip="Whether the field is visible in this component"};Y(w3,Z);w3.\u0275dir=Z.\u0275dir;w3.prototype.ngOnInit=function(){var a=this;this.subscriptions.add(VR(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!0));this.loadCustomFields()};
w3.prototype.ngOnChanges=function(){var a=new Map;if(this.parentComponent)for(var b=this.parentComponent.componentPathInfo.allCustomField,c=0;c<b.length;c++){var d=b[c];a.set(d.customFieldId,d.enabledOnIssues)}this.fieldsEnabledOnParentComponent=a};
w3.prototype.editField=function(a){window.scrollTo({top:0,behavior:"smooth"});if(!this.hasUnsavedChanges()||BXc(this.checkBeforeExit))this.editableField=hj(this.customFields[a]),this.originalEditableFieldValue=hj(this.editableField),this.serverError=null,this.setType(this.editableField.type),yJb(this,this.editableField.allowedValue)};
var KJb=function(a,b){var c=a.customFields[b];a.confirmationDialog.open({title:"Deleting field: "+c.name,content:Xi("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)}})};
w3.prototype.doDelete=function(a){var b=this;Kq(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");Kq(b.butterBar,"Deleted field: "+a.name,2E3);b.loadCustomFields()})};
w3.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=Ro(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)};
w3.prototype.updateCustomFieldState=function(a,b,c){var d=this;return new Promise(function(e,f){d.fieldConfigService.updateCustomFieldState(d.componentId,a.customFieldId,b).pipe(yg(d.destroyed$)).subscribe(function(){a:{switch(b){case "INHERIT":var h="Inherit ("+(d.fieldsEnabledOnParentComponent.get(a.customFieldId)?"Enabled":"Disabled")+")";break a;case "DISABLED":h="Disabled";break a;case "ENABLED":h="Enabled";break a}h=void 0}d.analytics.trackEvent("customField","updateFieldConfig",h);d.componentActions.getUncached(d.componentId).then(function(){return d.loadCustomFields(!0)}).then(function(){setTimeout(function(){var k,
q;(k=d.fieldStateMenus)==null||(q=k.get(c))==null||q.focus()})}).then(function(){e(void 0)})},function(h){d.serverError=Ro(h);d.isLoading=!1;f(h)})})};w3.prototype.cancel=function(){this.originalEditableFieldValue=this.editableField=null};
var BJb=function(a,b){var c=a.editableField.type,d=c==="TEXT"&&hsa(b)?b:void 0,e=c==="DATE"&&b&&Twa(b)?b:void 0,f=c==="ENUM"&&hsa(b)?b:void 0,h=c==="NUMERIC"&&gsa(b)?b:void 0,k=c==="REPEATED_TEXT"&&ij(b)?{values:b}:void 0,q=c==="REPEATED_DATE"&&Array.isArray(b)&&b.every(Twa)?{values:b}:void 0,v=c==="REPEATED_ENUM"&&ij(b)?{values:b}:void 0;b=c==="REPEATED_NUMERIC"&&isa(b)?{values:b}:void 0;a.editableField.typedDefaultValue={customFieldId:a.editableField.customFieldId,textValue:d,dateValue:e,enumValue:f,
numericValue:h,repeatedTextValue:k,repeatedDateValue:q,repeatedEnumValue:v,repeatedNumericValue:b}};w3.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 yJb=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}}):[]};w3.prototype.hasUnsavedChanges=function(){return this.editableField&&!gj(this.editableField,this.originalEditableFieldValue)?!0:!1};
w3.prototype.loadCustomFields=function(a){var b=this;a=a===void 0?!1:a;a||(this.isLoading=!0);return this.componentActions.get(this.componentId).then(function(c){var d,e=((d=c.componentPathInfo)==null?void 0:d.allCustomField)||[];d=[];b.componentIdsToNames={};var f,h=((f=c.componentPathInfo)==null?void 0:f.componentPathId)||[];for(f=0;f<h.length;f++)d.push(c.componentPathInfo.componentPathName[f]),b.componentIdsToNames[c.componentPathInfo.componentPathId[f]]=d.join(" > ");b.editableField=null;b.originalEditableFieldValue=
null;a||(b.isLoading=!1);c=function(k,q){return ia(k.name,q.name)};b.customFields=e.filter(function(k){return b.componentId===k.componentId}).sort(c);b.inheritedCustomFields=e.filter(function(k){return b.componentId!==k.componentId&&!k.shared}).sort(c);b.sharedFields=e.filter(function(k){return b.componentId!==k.componentId&&k.shared});b.appEvents.customFieldsModified.next(e)})};var QJb=function(a,b){return a.fieldsEnabledOnParentComponent.has(b)?a.fieldsEnabledOnParentComponent.get(b):!0};
w3.prototype.trackClick=function(a){this.analytics.trackEvent("editComponent","click",a)};var CJb=function(a){var b;return(a=(b=a.editableField)==null?void 0:b.typedDefaultValue)?yo(a):null};w3.prototype.getListFieldValues=function(){var a,b=(a=this.editableField)==null?void 0:a.typedDefaultValue,c,d;return(d=(c=b?yo(b):null)==null?void 0:c.values)!=null?d:null};w3.prototype.setFieldSignificance=function(a){this.editableField.fieldSignificance=a};
var $Jb=function(a){var b={sharedFields:aKb(a)};LJ(a.dialog.open(Lfd,{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()})})},VJb=function(a,b){a.confirmationDialog.open({title:"Deactivate shared field",content:Xi("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()})}})},aKb=function(a){if(!a.activeSession.isInternalSession())return[];var b=ml(a.activeSession.session)?Tfd:Ufd,c=a.sharedFields.map(function(d){return d.customFieldId});return b.filter(function(d){return!c.includes(d.customFieldId)})};w3.\u0275fac=function(){var a;return function(b){return(a||(a=Re(w3)))(b||w3)}}();
w3.\u0275cmp=y({type:w3,selectors:[["b-component-custom-fields"]],viewQuery:function(a,b){a&1&&hh(Rfd,5);if(a&2){var c;lh(c=mh())&&(b.fieldStateMenus=c)}},inputs:{editMode:"editMode",isSaving:"isSaving",component:"component",parentComponent:"parentComponent"},standalone:!1,features:[Bg,ov],decls:4,vars:2,consts:[["typeHelp",""],["enumMenu","matMenu"],["secondaryMenu","matMenu"],["significanceHelp",""],["significanceMenu","matMenu"],["card","onedevHovercard"],["cardBody",""],["fieldStateMenu",""],
[1,"edit-resource-panel","edit-component-field-parent"],[1,"edit-custom-field-panel"],[1,"custom-fields-loader"],[1,"bv2-validation-error-banner"],["name","editForm",1,"edit-custom-field-form"],[1,"edit-field"],["for","field-name",1,"help-label"],["name","fieldName","type","text","required","","id","field-name",3,"ngModelChange","bFocus","ngModel","disabled"],["for","field-description",1,"help-label"],["name","fieldDescription","id","field-description",3,"ngModelChange","ngModel","disabled"],[1,"edit-custom-field-table"],
[1,"field-label-with-help","bv2-component-custom-field-label"],["id","field-type-label",1,"help-label",3,"onedevHovercardTrigger"],["role","dialog","aria-label","Type help hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],["type","button","mat-button","","mat-stroked-button","","aria-labelledby","field-type-label",1,"bv2-enum-field",3,"matMenuTriggerFor","disabled"],["name","arrow-dropdown","size","small"],["type","button","mat-menu-item","",3,"matMenuTriggerFor","matMenuTriggerData"],
["matMenuContent",""],["id","field-default-label",1,"bv2-component-custom-field-label"],["aria-labelledby","field-default-label",3,"name","type","tooltip","value","choices","showEnumTitle","disabled","truncate","clearable"],["id","field-repeated-default-label",1,"bv2-component-custom-field-label"],["aria-labelledby","field-repeated-default-label",3,"defaultLineCount","type","tooltip","values","enumChoices","isDefaultOrAllowedValues","listFieldDisabled","truncate"],["id","field-required-label",1,"bv2-component-custom-field-label"],
["aria-labelledby","field-required-label",3,"valueChange","name","type","tooltip","value"],["id","field-significance-label","tabindex","0","aria-label","Field Significance - Press alt+right arrow to learn more.",1,"help-label",3,"onedevHovercardTrigger"],[1,"onedev-hovercard-content"],["aria-label","See email settings for more details.","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],["mat-button","","mat-stroked-button","","type","button","aria-labelledby","field-significance-label",
1,"keep-focus-ring","bv2-enum-field",3,"matMenuTriggerFor"],["mat-menu-item","","type","button"],["mat-raised-button","","color","primary","type","button",3,"click","disabled"],["mat-stroked-button","","type","button",3,"click"],["type","button","mat-menu-item",""],["type","button","mat-menu-item","",3,"click"],["id","field-enums-label",1,"bv2-component-custom-field-label"],["aria-labelledby","field-enums-label",3,"valuesChange","defaultLineCount","type","values","listFieldDisabled","preventDuplicates",
"isDefaultOrAllowedValues","truncate"],["aria-labelledby","field-default-label",3,"valueChange","name","type","tooltip","value","choices","showEnumTitle","disabled","truncate","clearable"],["aria-labelledby","field-repeated-default-label",3,"valuesChange","defaultLineCount","type","tooltip","values","enumChoices","isDefaultOrAllowedValues","listFieldDisabled","truncate"],["mat-menu-item","","type","button",3,"click"],[3,"large"],[1,"custom-fields-table"],[3,"class"],[1,"edit-button-row"],[3,"customFieldValue"],
[1,"action-buttons"],["type","button","mat-stroked-button","",3,"click"],["colspan","9",1,"custom-fields-inherited-parent"],["colspan","9"],[1,"ancestor-component-note"],[1,"header-label"],[3,"click","onedevHovercardTrigger","href"],[4,"onedevHovercardLazyBody"],[3,"fieldName","fieldState","enabledOnParent","disabled","matTooltip"],[3,"onedevIsHovercardReady","componentId"],[3,"fieldStateChange","fieldName","fieldState","enabledOnParent","disabled","matTooltip"],[1,"enabled-field"],["type","button",
"mat-stroked-button","",3,"click","disabled","matTooltip"],["routerLink","./","fragment","fieldOrdering",1,"keep-underline"],["type","button","mat-raised-button","","color","primary",3,"click"],["type","button","mat-flat-button","",3,"click","disabled"]],template:function(a,b){a&1&&(J(0,"div",8),F(1,HJb,70,29,"div",9),F(2,IJb,2,1,"div",10)(3,cKb,29,8,"div"),K());a&2&&(x(),G(b.editableField&&!b.isLoading?1:-1),x(),G(b.isLoading?2:3))},dependencies:[xC,ly,Ui,dy,ey,vy,ky,iy,OM,BL,eL,N1,DI,EI,JI,FI,TM,
zG,xG,pG,sG,qG,rG,uG,oG,Jx,gO,l_,yN,jL,iL,lL],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 x3=function(){};x3.\u0275fac=function(a){return new (a||x3)};x3.\u0275mod=uf({type:x3});x3.\u0275inj=Dd({imports:[HC,Ay,PM,DL,gL,O1,tJ,nW,CG,mH,BG,hQ,hO,m_,nL,AN,wK]});var y3=function(){this.options=[];this.disabled=!1;this.removeAtIndex=new LE;this.addRow=new LE;this.optionsChange=new LE};y3.prototype.valueChange=function(a,b){this.options[b].value=Number(a.target.value);this.optionsChange.emit(this.options)};y3.prototype.drop=function(a){wq(this.options,a.previousIndex,a.currentIndex);this.optionsChange.emit(this.options)};y3.\u0275fac=function(a){return new (a||y3)};
y3.\u0275cmp=y({type:y3,selectors:[["b-config-grid"]],inputs:{options:"options",disabled:"disabled"},outputs:{removeAtIndex:"removeAtIndex",addRow:"addRow",optionsChange:"optionsChange"},standalone:!1,decls:12,vars:6,consts:[["displayInput","matInput"],["valueInput","matInput"],[1,"flex-kids-x"],[1,"padded-sides","heading-xs","flex-kids-y"],[1,"config-title","config-title-container"],[1,"padded-sides","heading-xs","config-title-container","flex-kids-x"],["aria-label","Average days. All estimated effort types map to an average number of days.",
1,"config-title"],["svgIcon","help-outline","tabindex","0","aria-hidden","false","aria-label","All estimated effort types map to an average number of days.",1,"icon-xs",3,"matTooltip"],["cdkDropList","",1,"options-container",3,"cdkDropListDropped"],["cdkDrag",""],["type","button","mat-button","",1,"add-row-button"],[1,"flex-kids-x","flex-cross-axis-centered","option-row"],["cdkDragHandle","","svgIcon","drag-indicator",1,"drag-handle"],["subscriptSizing","dynamic",3,"appearance"],["matInput","","aria-label",
"Dropdown value","autocomplete","off","maxlength","40",1,"input-text",3,"change","value","placeholder","disabled"],["matInput","","aria-label","Average days","autocomplete","off","type","number",1,"input-text",3,"change","value","placeholder","disabled"],["type","button","mat-icon-button",""],["type","button","mat-icon-button","",3,"click"],["svgIcon","close",1,"icon-s","delete-icon"],["type","button","mat-button","",1,"add-row-button",3,"click"]],template:function(a,b){a&1&&(J(0,"div",2)(1,"div",
3)(2,"span",4),R(3," Dropdown value "),K()(),J(4,"div",5)(5,"span",6),R(6," Average days "),K(),M(7,"mat-icon",7),K()(),J(8,"div",8),N("cdkDropListDropped",function(c){return b.drop(c)}),Pg(9,eKb,12,13,"div",9,Og),K(),F(11,fKb,2,0,"button",10));a&2&&(x(2),uh("muted",b.disabled),x(3),uh("muted",b.disabled),x(2),I("matTooltip","All estimated effort types map to an average number of days."),x(2),Qg(b.options),x(2),G(b.disabled?-1:11))},dependencies:[FC,FM,Uy,My,DM,oG,Jx,Kx,zG,xG,MM,LM,IM],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 z3=function(){this.disabled=!1;this.valueChange=new LE};z3.prototype.onValueChange=function(a){this.valueChange.emit(Number(a.target.value))};z3.\u0275fac=function(a){return new (a||z3)};
z3.\u0275cmp=y({type:z3,selectors:[["b-numeric-config"]],inputs:{disabled:"disabled",value:"value"},outputs:{valueChange:"valueChange"},standalone:!1,decls:14,vars:8,consts:[["timeInput","matInput"],[1,"flex-kids-x"],[1,"padded-sides","heading-xs","flex-kids-y"],[1,"config-title","config-title-container"],[1,"type-m","margin-y","disabled-time-val"],[1,"config-title-container","flex-kids-x"],["id","config-label","aria-label","Average days. All estimated effort types map to an average number of days.",
1,"config-title"],["svgIcon","help-outline","tabindex","0","aria-hidden","false","aria-label","All estimated effort types map to an average number of days.",1,"icon-xs",3,"matTooltip"],[3,"appearance"],["matInput","","type","number","aria-labelledby","config-label",1,"input-text",3,"change","disabled","value"]],template:function(a,b){if(a&1){var c=t();J(0,"div",1)(1,"div",2)(2,"span",3);R(3," Time ");K();J(4,"span",4);R(5,"1");K()();J(6,"div",2)(7,"div",5)(8,"span",6);R(9," Average days ");K();M(10,
"mat-icon",7);K();J(11,"mat-form-field",8)(12,"input",9,0);N("change",function(d){u(c);return w(b.onValueChange(d))});K()()()()}a&2&&(x(2),uh("muted",b.disabled),x(6),uh("muted",b.disabled),x(2),I("matTooltip","All estimated effort types map to an average number of days."),x(),I("appearance","outline"),x(),I("disabled",b.disabled)("value",b.value))},dependencies:[FC,FM,Uy,My,DM,zG,xG],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 B3=function(){this.activeSession=r(Bs);this.disabled=!1;this.updateEffortSpec=new LE;this.configurationOptions=[Vfd,Wfd,A3];this.estimatedEffortFieldEnabled=this.inherit=!1;this.name="Estimated effort";this.numericSpecMultiplier=1;this.enumSpecOptions=[];this.aggregationRules=yoc;this.selectedAggregationRule=this.aggregationRules.SUM;this.enableAggregationRules=OA(this.activeSession,"enableAggregationRules")};
B3.prototype.ngOnInit=function(){(this.originalEffortSpec=this.effortSpec)&&this.effortSpec.numericSpec&&(this.originalSelectedEffortConfig=A3)};B3.prototype.ngOnChanges=function(a){a.effortSpec&&this.effortSpec&&(this.originalEffortSpec=hj(this.effortSpec),this.setValues(this.effortSpec))};
B3.prototype.setValues=function(a){if(a.numericSpec){this.selectedEffortConfig=A3;var b,c,d;this.numericSpecMultiplier=(d=(b=this.effortSpec)==null?void 0:(c=b.numericSpec)==null?void 0:c.multiplier)!=null?d:1}if(a.enumSpec){this.selectedEffortConfig=void 0;var e,f;this.enumSpecOptions=((f=(e=a.enumSpec)==null?void 0:e.options)!=null?f:[]).map(function(k){return{label:k.label,value:k.value}})}var h;this.inherit=(h=a.inherit)!=null?h:!1;this.name=a.name===""?"Estimated effort":a.name||"";if(a.enumSpec||
a.numericSpec)this.estimatedEffortFieldEnabled=!0;a.aggregationType!==void 0&&a.aggregationType!==this.aggregationRules.AGGREGATION_TYPE_UNSPECIFIED&&(this.selectedAggregationRule=a.aggregationType)};
var Xfd=function(a){var b,c,d;if(((b=a.effortSpec)==null?0:b.enumSpec)&&!a.selectedEffortConfig||((c=a.selectedEffortConfig)==null?void 0:c.displayText)===Vfd.displayText||((d=a.selectedEffortConfig)==null?void 0:d.displayText)===Wfd.displayText)return"enum";var e;return((e=a.selectedEffortConfig)==null?void 0:e.displayText)===A3.displayText?"numeric":"empty"};B3.prototype.addRow=function(){this.enumSpecOptions.push({label:null,value:null})};
B3.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 Yfd=function(a){a.selectedEffortConfig=void 0;a.enumSpecOptions=[];a.effortSpec=void 0;a.name="Estimated effort"};B3.\u0275fac=function(a){return new (a||B3)};
B3.\u0275cmp=y({type:B3,selectors:[["b-estimated-effort-config"]],inputs:{effortSpec:"effortSpec",parentEffortSpec:"parentEffortSpec",disabled:"disabled"},outputs:{updateEffortSpec:"updateEffortSpec"},standalone:!1,features:[ov],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();J(0,"b-collapsible-card",1);Ah("cardTitleChange",function(e){u(c);zh(b.name,e)||(b.name=e);return w(e)});N("dropdownSelectionChanged",
function(e){u(c);b.selectedEffortConfig=e;e.displayText===Vfd.displayText?(b.enumSpecOptions=[].concat(p(Zfd)),b.name="Story points"):e.displayText===Wfd.displayText?(b.enumSpecOptions=[].concat(p($fd)),b.name="T-shirt sizes"):e.displayText===A3.displayText&&(b.numericSpecMultiplier=1,b.name="Days");b.estimatedEffortFieldEnabled=!0;return w()})("onSaveButtonClicked",function(){u(c);if(b.estimatedEffortFieldEnabled){var e={name:b.name,inherit:b.inherit};b.enableAggregationRules&&(e.aggregationType=
b.selectedAggregationRule);b.originalEffortSpec&&b.originalEffortSpec.customFieldId!==0&&(e.customFieldId=b.originalEffortSpec.customFieldId);var f;if(((f=b.selectedEffortConfig)==null?void 0:f.displayText)===A3.displayText)e.numericSpec={multiplier:b.numericSpecMultiplier};else if(b.enumSpecOptions.length>0){f=[];for(var h=l(b.enumSpecOptions),k=h.next();!k.done;k=h.next())k=k.value,k.label&&k.value!==null&&f.push({label:k.label,value:k.value});e.enumSpec={options:f}}b.updateEffortSpec.emit(e)}else b.updateEffortSpec.emit({name:"",
inherit:!1});return w()})("selectedChange",function(e){u(c);b.estimatedEffortFieldEnabled=e;b.estimatedEffortFieldEnabled||Yfd(b);return w()})("onCancelButtonClicked",function(){u(c);b.effortSpec=b.originalEffortSpec;b.selectedEffortConfig=b.originalSelectedEffortConfig;b.effortSpec?b.setValues(b.effortSpec):(b.estimatedEffortFieldEnabled=!1,Yfd(b));return w()})("isInheritedChange",function(e){u(c);(e=e.checked)?(b.setValues(b.parentEffortSpec?b.parentEffortSpec:{name:"Estimated effort"}),b.effortSpec=
b.parentEffortSpec,b.effortSpec||Yfd(b)):b.effortSpec&&(b.setValues({}),Yfd(b));b.inherit=e;return w()});J(1,"div",2);F(2,hKb,1,1,"ng-container")(3,iKb,1,2,"b-numeric-config",3)(4,jKb,0,0);K();F(5,kKb,23,13,"div",4);K();D(6,lKb,1,2,"ng-template",null,0,Lh)}if(a&2){var d;yh("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);x(2);G((d=Xfd(b))==="enum"?2:d==="numeric"?3:d==="empty"?4:-1);x(3);G(b.enableAggregationRules&&b.estimatedEffortFieldEnabled?5:-1)}},dependencies:function(){return[Sv,FC,My,DM,oG,Kx,l3,zG,xG,bP,jP,kP,Bx,y3,z3,C3]},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 Zfd=[{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}],$fd=[{label:"XS",value:1},{label:"S",value:3},{label:"M",value:5},{label:"L",value:10},{label:"XL",value:20}],Vfd={displayText:"Story points",icon:"story-point-24px"},Wfd={displayText:"T-shirt sizes",icon:"t-shirt-24px"},A3={displayText:"Time",icon:"time-24px"},C3=function(){};
C3.prototype.transform=function(a){switch(a){case "MAX":return"Max Point";default:return"Simple Sum"}};C3.\u0275fac=function(a){return new (a||C3)};C3.\u0275pipe=wf({name:"aggregationRuleText",type:C3,pure:!0,standalone:!1});var agd=function(){this.disabled=!1;this.updateComponent=new LE};agd.\u0275fac=function(a){return new (a||agd)};
agd.\u0275cmp=y({type:agd,selectors:[["b-component-standard-fields"]],inputs:{effortSpec:"effortSpec",parentEffortSpec:"parentEffortSpec",disabled:"disabled"},outputs:{updateComponent:"updateComponent"},standalone:!1,decls:4,vars:3,consts:[[1,"padded","field-container"],[1,"margin-bottom"],[3,"updateEffortSpec","effortSpec","parentEffortSpec","disabled"]],template:function(a,b){a&1&&(J(0,"div",0)(1,"div",1),R(2,"Once activated, standard fields appear in the right panel of all issues."),K(),J(3,"b-estimated-effort-config",
2),N("updateEffortSpec",function(c){b.updateComponent.emit(c)}),K()());a&2&&(x(3),I("effortSpec",b.effortSpec)("parentEffortSpec",b.parentEffortSpec)("disabled",b.disabled))},dependencies:[B3],styles:[".field-container[_ngcontent-%COMP%]{max-width:1100px}"]});var D3=function(){};D3.\u0275fac=function(a){return new (a||D3)};D3.\u0275mod=uf({type:D3});D3.\u0275inj=Dd({imports:[HC,GM,BG,lM,m3,CG,hQ,NM]});var E3=function(){};E3.\u0275fac=function(a){return new (a||E3)};E3.\u0275mod=uf({type:E3});E3.\u0275inj=Dd({imports:[HC,m3,D3]});var F3=function(){var a=this;this.teamsService=r(SF);this.anchorTarget="_blank";this.useInternalLink=this.isTopLevel=this.isAdmin=!1;this.modelChange=new LE;this.inherit=!1;this.selectedTeam$=new tg;this.teamIdChanged$=new sg(1);this.placeholder$=this.teamIdChanged$.pipe(C(function(b){return b==="0"?!a.isAdmin||!a.isTopLevel&&a.inherit?"No team selected":"Type to search for a team (leave blank to disable)":""}),wg(""));this.teamFromId$=this.teamIdChanged$.pipe(xg(function(b){return b==="0"?Nf(new Nob([b],
[""],"")):UF(a.teamsService,b).pipe(C(function(c){return new Nob([],c.collapsedPathNames,c.description)}))}));this.displayedTeam$=dg(this.teamFromId$,this.selectedTeam$);this.warningType$=this.teamIdChanged$.pipe(xg(function(b){return b==="0"?Nf("MISSING"):a.teamsService.getTeam(b).pipe(C(function(c){return!c||c.deleted?"DELETED":"VALID"}))}))};
F3.prototype.updateSelectionOnChange=function(a){Fo("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);bgd(this)};var bgd=function(a){a.inherit=a.model.inherit;a.teamIdChanged$.next(a.model.id)};F3.prototype.ngOnInit=function(){Object.assign({},this.model);bgd(this)};var pKb=function(a){return a.model.id&&a.model.id!=="0"};
F3.prototype.getMomaTeamLink=function(){return pKb(this)?"https://moma.corp.google.com/team/"+this.model.id:null};F3.\u0275fac=function(a){return new (a||F3)};
F3.\u0275cmp=y({type:F3,selectors:[["b-component-team-picker"]],inputs:{parentModel:"parentModel",model:"model",anchorTarget:"anchorTarget",isAdmin:"isAdmin",isTopLevel:"isTopLevel",useInternalLink:"useInternalLink"},outputs:{modelChange:"modelChange"},standalone:!1,decls:12,vars:12,consts:[[1,"edit-field"],[1,"edit-field","component-team-id-select"],["for","component-team-id"],["id","component-team-id","panelWidth","479px",3,"onTeamSelect","onEmptyQuery","placeholder","disabled","teamSelected"],
[1,"team-warning"],[3,"warningType","messageOnly"],[3,"change","disabled","checked"],["mat-icon-button","","aria-label","Go to Team page.","matTooltip","Go to Team page.",1,"small",3,"routerLink","target"],["mat-icon-button","","aria-label","Go to Team page.","matTooltip","Go to Team page.",1,"small",3,"click","routerLink","target"],["svgIcon","pop-out",1,"icon-s"],["mat-icon-button","","target","_blank","aria-label","Go to Moma Team page.","matTooltip","Go to Moma Team page.",1,"small"],["mat-icon-button",
"","target","_blank","aria-label","Go to Moma Team page.","matTooltip","Go to Moma Team page.",1,"small",3,"click"]],template:function(a,b){a&1&&(J(0,"div"),F(1,nKb,1,1),U(2,"async"),F(3,oKb,3,2,"div",0),J(4,"div",1)(5,"label",2),R(6,"Team selection"),K(),J(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);bgd(b)}),K(),F(10,rKb,1,1)(11,tKb,1,1),K()());if(a&2){var c;
x();G((c=V(2,6,b.warningType$))?1:-1,c);x(2);G(b.isTopLevel?-1:3);x(4);I("placeholder",V(8,8,b.placeholder$))("disabled",!b.isAdmin||!b.isTopLevel&&b.inherit)("teamSelected",V(9,10,b.displayedTeam$));x(3);G(b.useInternalLink?10:11)}},dependencies:[FC,xC,gM,hM,zG,xG,jY,B0,oG,Kx,Tv],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 G3=function(){};G3.\u0275fac=function(a){return new (a||G3)};G3.\u0275mod=uf({type:G3});G3.\u0275inj=Dd({imports:[HC,jM,lM,CG,lY,u1,Ay,BG]});var H3=function(){};H3.\u0275fac=function(a){return new (a||H3)};H3.\u0275mod=uf({type:H3});H3.\u0275inj=Dd({imports:[HC,NM,BG,kM,GC]});var I3=function(){};I3.\u0275fac=function(a){return new (a||I3)};I3.\u0275mod=uf({type:I3});I3.\u0275inj=Dd({imports:[H3,BG,wK]});var J3=function(){};J3.\u0275fac=function(a){return new (a||J3)};J3.\u0275mod=uf({type:J3});J3.\u0275inj=Dd({imports:[HC,AL,wK,s1]});var K3=function(){};K3.\u0275fac=function(a){return new (a||K3)};K3.\u0275mod=uf({type:K3});K3.\u0275inj=Dd({imports:[HC,Ay,BG,wK,GM,EM,FZ]});var L3=function(){};L3.\u0275fac=function(a){return new (a||L3)};L3.\u0275mod=uf({type:L3});L3.\u0275inj=Dd({imports:[HC,Ay,BG,GM,EM,wK]});var M3=function(){this.dialogData=r(QJ);this.dialogRef=r(KJ);this.originalItems=this.dialogData.fields.map(function(a){return{name:a.name,data:a}});this.items=[].concat(p(this.originalItems));this.fieldOrdering=this.dialogData.orderingCustomized;this.hasChanges=!1};M3.prototype.onClose=function(){var a=this.items.map(function(b){return b.data});this.dialogRef.close(a)};M3.\u0275fac=function(a){return new (a||M3)};
M3.\u0275cmp=y({type:M3,selectors:[["b-field-reorder-dialog"]],standalone:!1,decls:14,vars:2,consts:[["reorderItems",""],["mat-dialog-title",""],[1,"flex-kids-x","space-between","align-items-center"],[1,"margin-none"],["type","button","mat-icon-button","","aria-label","Sorts the fields alphabetically","matTooltip","Sort alphabetically",1,"alphasort",3,"click"],["svgIcon","sort_by_alpha_24px"],["mat-dialog-content",""],[3,"items","hasChanges","originalItems"],["mat-dialog-actions",""],["type","button",
"mat-stroked-button","",1,"medium","cancel",3,"click"],["type","button","mat-flat-button","","color","primary",1,"medium","dialog-primary-action","save",3,"click","disabled"]],template:function(a,b){if(a&1){var c=t();J(0,"div",1)(1,"div",2)(2,"h1",3);R(3," Reorder custom fields ");K();J(4,"button",4);N("click",function(){u(c);var d=Q(8);return w(O0c(d))});M(5,"mat-icon",5);K()()();J(6,"div",6)(7,"b-reorder-items",7,0);N("items",function(d){u(c);return w(b.items=d)})("hasChanges",function(d){u(c);
return w(b.hasChanges=d)});K()();J(9,"div",8)(10,"button",9);N("click",function(){u(c);return w(b.dialogRef.close())});R(11," Cancel ");K();J(12,"button",10);N("click",function(){u(c);return w(b.onClose())});R(13," Save ");K()()}a&2&&(x(7),I("originalItems",b.originalItems),x(5),I("disabled",b.fieldOrdering==="CUSTOMIZED"&&!b.hasChanges))},dependencies:[FC,oG,Jx,Kx,UJ,WJ,VJ,zG,xG,ST],encapsulation:2});var N3=function(){this.matDialog=r(RJ);this.confirmationDialog=r(YJ);this.fieldConfigService=r(s3);this.analytics=r(RE);this.butterBar=r(GJ);this.fields=[];this.isAdmin=!1;this.onReload=new LE;this.displayedColumn=["index","name","type","required","customFieldId"]},HKb=function(a){return LJ(a.matDialog.open(M3,{width:"500PX",autoFocus:!1,data:{fields:a.fields,orderingCustomized:a.fieldOrdering}})).subscribe(function(b){b&&cgd(a,b)})},IKb=function(a){a.confirmationDialog.open({title:"Reset ordering?",
content:Xi("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()}})},cgd=function(a,b){a.analytics.trackEvent("fieldOrdering","reorderFields");var c=b.map(function(d){return{customFieldId:d.customFieldId}});a.componentId?(Kq(a.butterBar,"Saving...",0),a.fieldConfigService.reorder(a.componentId,c).subscribe(function(){Kq(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.")};
N3.prototype.reset=function(){var a=this;this.analytics.trackEvent("fieldOrdering","resetFields");this.componentId?(Kq(this.butterBar,"Resetting orderings..."),this.fieldConfigService.executor.post({url:"action/components/"+this.componentId+"/unorder",body:null,responseConstructor:null}).subscribe(function(){Kq(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.")};
N3.\u0275fac=function(a){return new (a||N3)};
N3.\u0275cmp=y({type:N3,selectors:[["b-field-reorder"]],inputs:{fields:"fields",componentId:"componentId",fieldOrdering:"fieldOrdering",isAdmin:"isAdmin"},outputs:{onReload:"onReload"},standalone:!1,decls:22,vars:5,consts:[[1,"field-reorder-panel"],[1,"field-order-table"],["mat-table","",3,"dataSource"],["matColumnDef","index"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","type"],["matColumnDef","required"],["matColumnDef","customFieldId"],
["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"no-data-row"],[1,"edit-button-row"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["type","button","mat-flat-button","","color","primary",1,"medium",3,"click","disabled"]],template:function(a,b){a&1&&(J(0,"div",0)(1,"div",1)(2,"table",2),Wg(3,3),D(4,uKb,2,0,"th",4)(5,vKb,2,1,"td",5),Xg(),Wg(6,6),D(7,wKb,2,0,"th",4)(8,xKb,2,1,"td",5),Xg(),Wg(9,7),D(10,yKb,2,0,"th",4)(11,zKb,3,
3,"td",5),Xg(),Wg(12,8),D(13,AKb,2,0,"th",4)(14,BKb,2,1,"td",5),Xg(),Wg(15,9),D(16,CKb,2,0,"th",4)(17,DKb,2,1,"td",5),Xg(),D(18,EKb,1,0,"tr",10)(19,FKb,1,0,"tr",11),K(),F(20,GKb,2,0,"div",12),K(),F(21,JKb,6,2,"div",13),K());a&2&&(x(2),I("dataSource",b.fields),x(16),I("matHeaderRowDef",b.displayedColumn),x(),I("matRowDefColumns",b.displayedColumn),x(),G(b.fields.length===0?20:-1),x(),G(b.isAdmin?21:-1))},dependencies:[oG,Jx,cP,XP,KP,QP,MP,JP,SP,NP,PP,TP,VP,lQ],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 O3=function(){};O3.\u0275fac=function(a){return new (a||O3)};O3.\u0275mod=uf({type:O3});O3.\u0275inj=Dd({imports:[HC,BG,wK]});var P3=function(){};P3.\u0275fac=function(a){return new (a||P3)};P3.\u0275mod=uf({type:P3});P3.\u0275inj=Dd({imports:[HC,BG,wK,XQ,CG,O3,oQ,H3]});var Q3=function(){this.analytics=r(RE);this.filename=this.packageName=this.issueId="";this.lineNumbers=[];this.changeNumber=0},LKb=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="+dgd+a.issueId+egd;a.changeNumber&&(c+="&rcl="+a.changeNumber);Array.isArray(b)?c+="&l="+b.join(","):b&&(c+="&l="+b);return c}};
Q3.prototype.trackClick=function(a){this.analytics.trackEvent("codeMentions","clickCodeSearchLink",a)};Q3.\u0275fac=function(a){return new (a||Q3)};
Q3.\u0275cmp=y({type:Q3,selectors:[["b-file-mention"]],inputs:{issueId:"issueId",packageName:"packageName",filename:"filename",lineNumbers:"lineNumbers",changeNumber:"changeNumber"},standalone:!1,decls:5,vars:3,consts:[[1,"bv2-file-mention"],["target","_blank",1,"bv2-file-mention-filename",3,"click","href"],[1,"bv2-file-mention-line-number-list"],[1,"bv2-file-mention-line-number"],["target","_blank",3,"click","href"]],template:function(a,b){a&1&&(J(0,"div",0)(1,"a",1),N("click",function(){return b.trackClick("fileName")}),
R(2),K(),F(3,KKb,2,1,"span")(4,NKb,6,0,"span"),K());a&2&&(x(),I("href",LKb(b,b.lineNumbers),hf),x(),T(" ",b.filename," "),x(),G(b.lineNumbers.length<=10&&b.packageName!="wiki"?4:3))},encapsulation:2});var dgd=encodeURIComponent("content:(https?://)?b(uganizer)?(\\.corp(\\.google\\.com)?)?/(issues/|issue\\?id=)?"),egd=encodeURIComponent("(\\b|$)");var R3=function(){};R3.\u0275fac=function(a){return new (a||R3)};R3.\u0275mod=uf({type:R3});R3.\u0275inj=Dd({imports:[HC]});var S3=function(){this.feedbackState=new Map};S3.prototype.getKey=function(a,b){return a+"-"+b};var VKb=function(a,b,c){var d;return(d=a.feedbackState.get(a.getKey(b,c)))!=null?d:{hasThumbsUpped:!1,hasThumbsDowned:!1}};S3.prototype.hasFeedbackBeenGiven=function(a,b){a=VKb(this,a,b);return a.hasThumbsUpped||a.hasThumbsDowned};S3.\u0275fac=function(a){return new (a||S3)};S3.\u0275prov=Cd({token:S3,factory:S3.\u0275fac,providedIn:"root"});var T3=function(){var a=this;this.confirmationDialogService=r(YJ);this.contextSensitiveRegistry=r(LK);this.destroyRef=r(Gg);this.enrichmentApi=r(dB);this.issueEnrichmentFridge=r(ZD);this.issuePermissionService=r(OK);this.butterBar=r(GJ);this.window=r(HJ);this.insightsActionsService=r(S3);this.enrichmentCategoryFridge=r(oD);this.enrichmentCategory$=Nf(void 0);this.CATEGORY_INFO_HOVERCARD_CONFIG=Object.assign({},new GI,{position:[NHc]});this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(eg(Qj),
og());this.actionMenuItems$=this.issuePermissionService.hasAclToAdmin$.pipe(C(function(b){var c=[];b&&c.push({type:"action",action:function(){a.showDeleteAttachmentDialog(a.enrichment.category)},label:"Delete insight..."});return c}))};T3.prototype.ngOnInit=function(){this.enrichment.category&&(this.enrichmentCategory$=this.enrichmentCategoryFridge.watch(this.enrichment.category))};T3.prototype.hasFeedbackBeenGiven=function(a){return this.insightsActionsService.hasFeedbackBeenGiven(a,this.enrichment.category)};
var fgd=function(a,b){var c,d;return z(function(e){if(e.nextAddress==1)return B(e,Rf(a.issueId$),2);c=e.yieldResult;d=a.window.location.protocol+"//"+a.window.location.hostname+("/issues/"+c+"/insights#insight-"+b);a.window.navigator.clipboard.writeText(d);Kq(a.butterBar,"Link copied to clipboard",2E3);a.submitEnrichmentFeedback(b,"COPY_DEEP_LINK");Lf(e)})};
T3.prototype.copyContent=function(){var a,b=(a=this.enrichment.general)==null?void 0:a.content;b&&(this.window.navigator.clipboard.writeText(b),Kq(this.butterBar,"Content copied to clipboard",2E3),this.submitEnrichmentFeedback(this.enrichment.category,"COPY"))};
var TKb=function(a){var b,c;return z(function(d){if(d.nextAddress==1)return b=a.enrichment.category,B(d,Rf(a.issueId$),2);c=d.yieldResult;if(a.insightsActionsService.hasFeedbackBeenGiven(c,b))return d.return();a.submitEnrichmentFeedback(b,"THUMBS_UP");var e=a.insightsActionsService;e.feedbackState.set(e.getKey(c,b),{hasThumbsUpped:!0,hasThumbsDowned:!1});Lf(d)})},UKb=function(a){var b,c;return z(function(d){if(d.nextAddress==1)return b=a.enrichment.category,B(d,Rf(a.issueId$),2);c=d.yieldResult;if(a.insightsActionsService.hasFeedbackBeenGiven(c,
b))return d.return();a.submitEnrichmentFeedback(b,"THUMBS_DOWN");var e=a.insightsActionsService;e.feedbackState.set(e.getKey(c,b),{hasThumbsUpped:!1,hasThumbsDowned:!0});Lf(d)})};T3.prototype.submitEnrichmentFeedback=function(a,b){var c=this,d;return z(function(e){if(e.nextAddress==1)return B(e,Rf(c.issueId$),2);d=e.yieldResult;return B(e,Rf(c.enrichmentApi.submitEnrichmentFeedback({issueId:d,category:a,feedbackType:b})),0)})};
T3.prototype.showDeleteAttachmentDialog=function(a){var b=this,c;z(function(d){if(d.nextAddress==1)return B(d,Rf(b.issueId$),2);c=d.yieldResult;b.confirmationDialogService.open({title:"Delete Insight",content:Xi("You are about to delete insight '"+a+"' on issue "+c+". This action cannot be undone."),onConfirm:function(){sqc(b.enrichmentApi,c,a).pipe(lp(b.destroyRef)).subscribe(function(){b.submitEnrichmentFeedback(b.enrichment.category,"DELETE");b.issueEnrichmentFridge.poke(c)})}});Lf(d)})};
T3.\u0275fac=function(a){return new (a||T3)};
T3.\u0275cmp=y({type:T3,selectors:[["insights-actions"]],inputs:{enrichment:"enrichment"},standalone:!1,decls:11,vars:10,consts:[["categoryInfoCard","onedevHovercard"],["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","","matTooltip","Copy link","aria-label","copy link to insight",1,"small","copy-link",3,"click"],["svgIcon","link",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","","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"],"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"]],template:function(a,
b){if(a&1){var c=t();F(0,OKb,11,5);U(1,"async");J(2,"button",1);N("click",function(){u(c);return w(b.copyContent())});M(3,"mat-icon",2);K();J(4,"button",3);N("click",function(){u(c);return w(fgd(b,b.enrichment.category))});M(5,"mat-icon",4);K();F(6,WKb,9,4);U(7,"async");$g(8);U(9,"async");F(10,XKb,1,1,"b-actions-menu",5)}if(a&2){var d,e;G((d=V(1,3,b.enrichmentCategory$))?0:-1,d);x(6);G((e=V(7,5,b.issueId$))?6:-1,e);x(2);a=ah(V(9,7,b.actionMenuItems$));x(2);G(a&&a.length>0?10:-1)}},dependencies:[sS,
FC,oG,Kx,zG,xG,DI,JI,Tv],styles:[".primary[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}"],changeDetection:0});var bLb=function(a,b){return b.category},U3=function(){var a=this;this.bLocation=r(DH);this.destroyRef=r(Gg);this.dynamicScrollIntoView=r(AT);this.elementRef=r(Te);this.enrichmentApi=r(dB);this.contextSensitiveRegistry=r(LK);this.enrichmentCategoryFridge=r(oD);this.imageUrls=r(YM);this.issueEnrichmentFridge=r(ZD);this.scrolledOnScreenService=r(rH);this.loggedViewEnrichments=new Set;this.loggedImpressionEnrichments=new Set;this.onScreenSubscriptions=new Map;this.ROBOT_SLEEPING=this.imageUrls.ROBOT_SLEEPING;
this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(eg(Qj),og());this.enrichments$=this.issueId$.pipe(xg(function(b){return a.issueEnrichmentFridge.watch(b)}),C(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})}),zg(function(b){a.logImpressions(b)}));this.categoryDisplayNames$=this.enrichments$.pipe(xg(function(b){b=b.map(function(c){return c.category});return a.enrichmentCategoryFridge.watchSet(b)}),
C(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.scrollToInsight=vz(function(){var b=a.bLocation.hash();b&&V_c(a.dynamicScrollIntoView,{elementId:b,parentElement:a.elementRef.nativeElement,scrollableContainerId:"insights-accordion",scrollPadding:60}).pipe(lp(a.destroyRef)).subscribe()},200)};g=U3.prototype;
g.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()})};g.onExpand=function(a,b){var c=this;this.submitEnrichmentFeedback(a.category,"OPEN");setTimeout(function(){c.maybeSetupOnScreenDetection(a.category,b._body.nativeElement)},0)};
g.logImpressions=function(a){var b=this,c,d,e,f,h;return z(function(k){if(k.nextAddress==1)return B(k,Rf(b.issueId$),2);c=k.yieldResult;d=l(a);for(e=d.next();!e.done;e=d.next())f=e.value,h=f.category,b.loggedImpressionEnrichments.has(h)||(b.loggedImpressionEnrichments.add(h),b.enrichmentApi.submitEnrichmentFeedback({issueId:c,category:h,feedbackType:"IMPRESSION"}).subscribe());Lf(k)})};
g.submitEnrichmentFeedback=function(a,b){var c=this,d;return z(function(e){if(e.nextAddress==1)return B(e,Rf(c.issueId$),2);d=e.yieldResult;return B(e,Rf(c.enrichmentApi.submitEnrichmentFeedback({issueId:d,category:a,feedbackType:b})),0)})};
g.maybeSetupOnScreenDetection=function(a,b){var c=this,d,e,f;z(function(h){if(h.nextAddress==1){if(c.loggedViewEnrichments.has(a))return h.return();(d=c.onScreenSubscriptions.get(a))&&d.unsubscribe();return B(h,Rf(c.issueId$),2)}e=h.yieldResult;f=aCc(c.scrolledOnScreenService,b,{emitOnPartial:!0,durationOnScreenMs:3E3}).pipe(lp(c.destroyRef)).subscribe(function(){if(!c.loggedViewEnrichments.has(a)){c.enrichmentApi.submitEnrichmentFeedback({issueId:e,category:a,feedbackType:"VIEW"}).subscribe();c.loggedViewEnrichments.add(a);
var k;(k=c.onScreenSubscriptions.get(a))==null||k.unsubscribe();c.onScreenSubscriptions.delete(a)}});c.onScreenSubscriptions.set(a,f);Lf(h)})};U3.\u0275fac=function(a){return new (a||U3)};
U3.\u0275cmp=y({type:U3,selectors:[["b-insights"]],viewQuery:function(a,b){a&1&&hh(YW,5);if(a&2){var c;lh(c=mh())&&(b.accordion=c.first)}},standalone:!1,decls:4,vars:4,consts:[["expansionPanel",""],[1,"carded","bg-main"],[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"],[3,"formattedComment"],[1,"insights-date"],["mode","datetime",3,"timestamp"],[3,"enrichment"]],template:function(a,b){a&1&&($g(0),U(1,"async"),F(2,YKb,7,1,"section",1)(3,cLb,7,0));a&2&&(a=ah(V(1,1,b.enrichments$)),x(2),G(a&&a.length===0?2:a&&a.length>0?3:-1))},dependencies:[xO,EL,oG,Jx,T3,YW,OW,z5c,PW,QW,Tv],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}"],
changeDetection:0});var V3=function(){};V3.\u0275fac=function(a){return new (a||V3)};V3.\u0275mod=uf({type:V3});V3.\u0275inj=Dd({imports:[rT,HC,BG,CG,tJ,GC]});var W3=function(){};W3.\u0275fac=function(a){return new (a||W3)};W3.\u0275mod=uf({type:W3});W3.\u0275inj=Dd({imports:[HC,kQ,JL,BG,V3,Lx,ZW,GC]});var ggd=function(){return{width:400}},hgd=function(){return[]},X3=function(){var a=this;this.bLocation=r(DH);this.analytics=r(RE);this.activeSession=r(Bs);this.componentActions=r(WM);this.cdr=r(NE,{self:!0});this.routeParams=r(EK);this.includeArchived$=new Kn(!1);this.createComponentPath=Dq.createComponent.makeHref();this.isInternalSession=this.activeSession.isInternalSession();this.trackerRootComponent$=Yf(function(){return Nf(a.activeSession.getTracker())}).pipe(xg(function(b){return b?a.componentActions.get(b.componentId):
Nf(void 0)}));this.topLevelComponents$=Uf([this.trackerRootComponent$,this.includeArchived$]).pipe(xg(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&&fLb(this,String(this.routeParams.componentId),Rf(this.topLevelComponents$))},fLb=function(a,b,c){a.componentActions.get(b).then(function(d){for(var e=Iaa(d.componentPathInfo.componentPathId,0,d.componentPathInfo.componentPathId.length-
1),f={0:c},h=l(e),k=h.next();!k.done;k=h.next())k=k.value,f[k]=a.componentActions.getChildren(k,a.includeArchived);return Aq(f).then(function(q){for(var v=q[0],A=null,E=l(e),H=E.next(),L={};!H.done;L={parentId$jscomp$27:void 0},H=E.next()){L.parentId$jscomp$27=H.value;H=void 0;var O=(H=v.find(function(S){return function(aa){return aa.componentId===S.parentId$jscomp$27}}(L)))!=null?H:null;O&&(O.children=q[L.parentId$jscomp$27],O.showChildren=!0,v=O.children,A=O.componentId)}A&&d.archived&&!a.includeArchived&&
(b=A);a.cdr.detectChanges();setTimeout(function(){a.componentTree.fireSelectionEvent(b)})})})};nd.Object.defineProperties(X3.prototype,{includeArchived:{configurable:!0,enumerable:!0,get:function(){return this.includeArchived$.value}}});X3.\u0275fac=function(a){return new (a||X3)};
X3.\u0275cmp=y({type:X3,selectors:[["b-list-components-page"]],standalone:!1,features:[Fh([NE])],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();J(0,"h2",1);R(1,"Browse Components");K();J(2,"div",2)(3,"div",3);F(4,dLb,2,1,"a",4);J(5,"button",5);R(6," Search Components ");K();D(7,eLb,4,6,"ng-template",null,0,Lh);
F(9,gLb,3,4,"div",6);K()();J(10,"div",7);F(11,hLb,2,0,"div",8);U(12,"async");J(13,"component-tree-list",9);U(14,"async");U(15,"async");N("init",function(h){u(c);return w(b.componentTree=h)});K()()}if(a&2){a=Q(8);x(4);G(b.isInternalSession?4:-1);x();I("xapInlineDialogClick",a)("overlaySize",Gh(13,ggd));x(4);G(b.isInternalSession?9:-1);x(2);var d;G((d=V(12,7,b.topLevelComponents$))!=null&&d?-1:11);x(2);var e,f;I("components",(e=V(14,9,b.topLevelComponents$))!=null?e:Gh(14,hgd))("includeArchived",(f=
V(15,11,b.includeArchived$))!=null?f:!1)}},dependencies:[yN,uM,tM,yM,IG,oG,Jx,g_,hN,Tv],styles:[".component-picker-dialog[_ngcontent-%COMP%]{width:400px}.component-picker-dialog[_ngcontent-%COMP%]     input{box-sizing:border-box}"]});var Y3=function(){};Y3.\u0275fac=function(a){return new (a||Y3)};Y3.\u0275mod=uf({type:Y3});Y3.\u0275inj=Dd({imports:[HC,AN,gY,vM,CM,jM,JG,BG,i_,SQ]});var igd=function(){this.issueId="";this.packageMentionSet={packageName:"",fileMentionSet:[]};this.displayPackageName=!1};igd.\u0275fac=function(a){return new (a||igd)};
igd.\u0275cmp=y({type:igd,selectors:[["b-package-mentions-listing"]],inputs:{issueId:"issueId",packageMentionSet:"packageMentionSet",displayPackageName:"displayPackageName"},standalone:!1,decls:5,vars:1,consts:[[1,"bv2-package-mention-set"],[1,"bv2-package-mention-set-package-name"],[3,"issueId","packageName","filename","lineNumbers","changeNumber"]],template:function(a,b){a&1&&(J(0,"div",0),F(1,iLb,2,1,"p",1),J(2,"ul"),Pg(3,jLb,2,5,"li",null,Og),K()());a&2&&(x(),G(b.displayPackageName?1:-1),x(2),
Qg(b.packageMentionSet.fileMentionSet))},dependencies:[Q3],encapsulation:2});var Z3=function(){};Z3.\u0275fac=function(a){return new (a||Z3)};Z3.\u0275mod=uf({type:Z3});Z3.\u0275inj=Dd({imports:[HC,R3]});var a4=function(){};a4.\u0275fac=function(a){return new (a||a4)};a4.\u0275mod=uf({type:a4});a4.\u0275inj=Dd({imports:[HC,Ay,BG,wK,GM,AI,EM,cV]});var b4=function(){this.activeSession=r(Bs)};b4.prototype.ngOnInit=function(){};var jgd=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};b4.\u0275fac=function(a){return new (a||b4)};
b4.\u0275cmp=y({type:b4,selectors:[["b-tracker-account-menu-hack"]],inputs:{trackerInternalBaseUrl:"trackerInternalBaseUrl",trackerExternalBaseUrl:"trackerExternalBaseUrl"},standalone:!1,decls:11,vars:4,consts:[["accountHackMenu","matMenu"],["type","button","aria-label","Open account menu",1,"tracker-account-hack-button",3,"matMenuTriggerFor"],["xPosition","before"],[1,"padded-s-x","text-center"],[1,"padded-s-y"],["mat-menu-item","",3,"href"]],template:function(a,b){a&1&&(M(0,"button",1),J(1,"mat-menu",
2,0)(3,"div",3),F(4,kLb,2,1,"div",4),M(5,"hr"),J(6,"a",5),R(7,"Switch accounts"),K(),M(8,"hr"),J(9,"a",5),R(10,"Sign out of all accounts"),K()()());a&2&&(a=Q(2),I("matMenuTriggerFor",a),x(4),G(b.activeSession.getUserEmail()?4:-1),x(2),I("href","https://accounts.google.com/AccountChooser?hl=en&osid=1&continue="+encodeURIComponent(jgd(b)),hf),x(3),I("href","https://accounts.google.com/Logout?hl=en&continue="+encodeURIComponent(jgd(b)),hf))},dependencies:[pG,sG,qG,uG],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 c4=function(){Z.apply(this,arguments);this.trackerCheckboxValues={}};Y(c4,Z);c4.\u0275dir=Z.\u0275dir;c4.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 kgd=function(a){return Object.keys(cj(a.trackerCheckboxValues,function(b){return b}))};
c4.\u0275fac=function(){var a;return function(b){return(a||(a=Re(c4)))(b||c4)}}();
c4.\u0275cmp=y({type:c4,selectors:[["b-tracker-search"]],inputs:{currentTrackerId:"currentTrackerId",availableTrackers:"availableTrackers"},standalone:!1,features:[Bg,ov],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&&(J(0,"div",0)(1,
"div",1)(2,"div",2)(3,"span"),R(4,"Select a tracker"),K(),F(5,lLb,2,0,"span",3),K(),J(6,"div",4),Pg(7,mLb,3,2,"div",5,Og),K()()());a&2&&(uh("hidden",!(b.availableTrackers&&b.availableTrackers.length>1)),x(5),G(kgd(b).length!==0?-1:5),x(2),Qg(b.availableTrackers))},dependencies:[gM,hM],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 d4=function(){var a=r(FB),b=r(oN);Z.call(this);var c=this;this.analytics=r(RE);this.location=r(DH);this.prefsManager=r(iG);this.domSafe=r(UK);this.prefsManager.preferences$.pipe(yg(this.destroyed$)).subscribe(function(d){c.prefs=d});a.topBarEvents.browseComponents.pipe(yg(this.destroyed$)).subscribe(function(d){d=d.newTab;lgd(c,Dq.listComponents.makeHref(),d)});a.topBarEvents.manageHotlists.pipe(yg(this.destroyed$)).subscribe(function(d){d=d.newTab;lgd(c,Dq.listHotlists.makeHref(),d)});a.topBarEvents.manageSlos.pipe(yg(this.destroyed$)).subscribe(function(d){d=
d.newTab;lgd(c,Dq.listSlos.makeHref(),d)});a.topBarEvents.setDensity.pipe(yg(this.destroyed$)).subscribe(function(d){c.setDensity(d)});a.topBarEvents.openSettings.pipe(yg(this.destroyed$)).subscribe(function(d){var e=d.newTab;lgd(c,b.settings(d.settingsTabName),e)})};Y(d4,Z);d4.\u0275dir=Z.\u0275dir;var lgd=function(a,b,c){c?a.domSafe.openInNewTab(b):a.location.setUrl(b)};
d4.prototype.setDensity=function(a){this.prefs.themePreferences&&(this.prefs.themePreferences.density=a,this.prefsManager.save(this.prefs).pipe(mg(1),yg(this.destroyed$)).subscribe(),this.analytics.trackEvent("preferences","setDisplayDensity",a))};d4.\u0275fac=function(a){return new (a||d4)};d4.\u0275prov=Cd({token:d4,factory:d4.\u0275fac,providedIn:"root"});var mgd=function(){this.hideAppChromeHelper=r(sZ);this.destroyRef=r(Gg);this.cdr=r(Hv);this.router=r(vC);this.activatedRoute=r(Jn);this.navigationEnd$=this.router.events.pipe(eg(CHa));this.hideAppChrome=this.hideAppChromeHelper.hideAppChrome};mgd.\u0275fac=function(a){return new (a||mgd)};
mgd.\u0275cmp=y({type:mgd,selectors:[["b-top-bar-outlet"]],standalone:!1,decls:1,vars:1,template:function(a,b){a&1&&F(0,nLb,1,0,"b-top-bar-outlet-body");a&2&&G(b.hideAppChrome?-1:0)},dependencies:function(){return[e4]},encapsulation:2,changeDetection:0});
var e4=function(){Z.call(this);var a=this;this.activeSession=r(Bs);this.searchAcData=r(W1);this.savedSearchApi=r(fD);this.butterBar=r(GJ);this.bLocation=r(DH);this.paths=r(oN);this.analytics=r(RE);this.appEvents=r(FB);this.appSearchState=r(bX);this.trackerFridge=r(cG);this.errorHandler=r(aK);r(d4);this.frontendAccessMode=this.activeSession.getFrontendAccessMode();this.environmentType=this.activeSession.getEnvironmentType();this.items=[];this.acHeader=null;this.currentQuery="";this.enableTrackersAccountHack=
OA(this.activeSession,"enableTrackersAccountHack");this.currentTracker=this.activeSession.getTracker();this.associatedTrackers$=Yf(function(){var b,c;return Nf((c=(b=a.currentTracker)==null?void 0:b.associatedTrackerIds)!=null?c:[])}).pipe(xg(function(b){return a.trackerFridge.watchSet(b)}));this.availableTrackers$=this.associatedTrackers$.pipe(C(function(b){return a.currentTracker?[a.currentTracker].concat(p(b)):[]}));this.searchAcData.acRefreshed$.pipe(yg(this.destroyed$)).subscribe(function(){a.items=
a.searchAcData.items;a.acHeader=a.searchAcData.acHeader});this.trackerFridge.error$.pipe(yg(this.destroyed$)).subscribe(function(b){b.status!==403&&a.errorHandler.errorHandler(null,b)})};Y(e4,Z);e4.\u0275dir=Z.\u0275dir;var ngd=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"}};
e4.prototype.ngOnInit=function(){var a=this;this.appSearchState.queryState$.pipe(yg(this.destroyed$)).subscribe(function(c){var d=a.searchAcData,e=c.cursorPosition;d.query=c.query;d.cursorIdx=e;if(d.cursorIdx==null)d.currentSearchContext=null;else{var f=d.query,h=d.cursorIdx;if(h<0||h>f.length)throw Error("hf");e=new Zcd(f,h);if(f){var k=f.slice(0,h);for(var q=!1,v=-1,A=-1;(v=k.indexOf('"',v+1))>-1;)q=!q,A=v;k=q?A:-1;if(k>-1)e.value={val:f.slice(k,h),idx:k};else if(k=f.slice(h),q=k.search("\\s"),
(k=CEb(f.slice(0,h)+(q>-1?k.slice(0,q):k),cdd))?(k={negated:!!k[1],val:k[2].toLowerCase(),operator:k[3],idx:k.index-k[1].length-k[2].length-k[3].length},k.val.startsWith("customfield")&&(k.customFieldId=k.val.slice(11),k.val="customfield")):k=null,k){q=k.idx+(k.negated?1:0)+k.val.length+k.operator.length+(k.customFieldId?k.customFieldId.length:0);f=f.slice(q);v=Math.max(h-q,0);A=k;if(f.charAt(0)==="("){b:{A=[];for(var E=/[()]/g,H;(H=E.exec(f))!=null;){var L=A[A.length-1];if(L&&L!==H[0]){if(A.pop(),
!A.length){A=H.index>=v;break b}}else A.push(H[0])}A=!0}A=A?2:0}else A=$cd.includes(A.val)&&f.search("^\\d")===-1?1:0;switch(A){case 2:h=$cd.includes(k.val)?hs(f,v,"([()|]\\s*|OR\\s+|AND\\s+|NOT\\s+|-|\\b\\d+\\s+)","[()|\\s-]"):hs(f,v,"[()|\\s-]");/(OR|AND|NOT|-)$/.test(h.val)&&(h.val="",h.idx=v);e.value=h;break;case 1:e.value=hs(f,v,"[()|]","[()|,\\s]");break;case 0:e.value=hs(f,v,"[\\s()|]");f.slice(0,v).search("[\\s()|]")>-1&&(k=null,v=CEb(f,"(?:\\s|^)(?:-?)(customfield|cf)"))&&(e.value=BEb(f,
v.index-v[1].length,h));break;default:pb(A,"unknown ValueType.")}e.value.idx+=q;e.label=k}else k=CEb(f,"(?:\\s|^)(?:-?)(customfield|cf)"),e.value=k?BEb(f,k.index-k[1].length,h):hs(f,h,"[\\s()]")}d.currentSearchContext=e}d.currentSearchContext&&(e=d.currentSearchContext,h=++d.requestIndex,d.refreshRequest$.next({currentRequestIndex:h,currentSearchContext:e}));a.currentQuery=c.query});var b=this.appSearchState.queryState$.pipe(C(function(c){return c.query}));this.appSearchState.searchTriggered$.pipe(Ag(b),
yg(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=qjb(c),h=f.filters,k=f.text,q=f.complexSyntax,v=f.resourceIds;f=[h,k,v].reduce(Ova);h=[h?"filters":void 0,k?"text":void 0,v?"ids":void 0].filter(Boolean).join("-");q?e.track(d,"complex"):h?e.track(d,h,f):e.track(d,"UNHANDLED");d=Ba(e.searchHandlerStack);d===void 0?e.$log.warn("No search function installed."):d(c)})};
e4.prototype.ngAfterViewInit=function(){mfd(this.advancedSearchCtrl,this.appSearchState.currentQuery)};var ogd=function(a){if(a.advancedSearchCtrl)return a.advancedSearchCtrl.getState()!=="SUCCESS"?a.currentQuery:tfd(a.advancedSearchCtrl).trim()};g=e4.prototype;g.onAdvancedSearchOpen=function(){this.advancedSearchCtrl&&(ogd(this)!==this.currentQuery||this.advancedSearchCtrl.getState()!=="SUCCESS")&&mfd(this.advancedSearchCtrl,this.currentQuery)};
g.onAdvancedSearchClose=function(){var a,b;this.appSearchState.selectedTrackerIds$.next((b=(a=this.trackerSearchCtrl)==null?void 0:kgd(a))!=null?b:[]);this.advancedSearchCtrl&&(a=ogd(this),a!==void 0&&a!==this.currentQuery&&this.appSearchState.queryState$.next({query:a,cursorPosition:void 0,setViaInteraction:!1}))};
g.submitAdvancedSearch=function(){var a,b;this.appSearchState.selectedTrackerIds$.next((b=(a=this.trackerSearchCtrl)==null?void 0:kgd(a))!=null?b:[]);this.advancedSearchCtrl&&(a=ogd(this),a!==void 0&&(this.appSearchState.queryState$.next({query:a,cursorPosition:void 0,setViaInteraction:!1}),this.appSearchState.searchTriggered$.next("ui-builder")))};
g.saveSearch=function(a){var b=this;if(this.advancedSearchCtrl){var c=ogd(this);c!==void 0&&(Kq(this.butterBar,"Saving saved search.",1E3),this.savedSearchApi.create(a,c).then(function(d){b.appEvents.savedSearchModified.next();d=d.searchId;Kq(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(Ro(d))}))}};
g.isSearchDisabled=function(){return!!this.trackerSearchCtrl&&kgd(this.trackerSearchCtrl).length===0};e4.\u0275fac=function(a){return new (a||e4)};
e4.\u0275cmp=y({type:e4,selectors:[["b-top-bar-outlet-body"]],viewQuery:function(a,b){a&1&&(hh(P2,5),hh(c4,5));if(a&2){var c;lh(c=mh())&&(b.advancedSearchCtrl=c.first);lh(c=mh())&&(b.trackerSearchCtrl=c.first)}},standalone:!1,features:[Bg],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&&(J(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,oLb,2,4,"b-tracker-search",1),M(2,"b-advanced-search",2),F(3,pLb,4,0,"div",3),F(4,sLb,3,2,"div",4),F(5,tLb,2,0,"div",4),K(),F(6,uLb,1,2,"b-tracker-account-menu-hack",5));a&2&&(I("logoFrontendAccessMode",b.frontendAccessMode)("logoEnvironmentType",b.environmentType)("searchBoxPlaceholder",ngd(b,b.currentTracker))("searchBoxAutoCompleteItems",b.items)("searchBoxAutoCompleteHeader",b.acHeader)("isSearchDisabled",b.isSearchDisabled()),x(),G(b.currentTracker?1:
-1),x(),I("isTrackerSearchEnabled",!b.currentTracker),x(),G((b.advancedSearchCtrl==null?null:b.advancedSearchCtrl.getState())==="INIT"?3:-1),x(),G((b.advancedSearchCtrl==null?null:b.advancedSearchCtrl.getState())==="NOT_REPRESENTABLE"||(b.advancedSearchCtrl==null?null:b.advancedSearchCtrl.getState())==="SYNTAX_ERROR"?4:-1),x(),G((b.advancedSearchCtrl==null?null:b.advancedSearchCtrl.getState())==="SERVER_ERROR"?5:-1),x(),G(b.enableTrackersAccountHack&&!b.activeSession.isAnonymous()&&b.currentTracker?
6:-1))},dependencies:[FC,P2,c4,Jfd,yN,b4,Tv],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 f4=function(){};f4.\u0275fac=function(a){return new (a||f4)};f4.\u0275mod=uf({type:f4});f4.\u0275inj=Dd({imports:[HC,lM]});var g4=function(){};g4.\u0275fac=function(a){return new (a||g4)};g4.\u0275mod=uf({type:g4});g4.\u0275inj=Dd({imports:[HC,R2,f4,i3,AN,mH]});var h4=function(){this.dialogRef=r(KJ);this.data=r(QJ);this.updateDiffs=this.data.updateDiffs;this.userToDisplay=wj;this.DiffType=woc};h4.prototype.close=function(){this.dialogRef.close()};h4.\u0275fac=function(a){return new (a||h4)};
h4.\u0275cmp=y({type:h4,selectors:[["b-update-history-modal"]],standalone:!1,decls:7,vars:0,consts:[["mat-dialog-content","",1,"update-history-modal"],["tabindex","0",1,"update-history-list"],[1,"bv2-event"],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium",3,"click"],[1,"bv2-event-user-image-cell"],[1,"bv2-event-user-image",3,"email"],[1,"bv2-event-content-cell"],[1,"bv2-event-user-name",3,"email"],[1,"bv2-event-info"],["mode","datetime",3,"timestamp"],[1,"bv2-event-details"],
[1,"bv2-diff-detail"],[1,"bv2-diff-arrow"]],template:function(a,b){a&1&&(J(0,"div",0)(1,"ul",1),Pg(2,DLb,11,3,"li",2,Og),K()(),J(4,"div",3)(5,"button",4),N("click",function(){return b.close()}),R(6," Close "),K()());a&2&&(x(2),Qg(b.updateDiffs))},dependencies:[oG,Jx,WJ,VJ,cL,aL,EL],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 i4=function(){};i4.\u0275fac=function(a){return new (a||i4)};i4.\u0275mod=uf({type:i4});i4.\u0275inj=Dd({imports:[HC,BG,wK,hL,JL]});var j4=function(){this.paths=r(oN);this.bLocation=r(DH)};j4.prototype.visit=function(a){a.event&&(a.event.preventDefault(),a.event.stopPropagation());var b=a.elementId;a=Fq(a.issueId)+(b?"#"+b:"");this.bLocation.setUrl(a)};j4.\u0275fac=function(a){return new (a||j4)};j4.\u0275prov=Cd({token:j4,factory:j4.\u0275fac,providedIn:"root"});var pgd={provide:nO,useExisting:j4};var qgd=function(){var a;switch((a=self.location)==null?void 0:a.hostname){case "cider.corp.google.com":case "cider-v.corp.google.com":case "critique.corp.google.com":return 1;case "cider-staging.corp.google.com":case "cider-v-staging.corp.google.com":case "critique-staging.corp.google.com":return 2;case "cider-test.corp.google.com":case "cider-v-test.corp.google.com":case "critique-qa.corp.google.com":return 3;default:return 4}}();var k4=function(a){jE.call(this);this.errorHandlerFn_=a};zu(k4,jE);k4.prototype.wrap=function(a){return rgd(this,a)};var l4=function(a,b){return(b?"__wrapper_":"__protected_")+Ma(a)+"__"},rgd=function(a,b){var c=l4(a,!0);b[c]||((b[c]=sgd(a,b))[l4(a,!1)]=b);return b[c]},sgd=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[l4(a,!1)]=b;return c};
k4.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 tgd(a);};
var ugd=function(a,b){var c=ea.window||ea.globalThis,d=c[b];if(!d)throw Error("mf`"+b);c[b]=function(e,f){typeof e==="string"&&(e=yu(kdc,e));e&&(arguments[0]=e=rgd(a,e));if(d.apply)return d.apply(this,arguments);var h=e;if(arguments.length>2){var k=Array.prototype.slice.call(arguments,2);h=function(){e.apply(this,k)}}return d(h,f)};c[b][l4(a,!1)]=d};
k4.prototype.disposeInternal=function(){var a=ea.window||ea.globalThis;var b=a.setTimeout;b=b[l4(this,!1)]||b;a.setTimeout=b;b=a.setInterval;b=b[l4(this,!1)]||b;a.setInterval=b;k4.superClass_.disposeInternal.call(this)};var tgd=function(a){ca.call(this,"Error in protected function: "+(a&&a.message?String(a.message):String(a)),a);(a=a&&a.stack)&&typeof a==="string"&&(this.stack=a)};zu(tgd,ca);var wgd=function(a,b,c){Cp.call(this);this.contextProvider_=b||null;this.additionalArguments_={};this.xhrSender_=vgd;this.handlerUrl_=a;if(!c){this.errorHandler_=null;this.errorHandler_=new k4(bt(this.handleException,this));ugd(this.errorHandler_,"setTimeout");ugd(this.errorHandler_,"setInterval");a=this.errorHandler_;b=ea.window||ea.globalThis;c=["requestAnimationFrame","mozRequestAnimationFrame","webkitAnimationFrame","msRequestAnimationFrame"];for(var d=0;d<c.length;d++){var e=c[d];c[d]in b&&ugd(a,
e)}a=this.errorHandler_;tmc=!0;b=bt(a.wrap,a);for(c=0;c<rmc.length;c++)rmc[c](b);smc.push(a)}};zu(wgd,Cp);var xgd=function(a,b){yE.call(this,"z");this.error=a;this.context=b};zu(xgd,yE);var vgd=function(a,b,c,d){if(d instanceof Map){var e={};d=l(d);for(var f=d.next();!f.done;f=d.next()){var h=l(f.value);f=h.next().value;h=h.next().value;e[f]=h}}else e=d;o4a(a,null,b,c,e)};
wgd.prototype.handleException=function(a,b){a=a.error||a;b=b?ej(b):{};a instanceof Error&&Qra(b,a.__closure__error__context__984382||{});var c=Cfc(a);if(this.contextProvider_)try{this.contextProvider_(c,b)}catch(e){}var d=c.message.substring(0,1900);a instanceof ca&&!a.reportErrorToServer||ygd(this,d,c.fileName,c.lineNumber,c.stack,b);try{this.dispatchEvent(new xgd(c,b))}catch(e){}};
var ygd=function(a,b,c,d,e,f){try{var h=KWa(a.handlerUrl_,"script",c,"error",b,"line",d);Lra(a.additionalArguments_)||(h=MWa(h,a.additionalArguments_));b={};b.trace=e;if(f)for(var k in f)b["context."+k]=f[k];var q=UAc(b);a.xhrSender_(h,"POST",q,a.extraHeaders_)}catch(v){}};wgd.prototype.disposeInternal=function(){Io(this.errorHandler_);wgd.superClass_.disposeInternal.call(this)};var m4=function(){this.jsBuild="795177047";this.buildLabel="buganizer.frontend_20250813.07_p1"};m4.\u0275fac=function(a){return new (a||m4)};m4.\u0275prov=Cd({token:m4,factory:m4.\u0275fac,providedIn:"root"});var n4=function(){};n4.prototype.reportingEnabled=function(){return qgd!==4};n4.\u0275fac=function(a){return new (a||n4)};n4.\u0275prov=Cd({token:n4,factory:n4.\u0275fac,providedIn:"root"});
var o4=function(){var a=this;this.appContext=r(n4);this.context={};this.reportingExtensions=[];var b=r(m4);this.jsDebugErrorReporter=new wgd("/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)},zgd=function(a,b){b="Error: "+b;console.error("ErrorReporter: ",b);if(a.appContext.reportingEnabled())try{throw Error(b);}catch(c){for(ELb(c),ygd(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()}};o4.prototype.reportError=function(a){console.error("ErrorReporter: ",(a==null?void 0:a.stack)||a);if(this.appContext.reportingEnabled()){ELb(a);this.jsDebugErrorReporter.handleException(a);a=l(this.reportingExtensions);for(var b=a.next();!b.done;b=a.next())b.value.onReportedError()}};o4.\u0275fac=function(a){return new (a||o4)};
o4.\u0275prov=Cd({token:o4,factory:o4.\u0275fac,providedIn:"root"});var p4=function(){this.reporter=r(o4)};
p4.prototype.handleError=function(a){if(Qo(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)Vj("omitting eye3 reporting of",a);else if(typeof a==="string")zgd(this.reporter,a);else if(a instanceof Error||!Qo(a)){b=Cfc(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 zgd(this.reporter,
Ro(a))};p4.\u0275fac=function(a){return new (a||p4)};p4.\u0275prov=Cd({token:p4,factory:p4.\u0275fac,providedIn:"root"});var q4=function(){this.activeSession=r(Bs)};Y(q4,n4);q4.prototype.reportingEnabled=function(){return OA(this.activeSession,"reportErrors")};q4.\u0275fac=function(){var a;return function(b){return(a||(a=Re(q4)))(b||q4)}}();q4.\u0275prov=Cd({token:q4,factory:q4.\u0275fac,providedIn:"root"});
var Agd={provide:Th,useClass:p4},Bgd={provide:n4,useClass:q4},Cgd={provide:m4,useValue:{jsBuild:"795177047",buildLabel:"buganizer.frontend_20250813.07_p1"}};var r4=function(){};r4.\u0275fac=function(a){return new (a||r4)};r4.\u0275cmp=y({type:r4,selectors:[["b-empty"]],standalone:!1,decls:0,vars:0,template:function(){},encapsulation:2});var s4=function(){};s4.\u0275fac=function(a){return new (a||s4)};s4.\u0275mod=uf({type:s4});s4.\u0275inj=Dd({});var t4=function(){};Y(t4,rC);t4.prototype.store=function(){};t4.prototype.retrieve=function(){return null};t4.prototype.shouldReuseRoute=function(a,b){return a.routeConfig===b.routeConfig&&gj(a.params,b.params)};t4.\u0275fac=function(){var a;return function(b){return(a||(a=Re(t4)))(b||t4)}}();t4.\u0275prov=Cd({token:t4,factory:t4.\u0275fac,providedIn:"root"});var u4=function(){this.router=r(vC)};u4.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,wC(this.router,[a],{fragment:b&&!isNaN(Number(b))?"comment"+b:void 0})):b.url==="/attention"?wC(this.router,["home"]):!0};u4.\u0275fac=function(a){return new (a||u4)};u4.\u0275prov=Cd({token:u4,factory:u4.\u0275fac,providedIn:"root"});var Dgd=/^(\d+)$/,v4=function(){this.butterBar=r(GJ);this.paramNamesToCheck=new Set(Object.values(Cqc))};v4.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=Ym(d);if(!Dgd.test(d)||isNaN(e)||!Number.isInteger(e))return this.butterBar.showWarning("The URL parameter "+c+' has the malformed value "'+d+'".'),!1}return!0};v4.\u0275fac=function(a){return new (a||v4)};
v4.\u0275prov=Cd({token:v4,factory:v4.\u0275fac,providedIn:"root"});var w4=function(){this.routeParamsValidator=r(v4)};w4.prototype.canActivate=function(a){return this.routeParamsValidator.validate(a.params)};w4.\u0275fac=function(a){return new (a||w4)};w4.\u0275prov=Cd({token:w4,factory:w4.\u0275fac,providedIn:"root"});var x4=function(){this.activeSession=r(Bs);this.router=r(vC)};x4.prototype.canActivate=function(){return this.activeSession.isAnonymous()?wC(this.router,["issues"]):!0};x4.\u0275fac=function(a){return new (a||x4)};x4.\u0275prov=Cd({token:x4,factory:x4.\u0275fac,providedIn:"root"});var y4=function(){this.activeSession=r(Bs);this.router=r(vC)};y4.prototype.canActivate=function(){return this.activeSession.isInternalSession()||OA(this.activeSession,"enableMissionControlInExternalEnvironments")?!0:wC(this.router,["issues"])};y4.\u0275fac=function(a){return new (a||y4)};y4.\u0275prov=Cd({token:y4,factory:y4.\u0275fac,providedIn:"root"});var z4=function(){this.userPreferences=r(iG);this.activeSession=r(Bs)},Egd=function(a){var b=a.activeSession.isInternalSession()||OA(a.activeSession,"enableMissionControlInExternalEnvironments");a=ip(a.userPreferences.homepagePreferences$);if(b&&(a==null||Object.keys(a).length===0||(a==null?void 0:a.resourceType)==="MISSION_CONTROL"))return"/home";if((a==null?void 0:a.resourceType)==="ASSIGNED_TO_ME"||a==null||!a.resourceId)return"/issues";switch(a.resourceType){case "BOOKMARK_GROUP":return"/dashboard/"+
a.resourceId;case "SAVED_SEARCH":return"/savedsearches/"+a.resourceId;case "HOTLIST":return"/hotlists/"+a.resourceId;default:return"/issues"}};z4.\u0275fac=function(a){return new (a||z4)};z4.\u0275prov=Cd({token:z4,factory:z4.\u0275fac,providedIn:"root"});var A4=function(){this.router=r(vC);this.homepageRedirection=r(z4)};A4.prototype.canActivate=function(){return wC(this.router,[Egd(this.homepageRedirection)])};A4.\u0275fac=function(a){return new (a||A4)};A4.\u0275prov=Cd({token:A4,factory:A4.\u0275fac,providedIn:"root"});var Fgd={ANDROID:"Android",CHROME:"ChromeOS",IOS:"iOS",LINUX:"Linux",MAC:"Mac",UNKNOWN:"Unknown",WINDOWS:"Windows"};var Acc={default:"1363614",apps:"1456886",blink:"1456407",devtools:"1457055",enterprise:"1456152",extensions:"1456110",installer:"1456937",media:"1456190",network:"1456527",sync:"1457192",ui:"1457123",webstore:"1457238"},zcc={default:"402888",apps:"422083",blink:"421442",devtools:"422123",enterprise:"421726",extensions:"422130",installer:"421863",media:"421886",network:"421924",sync:"422168",ui:"422198",webstore:"422443"},Ggd=["media-bugs@chromium.org"],Hgd=["chrome-sync-monorail@google.com"];var Igd={USER:"USER",DEVELOPER:"DEVELOPER",VULN_REPORTER:"VULN_REPORTER",CONTRIBUTOR:"CONTRIBUTOR"},Jgd={INPUT:"INPUT",TEXT:"TEXT",SELECT:"SELECT"},Kgd=new le("CustomQuestionsConfig"),Lgd=new le("ComponentIds"),Mgd=new le("CustomFieldIds"),Ngd=new le("HotlistIds");var B4=function(){this.componentIds=r(Lgd);this.persona="USER";this.categoryChange=new LE;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:Ggd},{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:Hgd},{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)};
B4.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)})};B4.\u0275fac=function(a){return new (a||B4)};
B4.\u0275cmp=y({type:B4,selectors:[["wizard-category-select"]],inputs:{persona:"persona",category:"category"},outputs:{categoryChange:"categoryChange"},standalone:!1,features:[ov],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&&(J(0,"mat-form-field",0)(1,"mat-select",1),N("valueChange",function(d){b.category=
d;b.categoryChange.emit(b.category)}),J(2,"mat-select-trigger"),R(3),K(),Pg(4,GLb,5,3,"mat-option",2,Og),K()());if(a&2){x();I("value",b.category);x(2);var c;T(" ",(c=b.category==null?null:b.category.title)!=null?c:""," ");x();Qg(b.options[b.persona])}},dependencies:[My,DM,bP,jP,kP,Bx],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 HLb=function(a){return{question:a}},C4=function(){this.config=r(Kgd);this.CustomQuestionType=Jgd;this.responses=new LE;this.model=Object.assign({},this.config)};C4.prototype.ngOnInit=function(){};var NLb=function(a){var b=a.model[a.category].filter(function(c){return!!c.response});a.responses.emit(b)};C4.\u0275fac=function(a){return new (a||C4)};
C4.\u0275cmp=y({type:C4,selectors:[["wizard-custom-questions"]],inputs:{category:"category"},outputs:{responses:"responses"},standalone:!1,decls:10,vars:0,consts:[["customQuestion",""],["input",""],["text",""],["select",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHtml"],["appearance","outline"],["matInput","",3,"ngModelChange","ngModel"],["appearance","outline",1,"textarea"],["required","",3,"valueChange","value"],[3,"value"]],template:function(a,b){a&1&&(Pg(0,ILb,1,4,"ng-container",
4,Og),D(2,MLb,3,1,"ng-template",null,0,Lh)(4,OLb,3,3,"ng-template",null,1,Lh)(6,PLb,4,3,"ng-template",null,2,Lh)(8,TLb,6,4,"ng-template",null,3,Lh));a&2&&Qg(b.model[b.category])},dependencies:[Sv,Ui,dy,ky,FM,Uy,My,DM,bP,jP,Bx],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 Ogd=function(){this.Persona=Igd;this.persona="USER";this.personaChange=new LE};Ogd.\u0275fac=function(a){return new (a||Ogd)};
Ogd.\u0275cmp=y({type:Ogd,selectors:[["wizard-persona-picker"]],inputs:{persona:"persona"},outputs:{personaChange:"personaChange"},standalone:!1,decls:18,vars:5,consts:[["aria-label","Select your following role",3,"ngModelChange","ngModel"],[3,"value"],[1,"subtext"],[1,"vuln-reporter",3,"value"]],template:function(a,b){a&1&&(J(0,"div")(1,"mat-radio-group",0),N("ngModelChange",function(c){b.persona=c;b.personaChange.emit(b.persona)}),J(2,"mat-radio-button",1),R(3," End User "),J(4,"div",2),R(5," I am trying to use a website. "),
K()(),J(6,"mat-radio-button",1),R(7," Web Developer "),J(8,"div",2),R(9," I am trying to build something on a website. "),K()(),J(10,"mat-radio-button",3),R(11," Vulnerability Reporter "),J(12,"div",2),R(13," I am reporting a possible security vulnerability. "),K()(),J(14,"mat-radio-button",1),R(15," Chromium Contributor "),J(16,"div",2),R(17," I know about a problem in specific tests or code. "),K()()()());a&2&&(x(),I("ngModel",b.persona),x(),I("value",b.Persona.USER),x(4),I("value",b.Persona.DEVELOPER),
x(4),I("value",b.Persona.VULN_REPORTER),x(4),I("value",b.Persona.CONTRIBUTOR))},dependencies:[dy,ky,jN,kN],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 Pgd=new le("GMAT_CARD_OPTIONS",{providedIn:"root",factory:function(){return{disableGmatStyle:!1}}});var Qgd=function(a){this.options=a;if(a.disableGmatStyle)throw Error("Mc");};Qgd.\u0275fac=function(a){return new (a||Qgd)(of(Pgd))};Qgd.\u0275dir=vf({type:Qgd,selectors:[["mat-card"]],hostAttrs:[1,"gmat-mdc-card"],standalone:!1});var D4=function(){this._elementRef=r(Te)};D4.prototype.focus=function(){this._elementRef.nativeElement.focus()};D4.\u0275fac=function(a){return new (a||D4)};D4.\u0275dir=vf({type:D4,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]});var E4=function(){this.template=r(eh)};E4.\u0275fac=function(a){return new (a||E4)};E4.\u0275dir=vf({type:E4,selectors:[["","cdkStepLabel",""]]});var Rgd=new le("STEPPER_GLOBAL_OPTIONS"),G4=function(){var a=this;this._stepper=r(F4);this._interacted=nh.apply(null,[!1].concat(p([])));this.interactedStream=new nq;this._state=nh.apply(null,[void 0].concat(p([])));this._editable=nh.apply(null,[!0].concat(p([])));this.optional=!1;this._completedOverride=nh.apply(null,[null].concat(p([])));this.index=nh.apply(null,[-1].concat(p([])));this.isSelected=Zh.apply(null,[function(){return a._stepper.selectedIndex===a.index()}].concat(p([])));this.indicatorType=
Zh.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(p([])));this.isNavigable=Zh.apply(null,[function(){var c=a.isSelected();return a.completed||c||!a._stepper.linear}].concat(p([])));this._customError=nh.apply(null,[null].concat(p([])));var b=r(Rgd,{optional:!0});this._stepperOptions=b?b:
{};this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1};g=G4.prototype;g._getDefaultError=function(){var a;return this.interacted&&!((a=this.stepControl)==null||!a.invalid)};g.select=function(){this._stepper.selected=this};
g.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()}};g.ngOnChanges=function(){this._stepper._stateChanged()};g._markAsInteracted=function(){this._interacted()||(this._interacted.set(!0),this.interactedStream.emit(this))};
g._showError=function(){var a;return(a=this._stepperOptions.showError)!=null?a:this._customError()!=null};
nd.Object.defineProperties(G4.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)}}});G4.\u0275fac=function(a){return new (a||G4)};
G4.\u0275cmp=y({type:G4,selectors:[["cdk-step"]],contentQueries:function(a,b,c){a&1&&(ih(c,E4,5),ih(c,cy,5));if(a&2){var d;lh(d=mh())&&(b.stepLabel=d.first);lh(d=mh())&&(b._childForms=d)}},viewQuery:function(a,b){a&1&&hh(eh,7);if(a&2){var c;lh(c=mh())&&(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",$h],optional:[2,
"optional","optional",$h],completed:[2,"completed","completed",$h],hasError:[2,"hasError","hasError",$h]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[ov],ngContentSelectors:["*"],decls:1,vars:0,template:function(a){a&1&&(ch(),dma(0,ULb,1,0,"ng-template"))},encapsulation:2,changeDetection:0});
var F4=function(){this._dir=r(Gi,{optional:!0});this._changeDetectorRef=r(Hv);this._elementRef=r(Te);this._destroyed=new tg;this.steps=new gh;this._sortedHeaders=new gh;this.linear=!1;this._selectedIndex=nh.apply(null,[0].concat(p([])));this.selectionChange=new nq;this.selectedIndexChange=new nq;this._groupId=r(Fi).getId("cdk-stepper-");this._orientation="horizontal"};g=F4.prototype;
g.ngAfterContentInit=function(){var a=this;this._steps.changes.pipe(wg(this._steps),yg(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)});kh(a.steps)})};
g.ngAfterViewInit=function(){var a=this;this._stepHeader.changes.pipe(wg(this._stepHeader),yg(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}));kh(a._sortedHeaders)});this._keyManager=Jw(Lw(Iw(new Ow(this._sortedHeaders))),this._orientation==="vertical");Mw(this._keyManager,this.selectedIndex);(this._dir?this._dir.change:Nf()).pipe(wg(this._layoutDirection()),
yg(this._destroyed)).subscribe(function(d){var e;return(e=a._keyManager)==null?void 0:Kw(e,d)});Mw(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()}};
g.ngOnDestroy=function(){var a;(a=this._keyManager)==null||a.destroy();this.steps.destroy();this._sortedHeaders.destroy();this._destroyed.next();this._destroyed.complete()};g.next=function(){this.selectedIndex=Math.min(this._selectedIndex()+1,this.steps.length-1)};g.previous=function(){this.selectedIndex=Math.max(this._selectedIndex()-1,0)};g.reset=function(){this._updateSelectedItemIndex(0);this.steps.forEach(function(a){return a.reset()});this._stateChanged()};
g._getStepLabelId=function(a){return this._groupId+"-label-"+a};g._getStepContentId=function(a){return this._groupId+"-content-"+a};g._stateChanged=function(){this._changeDetectorRef.markForCheck()};g._getAnimationDirection=function(a){a-=this._selectedIndex();return a<0?this._layoutDirection()==="rtl"?"next":"previous":a>0?this._layoutDirection()==="rtl"?"previous":"next":"current"};g._getFocusIndex=function(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex()};
g._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):Mw(this._keyManager,a));this._selectedIndex.set(a);this.selectedIndexChange.emit(a);this._stateChanged()};
g._onKeydown=function(a){var b=ki(a),c=a.keyCode,d=this._keyManager;(d==null?void 0:d.activeItemIndex)==null||b||c!==32&&c!==13?d==null||djc(d,"keyboard").onKeydown(a):(this.selectedIndex=d.activeItemIndex,a.preventDefault())};g._anyControlsInvalidOrPending=function(a){return this.linear&&a>=0?this.steps.toArray().slice(0,a).some(function(b){var c=b.stepControl;return(c?c.invalid||c.pending||!b.interacted:!b.completed)&&!b.optional&&!b._completedOverride()}):!1};
g._layoutDirection=function(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"};g._containsFocus=function(){var a=this._elementRef.nativeElement,b=mi();return a===b||a.contains(b)};g._isValidIndex=function(a){return a>-1&&(!this.steps||a<this.steps.length)};
nd.Object.defineProperties(F4.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&&Jw(this._keyManager,a==="vertical")}}});F4.\u0275fac=function(a){return new (a||F4)};
F4.\u0275dir=vf({type:F4,selectors:[["","cdkStepper",""]],contentQueries:function(a,b,c){a&1&&(ih(c,G4,5),ih(c,D4,5));if(a&2){var d;lh(d=mh())&&(b._steps=d);lh(d=mh())&&(b._stepHeader=d)}},inputs:{linear:[2,"linear","linear",$h],selectedIndex:[2,"selectedIndex","selectedIndex",ai],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]});var H4=function(){this._stepper=r(F4);this.type="submit"};H4.\u0275fac=function(a){return new (a||H4)};H4.\u0275dir=vf({type:H4,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(a,b){a&1&&N("click",function(){return b._stepper.next()});a&2&&Rg("type",b.type)},inputs:{type:"type"}});var I4=function(){this._stepper=r(F4);this.type="button"};I4.\u0275fac=function(a){return new (a||I4)};
I4.\u0275dir=vf({type:I4,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(a,b){a&1&&N("click",function(){return b._stepper.previous()});a&2&&Rg("type",b.type)},inputs:{type:"type"}});var J4=function(){};J4.\u0275fac=function(a){return new (a||J4)};J4.\u0275mod=uf({type:J4});J4.\u0275inj=Dd({imports:[Qw]});var K4=function(){H4.apply(this,arguments)};Y(K4,H4);K4.\u0275fac=function(){var a;return function(b){return(a||(a=Re(K4)))(b||K4)}}();K4.\u0275dir=vf({type:K4,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(a,b){a&2&&Rg("type",b.type)},features:[Bg]});var L4=function(){I4.apply(this,arguments)};Y(L4,I4);L4.\u0275fac=function(){var a;return function(b){return(a||(a=Re(L4)))(b||L4)}}();
L4.\u0275dir=vf({type:L4,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(a,b){a&2&&Rg("type",b.type)},features:[Bg]});var M4=function(){this.templateRef=r(eh)};M4.\u0275fac=function(a){return new (a||M4)};M4.\u0275dir=vf({type:M4,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}});var Sgd=function(){this._template=r(eh)};Sgd.\u0275fac=function(a){return new (a||Sgd)};Sgd.\u0275dir=vf({type:Sgd,selectors:[["ng-template","matStepContent",""]]});var N4=function(){E4.apply(this,arguments)};Y(N4,E4);N4.\u0275fac=function(){var a;return function(b){return(a||(a=Re(N4)))(b||N4)}}();N4.\u0275dir=vf({type:N4,selectors:[["","matStepLabel",""]],features:[Bg]});var O4=function(){this.changes=new tg;this.optionalLabel="Optional";this.completedLabel="Completed";this.editableLabel="Editable"};O4.\u0275fac=function(a){return new (a||O4)};O4.\u0275prov=Cd({token:O4,factory:O4.\u0275fac,providedIn:"root"});var Tgd={provide:O4,deps:[[new qv,new rv,O4]],useFactory:function(a){return a||new O4}};var VLb=function(a,b,c){return{index:a,active:b,optional:c}},P4=function(){this._elementRef=r(Te);this._intl=r(O4);this._focusMonitor=r(jw);var a=r(Di);a.load(wx);a.load(nw);var b=r(Hv);this._intlSubscription=this._intl.changes.subscribe(function(){return b.markForCheck()})};Y(P4,D4);P4.\u0275dir=D4.\u0275dir;g=P4.prototype;g.ngAfterViewInit=function(){this._focusMonitor.monitor(this._elementRef,!0)};g.ngOnDestroy=function(){this._intlSubscription.unsubscribe();this._focusMonitor.stopMonitoring(this._elementRef)};
g.focus=function(a,b){a?kw(this._focusMonitor,this._elementRef,a,b):this._elementRef.nativeElement.focus(b)};g._stringLabel=function(){return this.label instanceof N4?null:this.label};g._templateLabel=function(){return this.label instanceof N4?this.label:null};g._getHostElement=function(){return this._elementRef.nativeElement};g._getDefaultTextForState=function(a){return a=="number"?""+(this.index+1):a=="edit"?"create":a=="error"?"warning":a};
g._hasEmptyLabel=function(){return!this._stringLabel()&&!this._templateLabel()&&!this._hasOptionalLabel()&&!this._hasErrorLabel()};g._hasOptionalLabel=function(){return this.optional&&this.state!=="error"};g._hasErrorLabel=function(){return this.state==="error"};P4.\u0275fac=function(a){return new (a||P4)};
P4.\u0275cmp=y({type:P4,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:4,hostBindings:function(a,b){a&2&&(vh("mat-"+(b.color||"primary")),uh("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:[Bg],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),J(1,"div")(2,"div",1),F(3,WLb,1,6,"ng-container",2)(4,aMb,2,1),K()(),J(5,"div",3),F(6,bMb,2,1,"div",4)(7,cMb,2,1,"div",4),F(8,dMb,2,1,"div",5),
F(9,eMb,2,1,"div",6),K());if(a&2){var c;I("matRippleTrigger",b._getHostElement())("matRippleDisabled",b.disableRipple);x();vh(Dh("mat-step-icon-state-",b.state," mat-step-icon"));uh("mat-step-icon-selected",b.selected);x(2);G(b.iconOverrides&&b.iconOverrides[b.state]?3:4);x(2);uh("mat-step-label-active",b.active)("mat-step-label-selected",b.selected)("mat-step-label-error",b.state=="error");x();G((c=b._templateLabel())?6:b._stringLabel()?7:-1,c);x(2);G(b._hasOptionalLabel()?8:-1);x();G(b._hasErrorLabel()?
9:-1)}},dependencies:[zx,Sv,FC],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 Ugd=["*"],Vgd=["animatedContainer"],jMb=function(a){return{step:a}},Q4=function(){G4.apply(this,arguments);this._errorStateMatcher=r(vx,{skipSelf:!0});this._viewContainerRef=r(fh);this._isSelected=yf.EMPTY;this.stepLabel=void 0};Y(Q4,G4);
Q4.prototype.ngAfterContentInit=function(){var a=this;this._isSelected=this._stepper.steps.changes.pipe(xg(function(){return a._stepper.selectionChange.pipe(C(function(b){return b.selectedStep===a}),wg(a._stepper.selected===a))})).subscribe(function(b){b&&a._lazyContent&&!a._portal&&(a._portal=new gx(a._lazyContent._template,a._viewContainerRef))})};Q4.prototype.ngOnDestroy=function(){this._isSelected.unsubscribe()};
Q4.prototype.isErrorState=function(a,b){var c=!!(a&&a.invalid&&this.interacted);return this._errorStateMatcher.isErrorState(a,b)||c};Q4.\u0275fac=function(){var a;return function(b){return(a||(a=Re(Q4)))(b||Q4)}}();
Q4.\u0275cmp=y({type:Q4,selectors:[["mat-step"]],contentQueries:function(a,b,c){a&1&&(ih(c,N4,5),ih(c,Sgd,5));if(a&2){var d;lh(d=mh())&&(b.stepLabel=d.first);lh(d=mh())&&(b._lazyContent=d.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[Fh([{provide:vx,useExisting:Q4},{provide:G4,useExisting:Q4}]),Bg],ngContentSelectors:Ugd,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(a){a&1&&(ch(),D(0,gMb,2,1,"ng-template"))},dependencies:[jx],encapsulation:2,
changeDetection:0});
var R4=function(){F4.call(this);var a=this;this._ngZone=r(Ph);this._renderer=r(Ji);this._animationsDisabled=Ri();this._isAnimating=nh.apply(null,[!1].concat(p([])));this._steps=this._stepHeader=void 0;this.steps=new gh;this.animationDone=new nq;this.labelPosition="end";this.headerPosition="top";this._iconOverrides={};this._animationDuration="";this._isServer=!r(zi).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=r(Te).nativeElement.nodeName.toLowerCase()==="mat-vertical-stepper"?"vertical":"horizontal"};Y(R4,F4);R4.\u0275dir=F4.\u0275dir;g=R4.prototype;
g.ngAfterContentInit=function(){var a=this;F4.prototype.ngAfterContentInit.call(this);this._icons.forEach(function(b){return a._iconOverrides[b.name]=b.templateRef});this.steps.changes.pipe(yg(this._destroyed)).subscribe(function(){return a._stateChanged()});this.selectedIndexChange.pipe(yg(this._destroyed)).subscribe(function(){var b=a._getAnimationDuration();b==="0ms"||b==="0s"?a._onAnimationDone():a._isAnimating.set(!0)});this._ngZone.runOutsideAngular(function(){a._animationsDisabled||setTimeout(function(){a._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled");
a._cleanupTransition=a._renderer.listen(a._elementRef.nativeElement,"transitionend",a._handleTransitionend)},200)})};g.ngAfterViewInit=function(){var a=this;F4.prototype.ngAfterViewInit.call(this);if(typeof queueMicrotask==="function"){var b=!1;this._animatedContainers.changes.pipe(wg(null),yg(this._destroyed)).subscribe(function(){return queueMicrotask(function(){b||(b=!0,a.animationDone.emit());a._stateChanged()})})}};
g.ngOnDestroy=function(){F4.prototype.ngOnDestroy.call(this);var a;(a=this._cleanupTransition)==null||a.call(this)};g._getAnimationDuration=function(){return this._animationsDisabled?"0ms":this.animationDuration?this.animationDuration:this.orientation==="horizontal"?"500ms":"225ms"};g._onAnimationDone=function(){this._isAnimating.set(!1);this.animationDone.emit()};
nd.Object.defineProperties(R4.prototype,{animationDuration:{configurable:!0,enumerable:!0,get:function(){return this._animationDuration},set:function(a){this._animationDuration=/^\d+$/.test(a)?a+"ms":a}}});R4.\u0275fac=function(a){return new (a||R4)};
R4.\u0275cmp=y({type:R4,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(a,b,c){a&1&&(ih(c,Q4,5),ih(c,M4,5));if(a&2){var d;lh(d=mh())&&(b._steps=d);lh(d=mh())&&(b._icons=d)}},viewQuery:function(a,b){a&1&&(hh(P4,5),hh(Vgd,5));if(a&2){var c;lh(c=mh())&&(b._stepHeader=c);lh(c=mh())&&(b._animatedContainers=c)}},hostAttrs:["role","tablist"],hostVars:15,hostBindings:function(a,b){a&2&&(Lg("aria-orientation",b.orientation),th("--mat-stepper-animation-duration",
b._getAnimationDuration()),uh("mat-stepper-horizontal",b.orientation==="horizontal")("mat-stepper-vertical",b.orientation==="vertical")("mat-stepper-label-position-end",b.orientation==="horizontal"&&b.labelPosition=="end")("mat-stepper-label-position-bottom",b.orientation==="horizontal"&&b.labelPosition=="bottom")("mat-stepper-header-position-bottom",b.headerPosition==="bottom")("mat-stepper-animating",b._isAnimating()))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",
headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[Fh([{provide:F4,useExisting:R4}]),Bg],ngContentSelectors:Ugd,decls:5,vars:2,consts:[["stepTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id",
"class"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(a,b){a&1&&(ch(),F(0,
hMb,1,0),F(1,mMb,7,0,"div",2)(2,oMb,2,0),D(3,pMb,1,23,"ng-template",null,0,Lh));if(a&2){var c;G(b._isServer?0:-1);x();G((c=b.orientation)==="horizontal"?1:c==="vertical"?2:-1)}},dependencies:[Sv,P4],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;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 Wgd=["summary"],Xgd=["reproSteps"],Ygd=["description"],Zgd=function(a){return{nonEmptyValidator:a}},$gd=function(a,b){return{reproStepsValidator:a,nonEmptyValidator:b}},tMb=function(){return{noWizard:"true"}},ahd=[Dj("security@chromium.org")],S4=function(){this.activeSession=r(Bs);this.analytics=r(RE);this.butterBar=r(GJ);this.currentUser=r(qZ);this.componentIds=r(Lgd);this.customFieldIds=r(Mgd);this.hotlistIds=r(Ngd);this.issueApi=r(SD);this.paths=r(oN);this.redirectUrl=r(o2);this.userAccess=
r(AD);this.Persona=Igd;this.PlatformOs=Fgd;var a=FLb(),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},rMb=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:pb(b)}};g=S4.prototype;
g.nonEmptyValidator=function(a){return(a==null?void 0:a.trim().length)===0?!1:!0};g.reproStepsValidator=function(a){return a==="1. \n2. \n3. "?!1:!0};g.isCaptchaValid=function(){return!this.enableRecaptcha||this.recaptchaResponse!==""};g.enableSubmit=function(){this.isSubmitEnabled=!0};g.uploadFile=function(a){a=this.attachmentUploader.upload(a);this.addUpload(a)};g.addUpload=function(a){this.uploads.push(a)};g.removeUpload=function(a){Fa(this.uploads,a)};
g.getAttachments=function(){for(var a=[],b=l(this.uploads),c=b.next();!c.done;c=b.next())c=c.value,c.state===2&&c.blobRef&&a.push(hj(c.blobRef));return a};
g.submit=function(){var a=this,b,c,d,e,f;return z(function(h){switch(h.nextAddress){case 1:var k="BUG",q=null,v=null,A="P2",E="S2",H=[a.hotlistIds.unconfirmed];a.model.regression==="Yes"&&H.push(a.hotlistIds.chromiumRegression);var L,O,S,aa=(S=(L=a.model.category)==null?void 0:(O=L.ccEmails)==null?void 0:O.map(Dj).filter(Qj))!=null?S:[],ka;((ka=a.model.category)==null?void 0:ka.value)==="SECURITY"&&(k="VULNERABILITY",A="P4",E="S4",q="LIMIT_VIEW",v=ahd);var na;L=((na=a.model.category)==null?void 0:
na.componentId)||a.componentIds.default;na=a.model.summary;O=DMb(a.model,a.customFieldIds);S=a.model;ka=S.chromeFeedback;var za="0";ka==="DESKTOP"?za="237":ka==="ANDROID"?za="282":ka==="IOS"&&(za="5031434");ka=za==="0"?"":"Has Chrome Feedback with description matching the bug title: https://listnr.corp.google.com/product/"+(za+"/reports?searchText="+encodeURIComponent(S.summary)+"&filter=0&dateRange=30");var Na;za="\n# Steps to reproduce the problem\n"+S.reproSteps+"\n\n# Problem Description\n"+S.description+
"\n\n"+(S.comments.length>0?"\n# Additional Comments\n"+S.comments:"")+"\n\n# Summary\n"+S.summary+"\n\n"+FMb(S.customQuestionResponses)+"\n\n# Additional Data\nCategory: "+((Na=S.category)==null?void 0:Na.title)+" \\\nChrome Channel: "+S.channel+" \\\nRegression: "+S.regression+" \\\n"+ka;za=za.replace(/^\n/,"");b={componentId:L,type:k,status:"NEW",priority:A,severity:E,title:na,customField:O,comment:za.replace(/\n{3,}/g,"\n\n"),formattingMode:"MARKDOWN",inProd:!0,isArchived:!1,reporterUser:a.currentUser.user,
issueAccessLimitLevel:q,collaboratorsUsers:v,staffing:null,ccUsers:[a.currentUser.user].concat(p(aa)),hotlistId:H,assigneeUser:null,verifierUser:null,duplicateOfIssueId:null,blockedByIssueId:null,blockingIssueId:null,changelist:null,gerritChanges:null,postmortems:null,foundInVersion:null,targetedToVersion:null,verifiedInVersion:null,retention:null,isDeleted:null,deletionReason:null,duplicateIssueId:null,sloStartTime:null,sloEndTime:null,sloSnoozeType:null};Kq(a.butterBar,"Saving...",0);Gf(h,2);return B(h,
a.issueApi.createIssueWithWizard({snapshot:b,attachments:a.getAttachments(),recaptchaToken:a.enableRecaptcha?a.recaptchaResponse:void 0}),4);case 4:c=h.yieldResult;d=c.issueId;if(!d)throw Error("nf");a.butterBar.dismiss();a.analytics.trackEvent("createIssue","fileAndRedirect","wizard",!0);return B(h,BD(a.userAccess,"reader","issues/"+d),5);case 5:(e=h.yieldResult)?med(a.redirectUrl,Fq(d),String(d)):(Kq(a.butterBar,"New issue created: "+d+" (view access not granted)",0),med(a.redirectUrl,a.paths.listIssues()));
uu(h,0);break;case 2:f=Kf(h),Kq(a.butterBar,"Failed to create issue: "+f),Lf(h)}})};S4.\u0275fac=function(a){return new (a||S4)};
S4.\u0275cmp=y({type:S4,selectors:[["chrome-wizard"]],viewQuery:function(a,b){a&1&&(hh(Wgd,5),hh(Xgd,5),hh(Ygd,5),hh(tV,5));if(a&2){var c;lh(c=mh())&&(b.summaryControl=c.first);lh(c=mh())&&(b.reproStepsControl=c.first);lh(c=mh())&&(b.descriptionControl=c.first);lh(c=mh())&&(b.attachmentUploader=c.first)}},inputs:{fullScreen:"fullScreen"},standalone:!1,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();J(0,"mat-stepper",3)(1,"mat-step",4)(2,"h2");R(3,"Report an issue with Chromium");K();J(4,"h3");R(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. ");K();M(6,"br");J(7,"h4",5);R(8,"Please select your following role:");K();J(9,"wizard-persona-picker",6);N("personaChange",function(f){u(c);b.model.category=void 0;b.model.persona=
f;return w()});K();F(10,sMb,20,6)(11,uMb,10,2,"div");K();J(12,"mat-step",7)(13,"h2");R(14);K();J(15,"h3");R(16,"Please confirm that the following version information is correct.");K();J(17,"h4",8);R(18,"Operating System:");K();J(19,"mat-form-field",9)(20,"mat-select",10);Ah("ngModelChange",function(f){u(c);zh(b.model.os,f)||(b.model.os=f);return w(f)});J(21,"mat-option",11);R(22,"Android");K();J(23,"mat-option",11);R(24,"Chrome OS");K();J(25,"mat-option",11);R(26,"iOS");K();J(27,"mat-option",11);
R(28,"Linux");K();J(29,"mat-option",11);R(30,"Mac OS");K();J(31,"mat-option",11);R(32,"Windows");K();J(33,"mat-option",11);R(34,"Unknown/Other");K()()();J(35,"h4",12);R(36,"Channel:");K();J(37,"mat-form-field",13)(38,"mat-select",14);Ah("ngModelChange",function(f){u(c);zh(b.model.channel,f)||(b.model.channel=f);return w(f)});J(39,"mat-option",15);R(40,"Not sure");K();J(41,"mat-option",16);R(42,"Stable");K();J(43,"mat-option",17);R(44,"Beta");K();J(45,"mat-option",18);R(46,"Dev");K();J(47,"mat-option",
19);R(48,"Canary");K()()();M(49,"br");J(50,"h4",8);R(51,"Chrome version:");K();J(52,"mat-form-field",20)(53,"input",21);Ah("ngModelChange",function(f){u(c);zh(b.model.version,f)||(b.model.version=f);return w(f)});K()();J(54,"h4",5);R(55,"Please enter a one line summary (100 character limit)");K();J(56,"mat-form-field",22)(57,"textarea",23,0);Ah("ngModelChange",function(f){u(c);zh(b.model.summary,f)||(b.model.summary=f);return w(f)});R(59,"      ");K();F(60,vMb,2,0,"mat-error");K();J(61,"h4");R(62,
" (Optional) Send a Chrome feedback report to help the investigation");K();J(63,"p");R(64," This is often necessary to reproduce an issue which isn't consistent in reproducing for all users. ");K();J(65,"ol")(66,"li");R(67," Open Chrome. Go to Help > Report an issue. ");K();J(68,"li");R(69,' The description should be the same as the "one line summary" above. ');K();J(70,"li");R(71," Send the report. ");K()();J(72,"h4");R(73," Did you send the Chrome feedback report?");K();J(74,"mat-form-field",24)(75,
"mat-select",14);Ah("ngModelChange",function(f){u(c);zh(b.model.chromeFeedback,f)||(b.model.chromeFeedback=f);return w(f)});J(76,"mat-option",25);R(77,"No - I didn't.");K();J(78,"mat-option",26);R(79,"Yes - I did on Windows, Linux or Mac OS.");K();J(80,"mat-option",27);R(81,"Yes - I did on Android.");K();J(82,"mat-option",28);R(83,"Yes - I did on iOS.");K();J(84,"mat-option",29);R(85,"Yes - I did on other platform.");K()()();J(86,"h4",5);R(87,"Steps to reproduce problem (5000 character limit)");K();
J(88,"mat-form-field",22)(89,"textarea",30,1);Ah("ngModelChange",function(f){u(c);zh(b.model.reproSteps,f)||(b.model.reproSteps=f);return w(f)});R(91,"      ");K();F(92,wMb,2,0,"mat-error");K();J(93,"h4",5);R(94,"Please describe the problem (5000 character limit)");K();J(95,"mat-form-field",22)(96,"textarea",31,2);Ah("ngModelChange",function(f){u(c);zh(b.model.description,f)||(b.model.description=f);return w(f)});R(98,"      ");K();F(99,xMb,2,0,"mat-error");K();J(100,"h4");R(101,"Did this work before?");
K();J(102,"mat-form-field",32)(103,"mat-select",14);Ah("ngModelChange",function(f){u(c);zh(b.model.regression,f)||(b.model.regression=f);return w(f)});J(104,"mat-option",33);R(105,"Not applicable or don't know");K();J(106,"mat-option",34);R(107,"Yes - This is a regression");K();J(108,"mat-option",35);R(109,"No - I think it never worked");K()()();J(110,"div",36)(111,"button",37);M(112,"mat-icon",38);R(113," Back ");K();J(114,"button",39);R(115," Next ");M(116,"mat-icon",40);K()()();J(117,"mat-step",
41)(118,"h2");R(119,"Extra information about the issue");K();F(120,yMb,1,1,"wizard-custom-questions",42);J(121,"h4");R(122,"Additional comments");K();J(123,"mat-form-field",22)(124,"textarea",43);Ah("ngModelChange",function(f){u(c);zh(b.model.comments,f)||(b.model.comments=f);return w(f)});K()();J(125,"h4");R(126,"Upload any relevant attachments");K();J(127,"b-attachment-uploader",44);N("onUploadComplete",function(){u(c);return w(b.enableSubmit())})("onUploadCancel",function(f){u(c);b.removeUpload(f);
return w(b.enableSubmit())});K();J(128,"div",45)(129,"b-attachment-selector",46);N("onSelect",function(f){u(c);b.uploadFile(f);b.isSubmitEnabled=!1;return w()});K();R(130," You can include multiple attachments. ");K();F(131,zMb,2,0,"div",47);J(132,"div",36)(133,"button",37);M(134,"mat-icon",38);R(135," Back ");K();J(136,"button",48);N("click",function(){u(c);return w(b.submit())});R(137," Submit ");K()()();D(138,AMb,0,0,"ng-template",49)(139,BMb,0,0,"ng-template",50)(140,CMb,0,0,"ng-template",51);
K()}if(a&2){a=Q(58);var d=Q(90),e=Q(97);uh("bv2-view",b.fullScreen)("hide-dots",b.model.persona===b.Persona.CONTRIBUTOR);I("disableRipple",!0);x();I("completed",rMb(b,0));x(8);I("persona",b.model.persona);x();G(b.model.persona!==b.Persona.CONTRIBUTOR?10:11);x(2);Kg("aria-label",Dh("Details for problems with ",b.model.category==null?null:b.model.category.title));I("completed",rMb(b,1));x(2);T("Details for problems with ",b.model.category==null?null:b.model.category.title);x(6);yh("ngModel",b.model.os);
x();I("value",b.PlatformOs.ANDROID);x(2);I("value",b.PlatformOs.CHROME);x(2);I("value",b.PlatformOs.IOS);x(2);I("value",b.PlatformOs.LINUX);x(2);I("value",b.PlatformOs.MAC);x(2);I("value",b.PlatformOs.WINDOWS);x(2);I("value",b.PlatformOs.UNKNOWN);x(5);yh("ngModel",b.model.channel);x(15);yh("ngModel",b.model.version);x(4);yh("ngModel",b.model.summary);I("customValidators",Hh(40,Zgd,b.nonEmptyValidator));x(3);G(a.invalid&&(a.dirty||a.touched)?60:-1);x(15);yh("ngModel",b.model.chromeFeedback);x(14);
yh("ngModel",b.model.reproSteps);I("customValidators",Ih(42,$gd,b.reproStepsValidator,b.nonEmptyValidator));x(3);G(d.invalid&&(d.dirty||d.touched)?92:-1);x(4);yh("ngModel",b.model.description);I("customValidators",Hh(45,Zgd,b.nonEmptyValidator));x(3);G(e.invalid&&(e.dirty||e.touched)?99:-1);x(4);yh("ngModel",b.model.regression);x(11);I("disabled",!rMb(b,1));x(6);G(b.model.category?120:-1);x(4);yh("ngModel",b.model.comments);x(3);I("uploads",b.uploads);x(2);I("includeTextLabel",!0);x(2);G(b.enableRecaptcha?
131:-1);x(5);I("disabled",!b.isSubmitEnabled||!b.isCaptchaValid())}},dependencies:[qV,tV,FC,b2,Ui,dy,vy,wy,ky,oG,Jx,Qgd,o0c,KT,LT,gM,hM,FM,Uy,My,Dy,DM,bP,jP,Bx,Q4,R4,K4,L4,M4,TR,B4,C4,Ogd],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 T4=function(){this.activeSession=r(Bs);this.routeParams=r(EK);this.router=r(vC);this.userAccess=r(AD);this.rootComponentId=this.activeSession.getEnvironmentType()==="QA"?zcc.default:Acc.default};
T4.prototype.canActivate=function(){var a=this,b,c;return z(function(d){if(d.nextAddress==1)return(c=OA(a.activeSession,"enableChromeWizard")&&((b=a.activeSession.getTracker())==null?void 0:b.trackerId)==="157"&&!a.routeParams.template&&!a.routeParams.noWizard)?B(d,BD(a.userAccess,"writer","components/"+a.rootComponentId+"/issueDefaults"),3):d.jumpTo(2);d.nextAddress!=2&&(c=!d.yieldResult);return c?d.return(wC(a.router,["issues/wizard"])):d.return(!0)})};T4.\u0275fac=function(a){return new (a||T4)};
T4.\u0275prov=Cd({token:T4,factory:T4.\u0275fac,providedIn:"root"});var U4=function(){var a=this;this.userResources=r(bD);this.history=r(jZ);this.router=r(vC);this.activeSession=r(Bs);this.viewIssues=rq;this.createIssue=LOa;this.componentSettings=MOa;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})};U4.prototype.back=function(){kZ(this.history)};U4.prototype.filterTrackerComponents=function(a){return!this.trackerId||a.trackerId===this.trackerId};U4.\u0275fac=function(a){return new (a||U4)};
U4.\u0275cmp=y({type:U4,selectors:[["components-screen-wrapper"]],standalone:!1,decls:22,vars:8,consts:[["card",""],["cardBody",""],[1,"flex-kids-y","pos-fill","bg-off-main","overflow","overflow-on-print-media"],[1,"kd-appbar","kd-buttonbar"],[1,"bv2-appbar-left"],["type","button","mat-icon-button","","matTooltip","Go back","aria-label","Go back",3,"click"],["svgIcon","arrow-backward","color","primary"],[1,"bv2-appbar-right"],["mat-button","","routerLink","/components/new",1,"gmat-button","medium"],
["label","Show archived","tooltip","Toggle whether to show 'archived' Components",1,"margin-x",3,"modelChange","model"],[1,"padded"],[3,"selectedComponentChange","includeArchived","placeholder","ariaLabel"],[1,"margin-top"],[1,"pos-rel","carded","bg-main"],[1,"muted","margin-s-top","margin-left"],["routerLink","/components/all",1,"muted","hover-link"],[1,"muted"],[1,"unstyled-list","reverse-padded-sides","recent-components"],["href","https://developers.google.com/issue-tracker/concepts/components#recent-components",
"target","_blank"],[1,"flex-kids-x","clickable-row","padded",3,"routerLinkObj"],[1,"flex-1",3,"onedevHovercardTrigger"],[1,"type-l","normal-link"],[1,"margin-s-left",3,"accessLevel","labelOnlyMode"],[1,"margin-s-left",3,"trackerId","showHovercard"],[1,"muted","line-clamp-2"],[1,"right"],["mat-button","","type","button",1,"gmat-button","medium",3,"routerLinkObj"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"]],template:function(a,b){a&1&&(J(0,"article",2)(1,"header",3)(2,
"div",4)(3,"button",5),N("click",function(){return b.back()}),M(4,"mat-icon",6),K(),J(5,"h2"),R(6,"Components"),K()(),J(7,"div",7),F(8,GMb,2,0,"a",8),J(9,"b-slide-toggle",9),N("modelChange",function(d){return b.includeArchived=d}),K()()(),J(10,"section",10)(11,"h3"),R(12,"Search"),K(),J(13,"b-team-component-picker",11),N("selectedComponentChange",function(d){d!=null&&Mr(b.router,MOa(d.componentId).path)}),K(),J(14,"h3",12),R(15,"Recent Components"),K(),J(16,"div",13),F(17,KMb,4,1),U(18,"async"),K(),
J(19,"p",14)(20,"a",15),R(21,"See all Components"),K()()()());if(a&2){var c;x(8);G(b.isInternalSession?8:-1);x();I("model",b.includeArchived);x(4);I("includeArchived",b.includeArchived)("placeholder",b.placeholder);Kg("ariaLabel",b.placeholder);x(4);G((c=V(18,6,b.recentComponents$))?17:-1,c)}},dependencies:[oG,Jx,Kx,zG,xG,FC,xC,CC,hN,VM,DI,EI,JI,FI,IG,SM,$M,Tv],encapsulation:2});var bhd=["bookmarkGroupName"],V4=function(){var a=r(UR);Z.call(this);var b=this;this.location=r(DH);this.appHistory=r(jZ);this.snackBar=r(DJ);this.bookmarkGroupsApi=r(iB);this.paths=r(oN);this.analytics=r(RE);this.errorHandler=r(aK);this.appEvents=r(FB);this.error="";this.isSaving=!1;this.bookmarkGroupUnderEdit=new hy({name:new jy("",Si),description:new jy("")});this.subscriptions.add(VR(a,function(){return!(!b.name()&&!b.description())},!1))};Y(V4,Z);V4.\u0275dir=Z.\u0275dir;g=V4.prototype;
g.ngAfterViewInit=function(){this.bookmarkGroupName.nativeElement.focus()};
g.save=function(){var a=this;this.validate()&&(this.snackBar.open("Saving bookmark group...","dismiss",{duration:0}),this.isSaving=!0,this.bookmarkGroupsApi.create({name:this.name(),description:this.description()}).then(function(b){a.isSaving=!1;a.snackBar.open('Bookmark group "'+b.name+'" saved.',"dismiss",{duration:2E3});a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:b.bookmarkGroupId});a.analytics.trackEvent("sidebarHotlists","createdBookmarkGroup");a.location.replaceUrl(a.paths.editBookmarkGroup(b.bookmarkGroupId));
a.revertChanges()}).catch(function(b){a.isSaving=!1;a.errorHandler.errorHandler(null,b)}))};g.validate=function(){if(this.name()==="")return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};g.back=function(){kZ(this.appHistory)};g.revertChanges=function(){this.bookmarkGroupUnderEdit.reset()};g.name=function(){var a,b=(a=this.bookmarkGroupUnderEdit.get("name"))==null?void 0:a.value;return b?b:""};
g.description=function(){var a,b=(a=this.bookmarkGroupUnderEdit.get("description"))==null?void 0:a.value;return b?b:""};V4.\u0275fac=function(a){return new (a||V4)};
V4.\u0275cmp=y({type:V4,selectors:[["b-create-bookmark-group"]],viewQuery:function(a,b){a&1&&hh(bhd,5);if(a&2){var c;lh(c=mh())&&(b.bookmarkGroupName=c.first)}},standalone:!1,features:[Bg],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();J(0,"div",1)(1,"div",2)(2,"button",3);N("click",function(){u(c);return w(b.back())});M(3,"mat-icon",4);K();J(4,"h2");R(5,"Create a new bookmark group");K()()();J(6,"div",5)(7,"div",6)(8,"form",7);M(9,"b-error-banner",8);J(10,"div",9)(11,"label",10);R(12,"Name");K();M(13,"input",11,0);K();J(15,"div",9)(16,"label",12);R(17,"Description");K();J(18,"textarea",13);R(19,"        ");K()();J(20,"p",14);R(21," Advanced settings such as selected items and access controls may be defined once the bookmark group is created. ");
K();J(22,"div",15)(23,"button",16);N("click",function(){u(c);return w(b.save())});R(24," Save ");K();J(25,"button",17);N("click",function(){u(c);return w(b.revertChanges())});R(26," Revert changes ");K()()()()()}a&2&&(x(8),I("formGroup",b.bookmarkGroupUnderEdit),x(),I("error",b.error),x(),uh("bv2-edit-resource-readonly",b.isSaving),x(3),I("disabled",b.isSaving),x(2),uh("bv2-edit-resource-readonly",b.isSaving),x(3),I("disabled",b.isSaving),x(5),I("disabled",b.isSaving))},dependencies:[FC,oG,Jx,Kx,
zG,xG,ly,Ui,dy,ey,vy,qy,ry,V0],encapsulation:2});var chd=["form"],W4=function(){Z.call(this);this.butterBar=r(GJ);this.paths=r(oN);this.routeParams=r(EK);this.analytics=r(RE);this.appHistory=r(jZ);this.bLocation=r(DH);this.activeSession=r(Bs);this.documentationLinks=r(JJ);this.componentActions=r(WM);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))};Y(W4,Z);W4.\u0275dir=Z.\u0275dir;g=W4.prototype;g.ngAfterViewInit=function(){};
g.create=function(){var a=this;this.validate()&&(Kq(this.butterBar,"Saving component...",0),this.isSaving=!0,this.component.parentComponentId=this.parentComponent.componentId,this.componentActions.create(this.component).then(function(b){Kq(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(Dq.editComponent.makeHref(b.componentId))},a.activeSession.getCreateComponentRedirectDelay())}).catch(function(b){a.butterBar.showWarning(Ro(b),0);a.isSaving=!1}))};g.back=function(){kZ(this.appHistory)};
g.validate=function(){if(this.createComponentForm.form.invalid)return this.error="Error: You must fill out all required fields.",!1;if(this.componentIsValid){if(this.retentionIsValid)return this.error="",!0;this.error="Error: Required retention settings are missing or invalid."}return!1};g.loadParentComponent=function(a){var b=this;this.componentActions.getUncached(a).then(function(c){b.parentComponent=c})};
g.setCommentEditState=function(a){this.commentEditsEnabled=a;this.component.commentEditState=this.commentEditsEnabled?"ENABLED":"DISABLED"};g.onComponentSelect=function(a){this.parentComponent=a;dhd(this)};g.accessCheckComplete=function(a){this.componentIsValid=a;dhd(this)};
var dhd=function(a){a.parentComponent?(a.component.commentEditState=a.parentComponent.commentEditState,a.commentEditsEnabled=a.component.commentEditState==="ENABLED"):(a.component.commentEditState="DISABLED",a.commentEditsEnabled=!1)};nd.Object.defineProperties(W4.prototype,{parentComponent:{configurable:!0,enumerable:!0,get:function(){return this.parentComponentInternal},set:function(a){this.parentComponentInternal=a;dhd(this)}}});W4.\u0275fac=function(a){return new (a||W4)};
W4.\u0275cmp=y({type:W4,selectors:[["create-component-page"]],viewQuery:function(a,b){a&1&&hh(chd,5);if(a&2){var c;lh(c=mh())&&(b.createComponentForm=c.first)}},standalone:!1,features:[Bg],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();J(0,"div",1)(1,"div",2)(2,"b-button",3);N("onAction",function(){u(c);return w(b.back())});M(3,"b-icon",4);K()()();J(4,"div",5)(5,"h2",6);R(6,"Create component");K();J(7,"div",7)(8,"form",8,0);M(10,"b-error-banner",
9);J(11,"div",10)(12,"label",11)(13,"span",12);R(14,"Name");K()();J(15,"input",13);Ah("ngModelChange",function(d){u(c);zh(b.component.name,d)||(b.component.name=d);return w(d)});K()();J(16,"div",10)(17,"label",14)(18,"span",12);R(19,"Description");K()();J(20,"textarea",15);Ah("ngModelChange",function(d){u(c);zh(b.component.description,d)||(b.component.description=d);return w(d)});R(21,"        ");K()();J(22,"div",10)(23,"label",16)(24,"span",12);R(25,"Parent Component");K()();J(26,"b-team-component-picker",
17);N("selectedComponentChange",function(d){u(c);return w(b.onComponentSelect(d!=null?d:null))})("accessCheckComplete",function(d){u(c);return w(b.accessCheckComplete(d))});K()();J(27,"div",18)(28,"div",19)(29,"mat-checkbox",20);N("change",function(d){u(c);return w(b.setCommentEditState(d.checked))});K()();J(30,"div")(31,"strong",21);R(32,"Editable Comments");K();J(33,"div",22);R(34," When checked, users with comment access can modify their own issue comments, and editors can modify the first issue comment. ");
F(35,MMb,2,1,"a",23);K()()();J(36,"div",10)(37,"label",24)(38,"span",12);R(39,"Retention Settings");K()();J(40,"div",21)(41,"p");R(42,"Please choose a period of time to retain the data stored in this component.");M(43,"br");J(44,"a",23);R(45," Learn more ");K()()();J(46,"div",25)(47,"b-retention-settings-form",26);N("modelChange",function(d){u(c);return w(b.component.retentionSettings=d)})("validChange",function(d){u(c);return w(b.retentionIsValid=d)});K()()();J(48,"p",27);R(49," Advanced settings such as custom field and access controls may be defined once the component is created. ");
K();J(50,"div",28)(51,"b-button",29);N("onAction",function(){u(c);return w(b.create())});R(52," Save ");K();J(53,"b-button",30);N("onAction",function(){u(c);return w(b.back())});R(54," Discard ");K()()()()()}a&2&&(x(8),uh("show-errors",b.error),x(2),I("error",b.error),x(),uh("bv2-edit-resource-readonly",b.isSaving),x(4),I("bFocus",!0),yh("ngModel",b.component.name),I("disabled",b.isSaving)("required",!0),x(),uh("bv2-edit-resource-readonly",b.isSaving),x(4),yh("ngModel",b.component.description),I("disabled",
b.isSaving),x(2),uh("bv2-edit-resource-readonly",b.isSaving),x(4),I("selectedComponent",b.parentComponent)("placeholder","Choose Component")("isRequired",!0)("checkAdminAccess",!0),x(),uh("bv2-edit-resource-readonly",b.isSaving),x(2),I("checked",b.commentEditsEnabled),x(6),G(b.sessionIsExternal?-1:35),x(9),I("href",ys(),hf),x(2),uh("bv2-edit-resource-readonly",b.isSaving),x(),I("issueRetentionDisabled",b.isSaving)("isExternal",tr(b.parentComponent))("componentPathInfo",b.parentComponent==null?null:
b.parentComponent.componentPathInfo)("initialModel",b.component.retentionSettings),x(4),I("disabled",b.isSaving||!b.componentIsValid),x(2),I("disabled",b.isSaving))},dependencies:[AG,V0,gO,ly,Ui,dy,ey,vy,ky,iy,eL,gM,hM,U1,hN],styles:["b-team-component-picker[_ngcontent-%COMP%]{display:block;width:600px}\n/*# sourceMappingURL=create_component_page.css.map */"]});var ehd=["hotlistName"],X4=function(){var a=r(UR);Z.call(this);var b=this;this.location=r(DH);this.appHistory=r(jZ);this.snackBar=r(DJ);this.hotlistApi=r(YC);this.analytics=r(RE);this.errorHandler=r(aK);this.appEvents=r(FB);this.error="";this.isSaving=!1;this.hotlistUnderEdit=new hy({name:new jy("",Si),description:new jy("")});this.subscriptions.add(VR(a,function(){return!(!b.name()&&!b.description())},!1))};Y(X4,Z);X4.\u0275dir=Z.\u0275dir;g=X4.prototype;g.ngAfterViewInit=function(){this.hotlistName.nativeElement.focus()};
g.save=function(){var a=this;this.validate()&&(this.snackBar.open("Saving hotlist...","dismiss",{duration:0}),this.isSaving=!0,this.hotlistApi.createHotlist(this.name(),this.description()).then(function(b){a.isSaving=!1;a.snackBar.open('Hotlist "'+b.name+'" saved.',"dismiss",{duration:6E3});a.appEvents.hotlistChanged.next({hotlistId:b.hotlistId});a.analytics.trackEvent("hotlist","create");a.location.replaceUrl(Dq.editHotlist.makeHref(b.hotlistId));a.revertChanges()}).catch(function(b){a.isSaving=
!1;a.errorHandler.errorHandler(null,b)}))};g.validate=function(){if(this.name()==="")return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};g.back=function(){kZ(this.appHistory)};g.revertChanges=function(){this.hotlistUnderEdit.reset()};g.name=function(){var a,b=(a=this.hotlistUnderEdit.get("name"))==null?void 0:a.value;return b?b:""};g.description=function(){var a,b=(a=this.hotlistUnderEdit.get("description"))==null?void 0:a.value;return b?b:""};
X4.\u0275fac=function(a){return new (a||X4)};
X4.\u0275cmp=y({type:X4,selectors:[["b-create-hotlist"]],viewQuery:function(a,b){a&1&&hh(ehd,5);if(a&2){var c;lh(c=mh())&&(b.hotlistName=c.first)}},standalone:!1,features:[Bg],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();J(0,"div",
1)(1,"div",2)(2,"button",3);N("click",function(){u(c);return w(b.back())});M(3,"mat-icon",4);K();J(4,"h2");R(5,"Create a new hotlist");K()()();J(6,"div",5)(7,"div",6)(8,"form",7);M(9,"b-error-banner",8);J(10,"div",9)(11,"label",10);R(12,"Name");K();M(13,"input",11,0);K();J(15,"div",9)(16,"label",12);R(17,"Description");K();J(18,"textarea",13);R(19,"        ");K()();J(20,"p",14);R(21," Advanced settings such as access controls may be defined once the hotlist is created. ");K();J(22,"div",15)(23,"button",
16);N("click",function(){u(c);return w(b.save())});R(24," Save ");K();J(25,"button",17);N("click",function(){u(c);return w(b.revertChanges())});R(26," Revert changes ");K()()()()()}a&2&&(x(8),I("formGroup",b.hotlistUnderEdit),x(),I("error",b.error),x(),uh("bv2-edit-resource-readonly",b.isSaving),x(3),I("disabled",b.isSaving),x(2),uh("bv2-edit-resource-readonly",b.isSaving),x(3),I("disabled",b.isSaving),x(5),I("disabled",b.isSaving))},dependencies:[FC,oG,Jx,Kx,zG,xG,ly,Ui,dy,ey,vy,qy,ry,V0],encapsulation:2});var Y4=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Y4.messageId)};Y(Y4,n);Y4.prototype.getContent=function(){return Rc(this,1,void 0,Nc)};Y4.prototype.setContent=function(a){return Qk(this,1,a,Nc)};Y4.prototype.hasContent=function(){return mk(this,1,Nc)};Y4.messageId="b.LlmGenericRequest";var fhd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,fhd.messageId)};Y(fhd,n);fhd.messageId="b.LlmGenericResponse";var Z4=function(){this.executor=r(QA)};Z4.prototype.suggestIssueTitle=function(a){a=(new Y4).setContent(a);return this.executor.post({url:"/action/llm/suggest_title",body:a,responseConstructor:fhd}).then(function(b){var c;return(c=Rc(b,1,void 0,Nc))!=null?c:""})};Z4.\u0275fac=function(a){return new (a||Z4)};Z4.\u0275prov=Cd({token:Z4,factory:Z4.\u0275fac,providedIn:"root"});var a5=function(){this.isGeneratingTitle=new Kn(!1);this.generatedTitle=new Kn(null);this.suggestTitleRequested=new tg};a5.\u0275fac=function(a){return new (a||a5)};a5.\u0275prov=Cd({token:a5,factory:a5.\u0275fac,providedIn:"root"});var b5=function(){Z.call(this);var a=this;this.activeSession=r(Bs);this.butterBar=r(GJ);this.analytics=r(RE);this.llmSuggestTitleService=r(a5);this.llmApi=r(Z4);this.suggestedTitle=new LE;this.enableSuggestTitle=OA(this.activeSession,"enableSuggestTitle")||!1;xv(this.llmSuggestTitleService.suggestTitleRequested).pipe(yg(this.destroyed$)).subscribe(function(){a.suggestIssueTitle()})};Y(b5,Z);b5.\u0275dir=Z.\u0275dir;
b5.prototype.suggestIssueTitle=function(){var a=this,b;return z(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 B(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);Kq(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);Lf(c)})};b5.\u0275fac=function(a){return new (a||b5)};
b5.\u0275cmp=y({type:b5,selectors:[["llm-suggest-title-button"]],inputs:{description:"description"},outputs:{suggestedTitle:"suggestedTitle"},standalone:!1,features:[Bg],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&&(J(0,"button",0),N("click",function(){return b.suggestIssueTitle()}),M(1,"mat-icon",1),R(2," Suggest title\n"),K());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:[FC,oG,Jx,zG,xG],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 ghd=[[["","mainSegment",""]],[["","dropdownSegment",""]]],c5=function(){this.mainSegment=!0};c5.\u0275fac=function(a){return new (a||c5)};c5.\u0275dir=vf({type:c5,selectors:[["button","mainSegment",""]],hostVars:2,hostBindings:function(a,b){a&2&&uh("main-segment",b.mainSegment)},standalone:!1});var d5=function(){this.dropdownAriaLabel=this.dropdownTooltip="";this.disabled=!1;this.size="large";this.dialogClosed=new LE;this.dialogOpened=new LE};d5.prototype.ngAfterContentInit=function(){};
d5.prototype.ngOnChanges=function(a){a.dropdownTooltip&&!this.dropdownAriaLabel&&(this.dropdownAriaLabel=this.dropdownTooltip)};nd.Object.defineProperties(d5.prototype,{expanded:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.trigger)==null?void 0:a.isOpen)!=null?b:!1}}});d5.\u0275fac=function(a){return new (a||d5)};
d5.\u0275cmp=y({type:d5,selectors:[["split-button"]],contentQueries:function(a,b,c){a&1&&ih(c,c5,5);if(a&2){var d;lh(d=mh())&&(b.mainSegment=d.first)}},viewQuery:function(a,b){a&1&&hh($N,5);if(a&2){var c;lh(c=mh())&&(b.trigger=c.first)}},hostVars:2,hostBindings:function(a,b){a&2&&uh("expanded",b.expanded)},inputs:{dropdownTooltip:"dropdownTooltip",dropdownAriaLabel:"dropdownAriaLabel",disabled:"disabled",size:"size"},outputs:{dialogClosed:"dialogClosed",dialogOpened:"dialogOpened"},exportAs:["splitButton"],
standalone:!1,features:[ov],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();ch(ghd);dh(0);
J(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 h;(h=b.trigger)==null||h.open()}return w()})("onedevPopupPanelTriggerOpened",function(){u(c);return w(b.dialogOpened.emit())})("onedevPopupPanelTriggerClosed",function(){u(c);return w(b.dialogClosed.emit())});M(3,"mat-icon",3);K();J(4,"onedev-popup-panel",4,1)(6,"div",5);dh(7,1);K()()}a&2&&(a=Q(5),x(),vh(Dh("dropdown-button ",b.size)),I("onedevPopupPanelTriggerFor",
a)("matTooltip",b.dropdownTooltip)("disabled",b.disabled),Lg("aria-label",b.dropdownAriaLabel))},dependencies:[FC,oG,Kx,zG,xG,ZN,$N],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 hhd=new Map([["TOTALLY_INCORRECT","Totally incorrect"],["MISSING_IMPORTANT_INFO","Missing important info"],["OTHER","Other"]]),e5=function(){Z.apply(this,arguments);this.butterBar=r(GJ);this.analytics=r(RE);this.llmSuggestTitleService=r(a5);this.suggestionAccepted=new LE;this.isGeneratingTitle$=xv(this.llmSuggestTitleService.isGeneratingTitle).pipe(ug({refCount:!0,bufferSize:1}));this.suggestedTitle$=xv(this.llmSuggestTitleService.generatedTitle).pipe(ug({refCount:!0,bufferSize:1}));this.isVisible$=
Uf([xv(this.llmSuggestTitleService.isGeneratingTitle),xv(this.llmSuggestTitleService.generatedTitle)]).pipe(yg(this.destroyed$),C(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=hhd};Y(e5,Z);e5.\u0275dir=Z.\u0275dir;
var QMb=function(a){var b;return z(function(c){if(c.nextAddress==1)return B(c,Rf(xv(a.llmSuggestTitleService.generatedTitle)),2);b=c.yieldResult;if(!b)return c.return();a.analytics.trackEvent("llm","accept","title");a.suggestionAccepted.emit(b);a.llmSuggestTitleService.generatedTitle.next(null);Lf(c)})};e5.prototype.close=function(){this.llmSuggestTitleService.generatedTitle.next(null)};e5.\u0275fac=function(){var a;return function(b){return(a||(a=Re(e5)))(b||e5)}}();
e5.\u0275cmp=y({type:e5,selectors:[["llm-suggest-title-preview"]],outputs:{suggestionAccepted:"suggestionAccepted"},standalone:!1,features:[Bg],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,RMb,27,13,"div",1),U(1,"async"));a&2&&G(V(1,1,b.isVisible$)?0:-1)},dependencies:[FC,oG,Jx,Kx,zG,xG,yN,d5,c5,qG,Tv],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 f5=function(){Z.call(this);var a=this;this.similarIssuesApi=r(UN);this.analytics=r(RE);this.activeSession=r(Bs);this.hasSearched=this.isLoading=!1;this.loadedIssueCount=0;this.componentId$=new sg(1);this.contextRaw$=new sg(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(C(function(b){return b.trim()}),eg(function(b){return b.length>=7}),kg(200));this.issues$=Uf([this.componentId$,this.searchString$]).pipe(xg(function(b){var c=l(b);b=c.next().value;c=c.next().value;a.isLoading=!0;return wRc(a.similarIssuesApi,{scope:"componentId:"+b+" modified:365d status:open",scopeSortOrder:"vote_count desc",maxResults:15,keyword:c})}),hg(function(b){Xj("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 Nf({similarIssues:[],scores:[]})}),C(function(b){return VMb(b)}),zg(function(b){a.isLoading=!1;a.hasSearched=!0;a.loadedIssueCount=b.length}));this.issueIds$=this.issues$.pipe(C(function(b){return b.map(function(c){return c.issueId})}));this.subscriptions.add(this.issues$.pipe(C(function(b){return b.length})).subscribe(function(b){a.analytics.trackEvent("similarIssues",
"loaded","possible-dupes-"+b,b)}))};Y(f5,Z);f5.\u0275dir=Z.\u0275dir;
nd.Object.defineProperties(f5.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 ip(this.componentId$)}},context:{configurable:!0,enumerable:!0,set:function(a){this.contextRaw$.next(a!=null?a:"")}}});
f5.\u0275fac=function(a){return new (a||f5)};
f5.\u0275cmp=y({type:f5,selectors:[["similar-issues"]],hostVars:4,hostBindings:function(a,b){a&2&&uh("thinking-on-empty",b.isThinkingOnEmpty)("is-empty-state",b.isEmpty)},inputs:{componentId:"componentId",context:"context"},standalone:!1,features:[Bg],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&&(J(0,"div",0),M(1,"mat-icon",1),J(2,"h3",2),R(3,"Possible duplicates"),K(),F(4,SMb,2,0,"a",3),F(5,TMb,1,0,"b-spinner"),K(),F(6,UMb,1,3,"b-issues-table",4),U(7,"async"));if(a&2){var c;x(4);G(b.isInternal?4:-1);x();G(b.isLoading&&!b.isThinkingOnEmpty?5:-1);x();G((c=V(7,3,b.issueIds$))?6:-1,c)}},dependencies:[FC,yN,ZT,zG,xG,oG,Kx,Tv],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 ihd=["popOver"],XMb=function(a){return{$implicit:a}},eNb=function(a){return{editingValue:a}},g5=function(){this.injector=r(Cg);this.val="";this.allowMultipleLines=!0;this.disabled=this.centerEditIcon=this.newlineWithEnterKey=!1;this.hasBackdrop=!0;this.fitPopoverToViewport=!1;this.required=Mh.apply(null,[!1].concat(p([])));this.valueChange=new nq;this.editorOpen=new nq;this.editing=this.headerFocused=!1;this.editingValue=new jy("",{nonNullable:!0});this.onChange=function(){};this.onTouched=function(){}};
Y(g5,gU);g=g5.prototype;g.ngOnInit=function(){var a=this.injector.get(by,null),b;(a==null?0:(b=a.control)==null?0:b.validator)&&this.editingValue._assignValidators(a.control.validator);this.required()&&(a=this.editingValue,b=Hqa(a._rawValidators),a._assignValidators(b))};g.valueChanged=function(){return this.editingValue.value!==this.value};g.startEditing=function(){this.disabled||(this.onTouched(),this.editing=!0,this.editingValue.setValue(this.value),this.popOver.open(),this.editorOpen.emit({isOpen:!0}))};
g.stopEditing=function(a){this.editing=!1;(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})};g.writeValue=function(a){a!=null&&(this.val=a,this.editing||this.editingValue.setValue(a))};g.isActive=function(){return this.headerFocused||this.editing};
g.registerOnChange=function(a){this.onChange=a};g.registerOnTouched=function(a){this.onTouched=a};g.setDisabledState=function(a){this.disabled=a};nd.Object.defineProperties(g5.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.val},set:function(a){a!==this.val&&this.writeValue(a)}}});g5.\u0275fac=function(){var a;return function(b){return(a||(a=Re(g5)))(b||g5)}}();
g5.\u0275cmp=y({type:g5,selectors:[["onedev-text-field"]],viewQuery:function(a,b){a&1&&hh(ihd,7);if(a&2){var c;lh(c=mh())&&(b.popOver=c.first)}},inputs:{value:"value",allowMultipleLines:"allowMultipleLines",multilineMaxLines:"multilineMaxLines",newlineWithEnterKey:"newlineWithEnterKey",centerEditIcon:"centerEditIcon",disabled:"disabled",labelledById:"labelledById",valueTemplate:"valueTemplate",editorTemplate:"editorTemplate",hasBackdrop:"hasBackdrop",fitPopoverToViewport:"fitPopoverToViewport",required:[1,
"required"]},outputs:{valueChange:"valueChange",editorOpen:"editorOpen"},standalone:!1,features:[Fh([{provide:Yx,useExisting:$d(function(){return g5}),multi:!0},{provide:gU,useExisting:$d(function(){return g5}),multi:!0}]),Bg],decls:11,vars:10,consts:[["anchor",""],["standardValueDisplay",""],["popOver","onedevPopOverEditPanel"],["inputTemplate",""],["singleLineTemplate",""],[3,"click","focus","blur"],[4,"ngIf","ngIfElse"],["class","edit-icon","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",
3,"centered",4,"ngIf"],[3,"closedWithAction","anchor","editorTemplate","newlineWithEnterKey","hasBackdrop","fitToViewport","saveDisabled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",1,"edit-icon"],["d","M20.71,5.63l-2.34-2.34C18.18,3.1,17.92,3,17.67,3c-0.26,0-0.51,0.1-0.71,0.29L3,17.25L3,21h3.75L20.71,7.04 C21.1,6.65,21.1,6.02,20.71,5.63z M5.92,19H5l0-0.92L15.54,7.53l0.92,0.92L5.92,19z"],[4,"ngIf"],[1,"textarea-wrapper"],["spellcheck",
"false","autocomplete","off","cdkTextareaAutosize","","cdkAutosizeMinRows","1",3,"formControl","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();J(0,"button",5,0);N("click",function(){u(c);return w(b.startEditing())})("focus",function(){u(c);return w(b.headerFocused=
!0)})("blur",function(){u(c);return w(b.headerFocused=!1)});J(2,"span");D(3,YMb,2,4,"ng-container",6)(4,ZMb,1,1,"ng-template",null,1,Lh);K();D(6,$Mb,2,2,"svg",7);K();J(7,"onedev-pop-over-edit-panel",8,2);N("closedWithAction",function(f){u(c);return w(b.stopEditing(f))});K();D(9,gNb,2,2,"ng-template",null,3,Lh)}if(a&2){a=Q(1);var d=Q(5),e=Q(10);Lg("aria-labelledby",b.labelledById);x(3);I("ngIf",b.valueTemplate)("ngIfElse",d);x(3);I("ngIf",!b.disabled);x();I("anchor",a)("editorTemplate",e)("newlineWithEnterKey",
b.newlineWithEnterKey)("hasBackdrop",b.hasBackdrop)("fitToViewport",b.fitPopoverToViewport)("saveDisabled",b.editingValue.invalid)}},dependencies:[Rv,Sv,Ui,dy,vy,Sy,hU,py],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 jhd=["descriptionConfirmDialog"],xOb=function(){return[]},JOb=function(){return{standalone:!1}},khd=new le("titleBannedWordsChecker"),lhd=new le("descriptionBannedWordsChecker"),mhd={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?"}},h5=function(){Z.call(this);var a=this;this.routeParams=r(EK);this.hotkeys=r(PG);this.checkBeforeExit=r(UR);this.constants=r(dK);this.ngZone=r(Ph);this.$log=r(ME);this.reloadService=r(KY);this.paths=r(oN);this.redirectUrl=r(o2);this.userAccess=r(AD);this.accessPolicy=r(rB);this.bLocation=r(DH);this.appHistory=r(jZ);this.issueTemplate=
r(n2);this.issueTypeDialog=r(ZJ);this.componentActions=r(WM);this.activeSession=r(Bs);this.draftStore=r(IJ);this.analytics=r(RE);this.issueApi=r(SD);this.hotlistApi=r(YC);this.butterBar=r(GJ);this.errorHandler=r(aK);this.matDialogService=r(RJ);this.appEvents=r(FB);this.userPreferencesManager=r(iG);this.cdr=r(NE,{self:!0});this.issueRelationshipsFridge=r(jF);this.issueFullFridge=r(TE);this.componentFridge=r(BB);this.clearcut=r(FE);this.jspbPrincipalTypes=r(EF);this.trackerFridge=r(cG);this.titleBannedWordsChecker=
r(khd);this.descriptionBannedWordsChecker=r(lhd);this.confirmIssueAccessLimitSettingsService=r(O_);this.componentTemplateApi=r(EB);this.dismissalService=r(tN);this.hostElement=r(Te);this.currentUserBookmarksFridge=r(hD);this.trackerHelpers=r(iK);this.staffingDialogService=r(M_);this.enablePeoplekitAc=OA(this.activeSession,"enablePeoplekitUserAc");this.ISSUE_ID_LIST_PATTERN=/^[\s\d,]*$/;this.ISSUE_ID_LIST_DELIMITER=/[\s,]+/;this.COLLABORATOR_GROUPS_TOOLTIP="Collaborator groups are trusted groups that are configured by tracker admins only. Select and add these groups if they should be given collaborator access to this issue.";
this.recentIssuesInComponent=rq;this.userEmail=this.activeSession.getUserEmail();this.sessionIsExternal=this.activeSession.isExternalSession();this.enableRecaptcha=this.activeSession.userRequiresCaptcha();this.enableLiteralModeRevisions=OA(this.activeSession,"enableLiteralModeRevisions");this.hotlistMap={};this.hotlists=[];this.templateTitle=this.templateComment="";this.appliedTemplate=null;this.urlTemplate=new ced(this.routeParams,this.$log);this.isLoadingComponent=!1;this.descriptionBoxId="bv2-description";
this.availablePredefinedTemplates=[];this.selectedTemplateInternal=this.availableExistingIssueTemplate=null;this.autocompleteConfigService=r(GO);this.preferredTemplateId=null;this.everClickedSimilarIssues=this.everShowedIssueHovercard=this.isNavigatingAway=this.isSaving=this.submitRequested=!1;this.selectedHotlists=[];this.componentHasExpandedAccessEnabled=this.canViewIssuesInComponent=this.canEditIssuesInComponent=this.createAclLoading=this.canCreateNewIssuesInComponent=this.newIssueStarted=!1;this.customFieldMap=
{};this.customFieldAllowedValuesMap={};this.issue=hj(NOb);this.verifierText=this.reporterText=this.assigneeText=null;this.ccsText=[];this.collaboratorsText=[];this.collaboratorGroupsText=[];this.audience="EXTERNAL";this.selectedComponent=null;this.selectedAccessLimitLevel="LIMIT_NONE";this.selectedComponentProcessedPromise=Promise.resolve(void 0);this.useCodefont=!1;this.hasAdvancedFieldsInUrlTemplate=eed(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=Qsa;this.toIssueSeverity=Ssa;this.FieldType=CL;this.initialized=!1;this.trackerComponent$=Yf(function(){return Nf(a.activeSession.getTracker())}).pipe(xg(function(c){return c?a.componentFridge.watch(c.componentId).pipe(wg(void 0)):Nf(void 0)}));
this.trackerId$=new Kn(void 0);this.tracker$=this.trackerId$.pipe(xg(function(c){return c?a.trackerFridge.watch(c):Nf(void 0)}));this.titleAfterBlur$=new tg;this.similarIssuesSearchString$=this.titleAfterBlur$.pipe(ng(100));this.trackerCollaboratorGroups=[];this.enableSuggestTitle=OA(this.activeSession,"enableSuggestTitle")&&this.activeSession.isInternalSession();this.onAnyClick=function(c){DAa(c).match("SIMILAR-ISSUES")&&(a.everClickedSimilarIssues=!0,a.analytics.trackEvent("similarIssues","click"))};
this.getSingleEditFieldType=PRa;this.getListFieldType=ZTa;this.didConfirmNavigateAway=function(){var c,d=(c=a.selectedComponent)==null?void 0:c.componentPathInfo;c=rs(a.trackerHelpers,d);d="";c&&c.componentPathName&&(d=c.componentPathName[0].toString().trim());a.everShowedIssueHovercard||a.everClickedSimilarIssues?(a.analytics.trackEvent("createIssue","abandon-happy"),a.analytics.trackEvent("createIssue","abandon-happy-by-component",d)):(a.analytics.trackEvent("createIssue","abandon-normal"),a.analytics.trackEvent("createIssue",
"abandon-normal-by-component",d))};this.fetchUserHotlists();this.checkBeforeExit.didConfirm=this.didConfirmNavigateAway;this.subscriptions.add(this.tracker$.subscribe(function(c){a.updateCollaboratorGroups(c)}));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(){a.fetchUserHotlists()}));this.subscriptions.add(this.appEvents.didShowIssueHovercard.subscribe(function(){a.everShowedIssueHovercard=!0;a.analytics.trackEvent("similarIssues","hover")}));this.subscriptions.add(this.appEvents.hotlistCreated.subscribe(function(){a.fetchUserHotlists()}));
this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(function(){a.fetchUserHotlists()}));this.enableCreateIssueWithTemplate=OA(this.activeSession,"enableCreateIssueWithTemplate");this.frontendIsInternalOrPartner=this.activeSession.isInternalSession()||MA(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;LOb(this.issue,this);this.routeParams.description?this.comment=new xK(this.routeParams.description,!0):(b=this.draftStore.$window.sessionStorage.getItem(mq("0"))||"",this.comment=new xK(b));this.comment.formattingMode=nhd(this);b=ohd(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(QG(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,phd(this,this.componentRequestedInUrl)):this.componentAutocomplete?qhd(this,this.componentAutocomplete):(jed(this.urlTemplate,this.issue),this.updateSelectedHotlists());this.templateIssueRequestedInUrl&&
(this.newIssueStarted=!0,rhd(this));this.originalIssueCopy=hj(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(VR(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},
!1))};Y(h5,Z);h5.\u0275dir=Z.\u0275dir;h5.prototype.handleAutocompleteSelection=function(a,b){b==="assignee"?this.assigneeText=a:b==="verifier"?this.verifierText=a:this.reporterText=a;ss(this)};h5.prototype.isCaptchaValid=function(){return!this.enableRecaptcha||this.recaptchaResponse!==""};
var shd=function(a){if(!a.templateTitle||!a.templateComment)return!1;var b=cLa(a.comment.value,a.templateComment);return cLa(a.issue.title,a.templateTitle)&&b},FOb=function(a){return a.isSaving||a.isNavigatingAway||!a.canCreateNewIssuesInComponent||!a.isCaptchaValid()||!1};
h5.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||thd(a,b))}))};h5.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.hostElement.nativeElement.removeEventListener("click",this.onAnyClick,!0)};
var ss=function(a){a.initialized&&a.ngZone.run(function(){a.cdr.detectChanges()})};h5.prototype.back=function(){kZ(this.appHistory)};
var uhd=function(a){var b;return ur(a.selectedComponent)&&!((b=a.selectedComponent)==null||!b.trackerId)&&!Eq(a.activeSession)},vhd=function(a,b){b==="LIMIT_VIEW"||b==="LIMIT_VIEW_TRUSTED"?a.selectedAccessLimitLevel=b:(a.selectedAccessLimitLevel="LIMIT_VIEW_TRUSTED",Kq(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.":
"")))};h5.prototype.onAccessLimitLevelSelected=function(a){this.selectedAccessLimitLevel=a};
var thd=function(a,b){a.selectedComponent=b;a.selectedComponent?(a.issue=Object.assign({},a.issue,{componentId:a.selectedComponent.componentId}),a.originalIssueCopy.componentId=a.selectedComponent.componentId,whd(a),a.audience=tr(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):(dj(a.issue,"componentId"),a.audience="EXTERNAL");a.submitRequested=!1;xhd(a);a.selectedComponentProcessedPromise=Promise.all([yhd(a),zhd(a)]).then(function(){});return a.selectedComponentProcessedPromise};h5.prototype.isLiteralModeSupported=function(){return!this.selectedTemplate};
var Ahd=function(a){a.assigneeText=a.assigneeText?a.assigneeText:null;a.verifierText=a.verifierText?a.verifierText:null;a.reporterText=a.reporterText?a.reporterText:null},lNb=function(a){return q8a(a.selectedComponent)?"External Google partners may be able to see this issue.":ur(a.selectedComponent)?"Public users may be able to see this issue.":""};
h5.prototype.getCollaboratorGroupsString=function(){return this.collaboratorGroupsText.length===0?"":this.collaboratorGroupsText.length>1?this.collaboratorGroupsText.length+" groups selected":this.collaboratorGroupsText[0]};h5.prototype.updateCollaboratorGroups=function(a){a&&a.collaboratorGroups&&(this.trackerCollaboratorGroups=xj(a.collaboratorGroups),this.separateCollaboratorGroups())};
h5.prototype.separateCollaboratorGroups=function(){for(var a=[],b=new Set(this.trackerCollaboratorGroups),c=l(this.collaboratorsText),d=c.next();!d.done;d=c.next())d=d.value,b.has(d)?this.collaboratorGroupsText.push(d):a.push(d);this.collaboratorsText=a;if(this.collaboratorGroupsText.length>0&&!ur(this.selectedComponent)){var e;(e=this.advancedFieldsZippy)==null||e.open()}};
var rhd=function(a){var b=Number(a.templateIssueRequestedInUrl);Number.isNaN(b)?a.butterBar.showWarning("Invalid template_issue specified"):(a.availableExistingIssueTemplate=new Bhd(b,"issue","Issue "+b,!1,"",!1),a.selectedTemplate=a.availableExistingIssueTemplate)},yhd=function(a){a.availablePredefinedTemplates=[];a.selectedTemplate&&a.selectedTemplate.type==="predefined"&&!Chd(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;ja(Ur(f))&&(f=e.default?"(default template)":"(unnamed template)");return new Bhd(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]);ss(a)}).catch(function(){a.butterBar.showWarning("Unable to load templates for this component")}):Promise.resolve(void 0)},Chd=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},zhd=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=BD(a.userAccess,"appender","components/"+b).then(function(f){a.canCreateNewIssuesInComponent=f;ss(a)}),e=BD(a.userAccess,
"writer",c).then(function(f){a.canEditIssuesInComponent=f;ss(a)});c=BD(a.userAccess,"reader",c).then(function(f){a.canViewIssuesInComponent=f;ss(a)});b=a.accessPolicy.checkComponentImplicitAccessEnabled(b).then(function(f){a.componentHasExpandedAccessEnabled=f;ss(a)});return Promise.all([d,e,c,b]).then(function(){Dhd(a);ss(a)}).catch(function(f){a.$log.warn(f)}).finally(function(){a.createAclLoading=!1})},Ghd=function(a){if(a.selectedTemplate){var b=function(c){var d=Object.assign(hj(NOb),c.snapshot);
a.selectedComponent&&(d.componentId=a.selectedComponent.componentId);var e=hj(d);Ahd(a);MOb(a,a.issue);var f=hj(a.issue);if(a.appliedTemplate)for(var h=l(Object.keys(a.appliedTemplate)),k=h.next();!k.done;k=h.next()){k=k.value;var q=a.appliedTemplate[k];if(Array.isArray(q)&&Array.isArray(f[k])){q=l(q);for(var v=q.next();!v.done;v=q.next())csa(f[k],v.value)}else gj(q,f[k])&&delete f[k]}a.appliedTemplate=e;OOb(d,f);f=e.comment||"";a.comment.value!==a.templateComment&&(pLc(a.comment)||f===""||a.comment.value===
f||(a.templateComment=f,Ehd(a,a.comment.value)),d.comment=a.comment.value,d.formattingMode=e.formattingMode);a.templateComment=f;var A;a.templateCommentFormattingMode=(A=e.formattingMode)!=null?A:void 0;a.templateTitle=e.title||"";d.reporterUser=Dj(a.userEmail);uhd(a)&&a.canEditIssuesInComponent?vhd(a,d.issueAccessLimitLevel||"LIMIT_NONE"):a.selectedAccessLimitLevel=d.issueAccessLimitLevel||"LIMIT_NONE";a.issue=d;LOb(a.issue,a);Dhd(a);Ahd(a);MOb(a,a.issue);a.comment.value=a.issue.comment||"";a.issue.comment&&
a.issue.formattingMode&&(a.comment.formattingMode=a.issue.formattingMode);jed(a.urlTemplate,a.issue,a.customFieldMap);LOb(a.issue,a);a.originalIssueCopy=hj(a.issue);a.loadHotlists(a.issue.hotlistId).then(function(){a.updateSelectedHotlists();a.originalIssueCopy.hotlistId=hj(a.issue.hotlistId);ss(a)});Fhd(a);a.collaboratorGroupsText=[];a.separateCollaboratorGroups();return a.selectedComponent?null:c.snapshot.componentId};a.selectedTemplate.type==="predefined"&&a.selectedComponent?a.componentTemplateApi.get(a.selectedTemplate.componentId,
a.selectedTemplate.id).then(ROb(a.selectedComponent)).then(b).then(function(){ss(a)}).catch(function(c){a.butterBar.showWarning(c.message)}):a.selectedTemplate.type==="issue"&&(led(a.issueTemplate,String(a.selectedTemplate.id)).then(function(c){var d;if(Eq(a.activeSession)&&((d=a.activeSession.getTracker())==null?void 0:d.trackerId)!==c.trackerId)throw Error("of");return b(c)}).then(function(c){c&&(phd(a,c),ss(a))}).catch(function(c){a.butterBar.showWarning(c.message)}),Rf(a.issueFullFridge.watch(String(a.selectedTemplate.id))).then(function(c){var d;
(d=a.parentIssueIds)!=null&&d.length||(a.parentIssueIds=c==null?void 0:c.parentIssueIds)}));a.selectedTemplate.id!==a.preferredTemplateId&&a.analytics.trackEvent("createIssue","changeTemplate");xhd(a)}};h5.prototype.isValid=function(){return!(nNb(this).length!==0||oNb(this).length!==0)&&!!(this.isBlockedByIssueIdValid&&this.isBlockingIssueIdValid&&this.isParentIssueIdsValid&&this.isCollaboratorsValid)&&!uNb(this.comment)&&!0};
var nNb=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})},oNb=function(a){return(a.issue.customField||[]).filter(function(b){return a.isCustomFieldRequired(b)&&zo(b)}).map(function(b){return'custom field "'+a.getCustomFieldName(b)+'"'})},Hhd=function(a){return a.collaboratorsText.length!==0&&a.canEditIssuesInComponent?Myc(a.jspbPrincipalTypes,
a.collaboratorsText,!1).then(function(b){a.invalidCollaboratorsInput=Object.entries(b).filter(function(c){c=l(c);c.next();c=c.next().value;return(c==null?void 0:c.principalType)!=="USER"}).map(function(c){return l(c).next().value});return a.invalidCollaboratorsInput.length===0}).catch(function(b){a.butterBar.showWarning(b.message);return!1}):Promise.resolve(!0)},jOb=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)},SNb=function(a){return a.split(",").map(function(b){return b.trim()}).filter(Boolean)},ts=function(a){return a?a.join(", "):""},Fhd=function(a){if(Gra(a.customFieldMap,function(c){return c.required||!1})||a.hasAdvancedFieldsInUrlTemplate){var b;(b=a.advancedFieldsZippy)==null||b.open()}};g=h5.prototype;g.getCustomFieldType=function(a){var b,c;return(c=(b=this.customFieldMap[a.customFieldId])==null?void 0:b.type)!=null?c:""};
g.getCustomFieldName=function(a){return(a=this.customFieldMap[a.customFieldId])?a.name:""};g.getCustomFieldAllowedValues=function(a){return(a=this.customFieldMap[a.customFieldId])&&a.allowedValue?a.allowedValue:null};g.getCustomFieldValue=function(a){return yo(a)};g.getDateValue=function(a){return a};
g.setCustomFieldValue=function(a,b){var c=this.getCustomFieldType(a),d=this.issue.customField.map(function(e){if(e.customFieldId===a.customFieldId)switch(c){case "TEXT":e.textValue=b;break;case "DATE":e.dateValue=b;break;case "ENUM":e.enumValue=b;break;case "NUMERIC":e.numericValue=b;break;case "REPEATED_TEXT":e.repeatedTextValue={values:b};break;case "REPEATED_DATE":e.repeatedDateValue={values:b};break;case "REPEATED_ENUM":e.repeatedEnumValue={values:b};break;case "REPEATED_NUMERIC":e.repeatedNumericValue=
{values:b}}return e});this.analytics.trackEvent("createIssue","changeCustomField",c);this.issue=Object.assign({},this.issue,{customField:d})};g.isCustomFieldRequired=function(a){return this.customFieldMap[a.customFieldId]?this.canEditIssuesInComponent&&!!this.customFieldMap[a.customFieldId].required:!1};g.getListFieldValues=function(a){var b,c;return(c=(b=yo(a))==null?void 0:b.values)!=null?c:null};
g.saveCommentDraft=function(){this.descriptionBannedWordsChecker.reset();var a=this.comment.value;a===this.templateComment&&(a="");this.draftStore.$window.sessionStorage.setItem(mq("0"),a);this.issue=Object.assign({},this.issue,{comment:a})};
g.handleHotlistPickerSave=function(a){var b=[];a=l(Object.entries(a.newSelectionMap));for(var c=a.next();!c.done;c=a.next()){var d=l(c.value);c=d.next().value;(d=d.next().value)&&b.push(Number(c))}this.issue=Object.assign({},this.issue,{hotlistId:b});this.updateSelectedHotlists();this.analytics.trackEvent("createIssue","changeHotlists")};g.removeHotlist=function(a){var b;Fa((b=this.issue.hotlistId)!=null?b:null,a);this.updateSelectedHotlists()};
g.setTitle=function(a){this.titleBannedWordsChecker.reset();this.issue=Object.assign({},this.issue,{title:a})};var DNb=function(a){var b,c,d=(c=(b=a.issue.title)==null?void 0:b.trim())!=null?c:"";a.titleAfterBlur$.next(d)};h5.prototype.setPriority=function(a){this.issue=Object.assign({},this.issue,{priority:Qsa(a)});var b;this.analytics.trackEvent("createIssue","changePriority",(b=this.issue.priority)!=null?b:void 0)};
h5.prototype.editStaffing=function(){var a=this,b,c,d,e;return z(function(f){if(f.nextAddress==1)return B(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});Lf(f)})};
h5.prototype.setIssueType=function(a){this.issue=Object.assign({},this.issue,{type:Rsa(a)});var b;this.analytics.trackEvent("createIssue","changeType",(b=this.issue.type)!=null?b:void 0)};h5.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)});Maa(this.selectedHotlists,function(b,c){return ia(b.name,c.name)})};
var Ihd=function(a,b){var c,d,e,f,h,k,q,v,A,E,H;return z(function(L){switch(L.nextAddress){case 1:c=String(b.issueId);d=a.parentIssueIds;if(!d){L.jumpTo(2);break}e=[];return d.length===1?B(L,a.issueRelationshipsFridge.assignParentToIssues(d[0],[{issueId:c,afterIssueId:a.afterIssueId}]),6):B(L,Cxc(a.issueRelationshipsFridge,c,d),5);case 5:h=L.yieldResult;e=h.notAdded;f=h.errors;L.jumpTo(4);break;case 6:k=L.yieldResult,e=k.notAdded,f=k.errors;case 4:e.length&&a.butterBar.showWarning("Unable to add "+
e+" as parent(s). "+f);case 2:q=a.childrenIssueIds;if((v=q)==null||!v.length){L.jumpTo(7);break}return B(L,a.issueRelationshipsFridge.assignParentToIssues(c,q.map(function(O){return{issueId:O}})),8);case 8:A=L.yieldResult,E=A.notAdded,H=A.errors,E.length&&a.butterBar.showWarning("Unable to add "+E+" as children. "+H);case 7:return L.return(b)}})},DOb=function(a,b,c){var d,e,f,h,k,q,v,A,E,H,L,O,S,aa,ka,na,za,Na,Pa,hb,ua,Ha;return z(function(Ia){switch(Ia.nextAddress){case 1:return a.sessionIsExternal&&
shd(a)?(Jhd(a),Ia.return()):B(Ia,Hhd(a),2);case 2:a.isCollaboratorsValid=Ia.yieldResult;d=a.issue;a.submitRequested=!0;if(!a.isValid()){if(e=document.querySelector(".bv2-view"))e.scrollTop=0;return Ia.return()}d.issueAccessLimitLevel=a.selectedAccessLimitLevel;d.issueAccessLimitLevel&&d.issueAccessLimitLevel!=="LIMIT_NONE"&&a.analytics.trackEvent("issueAccessLimits","create","create_issue:"+d.issueAccessLimitLevel);d.comment=a.comment.value;d.formattingMode=a.comment.formattingMode;f={snapshot:d,
attachments:a.comment.getAttachments()};a.enableRecaptcha&&(f.recaptchaToken=a.recaptchaResponse);a.selectedTemplate&&a.selectedTemplate.type==="predefined"&&(f.templateId=a.selectedTemplate.id);a.judgementForNewContent&&a.judgementForNewContent.severity!=="NONE_DETECTED"&&(f.contentJudgement=a.judgementForNewContent);a.canEditIssuesInComponent||(h={title:f.snapshot.title,componentId:f.snapshot.componentId,comment:f.snapshot.comment,formattingMode:f.snapshot.formattingMode,cc:!a.canViewIssuesInComponent&&
!a.componentHasExpandedAccessEnabled||a.enableCreateIssueWithTemplate?[]:[a.userEmail]},f.snapshot=h);f.snapshot=cj(f.snapshot,function(tb){return typeof tb!=="string"||!ja(tb)});f.snapshot.customField&&(f.snapshot.customField=f.snapshot.customField.filter(function(tb){return!zo(tb)}));MOb(a,f.snapshot);if(a.trackerId$.value&&f.snapshot.type==="VULNERABILITY"&&(k=EPa(a.activeSession.getEnvironmentType(),a.trackerId$.value),k!==void 0)){f.snapshot.collaboratorsUsers||(f.snapshot.collaboratorsUsers=
[]);q=l(k);for(v=q.next();!v.done;v=q.next())A=v.value,f.snapshot.collaboratorsUsers.push(A);f.snapshot.issueAccessLimitLevel="LIMIT_VIEW"}a.collaboratorGroupsText.length>0&&(f.snapshot.collaboratorsUsers=jta(a.collaboratorGroupsText).concat(f.snapshot.collaboratorsUsers||[]));f.snapshot.assigneeUser&&(f.snapshot.status="ASSIGNED");E=function(){a.isSaving=!0;a.newIssueStarted=!1;Kq(a.butterBar,"Creating...",0);a.issueApi.createIssue(f).then(function(tb){return Ihd(a,tb)}).then(function(tb){a.draftStore.$window.sessionStorage.removeItem(mq("0"));
a.originalIssueCopy=hj(a.issue);a.analytics.trackEvent("createIssue","create",a.comment.formattingMode==="MARKDOWN"?"markdown":"non markdown");Khd(a);a.collaboratorGroupsText.length>0&&a.analytics.trackEvent("quickAddCollaborators","create","create_issue:"+tb.issueId);var rb,dc;((rb=a.selectedTemplate)==null?0:rb.inheritable)&&a.selectedTemplate.componentId!==((dc=a.selectedComponent)==null?void 0:dc.componentId)&&a.analytics.trackEvent("templateInheritance","create","issue:"+tb.issueId);c?(a.analytics.trackEvent("createIssue",
"fileAndRedirect","component",d.componentId?Number(d.componentId):void 0),a.butterBar.dismiss(),a.isNavigatingAway=!0,a.isSaving=!1,BD(a.userAccess,"reader","issues/"+tb.issueId).then(function(bc){bc?med(a.redirectUrl,Fq(tb.issueId),String(tb.issueId)):(Kq(a.butterBar,"New issue created: "+tb.issueId+" (view access not granted)",0),med(a.redirectUrl,a.paths.listIssues()));ss(a)}).catch(function(bc){a.errorHandler.errorHandler(null,bc);a.isNavigatingAway=!1})):(a.analytics.trackEvent("createIssue",
"fileAndNew","component",d.componentId?Number(d.componentId):void 0),rb={},jKc(a.butterBar,Zi(["New issue created: ",$i("a",(rb.href=Fq(tb.issueId),rb),String(tb.issueId))]),0),d.title=a.templateTitle,a.comment=new xK(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=hj(a.issue));a.enableLiteralModeRevisions&&yzc(a.userPreferencesManager,a.comment.formattingMode);ss(a)}).catch(function(tb){tb.status===403&&Qo(tb)?bK(a.errorHandler,Ro(tb)):a.errorHandler.errorHandler(null,tb);a.isSaving=!1;a.submitRequested=!1;a.newIssueStarted=!1}).finally(function(){a.titleBannedWordsChecker.reset();a.descriptionBannedWordsChecker.reset()})};return B(Ia,Lhd(a),3);case 3:return(H=Ia.yieldResult)?B(Ia,Mhd(a),4):Ia.return();case 4:return(L=
Ia.yieldResult)?B(Ia,S$c(a.confirmIssueAccessLimitSettingsService,{assigneeUser:(O=f.snapshot.assigneeUser)==null?void 0:O.emailAddress,verifierUser:(S=f.snapshot.verifierUser)==null?void 0:S.emailAddress,ccUsers:(aa=f.snapshot.ccUsers)==null?void 0:aa.map(function(tb){return tb.emailAddress}).filter(Qj),collaboratorsUsers:(ka=f.snapshot.collaboratorsUsers)==null?void 0:ka.map(function(tb){return tb==null?void 0:tb.emailAddress}).filter(Qj),issueAccessLimitLevel:f.snapshot.issueAccessLimitLevel,currentUserEmail:a.activeSession.getUserEmail(),
canEditIssuesInComponent:a.canEditIssuesInComponent,confirmationDialogText:mhd}),5):Ia.return();case 5:return(na=Ia.yieldResult)?B(Ia,a.titleBannedWordsChecker.check((za=a.issue.title)!=null?za:"",Nhd(a),f.snapshot.componentId),6):Ia.return();case 6:return Na=Ia.yieldResult,B(Ia,a.descriptionBannedWordsChecker.check((Pa=a.issue.comment)!=null?Pa:"",Nhd(a),f.snapshot.componentId),7);case 7:hb=Ia.yieldResult;if(!Na||!hb)return(ua=b)==null||ua.preventDefault(),(Ha=b)==null||Ha.stopPropagation(),Ia.return();
E();Lf(Ia)}})},Jhd=function(a){a.isSaving=!0;Kq(a.butterBar,"Creating...",0);setTimeout(function(){Kq(a.butterBar,"New issue cr\u00e6ted");a.isSaving=!1;med(a.redirectUrl,a.paths.listIssues())},500)},Nhd=function(a){return!!a.selectedComponent&&!!a.selectedComponent.accessLimit&&a.selectedComponent.accessLimit.accessLevel==="EXTERNAL_PUBLIC"},Lhd=function(a){var b,c,d;return z(function(e){if(e.nextAddress==1)return b="create-issue",B(e,a.dismissalService.isDismissed(VWa(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):B(e,Rf(LJ(a.matDialogService.open(uN,{width:"500px",data:{action:b,content:"Submitting this bug report means your email address will be shared with the team that works on this product."}}))),4);d=e.yieldResult;return e.return(d)})},Mhd=function(a){var b=pj();!a.canEditIssuesInComponent||a.issue.type!==
"VULNERABILITY"&&a.issue.type!=="PRIVACY_ISSUE"?b.resolve(!0):BKc(a.issueTypeDialog,a.issue.type,function(){b.resolve(!0)},function(){b.resolve(!1)});return b.promise},qhd=function(a,b){a.isLoadingComponent=!0;a.componentActions.search(b).then(function(c){c.length===1?(thd(a,c[0]),ss(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})},phd=function(a,b){a.isLoadingComponent=
!0;a.componentActions.getUncached(b).then(function(c){var d;if(Eq(a.activeSession)&&((d=a.activeSession.getTracker())==null?void 0:d.trackerId)!==c.trackerId)throw Error("pf");thd(a,c);ss(a)}).catch(function(){a.butterBar.showWarning("Component ID "+b+" does not exist or you do not have access.")}).finally(function(){a.isLoadingComponent=!1})};h5.prototype.hasUnsavedChanges=function(){var a=POb(this.issue),b=POb(this.originalIssueCopy);return!gj(a,b)||this.comment.value!==this.originalIssueCopy.comment};
var Ehd=function(a,b){LJ(a.matDialogService.open(a.descriptionConfirmDialog,{data:b})).pipe(qg()).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="")})},xhd=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)))},jNb=function(a){return a.sessionIsExternal?!1:q8a(a.selectedComponent)},kNb=function(a){return NA(a.activeSession)?
!1:ur(a.selectedComponent)},whd=function(a){if(a.selectedComponent&&a.selectedComponent.componentPathInfo&&a.selectedComponent.componentPathInfo.allCustomField){for(var b=a.selectedComponent.componentPathInfo.allCustomField,c={},d=l(b),e=d.next();!e.done;e=d.next())e=e.value,c[e.customFieldId]=e;a.customFieldMap=c;a.customFieldAllowedValuesMap=QOb(b);Ohd(a)}},Ohd=function(a){if(a.issue.customField){a.issue.customField=a.issue.customField.filter(function(e){return a.customFieldMap[e.customFieldId]&&
a.customFieldMap[e.customFieldId].enabledOnIssues});for(var b=a.issue.customField.map(function(e){return e.customFieldId}),c=l(Object.values(a.customFieldMap)),d=c.next();!d.done;d=c.next())d=d.value,!b.includes(d.customFieldId)&&d.enabledOnIssues&&a.issue.customField.push(d.typedDefaultValue||{customFieldId:d.customFieldId});a.originalIssueCopy.customField=a.issue.customField}},Dhd=function(a){if(a.canViewIssuesInComponent||a.componentHasExpandedAccessEnabled)a.ccsText!==void 0?a.ccsText.includes(a.userEmail)||
(a.ccsText=[a.userEmail].concat(p(a.ccsText))):a.ccsText=[a.userEmail]};g=h5.prototype;g.fetchUserHotlists=function(){var a=this;Rf(iD(this.currentUserBookmarksFridge)).then(function(b){b=l(b);for(var c=b.next();!c.done;c=b.next())a.addHotlist(c.value);ss(a)}).catch(function(b){a.errorHandler.errorHandler(null,b)})};g.addHotlist=function(a){var b=this.hotlistMap[a.hotlistId];b&&Fa(this.hotlists,b);this.hotlistMap[a.hotlistId]=a;this.hotlists.push(a)};
g.createHotlist=function(a){var b=this;this.analytics.trackEvent("baseIssue","createHotlist");Kq(this.butterBar,"Creating hotlist "+a.name+"...",0);this.hotlistApi.createHotlist(a.name).then(function(c){Kq(b.butterBar,"Hotlist "+a.name+" created successfully.");b.addHotlist(c);b.appEvents.hotlistCreated.next();a.successCallback(c);ss(b)}).catch(a.errorCallback)};
g.loadHotlist=function(a){var b=this,c=a.hotlistId;return this.hotlistMap[c]?Promise.resolve(this.hotlistMap[c]):this.hotlistApi.get(c).then(function(d){b.addHotlist(d);a.successCallback(d);ss(b);return d},function(){var d=b.hotlistMap[c];dj(b.hotlistMap,c);Fa(b.hotlists,d);a.errorCallback()})};g.loadHotlists=function(a){var b=this;a=a.map(function(c){return b.loadHotlist({hotlistId:c,successCallback:function(){},errorCallback:function(){}})});return Promise.all(a).then(function(){ss(b)})};
var ohd=function(a){var b;switch(((b=a.format)==null?void 0:b.toLowerCase())||""){case "plain":return"PLAIN";case "markdown":return"MARKDOWN"}},nhd=function(a){var b;return Tj((b=jG(a.userPreferencesManager).textDisplayPreferences)==null?void 0:b.lastPublishMode)||"PLAIN"};
h5.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(yg(this.destroyed$)).subscribe(function(e){e&&(a.judgementForNewContent=e.contentJudgement)})};h5.prototype.showContentJudgementDialog=function(a){return LJ(this.matDialogService.open(mR,{panelClass:"no-jitter",width:"500px",data:a}))};
var Khd=function(a){var b=(new Date).getTime()-a.startTime.getTime();if(b>0){var c=Math.min(b,108E5);Twc("createIssue",c,"new-ui");a.analytics.trackEvent("createIssue","createIssue","time-to-create-new-ui",c);GE(a.clearcut,b,"createIssue-fromNewIssuePage")}a.startTime=new Date};
nd.Object.defineProperties(h5.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(){Ghd(b)})}}}});h5.\u0275fac=function(a){return new (a||h5)};
h5.\u0275cmp=y({type:h5,selectors:[["b-create-issue-page"]],viewQuery:function(a,b){a&1&&(hh(t_,5),hh(IV,5),hh(jhd,5),hh(OW,5));if(a&2){var c;lh(c=mh())&&(b.hotlistPicker=c.first);lh(c=mh())&&(b.commentBox=c.first);lh(c=mh())&&(b.descriptionConfirmDialog=c.first);lh(c=mh())&&(b.advancedFieldsZippy=c.first)}},standalone:!1,features:[Fh([NE,{provide:khd,useClass:UO},{provide:lhd,useClass:UO}]),Bg],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-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-assignee"],["id","bv2-assignee","type","text","name","assignee",
"autocomplete","off",1,"bv2-create-issue-textfield",3,"ngModelChange","ngModel","bContactAutocomplete"],[1,"bv2-create-field","bv2-create-issue-collaborators"],["for","bv2-collaborators-peoplekit"],["matTooltip","Collaborators are people directly working on this issue. When expanded access is on, this field grants issue edit permissions","matTooltipPosition","above","svgIcon","help-outline","tabindex","0",1,"collaborators-tooltip-icon"],["id","bv2-collaborators-peoplekit","type","text","name","collaborators",
"aria-expanded","true",1,"bv2-create-issue-textfield",3,"emailsChange","ariaLabel","emails"],["for","bv2-collaborators"],["id","bv2-collaborators","type","text","name","collaborators","autocomplete","off",1,"bv2-create-issue-textfield",3,"ngModelChange","ngModel","bContactAutocomplete"],[1,"bv2-create-field","bv2-create-issue-cc"],["for","bv2-ccs-peoplekit"],["id","bv2-ccs-peoplekit","type","text","name","ccs","aria-expanded","true",1,"bv2-create-issue-textfield",3,"emailsChange","ariaLabel","emails"],
["for","bv2-cc"],["id","bv2-cc","type","text","name","cc","autocomplete","off",1,"bv2-create-issue-textfield",3,"ngModelChange","ngModel","bContactAutocomplete"],["for","bv2-access-limits","matTooltip","Set access level of this issue"],["id","bv2-access-limits",3,"updatedAccessLimitLevel","disabled","implicitAccessEnabled","defaultAccessLimitLevel"],["for","bv2-collaborator-groups","matTooltip","Set collaborator groups on the issue"],["svgIcon","help-outline","tabindex","0","aria-hidden","false",
1,"icon-s","valign-middle","collaborator-group-help-icon",3,"matTooltip"],[4,"ngTemplateOutlet"],["role","heading","aria-level","3"],[1,"required-text"],[1,"bv2-new-issue-metadata"],["aria-label","Set severity",1,"bv2-create-adv-field"],["for","bv2-severity","matTooltip","Set severity, which reflects how much the issue affects the use of the product"],["mat-button","","type","button","color","primary","id","bv2-severity",3,"matMenuTriggerFor"],["name","arrow-dropdown","size","small"],[1,"bv2-create-adv-field"],
["for","bv2-found-in","matTooltip","Set version(s) of the product affected by this issue (comma-separated list)"],["id","bv2-found-in","name","foundIn","type","text","autocomplete","off",3,"ngModelChange","ngModel"],["aria-label","Set in prod",1,"bv2-create-adv-field"],["for","bv2-in-prod","matTooltip","Set if this issue occurs in production"],["id","bv2-in-prod","name","inProd","aria-label","Set in prod",3,"ngModelChange","ngModel"],["aria-label","Edit staffing",1,"bv2-create-adv-field","staffing-field"],
["for","staffing-button","matTooltip","Edit staffing, which represents planned contributors on this issue."],["type","button",1,"staffing-button","b-input-style",3,"click"],[1,"staffing-text"],["svgIcon","edit-outline",1,"icon-s","edit-icon"],["for","bv2-targeted-to","matTooltip","Set the version(s) of the product in which the issue should be fixed (comma-separated list)"],["id","bv2-targeted-to","name","targetedTo","type","text","autocomplete","off",3,"ngModelChange","ngModel"],["for","bv2-blocked-by",
"matTooltip","Set issue(s) blocking this issue (comma-separated list)"],["id","bv2-blocked-by","name","blockedByInputField","type","text","autocomplete","off","pattern","[\\s\\d,]*",3,"ngModelChange","ngModel"],["for","bv2-blocking","matTooltip","Set issue(s) blocked by this issue (comma-separated list)"],["id","bv2-blocking","name","blockingInputField","type","text","autocomplete","off","pattern","[\\s\\d,]*",3,"ngModelChange","ngModel"],["for","bv2-reporter-peoplekit","matTooltip","Set the reporter of this issue."],
["id","bv2-reporter-peoplekit","name","reporter","type","text",3,"emailChange","email"],["for","bv2-reporter","matTooltip","Set the reporter of this issue."],["id","bv2-reporter","name","reporter","type","text","autocomplete","off",3,"ngModelChange","ngModel","bContactAutocomplete"],["for","bv2-verifier-peoplekit","matTooltip","Set the verifier of this issue."],["id","bv2-verifier-peoplekit","name","verifier","type","text",3,"emailChange","email"],["for","bv2-verifier","matTooltip","Set the verifier of this issue."],
["id","bv2-verifier","name","verifier","type","text","autocomplete","off",3,"ngModelChange","ngModel","bContactAutocomplete"],["for","bv2-parents","matTooltip","Set parent issue(s) of this issue (comma-separated list)"],["id","bv2-parents","name","parentsInputField","type","text","pattern","[\\s\\d,]*",3,"ngModelChange","ngModel"],["for","bv2-children","matTooltip","Set children issue(s) of this issue (comma-separated list)"],["id","bv2-children","name","childrenInputField","type","text","pattern",
"[\\s\\d,]*",3,"ngModelChange","ngModel"],["id","bv2-access-limits",3,"updatedAccessLimitLevel","disabled","defaultAccessLimitLevel","implicitAccessEnabled"],[3,"id","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();J(0,"h2",7);R(1,"Create issue");K();J(2,"div",8)(3,"div",9)(4,"button",10);N("click",function(){u(c);return w(b.back())});M(5,"mat-icon",11);K();J(6,"h2");R(7,"Create Issue");K();F(8,hNb,1,2,"b-hotlist-picker",12);F(9,iNb,2,1,"a",13);K()();J(10,"div",14)(11,"div")(12,"div",15)(13,"form",16);F(14,mNb,6,8,"div",17);F(15,vNb,4,3,"div",18);F(16,xNb,3,0,
"div",19);J(17,"div",20)(18,"div",21)(19,"div",22)(20,"label",23);R(21,"Component");K()();J(22,"div",24)(23,"b-team-component-picker",25);N("selectedComponentChange",function(e){u(c);return w(thd(b,e!=null?e:null))});K()()();F(24,ANb,12,4,"div",26);K();F(25,BNb,3,0,"div",27);F(26,GOb,54,63,"div");K()()()();D(27,HOb,11,2,"ng-template",null,0,Lh)(29,KOb,6,4,"ng-template",null,1,Lh)}if(a&2){var d;x(8);G(b.canEditIssuesInComponent?8:-1);x();G((d=b.issue.componentId)?9:-1,d);x(4);uh("submitted",b.submitRequested);
x();G(jNb(b)||kNb(b)?14:-1);x();G(b.submitRequested&&!b.isValid()?15:-1);x();G(b.selectedHotlists.length>0?16:-1);x(7);I("selectedComponent",b.selectedComponent)("shouldFocus",!b.componentRequestedInUrl&&!b.templateIssueRequestedInUrl)("isRequired",!0);x();G(b.availablePredefinedTemplates.length>0||b.availableExistingIssueTemplate!=null?24:-1);x();G(b.isLoadingComponent||b.componentRequestedInUrl==null&&b.selectedComponent==null||b.canCreateNewIssuesInComponent||b.createAclLoading||!b.selectedComponent?
-1:25);x();G(b.canCreateNewIssuesInComponent||b.createAclLoading||!b.selectedComponent?26:-1)}},dependencies:[AG,IV,fQ,zI,BU,w0,DM,My,Dy,gO,ly,Ui,dy,ey,vy,xy,ky,iy,IT,t_,eL,H_,OM,oG,Jx,Kx,bP,Sw,jP,kP,Bx,SJ,UJ,WJ,VJ,OW,PW,QW,pG,sG,qG,uG,EG,FG,zG,xG,g5,hN,Sv,FC,CC,TR,bS,b5,e5,f5,IU,aV,pL,iL,nQ,Tv],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 NOb={hotlistId:[],comment:"",severity:"S2",inProd:!1,customField:[]},Bhd=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 Phd=["form"],i5=function(){this.bLocation=r(DH);this.sloApi=r(LF);this.errorHandler=r(aK);this.analytics=r(RE);this.butterBar=r(GJ);this.appHistory=r(jZ);this.sloUnderEdit={sloId:"0",parentId:"0",name:"",description:"",elements:[],effectiveElements:[],alertState:"OFF",isArchived:!1};this.isSaving=this.elementPickerIsValid=!1;this.createSloForm=null;this.error=""};g=i5.prototype;g.ngAfterViewInit=function(){};
g.save=function(){var a=this;if(!this.validate())return Promise.reject(Error("qf"));Kq(this.butterBar,"Saving SLO...",0);this.isSaving=!0;return this.sloApi.create(this.sloUnderEdit).then(function(b){Kq(a.butterBar,"SLO "+b.name+" saved.",2E3);a.analytics.trackEvent("SLO","create");a.bLocation.replaceUrl(Dq.editSlo.makeHref(b.sloId))}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.isSaving=!1})};g.back=function(){kZ(this.appHistory)};
g.revertChanges=function(){this.sloUnderEdit.name="";this.sloUnderEdit.description="";this.sloUnderEdit.elements=[]};g.updateCollection=function(a){this.sloUnderEdit.elements=a};g.validate=function(){if(this.createSloForm.invalid||!this.elementPickerIsValid)return this.error="Error: You must fill out all required fields and ensure the rules are valid.",!1;this.error="";return!0};i5.\u0275fac=function(a){return new (a||i5)};
i5.\u0275cmp=y({type:i5,selectors:[["create-slo-page"]],viewQuery:function(a,b){a&1&&hh(Phd,5);if(a&2){var c;lh(c=mh())&&(b.createSloForm=c.first)}},standalone:!1,decls:30,vars:17,consts:[["form","ngForm"],[1,"kd-appbar"],[1,"kd-buttonbar"],["format","icon","size","large","tooltip","Go back","bAriaLabel","Go back",3,"onAction"],["name","arrow-backward","size","large"],[1,"bv2-view"],[1,"edit-resource-header"],[1,"vertical-centered"],[1,"edit-resource-panel"],["name","createSloForm"],[3,"error"],[1,
"edit-field"],["for","slo-name",1,"required"],["type","text","id","slo-name","name","name",3,"ngModelChange","required","bFocus","ngModel","disabled"],["for","slo-description"],["id","slo-description","name","description",3,"ngModelChange","ngModel","disabled"],[3,"onCollectionUpdate","onValidation","isDisabled","collection"],[1,"advanced-settings-info"],[1,"edit-button-row"],["format","fill",3,"onAction","disabled"],["format","hairline",3,"onAction","disabled"]],template:function(a,b){if(a&1){var c=
t();J(0,"div",1)(1,"div",2)(2,"b-button",3);N("onAction",function(){u(c);return w(b.back())});M(3,"b-icon",4);K()()();J(4,"div",5)(5,"h2",6)(6,"span",7);R(7,"Create a new SLO");K()();J(8,"div",8)(9,"form",9,0);M(11,"b-error-banner",10);J(12,"div",11)(13,"label",12);R(14,"Name");K();J(15,"input",13);N("ngModelChange",function(d){u(c);return w(b.sloUnderEdit.name=d)});K()();J(16,"div",11)(17,"label",14);R(18,"Description");K();J(19,"textarea",15);N("ngModelChange",function(d){u(c);return w(b.sloUnderEdit.description=
d)});R(20,"        ");K()();J(21,"div",11)(22,"slo-elements-picker",16);N("onCollectionUpdate",function(d){u(c);return w(b.updateCollection(d))})("onValidation",function(d){u(c);return w(b.elementPickerIsValid=d)});K()();J(23,"p",17);R(24," Access controls may be defined once the slo is created. ");K();J(25,"div",18)(26,"b-button",19);N("onAction",function(){u(c);return w(b.save())});R(27," Save ");K();J(28,"b-button",20);N("onAction",function(){u(c);return w(b.revertChanges())});R(29," Revert changes ");
K()()()()()}a&2&&(x(9),uh("show-errors",b.error),x(2),I("error",b.error),x(),uh("bv2-edit-resource-readonly",b.isSaving),x(3),I("required",!0)("bFocus",!0)("ngModel",b.sloUnderEdit.name)("disabled",b.isSaving),x(),uh("bv2-edit-resource-readonly",b.isSaving),x(3),I("ngModel",b.sloUnderEdit.description)("disabled",b.isSaving),x(3),I("isDisabled",!1)("collection",b.sloUnderEdit.elements),x(4),I("disabled",b.isSaving||(b.createSloForm==null?null:b.createSloForm.pending)||(b.createSloForm==null?null:b.createSloForm.invalid)||
!b.elementPickerIsValid),x(2),I("disabled",!(b.sloUnderEdit.name!==""||b.sloUnderEdit.description!==""||b.sloUnderEdit.elements.length>0)))},dependencies:[AG,V0,gO,ly,Ui,dy,ey,vy,ky,iy,eL,c2],encapsulation:2});var j5=function(){this.nextPanelId=1};j5.\u0275fac=function(a){return new (a||j5)};j5.\u0275prov=Cd({token:j5,factory:j5.\u0275fac,providedIn:"root"});var k5=function(){Z.apply(this,arguments);this.cdr=r(NE);this.paths=r(oN);this.bLocation=r(DH);this.$log=r(ME);this.analytics=r(RE);this.issueApi=r(SD);this.userApi=r(bD);this.bookmarkGroupsApi=r(iB);this.hotlistApi=r(YC);this.butterBar=r(GJ);this.pageTitle=r(EY);this.dashboards=r(j5);this.routeParams=r(EK);this.appSearchState=r(bX);this.userAccess=r(AD);this.errorHandler=r(aK);this.statusMessages=r(gK);this.appEvents=r(FB);this.hotlistFridge=r(cD);this.activeSession=r(Bs);this.issueFullFridge=r(TE);
this.currentUserBookmarksFridge=r(hD);this.ANALYTICS_CATEGORY="dashboard";this.userEmail=this.activeSession.getUserEmail();this.groupId=this.routeParams.groupId||null;this.panels=[];this.hotlistChoices=[];this.hotlistMap={};this.isStarred=!1;this.bookmarkGroup=null;this.isAdmin=!1};Y(k5,Z);k5.\u0275dir=Z.\u0275dir;
k5.prototype.ngOnInit=function(){var a=this;this.userApi.getUserBookmark("BOOKMARK_GROUP",this.routeParams.groupId).then(function(){a.isStarred=!0;a.cdr.detectChanges()}).catch(function(){});this.loadBookmarkGroup().then(function(b){Qhd(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){Rhd(a,
b,function(c){return c+1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveUp.subscribe(function(b){Rhd(a,b,function(c){return c-1})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToTop.subscribe(function(b){Rhd(a,b,function(){return 0})}));this.subscriptions.add(this.appEvents.dashboardPanels.moveToBottom.subscribe(function(b){Rhd(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 WOb=function(a,b){var c=b.panelId;b=b.selectedIssues;if(a=Shd(a,c))a.selectedIssues=b!=null?b:[]},VOb=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)},Shd=function(a,b){return a.panels.find(function(c){return c.panelId===b})},Thd=function(a,b){a=a.panels.findIndex(function(c){return c.panelId===b});return a!==-1?a:void 0};g=k5.prototype;
g.fetchUserHotlists=function(){var a=this;Rf(iD(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];gj(d,c)||(d&&Fa(a.hotlistChoices,d),a.hotlistChoices.push(c),a.hotlistMap[c.hotlistId]=c,a.cdr.detectChanges())}}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
g.createHotlist=function(a){var b=this;var c=a.name;var d=a.successCallback;a=a.errorCallback;this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"createHotlist");Kq(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);Kq(b.butterBar,"Hotlist "+c+" created successfully.");b.hotlistChoices.push(e);b.hotlistMap[e.hotlistId]=e;b.appEvents.hotlistCreated.next();d(e);b.cdr.detectChanges()}).catch(a)};
g.loadHotlist=function(a){var b=this;var c=a.hotlistId;var d=a.successCallback;a=a.errorCallback;Kq(this.butterBar,"Loading hotlist "+c);this.hotlistMap[c]||this.hotlistApi.get(c).then(function(e){b.addHotlist(e);d(e);b.cdr.detectChanges()}).catch(a)};g.addHotlist=function(a){this.hotlistMap[a.hotlistId]||(this.hotlistMap[a.hotlistId]=a,this.hotlistChoices.push(a))};
g.loadHotlists=function(a){var b=this,c=new Set;a=l(a);for(var d=a.next();!d.done;d=a.next()){d=l(d.value.hotlistId||[]);for(var e=d.next();!e.done;e=d.next())e=e.value,this.hotlistMap[e]||c.has(e)||c.add(e)}c=l(c);for(a=c.next();!a.done;a=c.next())this.hotlistApi.get(a.value).then(function(f){b.hotlistFridge.announce(f);b.addHotlist(f);b.cdr.detectChanges()}).catch(function(f){(new Set([403,404])).has(f.status)||b.errorHandler.errorHandler(null,f)})};
g.sendBulkEditRequest=function(a,b){var c=this;if(a.length===1&&a[0].actions.length===1&&a[0].actions[0].fieldName==="readState"){var d=!!a[0].actions[0].value;b=l(this.panels);for(var e=b.next();!e.done;e=b.next()){e=l(e.value.selectedIssues);for(var f=e.next();!f.done;f=e.next())f.value.isRead=d}this.cdr.detectChanges();Kq(this.butterBar,"Marking "+a[0].issueIds.length+" issues  "+(d?"read":"unread")+"...",0);return VE(this.issueFullFridge,a[0].issueIds,{markRead:d,userActivityType:"MARK_AS_READ_OR_UNREAD"}).then(function(k){Kq(c.butterBar,
"Issues marked "+(d?"read":"unread")+".");for(var q=l(c.panels),v=q.next();!v.done;v=q.next()){v=l(v.value.selectedIssues);for(var A=v.next();!A.done;A=v.next()){var E=void 0;A.value.lastViewedTime=(E=k)!=null?E:null}}}).catch(function(k){for(var q=l(c.panels),v=q.next();!v.done;v=q.next()){v=l(v.value.selectedIssues);for(var A=v.next();!A.done;A=v.next())A=A.value,A.isRead=!!A.lastViewedTime&&A.lastViewedTime>=A.majorModifiedTime}c.errorHandler.errorHandler(null,k)}).finally(function(){c.cdr.detectChanges()})}e=
qOa(a).map(function(k){return k.fieldName});this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"bulkEdit",e.join(","));var h={bulkEditOps:a};Kq(this.butterBar,"Saving changes...",0);return this.issueApi.issueBulkEdit(h,b).then(function(k){for(var q=l([].concat(p(c.searchPanels),p(c.hotlistPanels))),v=q.next();!v.done;v=q.next()){v=v.value;var A=k;if(v.searchResults){v.searchResults=v.searchResults.clone();for(var E=0,H=l(v.searchResults.issues),L=H.next();!L.done;L=H.next()){L=L.value;if(A.affectedIssues[L.issueId]){var O=
A.affectedIssues[L.issueId];O=mgb(O,A.componentMap[Number(Ba(O.snapshot).componentId)]);O.selected=L.selected;v.searchResults.issues[E]=O;v.resultsLoaded.emit([v.searchResults.issues[E]])}E++}}}k.errors&&k.errors.length?(q=Bwa(k.errors),c.butterBar.showWarning("Failed to update issue(s) "+q+"."),c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"bulkEditError",""+k.errors.length)):(k=UKc(c.statusMessages,h))?Kq(c.butterBar,k):Kq(c.butterBar,"Saved "+rOa(a).length+" issue(s).")}).catch(function(k){c.errorHandler.errorHandler(null,
k)})};g.loadBookmarkGroup=function(){var a=this,b,c;return z(function(d){if(d.nextAddress==1)return Gf(d,2),B(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=Kf(d);cK(a.errorHandler,c);throw c;})};var Qhd=function(a,b){a.panels=(b.item||[]).map(function(c,d){return Uhd(a,c,d===0?0:void 0)})};
k5.prototype.removePanel=function(a){var b=this,c=Shd(this,a);c!=null&&(Kq(this.butterBar,"Saving changes...",0),a=hj(this.bookmarkGroup),a.item=a.item.filter(function(d){return!Vhd(b,c,d)}),Whd(this,a))};
var Rhd=function(a,b,c){b=Thd(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=hj(a.bookmarkGroup);var e,f=(e=a.bookmarkGroup)==null?void 0:e.item.findIndex(function(h){return Vhd(a,d,h)});f!==void 0&&(Paa(b.item,f,c),Whd(a,b))}}},Whd=function(a,b){a.bookmarkGroupsApi.update(b).then(function(c){a.bookmarkGroup=c;Xhd(a,a.bookmarkGroup.item);Kq(a.butterBar,"Bookmark group saved.",4E3);a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:a.bookmarkGroup.bookmarkGroupId});
a.cdr.detectChanges()},function(c){a.errorHandler.errorHandler(null,c)})},Vhd=function(a,b,c){switch(b.type){case "HOTLIST":return c.hotlistId===b.resourceId;case "SAVED_SEARCH":return c.savedSearchId===b.resourceId;default:return a.$log.warn("Unknown type of a panel: "+b.type),!1}},Yhd=function(a,b){return a.panels.find(function(c){return Vhd(a,c,b)})},Uhd=function(a,b,c){var d=null,e=null;switch(b.resourceType){case "HOTLIST":d="HOTLIST";e=b.hotlistId;break;case "SAVED_SEARCH":d="SAVED_SEARCH";
e=b.savedSearchId;break;default:a.$log.warn("Unsupported item: "+b)}a=a.dashboards;b=a.nextPanelId;a.nextPanelId++;return{panelId:b,resourceId:e,type:d,focusedRowIndex:c!=null?c:null,selectedIssues:[]}},Xhd=function(a,b){a.panels=b.map(function(c){var d;return(d=Yhd(a,c))!=null?d:Uhd(a,c)})};
k5.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)})};k5.prototype.editBookmarkGroup=function(){this.bLocation.setUrl(this.paths.editBookmarkGroup(this.bookmarkGroup.bookmarkGroupId))};
k5.\u0275fac=function(){var a;return function(b){return(a||(a=Re(k5)))(b||k5)}}();
k5.\u0275cmp=y({type:k5,selectors:[["dashboard-page"]],viewQuery:function(a,b){a&1&&(hh(G1,5),hh(E1,5));if(a&2){var c;lh(c=mh())&&(b.searchPanels=c);lh(c=mh())&&(b.hotlistPanels=c)}},standalone:!1,features:[Fh([NE]),Bg],decls:10,vars:4,consts:[[1,"a11y-only"],[1,"kd-dashboard-bar","kd-appbar","kd-buttonbar"],[1,"bv2-dashboard-header"],[3,"onSave","onCreateHotlist","onLoadHotlist","hotlistChoices","panels"],["role","main","tabindex","0",1,"bv2-view",3,"bFocus"],[1,"bv2-dashboard-title"],[3,"starMessage",
"unStarMessage","starred","disabled"],[3,"starMessage","unStarMessage","starred"],[1,"bv2-dashboard-title-text"],["type","button","aria-label","Bookmark group settings","matTooltip","Bookmark group settings",1,"bv2-edit-icon","bv2-view-resource-edit-button",3,"click"],[3,"starClicked","starMessage","unStarMessage","starred"],[3,"panel","isDashboardEditable","focusedRowIndex","savedSearchId","first","last"],[3,"panel","isDashboardEditable","focusedRowIndex","hotlistId","first","last"],[3,"focusedRowIndexChange",
"selectionChange","resultsLoaded","panel","isDashboardEditable","focusedRowIndex","savedSearchId","first","last"],[3,"focusedRowIndexChange","selectionChange","resultsLoaded","panel","isDashboardEditable","focusedRowIndex","hotlistId","first","last"]],template:function(a,b){a&1&&(J(0,"h2",0),R(1,"Dashboard"),K(),J(2,"div",1)(3,"div",2),R(4,"Bookmark groups dashboard"),K(),J(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)}),K()(),J(6,"div",4),F(7,UOb,8,2,"div"),Pg(8,ZOb,3,1,"div",null,Og),K());a&2&&(x(5),I("hotlistChoices",b.hotlistChoices)("panels",b.panels),x(),I("bFocus",!0),x(),G(b.bookmarkGroup?7:-1),x(),Qg(b.panels))},dependencies:[E_,fS,G1,E1,gO,zG,xG],encapsulation:2});var l5=function(){};l5.\u0275fac=function(a){return new (a||l5)};l5.\u0275mod=uf({type:l5});l5.\u0275inj=Dd({imports:[F_,gY,H1,F1,HC,hO,CG]});var Zhd=["editBookmarkGroupItemsContainer"],$hd=["bookmarkGroupName"],zPb=function(a){return{displayText:"Admins",values:a}},yPb=function(a){return[a]},m5=function(){Z.call(this);var a=this;this.routeParams=r(EK);this.location=r(DH);this.activeSession=r(Bs);this.butterBar=r(GJ);this.accessPolicyApi=r(rB);this.bookmarkGroupsApi=r(iB);this.hotlistApi=r(YC);this.paths=r(oN);this.appHistory=r(jZ);this.pageTitle=r(EY);this.userAccess=r(AD);this.errorHandler=r(aK);this.appEvents=r(FB);this.snackBar=r(DJ);
this.confirmationDialog=r(YJ);this.checkBeforeExit=r(UR);this.cdr=r(NE,{self:!0});this.documentationLinks=r(JJ);this.currentUserBookmarksFridge=r(hD);this.selectedTabIndex=0;this.accessPolicyUnderEdit=Tp();this.flattenedAccessPolicy=Tp();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);aid(this);bid(this);Promise.all([b,c]).then(function(){var d;(d=a.bookmarkGroupNameInput)==null||d.nativeElement.focus()});this.subscriptions.add(VR(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1));b=function(){aid(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(){bid(a)}))};Y(m5,Z);m5.\u0275dir=Z.\u0275dir;g=m5.prototype;g.ngOnInit=function(){this.location.hash()==="access"&&(this.selectedTabIndex=1)};g.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=(d=(b=this.tabs)==null?void 0:(c=b.get(a))==null?void 0:c.nativeElement.id)!=null?d:null;this.location.hash(e,!0)};g.back=function(){kZ(this.appHistory)};
g.isArchived=function(){return this.bookmarkGroup?this.bookmarkGroup.archived:!1};g.isSaving=function(){return this.isUpdating||this.isArchiving};g.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};g.hasUnsavedMetadataChanges=function(){return!gj(this.bookmarkGroup,this.bookmarkGroupUnderEdit)};g.hasUnsavedAccessPolicyChanges=function(){return!gj(this.flattenedAccessPolicy,this.accessPolicyUnderEdit)};
g.isEditDisabled=function(){return this.isSaving()||!this.isAdmin};g.revertMetadataChanges=function(){this.bookmarkGroupUnderEdit=hj(this.bookmarkGroup);this.error="";this.selectedHotlistIds=[cid(this.bookmarkGroup.item.filter(function(a){return a.hasOwnProperty("hotlistId")}))];did(this)};g.revertAccessPolicyChanges=function(){this.accessPolicyUnderEdit=hj(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};g.saveMetadata=function(){this.validate()&&this.doSaveMetadata()};
g.saveAccessPolicy=function(){var a=this;this.accessPolicyUnderEdit.admins.includes("USER:"+this.currentUserEmail)?this.doSaveAccessPolicy():this.confirmationDialog.open({title:"Change bookmark group admins",content:Xi("Warning: You may be removing yourself from the admins. Unless you are granted access via a group, you may lose the permission to edit the access settings"),isDestructive:!0,onConfirm:function(){a.doSaveAccessPolicy()}})};
g.validate=function(){if(this.bookmarkGroupUnderEdit.name==="")return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};g.archive=function(){var a=this;this.confirmationDialog.open({title:"Archive bookmark group",content:Xi("Do you want to archive this bookmark group?"),isDestructive:!0,onConfirm:function(){eid(a,"archive")}})};
g.unarchive=function(){var a=this;this.confirmationDialog.open({title:"Unarchive bookmark group",content:Xi("Do you want to unarchive this bookmark group?"),onConfirm:function(){eid(a,"unarchive")}})};
g.doSaveMetadata=function(){var a=this,b=this.bookmarkGroupUnderEdit,c=this.bookmarkGroup.bookmarkGroupId;this.snackBar.open("Saving bookmark group ID "+c,"dismiss",{duration:0});this.isUpdating=!0;this.bookmarkGroupsApi.update(b).then(function(d){a.snackBar.open("Bookmark group ID "+c+" was saved as "+a.bookmarkGroupUnderEdit.name,"dismiss",{duration:2E3});fid(a,d);a.appEvents.bookmarkGroupModified.next({bookmarkGroupId:c})}).catch(function(d){a.errorHandler.errorHandler(null,d)}).finally(function(){a.isUpdating=
!1})};
g.doSaveAccessPolicy=function(){var a=this;try{var b=Vp(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=Up(c);a.accessPolicyUnderEdit=hj(a.flattenedAccessPolicy);
a.loadUserAccess(a.bookmarkGroup.bookmarkGroupId)},function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isUpdating=!1})};
var eid=function(a,b){var c=hj(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});fid(a,d)}).catch(function(d){a.errorHandler.errorHandler(null,d)}).finally(function(){a.isArchiving=!1})};
m5.prototype.loadBookmarkGroup=function(a){var b=this;this.isLoading=!0;return this.bookmarkGroupsApi.get(a).then(function(c){fid(b,c);b.selectedHotlistIds=[cid(b.bookmarkGroup.item)];did(b);b.pageTitle.setTitle("Bookmark group: "+c.name);b.cdr.detectChanges()},function(c){b.errorHandler.errorHandler(null,c)}).finally(function(){b.isLoading=!1})};var fid=function(a,b){a.bookmarkGroup=b;a.bookmarkGroupUnderEdit=hj(a.bookmarkGroup)};
m5.prototype.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("BOOKMARK_GROUP",a).then(function(c){b.flattenedAccessPolicy=Up(c);b.accessPolicyUnderEdit=hj(b.flattenedAccessPolicy);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};m5.prototype.loadUserAccess=function(a){var b=this;return BD(this.userAccess,"admin","bookmarkGroups/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
var aid=function(a){Rf(iD(a.currentUserBookmarksFridge)).then(function(b){a.userHotlists=b;a.cdr.detectChanges()})},bid=function(a){a.userSavedSearches=null;Rf(iuc(a.currentUserBookmarksFridge)).then(function(b){a.userSavedSearches=b;did(a);a.cdr.detectChanges()})},did=function(a){if(a.userSavedSearches&&a.bookmarkGroupUnderEdit!=null){var b=gid(a.bookmarkGroupUnderEdit.item.filter(function(c){return c.hasOwnProperty("savedSearchId")}));a.savedSearchChoices=a.userSavedSearches.filter(function(c){return!b.includes(c.searchId)})}},
cPb=function(a,b){var c=Number(b);Ga(a.bookmarkGroupUnderEdit.item,function(e){return e.hotlistId===c});hid(a,c);var d;(d=a.editBookmarkGroupItemsContainer)==null||d.nativeElement.focus()},ePb=function(a,b){Ga(a.bookmarkGroupUnderEdit.item,function(d){return d.savedSearchId===b});did(a);var c;(c=a.editBookmarkGroupItemsContainer)==null||c.nativeElement.focus()},rPb=function(a,b){switch(b.resourceType){case "SAVED_SEARCH":return a.paths.viewSavedSearch(b.savedSearchId);case "HOTLIST":return Dq.viewHotlist.makeHref(b.hotlistId);
case "BOOKMARK_GROUP":return a.paths.viewBookmarkGroup(b.bookmarkGroupId);default:pb(b.resourceType)}},mPb=function(a,b){for(var c=l(Object.entries(b.newSelectionMap)),d=c.next(),e={};!d.done;e={id$jscomp$565:void 0},d=c.next()){var f=l(d.value);d=f.next().value;f=f.next().value;e.id$jscomp$565=kj(d);f&&!b.oldSelectionMap[e.id$jscomp$565]?(pPb(a,e.id$jscomp$565),e=a.userHotlists.find(function(h){return function(k){return k.hotlistId===h.id$jscomp$565}}(e)),a.bookmarkGroupUnderEdit.item.push({hotlistId:e.hotlistId,
name:e.name,resourceType:"HOTLIST"})):b.oldSelectionMap[e.id$jscomp$565]&&!f&&(hid(a,e.id$jscomp$565),Ga(a.bookmarkGroupUnderEdit.item,function(h){return function(k){return k.hotlistId===h.id$jscomp$565}}(e)))}},pPb=function(a,b){a.selectedHotlistIds[0].push(b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},hid=function(a,b){Fa(a.selectedHotlistIds[0],b);a.selectedHotlistIds=[a.selectedHotlistIds[0]]},iPb=function(a,b){gid(a.bookmarkGroupUnderEdit.item).indexOf(b.searchId)===-1&&a.bookmarkGroupUnderEdit.item.push({name:b.name,
resourceType:"SAVED_SEARCH",savedSearchId:b.searchId});setTimeout(function(){did(a)})},gid=function(a){return a?osa(a,"savedSearchId"):[]},cid=function(a){return osa(a,"hotlistId")},nPb=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)},oPb=function(a,
b){return a.hotlistApi.get(b.hotlistId).then(function(c){a.userHotlists.push(c);b.successCallback(c);return c},b.errorCallback)};m5.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:pb(a.resourceType)}};m5.\u0275fac=function(a){return new (a||m5)};
m5.\u0275cmp=y({type:m5,selectors:[["b-edit-bookmark-group"]],viewQuery:function(a,b){a&1&&(hh(Zhd,5),hh($hd,5),hh(JN,5,Te));if(a&2){var c;lh(c=mh())&&(b.editBookmarkGroupItemsContainer=c.first);lh(c=mh())&&(b.bookmarkGroupNameInput=c.first);lh(c=mh())&&(b.tabs=c)}},standalone:!1,features:[Fh([NE]),Bg],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&&(J(0,"div",3)(1,"div",4)(2,"div",5)(3,"button",6),N("click",function(){return b.back()}),M(4,"mat-icon",7),K(),F(5,$Ob,2,1,"button",8),F(6,aPb,2,1,"button",8),K()()(),J(7,"div",9),F(8,APb,46,35),K());a&2&&(x(5),G(b.isAdmin&&!b.isArchived()?5:-1),x(),G(b.isAdmin&&b.isArchived()?6:-1),x(2),G(!b.isLoading&&b.bookmarkGroup.bookmarkGroupId?8:-1))},dependencies:[FC,zG,xG,oG,Jx,Kx,ON,JN,KN,V0,JT,t_,TY,Ui,dy,
vy,ky,pG,sG,qG,rG,uG,IO],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 iid=["savedSearchNameInput"],GPb=function(a){return{displayText:"Admins",values:a}},FPb=function(a){return[a]},n5=function(){Z.call(this);var a=this;this.routeParams=r(EK);this.location=r(DH);this.accessPolicyApi=r(rB);this.savedSearchApi=r(fD);this.paths=r(oN);this.appHistory=r(jZ);this.butterBar=r(GJ);this.pageTitle=r(EY);this.documentationLinks=r(JJ);this.userAccess=r(AD);this.errorHandler=r(aK);this.snackBar=r(DJ);this.confirmationDialog=r(YJ);this.cdr=r(NE,{self:!0});this.appEvents=r(FB);
this.activeSession=r(Bs);this.checkBeforeExit=r(UR);this.selectedTabIndex=0;this.isDeleting=this.isUpdating=this.isAdmin=this.isLoading=!1;this.isReaderFieldValid=this.isAdminsFieldValid=!0;this.currentUserEmail=this.activeSession.getUserEmail();this.accessPolicyUnderEdit=Tp();this.flattenedAccessPolicy=Tp();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(VR(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1))};Y(n5,Z);n5.\u0275dir=Z.\u0275dir;g=n5.prototype;g.ngOnInit=function(){this.location.hash()==="access"&&(this.selectedTabIndex=1)};g.tabChange=function(a){this.selectedTabIndex=a;var b,c,d,e=(d=(b=this.tabs)==null?void 0:(c=b.get(a))==null?void 0:c.nativeElement.id)!=null?d:null;this.location.hash(e,!0)};
g.loadSavedSearch=function(a){var b=this;this.isLoading=!0;return this.savedSearchApi.get(a).then(function(c){b.savedSearch=c;b.savedSearchUnderEdit=hj(b.savedSearch);b.pageTitle.setTitle("Saved search: "+c.name)}).catch(function(c){b.errorHandler.errorHandler(null,c)}).finally(function(){b.isLoading=!1;b.cdr.detectChanges()})};
g.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("SAVED_SEARCH",a).then(function(c){b.flattenedAccessPolicy=Up(c);b.accessPolicyUnderEdit=hj(b.flattenedAccessPolicy);b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};g.loadUserAccess=function(a){var b=this;return BD(this.userAccess,"admin","savedSearches/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
g.isSaving=function(){return this.isUpdating||this.isDeleting};g.isEditDisabled=function(){return this.isSaving()||!this.isAdmin};g.back=function(){kZ(this.appHistory)};g.revertMetadataChanges=function(){this.savedSearchUnderEdit=hj(this.savedSearch);this.error=""};g.revertAccessPolicyChanges=function(){this.accessPolicyUnderEdit=hj(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};g.hasUnsavedMetadataChanges=function(){return!gj(this.savedSearch,this.savedSearchUnderEdit)};
g.hasUnsavedAccessPolicyChanges=function(){return!gj(this.flattenedAccessPolicy,this.accessPolicyUnderEdit)};g.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};
g.saveMetadata=function(){var a=this;this.validate()&&(this.snackBar.open("Save saved search ID "+this.savedSearchUnderEdit.searchId,"dismiss",{duration:0}),this.isUpdating=!0,this.savedSearchApi.update(this.savedSearchUnderEdit.searchId,this.savedSearchUnderEdit).then(function(b){a.snackBar.open("Saved search ID "+b.searchId+' was saved as "'+b.name+'"',"dismiss",{duration:0});a.savedSearch=b;a.savedSearchUnderEdit=hj(b);a.appEvents.savedSearchModified.next({savedSearchId:a.savedSearch.searchId})}).catch(function(b){a.errorHandler.errorHandler(null,
b)}).finally(function(){a.isUpdating=!1}))};g.validate=function(){if(this.savedSearchUnderEdit.name==="")return this.error="Error: You must fill out all required fields.",!1;this.error="";return!0};
g.saveAccessPolicy=function(){var a=this;this.accessPolicyUnderEdit.admins.includes("USER:"+this.currentUserEmail)?this.doSaveAccessPolicy():this.confirmationDialog.open({title:"Change saved search admins",content:Xi("Warning: You may be removing yourself from the admins. Unless you are granted access via a group, you may lose the permission to edit the access settings"),isDestructive:!0,onConfirm:function(){a.doSaveAccessPolicy()}})};
g.doSaveAccessPolicy=function(){var a=this;try{var b=Vp(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=Up(c);a.accessPolicyUnderEdit=hj(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(Ro(c),0)}).finally(function(){a.isUpdating=!1})};g.delete=function(){var a=this;this.confirmationDialog.open({title:"Delete saved search",content:Xi("Do you want to delete this saved search?"),isDestructive:!0,onConfirm:function(){a.doDelete()}})};
g.doDelete=function(){var a=this;this.snackBar.open("Deleting saved search "+this.savedSearch.name,"dismiss",{duration:0});this.isDeleting=!0;this.savedSearchApi.delete(this.savedSearch.searchId).then(function(){a.snackBar.open("Deleted saved search "+a.savedSearch.name,"dismiss",{duration:0});a.appEvents.savedSearchModified.next({savedSearchId:a.savedSearch.searchId,action:"delete"});BCc(a.location,"/")}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.isDeleting=!1})};
n5.\u0275fac=function(a){return new (a||n5)};
n5.\u0275cmp=y({type:n5,selectors:[["b-edit-saved-search"]],viewQuery:function(a,b){a&1&&(hh(iid,5),hh(JN,5,Te));if(a&2){var c;lh(c=mh())&&(b.savedSearchName=c.first);lh(c=mh())&&(b.tabs=c)}},standalone:!1,features:[Fh([NE]),Bg],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&&(J(0,"div",1)(1,"div",2)(2,"div",3)(3,"button",4),N("click",function(){return b.back()}),M(4,"mat-icon",5),K(),F(5,BPb,2,1,"button",6),K()()(),J(6,"div",7),F(7,CPb,3,0,"div",
8),F(8,HPb,50,34),K());a&2&&(x(5),G(b.isAdmin?5:-1),x(2),G(b.isLoading||b.savedSearch?-1:7),x(),G(!b.isLoading&&b.savedSearch?8:-1))},dependencies:[FC,zG,xG,oG,Jx,Kx,ON,JN,KN,V0,Ui,dy,vy,ky,IO],encapsulation:2});var jid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(jid,n);jid.prototype.getSloId=function(){return xk(this,1)};jid.prototype.getSloId_asLegacyNumberOrString=function(){return Um(this,1)};jid.prototype.setSloId=function(a){return Xl(this,1,a)};var kid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(kid,n);g=kid.prototype;g.getAuthor=function(){return W(this,Gj,1)};g.setAuthor=function(a){X(this,Gj,1,a)};g.hasAuthor=function(){return tk(this,Gj,1)};g.getTimestamp=function(){return W(this,bk,2)};g.setTimestamp=function(a){return X(this,bk,2,a)};g.hasTimestamp=function(){return tk(this,bk,2)};g.getAdd=function(){return W(this,gp,3)};g.setAdd=function(a){return X(this,gp,3,a)};
g.getRemove=function(){return W(this,gp,4)};g.setRemove=function(a){return X(this,gp,4,a)};g.getAddMask=function(){return W(this,fo,5)};g.getMutableAddMask=function(){return Cu(this,fo,5)};g.setAddMask=function(a){return X(this,fo,5,a)};g.getRemoveMask=function(){return W(this,fo,6)};g.getMutableRemoveMask=function(){return Cu(this,fo,6)};g.setRemoveMask=function(a){return X(this,fo,6,a)};g.getFieldUpdatesList=function(){return Sj(this,ouc,7,Bj())};var lid=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lid,n);var o5=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,o5.messageId)};Y(o5,n);o5.prototype.getIt=function(){return W(this,lid,1,Nc)};o5.prototype.setIt=function(a){return X(this,lid,1,a,Nc)};o5.messageId="b.ListSloUpdatesResponse";var p5=function(){this.executor=r(QA);this.bCacheFactory=r(QC);this.sloHistories=this.bCacheFactory.get("slo_histories-second-level-cache")||this.bCacheFactory.create("slo_histories-second-level-cache",{capacity:25})};p5.prototype.get=function(a){var b=this.sloHistories.get(String(a));return b!==void 0?b:this.sloHistories.put(String(a),mid(this,a))};
var mid=function(a,b){var c=(new jid).setSloId(Number(b));return a.executor.post({url:"action/slos/"+b+"/updates",body:c,responseConstructor:o5}).then(function(d){d=d.getIt();return{updates:Sj(d,kid,1,Bj()).map(Mya)}})};p5.prototype.getUncached=function(a){this.invalidateCache(a);return this.get(a)};p5.prototype.invalidateCache=function(a){this.sloHistories.remove(String(a))};p5.\u0275fac=function(a){return new (a||p5)};p5.\u0275prov=Cd({token:p5,factory:p5.\u0275fac,providedIn:"root"});var RPb=function(a){return{displayText:"Admins",values:a}},QPb=function(a){return[a]},q5=function(){var a=r(Bs),b=r(UR);Z.call(this);var c=this;this.routeParams=r(EK);this.bLocation=r(DH);this.appHistory=r(jZ);this.butterBar=r(GJ);this.pageTitle=r(EY);this.documentationLinks=r(JJ);this.userAccess=r(AD);this.accessPolicyApi=r(rB);this.sloApi=r(LF);this.sloUpdatesApi=r(p5);this.sloUpdatesService=r(j2);this.errorHandler=r(aK);this.matDialogService=r(RJ);this.analytics=r(RE);this.confirmationDialogService=
r(YJ);this.appEvents=r(FB);this.editableAccessPolicy=Tp();this.flattenedAccessPolicy=Tp();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(VR(b,function(){return c.hasUnsavedChanges()},!1));b=this.routeParams.sloId;this.resourceName=mn("SLO",
kj(b));if(this.sloEnabled=a.isInternalSession())nid(this,b),this.loadUserAccess(b),this.loadAccessPolicy(b),oid(this,b);this.alertState={getValue:function(){return c.editableCopy?c.editableCopy.alertState==="ON":!1},getSavedValue:function(){return c.slo?c.slo.alertState==="ON":!1},setValue:function(d){c.editableCopy&&(c.editableCopy.alertState=d?"ON":"OFF")}};this.currentUserEmail=a.getUserEmail()};Y(q5,Z);q5.\u0275dir=Z.\u0275dir;
q5.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)};q5.prototype.ngOnInit=function(){this.bLocation.hash()==="access"&&(this.selectedTabIndex=1)};q5.prototype.updateCollection=function(a){this.editableCopy&&(this.editableCopy.elements=a)};
var nid=function(a,b){a.isLoading=!0;a.sloApi.get(b).then(function(c){a.slo=c;a.slo.elements||(a.slo.elements=[]);a.editableCopy=hj(a.slo);a.pageTitle.setTitle("SLO: "+c.name)}).catch(function(c){a.errorHandler.errorHandler(null,c)}).finally(function(){a.isLoading=!1})};
q5.prototype.loadAccessPolicy=function(a){var b=this;this.accessPolicyApi.get("SLO",Number(a)).then(function(c){b.flattenedAccessPolicy=Up(c);b.editableAccessPolicy=hj(b.flattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)})};var pid=function(a,b){return a.sloUpdatesApi.get(b).then(function(c){a.historyDiffs=c.updates.map(function(d){return $dd(a.sloUpdatesService,d)})}).catch(function(c){a.errorHandler.errorHandler(null,c)})};g=q5.prototype;
g.loadUserAccess=function(a){var b=this;BD(this.userAccess,"admin",mn("SLO",kj(a))).then(function(c){b.isAdminInternal=c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};g.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()||this.hasUnsavedAccessPolicyChanges()};g.hasUnsavedMetadataChanges=function(){return!gj(this.slo,this.editableCopy)};g.hasUnsavedAccessPolicyChanges=function(){return!gj(this.flattenedAccessPolicy,this.editableAccessPolicy)};
g.saveMetadata=function(){var a=this;qid(this.slo.elements,this.editableCopy.elements)?this.save():this.confirmationDialogService.open({title:"Save SLO changes?",content:Zi([Xi("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."),$i("br"),$i("br"),Xi("Please combine changes into as few updates as possible.")]),onConfirm:function(){a.save()},onDismiss:uz})};
var LPb=function(a,b){if(!a.hasUnsavedMetadataChanges()){var c=function(){a.editableCopy.isArchived=b;a.save()};b?a.confirmationDialogService.open({title:"Archive SLO?",content:Xi("Archiving this SLO will prevent new usages of the SLO, and will hide the SLO from most searches."),onConfirm:c,onDismiss:uz}):c()}},qid=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};
q5.prototype.save=function(){var a=this,b=this.editableCopy;Kq(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.';qid(a.slo.elements,a.editableCopy.elements)||(d+=" Propagating this change may take several hours.");Kq(a.butterBar,d);a.slo=c;a.slo.elements||(a.slo.elements=[]);a.editableCopy=hj(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})};q5.prototype.saveAccessPolicy=function(){var a=this;this.isRevokingAdmin()?this.confirmationDialogService.open({title:"Change SLO admins",content:Xi("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:uz}):this.doSaveAccessPolicy()};
q5.prototype.doSaveAccessPolicy=function(){var a=this;try{var b=Vp(this.editableAccessPolicy)}catch(c){b="An unknown problem occurred";c instanceof Error&&(b=c.message);this.butterBar.showWarning(b);return}this.isUpdating=!0;Kq(this.butterBar,"Saving access settings...");this.accessPolicyApi.update("SLO",this.slo.sloId,b).then(function(c){Kq(a.butterBar,"Access settings saved.");a.flattenedAccessPolicy=Up(c);a.editableAccessPolicy=hj(a.flattenedAccessPolicy);a.loadUserAccess(a.slo.sloId);a.analytics.trackEvent("editSlo",
"updateAccessPolicy")},function(c){a.butterBar.showWarning(Ro(c),0)}).finally(function(){a.isUpdating=!1})};q5.prototype.isRevokingAdmin=function(){return this.isRevokingDirectAdmin()};
var oid=function(a,b){pid(a,b).then(function(){if(a.historyDiffs&&a.historyDiffs.length){var c=a.historyDiffs[0],d=a.historyDiffs[a.historyDiffs.length-1];c.author&&zj(c.author)==="buganizer-system@google.com"&&(a.isImportedFromBugScope=!0);d.author&&zj(d.author)==="buganizer-system@google.com"&&(a.isUneditedFromBugScope=!0)}})};g=q5.prototype;
g.isRevokingDirectAdmin=function(){if(gj(this.flattenedAccessPolicy.admins,this.editableAccessPolicy.admins))return!1;var a="USER:"+this.currentUserEmail;return this.flattenedAccessPolicy.admins.includes(a)&&!this.editableAccessPolicy.admins.includes(a)};
g.revertMetadataChanges=function(){var a=this;qid(this.slo.elements,this.editableCopy.elements)?this.editableCopy=hj(this.slo):this.confirmationDialogService.open({title:"Revert SLO changes?",content:Zi([Xi("Revert all changes to this SLO?")]),onConfirm:function(){a.editableCopy=hj(a.slo)},onDismiss:uz})};g.revertAccessPolicyChanges=function(){this.editableAccessPolicy=hj(this.flattenedAccessPolicy);this.appEvents.contactChipsRevertChanges.next()};g.isSaving=function(){return this.isUpdating};
g.back=function(){kZ(this.appHistory)};g.isEditDisabled=function(){return!this.editableCopy||this.isSaving()||!this.isAdmin()};g.isAdmin=function(){return this.isAdminInternal};g.showUpdateHistoryModal=function(){var a=this;pid(this,this.slo.sloId).then(function(){a.matDialogService.open(h4,{width:"600px",data:{updateDiffs:a.historyDiffs}});a.analytics.trackEvent("updateHistoryModal","open");a.analytics.trackEvent("editSlo","viewHistory")})};q5.\u0275fac=function(a){return new (a||q5)};
q5.\u0275cmp=y({type:q5,selectors:[["edit-slo-page"]],viewQuery:function(a,b){a&1&&hh(JN,5,Te);if(a&2){var c;lh(c=mh())&&(b.tabs=c)}},standalone:!1,features:[Bg],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&&(J(0,"div",1)(1,"div",2)(2,"b-button",3),N("onAction",function(){return b.back()}),M(3,"b-icon",4),K()()(),J(4,"div",5),F(5,IPb,2,0,"div",6),F(6,SPb,55,37,"div"),K());a&2&&(x(5),G(b.isLoading?
5:-1),x(),G(!b.isLoading&&b.slo&&b.slo.sloId&&b.editableCopy?6:-1))},dependencies:[AG,ly,Ui,dy,ey,vy,ky,iy,eL,ON,JN,KN,IO,gM,hM,c2,yN],encapsulation:2});var r5=function(){Z.apply(this,arguments);var a=this;this.contextSensitiveRegistry=r(LK);this.issueFullFridge=r(TE);this.issuePicker=r(dR);this.snackBar=r(DJ);this.imageUrls=r(YM);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(C(function(b){return{path:"/issues",params:{q:"blockedbyid:"+b}}}));this.issue$=this.id$.pipe(xg(function(b){return b?
a.issueFullFridge.watch(b):Nf(void 0)}));this.blockingIds$=this.issue$.pipe(C(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockingIssueId)!=null?c:[]}));this.issuesBeingBlocked$=this.blockingIds$.pipe(xg(function(b){return a.issueFullFridge.watchSet(b)}));this.blockedAndOpen$=this.issuesBeingBlocked$.pipe(C(function(b){return b.filter(xl)}));this.blockedAndOpenIds$=this.blockedAndOpen$.pipe(C(function(b){return b.map(function(c){return String(c.issueId)})}));this.blockedAndClosed$=this.issuesBeingBlocked$.pipe(C(function(b){return b.filter(function(c){return awa(c)})}));
this.blockedAndClosedIds$=this.blockedAndClosed$.pipe(C(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(){rid(a,b)},title:"Remove this relationship",icon:"clear"}]};this.didChooseBlocking=function(b){var c;return z(function(d){if(d.nextAddress==1)return B(d,Rf(a.id$),2);c=d.yieldResult;return c==null?d.return():B(d,a.issueFullFridge.addBlocking(c,
b).catch(a.gotErr),0)})};this.gotErr=function(b){a.snackBar.open(Ro(b)||"Error with network request","close",{panelClass:"error"})}};Y(r5,Z);r5.\u0275dir=Z.\u0275dir;var TPb=function(a){a.issuePicker.open({title:"Add Blocking",allowMultipleIds:!0,edgeType:"blocking"},a.didChooseBlocking)},rid=function(a,b){var c;z(function(d){if(d.nextAddress==1)return B(d,Rf(a.id$),2);c=d.yieldResult;return c==null?d.return():B(d,a.issueFullFridge.removeBlocking(c,[String(b)]).catch(a.gotErr),0)})};
r5.\u0275fac=function(){var a;return function(b){return(a||(a=Re(r5)))(b||r5)}}();
r5.\u0275cmp=y({type:r5,selectors:[["ng-component"]],standalone:!1,features:[Bg],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&&(J(0,"section",0),F(1,gQb,2,1),U(2,"async"),K(),F(3,hQb,
2,0,"aside",1),U(4,"async"));if(a&2){var c;x();G((c=V(2,2,b.blockingIds$))?1:-1,c);x(2);G(V(4,4,b.thinking$)?3:-1)}},dependencies:[xC,oG,Jx,Kx,zG,xG,yN,ZT,Tv],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 s5=function(){};s5.\u0275fac=function(a){return new (a||s5)};s5.\u0275mod=uf({type:s5});s5.\u0275inj=Dd({imports:[HC,jC,pJ,Ay,By,BG,QN,CG,CQ,tJ,yH,AN,CW]});var t5=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,t5.messageId)};Y(t5,n);t5.prototype.getIssueId=function(){return xk(this,1,void 0,Nc)};t5.prototype.getIssueId_asLegacyNumberOrString=function(){return Iu(this,1,void 0,Nc)};t5.prototype.getIssueId_asString=function(){return sk(this,1,void 0,Nc)};t5.prototype.setIssueId=function(a){return Uk(this,1,a,void 0,Nc)};t5.messageId="b.MonorailIssueRedirectRequest";var u5=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,u5.messageId)};Y(u5,n);u5.prototype.getUrl=function(){return W(this,HA,1,Nc)};u5.prototype.setUrl=function(a){return X(this,HA,1,a,Nc)};u5.prototype.hasUrl=function(){return tk(this,HA,1,Nc)};u5.messageId="b.MonorailIssueRedirectResponse";var v5=function(){this.executor=r(PA)},sid=function(a,b){b=(new t5).setIssueId(b);return a.executor.post({url:"action/monorailIssueRedirect",body:b,responseConstructor:u5}).pipe(C(function(c){return gva(c.getUrl())}),hg(function(){return Nf(null)}))};v5.\u0275fac=function(a){return new (a||v5)};v5.\u0275prov=Cd({token:v5,factory:v5.\u0275fac,providedIn:"root"});var w5=function(){Z.apply(this,arguments);this.data=r(QJ)};Y(w5,Z);w5.\u0275dir=Z.\u0275dir;w5.\u0275fac=function(){var a;return function(b){return(a||(a=Re(w5)))(b||w5)}}();
w5.\u0275cmp=y({type:w5,selectors:[["b-tailwind-info-dialog"]],standalone:!1,features:[Bg],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&&(J(0,"h2",0),R(1,"AI suggested fix steps"),K(),J(2,"mat-dialog-content",1)(3,"div",2)(4,"div",3)(5,"h3",4),R(6,"Prompt:"),K(),J(7,"p",5),R(8),K()(),Pg(9,qQb,5,3,"div",6,Og),K()(),J(11,"mat-dialog-actions",7)(12,"button",8),R(13,"Close"),K()());a&2&&(x(8),T(" ",b.data.prompt," "),x(),Qg(b.data.steps))},dependencies:[oG,Jx,SJ,
UJ,WJ,VJ,Yv],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 x5=function(){var a=this;this.formatter=r(sN);this.llmSuggestedBugFixService=r(iT);this.analytics=r(RE);this.domSafe=r(UK);this.dialog=r(RJ);this.dialogConfig={minWidth:"300px",maxWidth:"75vw",maxHeight:"80vh"};this.runResults$=this.llmSuggestedBugFixService.runForCurrentIssue$.pipe(C(function(b){return b==null?void 0:b.results}));this.trajectory$=this.runResults$.pipe(C(function(b){return b==null?void 0:b.trajectory}));this.problemIdentification$=this.runResults$.pipe(xg(function(b){var c,d,
e,f;return z(function(h){return h.nextAddress==1?B(h,tid(a,(f=(c=b)==null?void 0:(d=c.summary)==null?void 0:(e=d.problemIdentificationSection)==null?void 0:e.entries)!=null?f:[]),2):h.return(h.yieldResult)})}));this.solution$=this.runResults$.pipe(xg(function(b){var c,d,e,f;return z(function(h){return h.nextAddress==1?B(h,tid(a,(f=(c=b)==null?void 0:(d=c.summary)==null?void 0:(e=d.solutionSection)==null?void 0:e.entries)!=null?f:[]),2):h.return(h.yieldResult)})}));this.codeChange$=this.runResults$.pipe(xg(function(b){var c,
d,e,f;return z(function(h){return h.nextAddress==1?B(h,tid(a,(f=(c=b)==null?void 0:(d=c.summary)==null?void 0:(e=d.codeChangeSection)==null?void 0:e.entries)!=null?f:[]),2):h.return(h.yieldResult)})}));this.vm$=Uf({runResults:this.runResults$,problemIdentificationSummaries:this.problemIdentification$,solutionSummaries:this.solution$,codeChangeSummaries:this.codeChange$,trajectory:this.trajectory$})},tid=function(a,b){var c,d;return z(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(C(function(h){var k,q;return(q=h==null?void 0:(k=h.markdownFormat)==null?void 0:k.content)!=null?q:null}));return Rf(f)}),B(e,Promise.all(c),2);d=e.yieldResult;return e.return(d.filter(Qj))})};x5.prototype.handleViewInCritique=function(a){a&&(this.domSafe.openInNewTab("https://critique.corp.google.com/"+a),this.analytics.trackEvent("tailwind","viewInCritique",this.issueId))};
x5.prototype.openTailwindInfoDialog=function(a){this.analytics.trackEvent("tailwind","openTrajectoryDialog",this.issueId);this.dialog.open(w5,Object.assign({},{data:a},this.dialogConfig))};x5.\u0275fac=function(a){return new (a||x5)};
x5.\u0275cmp=y({type:x5,selectors:[["b-bug2code-sidebar"]],inputs:{issueId:"issueId"},standalone:!1,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&&(J(0,"div",0),F(1,BQb,4,4),U(2,"async"),K());if(a&2){var c;x();G((c=V(2,1,b.vm$))?1:-1,c)}},dependencies:[FC,oG,Jx,xG,Tv],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 uid=["container"],y5=function(){var a=this;this.appEvents=r(FB);this.analytics=r(RE);this.helpMeFixService=r(mT);this.llmSuggestedBugFixService=r(iT);this.contextSensitiveRegistry=r(LK);this.helpMeFixApi=r(jT);this.formatter=r(sN);this.isTailwindEnabledForCurrentIssue$=this.llmSuggestedBugFixService.isEnabledForCurrentIssue$;this.llmResponseMarkdown$=this.helpMeFixService.issueHelpMeFix$.pipe(xg(function(b){return b!=null&&b.response?a.formatter.format({comment:b.response,formattingMode:"MARKDOWN",
audience:"INTERNAL",idPrefix:"help_me_fix"}):Nf(null)}),C(function(b){var c;return b?{content:(c=b.markdownFormat)==null?void 0:c.content}:null}));this.containerScrolled=this.votedThumbsDown=this.votedThumbsUp=!1;this.issueId$=this.contextSensitiveRegistry.getIssueId();this.isSidebarExpanded=!1};
y5.prototype.ngOnInit=function(){var a=this,b,c,d,e;return z(function(f){if(f.nextAddress==1)return B(f,Rf(a.helpMeFixService.issueHelpMeFix$),2);if(f.nextAddress!=3)return b=f.yieldResult,B(f,Rf(a.issueId$),3);c=f.yieldResult;a.analytics.trackEvent("helpMeFix","open","sidebarOpened-"+((d=b)==null?void 0:d.issueCategory));a.analytics.trackEvent("helpMeFix","openOnIssueIdJson",JSON.stringify({issueCategory:(e=b)==null?void 0:e.issueCategory,issueId:c}));Lf(f)})};
y5.prototype.closeSidebar=function(){var a=this,b,c;return z(function(d){if(d.nextAddress==1)return a.appEvents.closeHelpMeFixSidebar.next(),B(d,Rf(a.helpMeFixService.issueHelpMeFix$),2);b=d.yieldResult;a.analytics.trackEvent("helpMeFix","close","sidebarClosed-"+((c=b)==null?void 0:c.issueCategory));Lf(d)})};
var KQb=function(a){var b,c,d,e,f;return z(function(h){if(h.nextAddress==1)return B(h,Rf(a.helpMeFixService.issueHelpMeFix$),2);if(h.nextAddress!=3)return b=h.yieldResult,c=Number,B(h,Rf(a.issueId$),3);d=c(h.yieldResult);a.votedThumbsUp=!0;((e=b)==null?0:e.responseId)&&a.helpMeFixApi.sendFeedback(d,{issueId:d,responseId:b.responseId,userFeedback:{sentiment:"SENTIMENT_POSITIVE"}}).pipe(mg(1)).subscribe();a.analytics.trackEvent("helpMeFix","thumbsUpOnIssueIdJson",JSON.stringify({issueCategory:(f=b)==
null?void 0:f.issueCategory,issueId:d}));Lf(h)})},LQb=function(a){var b,c,d,e,f;return z(function(h){if(h.nextAddress==1)return B(h,Rf(a.helpMeFixService.issueHelpMeFix$),2);if(h.nextAddress!=3)return b=h.yieldResult,c=Number,B(h,Rf(a.issueId$),3);d=c(h.yieldResult);a.votedThumbsDown=!0;((e=b)==null?0:e.responseId)&&a.helpMeFixApi.sendFeedback(d,{issueId:d,responseId:b.responseId,userFeedback:{sentiment:"SENTIMENT_NEGATIVE"}}).pipe(mg(1)).subscribe();a.analytics.trackEvent("helpMeFix","thumbsDownOnIssueIdJson",
JSON.stringify({issueCategory:(f=b)==null?void 0:f.issueCategory,issueId:d}));Lf(h)})};y5.\u0275fac=function(a){return new (a||y5)};
y5.\u0275cmp=y({type:y5,selectors:[["help-me-fix-sidebar"]],viewQuery:function(a,b){a&1&&hh(uid,5);if(a&2){var c;lh(c=mh())&&(b.container=c.first)}},standalone:!1,decls:17,vars:15,consts:[["container",""],[1,"container",3,"scroll"],[1,"flex-kids-x","space-between"],[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","toggle expand sidebar",1,"expand-button",3,"matTooltip"],
["type","button","mat-icon-button","","aria-label","close sidebar","matTooltip","Close sidebar",1,"close-button",3,"click"],["svgIcon","close"],[1,"padded-x","padded-bottom"],[1,"no-issue-selected"],["type","button","mat-icon-button","","aria-label","toggle expand sidebar",1,"expand-button",3,"click","matTooltip"],["svgIcon","expand_all_24px"],["svgIcon","collapse_all_24px"],[3,"issueId"],[1,"card"],[3,"content"],[1,"feedback","flex-kids-y"],[1,"flex-kids-x","align-items-center","justify-flex-end",
"gap-s"],[1,"flex-kids-x","gap-xs"],["type","button","mat-icon-button","","aria-label","vote this was helpful",1,"small",3,"click","disabled"],["svgIcon","thumb_up_24px",1,"icon-s"],["type","button","mat-icon-button","","aria-label","vote this was not helpful",1,"small",3,"click","disabled"],["svgIcon","thumb_down_24px",1,"icon-s"],[1,"flex-kids-x","gap-s","justify-flex-end"],[1,"disclaimer","type-s","muted","border-top","margin-s-top","padded-s-top"],["href","http://go/code-ai-policy","target","_blank",
1,"hover-link"],["href","http://go/help-me-fix-feedback","target","_blank"]],template:function(a,b){if(a&1){var c=t();$g(0);U(1,"async");J(2,"div",1,0);N("scroll",function(){u(c);b.containerScrolled=b.container.nativeElement.scrollTop===0?!1:!0;return w()});J(4,"header",2)(5,"div",3);M(6,"mat-icon",4);J(7,"span",5);R(8);K()();J(9,"div",6);F(10,EQb,3,2,"button",7);J(11,"button",8);N("click",function(){u(c);return w(b.closeSidebar())});M(12,"mat-icon",9);K()()();F(13,GQb,2,3)(14,NQb,7,6,"div",10);F(15,
OQb,2,0,"div",11);U(16,"async");K()}a&2&&(a=ah(V(1,10,b.isTailwindEnabledForCurrentIssue$)),x(2),uh("expanded",b.isSidebarExpanded),x(2),vh(a?"tailwind-header padded-s":"padded padded-s-bottom"),uh("elevated",b.containerScrolled),x(4),wh(a?"AI generated fix":"Help me fix"),x(2),G(a?-1:10),x(3),G(a?13:14),x(2),G(V(16,13,b.issueId$)?-1:15))},dependencies:[x5,FC,yN,oG,Kx,sO,xG,Tv],styles:[".container[_ngcontent-%COMP%]{display:block;width:400px;height:100%;overflow-y:scroll}.container.expanded[_ngcontent-%COMP%]{width:600px}.expand-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{-webkit-transform:rotate(90deg);transform:rotate(90deg)}header[_ngcontent-%COMP%]{background-color:#fff;background-color:var(--dialog-bg);position:-webkit-sticky;position:sticky;top:0;z-index:2}.card[_ngcontent-%COMP%]{margin-bottom:24px;overflow-wrap:break-word}.feedback[_ngcontent-%COMP%]   button.voted[_ngcontent-%COMP%]{color:#1a73e8;color:var(--text-primary)}.tailwind-header[_ngcontent-%COMP%]   .ai-icon[_ngcontent-%COMP%]{color:#9334e6;color:var(--purple-text)}"]});var XQb=function(a,b){return b.issueId},vid={BLOCKED_BY_ISSUES:"blocked_by",PARENT_ISSUES:"parent"},z5=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=r(TE);this.router=r(vC);this.STATUS_JS_TERSE=Loc;this.ListIssuesHovercardMode=vid;this.mode="blocked_by";this.currentIssueId="";this.issueIds$=new sg(1);this.init=new sg(1);this.issues$=this.issueIds$.pipe(eg(Qj),xg(function(b){return a.issueFullFridge.watchSet(b)}),C(function(b){return a.mode==="parent"?b.filter(dwa):b.filter(xl)}))};
Y(z5,Z);z5.\u0275dir=Z.\u0275dir;z5.prototype.priorityClass=function(a){switch(a){case "P0":return"high p0";case "P1":return"high";default:return"low"}};var UQb=function(a){var b;(b=a.hovercardInstance)==null||b.closeHovercard$.next();a.issueIds$.subscribe(function(c){c=c!=null?c:[];for(var d="id:(",e=l(c.entries()),f=e.next();!f.done;f=e.next()){var h=l(f.value);f=h.next().value;h=h.next().value;d+=h;d=f<c.length-1?d+"|":d+")"}c={q:d};a.router.navigate([Dq.listIssues.makeHref()],{queryParams:c})})};
z5.prototype.ngOnInit=function(){var a=this;this.issues$.pipe(yg(this.destroyed$)).subscribe(function(){a.init.next()})};nd.Object.defineProperties(z5.prototype,{issueIds:{configurable:!0,enumerable:!0,set:function(a){this.issueIds$.next(a)}}});z5.\u0275fac=function(){var a;return function(b){return(a||(a=Re(z5)))(b||z5)}}();
z5.\u0275cmp=y({type:z5,selectors:[["b-list-issues-card"]],inputs:{mode:"mode",currentIssueId:"currentIssueId",issueIds:"issueIds",hovercardInstance:"hovercardInstance"},outputs:{init:"init"},standalone:!1,features:[Bg],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,YQb,8,4,"div",0),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.issues$))?0:-1,c)}},dependencies:[FC,xC,oG,Jx,Tv],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 A5=function(){this.issueFullFridge=r(TE);this.paths=r(oN);this.ancestors=new Map;this.issueId="";this.ListIssuesHovercardMode=vid;this.reorderedAncestors=[];this.issueIdToTitle=new Map;this.multiParentIssueIds=[]};A5.prototype.ngOnChanges=function(a){var b=this;a.ancestors&&wid(this).then(function(c){b.issueIdToTitle=c})};A5.prototype.getIssueLink=function(a){return Fq(a)};
var wid=function(a){var b,c,d;return z(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=sj(a.reorderedAncestors);return d.length===0?e.return(new Map):e.return(Rf(Uf(d.map(function(f){return a.issueFullFridge.watch(f)})).pipe(C(function(f){return f.filter(Qj)}),C(function(f){var h=new Map;f=l(f);
for(var k=f.next();!k.done;k=f.next())k=k.value,h.set(k.issueId,k.snapshot[0].title);return h}))))})};A5.\u0275fac=function(a){return new (a||A5)};
A5.\u0275cmp=y({type:A5,selectors:[["ancestors-breadcrumbs"]],inputs:{ancestors:"ancestors",issueId:"issueId"},standalone:!1,features:[ov],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,aRb,6,5),Pg(2,bRb,3,5,null,null,Og));a&2&&(x(),G(b.multiParentIssueIds.length>1?1:-1),x(),Qg(b.reorderedAncestors))},dependencies:[FC,pO,DI,EI,JI,FI,z5],styles:["mat-icon[_ngcontent-%COMP%]{vertical-align:middle}[_nghost-%COMP%]     a{color:#202124;color:var(--text-default);line-height:22px;vertical-align:middle}[_nghost-%COMP%]     a.muted{color:#5f6368;color:var(--text-muted)}[_nghost-%COMP%]     a:hover, [_nghost-%COMP%]     a:focus{color:#1a73e8;color:var(--link);text-decoration:underline}.chevron[_ngcontent-%COMP%]{width:18px}.chevron.last[_ngcontent-%COMP%]{margin-right:-3px}"]});var B5=function(){var a=this;this.issueFullFridge=r(TE);this.hotlistFridge=r(cD);this.hotlistPicker=r(jS);this.issueId$=new sg(1);this.issue$=this.issueId$.pipe(xg(function(b){return a.issueFullFridge.watch(b)}));this.hotlistsOnIssue$=this.issue$.pipe(C(function(b){var c;return(c=b==null?void 0:b.snapshot[0].hotlistId)!=null?c:[]}));this.count$=this.hotlistsOnIssue$.pipe(C(function(b){return b==null?void 0:b.length}),wg(0));this.label$=this.count$.pipe(C(function(b){return b>0?"Hotlists ("+b+")":
"Hotlists"}));this.isDisabled$=this.hotlistFridge.saving$;this.HOTKEYS=sp};B5.prototype.onClick=function(){cYc(this.hotlistPicker,this.issue$)};nd.Object.defineProperties(B5.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(String(a))}}});B5.\u0275fac=function(a){return new (a||B5)};
B5.\u0275cmp=y({type:B5,selectors:[["hotlist-picker-btn"]],inputs:{issueId:"issueId"},standalone:!1,decls:4,vars:7,consts:[["type","button","mat-stroked-button","",1,"small",3,"onHotkey","click","hotkey","disabled"]],template:function(a,b){a&1&&(J(0,"button",0),U(1,"async"),N("onHotkey",function(){return b.onClick()})("click",function(){return b.onClick()}),R(2),U(3,"async"),K());a&2&&(I("hotkey",b.HOTKEYS.OPEN_HOTLIST_PICKER)("disabled",V(1,3,b.isDisabled$)),x(2),T(" ",V(3,5,b.label$),"\n"))},dependencies:[RG,
oG,Jx,Tv],encapsulation:2});var xid=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()}}}},yid=function(a,b){return b.isInternal?{type:"action",label:"Request issue deletion...",title:"Request issue deletion",action:function(){a.requestIssueDeletion()}}:void 0},zid=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)}}},Aid=function(a,b){if(!b.isDeleted&&b.accessLevel==="EXTERNAL_PUBLIC")return{type:"action",label:"Mark as spam...",title:"Mark as spam... (requires Admin Issues permission)",icon:"flag",disabled:!b.permissions.admin,action:function(){a.showFlagAsSpamDialog()}}};var Bid=function(a){return{isDupe:a}},C5=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=r(TE);this.permissionsFridge=r(DF);this.issuePicker=r(dR);this.snackBar=r(DJ);this.eventsForIssueFridge=r(TD);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 sg(1);this.issue$=this.issueId$.pipe(xg(function(b){return a.issueFullFridge.watch(b)}));this.isDupe$=this.issue$.pipe(C(function(b){var c;
return!!(b==null?0:(c=b.snapshot[0])==null?0:c.duplicateOfIssueId)}));this.permissions$=this.issueId$.pipe(xg(function(b){return a.permissionsFridge.watch(ln(b))}));this.canEdit$=this.permissions$.pipe(C(function(b){return!(b==null||!b.writer)}),wg(!0));this.didChooseCanonical=function(b){return function(c){(c=c[0])&&Zwc(a.issueFullFridge,c,b).then(function(){a.eventsForIssueFridge.poke(b)}).catch(a.gotErr)}};this.gotErr=function(b){a.snackBar.open(Ro(b)||"Error with network request","close",{panelClass:"error"})}};
Y(C5,Z);C5.\u0275dir=Z.\u0275dir;
var cRb=function(a){var b,c,d;return z(function(e){switch(e.nextAddress){case 1:return a.disabled||a.issueFullFridge.isSaving(a.internalIssueId)?e.return():B(e,Rf(a.canEdit$),2);case 2:return(b=e.yieldResult)?B(e,Rf(a.isDupe$),3):e.return();case 3:return c=e.yieldResult,B(e,Rf(a.issue$),4);case 4:d=e.yieldResult;if(d==null)return e.return();c?Cid(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));Lf(e)}})},Cid=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)};nd.Object.defineProperties(C5.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.internalIssueId=a;this.issueId$.next(a)}}});C5.\u0275fac=function(){var a;return function(b){return(a||(a=Re(C5)))(b||C5)}}();
C5.\u0275cmp=y({type:C5,selectors:[["smart-dupe-btn"]],inputs:{disabled:"disabled",issueId:"issueId"},standalone:!1,features:[Bg],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,dRb,3,5,"button",0),U(1,"async"));if(a&2){var c;G((c=Hh(3,Bid,V(1,1,b.isDupe$)))?0:-1,c)}},dependencies:[oG,Jx,Tv],encapsulation:2});var D5=function(){this.label=""};D5.prototype.toggle=function(){this.hovercardTrigger&&this.hovercardTrigger.toggle(!this.hovercardTrigger.isExpanded())};D5.\u0275fac=function(a){return new (a||D5)};
D5.\u0275cmp=y({type:D5,selectors:[["help-hover"]],viewQuery:function(a,b){a&1&&hh(JI,5);if(a&2){var c;lh(c=mh())&&(b.hovercardTrigger=c.first)}},inputs:{label:"label",content:"content"},standalone:!1,decls:6,vars:3,consts:[["chipHovercard","onedevHovercard"],["role","dialog",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],["svgIcon","help-outline",1,"icon-s",3,"onedevHovercardTrigger"],[4,"ngTemplateOutlet"]],template:function(a,b){a&1&&(J(0,"onedev-hovercard",null,0)(2,"div",1)(3,"div",
2),F(4,fRb,1,1,"ng-container"),K()()(),M(5,"mat-icon",3));a&2&&(a=Q(1),x(2),Lg("aria-label",b.label),x(2),G(b.content?4:-1),x(),I("onedevHovercardTrigger",a))},dependencies:[Sv,FC,DI,JI],encapsulation:2});var E5=function(){};E5.\u0275fac=function(a){return new (a||E5)};E5.\u0275mod=uf({type:E5});E5.\u0275inj=Dd({imports:[HC,tJ]});var kRb=function(a,b){return b.label},F5=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=r(TE);this.issuePermissionService=r(OK);this.activeSession=r(Bs);this.appEvents=r(FB);this.issueArchiveService=r(vX);this.domSafe=r(UK);this.editIssueService=r(RK);this.matDialogService=r(RJ);this.analytics=r(RE);this.issueId$=new sg(1);this.retentionEnabled=this.activeSession.isInternalSession();this.HOTKEYS=sp;this.issue$=this.issueId$.pipe(xg(function(b){return a.issueFullFridge.watch(b)}));
this.issueDerivedProperties$=this.issue$.pipe(C(function(b){var c,d,e,f,h,k,q;return{modifiedTimeMilliseconds:(b==null?void 0:(c=b.aggregatedData)==null?void 0:c.modifiedTimeMicros)!=null?b.aggregatedData.modifiedTimeMicros/1E3:void 0,voted:(k=b==null?void 0:(d=b.userData)==null?void 0:d.voted)!=null?k:!1,voteCount:(q=b==null?void 0:(e=b.aggregatedData)==null?void 0:e.voteCount)!=null?q:0,notificationSubscription:Pj(b==null?void 0:(f=b.userData)==null?void 0:f.notificationSubscription),retentionState:b==
null?void 0:(h=b.aggregatedData)==null?void 0:h.retentionState}}));this.menuItems$=Did(this);this.state$=Uf([this.issueId$,this.issueDerivedProperties$,this.menuItems$]).pipe(C(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;return Object.assign({},{issueId:b},d,{menuItems:c})}))};Y(F5,Z);F5.\u0275dir=Z.\u0275dir;g=F5.prototype;g.onAction=function(a,b){return z(function(c){if(c.nextAddress==1)return B(c,Bq(0),2);a.action(b);Lf(c)})};
g.updateSubscription=function(a){var b=this,c;return z(function(d){if(d.nextAddress==1)return B(d,Rf(b.issueId$),2);if(d.nextAddress!=3)return(c=d.yieldResult)?B(d,b.editIssueService.updateSubscription(c,a),3):d.return();b.analytics.trackEvent("editIssue","updateSubscription",a);Lf(d)})};g.showNotificationSettings=function(a){this.appEvents.topBarEvents.openSettings.next({newTab:a.ctrlKey||a.metaKey,settingsTabName:"notifications"})};
g.showIndefiniteRetentionDialog=function(a){var b=this,c;return z(function(d){return d.nextAddress==1?b.editIssueService.savingState(a).get("retention")?d.return():B(d,Rf(LJ(b.matDialogService.open(JQc,{maxWidth:560}))),2):(c=d.yieldResult)?B(d,b.editIssueService.updateIssueRetention(a,"INDEFINITE"),0):d.jumpTo(0)})};
g.showComponentRetentionDialog=function(a){var b=this,c;return z(function(d){return d.nextAddress==1?b.editIssueService.savingState(a).get("retention")?d.return():B(d,Rf(LJ(b.matDialogService.open(FQc,{maxWidth:560}))),2):(c=d.yieldResult)?B(d,b.editIssueService.updateIssueRetention(a,"COMPONENT_DEFAULT"),0):d.jumpTo(0)})};
g.showFlagAsSpamDialog=function(a){var b=this,c;return z(function(d){return d.nextAddress==1?B(d,Rf(LJ(b.matDialogService.open(IQc,{maxWidth:560}))),2):(c=d.yieldResult)?B(d,RMc(b.editIssueService,String(a)),0):d.jumpTo(0)})};
var Did=function(a){var b={requestIssueDeletion:function(){a.domSafe.openInNewTab(UWa(a.activeSession.isInternalSession()))},showIndefiniteRetentionDialog:function(){var c;return z(function(d){return d.nextAddress==1?B(d,Rf(a.issueId$),2):(c=d.yieldResult)?B(d,a.showIndefiniteRetentionDialog(c),0):d.return()})},showComponentRetentionDialog:function(){var c;return z(function(d){return d.nextAddress==1?B(d,Rf(a.issueId$),2):(c=d.yieldResult)?B(d,a.showComponentRetentionDialog(c),0):d.return()})},submitArchivalState:function(c){var d;
return z(function(e){return e.nextAddress==1?B(e,Rf(a.issueId$),2):(d=e.yieldResult)?B(e,a.issueArchiveService.submitArchivalState(d,c),0):e.return()})},showFlagAsSpamDialog:function(){var c;return z(function(d){return d.nextAddress==1?B(d,Rf(a.issueId$),2):(c=d.yieldResult)?B(d,a.showFlagAsSpamDialog(c),0):d.return()})}};return Uf([a.issue$,a.issuePermissionService.userIsComponentAdmin$,a.issuePermissionService.issuePermissions$]).pipe(C(function(c){var d=l(c);c=d.next().value;var e=d.next().value;
var f;d={permissions:d.next().value,accessLevel:mPa(c),isArchived:(f=c==null?void 0:c.isArchived)!=null?f:!1,isDeleted:kPa(c),isInternal:a.activeSession.isInternalSession(),isComponentAdmin:e,retentionOverride:pPa(c),retentionState:sPa(c)};return[zid(b,d),Aid(b,d),yid(b,d),xid(b,d)].filter(Qj)}))};nd.Object.defineProperties(F5.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});F5.\u0275fac=function(){var a;return function(b){return(a||(a=Re(F5)))(b||F5)}}();
F5.\u0275cmp=y({type:F5,selectors:[["issue-header-actions"]],viewQuery:function(a,b){a&1&&hh(D5,5);if(a&2){var c;lh(c=mh())&&(b.helpHover=c.first)}},inputs:{issueId:"issueId"},standalone:!1,features:[Bg],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,lRb,14,11),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.state$))?0:-1,c)}},dependencies:[OO,FC,D5,RG,oG,Kx,pG,sG,qG,uG,zG,xG,Q1,G0,F0,C5,B5,Tv],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 G5=function(){Z.call(this);var a=this;this.issueDetailsBrain=r(MK);this.issuePagination=r(DY);this.issueInteractionsTracking=r(KK);this.bLocation=r(DH);this.paths=r(oN);this.refreshMonitor=r(gE);this.butterBar=r(GJ);this.internalSearchResults$=new Kn(null);this.searchResults$=this.internalSearchResults$.pipe(og(),xg(function(b){return b?b.changed$:Nf(null)}));this.issueId$=this.issueDetailsBrain.id$;this.totalText$=this.searchResults$.pipe(C(function(b){var c;return(c=b==null?void 0:b.totalText)!=
null?c:""}));this.backNavigationLabel$=this.searchResults$.pipe(C(function(b){return(b==null?0:b.params.returnUrl)?"Back to previous search":"Go home"}));this.issueIndex$=Uf([this.searchResults$,this.issueId$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d;return(d=c&&(b==null?void 0:AY(b,c)))!=null?d:-1}));this.hasPreviousIssue$=Uf([this.searchResults$,this.issueId$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d;if(d=c)b==null?b=0:(c=AY(b,c),b=c==
null||c===-1?!1:c>b.startIndex||b.params.page>1),d=b;return!!d}));this.hasNextIssue$=Uf([this.searchResults$,this.issueId$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d;if(d=c)b==null?b=0:(c=AY(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(){Eid(a)}));this.subscriptions.add(this.issueDetailsBrain.id$.subscribe(function(b){a.issueId=b;Eid(a)}))};Y(G5,Z);
G5.\u0275dir=Z.\u0275dir;
var Fid=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)},pRb=function(a){var b=ip(a.hasNextIssue$),c=ip(a.issueIndex$);b&&c&&Gid(a,c+1)},oRb=function(a){var b=ip(a.hasPreviousIssue$),c=ip(a.issueIndex$);b&&c&&Gid(a,c-1)},Eid=function(a){var b,c,d;z(function(e){if(e.nextAddress==1)return B(e,Q7c(a.issuePagination).catch(mRb),2);b=e.yieldResult;
a.internalSearchResults$.next((c=b)!=null?c:null);if(!b||!a.issueId)return e.return();d=AY(b,a.issueId);return d===-1?e.jumpTo(0):B(e,S7c(a.issuePagination,d).catch(mRb),0)})},Gid=function(a,b){S7c(a.issuePagination,b).then(function(c){a.bLocation.setUrl(Fq(c))},function(){a.butterBar.showWarning("Can't find issue id for index '"+b+"'")})};G5.\u0275fac=function(a){return new (a||G5)};G5.\u0275prov=Cd({token:G5,factory:G5.\u0275fac,providedIn:"root"});var Hid=function(){this.currentSearchResults=r(G5);this.HOTKEYS=sp};Hid.\u0275fac=function(a){return new (a||Hid)};
Hid.\u0275cmp=y({type:Hid,selectors:[["b-pagination-one-issue"]],standalone:!1,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,
qRb,8,13),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.currentSearchResults.issueIndex$))?0:-1,c)}},dependencies:[FC,RG,oG,Kx,zG,xG,Tv],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 Iid=function(){var a=this;this.brain=r(MK);this.accessIndicatorService=r(MO);this.INTERNAL="INTERNAL";this.issue$=this.brain.issueJs$.pipe(eg(Qj));this.retentionState$=this.issue$.pipe(C(function(b){var c;return(c=b.aggregatedData)==null?void 0:c.retentionState}));this.modifiedTime$=this.issue$.pipe(C(function(b){var c;return((c=b.aggregatedData)==null?0:c.modifiedTimeMicros)?b.aggregatedData.modifiedTimeMicros/1E3:void 0}),eg(Qj));this.accessLevel$=this.issue$.pipe(C(function(b){var c;return(c=
b.accessLimit)==null?void 0:c.accessLevel}),eg(Qj));this.issueAccessLimitLevel$=this.issue$.pipe(C(function(b){return b.snapshot[0].issueAccessLimitLevel}));this.issueId$=this.issue$.pipe(C(function(b){return b.issueId}));this.hasAccessIndicator$=this.issue$.pipe(xg(function(b){return RSc(a.accessIndicatorService,b.issueId)}),C(function(b){return b.type!=="no_indicator"}));this.state$=Uf([this.retentionState$,this.issueAccessLimitLevel$,this.modifiedTime$,this.issueId$,this.brain.componentId$,Uf([this.accessLevel$,
this.hasAccessIndicator$])]).pipe(C(function(b){var c=l(b);b=c.next().value;var d=c.next().value;var e=c.next().value;var f=c.next().value;var h=c.next().value;var k=l(c.next().value);c=k.next().value;k=k.next().value;return{retentionState:b,isAccessLimited:d==="LIMIT_VIEW"||d==="LIMIT_APPEND"||d==="LIMIT_VIEW_TRUSTED",isShowingRetention:(b==null?void 0:b.scheduledDeletionTime)==null?!1:kAb(b),isShowingPublicPartner:c!=="INTERNAL",modifiedTime:e,accessLevel:c,issueId:f,componentId:h,issueAccessLimitLevel:d,
hasAccessIndicator:k}}))};Iid.\u0275fac=function(a){return new (a||Iid)};Iid.\u0275cmp=y({type:Iid,selectors:[["issue-chip-indicators"]],standalone:!1,decls:2,vars:3,consts:[[1,"flex-kids-x","gap-s","margin-xs-right"],[3,"issueId"],[3,"issueId","componentId","accessLimitLevel"],[3,"retentionState","compactMode","modifiedTime"]],template:function(a,b){a&1&&(F(0,vRb,1,1),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.state$))?0:-1,c)}},dependencies:[JV,H0,NO,Tv],encapsulation:2});var H5=function(){this.teamsService=r(SF);this.onTeamLoaded=new sg(1);this.teamName$=new Kn("");this.isTeamLoaded=!1};H5.prototype.ngOnChanges=function(a){var b=this;a.teamId&&this.teamId!==null&&(this.teamId===0?(this.isTeamLoaded=!0,this.onTeamLoaded.next(this.isTeamLoaded)):UF(this.teamsService,String(this.teamId)).pipe(mg(1),C(function(c){return c.name})).subscribe(function(c){b.teamName$.next(c);b.isTeamLoaded=!0;b.onTeamLoaded.next(b.isTeamLoaded)}))};
H5.\u0275fac=function(a){return new (a||H5)};
H5.\u0275cmp=y({type:H5,selectors:[["b-team-chip"]],inputs:{componentId:"componentId",teamId:"teamId"},outputs:{onTeamLoaded:"onTeamLoaded"},standalone:!1,features:[ov],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&&(J(0,"b-async-data-placeholder",1),F(1,wRb,4,4,"div",2),U(2,"async"),K(),J(3,"onedev-hovercard",null,0),Wg(5),
M(6,"b-team-card",3),Xg(),K());if(a&2){I("isReady",b.isTeamLoaded);x();G(V(2,4,b.teamName$)?1:-1);x(5);var c;I("componentId",b.componentId||void 0)("teamId",(c=b.teamId==null?null:b.teamId.toString())!=null?c:"0")}},dependencies:[FC,WN,DI,JI,nM,Tv],styles:["[_nghost-%COMP%]{min-height:22px}mat-icon[_ngcontent-%COMP%]{margin-right:4px;vertical-align:middle}"],changeDetection:0});var I5=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=r(TE);this.issuePermissionService=r(OK);this.router=r(vC);this.refreshMonitor=r(gE);this.currentSearchResults=r(G5);this.trackerHelpers=r(iK);this.eventsForIssueFridge=r(TD);this.cdr=r(Hv);this.starToggleDisabled=!1;this.issueId$=new sg(1);this.internalIssueId="";this.isTeamLoaded=!1;this.ListIssuesHovercardMode=vid;this.blockedIdsToUrlQuery=function(b){if(!(b.length<2))return{q:"blockingid:"+a.issueId}};this.HOTKEYS=sp;this.issue$=
this.issueId$.pipe(xg(function(b){return a.issueFullFridge.watch(b)}));this.issueTitle$=this.issue$.pipe(C(function(b){return b==null?void 0:b.snapshot[0].title}));this.starred$=this.issue$.pipe(C(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(C(function(b){return Pj(b==null?void 0:b.snapshot[0].componentId)}));this.ancestors$=this.issue$.pipe(C(function(b){return Pj(b==null?void 0:b.ancestors)}));this.hasAncestors$=
this.ancestors$.pipe(C(function(b){return!!(b&&b.size>0)}));this.teamId$=this.issue$.pipe(C(function(b){var c;return Pj(b==null?void 0:(c=b.aggregatedData)==null?void 0:c.teamId)}));this.blockedByids$=this.issue$.pipe(C(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockedByIssueId)!=null?c:[]}));this.issuesBlockedByCount$=this.blockedByids$.pipe(xg(function(b){return a.issueFullFridge.watchSet(b)}),C(function(b){return b.filter(xl)}),C(function(b){return b.length}));this.blockedByids$.pipe(C(GRb));
this.blockedByids$.pipe(C(this.blockedIdsToUrlQuery));this.isWithinExternalComponent$=this.issuePermissionService.isWithinExternalComponent$;this.status$=this.issue$.pipe(C(function(b){return(b==null?void 0:b.snapshot[0].status)||void 0}));this.statusCssClass$=this.status$.pipe(C(function(b){return a.computeStatusCssClass(b)}));this.prettyStatus$=this.status$.pipe(eg(Qj),C(function(b){var c;return(c=uj.get(b))!=null?c:""}));this.statusIsFeatured$=this.status$.pipe(C(function(b){return!!Noc[b]}));
this.toggleStar=function(){var b;return z(function(c){if(c.nextAddress==1)return B(c,Rf(a.starred$),2);b=c.yieldResult;a.starToggleDisabled=!0;Wwc(a.issueFullFridge,a.issueId,!b).pipe(qg(),yg(a.destroyed$)).subscribe(function(){a.starToggleDisabled=!1;a.cdr.markForCheck()});Lf(c)})};this.toggleStarDebounced=vz(this.toggleStar,1E3)};Y(I5,Z);I5.\u0275dir=Z.\u0275dir;I5.prototype.computeStatusCssClass=function(a){return a?"status-"+a:""};I5.prototype.refresh=function(){this.refreshMonitor.refreshRequest.next()};
nd.Object.defineProperties(I5.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.internalIssueId=a;this.issueId$.next(a)},get:function(){return this.internalIssueId}}});I5.\u0275fac=function(){var a;return function(b){return(a||(a=Re(I5)))(b||I5)}}();
I5.\u0275cmp=y({type:I5,selectors:[["issue-header"]],inputs:{issueId:"issueId"},standalone:!1,features:[Bg],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();J(0,"div",3);U(1,"async");U(2,"async");U(3,"async");M(4,"aside",4);U(5,"async");U(6,"async");J(7,"div",5)(8,"div",6);F(9,yRb,1,1,"ng-container");U(10,"async");Mg(11,ARb,4,7);D(12,DRb,4,7,"ng-template",null,0,Lh);K();J(14,"div",7);M(15,"b-pagination-one-issue");K()();J(16,"div",8)(17,"div",9)(18,"div",10)(19,"button",11);U(20,"async");U(21,"async");N("onHotkey",function(){u(c);return w(Fid(b.currentSearchResults))})("click",
function(){u(c);return w(Fid(b.currentSearchResults))});M(22,"mat-icon",12);K();J(23,"button",13);N("onHotkey",function(){u(c);return w(b.refresh())})("click",function(){u(c);return w(b.refresh())});M(24,"mat-icon",14);K();J(25,"b-star-toggle",15);U(26,"async");N("starClicked",function(){u(c);return w(b.toggleStar())})("onHotkey",function(){u(c);return w(b.toggleStarDebounced())});K()();M(27,"issue-chip-indicators");K();J(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 w()});K();F(33,ERb,3,2,"div",17);U(34,"async");J(35,"onedev-hovercard",null,1);D(37,FRb,4,7,"ng-container",18);K();M(38,"issue-header-actions",19);K()()()}if(a&2){var d;vh(V(1,23,b.statusCssClass$));uh("overline",V(2,25,b.statusIsFeatured$))("color-field",V(3,27,b.statusIsFeatured$));x(4);I("title",Eh("[",V(5,29,b.prettyStatus$),"] ",V(6,31,b.issueTitle$)));x(5);G(V(10,33,b.hasAncestors$)?9:11);x(10);
var e;I("hotkey",b.HOTKEYS.GO_UP_TO_LIST)("matTooltip",(e=V(20,35,b.currentSearchResults.backNavigationLabel$))!=null?e:"");Lg("aria-label",V(21,37,b.currentSearchResults.backNavigationLabel$));x(4);I("hotkey",b.HOTKEYS.REFRESH_ISSUE);x(2);var f;I("starred",(f=V(26,39,b.starred$))!=null?f:!1)("disabled",b.starToggleDisabled)("hotkey",b.HOTKEYS.TOGGLE_STAR);x(4);I("title",V(30,41,b.issueTitle$))("componentId",V(31,43,b.componentId$))("issueId",b.issueId)("hasAclToEdit",V(32,45,b.issuePermissionService.hasAclToEdit$));
x(4);G((d=V(34,47,b.issuesBlockedByCount$))?33:-1,d);x(5);I("issueId",b.issueId)}},dependencies:[A5,Sv,FC,aS,RG,DI,EI,JI,FI,bO,PT,z5,oG,Kx,zG,xG,fS,H5,Hid,F5,Iid,Tv],styles:[".row-1[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{align-items:flex-start}.row-2[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{flex-grow:1}.chip[_ngcontent-%COMP%]{margin-left:8px}mat-divider[_ngcontent-%COMP%]{height:16px;margin-left:12px;border-color:#dadce0;border-color:var(--divider)}.back-btn[_ngcontent-%COMP%]{margin-left:-4px}.mat-mdc-icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-top:-2px}b-star-toggle[_ngcontent-%COMP%]{margin-right:4px}b-pagination-one-issue[_ngcontent-%COMP%]{margin-left:8px;height:22px;margin-top:-5px}[_nghost-%COMP%]     .b-chip{margin-right:0;max-width:100%}[_nghost-%COMP%]     issue-title, [_nghost-%COMP%]     issue-title h3{display:inline}[_nghost-%COMP%]     b-app-vote-button .gmat-mdc-button:not([disabled]):not([aria-pressed=true]), [_nghost-%COMP%]     smart-dupe-btn .mat-mdc-outlined-button:not([disabled]), [_nghost-%COMP%]     hotlist-picker-btn .mat-mdc-outlined-button:not([disabled]){background-color:#fff;background-color:var(--background)}"]});var J5=function(){var a=this;this.trackerHelpers=r(iK);this.trackerFridge=r(cG);this.activeSession=r(Bs);this.issueTrackerId$=new Kn(void 0);var b;this.currentTrackerId=(b=this.activeSession.getTracker())==null?void 0:b.trackerId;this.showTrackerBanner$=this.issueTrackerId$.pipe(C(function(c){return!a.currentTrackerId&&!!c}));this.tracker$=this.issueTrackerId$.pipe(xg(function(c){return c?a.trackerFridge.watch(c):Nf(void 0)}));this.trackerRedirectUrl$=this.tracker$.pipe(C(function(c){return or(a.trackerHelpers,
String(a.issueId),c)}))};nd.Object.defineProperties(J5.prototype,{trackerId:{configurable:!0,enumerable:!0,set:function(a){this.issueTrackerId$.next(a||void 0)}}});J5.\u0275fac=function(a){return new (a||J5)};
J5.\u0275cmp=y({type:J5,selectors:[["b-tracker-banner"]],inputs:{issueId:"issueId",trackerId:"trackerId"},standalone:!1,decls:3,vars:5,consts:[[1,"tracker-banner"],["alt","",3,"src"],["mat-button","",1,"mat-stroked-button","gmat-mdc-button","small",3,"href"]],template:function(a,b){a&1&&(F(0,HRb,7,6,"div",0),U(1,"async"),U(2,"async"));if(a&2){var c;G((c=V(1,1,b.showTrackerBanner$)&&V(2,3,b.tracker$))?0:-1,c)}},dependencies:[oG,Jx,Tv],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 K5=function(){var a=this;this.trackerHelpers=r(iK);this.trackerFridge=r(cG);this.activeSession=r(Bs);this.imageUrls=r(YM);this.activatedRoute=r(Jn);this.trackerId$=new Kn(void 0);this.tracker$=this.trackerId$.pipe(xg(function(b){return b?a.trackerFridge.watch(b):Nf(void 0)}));this.trackerName$=this.tracker$.pipe(C(function(b){return b?b.name:a.activeSession.getAppName()}));this.currentTrackerLogo$=Nf(this.getLogoUrl(this.activeSession.getTracker()));this.trackerLogo$=this.tracker$.pipe(C(function(b){return a.getLogoUrl(b)}));
this.trackerRedirectUrl$=Uf([this.tracker$,this.activatedRoute.fragment]).pipe(C(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?or(a.trackerHelpers,c,b)+d:XKc(a.trackerHelpers,c)+d}))};
K5.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:""};K5.prototype.ngOnChanges=function(a){a.issue&&this.issue&&this.trackerId$.next(this.issue.trackerId);a.component&&this.component&&this.trackerId$.next(this.component.trackerId)};
nd.Object.defineProperties(K5.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 tj((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=uj.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}}});K5.\u0275fac=function(a){return new (a||K5)};
K5.\u0275cmp=y({type:K5,selectors:[["b-tracker-redirect"]],inputs:{issue:"issue",component:"component"},standalone:!1,features:[ov],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,
JRb,15,13,"div",0);a&2&&G(b.showResourceContainer?0:-1)},dependencies:[FC,oG,Jx,zG,xG,Tv],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 L5=function(){this.dynamicScrollIntoView=r(AT);this.paths=r(oN);this.routeParams=r(EK);this.baseIssueReferenceResolver=r(j4);this.destroyed$=new sg(1);var a;this.issueId=(a=this.routeParams.issueId)!=null?a:""};
L5.prototype.visit=function(a){a.event&&(a.event.preventDefault(),a.event.stopPropagation());a.issueId&&a.issueId!==this.issueId||!a.elementId?this.baseIssueReferenceResolver.visit(a):(V_c(this.dynamicScrollIntoView,{elementId:a.elementId,parentElement:document.body,scrollableContainerId:"bv2-edit-issue-details-scroll",scrollPadding:60}).pipe(yg(this.destroyed$)).subscribe(),history&&history.pushState(null,"",Fq(this.issueId)+"#"+a.elementId))};L5.prototype.ngOnDestroy=function(){this.destroyed$.next()};
L5.\u0275fac=function(a){return new (a||L5)};L5.\u0275prov=Cd({token:L5,factory:L5.\u0275fac});var M5=function(){Z.call(this);var a=this;this.el=r(Te);this.router=r(vC);this.router.events.pipe(eg(DHa),yg(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(eg(CHa),yg(this.destroyed$)).subscribe(function(b){KRb(a.el.nativeElement,["scrollY",a.rememberScroll,b.url].join("-"))})};
Y(M5,Z);M5.\u0275fac=function(a){return new (a||M5)};M5.\u0275dir=vf({type:M5,selectors:[["","rememberScroll",""]],inputs:{rememberScroll:"rememberScroll"},standalone:!1,features:[Bg]});var N5=function(){};N5.\u0275fac=function(a){return new (a||N5)};N5.\u0275mod=uf({type:N5});N5.\u0275inj=Dd({imports:[HC]});var ORb=function(a){return{monorailRedirectUrl:a}},nSb=function(){return{exact:!0}},O5=function(){Z.apply(this,arguments);var a=this;this.contextSensitiveRegistry=r(LK);this.issueFullFridge=r(TE);this.activeSession=r(Bs);this.permissions=r(OK);this.editIssueService=r(RK);this.counts=r(IX);this.appEvents=r(FB);this.issueInteractionsTracking=r(KK);this.checkBeforeExit=r(UR);this.butterBar=r(GJ);this.routerEvents=r(QE);this.refreshMonitor=r(gE);this.eventsForIssueFridge=r(TD);this.currentUserBookmarksFridge=
r(hD);this.permissionsFridge=r(DF);this.issueRelationshipsFridge=r(jF);this.issueService=r(cE);this.errorHandler=r(aK);this.monorailIssueRedirectApi=r(v5);this.domSafe=r(UK);this.helpMeFixService=r(mT);this.llmSuggestedBugFixService=r(iT);this.id$=this.contextSensitiveRegistry.getIssueId().pipe(eg(Qj));this.issue$=this.id$.pipe(xg(function(b){return a.issueFullFridge.watch(b)}));this.readyForView$=Nka(this.issue$.pipe(C(function(b){return{success:!!b}})),this.issueFullFridge.error$.pipe(Ag(this.id$),
eg(function(b){var c=l(b);b=c.next().value;c=c.next().value;return!(!c||c!==b.idOrKey)}),C(function(){return{success:!1}})));this.mainIssueLoadError$=this.issueFullFridge.error$.pipe(Ag(this.id$),eg(function(b){var c=l(b);b=c.next().value;c=c.next().value;return!(!c||c!==b.idOrKey)}),xg(function(b){b=l(b);var c=b.next().value;b=b.next().value;switch(c.status){case 403:return Nf({status:c.status});case 404:return sid(a.monorailIssueRedirectApi,b).pipe(C(function(d){return{status:c.status,monorailRedirectUrl:d==
null?void 0:d.toString()}}));default:return Nf({status:c.status})}}),ug({refCount:!0,bufferSize:1}));this.issueTrackerId$=this.issue$.pipe(C(function(b){return b==null?void 0:b.trackerId}));this.showTrackerRedirect$=this.issueTrackerId$.pipe(C(function(b){var c,d=(c=a.activeSession.getTracker())==null?void 0:c.trackerId;return!!d&&d!==b}));this.snapshot$=this.issue$.pipe(C(function(b){return b==null?void 0:b.snapshot[0]}));this.archived$=this.snapshot$.pipe(C(function(b){return b==null?void 0:b.isArchived}));
this.deleted$=this.snapshot$.pipe(C(function(b){return b==null?void 0:b.isDeleted}));this.undeleteButtonTooltip$=this.permissions.canUndeleteIssue$.pipe(C(function(b){return b?void 0:"Only issue admins can undelete issues"}));this.inArchivedComponent$=this.issue$.pipe(C(function(b){return(b==null?void 0:b.isArchived)&&!(b==null?0:b.snapshot[0].isArchived)}));this.status$=this.issue$.pipe(C(function(b){return(b==null?void 0:b.snapshot[0].status)||void 0}));this.prettyStatus$=this.status$.pipe(eg(Qj),
C(function(b){var c;return(c=uj.get(b))!=null?c:""}));this.isInactive$=this.status$.pipe(C(function(b){return b==="INACTIVE"}));this.title$=this.issue$.pipe(C(function(b){var c;return(c=b==null?void 0:b.snapshot[0].title)!=null?c:""}));this.issuesBeingBlocked$=this.issue$.pipe(C(function(b){var c;return(c=b==null?void 0:b.snapshot[0].blockingIssueId)!=null?c:[]}),ng(1E3),xg(function(b){return a.issueFullFridge.watchSet(b)}));this.issue$.pipe(C(function(b){var c;return(c=b==null?void 0:b.snapshot[0].duplicateIssueId)!=
null?c:[]}),ng(1E3),xg(function(b){return a.issueFullFridge.watchSet(b)}));this.issueMetadata$=Yf(function(){return a.id$}).pipe(eg(Qj),xg(function(b){return a.issueService.getMetadata(b)}),ug({refCount:!0,bufferSize:1}));this.tabs=[{link:"./",title:"Comments",count$:this.counts.countCommentsDisplay$},{link:"./dependencies",title:"Dependencies",count$:this.counts.countDependenciesDisplay$},{link:"./dupes",title:"Duplicates",count$:this.counts.countDuplicateDisplay$},{link:"./blocking",title:"Blocking",
count$:this.counts.countBlockedDisplay$},{link:"./resources",title:"Resources",count$:this.counts.countResourcesDisplay$}].concat(p(OA(this.activeSession,"enableCodeMentionsUi")?[{link:"./todos",title:"TODOs",count$:this.counts.countTodosDisplay$}]:[]),p(OA(this.activeSession,"enableInsightsEnrichments")?[{link:"./insights",title:"Insights",count$:this.counts.countInsightsDisplay$}]:[]));this.enableHelpMeFixSidebar$=Uf([this.helpMeFixService.isEnabledForCurrentIssue$,this.llmSuggestedBugFixService.isEnabledForCurrentIssue$]).pipe(C(function(b){var c=
l(b);b=c.next().value;c=c.next().value;return b||c}));this.isHelpMeFixSidebarOpen$=this.helpMeFixService.isHelpMeFixSidebarOpen$};Y(O5,Z);O5.\u0275dir=Z.\u0275dir;
O5.prototype.ngOnInit=function(){var a=this,b;return z(function(c){if(c.nextAddress==1)return B(c,Rf(a.id$),2);b=c.yieldResult;a.appEvents.issueViewed.next(b);mMc(a.issueInteractionsTracking,b);a.subscriptions.add(a.mainIssueLoadError$.subscribe(function(d){return z(function(e){if(e.nextAddress==1)return d.status===403?e.return():d.monorailRedirectUrl?B(e,Bq(1E3),3):e.jumpTo(2);if(e.nextAddress!=2)return VK(a.domSafe,d.monorailRedirectUrl),e.return();a.errorHandler.errorHandler(null,d);Lf(e)})}));
a.subscriptions.add(VR(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(eg(Qj),mg(1)).subscribe(function(d){VE(a.issueFullFridge,[d.issueId],{userActivityType:"VIEW"})}));a.subscriptions.add(a.refreshMonitor.getObservable().subscribe(function(){a.issueInteractionsTracking.trackNavigation("refresh");a.permissionsFridge.poke(ln(b));
a.issueRelationshipsFridge.poke(b);a.issueFullFridge.poke(b);a.eventsForIssueFridge.poke(b);a.currentUserBookmarksFridge.pokeAll();VE(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;nMc(d,f,"idp-time-on-page",e.variations);d.onUserActiveStatusUpdate(b,!1);d.resetState(b);d.stopActivityTracking$.next();a.editIssueService.clear(b)});Lf(c)})};
O5.\u0275fac=function(){var a;return function(b){return(a||(a=Re(O5)))(b||O5)}}();
O5.\u0275cmp=y({type:O5,selectors:[["issue-details-wrapper"]],standalone:!1,features:[Fh([NE,TK,{provide:nO,useClass:L5}]),Bg],decls:12,vars:6,consts:[["showIssueDetails",""],["issueDetails",""],["showMonorailRedirect",""],["showNoAccessScreen",""],["tabPanel",""],["rla","routerLinkActive"],[1,"a11y-only"],[3,"ngTemplateOutlet"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["hasBackdrop","false","autosize","true"],[4,"ngTemplateOutlet"],["mode","side","position","end",3,"autoFocus","opened","disableClose"],
[1,"flex-kids-y","pos-fill",3,"issue-editor-false"],[1,"bv2-limited-issue-view"],[1,"flex-kids-y","pos-fill"],[1,"border-bottom",3,"messageType","format","iconOverride"],["messageType","caution",1,"border-bottom",3,"format","iconOverride"],["messageType","error","format","app",1,"border-bottom"],["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,LRb,2,1,"h2",6),U(1,"async"),F(2,SRb,3,4),U(3,"async"),D(4,YRb,3,3,"ng-template",null,0,Lh)(6,tSb,3,3,"ng-template",null,1,Lh)(8,uSb,4,2,"ng-template",null,2,Lh)(10,xSb,3,1,"ng-template",null,3,Lh));if(a&2){var c,d;G((c=V(1,2,b.id$))?0:-1,c);x(2);G((d=V(3,4,b.readyForView$))?2:-1,d)}},dependencies:[v2,
Sv,NB,xC,yC,WO,XO,Sw,y5,I5,v1,oG,Jx,$X,aY,ZX,PN,LN,pRc,MN,zG,xG,M5,J5,K5,Tv],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)}"]});var P5=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=r(TE);this.butterBar=r(GJ);this.duplicateIssueIds$=new Kn([]);this.tableColumns=[{type:"TITLE"},{type:"TEAM"},{type:"ISSUE_ID"},{type:"CREATED_TIME"},{type:"REPORTER"}];this.initialSort={column:"CREATED_TIME",direction:"DESCENDING"};this.getMenuItems=function(b){return[{type:"action",label:"Remove duplicate",action:function(){a.removeDuplicate(b)},title:"Remove duplicate",icon:"clear"}]}};Y(P5,Z);P5.\u0275dir=Z.\u0275dir;
P5.prototype.ngOnInit=function(){};P5.prototype.removeDuplicate=function(a){var b=this,c;return z(function(d){if(d.nextAddress==1)return Gf(d,2),B(d,b.issueFullFridge.removeDuplicate(b.issueId,a),4);if(d.nextAddress!=2)return uu(d,0);c=Kf(d);b.butterBar.showWarning("Could not remove duplicate "+a+". "+c);Lf(d)})};nd.Object.defineProperties(P5.prototype,{duplicateIds:{configurable:!0,enumerable:!0,set:function(a){this.duplicateIssueIds$.next((a!=null?a:[]).map(function(b){return String(b)}))}}});
P5.\u0275fac=function(){var a;return function(b){return(a||(a=Re(P5)))(b||P5)}}();P5.\u0275cmp=y({type:P5,selectors:[["b-duplicates-table"]],inputs:{duplicateIds:"duplicateIds",issueId:"issueId"},standalone:!1,features:[Bg],decls:2,vars:3,consts:[[3,"issueIds","menuItemFactory","tableColumns","initialSort"]],template:function(a,b){a&1&&(F(0,ySb,1,4,"b-issues-table",0),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.duplicateIssueIds$))?0:-1,c)}},dependencies:[ZT,Tv],encapsulation:2,changeDetection:0});var Q5=function(){Z.apply(this,arguments);var a=this;this.paramsService=r(CK);this.issueFullFridge=r(TE);this.issuePicker=r(dR);this.snackBar=r(DJ);this.counts=r(IX);this.imageUrls=r(YM);this.ROBOT_SLEEPING=this.imageUrls.ROBOT_SLEEPING;this.id$=this.paramsService.issueId$;this.dupeUrl$=this.id$.pipe(C(function(b){return{path:"/issues",params:{q:"canonicalid:"+b}}}));this.issue$=this.id$.pipe(eg(Qj),xg(function(b){return a.issueFullFridge.watch(b)}));this.duplicateIds$=this.issue$.pipe(C(function(b){var c;
return(c=b==null?void 0:b.snapshot[0].duplicateIssueId)!=null?c:[]}));this.duplicatesCount$=this.duplicateIds$.pipe(xg(function(b){return b.length===0?Nf(0):a.counts.duplicatesDualCount$.pipe(C(function(c){return c.total.count}))}));this.showTable$=this.duplicatesCount$.pipe(C(function(b){return b>0}),wg(!0));this.didChooseDupes=function(b){var c,d;return z(function(e){if(e.nextAddress==1)return B(e,Rf(a.id$),2);c=e.yieldResult;if(c==null)return e.return();d=b[0];return B(e,Zwc(a.issueFullFridge,
c,d).catch(a.gotErr),0)})};this.gotErr=function(b){a.snackBar.open(Ro(b)||"Error with network request","close",{panelClass:"error"})}};Y(Q5,Z);Q5.\u0275dir=Z.\u0275dir;Q5.prototype.isThinking=function(){return this.issueFullFridge.isThinking()};var zSb=function(a){a.issuePicker.open({title:"Add Duplicate",allowMultipleIds:!1,edgeType:"duplicate"},a.didChooseDupes)};Q5.\u0275fac=function(){var a;return function(b){return(a||(a=Re(Q5)))(b||Q5)}}();
Q5.\u0275cmp=y({type:Q5,selectors:[["b-issue-duplicates"]],standalone:!1,features:[Bg],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&&(J(0,"section",0),F(1,ESb,3,3),U(2,"async"),K(),F(3,FSb,2,0,"aside",1));if(a&2){var c;x();G((c=V(2,2,b.duplicateIds$))?1:-1,c);x(2);G(b.isThinking()?3:-1)}},dependencies:[xC,oG,Jx,zG,
xG,yN,P5,Tv],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 R5=function(){};R5.\u0275fac=function(a){return new (a||R5)};R5.\u0275mod=uf({type:R5});R5.\u0275inj=Dd({imports:[HC,jC,pJ,Ay,By,BG,QN,CG,tJ,CQ,yH,AN,CW]});var HSb=function(a){return{data:a}},Jid=function(){this.dialogRef=r(KJ);this.data=r(QJ);this.userInstructions=""};Jid.\u0275fac=function(a){return new (a||Jid)};
Jid.\u0275cmp=y({type:Jid,selectors:[["b-retry-run-dialog"]],standalone:!1,decls:24,vars:4,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"],["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();J(0,"article",1)(1,"h2",2);R(2," Retry AI fix ");K();J(3,"mat-dialog-content",3)(4,"div",4)(5,"p");R(6," Please review the details and summary of the last run. If available, use the ");J(7,"b");R(8,"View Steps Taken");K();R(9," button for more context before providing additional instructions. ");
K();J(10,"p");R(11," For example, your instructions could address a different root cause, a specific code path, or a past, similar bug, with linked CLs. ");K();J(12,"mat-form-field",5)(13,"mat-label");R(14,"Provide instructions (Optional)");K();J(15,"textarea",6);Ah("ngModelChange",function(d){u(c);zh(b.userInstructions,d)||(b.userInstructions=d);return w(d)});K()();F(16,ISb,5,4,"mat-expansion-panel",7);K()();J(17,"mat-dialog-actions",8)(18,"button",9);R(19," Cancel ");K();J(20,"button",10);R(21,
" Retry ");K()()();D(22,SSb,8,1,"ng-template",11,0,Lh)}a&2&&(x(15),yh("ngModel",b.userInstructions),x(),G(b.data.trajectory?16:-1),x(2),I("mat-dialog-close",void 0),x(2),I("mat-dialog-close",b.userInstructions))},dependencies:[Sv,Ui,dy,ky,oG,Jx,SJ,UJ,WJ,VJ,DM,My,Fy,FM,Uy,Sy,OW,PW,QW,NW,Yv],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 us=function(a){return{status:a}},S5=function(){this.destroyRef=r(Gg);this.llmSuggestedBugFixService=r(iT);this.refreshMonitor=r(gE);this.activeSession=r(Bs);this.analytics=r(RE);this.appEvents=r(FB);this.domSafe=r(UK);this.dialog=r(RJ);this.dialogConfig={minWidth:"300px",maxWidth:"75vw",maxHeight:"80vh"};this.issueId="";this.status$=new Kn(7);this.ignored$=new Kn(!1);this.showLlmSuggestion$=Uf({isEnabled:this.llmSuggestedBugFixService.isEnabledForCurrentIssue$,ignored:this.ignored$}).pipe(C(function(a){var b=
a.isEnabled;a=a.ignored;return b&&!a}));this.statusMessage$=this.status$.pipe(C(function(a){return z_c[a].message}));this.isInternalSession=this.activeSession.isInternalSession();this.LlmSuggestionStatus=y_c;this.isEarlyAccessEnabled=OA(this.activeSession,"enableTailwindEarlyAccess")};
S5.prototype.ngOnInit=function(){var a=this;this.refreshMonitor.getObservable().pipe(wg(null)).pipe(xg(function(){return C_c(a.llmSuggestedBugFixService,a.issueId)}),lp(this.destroyRef)).subscribe(function(b){a.status$.next(b)});this.showLlmSuggestion$.pipe(eg(Boolean),mg(1),lp(this.destroyRef)).subscribe(function(){a.analytics.trackEvent("tailwind","view",a.issueId)})};
var hTb=function(a){a.analytics.trackEvent("tailwind","generate",a.issueId);a.status$.next(1);a.llmSuggestedBugFixService.createRun(a.issueId).pipe(lp(a.destroyRef),xg(function(b){return b.runId?B_c(a.llmSuggestedBugFixService,b.runId):(a.status$.next(4),Nf(4))})).subscribe(function(b){a.status$.next(b)})};
S5.prototype.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))};S5.prototype.openSidebar=function(){this.appEvents.openHelpMeFixSidebar.next()};
S5.prototype.ignore=function(){var a=this.llmSuggestedBugFixService,b=this.issueId;isNaN(Number(b))||(v_c(a.ignoredIssuesCache,b),$oc("llm_suggested_bug_fix_ignored_issues")(w_c(a.ignoredIssuesCache)));this.ignored$.next(!0)};
S5.prototype.openTailwindInfoDialog=function(){this.analytics.trackEvent("tailwind","openTrajectoryDialog",this.issueId);var a,b;this.dialog.open(w5,Object.assign({},{data:(a=this.llmSuggestedBugFixService.runForCurrentIssue$.value)==null?void 0:(b=a.results)==null?void 0:b.trajectory},this.dialogConfig))};
var pTb=function(a){var b,c;a=(b=a.llmSuggestedBugFixService.runForCurrentIssue$.value)==null?void 0:(c=b.results)==null?void 0:c.trajectory;return a!==void 0&&a.prompt!==""&&a.steps.length>0},rTb=function(a){if(a.isEarlyAccessEnabled){var b,c=(b=a.llmSuggestedBugFixService.runForCurrentIssue$.value)==null?void 0:b.metadata,d,e;LJ(a.dialog.open(Jid,Object.assign({},{data:pTb(a)?{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 h;a.llmSuggestedBugFixService.retryRun(a.issueId,f,(h=c==null?void 0:c.runId)!=null?h:"").pipe(lp(a.destroyRef),xg(function(k){return B_c(a.llmSuggestedBugFixService,k.runId)})).subscribe(function(k){a.status$.next(k)})}})}else hTb(a)};S5.prototype.ignore=S5.prototype.ignore;S5.\u0275fac=function(a){return new (a||S5)};
S5.\u0275cmp=y({type:S5,selectors:[["llm-suggested-bug-fix"]],inputs:{issueId:"issueId"},standalone:!1,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&&($g(0),U(1,"async"),F(2,gTb,21,6,"div",6),U(3,"async"),D(4,iTb,4,0,"ng-template",null,0,Lh)(6,jTb,0,0,"ng-template",null,1,Lh)(8,mTb,5,1,"ng-template",null,2,Lh)(10,qTb,2,5,"ng-template",null,3,Lh)(12,tTb,1,1,"ng-template",null,4,Lh));a&2&&(a=ah(V(1,1,b.status$)),x(2),G(b.isInternalSession&&
V(3,4,b.showLlmSuggestion$)&&a!==b.LlmSuggestionStatus.HIDDEN?2:-1))},dependencies:[Sv,FC,oG,Jx,xG,RM,BM,Tv],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 0px 0px 4px;background:linear-gradient(135deg, #8308ff 0%, #fa1aff 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:-0.1em;left:-0.1em;width:2.1em;height:2.1em;border-radius:50%;animation:_ngcontent-%COMP%_rotate 1s linear infinite}.ai-highlighted[_ngcontent-%COMP%]   .ai-loader[_ngcontent-%COMP%]::before{content:"";box-sizing:border-box;position:absolute;inset:0px;border-radius:50%;border:2px solid var(--purple-text);animation:_ngcontent-%COMP%_clipSpinner 2s linear alternate infinite}@keyframes _ngcontent-%COMP%_rotate{100%{transform:rotate(1turn)}}@keyframes _ngcontent-%COMP%_clipSpinner{0%{clip-path:polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0)}25%{clip-path:polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0)}50%{clip-path:polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%)}75%{clip-path:polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%)}100%{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%]{flex-shrink:0}.generate[_ngcontent-%COMP%]:hover{color:var(--blue-800);background:linear-gradient(135deg, #d3e3fd, #d0f8ff, #a8c7fa, #99f0ff, #d3e3fd, #d3e3fd, #d0f8ff, #a8c7fa, #99f0ff, #d3e3fd) 50%/1500% 1500%;animation:_ngcontent-%COMP%_shimmer 2.1s linear infinite}@keyframes _ngcontent-%COMP%_shimmer{0%{background-position:100% 100%}100%{background-position:top 37.5% left 37.5%}}mat-icon[_ngcontent-%COMP%]{vertical-align:bottom}[_nghost-%COMP%]     .llm-dialog{padding:10px}[_nghost-%COMP%]     .feedback-button{padding-left:8px;text-align:center;text-decoration:none}[_nghost-%COMP%]     .feedback-icon{color:var(--mat-icon-color)}  .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 T5=function(){Z.apply(this,arguments);var a=this;this.issueFullFridge=r(TE);this.issueTypeToDisplay=tj;this.STATUS_JS_FULL_TEXT=uj;this.STATUS_JS_TERSE=Loc;this.DUPLICATE="DUPLICATE";this.id$=new sg(1);this.issue$=this.id$.pipe(xg(function(b){return a.issueFullFridge.watch(b)}));this.priority$=this.issue$.pipe(C(function(b){return(b==null?void 0:b.snapshot[0].priority)||void 0}));this.type$=this.issue$.pipe(C(function(b){var c;return(c=b==null?void 0:b.snapshot[0].type)!=null?c:void 0}));this.canonicalId$=
this.issue$.pipe(C(function(b){return b==null?void 0:b.snapshot[0].duplicateOfIssueId}));this.status$=this.issue$.pipe(C(function(b){return(b==null?void 0:b.snapshot[0].status)||void 0}));this.statusForChip$=this.status$.pipe(C(function(b){return Noc[b]?b:void 0}));this.statusCssClass$=this.status$.pipe(C(function(b){return a.computeStatusCssClass(b)}))};Y(T5,Z);T5.\u0275dir=Z.\u0275dir;T5.prototype.computeStatusCssClass=function(a){return a?"status-"+a:""};
nd.Object.defineProperties(T5.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});T5.\u0275fac=function(){var a;return function(b){return(a||(a=Re(T5)))(b||T5)}}();
T5.\u0275cmp=y({type:T5,selectors:[["issue-description-area"]],inputs:{id:"id"},standalone:!1,features:[Bg],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&&(J(0,"div",2)(1,"div",3),F(2,vTb,6,10,"div"),U(3,"async"),F(4,wTb,2,4,"span",4),U(5,"async"),M(6,"b-issue-priority-display",5),U(7,"async"),K(),F(8,xTb,1,1,"b-issue-hotlists",6),U(9,"async"),K(),J(10,"onedev-hovercard",null,0),D(12,yTb,3,4,"b-issue-card",7),K());if(a&2){var c,d,e;x(2);G((c=V(3,4,b.statusForChip$))?2:-1,c);x(2);G((d=V(5,6,b.type$))?4:-1,d);x(2);I("issuePriority",V(7,8,b.priority$));x(2);G((e=V(9,10,b.id$))?8:-1,e)}},dependencies:[xC,DI,EI,JI,
FI,PO,OT,dO,Tv],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 U5=function(){this.message=r(zJ);this.snackbarRef=r(AJ);this.DEFAULT_MESSAGE="New data is available. Click to refresh."};U5.prototype.onDismiss=function(a){this.snackbarRef.dismiss();a.stopPropagation()};U5.\u0275fac=function(a){return new (a||U5)};
U5.\u0275cmp=y({type:U5,selectors:[["refresh-data-notification"]],standalone:!1,decls:6,vars:1,consts:[["role","button","aria-label","Refresh data",1,"refresh-data-notification-container",3,"click"],["svgIcon","refresh",1,"margin-right"],[1,"margin-xs-top","full-width"],["type","button","mat-icon-button","","aria-label","Dismiss new data notification",1,"refresh-data-notification-dismiss-button","small",3,"click"],["svgIcon","close",1,"icon-m"]],template:function(a,b){a&1&&(J(0,"div",0),N("click",
function(){return b.snackbarRef.dismissWithAction()}),M(1,"mat-icon",1),J(2,"p",2),R(3),K()(),J(4,"button",3),N("click",function(c){return b.onDismiss(c)}),M(5,"mat-icon",4),K());a&2&&(x(3),T(" ",b.message||b.DEFAULT_MESSAGE," "))},dependencies:[FC,oG,Kx],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 V5=function(){this.snackbar=r(DJ)},Kid=function(a){var b=sp.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(U5,c);return a.currentSnackBar};V5.\u0275fac=function(a){return new (a||V5)};V5.\u0275prov=Cd({token:V5,factory:V5.\u0275fac,providedIn:"root"});var W5=function(){Z.apply(this,arguments);var a=this;this.eventsForIssue=r(TD);this.issueFullFridge=r(TE);this.preferences=r(iG);this.activeSession=r(Bs);this.commentHistoryDialogService=r(vS);this.issueDetailsBrain=r(MK);this.errorHandler=r(aK);this.refreshDataNotification=r(V5);this.eventsForIssueWatcher=r(LR);this.analytics=r(RE);this.appEvents=r(FB);this.id$=new sg(1);this.events$=this.id$.pipe(xg(function(b){return a.eventsForIssue.watch(b)}),C(function(b){var c;return(c=b==null?void 0:b.events)!=
null?c:[]}));this.issue$=this.id$.pipe(xg(function(b){return a.issueFullFridge.watch(b)}));this.accessLevel$=this.issue$.pipe(C(function(b){var c;return b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel}));this.enableLlmSummarization=OA(this.activeSession,"enableIssueSummarizationNoButton")&&this.activeSession.isInternalSession();this.enableInlineScreenshots$=this.preferences.showInlineImages$.pipe(C(Boolean),wg(!0))};Y(W5,Z);W5.\u0275dir=Z.\u0275dir;
W5.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=ip(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(lXc(this.eventsForIssueWatcher,ip(this.id$)).subscribe(function(){Lid(a)}));this.subscriptions.add(this.events$.subscribe(function(){var b;
(b=a.refreshDataNotification.currentSnackBar)==null||b.dismiss()}));this.destroyed$.pipe(mg(1)).subscribe(function(){var b;(b=a.refreshDataNotification.currentSnackBar)==null||b.dismiss()})};
var Lid=function(a){a.analytics.trackEvent("pushUpdate","display","comment");Kid(a.refreshDataNotification).afterDismissed().subscribe(function(b){b.dismissedByAction?(a.analytics.trackEvent("pushUpdate","fetchResource","comment"),a.issueFullFridge.poke(ip(a.id$)),a.eventsForIssue.poke(ip(a.id$)),a.appEvents.scrollToCommentBox.next()):a.analytics.trackEvent("pushUpdate","dismiss","comment")})};nd.Object.defineProperties(W5.prototype,{id:{configurable:!0,enumerable:!0,set:function(a){this.id$.next(a)}}});
W5.\u0275fac=function(){var a;return function(b){return(a||(a=Re(W5)))(b||W5)}}();
W5.\u0275cmp=y({type:W5,selectors:[["issue-event-list"]],inputs:{id:"id"},standalone:!1,features:[Bg],decls:7,vars:16,consts:[[1,"margin-top"],[3,"issueId","events","issueAccessLevel","showFullHistory"]],template:function(a,b){a&1&&(F(0,zTb,2,0,"div",0),M(1,"b-event-stream",1),U(2,"async"),U(3,"async"),U(4,"async"),U(5,"async"),U(6,"async"));a&2&&(G(b.enableLlmSummarization?0:-1),x(),I("issueId",V(2,6,b.id$))("events",V(3,8,b.events$))("issueAccessLevel",V(4,10,b.accessLevel$))("showFullHistory",
V(5,12,b.preferences.showFullHistory$)),Lg("data-will-inline-screenshots",V(6,14,b.enableInlineScreenshots$)?!0:null))},dependencies:[BT,sW,Tv],styles:["[_nghost-%COMP%]     .bv2-edit-issue-history-stream {\n      padding-left: 0;\n    }"]});var Mid=["commentPresenter"],JTb=function(a,b){return b.category},X5=function(){var a=this;this.activeSession=r(Bs);this.activatedRoute=r(Jn);this.analytics=r(RE);this.cdr=r(NE,{self:!0});this.contextSensitiveRegistry=r(LK);this.destroyRef=r(Gg);this.enrichmentCategoryFridge=r(oD);this.issueEnrichmentFridge=r(ZD);this.router=r(vC);this.scrolledOnScreenService=r(rH);this.enrichmentApi=r(dB);this.loggedViewEnrichments=new Set;this.loggedImpressionEnrichments=new Set;this.shouldTruncate=!1;this.isTruncated=
!0;this.issueId$=this.contextSensitiveRegistry.getIssueId().pipe(eg(Qj),og());this.enrichments$=this.issueId$.pipe(xg(function(b){return a.issueEnrichmentFridge.watch(b)}),C(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})}),zg(function(b){a.logImpressions(b)}));this.shouldShowInsights$=this.enrichments$.pipe(C(function(b){return a.activeSession.isInternalSession()&&OA(a.activeSession,"enableInsightsEnrichments")&&
b.length>0}));this.categoryNameToDisplayName$=this.enrichments$.pipe(xg(function(b){b=b.map(function(c){return c.category});return a.enrichmentCategoryFridge.watchSet(b)}),C(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.categoryDisplayNameToName$=this.categoryNameToDisplayName$.pipe(C(function(b){var c=new Map;b=l(b.entries());for(var d=b.next();!d.done;d=b.next()){var e=l(d.value);d=e.next().value;e=e.next().value;c.set(e,
d)}return c}));this.tabKeys$=this.categoryNameToDisplayName$.pipe(C(function(b){return[].concat(p(b.values()))}));this.manualSelectedTab$=new Kn(null);this.initialExpandedTab$=Uf([this.tabKeys$,this.categoryNameToDisplayName$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;var d=gl("insights-lastExpanded")();return d==="HIDDEN"?[]:d&&c.has(d)?[c.get(d)]:[b[0]]}),mg(1));this.expandedTab$=Uf([this.initialExpandedTab$,this.manualSelectedTab$]).pipe(C(function(b){var c=l(b);b=c.next().value;
return(c=c.next().value)?c:b}))};X5.prototype.ngAfterViewInit=function(){var a=this;this.tabKeys$.pipe(mg(1),lp(this.destroyRef)).subscribe(function(){GTb(a)});this.destroyRef.onDestroy(function(){var b;(b=a.onScreenSubscription)==null||b.unsubscribe()})};var GTb=function(a){setTimeout(function(){var b;a.shouldTruncate=((b=a.commentPresenter)==null?void 0:b.nativeElement.scrollHeight)>84;a.cdr.markForCheck();a.maybeSetupOnScreenDetection()},0)};
X5.prototype.maybeSetupOnScreenDetection=function(){var a=this,b,c,d,e,f,h,k,q;z(function(v){switch(v.nextAddress){case 1:(b=a.onScreenSubscription)==null||b.unsubscribe();a.onScreenSubscription=void 0;d=(c=a.commentPresenter)==null?void 0:c.nativeElement;if(!d)return v.return();e=!a.shouldTruncate||a.shouldTruncate&&!a.isTruncated;if(!e){v.jumpTo(0);break}return B(v,Rf(a.expandedTab$),3);case 3:return f=v.yieldResult,f.length===0?v.return():B(v,Rf(a.categoryDisplayNameToName$),4);case 4:return h=
v.yieldResult,k=h.get(f[0]),!k||k&&a.loggedViewEnrichments.has(k)?v.return():B(v,Rf(a.issueId$),5);case 5:q=v.yieldResult,a.onScreenSubscription=aCc(a.scrolledOnScreenService,d,{emitOnPartial:!0,durationOnScreenMs:3E3}).pipe(mg(1),lp(a.destroyRef)).subscribe(function(){a.enrichmentApi.submitEnrichmentFeedback({issueId:q,category:k,feedbackType:"VIEW"}).subscribe();a.loggedViewEnrichments.add(k)}),Lf(v)}})};
var HTb=function(a,b){var c,d,e;z(function(f){if(f.nextAddress==1)return B(f,Rf(a.categoryDisplayNameToName$),2);c=f.yieldResult;e=(d=b.values().next().value)?c.get(d):"HIDDEN";$oc("insights-lastExpanded")(e);Lf(f)})};
X5.prototype.logImpressions=function(a){var b=this,c,d,e,f,h;return z(function(k){if(k.nextAddress==1)return B(k,Rf(b.issueId$),2);c=k.yieldResult;d=l(a);for(e=d.next();!e.done;e=d.next())f=e.value,h=f.category,b.loggedImpressionEnrichments.has(h)||(b.loggedImpressionEnrichments.add(h),b.enrichmentApi.submitEnrichmentFeedback({issueId:c,category:h,feedbackType:"IMPRESSION"}).subscribe());Lf(k)})};
var ITb=function(a){var b,c,d,e,f,h;return z(function(k){switch(k.nextAddress){case 1:return a.analytics.trackEvent("insightsTab","click"),B(k,Rf(a.expandedTab$),2);case 2:b=k.yieldResult;c=["insights"];d={relativeTo:a.activatedRoute};if(!(b.length>0)){k.jumpTo(3);break}return B(k,Rf(a.categoryDisplayNameToName$),4);case 4:if(e=k.yieldResult,f=b[0],h=e.get(f))d.fragment="insight-"+h;case 3:return B(k,a.router.navigate(c,d),0)}})};X5.\u0275fac=function(a){return new (a||X5)};
X5.\u0275cmp=y({type:X5,selectors:[["b-insights-enrichments"]],viewQuery:function(a,b){a&1&&hh(Mid,5,Te);if(a&2){var c;lh(c=mh())&&(b.commentPresenter=c.first)}},standalone:!1,features:[Fh([NE])],decls:4,vars:3,consts:[["commentPresenter",""],[1,"container","carded","margined-s","margin-top-none","bg-main","gradient-border-left"],["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"],["type","button","mat-stroked-button","","color",
"primary",1,"gmat-button","small","show-more",3,"click"]],template:function(a,b){a&1&&(J(0,"div",1),M(1,"mat-icon",2),F(2,LTb,2,3),U(3,"async"),K());if(a&2){var c;x(2);G((c=V(3,1,b.tabKeys$))?2:-1,c)}},dependencies:[FC,xO,IS,FS,GS,JS,oG,Jx,T3,Tv],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{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 Y5=function(){this.issueReferenceResolver=r(nO);this.userToString=zj};Y5.prototype.ngOnInit=function(){};Y5.prototype.getCommentNumberLink=function(a){return KOa(this.issueId,{comment:a})};Y5.prototype.scrollCommentIntoView=function(a,b){this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+b,event:a})};Y5.\u0275fac=function(a){return new (a||Y5)};
Y5.\u0275cmp=y({type:Y5,selectors:[["comments-info"]],inputs:{issueId:"issueId",comments:"comments"},standalone:!1,decls:2,vars:0,consts:[["personCard",""],[1,"comment-info"],[1,"keep-focus-ring","hover-link",3,"routerLinkObj"],[1,"ldap",3,"onedevHovercardTrigger"],[3,"email"],[1,"keep-focus-ring","hover-link",3,"click","routerLinkObj"]],template:function(a,b){a&1&&Pg(0,QTb,5,3,"span",1,Og);a&2&&Qg(b.comments)},dependencies:[CC,DI,JI,WK,mQ],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 Z5=function(){Z.apply(this,arguments);this.ngZone=r(Ph)};Y(Z5,Z);Z5.\u0275dir=Z.\u0275dir;var Nid=function(a,b){return(new Cf(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(yg(a.destroyed$))};Z5.\u0275fac=function(){var a;return function(b){return(a||(a=Re(Z5)))(b||Z5)}}();Z5.\u0275prov=Cd({token:Z5,factory:Z5.\u0275fac,providedIn:"root"});var Oid=["imagesSummaryWidget"],$5=function(){var a=this;this.resizeService=r(Z5);this.router=r(vC);this.route=r(Jn);this.imageLinks$=new sg(1);this.paginate=!1;this.container$=new sg(1);this.containerResize$=this.container$.pipe(C(function(b){return b.nativeElement}),xg(function(b){return Nid(a.resizeService,b)}));this.issueId$=new sg(1);this.lastRenderedImageIndex$=new Kn(0);this.allImages$=this.imageLinks$.pipe(C(function(b){b=b.map(function(c){if(c.comment){var d=SKa(c.href);if(d)return{src:d,
comment:c.comment}}}).filter(Qj);return YTb(b)}));this.maxImagesInOneRow$=this.containerResize$.pipe(C(function(b){return Math.floor((b.width-16)/216)}),ug({refCount:!0,bufferSize:1}));this.initialNumberOfImages$=this.maxImagesInOneRow$.pipe(C(function(b){return b*(a.paginate?4:2)}));this.imagesToRender$=Uf([this.initialNumberOfImages$,this.allImages$,this.lastRenderedImageIndex$]).pipe(C(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)}),C(function(b){return b.map(function(c){var d;return Object.assign({},c,{srcCorp:(d=SKa(c.src,!0))!=null?d:""})})}),og())},STb=function(a,b){var c,d,e,f;return z(function(h){if(h.nextAddress==1)return B(h,Rf(a.maxImagesInOneRow$),2);if(c=h.yieldResult)d=Math.floor(b/c),e=d+4,f=e*c,a.lastRenderedImageIndex$.next(f);Lf(h)})};$5.prototype.goToResourcesTab=function(){this.router.navigate(["./resources"],{relativeTo:this.route})};$5.prototype.ngOnInit=function(){this.issueId$.next(this.issueId)};
$5.prototype.ngAfterContentInit=function(){this.container$.next(this.container)};nd.Object.defineProperties($5.prototype,{imageLinks:{configurable:!0,enumerable:!0,set:function(a){this.imageLinks$.next(a)},get:function(){return ip(this.imageLinks$)}}});$5.\u0275fac=function(a){return new (a||$5)};
$5.\u0275cmp=y({type:$5,selectors:[["inline-images-summary"]],viewQuery:function(a,b){a&1&&hh(Oid,7);if(a&2){var c;lh(c=mh())&&(b.container=c.first)}},inputs:{issueId:"issueId",imageLinks:"imageLinks",paginate:"paginate"},standalone:!1,decls:4,vars:3,consts:[["imagesSummaryWidget",""],[1,"container"],[1,"image-wrapper"],["target","_blank",1,"thumbnail",3,"href"],[3,"showByDefault","src"],[3,"issueId","comments"],["type","button","mat-button","",1,"small","load-more-screenshots"],["type","button",
"mat-button","",1,"small","see-all-screenshots"],["type","button","mat-button","",1,"small","load-more-screenshots",3,"click"],["type","button","mat-button","",1,"small","see-all-screenshots",3,"click"]],template:function(a,b){a&1&&(J(0,"div",null,0),F(2,XTb,2,3),U(3,"async"),K());if(a&2){var c;x(2);G((c=V(3,1,b.allImages$))?2:-1,c)}},dependencies:function(){return[Y5,oG,Jx,vH,Tv,a6]},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 a6=function(){};a6.prototype.transform=function(a){return a.split(".png")[0]};a6.\u0275fac=function(a){return new (a||a6)};a6.\u0275pipe=wf({name:"removePngExtension",type:a6,pure:!0,standalone:!1});var Pid={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"},aVb=[].concat(p(Object.values(Pid)));var Qid=function(a,b){var c=this;this.issueInteractionsTracking=a;this.analytics=b;this.recordInteractionOnce=qj(function(d){c.analytics.trackEvent("editIssue","click",d)});this.recordImpressionOnce=qj(function(){c.analytics.trackEvent("editIssue","view","SW")})},xUb=function(a,b,c){a.recordInteractionOnce(c);vs(a.issueInteractionsTracking,b,c+"-content-interacted");vs(a.issueInteractionsTracking,b,"SW-content-interacted")};var b6=function(){this.activeSession=r(Bs);this.trackerHelpers=r(iK);this.linkText=this.rightText=this.leftText="";this.isExternalLink=!1;this.issueId=this.originalHref=this.redirectedHref=""};
b6.prototype.ngOnChanges=function(){var a;a:{var b=(a=this.sourceComment)==null?void 0:a.formattedComment;if(b){if(b.markdownFormat){a=eUb(b.markdownFormat.content);break a}if(b.literalFormat){a=eUb(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(eUb(c));break a}}a=void 0}if(a=a&&Rid(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(Sid.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(Sid.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="",vp(this.relatedLink)?c=b=this.relatedLink.href:TKa(this.relatedLink)&&(a=this.relatedLink.issueId,b=this.getIssueUrl(this.relatedLink.issueId),c=this.relatedLink.issueId,c=this.activeSession.isInternalSession()?ssa(or(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 Rid=function(a,b){if(a.relatedLink){if(TKa(a.relatedLink)){var c=a.relatedLink.issueId;return[].concat(p(b.querySelectorAll("a"))).find(function(e){return e.dataset.bIssueId===c})}if(vp(a.relatedLink)){var d=a.relatedLink;return[].concat(p(b.querySelectorAll("a"))).find(function(e){a:{var f=d.href;if(e.innerText===f)e=!0;else{try{f=(new URL(f)).href}catch(h){e=!1;break a}e=e.href===f||e.href.replace("https://cl.corp.google.com/","https://critique.corp.google.com/")===f?!0:!1}}return e})}}};
b6.prototype.getIssueUrl=function(a){return or(this.trackerHelpers,a)};b6.\u0275fac=function(a){return new (a||b6)};
b6.\u0275cmp=y({type:b6,selectors:[["mentioned-link-with-context"]],inputs:{sourceComment:"sourceComment",relatedLink:"relatedLink"},standalone:!1,features:[ov],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&&(J(0,"div",0),R(1," \u201c "),
F(2,ZTb,3,1,"span",1),F(3,$Tb,2,3,"b-external-hyperlink-widget",2)(4,cUb,2,1),F(5,dUb,2,1,"span",3),R(6," \u201d\n"),K());a&2&&(x(2),G(b.leftText?2:-1),x(),G(b.isExternalLink?3:4),x(2),G(b.rightText?5:-1))},dependencies:[lO,pO],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 Sid=new Set(["BR"]);var c6=function(){var a=this;this.activeSession=r(Bs);this.issueFullFridge=r(TE);this.router=r(vC);this.route=r(Jn);this.issueReferenceResolver=r(nO);this.issueReferences$=new sg(1);this.currentIssueId$=new sg(1);this.paginate=!1;this.lastRenderedMentionedIssueIndex$=new Kn(10);this.issuesMap$=this.issueReferences$.pipe(eg(Qj),xg(function(b){var c=sj(b.map(function(d){return d.issueId}));return a.issueFullFridge.watchSet(c).pipe(C(function(d){return new Map(d.map(function(e){return[e==null?void 0:
e.issueId.toString(),e]}))}),C(function(d){return new Map(c.map(function(e){return[e,d.get(e)]}))}))}));this.issueReferencesMap$=this.issueReferences$.pipe(eg(Qj),C(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$=Uf([this.issueReferencesMap$,this.issuesMap$]).pipe(C(function(b){b=l(b);var c=b.next().value;b=b.next().value;return[].concat(p(b)).filter(function(d){return l(d).next().value!==
a.issueId}).map(function(d){var e=l(d);d=e.next().value;e=e.next().value;var f=c.get(d),h=f==null?void 0:f.map(function(k){var q,v,A=(q=k.comment)==null?void 0:(v=q.userPerformingActionUser)==null?void 0:v.emailAddress;return{commentNumber:k.sourceCommentNumber,author:(A==null?void 0:A.split("@")[0])+"@",issueEvent:k.comment}});return{hasViewAccess:!!e,issueId:d,shortIssueUrl:ssa(a.activeSession.getAppBaseUrl(),d),sourceComments:h,title:e==null?void 0:e.snapshot[0].title,priority:e?e.snapshot[0].priority:
null,relatedLinks:f}})}));this.mentionedIssuesToRender$=Uf([this.allMentionedIssues$,this.lastRenderedMentionedIssueIndex$]).pipe(C(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)}))};c6.prototype.getCommentNumberLink=function(a){return KOa(this.issueId,{comment:a})};c6.prototype.scrollCommentIntoView=function(a,b){this.issueReferenceResolver.visit({issueId:this.issueId,elementId:"comment"+b,event:a})};
c6.prototype.goToResourcesTab=function(){this.router.navigate(["./resources"],{relativeTo:this.route})};nd.Object.defineProperties(c6.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}}});c6.\u0275fac=function(a){return new (a||c6)};
c6.\u0275cmp=y({type:c6,selectors:[["b-mentioned-issues"]],inputs:{issueReferences:"issueReferences",currentIssueId:"currentIssueId",paginate:"paginate"},standalone:!1,decls:2,vars:3,consts:[[3,"matTooltip","issuePriority"],[1,"issue-title-and-link"],[1,"padded-s-sides","title",3,"matTooltip"],[3,"sourceComment","relatedLink"],[1,"margin-left-auto",3,"issueId","comments"],["type","button","mat-button","",1,"small","load-more-issues"],["type","button","mat-button","",1,"small","see-all-issues"],["type",
"button","mat-button","",1,"small","load-more-issues",3,"click"],["type","button","mat-button","",1,"small","see-all-issues",3,"click"]],template:function(a,b){a&1&&(F(0,lUb,2,3),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.mentionedIssuesToRender$))?0:-1,c)}},dependencies:function(){return[dO,oG,Jx,zG,xG,b6,Y5,Tv,d6]},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 d6=function(){};d6.prototype.transform=function(a){return a.map(function(b){return b.issueEvent}).filter(Qj)};d6.\u0275fac=function(a){return new (a||d6)};d6.\u0275pipe=wf({name:"toComments",type:d6,pure:!0,standalone:!1});var qUb=function(a,b){return b[0].href},e6=function(){var a=this;this.router=r(vC);this.route=r(Jn);this.allLinks$=new sg(1);this.issueId$=new sg(1);this.lastRenderedRelatedLinkIndex$=new Kn(10);this.paginate=!1;this.allLinkGroups$=this.allLinks$.pipe(C(function(b){return Msa(b,function(c){return c.href})}));this.linkGroupsToRender$=Uf([this.allLinkGroups$,this.lastRenderedRelatedLinkIndex$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return a.paginate?uUb(b,c):b.length===6?uUb(b,
6):uUb(b,5)}))};e6.prototype.ngOnInit=function(){};e6.prototype.goToResourcesTab=function(){this.router.navigate(["./resources"],{relativeTo:this.route})};nd.Object.defineProperties(e6.prototype,{links:{configurable:!0,enumerable:!0,set:function(a){this.allLinks$.next(a)},get:function(){throw Error("rf");}},issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)},get:function(){return ip(this.issueId$)}}});e6.\u0275fac=function(a){return new (a||e6)};
e6.\u0275cmp=y({type:e6,selectors:[["related-links-widget"]],inputs:{links:"links",issueId:"issueId",paginate:"paginate"},standalone:!1,decls:2,vars:3,consts:[[1,"related-link","flex-kids-x","align-items-center","gap-s","margin-xs-bottom"],[3,"sourceComment","relatedLink"],[1,"margin-left-auto",3,"issueId","comments"],["type","button","mat-button","",1,"small","load-more-links"],["type","button","mat-button","",1,"small","see-all-links"],["type","button","mat-button","",1,"small","load-more-links",
3,"click"],["type","button","mat-button","",1,"small","see-all-links",3,"click"]],template:function(a,b){a&1&&(F(0,sUb,2,3),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.allLinkGroups$))?0:-1,c)}},dependencies:function(){return[Y5,oG,Jx,b6,Tv,f6]},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 tUb=gk(function(a){return Math.min.apply(Math,p(a.map(function(b){return b.sourceCommentNumber})))},hk),f6=function(){};f6.prototype.transform=function(a){return a.map(function(b){return b.comment}).filter(Qj)};f6.\u0275fac=function(a){return new (a||f6)};f6.\u0275pipe=wf({name:"toComments",type:f6,pure:!0,standalone:!1});var yUb=function(){return[]},g6=function(){Z.apply(this,arguments);var a=this;this.activeSession=r(Bs);this.userPreferencesManager=r(iG);this.issueInteractionsTracking=r(KK);this.issueFullFridge=r(TE);this.analytics=r(RE);this.eventsForIssueFridge=r(TD);this.similarIssuesApi=r(UN);this.issueEnrichmentFridge=r(ZD);this.issuePermissionService=r(OK);this.issueRecommendationFridge=r($E);this.recommendationTriggerService=r(RT);this.TabKeys=Pid;this.issueId$=new sg(1);this.alwaysStartCollapsed=!1;this.issue$=
this.issueId$.pipe(xg(function(b){return a.issueFullFridge.watch(b)}),eg(Qj));this.commentNumberToEventMap$=this.issueId$.pipe(xg(function(b){return a.eventsForIssueFridge.watch(b)}),C(function(b){var c;return(c=b==null?void 0:b.events)!=null?c:[]}),C(function(b){return new Map(b.filter(function(c){return!!c.commentNumber}).map(function(c){return[c.commentNumber,c]}))}));this.relatedLinks$=Uf([this.issue$,this.commentNumberToEventMap$]).pipe(C(function(b){var c=l(b);b=c.next().value;var d=c.next().value;
var e;return((e=b.relatedLinks)==null?void 0:e.map(function(f){return Object.assign({},f,{comment:d.get(f.sourceCommentNumber)})}))||[]}));this.imageLinks$=this.relatedLinks$.pipe(C(function(b){return b.filter(PKa)}));this.distinctImageLinksCount$=this.imageLinks$.pipe(C(function(b){return rj(b,function(c){return SKa(c.href)})}),C(function(b){return b.length}));this.shouldShowImages$=this.imageLinks$.pipe(C(function(b){return a.activeSession.isInternalSession()&&Tid(a,b)}));this.issues$=this.relatedLinks$.pipe(C(function(b){return b.filter(TKa)}));
this.distinctIssuesCount$=this.issues$.pipe(C(function(b){return b.filter(function(c){return c.issueId!==a.issueId})}),C(function(b){return rj(b,function(c){return c.issueId})}),C(function(b){return b.length}));this.shouldShowIssues$=this.distinctIssuesCount$.pipe(C(Boolean));this.otherLinks$=this.relatedLinks$.pipe(C(function(b){return b.filter(UKa)}));this.distinctOtherLinksCount$=this.otherLinks$.pipe(C(function(b){return rj(b,function(c){return c.href})}),C(function(b){return b.length}));this.shouldShowLinks$=
this.otherLinks$.pipe(C(function(b){return a.shouldShowLinks(b)}));this.similarIssueIds$=this.issueId$.pipe(eg(Qj),xg(function(b){return wRc(a.similarIssuesApi,{issueId:Number(b)})}),C(function(b){return b.similarIssues}),zg(function(b){b.forEach(function(c){a.issueFullFridge.announce(c)})}),C(function(b){return b.map(function(c){return c.issueId})}),ug({bufferSize:1,refCount:!0}));this.similarIssuesEnrichments$=(this.enableSimilarIssuesEnrichments=this.activeSession.isInternalSession()&&OA(this.activeSession,
"enableSimilarIssuesEnrichments"))?this.issueId$.pipe(xg(function(b){return a.issueEnrichmentFridge.watch(b)}),C(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})})):Nf([]);this.shouldShowSimilarIssues$=Uf([this.similarIssueIds$,this.similarIssuesEnrichments$]).pipe(C(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(xg(function(b){return x0c(a.recommendationTriggerService,b)}),ug({bufferSize:1,refCount:!0}));this.dedupeBatchRecommendation$=this.issueId$.pipe(xg(function(b){return y0c(a.recommendationTriggerService,b)}),ug({bufferSize:1,refCount:!0}));this.dedupeRecommendation$=Uf([this.dedupeCanonicalRecommendation$,this.dedupeBatchRecommendation$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b!=null?b:c}),ug({bufferSize:1,refCount:!0}));this.shouldShowDupeSuggestions$=
this.dedupeRecommendation$.pipe(C(Boolean));this.enableNeedsInfoUi=OA(this.activeSession,"enableNeedsInfoUi");this.assignToReporterRecommendation$=this.issueId$.pipe(xg(function(b){return z0c(a.recommendationTriggerService,b)}));this.shouldShowAssignToReporterSuggestion$=this.assignToReporterRecommendation$.pipe(C(Boolean));this.enableComponentRoutingUi=this.activeSession.isInternalSession()&&OA(this.activeSession,"enableComponentRoutingUi");this.componentRoutingRecommendation$=this.issueId$.pipe(xg(function(b){return A0c(a.recommendationTriggerService,
b)}));this.shouldShowComponentRoutingSuggestion$=this.componentRoutingRecommendation$.pipe(C(Boolean));this.tabKeys$=Uf([this.shouldShowAssignToReporterSuggestion$.pipe(C(function(b){return{show:b,key:"SW-assign-to-reporter"}})),this.shouldShowComponentRoutingSuggestion$.pipe(C(function(b){return{show:b,key:"SW-component-routing"}})),this.shouldShowDupeSuggestions$.pipe(C(function(b){return{show:b,key:"SW-dupes"}})),this.shouldShowSimilarIssues$.pipe(C(function(b){return{show:b,key:"SW-similar-issues"}})),
this.shouldShowImages$.pipe(C(function(b){return{show:b,key:"SW-images"}})),this.shouldShowIssues$.pipe(C(function(b){return{show:b,key:"SW-mentioned-bugs"}})),this.shouldShowLinks$.pipe(C(function(b){return{show:b,key:"SW-links"}}))]).pipe(C(function(b){return b.filter(function(c){return c.show}).map(function(c){return c.key})}));this.shouldShowSummaryCard$=this.tabKeys$.pipe(C(function(b){return!!b.length}),ng(0,kp));this.initiallyExpandedTabs=aVb.map(function(b){return Bzc(a.userPreferencesManager,
b)?void 0:b}).filter(Qj);this.onTabExpanded$=new LE;this.issueSummaryTracking=new Qid(this.issueInteractionsTracking,this.analytics)};Y(g6,Z);g6.\u0275dir=Z.\u0275dir;
g6.prototype.ngOnInit=function(){var a=this;this.alwaysStartCollapsed&&(this.initiallyExpandedTabs=[]);this.subscriptions.add(this.onTabExpanded$.pipe(kg(1E3),xg(function(b){var c=b.allTabKeys;var d=b.expandedTabKeys;return Azc(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())vs(c.issueInteractionsTracking,
d,f.value+"-available");b.size>0&&vs(c.issueInteractionsTracking,d,"SW-available")}))};g6.prototype.shouldShowLinks=function(a){return a.length===0||a.every(function(b){return b.sourceCommentNumber===1})?!1:!0};var Tid=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 jG(a.userPreferencesManager).showInlineImages&&b?!1:!0};
nd.Object.defineProperties(g6.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)},get:function(){return ip(this.issueId$)}}});g6.\u0275fac=function(){var a;return function(b){return(a||(a=Re(g6)))(b||g6)}}();
g6.\u0275cmp=y({type:g6,selectors:[["issue-summary-card"]],inputs:{issueId:"issueId",alwaysStartCollapsed:"alwaysStartCollapsed"},standalone:!1,features:[Bg],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"],["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"]],template:function(a,b){a&1&&(J(0,"h3",0),R(1,"Issue summary"),K(),F(2,bVb,23,9,"expandable-tabs",1),U(3,"async"));if(a&2){var c;x(2);G((c=V(3,1,b.tabKeys$))?2:-1,c)}},dependencies:[FC,IS,FS,GS,HS,JS,$5,c6,e6,$T,mU,Tv],styles:["[_nghost-%COMP%]{display:block}.chip-container[_ngcontent-%COMP%]{display:flex}issue-summary-chip[_ngcontent-%COMP%]{margin:0 4px}inline-images-summary[_ngcontent-%COMP%]{display:block}inline-images-summary.hidden[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]     expandable-tabs .expandable-tabs-contents .SW-similar-issues{border-bottom:0;padding-bottom:8px}mat-icon[_ngcontent-%COMP%]{vertical-align:text-bottom}"]});var h6=function(){this.matDialog=r(RJ)};h6.prototype.show=function(a){this.dialog=this.matDialog.open(i6,{width:"60vw",disableClose:!0,panelClass:"no-jitter",data:{statusUpdates:a}});return Rf(LJ(this.dialog))};h6.\u0275fac=function(a){return new (a||h6)};h6.\u0275prov=Cd({token:h6,factory:h6.\u0275fac,providedIn:"root"});var i6=function(){Z.apply(this,arguments);this.data=r(QJ);this.dialogService=r(h6);this.dialogRef=r(KJ);this.statusUpdates=this.data.statusUpdates};Y(i6,Z);i6.\u0275dir=Z.\u0275dir;
i6.prototype.ngOnInit=function(){var a=this;this.dialogRef.keydownEvents().pipe(yg(this.destroyed$)).subscribe(function(b){if(b.key==="Escape"){var c;(c=a.dialogService.dialog)==null||c.close()}});this.dialogRef.backdropClick().pipe(yg(this.destroyed$)).subscribe(function(){var b;(b=a.dialogService.dialog)==null||b.close()})};i6.\u0275fac=function(){var a;return function(b){return(a||(a=Re(i6)))(b||i6)}}();
i6.\u0275cmp=y({type:i6,selectors:[["ng-component"]],standalone:!1,features:[Bg],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&&(J(0,"h1",0),R(1,"History for Status Update"),K(),J(2,"section",1)(3,"ul",2),Pg(4,cVb,19,12,"li",3,Og),K()(),J(6,"footer",4)(7,"button",5),R(8," Close "),K()());a&2&&(x(4),Qg(b.statusUpdates),x(3),I("mat-dialog-close",void 0))},dependencies:[EL,oG,Jx,SJ,UJ,WJ,VJ,fJ,cL,bL,yI,YK],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 Uid=["noteContainer"],pVb=function(a){return[a]},Vid={FRESH:0,STALE:1,NONE:2,0:"FRESH",1:"STALE",2:"NONE"},j6=function(){Z.apply(this,arguments);var a=this;this.activeSession=r(Bs);this.analytics=r(RE);this.confirmationDialogService=r(YJ);this.currentUser=r(qZ);this.editStatusUpdateDialogService=r(k0);this.errorHandler=r(aK);this.issueFullFridge=r(TE);this.issuePermissionService=r(OK);this.statusUpdateService=r(j0);this.statusUpdateHistoryDialogService=r(h6);this.userPreferencesManager=r(iG);
this.log=r(ME);this.Freshness=Vid;this.UiState=Wid;this.FormattingMode=Uj;this.enableLiteralModeRevisions=OA(this.activeSession,"enableLiteralModeRevisions");this.issueId$=new sg(1);this.issue$=this.issueId$.pipe(xg(function(b){return a.issueFullFridge.watch(b)}));this.componentId$=this.issue$.pipe(C(function(b){return b==null?void 0:b.snapshot[0].componentId}));this.accessLevel$=this.issue$.pipe(C(function(b){var c;return b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel}));this.issue$.pipe(C(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(C(function(b){return b==null?void 0:b.statusUpdate}));this.statusUpdateAsNote$=this.statusUpdate$.pipe(eg(Qj),C(function(b){return{unlinkifiedComment:b.updateText,formattedComment:b.formattedText}}));this.semanticClass$=this.statusUpdate$.pipe(C(function(b){var c;return(c=ZKa(b==null?void 0:b.updateText))!=null?c:""}));this.statusIsEmpty$=this.statusUpdate$.pipe(C(function(b){return((b==
null?void 0:b.updateText)||"").trim()===""}));this.freshnessIndicator$=Uf([this.statusIsEmpty$,this.statusUpdate$]).pipe(C(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(C(function(b){return b?1:2}),wg(0));this.formattingModeOverride$=new Kn(void 0);this.formattingMode$=Uf([this.statusUpdate$,this.formattingModeOverride$]).pipe(C(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$=Uf([this.issueId$,this.statusUpdate$,this.issuePermissionService.hasAclToEdit$,this.issuePermissionService.hasAclToAdmin$,this.formattingMode$]).pipe(C(function(b){var c=l(b);var d=c.next().value;var e=c.next().value;b=c.next().value;var f=c.next().value;c=c.next().value;var h=e!=null;e=e&&(e==null?void 0:e.updateText)!=="";var k=[];e&&k.push({type:"submenu",label:"View as",className:"view-as-format",
items:[{type:"select",label:"Classic",action:function(){a.formattingModeOverride$.next("PLAIN")},selected:c==="PLAIN"},{type:"select",label:"Markdown",action:function(){a.formattingModeOverride$.next("MARKDOWN")},selected:c==="MARKDOWN"},{type:"select",label:"Source",action:function(){a.formattingModeOverride$.next("LITERAL")},selected:c==="LITERAL"}]});b&&k.push({type:"action",label:"Edit Status Update",action:function(){a.editStatusUpdate()}});h&&k.push({type:"action",label:"Show editing history",
action:function(){Xid(a,d)}});e&&f&&k.push({type:"action",label:"Delete Status Update",action:function(){a.confirmationDialogService.open({title:"Delete Status Update?",content:Xi("\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(Yid);return k}));this.showEditButton$=this.issuePermissionService.hasAclToEdit$};Y(j6,Z);
j6.\u0275dir=Z.\u0275dir;j6.prototype.ngOnInit=function(){var a=this;setTimeout(function(){var b,c;return z(function(d){if(d.nextAddress==1)return B(d,Rf(a.uiState$.pipe(eg(function(e){return e!==0}))),2);b=d.yieldResult;c=rVb(b);a.analytics.trackEvent("issue","statusUpdateDisplay",c);Lf(d)})},1E3)};j6.prototype.ngAfterViewInit=function(){var a;((a=this.noteContainer)==null?void 0:a.nativeElement.scrollHeight)>84&&(this.isCollapsed=!0)};
j6.prototype.editStatusUpdate=function(){var a=this,b,c,d,e,f,h,k,q,v,A;return z(function(E){switch(E.nextAddress){case 1:return B(E,Rf(a.issueId$),2);case 2:return b=E.yieldResult,B(E,Rf(a.componentId$),3);case 3:return c=E.yieldResult,d={issueId:b,updateText:"",version:-1},B(E,Rf(a.statusUpdate$),4);case 4:return f=(e=E.yieldResult)!=null?e:d,B(E,Rf(a.accessLevel$),5);case 5:return h=E.yieldResult,k=h==="INTERNAL"?"INTERNAL":"EXTERNAL",B(E,a.editStatusUpdateDialogService.show(f,k,c),6);case 6:q=
E.yieldResult;if(q==null)return E.return();Gf(E,7);return B(E,Rf(a.statusUpdateService.update(q)),9);case 9:v=E.yieldResult;a.didSave(b,v);if(!a.enableLiteralModeRevisions){E.jumpTo(10);break}return B(E,yzc(a.userPreferencesManager,v.formattingMode||"PLAIN"),10);case 10:uu(E,0);break;case 7:A=Kf(E),Qo(A)?a.errorHandler.errorHandler(null,A):a.log.warn(A),Lf(E)}})};
var fVb=function(a){var b,c;return z(function(d){if(d.nextAddress==1)return B(d,Rf(a.issueId$),2);if(d.nextAddress!=3)return b=d.yieldResult,B(d,Rf(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)});Lf(d)})};j6.prototype.didSave=function(a,b){this.issueFullFridge.manualUpdate(a,function(c){c.statusUpdate=b});this.issueFullFridge.poke(a)};
var Xid=function(a,b){var c;z(function(d){if(d.nextAddress==1)return B(d,Rf(Pad(a.statusUpdateService,b)),2);c=d.yieldResult;a.statusUpdateHistoryDialogService.show(c);Lf(d)})};j6.prototype.doDelete=function(){var a=this,b;z(function(c){if(c.nextAddress==1)return B(c,Rf(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)});Lf(c)})};
nd.Object.defineProperties(j6.prototype,{issueId:{configurable:!0,enumerable:!0,set:function(a){this.issueId$.next(a)}}});j6.\u0275fac=function(){var a;return function(b){return(a||(a=Re(j6)))(b||j6)}}();
j6.\u0275cmp=y({type:j6,selectors:[["status-update"]],viewQuery:function(a,b){a&1&&hh(Uid,5);if(a&2){var c;lh(c=mh())&&(b.noteContainer=c.first)}},inputs:{issueId:"issueId"},standalone:!1,features:[Bg],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,qVb,5,13,"div",2),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.uiState$))?0:-1,c)}},dependencies:[sS,AO,FC,EL,DI,JI,WK,oG,Jx,zG,xG,Tv,mQ],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 Wid={LOADING:0,EMPTY:1,NORMAL:2,0:"LOADING",1:"EMPTY",2:"NORMAL"},Yid={type:"action",label:"Using the Status Update field...",action:function(){id(window,"https://developers.google.com/issue-tracker/concepts/status-update","_blank")},icon:"help-outline",className:"border-top"};var k6=function(){Z.apply(this,arguments);var a=this;this.brain=r(MK);this.preferences=r(iG);this.scrollTiming=r(wZ);this.analytics=r(RE);this.element=r(Te);this.editIssueService=r(RK);this.appEvents=r(FB);this.routePerformance=r(LX);this.clearcut=r(FE);this.activeSession=r(Bs);this.id$=this.brain.id$;this.enableTailwind=OA(this.activeSession,"enableTailwind")&&this.activeSession.isInternalSession();this.showRecentEventsFirst=!1;this.comment$=this.id$.pipe(eg(Qj),xg(function(b){return a.editIssueService.issueCommentDraft(b).comment$}));
this.finishedRendering$=Uf([this.brain.eventsJs$.pipe(ng(0)),CAa("#AddCommentBox textarea",this.element.nativeElement)]).pipe(mg(1))};Y(k6,Z);k6.\u0275dir=Z.\u0275dir;
k6.prototype.ngOnInit=function(){var a=this;this.preferences.showRecentEventsFirst$.pipe(eg(Qj),yg(this.destroyed$)).subscribe(function(b){a.showRecentEventsFirst=b});this.destroyed$.subscribe(function(){Zid(a)});CAa("#comment1 .critical-feature",this.element.nativeElement).pipe(yg(this.destroyed$)).subscribe(function(){var b=function(){j7c(a.routePerformance,"issue-details-w-comments")};requestAnimationFrame(b);setTimeout(b)});this.subscriptions.add(this.brain.eventsJs$.pipe(qg()).subscribe(function(b){$id(a,
b)}));this.subscriptions.add(this.finishedRendering$.pipe(Ag(this.comment$)).subscribe(function(b){b=l(b);b.next();b.next().value.hasContent()&&a.appEvents.scrollToCommentBox.next()}))};
var $id=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")},Zid=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);GE(a.clearcut,e,"idp-time-scrolling-comments-recentFirst-"+a.showRecentEventsFirst)}};k6.\u0275fac=function(){var a;return function(b){return(a||(a=Re(k6)))(b||k6)}}();
k6.\u0275cmp=y({type:k6,selectors:[["ng-component"]],hostBindings:function(a,b){a&1&&N("unload",function(){Zid(b)},Ve)},standalone:!1,features:[Bg],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"],[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&&(J(0,"div",2),F(1,tVb,7,8),U(2,"async"),F(3,uVb,3,5,"issue-summary-card",3),U(4,"async"),F(5,xVb,5,5,"div",4),U(6,"async"),K());if(a&2){var c,d,e;I("bFocus",!0);x();G((c=V(2,4,b.id$))?1:-1,c);x(2);G((d=V(4,6,b.id$))?3:-1,d);x(2);G((e=V(6,8,b.id$))?5:-1,e)}},dependencies:[GT,gO,X5,T5,sT,W5,g6,KV,j6,S5,Tv],styles:["issue-summary-card[_ngcontent-%COMP%]{padding:8px}.summary[_ngcontent-%COMP%]{background-color:#f2f6ff;background-color:var(--blue-bg)}"]});var l6=function(){};l6.\u0275fac=function(a){return new (a||l6)};l6.\u0275mod=uf({type:l6});l6.\u0275inj=Dd({imports:[HC,Ay,BG,wK,EM,GM,ZW,yG,pQ,CM]});var m6=function(){};m6.\u0275fac=function(a){return new (a||m6)};m6.\u0275mod=uf({type:m6});m6.\u0275inj=Dd({imports:[HC,zL,wK,lM,BG,aM,jQ,Ay,By,gY,CG,Ww]});var n6=function(){Z.apply(this,arguments);this.prefs=r(iG)};Y(n6,Z);n6.\u0275dir=Z.\u0275dir;n6.prototype.onChange=function(a){this.prefs.save({useCodefont:a.checked}).pipe(yg(this.destroyed$)).subscribe()};n6.\u0275fac=function(){var a;return function(b){return(a||(a=Re(n6)))(b||n6)}}();
n6.\u0275cmp=y({type:n6,selectors:[["b-toggle-code-font"]],standalone:!1,features:[Bg],ngContentSelectors:["*"],decls:3,vars:3,consts:[["matTooltip","Use a monospace typeface to display all comments",3,"change","checked"]],template:function(a,b){a&1&&(ch(),J(0,"mat-slide-toggle",0),U(1,"async"),N("change",function(c){return b.onChange(c)}),dh(2),K());a&2&&I("checked",V(1,1,b.prefs.codeFont$))},dependencies:[EG,FG,zG,xG,Tv],styles:["mat-slide-toggle[_ngcontent-%COMP%] {font-size: 14px; }"],changeDetection:0});var o6=function(){};o6.\u0275fac=function(a){return new (a||o6)};o6.\u0275mod=uf({type:o6});o6.\u0275inj=Dd({imports:[HC,BG,lM,wK,HG,jQ,CG,AN]});var p6=function(){};p6.\u0275fac=function(a){return new (a||p6)};p6.\u0275mod=uf({type:p6});p6.\u0275inj=Dd({providers:[jS],imports:[HC,qQ,BG,CG,m6,TU,tJ,CQ,vW,KQ,DQ,wW,o6,gY]});var q6=function(){};q6.\u0275fac=function(a){return new (a||q6)};q6.\u0275mod=uf({type:q6});q6.\u0275inj=Dd({imports:[HC,BG,jQ]});var r6=function(){};r6.\u0275fac=function(a){return new (a||r6)};r6.\u0275mod=uf({type:r6});r6.\u0275inj=Dd({imports:[kQ,HC,rW,lW,KQ,wW,BG,CG,AN,gY,q6,hL,jQ,tW]});var s6=function(){};s6.\u0275fac=function(a){return new (a||s6)};s6.\u0275mod=uf({type:s6});s6.\u0275inj=Dd({imports:[HC,kQ,fW,BG,V3,GC]});var t6=function(){};t6.\u0275fac=function(a){return new (a||t6)};t6.\u0275mod=uf({type:t6});t6.\u0275inj=Dd({imports:[HC,tJ,XK,oQ]});var u6=function(){};u6.\u0275fac=function(a){return new (a||u6)};u6.\u0275mod=uf({type:u6});u6.\u0275inj=Dd({imports:[t6,HC,tJ,XK,BG,oQ,yH]});var v6=function(){};v6.\u0275fac=function(a){return new (a||v6)};v6.\u0275mod=uf({type:v6});v6.\u0275inj=Dd({imports:[kQ,HC,nL]});var w6=function(){};w6.\u0275fac=function(a){return new (a||w6)};w6.\u0275mod=uf({type:w6});w6.\u0275inj=Dd({imports:[HC,DQ,BG,CG,v6,uJ,t6]});var x6=function(){};x6.\u0275fac=function(a){return new (a||x6)};x6.\u0275mod=uf({type:x6});x6.\u0275inj=Dd({imports:[t6,HC,BG,v6]});var y6=function(){};y6.\u0275fac=function(a){return new (a||y6)};y6.\u0275mod=uf({type:y6});y6.\u0275inj=Dd({imports:[HC,fW,u6,w6,x6,DW,EW]});var z6=function(){};z6.\u0275fac=function(a){return new (a||z6)};z6.\u0275mod=uf({type:z6});z6.\u0275inj=Dd({imports:[wK,lM,HC,ox,BG,kQ,OU]});var A6=function(){};A6.\u0275fac=function(a){return new (a||A6)};A6.\u0275mod=uf({type:A6});A6.\u0275inj=Dd({imports:[kQ,HC]});var B6=function(){};B6.\u0275fac=function(a){return new (a||B6)};B6.\u0275mod=uf({type:B6});B6.\u0275inj=Dd({imports:[HC,JL,BG,wK,ox,uJ,oQ,A6,hL]});var C6=function(){};C6.\u0275fac=function(a){return new (a||C6)};C6.\u0275mod=uf({type:C6});C6.\u0275inj=Dd({imports:[rT,kQ,HC,JL,z6,tJ,XK,BG,CG,oQ,B6,A6]});var D6=function(){};D6.\u0275fac=function(a){return new (a||D6)};D6.\u0275mod=uf({type:D6});D6.\u0275inj=Dd({imports:[HC,pJ,jC,Ay,BG,wK,QN,By,uW,hO,s6,p6,lW,r6,y6,w6,UV,yH,C6,hL,AN,tW,l6]});var ajd=function(){var a=this;this.activeSession=r(Bs);this.issueFullFridge=r(TE);this.issueDetailsBrain=r(MK);this.eventsForIssueFridge=r(TD);this.isInternalSession=this.activeSession.isInternalSession();this.issue$=this.issueDetailsBrain.id$.pipe(xg(function(b){return b?a.issueFullFridge.watch(b):Nf(void 0)}),eg(Qj));this.commentNumberToEventMap$=this.issue$.pipe(C(function(b){return b.issueId}),xg(function(b){return a.eventsForIssueFridge.watch(b)}),C(function(b){var c;return(c=b==null?void 0:
b.events)!=null?c:[]}),C(function(b){return new Map(b.filter(function(c){return!!c.commentNumber}).map(function(c){return[c.commentNumber,c]}))}));this.relatedLinks$=Uf([this.issue$,this.commentNumberToEventMap$]).pipe(C(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(C(function(b){return b.filter(TKa)}));
this.imageLinks$=this.relatedLinks$.pipe(C(function(b){return b.filter(PKa)}));this.otherLinks$=this.relatedLinks$.pipe(C(function(b){return b.filter(UKa)}))};ajd.\u0275fac=function(a){return new (a||ajd)};
ajd.\u0275cmp=y({type:ajd,selectors:[["b-issue-resources"]],standalone:!1,decls:3,vars:3,consts:[[1,"carded","bg-main"],["svgIcon","image",1,"icon-s"],[3,"issueId","imageLinks","paginate"],[1,"margin-bottom"],["svgIcon","bug_report_24px",1,"icon-s"],[3,"issueReferences","currentIssueId","paginate"],["svgIcon","link",1,"icon-s"],[3,"links","issueId","paginate"]],template:function(a,b){a&1&&(J(0,"section",0),F(1,FVb,6,9),U(2,"async"),K());if(a&2){var c;x();G((c=V(2,1,b.issue$))?1:-1,c)}},dependencies:[FC,
c6,$5,e6,Tv],styles:["[_nghost-%COMP%]{display:block;padding:8px}h4[_ngcontent-%COMP%]{margin:16px 0}mat-icon[_ngcontent-%COMP%]{vertical-align:text-bottom}"]});var E6=function(){};E6.\u0275fac=function(a){return new (a||E6)};E6.\u0275mod=uf({type:E6});E6.\u0275inj=Dd({imports:[HC,w6,u6,x6]});var F6=function(){var a=this;this.brain=r(MK);this.codeMentions=r(GX);this.imageUrls=r(YM);this.ROBOT_SLEEPING=this.imageUrls.ROBOT_SLEEPING;this.id$=this.brain.id$.pipe(eg(Qj));this.codeMentionsState$=this.id$.pipe(xg(function(b){return f7c(a.codeMentions,b)}))};F6.prototype.displayPackageNames=function(a){return this.codeMentions.displayPackageNames(a)};F6.prototype.trackSqueegeeClick=function(){this.codeMentions.trackSqueegeeClick()};F6.\u0275fac=function(a){return new (a||F6)};
F6.\u0275cmp=y({type:F6,selectors:[["issue-todos"]],standalone:!1,decls:3,vars:3,consts:[[1,"carded","bg-main"],[1,"empty-state","layout-centered-column","gap"],[3,"issueId","packageMentionSet","displayPackageName"],[1,"margin-top"],["target","_blank",3,"click","href"],["aria-hidden","true","alt","",3,"src"],[1,"type-l"],[1,"muted"],["href","http://go/buganizer-guide/guides/issue-todos.md","target","_blank"]],template:function(a,b){a&1&&(J(0,"section",0),F(1,KVb,2,3),U(2,"async"),K());if(a&2){var c;
x();G((c=V(2,1,b.id$))?1:-1,c)}},dependencies:[igd,Tv],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 G6=function(){this.cdr=r(NE,{self:!0});this.errorHandler=r(aK);this.currentUserBookmarksFridge=r(hD);this.isLoading=!1;this.hotlists=[];this.createHotlistPath=Dq.createHotlist.makeHref()};G6.prototype.ngOnInit=function(){this.fetchUserHotlists()};G6.prototype.fetchUserHotlists=function(){var a=this;this.isLoading=!0;Rf(iD(this.currentUserBookmarksFridge)).then(function(b){a.hotlists=b;a.isLoading=!1;a.cdr.detectChanges()}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
G6.\u0275fac=function(a){return new (a||G6)};
G6.\u0275cmp=y({type:G6,selectors:[["list-hotlists-page"]],standalone:!1,features:[Fh([NE])],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&&(J(0,"h2",0),R(1,"Browse Hotlists"),K(),J(2,"div",1)(3,"a",2),R(4," Create Hotlist "),K()(),J(5,"div",3),F(6,LVb,1,1,"b-spinner",4)(7,MVb,1,1,"b-hotlist-grid",5),K());a&2&&(x(3),I("href",b.createHotlistPath,hf),x(3),
G(b.isLoading?6:7))},dependencies:[Z0,yN,oG,Jx],encapsulation:2});var bjd=new Set(["issueId","modifiedTime","createdTime"]),H6=function(){Z.call(this);var a=this;this.cdr=r(NE);this.routerEvents=r(QE);this.window=r(HJ);this.bLocation=r(DH);this.$log=r(ME);this.issueApi=r(SD);this.hotlistApi=r(YC);this.activeSession=r(Bs);this.butterBar=r(GJ);this.analytics=r(RE);this.appSearchState=r(bX);this.issuePagination=r(DY);this.userPreferencesManager=r(iG);this.urlPreferences=r(b1);this.gridPreferencesFetcher=r(d1);this.paths=r(oN);this.timeout=r(wD);this.errorHandler=r(aK);
this.statusMessages=r(gK);this.domSafe=r(UK);this.appEvents=r(FB);this.hotlistFridge=r(cD);this.issueFullFridge=r(TE);this.batchIssueRelationshipsService=r(m2);this.componentFridge=r(BB);this.currentUserBookmarksFridge=r(hD);this.implicitTriageService=r(eG);this.clearcut=r(FE);this.focusedRowIndex=this.displayColumns=null;this.isInitializing=!0;this.currentUserEmail=this.activeSession.getUserEmail();this.searchResults=null;this.hotlistChoices=[];this.hotlistMap={};this.customFieldMap={};this.gridControls=
this.cachedSort=null;this.issueColumnsInternal=[];this.metaColumns=[];this.sortPreferences=[];var b=[{keys:["j"],displayAs:"j",description:"Move to the next issue",onPress:function(){var c;(c=a.resultsGrid)==null||lAb(c)}},{keys:["k"],displayAs:"k",description:"Move to the previous issue",onPress:function(){var c;(c=a.resultsGrid)==null||mAb(c)}},{keys:["x"],displayAs:"x",description:"Select/Deselect the current issue",onPress:function(){var c;(c=a.resultsGrid)==null||Zbd(c)}},{keys:["s"],displayAs:"s",
description:"Star/Unstar the current issue",onPress:function(){var c;(c=a.resultsGrid)==null||acd(c)}},{keys:[qp("i")],displayAs:"Shift+i",description:"Mark as read",onPress:function(){var c;(c=a.resultsGrid)==null||bcd(c,!0)}},{keys:[qp("u")],displayAs:"Shift+u",description:"Mark as unread",onPress:function(){var c;(c=a.resultsGrid)==null||bcd(c,!1)}},{keys:[rp("*","a")],displayAs:"* then a",description:"Select all issues on this page",onPress:function(){var c;(c=a.resultsGrid)==null||c.selectAll()}},
{keys:[rp("*","n")],displayAs:"* then n",description:"Deselect all issues on this page",onPress:function(){var c;(c=a.resultsGrid)==null||Wbd(c)}},{keys:["a"],displayAs:"a",description:"Change assignee",onPress:function(){var c;(c=a.gridControls)==null||z_(c,null,0)}},{keys:["d"],displayAs:"d",description:"Mark as duplicate",onPress:function(){var c;(c=a.gridControls)==null||z_(c,Ysa,3)}},{keys:["h"],displayAs:"h",description:"Edit hotlists",onPress:function(){var c;(c=a.gridControls)==null||c.openHotlistPicker()}},
{keys:["r"],displayAs:"r",description:"Add comment",onPress:function(){var c;(c=a.gridControls)==null||u$c(c)}},{keys:["u",qp("r")],displayAs:"u / Shift+r",description:"Refresh search results",onPress:function(){return a.refreshResults()}},{keys:[rp("p","0"),rp("p","1"),rp("p","2"),rp("p","3"),rp("p","4")],displayAs:"p <n>",description:"Mark selected issues as priority n",onPress:function(c){a.resultsGrid&&a.sendBulkEditRequest([{actions:[{fieldName:"priority",value:"P"+c}],issueIds:a.resultsGrid.getSelectedIssues().map(function(d){return d.issueId})}])}},
{keys:[gKa("ENTER")],displayAs:"Ctrl+Enter",description:"Open current issue in new tab",onPress:function(){var c=a.window.document.activeElement;if(c.tagName==="A"){var d=a.paths.getBaseUrl();if(c.href&&!c.href.startsWith(d)){a.domSafe.openInNewTab(c.href);return}}var e;(e=a.resultsGrid)==null||J0(e,{openInNewTab:!0})}},{keys:["o","ENTER"],displayAs:"o / Enter",description:"Open the current issue",onPress:function(c){var d=a.window.document.activeElement,e;if(d){var f=(e=loa(I0))==null?void 0:e.selector;
e=f?(d==null?void 0:d.closest(f))!=null:!1}else e=!1;if(c===1&&d.tagName==="A")if(d.href)c=a.paths.getBaseUrl(),d.href.startsWith(c)?a.bLocation.setUrl(d.href.slice(c.length)):a.domSafe.openInNewTab(d.href);else{var h;(h=a.resultsGrid)==null||J0(h)}else if(c===2){var k;(k=a.resultsGrid)==null||J0(k,{openInNewTab:!0})}else if(e){var q;(q=a.resultsGrid)==null||J0(q)}}}];OA(this.activeSession,"enableIssueSidebar")&&b.push({keys:[qp("o"),qp("ENTER")],displayAs:"Shift+o / Shift+Enter",description:"Toggle current issue in sidebar",
onPress:function(c){var d=a.window.document.activeElement;c===1&&d.tagName==="A"&&d.href?Jq(a.domSafe,d.href):(c=a.resultsGrid)!=null&&(c.isIssueSidebarOpen=!c.isIssueSidebarOpen,c.cdr.detectChanges())}});this.BASE_HOTKEYS=b};Y(H6,Z);
H6.prototype.ngOnInit=function(){var a=this;cjd(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(yg(this.destroyed$)).subscribe(function(){cjd(a)})};var djd=function(a){var b=[].concat(p(sad));a.activeSession.isInternalSession()&&(a=b.indexOf("issueId"),b.splice(a,0,"minSlo"));return b.map(Tr).filter(Qj)};
H6.prototype.fetchUserHotlists=function(){var a=this;Rf(iD(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];gj(d,c)||(d&&Fa(a.hotlistChoices,d),a.hotlistChoices.push(c),a.hotlistMap[c.hotlistId]=c,a.cdr.detectChanges())}}).catch(function(b){a.errorHandler.errorHandler(null,b)})};
var cjd=function(a){return ejd(a).then(function(){return a.getIssues()}).then(function(){return a.searchResults?(a.subscribeToIssueChanges(a.searchResults.issues),fjd(a,a.searchResults.startIndex,a.searchResults.endIndex)):Promise.resolve()}).finally(function(){a.cdr.detectChanges()})};
H6.prototype.subscribeToIssueChanges=function(a){var b=this,c;(c=this.issueSubscriptions)==null||c.unsubscribe();this.issueSubscriptions=new yf;a=l(a);for(c=a.next();!c.done;c=a.next())this.issueSubscriptions.add(this.issueFullFridge.watch(c.value.id).pipe(eg(Qj),yg(this.destroyed$)).subscribe(function(d){var e,f;return z(function(h){switch(h.nextAddress){case 1:if(!b.searchResults){h.jumpTo(2);break}if(!d.snapshot[0].componentId){e=void 0;h.jumpTo(3);break}return B(h,Rf(b.componentFridge.watch(d.snapshot[0].componentId,
{trustUncertainMemory:!0})),4);case 4:e=h.yieldResult;case 3:f=e;if(!f||!b.searchResults)return h.return();J7c(b.searchResults,[{issue:d,component:f}]);b.searchResults=b.searchResults.clone();case 2:b.cdr.detectChanges(),Lf(h)}})}))};
var gjd=function(a){return a.window.document.activeElement!=null&&a.window.document.activeElement!==a.window.document.body},ejd=function(a){var b=pj();gjd(a)&&a.window.document.activeElement.blur();a.timeout.schedule(function(){b.resolve()});return b.promise},fjd=function(a,b,c){var d=pj();gjd(a)||hjd(a,b,c);a.timeout.schedule(function(){d.resolve()});return d.promise},ijd=function(a,b){if(b.maySkipResults){b=Zi(["Too many matching results. Some issues may be omitted.",$i("br"),"Please try to restrict your search further or change the sort column to either CREATED or LAST MODIFIED. "]);
var c={};c=$i("a",(c.href="http://go/buganizer-faq#restrict-search",c),"go/buganizer-faq");c=Zi([$i("br"),"See ",c," for more details."]);b=a.activeSession.isInternalSession()?Yi([b,c]):b;jKc(a.butterBar,b)}};g=H6.prototype;
g.setSort=function(a,b,c){c=c===void 0?!0:c;var d=Tr(a);if(d){var e=new Vr(d,b==="ASC"?"ASCENDING":"DESCENDING");Ga(this.sortPreferences,function(f){return gj(f.fieldId,e.fieldId)});!c||bjd.has(a)?this.sortPreferences=[e]:this.sortPreferences=[e].concat(this.sortPreferences.slice(0,2));this.saveSortColumns(this.sortPreferences)}else this.$log.warn("WARNING: Invalid field name specified "+a)};
g.getSort=function(){if(!this.sortPreferences.length)return null;var a=this.sortPreferences[0];a={field:a.fieldId.type==="CUSTOM_FIELD"?String(a.fieldId.customFieldId):ksa(a.fieldId.type),direction:a.direction==="ASCENDING"?"ASC":"DESC"};gj(a,this.cachedSort)||(this.cachedSort=a);return this.cachedSort};g.saveSortColumns=function(a){c1(this.urlPreferences,{sortColumns:a,page:1})};
g.initColumns=function(a,b){var c=this;b=b===void 0?H6.DEFAULT_META_COLUMNS:b;a.then(function(d){c.displayColumns=d;c.metaColumns=b;c.isColumnSaveEnabled=!0;c.issueColumnsInternal=[].concat(p(b),p(Xvb(d)));c.cdr.detectChanges()})};g.saveColumns=function(a){this.displayColumns=a.map(function(b){return Tr(b.name)});c1(this.urlPreferences,{displayColumns:this.displayColumns})};
g.goToIssue=function(a,b,c){var d;c&&((d=c.target)==null?void 0:d.tagName)==="A"||(this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"viewIssue",b?"read":"unread"),a=Fq(a),c&&(c.ctrlKey||c.metaKey||c.button===1)?this.domSafe.openInNewTab(a):c&&c.shiftKey?Jq(this.domSafe,a):this.bLocation.setUrl(a))};g.goToPage=function(a){this.bLocation.search("p",a)};var ws=function(a,b,c){b!==void 0&&a.goToPage(b+c)};H6.prototype.refreshResults=function(){R7c(this.issuePagination);return cjd(this)};
H6.prototype.hasResults=function(){return this.searchResults&&this.searchResults.issues.length>0};
H6.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||K7c(f,e,d)}this.cdr.detectChanges();Kq(this.butterBar,"Saving changes...",0);return VE(this.issueFullFridge,a[0].issueIds,{markRead:d,userActivityType:"MARK_AS_READ_OR_UNREAD"}).then(function(q){for(var v=l(a[0].issueIds),
A=v.next();!A.done;A=v.next()){A=A.value;var E=void 0,H=void 0;(E=c.searchResults)==null||K7c(E,A,void 0,(H=q)!=null?H:null)}Kq(c.butterBar,"Successfully marked issues "+(d?"read.":"unread."))}).catch(function(q){for(var v=l(a[0].issueIds),A=v.next();!A.done;A=v.next()){A=A.value;var E=void 0;(E=c.searchResults)==null||K7c(E,A)}c.errorHandler.errorHandler(null,q)}).finally(function(){c.cdr.detectChanges()})}e=qOa(a).map(function(q){return q.fieldName});this.analytics.trackEvent(this.ANALYTICS_CATEGORY,
"bulkEdit",e.join(","));var h={bulkEditOps:a};Kq(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(q){if(c.searchResults){c.searchResults=c.searchResults.clone();for(var v=l(c.searchResults.issues.entries()),A=v.next();!A.done;A=v.next()){var E=l(A.value);A=E.next().value;E=E.next().value;q.finishedIssues[E.issueId]&&(A=c.searchResults.issues[A],lgb(A,q.finishedIssues[E.issueId],
null),c.loadHotlists(A),Object.assign(c.customFieldMap,A.customFieldMap))}c.cdr.detectChanges()}E=a[0];v=q.notFinishedIssueIds;A=String(E.actions[0].value);E=E.actions[0].actionType;if(E!=="ADD"&&E!=="REMOVE")throw Error("jf");v.length?(c.butterBar.showWarning("Failed to update issue(s) "+v.join(", ")+"."),c.analytics.trackEvent(c.ANALYTICS_CATEGORY,"bulkEditError",""+v.length)):Kq(c.butterBar,(E==="ADD"?"Added child issue(s) to parent ["+A+"]":"Removed child issue(s) from parent ["+A+"]")+" on "+
String(Object.keys(q.finishedIssues).length)+" issues.");c.cdr.detectChanges()}).catch(function(q){c.errorHandler.errorHandler(null,q)});var k=new Date;return this.issueApi.issueBulkEdit(h,b).then(function(q){if(c.searchResults){c.searchResults=c.searchResults.clone();for(var v=l(c.searchResults.issues.entries()),A=v.next();!A.done;A=v.next()){var E=l(A.value);A=E.next().value;E=E.next().value;if(q.affectedIssues[E.issueId]){E=q.affectedIssues[E.issueId];var H=Ba(E.snapshot).componentId;A=c.searchResults.issues[A];
lgb(A,E,H?q.componentMap[H]:void 0);c.loadHotlists(A);Object.assign(c.customFieldMap,A.customFieldMap)}}c.cdr.detectChanges()}jjd(c,h,q,k);v=new Map;A=l(h.bulkEditOps);for(E=A.next();!E.done;E=A.next()){E=E.value;H=l(E.issueIds);for(var L=H.next();!L.done;L=H.next()){L=L.value;var O=void 0,S=(O=v.get(L))!=null?O:[];S.push.apply(S,p(E.actions));v.set(L,S)}}var aa;q=l((aa=q.errors)!=null?aa:[]);for(aa=q.next();!aa.done;aa=q.next())v.delete(aa.value.issueId);aa=l(v.entries());for(q=aa.next();!q.done;q=
aa.next())v=l(q.value),q=v.next().value,v=v.next().value,vzc(c.implicitTriageService,q,v);c.cdr.detectChanges()}).catch(function(q){c.errorHandler.errorHandler(null,q)})};
var jjd=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&&GE(a.clearcut,(new Date).getTime()-d.getTime(),"issueBulkEditApiCall-hotlistEditTime");c.errors&&c.errors.length?(b="Failed to update issue(s) "+(Bwa(c.errors)+"."),a.butterBar.showWarning(b),a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"bulkEditError",""+c.errors.length)):(c=UKc(a.statusMessages,b,a.customFieldMap))?(d&&
GE(a.clearcut,(new Date).getTime()-d.getTime(),"issueBulkEditApiCall-fromIssueListPage"),Kq(a.butterBar,c)):Kq(a.butterBar,"Saved "+rOa(b.bulkEditOps).length+" issue(s).")};g=H6.prototype;
g.loadHotlists=function(a){var b=this;a=l(a?[a]:this.searchResults?this.searchResults.issues:[]);for(var c=a.next();!c.done;c=a.next()){c=c.value;if(!c.hotlistId)break;c=l(c.hotlistId);for(var d=c.next();!d.done;d=c.next())d=d.value,this.hotlistMap[d]||this.hotlistApi.get(d).then(function(e){b.hotlistFridge.announce(e);b.addHotlist(e)}).catch(function(){})}};g.addHotlist=function(a){this.hotlistMap[a.hotlistId]||(this.hotlistMap[a.hotlistId]=a,this.hotlistChoices.push(a))};
g.createHotlist=function(a){var b=this;var c=a.name;var d=a.successCallback;a=a.errorCallback;this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"createHotlist");Kq(this.butterBar,"Creating hotlist "+c+"...",0);this.hotlistApi.createHotlist(c).then(function(e){b.hotlistFridge.announce(e);Kq(b.butterBar,"Hotlist "+c+" created successfully.");b.hotlistChoices.push(e);b.hotlistMap[e.hotlistId]=e;b.appEvents.hotlistCreated.next();d(e);b.cdr.detectChanges()}).catch(a)};
g.loadHotlist=function(a){var b=this;var c=a.hotlistId;var d=a.successCallback;a=a.errorCallback;Kq(this.butterBar,"Loading hotlist "+c);this.hotlistMap[c]||this.hotlistApi.get(c).then(function(e){b.hotlistFridge.announce(e);b.addHotlist(e);d(e);b.cdr.detectChanges()}).catch(a)};g.exportCsv=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"exportCsv");VK(this.domSafe,this.getCsvUrl())};
g.saveResultsPerPage=function(a){var b=this;this.userPreferencesManager.save({resultsPerPage:a}).pipe(yg(this.destroyed$)).subscribe(function(){b.resultsPerPage=a;c1(b.urlPreferences,{page:1});b.analytics.trackEvent(b.ANALYTICS_CATEGORY,"resultsPerPageSave",a.toString());b.refreshResults();b.cdr.detectChanges()},function(c){Vj(c)})};
var hjd=function(a,b,c){var d=a.issuePagination.getFocusedIssue();a.timeout.schedule(function(){if(d>=b&&d<=c)a.focusedRowIndex=d-b;else{T7c(a.issuePagination);a.focusedRowIndex=0;var e=document.querySelector(".bv2-view");e&&(e.scrollTop=0)}a.cdr.detectChanges()})};H6.prototype.onColumnsChange=function(){kjd()};var kjd=function(){setTimeout(function(){var a=document.querySelector(".b-select-all-toggle");a&&a.focus()})};
nd.Object.defineProperties(H6.prototype,{issueColumns:{configurable:!0,enumerable:!0,get:function(){return this.issueColumnsInternal},set:function(a){gj(this.issueColumnsInternal,a)||(this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"columnModification",FHa(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)))}}});H6.DEFAULT_META_COLUMNS=[K0,L0,M0];
H6.\u0275fac=function(a){return new (a||H6)};H6.\u0275dir=vf({type:H6,features:[Bg]});var QVb=function(){return{q:"status:open"}},I6=function(){H6.apply(this,arguments);this.hotkeys=r(PG);this.pageTitle=r(EY);this.routePerformance=r(LX);this.element=r(Te);this.imageUrls=r(YM);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 tg};Y(I6,H6);I6.\u0275dir=H6.\u0275dir;g=I6.prototype;
g.ngOnInit=function(){var a=this;H6.prototype.ngOnInit.call(this);this.subscriptions.add(QG(this.hotkeys,{title:"Issue List",hotkeys:this.BASE_HOTKEYS}));this.subscriptions.add(this.userPreferencesManager.listViewPreferences$.subscribe(function(b){a.showHotlists=b.showHotlists}))};
g.getIssues=function(){var a=this,b=this.bLocation.search().warning;b&&(Array.isArray(b)&&(b=b[0]),this.butterBar.showWarning(b));this.query=this.urlPreferences.getQuery();if(!this.query)return this.activeSession.isAnonymous()?(this.query="",cX(this.appSearchState,this.query),this.searchResults=null,this.setPageTitle(),this.isLoading=!1):(this.routePerformance.ignoringNextNav=!0,c1(this.urlPreferences,{query:"assignee:"+this.currentUserEmail+" status:open"},!0)),Promise.resolve(void 0);cX(this.appSearchState,
this.query);b=X5c(this.appSearchState);if(b>0)return BCc(this.bLocation,Dq.viewHotlist.makeHref(b)),c1(this.urlPreferences,{query:null},!0),Promise.resolve(void 0);b=Y5c(this.appSearchState);if(b>0)return BCc(this.bLocation,this.paths.viewSavedSearch(b)),c1(this.urlPreferences,{query:null},!0),Promise.resolve(void 0);this.searchResults=null;this.isLoading=!0;this.setPageTitle();this.subscriptions.add(Xf(bg(0).pipe(lla()),CAa("b-issues-grid, #no-results",this.element.nativeElement)).subscribe(function(){var c=
function(){j7c(a.routePerformance,"issue-list-w-results")};requestAnimationFrame(c);setTimeout(c)}));return this.doSearch().then(function(c){c&&(a.isLoading=!1,a.cdr.detectChanges())}).catch(function(){a.isLoading=!1;a.cdr.detectChanges()})};
g.doSearch=function(){var a=this;this.cancelConcurrentlyRunningSearches$.next(new ljd);var b=this.gridPreferencesFetcher.fetch({resultsPerPage:25,page:1,query:"",sortColumns:[],displayColumns:djd(this)}),c=Promise.race([b.searchPreferences.then(function(f){f=hj(f);f.query=a.query;f.returnUrl=a.bLocation.getUrl();f.trackerIds=a.appSearchState.currentTrackerScope;return O7c(a.issuePagination,f)}),Rf(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 ljd||ijd(a,f)}).catch(function(f){typeof f==="number"?c1(a.urlPreferences,{page:f}):a.errorHandler.errorHandler(null,f)});b=b.displayColumns;this.initColumns(b);return Aq({searchResultsPage:c,displayColumns:b}).then(function(f){var h=f.searchResultsPage;if(h instanceof ljd)return!1;a.searchResults=h;a.page=h.params.page;a.sortPreferences=
h.params.sortColumns||[];a.loadHotlists();a.cdr.detectChanges();a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"issueSearch",f.displayColumns.join("|")+" ("+a.sortPreferences.join("|")+")");return!0})};g.saveColumns=function(a){this.displayColumns=a.map(function(b){return Tr(b.name)});Czc(this.userPreferencesManager,Yvb(a)).pipe(yg(this.destroyed$)).subscribe()};
g.setPageTitle=function(){this.appSearchState.currentQuery===U5c(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===W5c(this.currentUserEmail)?this.pageTitle.setTitle("To be verified"):this.pageTitle.setTitle(this.query)};
g.saveSortColumns=function(a){var b=this,c=this.bLocation.search(),d=a.map(function(e){return{column:e.fieldId,order:e.direction}});this.userPreferencesManager.saveSortColumns(d).pipe(yg(this.destroyed$)).subscribe(function(){c1(b.urlPreferences,{sortColumns:a,page:1});kjd();var e=b.bLocation.search();gj(c,e)&&b.refreshResults()})};g.getCsvUrl=function(){return LWa(this.query,this.appSearchState.currentTrackerScope,this.sortPreferences,this.displayColumns,this.showHotlists)};
I6.\u0275fac=function(){var a;return function(b){return(a||(a=Re(I6)))(b||I6)}}();
I6.\u0275cmp=y({type:I6,selectors:[["list-issues-page"]],standalone:!1,features:[Fh([NE]),Bg],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&&(J(0,"h2",0),R(1,"Issue search results"),K(),J(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()}),K(),J(4,"div",3)(5,"b-pagination",4),N("pageChange",function(c){return b.goToPage(c.page)})("resultsPerPageChange",function(c){return b.saveResultsPerPage(c.option)}),K()()(),J(6,"div",5),F(7,NVb,4,1,"div",
6),F(8,TVb,6,4,"div",7),F(9,UVb,2,6,"div",8),K());a&2&&(x(3),I("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices),x(2),I("searchResults",b.searchResults),x(),Lg("aria-busy",b.isLoading),x(),G(b.isLoading?7:-1),x(),G(b.isLoading||b.hasResults()?-1:8),x(),G(!b.isLoading&&b.hasResults()?9:-1))},dependencies:[P0,C1,I0,xC,yN,gO],styles:[".empty-state-img[_ngcontent-%COMP%]{max-width:320px;max-height:320px;padding-bottom:56px}/*# sourceMappingURL=list_issues.css.map */"]});
var ljd=function(){},J6=function(){};J6.\u0275fac=function(a){return new (a||J6)};J6.\u0275mod=uf({type:J6});J6.\u0275inj=Dd({imports:[Y0,D1,A1,TQ,HC,AN,hO,Ay,nH,UX,gX]});var K6=function(){this.cdr=r(NE,{self:!0});this.sloApi=r(LF);this.errorHandler=r(aK);this.activeSession=r(Bs);this.isLoading=!1;this.activeSlos=[];this.archivedSlos=[];this.createSloPath=Dq.createSlo.makeHref();this.sloEnabled=this.activeSession.isInternalSession();this.areArchivedSlosExpanded=!1};K6.prototype.ngOnInit=function(){this.sloEnabled&&mjd(this)};
var mjd=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)})};K6.\u0275fac=function(a){return new (a||K6)};
K6.\u0275cmp=y({type:K6,selectors:[["list-slos-page"]],standalone:!1,features:[Fh([NE])],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&&(J(0,
"div",0)(1,"a",1),R(2," Create SLO "),K()(),J(3,"div",2),F(4,VVb,5,0,"div",3),F(5,WVb,1,1,"b-spinner",4)(6,bWb,7,6),K());a&2&&(x(),I("href",b.createSloPath,hf),x(3),G(b.sloEnabled?4:-1),x(),G(b.isLoading?5:6))},dependencies:[FC,oG,Jx,h2,yN],encapsulation:2});var eBa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(eBa,n);g=eBa.prototype;g.getAuthor=function(){return W(this,Gj,1)};g.setAuthor=function(a){X(this,Gj,1,a)};g.hasAuthor=function(){return tk(this,Gj,1)};g.getTimestamp=function(){return W(this,bk,2)};g.setTimestamp=function(a){return X(this,bk,2,a)};g.hasTimestamp=function(){return tk(this,bk,2)};g.getAdd=function(){return W(this,wn,3)};g.setAdd=function(a){return X(this,wn,3,a)};
g.getRemove=function(){return W(this,wn,4)};g.setRemove=function(a){return X(this,wn,4,a)};g.getAddMask=function(){return W(this,fo,5)};g.getMutableAddMask=function(){return Cu(this,fo,5)};g.setAddMask=function(a){return X(this,fo,5,a)};g.getRemoveMask=function(){return W(this,fo,6)};g.getMutableRemoveMask=function(){return Cu(this,fo,6)};g.setRemoveMask=function(a){return X(this,fo,6,a)};var njd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(njd,n);var L6=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,L6.messageId)};Y(L6,n);L6.prototype.getIt=function(){return W(this,njd,2,Nc)};L6.prototype.setIt=function(a){return X(this,njd,2,a,Nc)};L6.messageId="b.ComponentHistory";var M6=function(){this.executor=r(QA);this.bCacheFactory=r(QC);this.componentHistoriesCache=this.bCacheFactory.get("component_histories-second-level-cache")||this.bCacheFactory.create("component_histories-second-level-cache",{capacity:25})};M6.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:L6}).then(fBa))};
M6.prototype.getUncached=function(a){this.invalidateCache(a);return this.get(a)};M6.prototype.invalidateCache=function(a){this.componentHistoriesCache.remove(a)};M6.\u0275fac=function(a){return new (a||M6)};M6.\u0275prov=Cd({token:M6,factory:M6.\u0275fac,providedIn:"root"});var dWb=function(a,b){return b.key},N6=function(){this.dialogData=r(QJ);this.dialogRef=r(KJ);this.constants=r(dK);this.fb=(new zy).nonNullable;this.issueTypeToDisplay=tj;this.displayedColumns=["id","name","description","visibility"];this.trackBy=function(c,d){return""+d.key};var a,b;this.nameForm=this.fb.control((b=(a=this.dialogData.fieldConfigV2)==null?void 0:a.name)!=null?b:"",[Si]);this.customFieldsMap=new Map(this.dialogData.customFields.map(function(c){return[c.customFieldId,c]}));this.hideIssueTypes=
this.dialogData.disallowIssueTypes||this.dialogData.fieldConfigV2!==void 0&&this.dialogData.fieldConfigV2.issueTypes.size===0;this.issueTypesForms=ojd(this);this.customFieldConfigsForms=pjd(this);this.dialogRef.disableClose=!0},qjd=function(a){return{name:a.nameForm.value,issueTypes:new Set([].concat(p(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(Array.from(a.customFieldConfigsForms.entries(),
function(b){var c=l(b);b=c.next().value;c=c.next().value;return[b,c.value]}))}},pjd=function(a){var b,c,d=(c=(b=a.dialogData.fieldConfigV2)==null?void 0:b.customFieldConfigs)!=null?c:new Map;return new Map(a.dialogData.customFields.map(function(e){var f;return[e.customFieldId,a.fb.control((f=d.get(e.customFieldId))!=null?f:!0)]}))},ojd=function(a){var b,c,d=(c=(b=a.dialogData.fieldConfigV2)==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)]}))};N6.prototype.save=function(){this.dialogRef.close(qjd(this))};N6.\u0275fac=function(a){return new (a||N6)};
N6.\u0275cmp=y({type:N6,selectors:[["b-field-configuration-dialog"]],standalone:!1,decls:31,vars:8,consts:[["mat-dialog-title",""],[1,"margin-none"],["mat-dialog-content",""],["appearance","outline","subscriptSizing","dynamic",1,"field-configuration-name-field"],["matInput","","type","text","required","","aria-required","true","autocomplete","off",3,"formControl"],[1,"issue-type-checkboxes"],[1,"custom-field-selections"],["mat-table","",3,"dataSource","trackBy"],["matColumnDef","id"],["mat-header-cell",
"",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","description"],["matColumnDef","visibility"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["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"],["required","","aria-required","true",3,"formControl"],["mat-header-cell",
""],["mat-cell",""],["aria-label","Field visibility",3,"formControl"],[3,"value"],["mat-header-row",""],["mat-row",""]],template:function(a,b){a&1&&(J(0,"div",0)(1,"h1",1),R(2,"Modify Field Configuration"),K()(),J(3,"div",2)(4,"mat-form-field",3)(5,"mat-label"),R(6," Configuration name "),K(),M(7,"input",4),K(),F(8,eWb,4,2,"div",5),J(9,"div",6)(10,"table",7),U(11,"keyvalue"),Wg(12,8),D(13,fWb,2,0,"th",9)(14,gWb,3,1,"td",10),Xg(),Wg(15,11),D(16,hWb,2,0,"th",9)(17,iWb,2,1,"td",10),Xg(),Wg(18,12),D(19,
jWb,2,0,"th",9)(20,kWb,2,1,"td",10),Xg(),Wg(21,13),D(22,lWb,2,0,"th",9)(23,mWb,6,3,"td",10),Xg(),D(24,nWb,1,0,"tr",14)(25,oWb,1,0,"tr",15),K()()(),J(26,"div",16)(27,"button",17),N("click",function(){return b.dialogRef.close()}),R(28," Cancel "),K(),J(29,"button",18),N("click",function(){return b.save()}),R(30," Save "),K()());a&2&&(x(7),I("formControl",b.nameForm),x(),G(b.hideIssueTypes?-1:8),x(2),I("dataSource",V(11,6,b.customFieldConfigsForms))("trackBy",b.trackBy),x(14),I("matHeaderRowDef",b.displayedColumns),
x(),I("matRowDefColumns",b.displayedColumns))},dependencies:[Ui,dy,vy,oG,Jx,gM,hM,UJ,WJ,VJ,FM,Uy,My,Fy,DM,bP,jP,Bx,cP,XP,KP,QP,MP,JP,SP,NP,PP,TP,VP,py,Yv],styles:[".issue-type-checkboxes[_ngcontent-%COMP%]{display:grid;gap:8px;grid-template-columns:1fr 1fr 1fr 1fr}.field-configuration-name-field[_ngcontent-%COMP%]{width:100%;margin:16px 0px}"],changeDetection:0});var rjd=function(){return["name","actions"]},sjd=function(){return["name","inherited-from","actions"]},tjd=function(){return["name","types","actions"]},ujd=function(){return["name","types","inherited-from","actions"]},vjd=function(){return["section-title"]},wjd={text:"Default configurations for this component",rowType:"sectionTitle"},O6=function(){this.matDialog=r(RJ);this.confirmationDialog=r(YJ);this.fieldConfigService=r(s3);this.butterBar=r(GJ);this.ROUTES=Dq;this.rows=[];this.componentIdsToPaths=
{};this.currentComponentConfigs=[];this.displayedColumns=["name","types","inherited-from","actions"];this.trackBy=function(a,b){return b.rowType==="fieldConfig"?b.owningComponentId+"_"+b.order:b.text};this.isOwnDefaultRow=function(a,b){return b.rowType==="fieldConfig"&&!b.inherited&&b.isDefault};this.isInheritedDefaultRow=function(a,b){return b.rowType==="fieldConfig"&&b.inherited&&b.isDefault};this.isOwnTypedRow=function(a,b){return b.rowType==="fieldConfig"&&!b.inherited&&!b.isDefault};this.isInheritedTypedRow=
function(a,b){return b.rowType==="fieldConfig"&&b.inherited&&!b.isDefault};this.isSectionTitleRow=function(a,b){return b.rowType==="sectionTitle"}};
O6.prototype.ngOnChanges=function(){var a,b,c;if(this.currentComponentId=(c=(b=this.componentPathInfo.componentPathId)==null?void 0:b[((a=this.componentPathInfo.componentPathId)==null?NaN:a.length)-1])!=null?c:void 0){var d;this.currentComponentConfigs=(d=this.componentPathInfo.fieldConfigsV2Map.get(this.currentComponentId))!=null?d:[]}a=this.componentPathInfo;b={};c=[];var e;d=(e=a.componentPathId)!=null?e:[];for(e=0;e<d.length;e++){var f=d[e];c.push(a.componentPathName[e]);b[f]=c.join(" > ")}this.componentIdsToPaths=
b;var h;c=[].concat(p((h=this.componentPathInfo.componentPathId)!=null?h:[])).reverse();h=void 0;e=[];a=[];b=[];c=l(c);for(d=c.next();!d.done;d=c.next())if(d=d.value,f=this.componentPathInfo.fieldConfigsV2Map.get(d))if(d===this.currentComponentId)for(d=l(f),f=d.next();!f.done;f=d.next())f=f.value,f.issueTypes.size?a.push(f):h=f;else for(d=l(f),f=d.next();!f.done;f=d.next())f=f.value,f.issueTypes.size?b.push(f):e.push(f);c=[];a.length>0&&c.push.apply(c,p(xjd(this,a)));b.length>0&&c.push.apply(c,p(xjd(this,
b)));(h||a.length>0)&&c.push(wjd);h&&c.push.apply(c,p(xjd(this,[h])));e.length>0&&c.push.apply(c,p(xjd(this,e)));this.rows=c};
var tWb=function(a){return Array.from(a,function(b){return tj(b)}).sort().join("\n")},zWb=function(a,b){var c;return LJ(a.matDialog.open(N6,{width:"50vw",data:{customFields:(c=a.componentPathInfo.allCustomField)!=null?c:[],fieldConfigV2:b}})).subscribe(function(d){if(d){var e=a.currentComponentConfigs.findIndex(function(){return b});d=[].concat(p(a.currentComponentConfigs)).splice(e,1,d);yjd(a,d)}})},zjd=function(a,b){var c;return LJ(a.matDialog.open(N6,{width:"50vw",data:{disallowIssueTypes:!!b,
customFields:(c=a.componentPathInfo.allCustomField)!=null?c:[]}})).subscribe(function(d){d&&yjd(a,[].concat(p(a.currentComponentConfigs),[d]))})},AWb=function(a,b){a.confirmationDialog.open({title:"Delete field configuration?",content:Xi("Are you sure you want to delete the "+b.name+"? This cannot be undone."),onConfirm:function(){yjd(a,a.currentComponentConfigs.filter(function(c){return c!==b}))}})},yjd=function(a,b){a.currentComponentId&&Ofd(a.fieldConfigService,a.currentComponentId,b).subscribe(function(){Kq(a.butterBar,
"Field configurations saved",3E3)},function(){a.butterBar.showWarning("Saving field configurations failed, please refresh the page.",5E3)})},xjd=function(a,b){return b.map(function(c,d){var e;return{inherited:c.componentId!==a.currentComponentId,name:c.name,isDefault:!((e=c.issueTypes)==null?0:e.size),issueTypes:c.issueTypes,owningComponentId:c.componentId,order:d,rowType:"fieldConfig"}})};O6.\u0275fac=function(a){return new (a||O6)};
O6.\u0275cmp=y({type:O6,selectors:[["b-field-configuration"]],inputs:{componentPathInfo:"componentPathInfo",isAdmin:"isAdmin"},standalone:!1,features:[ov],decls:33,vars:20,consts:[["deleteDialog",""],["saveBeforeClosingDialog",""],["card","onedevHovercard"],["cardBody",""],[1,"component-banner","config-help-banner"],["mat-table","","multiTemplateDataRows","",3,"dataSource","trackBy"],["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","matRowDefWhen"],["mat-row","","class","section-title-row",4,"matRowDef","matRowDefColumns","matRowDefWhen"],[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"],["mat-cell",""],["mat-header-cell",""],[1,"config-component-path"],[1,"header-label"],[3,"onedevHovercardTrigger","href"],[4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","componentId"],[1,"action-buttons-row"],["type","button","mat-button","","aria-label","Create copy of configuration",1,"create-copy-configuration",3,"disabled"],["type","button","mat-button","","aria-label","Edit configuration",
1,"edit-configuration",3,"click","disabled"],["type","button","mat-button","","aria-label","Delete configuration",1,"delete-configuration",3,"click","disabled"],["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"],["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();J(0,"div")(1,"div",4);R(2," Configurations placed higher in the table that match an issue will supersede those further down the list. ");K();J(3,"table",5);Wg(4,6);D(5,pWb,3,2,"td",7);Xg();Wg(6,8);D(7,qWb,2,0,"th",9)(8,rWb,2,2,"td",7);Xg();Wg(9,10);D(10,sWb,2,0,"th",9)(11,uWb,2,2,"td",7);Xg();Wg(12,11);D(13,vWb,2,0,
"th",9)(14,xWb,10,5,"td",7);Xg();Wg(15,12);D(16,yWb,2,0,"th",9)(17,DWb,4,2,"td",7);Xg();D(18,EWb,1,0,"tr",13)(19,FWb,1,0,"tr",14)(20,GWb,1,0,"tr",14)(21,HWb,1,0,"tr",14)(22,IWb,1,0,"tr",14)(23,JWb,1,0,"tr",15);K();J(24,"div",16)(25,"button",17);N("click",function(){u(c);return w(zjd(b))});R(26," Create New Typed Configuration ");K();J(27,"button",18);N("click",function(){u(c);return w(zjd(b,"disallowIssueTypes"))});R(28," Create New Default Configuration ");K()();D(29,KWb,7,3,"ng-template",null,0,
Lh)(31,LWb,9,4,"ng-template",null,1,Lh);K()}a&2&&(x(3),I("dataSource",b.rows)("trackBy",b.trackBy),x(15),I("matHeaderRowDef",b.displayedColumns),x(),I("matRowDefColumns",Gh(15,rjd))("matRowDefWhen",b.isOwnDefaultRow),x(),I("matRowDefColumns",Gh(16,sjd))("matRowDefWhen",b.isInheritedDefaultRow),x(),I("matRowDefColumns",Gh(17,tjd))("matRowDefWhen",b.isOwnTypedRow),x(),I("matRowDefColumns",Gh(18,ujd))("matRowDefWhen",b.isInheritedTypedRow),x(),I("matRowDefColumns",Gh(19,vjd))("matRowDefWhen",b.isSectionTitleRow),
x(2),I("disabled",!b.isAdmin),x(2),I("disabled",!b.isAdmin))},dependencies:[TM,oG,Jx,SJ,WJ,VJ,cP,XP,KP,QP,MP,JP,SP,NP,PP,TP,VP,DI,EI,JI,FI],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}button[_ngcontent-%COMP%]{margin-right:12px}"],
changeDetection:0});var P6=function(){};P6.prototype.ngOnInit=function(){};P6.\u0275fac=function(a){return new (a||P6)};P6.\u0275cmp=y({type:P6,selectors:[["slo-inheritance-breadcrumbs"]],inputs:{componentPath:"componentPath",teamPath:"teamPath"},standalone:!1,decls:2,vars:2,consts:[[3,"teamPath"],["componentPathsLinkTo","settings",3,"componentPathInfo"]],template:function(a,b){a&1&&(F(0,MWb,3,1),F(1,NWb,3,1));a&2&&(G(b.teamPath?0:-1),x(),G(b.componentPath?1:-1))},dependencies:[UM,I1],styles:["b-component-breadcrumb[_ngcontent-%COMP%], b-team-breadcrumb[_ngcontent-%COMP%]{display:inline-block}"]});var Ajd={BASIC:"basic",CUSTOM_FIELDS:"customFields",FIELD_ORDERING:"fieldOrdering",FIELD_CONFIGURATION:"fieldConfiguration",TEMPLATES:"templates",ACCESS:"access"},Bjd={},Cjd=(Bjd[0]="access",Bjd[1]="access_permissions",Bjd),Q6=function(){Z.call(this);var a=this;this.bLocation=r(DH);this.route=r(Jn);this.activeSession=r(Bs);this.isFieldConfigurationV2Enabled=OA(this.activeSession,"enableFieldConfigV2Fe")&&this.activeSession.isInternalSession();this.TAB_LIST=["basic","customFields","fieldOrdering"].concat(p(this.isFieldConfigurationV2Enabled?
["fieldConfiguration"]:[]),["templates","access"]);this.Tab=Ajd;this.selectedTabIndex=this.tabIndex("basic");this.selectedAccessSubTabIndex=0;this.componentReady$=new tg;this.componentReady$.subscribe(function(){a.selectedTabIndex=a.tabIndex("basic");a.route.fragment.pipe(yg(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==="fieldConfiguration")a.selectedTabIndex=a.tabIndex("fieldConfiguration");else if(b==="access"||b==="access"||b==="access_permissions")a.selectedTabIndex=a.tabIndex("access"),b==="access_permissions"&&(a.selectedAccessSubTabIndex=1),aZb(a)})})};Y(Q6,Z);Q6.\u0275dir=Z.\u0275dir;Q6.prototype.tabIndex=function(a){a=this.TAB_LIST.indexOf(a);return a!==-1?a:0};
Q6.prototype.tabChange=function(a){if(a===this.tabIndex("access")&&this.selectedAccessSubTabIndex>0){var b,c=(b=Cjd[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 aZb=function(a){a.selectedAccessSubTabIndex===1?a.bLocation.hash("access_permissions",!0):a.selectedAccessSubTabIndex===0&&a.bLocation.hash("access",!0)};Q6.\u0275fac=function(a){return new (a||Q6)};
Q6.\u0275prov=Cd({token:Q6,factory:Q6.\u0275fac,providedIn:"root"});var SWb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(SWb,n);var Djd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Djd.messageId)};Y(Djd,n);Djd.messageId="b.BatchGroupMetadataResult";var S6=function(){var a=this;this.groupMetadataResources=r(R6);this.bulkGetter=r(xD).adapt(function(b){return a.groupMetadataResources.bulkGet(b).then(function(c){var d=OWb(c);return Ddc(b,function(e){return d[e]||null})})})};S6.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"}})};S6.\u0275fac=function(a){return new (a||S6)};
S6.\u0275prov=Cd({token:S6,factory:S6.\u0275fac,providedIn:"root"});var R6=function(){this.executor=r(QA)};R6.prototype.bulkGet=function(a){a=[].concat(p(new Set(a)));a=Xm(a.join(","));return this.executor.get({url:"action/group_metadata/"+a,responseConstructor:Djd}).then(TWb)};R6.\u0275fac=function(a){return new (a||R6)};R6.\u0275prov=Cd({token:R6,factory:R6.\u0275fac,providedIn:"root"});var UWb=[{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 T6=function(){var a=this;this.activeSession=r(Bs);this.confirmationDialogService=r(YJ);this.documentationLinks=r(JJ);this.groupMetadata=r(S6);this.componentReaders=[];this.enableRostersChecks=OA(this.activeSession,"enableRostersChecks");this.enableComponentAutomationCheck=OA(this.activeSession,"enableComponentAutomationCheck");this.isPublic=function(){return ur(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:Xi("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:Xi('"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){dXb(a.activeSession.getUserEmail(),
a.componentFlattenedAccessPolicy,a.componentAccessPolicyUnderEdit)?a.confirmationDialogService.open({title:"Component Administrators Changed",content:Xi("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){cXb(a.issueDefaultFlattenedAccessPolicy,a.issueDefaultAccessPolicyUnderEdit)?a.confirmationDialogService.open({title:"Group Removed from Restricted+ Readers",content:Xi("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=lMa(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=sj([].concat(p(lj(a.componentAccessPolicyUnderEdit.admins,a.componentFlattenedAccessPolicy.admins)),p(lj(a.issueDefaultAccessPolicyUnderEdit.admins,a.issueDefaultFlattenedAccessPolicy.admins)),p(lj(a.issueDefaultAccessPolicyUnderEdit.editors,a.issueDefaultFlattenedAccessPolicy.editors)),p(lj(a.issueDefaultAccessPolicyUnderEdit.appenders,
a.issueDefaultFlattenedAccessPolicy.appenders)),p(lj(a.issueDefaultAccessPolicyUnderEdit.readers,a.issueDefaultFlattenedAccessPolicy.readers)),p(lj(a.issueDefaultAccessPolicyUnderEdit.restrictedReaders,a.issueDefaultFlattenedAccessPolicy.restrictedReaders)),p(lj(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=YWb(b);b=bXb(b);if(c.size===0&&b.size===0)return Promise.resolve(!0);var d=ZWb(c.size,b.size);c=$Wb(c);b=aXb(b);var e=Zi([c,c===Jr?Jr:$i("br"),b]);c={};e=Zi([e,$i("p",{},Zi(["Please review the ",$i("a",(c.href=oKc(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()&&XWb(a.issueDefaultAccessPolicyUnderEdit,a.issueDefaultFlattenedAccessPolicy)){var c={};c=Zi([$i("p",{},"You are about to give a broad category of users permissions on a public component."),$i("p",{},Zi(["Please review the ",$i("a",(c.href=nKc(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=$i("a",(b.href=zq(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:Yi(["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:Yi(["Some users may lose the ability to edit or comment on issues in this component. ",c]),onConfirm:function(){d(!0)},onDismiss:function(){d(!1)}})})};this.getAddedAutomationInPolicyChange=
function(){var b=[].concat(p(VWb(a.issueDefaultFlattenedAccessPolicy,a.issueDefaultAccessPolicyUnderEdit)),p(VWb(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=lMa(e.value),(tsa(e)?Gva(e.user.emailAddress):e.group!==void 0&&Gva(e.group.emailAddress))&&c.add(e)}return[].concat(p(c))};this.performAutomationUserAccessCheck=function(){if(!a.enableComponentAutomationCheck)return Promise.resolve(!0);
var b=a.getAddedAutomationInPolicyChange();return new Promise(function(c){if(b.length){var d={};d=$i("a",(d.href=lKc(a.documentationLinks),d)," automation account documentation");a.confirmationDialogService.open({title:"Adding automation accounts",content:Zi([Xi("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"),$i("wbr"),d,Xi("."),$i.apply(null,["ol",{}].concat(p(b.map(function(e){if(tsa(e)){var f;
return $i("li",{},Xi((f=e.user.emailAddress)!=null?f:""))}if(e.group!==void 0){var h;return $i("li",{},Xi((h=e.group.emailAddress)!=null?h:""))}throw Error("sf`"+JSON.stringify(e));})))),$i("br",{}),Xi("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 z(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 B(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)}})}},Ejd=function(a,b){var c=b.component;var d=b.originalComponent;var e=b.componentReaders;var f=b.componentAccessPolicyUnderEdit;var h=b.componentFlattenedAccessPolicy;var k=b.issueDefaultAccessPolicyUnderEdit;var q=b.issueDefaultFlattenedAccessPolicy;var v,A;return z(function(E){if(E.nextAddress==1)return a.component=c,a.originalComponent=d,a.componentReaders=e,a.componentAccessPolicyUnderEdit=
f,a.componentFlattenedAccessPolicy=h,a.issueDefaultAccessPolicyUnderEdit=k,a.issueDefaultFlattenedAccessPolicy=q,v=[a.performAccessLimitCheck,a.performDeletedAccountsCheck,a.performAdminAccessRemovalCheck,a.performRestrictedPlusGroupRemovalCheck,a.performAddedLargeOrOpenGroupCheck,a.performAddedNewInternalAliasesCheck,a.performChangedImplicitAccessCheck,a.performAutomationUserAccessCheck],B(E,a.runValidation(v),2);A=E.yieldResult;return E.return(A)})};T6.\u0275fac=function(a){return new (a||T6)};
T6.\u0275prov=Cd({token:T6,factory:T6.\u0275fac});var U6=function(){Z.apply(this,arguments);this.principalTypes=r(FF);this.componentReaders=[];this.templates=[]};Y(U6,Z);U6.\u0275dir=Z.\u0275dir;
U6.prototype.ngOnChanges=function(){var a=this.componentAccessPolicy,b=this.issueAccessPolicy,c=new Set([].concat(p(this.componentReaders))),d=new Set([].concat(p(a.admins),p(a.inheritedAdmins)));a=new Set([].concat(p(d),p(a.appenders)));var e=new Set([].concat(p(b.admins))),f=new Set([].concat(p(e),p(b.editors))),h=new Set([].concat(p(f),p(b.appenders))),k=new Set([].concat(p(b.restrictedPlusReaders))),q=new Set([].concat(p(k),p(b.restrictedReaders)));b=new Set([].concat(p(q),p(h),p(b.readers)));
this.templates=[{permission:"Admin Components",principals:[].concat(p(d)).map(xs)},{permission:"Create Issues",principals:[].concat(p(a)).map(xs)},{permission:"Admin Issues",principals:[].concat(p(e)).map(xs)},{permission:"Edit Issues",principals:[].concat(p(f)).map(xs)},{permission:"Comment on Issues",principals:[].concat(p(h)).map(xs)},{permission:"View Issues",principals:[].concat(p(b)).map(xs)},{permission:"View Components",principals:[].concat(p(c)).map(xs)},{permission:"View Restricted",principals:[].concat(p(q)).map(xs)},
{permission:"View Restricted+",principals:[].concat(p(k)).map(xs)}];Fjd(this,this.templates)};
var Fjd=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":GF(a.principalTypes,e.principal$jscomp$15.value,!0).then(function(f){return function(h){f.principal$jscomp$15.detailedUserType=h.detailedUserType}}(e))}};
U6.\u0275fac=function(){var a;return function(b){return(a||(a=Re(U6)))(b||U6)}}();
U6.\u0275cmp=y({type:U6,selectors:[["permissions-view"]],inputs:{issueAccessPolicy:"issueAccessPolicy",componentAccessPolicy:"componentAccessPolicy",componentReaders:"componentReaders",accessLevel:"accessLevel"},standalone:!1,features:[Bg,ov],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&&(J(0,"table")(1,"tr",0)(2,"th",1),R(3,"Permission"),
K(),J(4,"th",1),R(5,"Users With Permission"),K()(),Pg(6,fXb,6,1,"tr",2,Og),K());a&2&&(x(6),Qg(b.templates))},dependencies:[wQ],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 Gjd=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"}),V6={},Hjd=(V6.issueAdmin=new Set(["issueEditor"]),V6.issueEditor=new Set(["issueAppender"]),V6.issueAppender=new Set(["issueReader"]),V6.issueRestrictedReader=
new Set(["issueReader"]),V6.issueRestrictedPlusReader=new Set(["issueRestrictedReader"]),V6.issueReader=new Set(["componentReader"]),V6.componentAdmin=new Set(["componentAppender"]),V6.componentAppender=new Set(["componentReader"]),V6.componentReader=new Set,V6),qXb=vsa(Gjd,function(a){return Hjd[a]}),oXb=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"}),W6={},Ijd=(W6.componentAdmin=new Set(["componentAdmin","issueAdmin"]),W6.issueAdmin=new Set(["issueAdmin","componentAppender"]),W6.issueEditor=new Set(["issueEditor","componentAppender"]),W6.issueContributor=new Set(["issueAppender","componentAppender"]),W6.componentAdminOnly=new Set(["componentAdmin"]),
W6.issueCreator=new Set(["componentAppender"]),W6.issueAdminOnly=new Set(["issueAdmin"]),W6.issueEditorExisting=new Set(["issueEditor"]),W6.issueCommenter=new Set(["issueAppender"]),W6.restrictedPlusViewer=new Set(["issueRestrictedPlusReader"]),W6.restrictedViewer=new Set(["issueRestrictedReader"]),W6.issueViewer=new Set(["issueReader"]),W6),nXb=vsa(oXb,function(a){return Ijd[a]}),Jjd=rXb(),mXb=vsa(oXb,function(a){a=[].concat(p(nXb.get(a))).flatMap(function(b){return[].concat(p(Jjd.get(b)))});return new Set(a)}),
pXb=vsa(oXb,function(a){return new Set(oXb.filter(function(b){return b!==a&&$ra(mXb.get(b),mXb.get(a))}))});var uXb={componentAdmin:[],componentAdminOnly:[],issueAdminOnly:[],inheritedComponentAdmin:[],issueAdmin:[],editor:[],contributor:[],viewer:[],editExistingIssuesOnly:[],createIssuesOnly:[],commentOnly:[],viewRestricted:[],viewRestrictedPlus:[]},Kjd={admins:[],editors:[],appenders:[],readers:[],restrictedReaders:[],restrictedPlusReaders:[],inheritedAdmins:[],implicitAccess:null};var X6=function(){var a=this;this.accessPolicyApi=r(rB);this.errorHandler=r(aK);this.butterBar=r(GJ);this.userAccess=r(AD);this.componentActions=r(WM);this.componentValidator=r(T6);this.analytics=r(RE);this.isAdmin=!1;this.rolesMap=uXb;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=Kjd;this.componentAccessPolicyUnderEdit=Tp();this.issueDefaultAccessPolicyUnderEdit=Tp()};
X6.prototype.hasUnsavedAccessLimitChanges=function(){var a=this.originalComponent,b=this.component;return a&&b?a.accessLimit.accessLevel!==b.accessLimit.accessLevel:!1};
var Ljd=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;Kq(a.butterBar,"Changed access level.")},function(b){a.component.accessLimit.accessLevel=a.originalComponent.accessLimit.accessLevel;
var c="Could not change access level. ";Qo(b)&&(c+=Ro(b));a.butterBar.showWarning(c)}).finally(function(){a.isUpdatingAccessLimit=!1;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit})};X6.prototype.updateComponentAndOriginalComponent=function(a){this.component=hj(a);this.originalComponent=hj(a)};
X6.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)})};X6.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)})};
X6.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=Up(c);b.componentAccessPolicyUnderEdit=hj(b.componentFlattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)}),this.accessPolicyApi.get("ISSUE_DEFAULTS",this.componentId).then(function(c){b.issueDefaultFlattenedAccessPolicy=
Up(c);b.issueDefaultAccessPolicyUnderEdit=hj(b.issueDefaultFlattenedAccessPolicy)}).catch(function(c){b.errorHandler.errorHandler(null,c)}),this.loadComponent(),this.loadUserAccess(this.componentId)]).then(function(){})};
var Mjd=function(a){a.rolesMap=vXb({componentAccessPolicy:a.componentAccessPolicyUnderEdit,issueAccessPolicy:a.issueDefaultAccessPolicyUnderEdit})},Njd=function(a,b){var c=a.issueDefaultAccessPolicyUnderEdit,d=a.issueDefaultFlattenedAccessPolicy;return d&&xXb(d,c)?a.accessPolicyApi.update("ISSUE_DEFAULTS",a.componentId,b):Promise.resolve(void 0)},Ojd=function(a){var b=wXb(a.componentAccessPolicyUnderEdit,a.componentFlattenedAccessPolicy);var c=a.issueDefaultAccessPolicyUnderEdit;a=a.issueDefaultFlattenedAccessPolicy;
c=!(!a||!xXb(a,c));return b||c},Pjd=function(a,b){return wXb(a.componentAccessPolicyUnderEdit,a.componentFlattenedAccessPolicy)?a.accessPolicyApi.get("COMPONENT",a.componentId).then(function(c){var d=Up(c);if(wXb(d,a.componentAccessPolicyUnderEdit)){if(wXb(d,a.componentFlattenedAccessPolicy))return Promise.reject(new fxc("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)};X6.prototype.loadUserAccess=function(a){var b=this;return BD(this.userAccess,"admin","components/"+a).then(function(c){b.isAdmin=c;return b.isAdmin?Promise.resolve(!0):BD(b.userAccess,"writer","components/"+a)}).catch(function(c){b.errorHandler.errorHandler(null,c);return Promise.resolve(!1)})};
X6.prototype.doSaveAccessPolicy=function(){var a=this;try{var b=Vp(this.componentAccessPolicyUnderEdit);var c=Vp(this.issueDefaultAccessPolicyUnderEdit)}catch(d){return c="An unknown problem occurred",d instanceof Error&&(c=d.message),this.butterBar.showWarning(c),Promise.resolve()}if(Ojd(this))return this.isSaving=this.isUpdatingAccessPolicy=!0,Kq(this.butterBar,"Saving access settings...",0),Njd(this,c).then(function(d){d&&(b.readers=[].concat(p(d.admins||[]),p(d.editors||[]),p(d.appenders||[]),
p(d.readers||[]),p(d.restrictedPlusReaders||[]),p(d.restrictedReaders||[])));return Pjd(a,b).catch(function(e){var f;return z(function(h){if(h.nextAddress==1)return f=Vp(a.issueDefaultFlattenedAccessPolicy),B(h,Njd(a,f),2);throw e;})})}).then(function(){return Ljd(a)}).then(function(){return a.initialize()}).then(function(){var d=a.rolesMap;Mjd(a);var e=a.rolesMap;var f={componentAdminOnly:d.componentAdminOnly,issueAdminOnly:d.issueAdminOnly,viewer:d.viewer,editExistingIssuesOnly:d.editExistingIssuesOnly,
createIssuesOnly:d.createIssuesOnly,commentOnly:d.commentOnly,viewRestricted:d.viewRestricted,viewRestrictedPlus:d.viewRestrictedPlus},h={componentAdminOnly:e.componentAdminOnly,issueAdminOnly:e.issueAdminOnly,viewer:e.viewer,editExistingIssuesOnly:e.editExistingIssuesOnly,createIssuesOnly:e.createIssuesOnly,commentOnly:e.commentOnly,viewRestricted:e.viewRestricted,viewRestrictedPlus:e.viewRestrictedPlus};d=yXb({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=yXb(f,h);switch(d&&f?2:d?0:f?1:3){case 0:a.analytics.trackEvent("roleBasedPermissions","update","roles:standard");break;case 1:a.analytics.trackEvent("roleBasedPermissions","update","roles:advanced");break;case 2:a.analytics.trackEvent("roleBasedPermissions","update","roles:both");break;default:a.analytics.trackEvent("roleBasedPermissions","update","roles:neither")}Kq(a.butterBar,"Access settings saved",
0)}).catch(function(d){a.butterBar.showWarning(Ro(d),0)}).finally(function(){return z(function(d){if(d.nextAddress==1)return B(d,a.loadUserAccess(a.componentId),2);a.isUpdatingAccessPolicy=!1;a.isSaving=a.isUpdatingAccessPolicy||a.isUpdatingAccessLimit;Lf(d)})});Mjd(this);return Ljd(this)};
var Qjd=function(a,b){b=sXb(b);a.issueDefaultAccessPolicyUnderEdit=Object.assign({},a.issueDefaultAccessPolicyUnderEdit,b.issuesPermissions);a.componentAccessPolicyUnderEdit=Object.assign({},a.componentAccessPolicyUnderEdit,b.componentPermissions)},KXb=function(a,b){a.component&&a.originalComponent&&a.componentFlattenedAccessPolicy&&a.componentAccessPolicyUnderEdit&&a.issueDefaultFlattenedAccessPolicy&&a.issueDefaultAccessPolicyUnderEdit?(Qjd(a,b),Ejd(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();Kq(a.butterBar,"Update failed: Invalid changes to component permissions",0);return Promise.resolve()})):Promise.resolve()};
nd.Object.defineProperties(X6.prototype,{componentAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){gj(a,this.componentAccessPolicyUnderEditInternal)||(this.componentAccessPolicyUnderEditInternal=a,this.componentReaders=tXb({componentAccessPolicy:this.componentAccessPolicyUnderEdit,issueAccessPolicy:this.issueDefaultAccessPolicyUnderEdit}))},get:function(){return this.componentAccessPolicyUnderEditInternal}},issueDefaultAccessPolicyUnderEdit:{configurable:!0,enumerable:!0,set:function(a){gj(a,
this.issueDefaultAccessPolicyUnderEditInternal)||(this.issueDefaultAccessPolicyUnderEditInternal=a,this.componentReaders=tXb({componentAccessPolicy:this.componentAccessPolicyUnderEdit,issueAccessPolicy:this.issueDefaultAccessPolicyUnderEdit}))},get:function(){return this.issueDefaultAccessPolicyUnderEditInternal}}});X6.\u0275fac=function(a){return new (a||X6)};X6.\u0275prov=Cd({token:X6,factory:X6.\u0275fac});var Y6=function(){this.activeSession=r(Bs);this.documentationLinks=r(JJ);this.rolesEditor=r(X6);this.AccessLevelStrings=nnc};Y6.prototype.getRecentIssuesLink=function(){return rq(this.rolesEditor.component.componentId,{includeArchived:this.rolesEditor.component?this.rolesEditor.component.archived:!1})};Y6.prototype.isParentPartner=function(){return!(!this.rolesEditor.parentComponent||!q8a(this.rolesEditor.parentComponent))};
Y6.prototype.isParentPublic=function(){return!(!this.rolesEditor.parentComponent||!ur(this.rolesEditor.parentComponent))};Y6.\u0275fac=function(a){return new (a||Y6)};
Y6.\u0275cmp=y({type:Y6,selectors:[["access-limit-settings"]],standalone:!1,decls:6,vars:3,consts:[[1,"component-banner"],[1,"component-banner","implicit-access-banner"],["aria-label","Learn more about access control","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[1,"component-visibility-settings"],[1,"component-visibility-header"],[1,"access-level-panel"],[1,"access-level-field"],["type","radio","id","access-level-internal","name","accessLevelInternal","value","INTERNAL",3,"disabled",
"ngModel"],["for","access-level-internal"],["type","radio","id","access-level-external-partner","name","accessLevelExternal","value","EXTERNAL_PARTNER",3,"disabled","ngModel"],["for","access-level-external-partner"],[1,"access-level-field","bv2-edit-resource-readonly"],["type","radio","id","access-level-public","name","accessLevelPublic","value","EXTERNAL_PUBLIC",3,"disabled","ngModel"],["for","access-level-public"],[1,"access-level-warning"],["type","radio","id","access-level-internal","name","accessLevelInternal",
"value","INTERNAL",3,"ngModelChange","disabled","ngModel"],["type","radio","id","access-level-external-partner","name","accessLevelExternal","value","EXTERNAL_PARTNER",3,"ngModelChange","disabled","ngModel"],["type","radio","id","access-level-public","name","accessLevelPublic","value","EXTERNAL_PUBLIC",3,"ngModelChange","disabled","ngModel"],["aria-label","Learn more about access level","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"]],template:function(a,b){a&1&&(F(0,DXb,18,7,"div",
0),J(1,"div",1)(2,"p"),R(3," Access to issues is granted per component using the settings below. All settings provide access to view the component. "),J(4,"a",2),R(5,"Learn more"),K()()());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=tr(b.rolesEditor.parentComponent)||tr(b.rolesEditor.component);break a}}else{a=!1;break a}a=void 0}G(a?0:-1);x(4);I("href",Dh("",zq(b.documentationLinks),
"#recommended-role-based-permissions-configurations"),hf)}},dependencies:[Ui,ny,dy,ky],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 Z6=function(){this.documentationLinks=r(JJ);this.rolesEditor=r(X6)};Z6.prototype.isAccessEditDisabled=function(){return this.rolesEditor.isSaving||!this.rolesEditor.isAdmin};Z6.prototype.setImplicitAccess=function(a){this.rolesEditor.implicitAccess.setValue(a)};Z6.\u0275fac=function(a){return new (a||Z6)};
Z6.\u0275cmp=y({type:Z6,selectors:[["expanded-access-settings"]],standalone:!1,decls:10,vars:6,consts:[[1,"expanded-access-settings"],[1,"permission-toggle-checkbox"],["ariaLabelledby","expanded-access-help permission-toggle-help",3,"change","checked","disabled"],[1,"permission-toggle-text"],["id","expanded-access-help",1,"edit-field-help"],["id","permission-toggle-help",1,"permission-toggle-help","edit-field-help"],["target","_blank","aria-label","Learn more about expanded access","aria-describedby",
"expanded-access-help",1,"keep-underline","keep-focus-ring",3,"href"]],template:function(a,b){a&1&&(J(0,"div",0)(1,"span",1)(2,"mat-checkbox",2),N("change",function(c){return b.setImplicitAccess(c.checked)}),K()(),J(3,"div",3)(4,"strong",4),R(5,"Expanded access"),K(),J(6,"div",5),R(7," When checked, assignees, verifiers, and collaborators can edit issues for this component, and CC'd users can add comments. "),J(8,"a",6),R(9,"Learn more"),K()()()());a&2&&(uh("bv2-edit-resource-readonly",b.isAccessEditDisabled()),
x(2),I("checked",b.rolesEditor.implicitAccess.getValue())("disabled",b.isAccessEditDisabled()),x(6),I("href",Dh("",zq(b.documentationLinks),"#expanded-access"),hf))},dependencies:[gM,hM],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 EXb=function(){return{}},GXb=function(a,b){return{displayText:a,values:b}},FXb=function(a){return[a]},HXb=function(){return[]},$6=function(){this.rolesTableData=[];this.canEdit=!1;this.rolesMapUpdated=new LE;this.formIsValid=new LE;this.aclFormValidity=new Map};$6.prototype.getIconName=function(a,b){return a.grantedPermissions[b]?"done":"issue-status-wont-fix"};$6.prototype.updateRolesMap=function(a,b){this.rolesMapUpdated.emit({role:a,assignees:b})};$6.\u0275fac=function(a){return new (a||$6)};
$6.\u0275cmp=y({type:$6,selectors:[["roles-view-table"]],inputs:{rolesTableData:"rolesTableData",displayedTableColumns:"displayedTableColumns",canEdit:"canEdit",accessLevel:"accessLevel"},outputs:{rolesMapUpdated:"rolesMapUpdated",formIsValid:"formIsValid"},standalone:!1,decls:32,vars:0,consts:[["scope","col"],[1,"edit-field"],[1,"role-title"],[3,"htmlFor"],["type","button","mat-icon-button","",3,"matTooltip"],["svgIcon","help-outline"],[3,"usersChange","isValid","idForInputBox","users","ariaLabel",
"accessLevel","customValidators","includeAliases","includeViewAliases","containerChips"],["size","large",3,"name"]],template:function(a,b){a&1&&(J(0,"table")(1,"thead")(2,"tr")(3,"th",0),R(4,"Role Assignments"),K(),J(5,"th",0)(6,"h6"),R(7,"Admin Components"),K()(),J(8,"th",0)(9,"h6"),R(10,"Create Issues"),K()(),J(11,"th",0)(12,"h6"),R(13,"Admin Issues"),K()(),J(14,"th",0)(15,"h6"),R(16,"Edit Issues"),K()(),J(17,"th",0)(18,"h6"),R(19,"Comment on Issues"),K()(),J(20,"th",0)(21,"h6"),R(22,"View Issues"),
K()(),J(23,"th",0)(24,"h6"),R(25,"View Restricted"),K()(),J(26,"th",0)(27,"h6"),R(28,"View Restricted+"),K()()()(),J(29,"tbody"),Pg(30,IXb,25,29,"tr",null,Og),K()());a&2&&(x(30),Qg(b.rolesTableData))},dependencies:[FC,IO,eL,oG,Kx,zG,xG],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 a7=function(){this.rolesMap=uXb;this.isSaving=!1;this.saveRolesMap=new LE;this.rolesUnderEdit=uXb;this.formIsValid=!0;this.displayedTableColumns="role componentAdmin createIssues issueAdmin issueEditor issueCommenter issueReader restrictedReader restrictedPlusReader".split(" ");this.standardRolesTableData=[];this.advancedRolesTableData=[]},Rjd=function(a){var b=a.rolesUnderEdit,c;var d=[{ariaLabel:"Component Admin role",label:"Component Admins",users:b==null?void 0:b.componentAdmin,roleType:"componentAdmin",
grantedPermissions:{componentAdmin:!0,createIssues:!0,issueAdmin:!0,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Component Admins are granted all the permissions to manage the component and all issues in this component. They can't view restricted content. Typical Component Admins are team leads."},{ariaLabel:"Issue Admin role",label:"Issue Admins",users:b==null?void 0:b.issueAdmin,roleType:"issueAdmin",
grantedPermissions:{componentAdmin:!1,createIssues:!0,issueAdmin:!0,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Issue Admins are granted all permissions to manage issues, but can't edit component settings. They can't view restricted content. Typical Issue Admins are team members."},{ariaLabel:"Issue Editor role",label:"Issue Editors",users:b==null?void 0:b.editor,roleType:"editor",grantedPermissions:{componentAdmin:!1,
createIssues:!0,issueAdmin:!1,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:((c=a.component.accessLimit)==null?void 0:c.accessLevel)!=="EXTERNAL_PUBLIC",includeViewAliases:!1,tooltip:"Issue Editors are granted all issue-related permissions except for admin permissions such as delete an issue or comment, or change restrictions. They can't view restricted content. Typical Issue Editors are collaborating team members."},{ariaLabel:"Issue Contributor role",
label:"Issue Contributors",users:b==null?void 0:b.contributor,roleType:"contributor",grantedPermissions:{componentAdmin:!1,createIssues:!0,issueAdmin:!1,issueEditor:!1,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!0,includeViewAliases:!1,tooltip:"Issue Contributors can read, comment, and create issues, but they can't edit issues. They can't view restricted content. Typical Issue Contributors are external partners or public users."}];a.standardRolesTableData=
d;b=a.rolesUnderEdit;var e,f;d=[{ariaLabel:"Component Admin Only role",label:"Component Admins Only",users:b==null?void 0:b.componentAdminOnly,roleType:"componentAdminOnly",grantedPermissions:{componentAdmin:!0,createIssues:!0,issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!1,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Users with the Component Admin Only role can edit the component settings and create issues, but otherwise have no issue-related permissions.",
chips:{displayText:"Inherited Admins",values:(f=b.inheritedComponentAdmin)!=null?f:[]}},{ariaLabel:"Issue Creators Only role",label:"Issue Creators Only",users:b==null?void 0:b.createIssuesOnly,roleType:"createIssuesOnly",grantedPermissions:{componentAdmin:!1,createIssues:!0,issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!1,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!0,includeViewAliases:!1,tooltip:"Users with the issue Issue Creators Only role can create issues, but have no other permissions. For example, they are not able to view issues they have created."},
{ariaLabel:"Issue Admin Only role",label:"Issue Admins Only",users:b==null?void 0:b.issueAdminOnly,roleType:"issueAdminOnly",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!0,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Users with the Issue Admin Only role have all issue permissions but cannot create new issues."},{ariaLabel:"Issue Editors (existing issues only) role",label:"Issue Editors (existing issues only)",
users:b==null?void 0:b.editExistingIssuesOnly,roleType:"editExistingIssuesOnly",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!0,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:((e=a.component.accessLimit)==null?void 0:e.accessLevel)!=="EXTERNAL_PUBLIC",includeViewAliases:!1,tooltip:"Issue Editors (existing issues only) have the issue editor's permission on existing issues, but they can't create new issues in this component."},
{ariaLabel:"Issue Commenter Only role",label:"Issue Commenter Only",users:b==null?void 0:b.commentOnly,roleType:"commentOnly",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!1,issueCommenter:!0,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!0,includeViewAliases:!1,tooltip:"Users with the Issue Commenter Only role may view and comment on issues on this component"},{ariaLabel:"Restricted Plus Content Viewer role",label:"Restricted+ Content Viewer",
users:b==null?void 0:b.viewRestrictedPlus,roleType:"viewRestrictedPlus",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!0,restrictedReader:!0,restrictedPlusReader:!0},includeAliases:!1,includeViewAliases:!1,tooltip:"Only Restricted+ Content Viewers can view Restricted+ content on an issue.",customValidators:a.rolesEditor.restrictedPlusReadersValidators},{ariaLabel:"Restricted Content Viewer role",label:"Restricted Content Viewer",users:b==
null?void 0:b.viewRestricted,roleType:"viewRestricted",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,issueEditor:!1,issueCommenter:!1,issueReader:!0,restrictedReader:!0,restrictedPlusReader:!1},includeAliases:!1,includeViewAliases:!1,tooltip:"Only Restricted Content Viewers can view restricted content on an issue."},{ariaLabel:"Issue Viewer role",label:"Issue Viewers",users:b==null?void 0:b.viewer,roleType:"viewer",grantedPermissions:{componentAdmin:!1,createIssues:!1,issueAdmin:!1,
issueEditor:!1,issueCommenter:!1,issueReader:!0,restrictedReader:!1,restrictedPlusReader:!1},includeAliases:!0,includeViewAliases:!0,tooltip:"Issue Viewers can only view issues in this component, but can't comment or edit issues."}];a.advancedRolesTableData=d},Sjd=function(a){return a.advancedRolesTableData.some(function(b){return b.users.length>0})},Tjd=function(a){a.rolesUnderEdit=Object.assign({},a.rolesMap)};g=a7.prototype;g.ngOnInit=function(){Tjd(this);Rjd(this)};
g.ngOnChanges=function(a){a.rolesMap&&Tjd(this);Rjd(this)};g.updateRolesMap=function(a){var b={};this.rolesUnderEdit=Object.assign({},this.rolesUnderEdit,(b[a.role]=a.assignees,b))};g.getComponentAccessLevel=function(){if(this.component.accessLimit)return this.component.accessLimit.accessLevel};g.hasUnsavedAccessLimitChanges=function(){return this.rolesEditor.hasUnsavedAccessLimitChanges()};g.canEdit=function(){return!this.isSaving&&this.rolesEditor.isAdmin};
g.canSave=function(){return this.canEdit()&&(!gj(this.rolesMap,this.rolesUnderEdit)||this.rolesEditor.implicitAccess.isUpdated()||this.hasUnsavedAccessLimitChanges())&&this.formIsValid};a7.\u0275fac=function(a){return new (a||a7)};
a7.\u0275cmp=y({type:a7,selectors:[["roles-view"]],inputs:{rolesMap:"rolesMap",isSaving:"isSaving",component:"component",rolesEditor:"rolesEditor"},outputs:{saveRolesMap:"saveRolesMap"},standalone:!1,features:[ov],decls:12,vars:11,consts:[[3,"rolesMapUpdated","formIsValid","rolesTableData","displayedTableColumns","canEdit","accessLevel"],["togglePosition","before",1,"mat-elevation-z0",3,"expanded"],["type","button","mat-raised-button","","aria-label","Update","color","primary",3,"click","disabled"],
["type","button","mat-raised-button","","aria-label","Revert Changes",3,"click","disabled"]],template:function(a,b){a&1&&(M(0,"access-limit-settings"),J(1,"roles-view-table",0),N("rolesMapUpdated",function(c){return b.updateRolesMap(c)})("formIsValid",function(c){return b.formIsValid=c}),K(),J(2,"mat-expansion-panel",1)(3,"mat-expansion-panel-header")(4,"mat-panel-title"),R(5," Advanced Roles "),K()(),J(6,"roles-view-table",0),N("rolesMapUpdated",function(c){return b.updateRolesMap(c)})("formIsValid",
function(c){return b.formIsValid=c}),K()(),M(7,"expanded-access-settings"),J(8,"button",2),N("click",function(){b.canSave()&&b.saveRolesMap.emit(b.rolesUnderEdit)}),R(9,"Update"),K(),J(10,"button",3),N("click",function(){Tjd(b);Rjd(b)}),R(11," Revert Changes\n"),K());a&2&&(x(),I("rolesTableData",b.standardRolesTableData)("displayedTableColumns",b.displayedTableColumns)("canEdit",b.canEdit())("accessLevel",b.getComponentAccessLevel()),x(),I("expanded",Sjd(b)),x(4),I("rolesTableData",b.advancedRolesTableData)("displayedTableColumns",
b.displayedTableColumns)("canEdit",b.canEdit())("accessLevel",b.getComponentAccessLevel()),x(2),I("disabled",!b.canSave()),x(2),I("disabled",!!gj(b.rolesMap,b.rolesUnderEdit)))},dependencies:[OW,PW,QW,oG,Jx,$6,Y6,Z6],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 b7=function(){Z.apply(this,arguments);this.rolesEditor=r(X6);this.route=r(Jn);this.tabIndex=0;this.onTabChange=new LE;this.selectedTabIndex=this.tabIndex};Y(b7,Z);b7.\u0275dir=Z.\u0275dir;b7.prototype.ngOnChanges=function(a){var b;a=(b=a.tabIndex)==null?void 0:b.currentValue;a!=null&&(this.selectedTabIndex=a)};
b7.prototype.ngOnInit=function(){var a=this;this.selectedTabIndex=this.tabIndex;this.route.paramMap.pipe(C(function(b){return b.get("componentId")}),eg(Qj),xg(function(b){return a.rolesEditor.initialize(b)}),yg(this.destroyed$)).subscribe(function(){Mjd(a.rolesEditor)})};
b7.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)};b7.prototype.isSaving=function(){return this.rolesEditor.isSaving};b7.\u0275fac=function(){var a;return function(b){return(a||(a=Re(b7)))(b||b7)}}();
b7.\u0275cmp=y({type:b7,selectors:[["role-based-permissions"]],viewQuery:function(a,b){a&1&&hh(JN,5,Te);if(a&2){var c;lh(c=mh())&&(b.tabs=c)}},inputs:{tabIndex:"tabIndex"},outputs:{onTabChange:"onTabChange"},standalone:!1,features:[Fh([X6,T6]),Bg,ov],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,JXb,2,0,"div",0),F(1,LXb,7,9,"div"));a&2&&(G((b.rolesEditor.component==null?0:b.rolesEditor.component.componentId)?-1:0),x(),G((b.rolesEditor.component==null?0:b.rolesEditor.component.componentId)?1:-1))},dependencies:[ON,JN,KN,yN,U6,a7],styles:["/*# sourceMappingURL=role_based_permissions.css.map */"]});var Ujd=["archiveDialog"],Vjd=["archiveButton"],Wjd=["metadataForm"],c7=function(){Z.apply(this,arguments);var a=this;this.cdr=r(NE,{self:!0});this.routeParams=r(EK);this.bLocation=r(DH);this.templatesApi=r(EB);this.paths=r(oN);this.appHistory=r(jZ);this.butterBar=r(GJ);this.pageTitle=r(EY);this.activeSession=r(Bs);this.documentationLinks=r(JJ);this.matDialogService=r(RJ);this.analytics=r(RE);this.checkBeforeExit=r(UR);this.userAccess=r(AD);this.componentActions=r(WM);this.errorHandler=r(aK);this.componentUpdates=
r(IZ);this.componentUpdatesApi=r(M6);this.confirmationDialogService=r(YJ);this.appEvents=r(FB);this.teamsService=r(SF);this.sloApi=r(KF);this.sloService=r(LF);this.trackerHelpers=r(iK);this.tabsService=r(Q6);this.isFieldConfigurationV2Enabled=OA(this.activeSession,"enableFieldConfigV2Fe")&&this.activeSession.isInternalSession();this.componentId$=new sg(1);this.componentListRoute=NOa;this.showSloInheritancePath=!1;this.component$=new Kn(null);this.componentTrackerId$=this.component$.pipe(C(function(b){return b==
null?void 0:b.trackerId}));this.showTrackerRedirect$=this.componentTrackerId$.pipe(C(function(b){var c,d=(c=a.activeSession.getTracker())==null?void 0:c.trackerId;return!!d&&d!==b}));this.parentComponent$=new Kn(null);this.componentTeam$=new Kn(null);this.team$=this.componentTeam$.pipe(xg(function(b){return(b=b==null?void 0:b.id)&&b!=="0"?UF(a.teamsService,b):Nf(null)}));this.parentComponentTeam$=this.parentComponent$.pipe(xg(function(b){var c;return(b=b==null?void 0:(c=b.team)==null?void 0:c.id)&&
b!=="0"?UF(a.teamsService,b):Nf(null)}));this.inheritedSloMetadata$=Uf([this.component$,this.parentComponent$,this.team$]).pipe(C(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(og(),
xg(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}}):Nf({id:"0"})}));this.sloPolicySource$=this.inheritedSloMetadata$.pipe(og(),xg(function(b){if(!b)return Nf({name:"None",type:"none"});b=lZb(b);var c=b.sourceTeamId,d=b.sourceComponentId;return c&&c!=="0"?a.teamsService.getTeam(c).pipe(C(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"}}}):Nf(null)}));this.policySourcePath$=Uf([this.component$,this.team$,this.parentComponentTeam$,this.inheritedSloMetadata$]).pipe(C(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=lZb(c);c=f.sourceComponentId;d=nZb(d,
f.sourceTeamId,b.team,e);return c===null?{componentPath:null,teamPath:d}:{componentPath:mZb(b,c),teamPath:d}}));this.enableSloLockingCheck=OA(this.activeSession,"enableSloLockingCheck");this.component=null;this.effectiveCustomFields=[];this.parentComponent=null;this.descendants=[];this.isLoading=this.hasInitialized=!1;this.isAnonymous=this.activeSession.isAnonymous();this.originalParentComponent=this.originalComponent=null;this.isAdminInternal=this.isUpdating=this.isArchiving=!1;this.metadataForm=
null;this.error="";this.isComponentSloEditor=this.isEditorInternal=!1;this.updateDiffs=void 0;this.templates=[];this.isParentComponentRequired=this.commentEditsEnabled=!0;this.retentionIsValid=!1;this.isEnableSloChecked=!0;this.enableSloLockingUi=OA(this.activeSession,"enableSloLockingUi");this.sloLocked$=this.componentId$.pipe(eg(Boolean),xg(function(b){return a.sloApi.executor.get({url:"action/components/"+b+"/slo_edit_policy",responseConstructor:Syc}).pipe(C(wJa))}));this.getSloManagementLink=
OOa};Y(c7,Z);c7.\u0275dir=Z.\u0275dir;
c7.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(VR(this.checkBeforeExit,function(){return a.hasUnsavedChanges()},!1));this.loadUserAccess(this.componentId);this.enableSloLockingCheck&&Xjd(this);this.componentHistoryUiEnabled=this.activeSession.isInternalSession();
Yjd(this);this.subscriptions.add(this.appEvents.customFieldsModified.subscribe(function(b){a.effectiveCustomFields=oZb(b,a.isFieldConfigurationV2Enabled)}));this.hasInitialized=!0;this.tabsService.componentReady$.next()};var Yjd=function(a){a=[Zjd(a,a.componentId),a.loadComponent(a.componentId),a.loadTemplates(a.componentId)];return Promise.all(a).then(function(){})};c7.prototype.isAdmin=function(){return this.isAdminInternal};
var uYb=function(a){return a.enableSloLockingCheck?a.isComponentSloEditor:a.isAdmin()};c7.prototype.isSaving=function(){return this.isUpdating||this.isArchiving};c7.prototype.isArchived=function(){return this.component?this.component.archived:!1};c7.prototype.isPublic=function(){return ur(this.component)};c7.prototype.isExternal=function(){return tr(this.component)};
var OYb=function(a){var b;if(b=a.sessionIsInternal){b=a.component;var c;b=(b==null?void 0:(c=b.accessLimit)==null?void 0:c.accessLevel)==="INTERNAL"}return b||OA(a.activeSession,"enableEstimatedEffortExternalUi")};c7.prototype.isParentPublic=function(){return!(!this.parentComponent||!ur(this.parentComponent))};c7.prototype.isParentPartner=function(){return!(!this.parentComponent||!q8a(this.parentComponent))};
var xYb=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};c7.prototype.hasUnsavedMetadataChanges=function(){return!(gj(this.component,this.originalComponent)&&gj(this.parentComponent,this.originalParentComponent))};c7.prototype.hasUnsavedChanges=function(){return this.hasUnsavedMetadataChanges()};
var $jd=function(a){var b=pj();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:Xi("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},akd=function(a){var b=pj();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:Zi([Xi('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.'),$i("br",{}),$i("br",{}),Xi('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.'),
$i("br",{}),$i("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};c7.prototype.saveMetadata=function(){var a=this;return bkd(this)?akd(this).then(function(b){return b?$jd(a):Promise.resolve(!1)}).then(function(b){b&&a.doSaveMetadata().then(function(){return Yjd(a)})}):Promise.resolve()};
c7.prototype.doSaveMetadata=function(){var a=this;this.isUpdating=!0;Kq(this.butterBar,"Saving changes ...",0);return ckd(this).then(function(){a.parentComponent&&(a.component.parentComponentId=a.parentComponent.componentId)}).then(function(){return dkd(a)}).then(function(){return ekd(a)}).then(function(){return fkd(a)}).then(function(){Kq(a.butterBar,"Save complete.")}).catch(function(b){a.errorHandler.errorHandler(null,b)}).finally(function(){a.componentUpdatesApi.invalidateCache(a.componentId);
a.isUpdating=!1})};
var ckd=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)},dkd=function(a){return a.component.slo&&!gj(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)},ekd=function(a){return a.component.team&&!gj(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)},fkd=function(a){return gkd(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)},gkd=function(a){var b=hj(a.component);b.team=a.originalComponent.team;b.slo=a.originalComponent.slo;b.parentComponentId=a.originalComponent.parentComponentId;return!gj(a.originalComponent,b)},bkd=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};c7.prototype.getComponentAccessLevel=function(){if(this.component&&this.component.accessLimit)return this.component.accessLimit.accessLevel};var Zjd=function(a,b){return a.componentActions.getChildren(b).then(function(c){a.childComponents=c}).catch(function(c){a.errorHandler.errorHandler(null,c)})};
c7.prototype.revertMetadataChanges=function(){this.updateComponentAndOriginalComponent(this.originalComponent);this.error="";this.parentComponent=hj(this.originalParentComponent);this.parentComponent$.next(this.parentComponent);this.commentEditsEnabled=this.component.commentEditState=="ENABLED"};var SYb=function(a){a.componentActions.getUncached(a.componentId).then(function(b){a.effectiveCustomFields=oZb(b.componentPathInfo.allCustomField,a.isFieldConfigurationV2Enabled)})};
c7.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);b.effectiveCustomFields=oZb(c.componentPathInfo.allCustomField,b.isFieldConfigurationV2Enabled);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()})};c7.prototype.loadUserAccess=function(a){var b=this,c=mn("COMPONENT",a);BD(this.userAccess,"admin",c).then(function(d){b.isAdminInternal=d;return b.isAdminInternal?!0:BD(b.userAccess,"writer",c)}).then(function(d){b.isEditorInternal=d}).catch(function(d){b.errorHandler.errorHandler(null,d)})};
var Xjd=function(a){BD(a.userAccess,"writer",mn("COMPONENT_SLO",a.componentId)).then(function(b){a.isComponentSloEditor=b})},ZXb=function(a){var b,c=rs(a.trackerHelpers,(b=a.parentComponent)==null?void 0:b.componentPathInfo);return Eq(a.activeSession)&&(!c||!c.componentPathId||c.componentPathId.length===0)},IYb=function(a){return a.isSaving()||!a.isEditorInternal};g=c7.prototype;g.isAccessEditDisabled=function(){return this.isSaving()||!this.isAdmin()};
g.loadParentComponent=function(a){var b=this;this.componentActions.get(a).then(function(c){b.parentComponent=c;b.parentComponent$.next(b.parentComponent);b.originalParentComponent=hj(c);return c}).catch(function(c){b.errorHandler.errorHandler(null,c)})};g.getRecentIssuesLink=function(){var a=this.isArchived();return rq(this.componentId,{includeArchived:a})};g.componentPermissions=function(a){return{path:"/components/"+a,fragment:this.tabsService.Tab.ACCESS}};
g.createIssue=function(){this.trackClick("createIssue");var a={};this.bLocation.setUrl(this.paths.createIssue((a.component=String(this.component.componentId),a)))};g.createChild=function(){this.bLocation.setUrl(Dq.createComponent.makeHref(this.component.componentId))};g.trackClick=function(a){this.analytics.trackEvent("editComponent","click",a)};
var MXb=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,Kq(a.butterBar,"Looking up subcomponents...",0),a.componentActions.getDescendants(a.component.componentId).then(function(b){a.butterBar.dismiss();a.descendants=b;LJ(a.matDialogService.open(a.confirmArchiveDialog,{restoreFocus:!1})).pipe(yg(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.")};
c7.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 Iva(a);case "UNSPECIFIED_RETENTION":return"Retention period unspecified";default:pb(b,"unexpected value "+b+"!")}};
c7.prototype.archive=function(){var a=this;this.isArchiving=!0;Kq(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);Kq(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;Kq(a.butterBar,"Could not "+a.archiveAction.toLowerCase()+" component: "+(Qo(b)?Ro(b):b));a.isArchiving=!1})};
c7.prototype.loadTemplates=function(a){var b=this;return this.templatesApi.query(a).then(function(c){b.templates=c.map(function(d){var e=d.name;e||(e=d.default?"(default template)":"(unnamed template)");var f=b.paths.getBaseUrl(),h={};h=b.paths.createIssue((h.component=a||void 0,h.template=d.templateId?String(d.templateId):void 0,h));return{name:e,description:d.description||"",url:f+h}})}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
c7.prototype.setCommentEditState=function(a){this.commentEditsEnabled=a;this.component.commentEditState=this.commentEditsEnabled?"ENABLED":"DISABLED"};
var hkd=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=Krb(d.addMask.paths),h=Krb(d.removeMask.paths),k={author:d.author||null,timestamp:d.timestamp||null,diffs:[]},q=d.add;d=d.remove;for(var v=l(new Set([].concat(p(f),p(h)))),A=v.next();!A.done;A=v.next()){var E=A.value;if(A=e9c.get(E))if(E==="name"){var H=Xr(h,E,d.name);E=Xr(f,E,q.name);k.diffs.push(Yr(A,H,E))}else if(E==="description")H=
Xr(h,E,d.description),E=Xr(f,E,q.description),k.diffs.push(Yr(A,H,E));else if(E==="parentComponentId")H=Xr(h,E,String(d.parentComponentId)),E=Xr(f,E,String(q.parentComponentId)),k.diffs.push(Yr(A,H,E));else if(E==="isArchived")H=Xr(h,E,String(d.archived)),E=Xr(f,E,String(q.archived)),k.diffs.push(Yr(A,H,E));else if(E==="commentEditState"){var L=f9c.get(d.commentEditState);H=f9c.get(q.commentEditState);L&&H&&(L=Xr(h,E,L),E=Xr(f,E,H),k.diffs.push(Yr(A,L,E)))}else E==="defaultTemplateId"?(H=Xr(h,E,String(d.defaultTemplateId)),
E=Xr(f,E,String(q.defaultTemplateId)),k.diffs.push(Yr(A,H,E))):E==="slo"?e.sessionIsInternal&&(H=Xr(h,E,Qrb(d.slo)),E=Xr(f,E,Qrb(q.slo)),k.diffs.push(Yr(A,H,E))):E==="team"?e.sessionIsInternal&&(H=Xr(h,E,Rrb(d.team)),E=Xr(f,E,Rrb(q.team)),k.diffs.push(Yr(A,H,E))):E==="retentionSettings"?(H=Xr(h,E,Orb(d.retentionSettings)),E=Xr(f,E,Orb(q.retentionSettings)),k.diffs.push(Yr(A,H,E))):e.$log.error("Unsupported diff field "+E)}return k}).filter(function(d){return d.diffs.length})}).catch(function(c){a.errorHandler.errorHandler(null,
c)}):Promise.reject(Error())};c7.prototype.showUpdateHistoryModal=function(){var a=this;hkd(this,this.componentId).then(function(){a.matDialogService.open(h4,{width:"600px",data:{updateDiffs:a.updateDiffs}});a.analytics.trackEvent("updateHistoryModal","open");a.analytics.trackEvent("component","viewHistory")})};c7.prototype.onSloChange=function(a){this.component.slo.id=a?a.sloId:"0";a&&ikd(this)};
var sYb=function(a){var b=!!a.parentComponent,c=a.component.team.id!=="0";return uYb(a)&&(c||b)},zYb=function(a){var b=!a.component.team||a.component.team.id==="0",c=!a.parentComponent;return uYb(a)&&(!a.component.slo.inherit||c&&b)},cYb=function(a){var b,c,d,e;z(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?B(f,Rf(a.team$.pipe(C(function(h){a.component.slo.id=
h.slo.sloId;ikd(a)}))),0):(d=jkd(a),e=d.id,a.component.slo.id=e,ikd(a),f.jumpTo(0))})},yYb=function(a){var b=a.parentComponent||a.isParentComponentRequired;return a.component.team.id!=="0"||b?!0:!1},jkd=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}},LYb=function(a,b){Kq(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;Kq(a.butterBar,((f=a.component.effortSpec)==null?void 0:f.name)+" saved")}else Kq(a.butterBar,"Estimated Effort saved")}).catch(function(c){a.errorHandler.errorHandler(null,c)}))};
c7.prototype.updateComponentAndOriginalComponent=function(a){this.component=hj(a);this.component$.next(this.component);this.originalComponent=hj(a);var b;this.componentTeam$.next((b=this.component.team)!=null?b:null);ikd(this)};c7.prototype.back=function(){kZ(this.appHistory)};var ikd=function(a){var b;((b=a.component)==null?0:b.slo)?a.isEnableSloChecked=a.component.slo.id!=="0":a.isEnableSloChecked=!1};c7.\u0275fac=function(){var a;return function(b){return(a||(a=Re(c7)))(b||c7)}}();
c7.\u0275cmp=y({type:c7,selectors:[["manage-component-page"]],viewQuery:function(a,b){a&1&&(hh(Ujd,5),hh(Vjd,5),hh(Wjd,5));if(a&2){var c;lh(c=mh())&&(b.confirmArchiveDialog=c.first);lh(c=mh())&&(b.archiveButton=c.first);lh(c=mh())&&(b.metadataForm=c.first)}},standalone:!1,features:[Fh([NE]),Bg],decls:3,vars:3,consts:[["archiveDialog",""],["archiveButton",""],["basic",""],["customFields",""],["fieldOrdering",""],["fieldConfiguration",""],["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 Configuration",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","Team Configuration",1,"edit-field"],["for","team-picker"],["id","team-picker"],[3,"modelChange","isAdmin","isTopLevel","parentModel","useInternalLink","anchorTarget","model"],["role","region","tabindex","0","aria-label","SLO Configuration",1,"edit-field"],["aria-describedby","edit-slo-help-bubble",1,"help-label"],["id","edit-slo-help-bubble",1,"help-bubble","jfk-bubble"],[1,"metadata","muted"],
[1,"slo-policy-link"],[1,"slo-policy-source-link"],[1,"slo-admins-link"],[1,"lock-state"],[1,"edit-field","less-margin"],[3,"routerLinkObj"],[1,"keep-focus-ring","slo-inheritance-link",3,"routerLinkObj"],["mat-stroked-button","","type","button","aria-label","Display the full SLO inheritance path below",1,"slo-inheritance-path","small",3,"click"],[1,"slo-breadcrumbs"],[3,"componentPath","teamPath"],["target","_blank",1,"keep-focus-ring",3,"routerLinkObj"],["svgIcon","lock-outline"],["svgIcon","lock-open"],
["gmat-checkbox","",1,"slo-override",3,"change","checked","disabled"],[1,"edit-field","component-slo-justification-text"],["name","slo-enable","labelPosition","before",1,"slo-enable",3,"ngModelChange","change","ngModel","disabled"],[1,"edit-field","component-slo-id-select"],["for","component-slo-id"],["id","component-slo-id","aria-describedby","edit-slo-help-bubble","tabindex","-1",1,"bv2-slo-picker","bv2-picker",3,"onSloSelect","bv2Disabled","boundId","bv2Placeholder"],["mat-icon-button","","aria-label",
"Go to SLO management page","matTooltip","Go to SLO management page.",1,"small",3,"routerLinkObj","target"],["for","component-slo-justification","id","component-settings-slo-justification-label",1,"required"],["svgIcon","help-outline","tabindex","0","aria-hidden","false","matTooltip","Justification is required to override the org SLO.","aria-label","Justification is required to override the org SLO.",1,"slo-info","icon-s","valign-middle"],["name","comment","aria-labelledby","component-settings-slo-justification-label",
"required","",3,"ngModelChange","ngModel","disabled"],["svgIcon","pop-out",1,"icon-s"],["name","spam-protection-enable","labelPosition","before",1,"spam-protection-enable",3,"change","checked","disabled"],["format","fill",3,"onAction","disabled"],["format","hairline",3,"onAction","disabled"],["format","hairline","title","View history for 'Basic Information'",3,"onAction"],[3,"onVisit","children"],["aria-label","Standard Fields",1,"heading-m","padded-x","margin-top"],[3,"effortSpec","parentEffortSpec",
"disabled"],["aria-label","Custom Fields",1,"heading-m","padded-x","margin-top"],[3,"editMode","isSaving","component","parentComponent"],[3,"updateComponent","effortSpec","parentEffortSpec","disabled"],[1,"component-banner","implicit-access-banner"],["aria-label","Learn more about field ordering","target","_blank",1,"keep-underline","keep-focus-ring",3,"href"],[3,"onReload","fields","componentId","fieldOrdering","isAdmin"],[3,"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,jZb,11,3),U(1,"async"),Mg(2,kZb,2,1,"div",9));a&2&&G(V(1,1,b.showTrackerRedirect$)?2:0)},dependencies:[AG,Sv,FC,CC,SM,UM,LZ,w3,agd,F3,P_,V0,N3,O6,ly,Ui,dy,ey,vy,ky,iy,eL,oG,Jx,Kx,gM,hM,SJ,UJ,WJ,VJ,
Sw,EG,FG,ON,JN,KN,zG,xG,U1,b7,P6,S1,yN,hN,$M,K5,Tv,Vv],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 kkd=["deleteTriageDialog"],p_b=function(a){return{value:a}},NZb=function(a){return[a]},OZb=function(){return[]},lkd={BASIC:"basic",SLO:"slo",MAPPINGS:"componentMapping",TRIAGE:"triage",ACCESS:"accessControl"},d7=function(){Z.call(this);var a=this;this.activeSession=r(Bs);this.accessPolicyApi=r(rB);this.appHistory=r(jZ);this.butterBar=r(GJ);this.checkBeforeExit=r(UR);this.componentActions=r(WM);this.errorHandler=r(aK);this.location=r(DH);this.matDialogService=r(RJ);this.pageTitle=r(EY);this.routeParams=
r(EK);this.teamsService=r(SF);this.userAccess=r(AD);this.starredTeamsService=r(kG);this.sloApi=r(KF);this.sloService=r(LF);this.triageViewConfigDialogService=r(HW);this.destroyRef=r(Gg);this.tableColumns=["starred","name","actions"];this.originalSloLock=!1;this.canEditSloLock=!0;this.sloJustification$=new Kn("");this.error="";this.justificationRequiredText="Justification is required to override the org SLO.";this.selectedTabIndex=0;this.teamId=this.routeParams.teamId;this.team$=new sg(1);this.teamSlo$=
this.team$.pipe(C(function(d){return d.slo}));this.isEscalationOwnerValid=!1;this.escalationOwnerInvalidErrorMessage="";this.escalationOwnerEmail$=new Kn("");this.escalationOwner$=new Kn("");this.escalationOwnerUserValidators={escalationOwnerNotUser:function(d){if(d){d=l(d);for(var e=d.next();!e.done;e=d.next())if(!e.value.startsWith("USER:"))return!1}return!0}};this.escalationOwnerGooglerValidators={escalationOwnerNotGoogler:function(d){if(d){d=l(d);for(var e=d.next();!e.done;e=d.next())if(!e.value.startsWith("UNRESTRICTED_GOOGLER:"))return!1}return!0}};
this.starredTriageViews$=this.starredTeamsService.starredTriageViews$;this.teamAdmins$=Ef(this.accessPolicyApi.get("TEAM",this.teamId)).pipe(C(function(d){return d.admins.filter(tsa).map(Op)}));this.teamLeads$=this.team$.pipe(C(function(d){return d.members.filter(function(e){return e.isLead}).map(function(e){var f,h;return"USER:"+((h=(f=e.user)==null?void 0:f.emailAddress)!=null?h:"")})}));this.adminsAndLeads$=Uf([this.teamAdmins$,this.teamLeads$]).pipe(C(function(d){var e=l(d);d=e.next().value;e=
e.next().value;var f=new Set(d);e=e.filter(function(h){return!f.has(h)});return[].concat(p(d),p(e))}));this.originalSloDelegates$=new Kn([]);this.sloDelegates$=Yf(function(){return a.accessPolicyApi.get("TEAM_SLO",a.teamId)}).pipe(C(function(d){return d.admins.map(Op)}));this.sloDelegates=[];this.associatedComponents$=Ef(this.componentActions.search("directteamid:"+this.teamId));this.childTeams$=this.teamsService.getChildTeams([this.teamId]).pipe(C(function(d){return d.values().next().value}));this.teamPath$=
this.team$.pipe(C(function(d){var e=d.pathNames;return d.pathIds.map(function(f,h){return{id:f,name:e[h]}})}));this.isRootTeam$=this.teamPath$.pipe(C(function(d){return d.length<=1?!0:!1}));this.parentTeam$=Uf([this.isRootTeam$,this.teamPath$]).pipe(xg(function(d){var e=l(d);d=e.next().value;e=e.next().value;return d?Nf(null):a.teamsService.getTeam(e[e.length-2].id)}));this.parentTeam=null;this.inheritedSlo$=this.parentTeam$.pipe(xg(function(d){var e=d==null?void 0:d.slo.sloId;return e&&e!=="0"?a.sloService.get(e).then(function(f){return{id:e,
link:OOa(e),slo:f}}):Nf({id:"0"})}));this.sloPolicySource$=Uf([this.parentTeam$,this.teamPath$]).pipe(C(function(d){var e=l(d);d=e.next().value;e=e.next().value;var f=d==null?void 0:d.slo.sourceTeamId;d=e.find(function(h){return h.id===f});return f&&d?{name:d.name,link:{path:"/teams/"+f+"/edit",fragment:"slo"}}:null}));this.sloLock$=this.sloApi.executor.get({url:"action/teams/"+this.teamId+"/slo_edit_policy",responseConstructor:Tyc}).pipe(C(vJa));this.Tab=lkd;this.enableSloLockingUi=OA(this.activeSession,
"enableSloLockingUi");this.enableTeamScope=OA(this.activeSession,"enableTeamScope")&&this.activeSession.isInternalSession();this.enableTeamAdmin=OA(this.activeSession,"enableTeamAdmin")&&this.activeSession.isInternalSession();this.enableSloDelegatesUi=OA(this.activeSession,"enableSloDelegatesUi")&&this.activeSession.isInternalSession();this.isSloInheritEnabled$=new Kn(!0);this.isOwnerInheritEnabled$=new Kn(!0);this.sloId$=new Kn("0");this.enableSloCheckedInternal=!1;this.sloLocked$=new Kn(!1);this.hasSloReadAccess$=
this.sloId$.pipe(xg(function(d){return BD(a.userAccess,"reader","slos/"+d)}),wg(!1));this.sloPickerLink$=Uf([this.sloId$,this.hasSloReadAccess$]).pipe(C(function(d){var e=l(d);d=e.next().value;e=e.next().value;return d&&Number(d)>0&&e?OOa(d):null}));this.hasUnsavedChanges$=Uf([this.team$,this.sloId$,this.isSloInheritEnabled$,this.isOwnerInheritEnabled$,this.sloLocked$,this.sloJustification$,this.escalationOwnerEmail$]).pipe(C(function(d){var e=l(d);var f=e.next().value;d=e.next().value;var h=e.next().value;
var k=e.next().value;var q=e.next().value;var v=e.next().value;e=e.next().value;var A=f.slo,E,H;f=(E=f.extra)==null?void 0:(H=E.escalationOwnerOverride)==null?void 0:H.emailAddress;var L;return A.inherit!==h||A.sloId!==d||q!==a.originalSloLock||A.comment!==v||f!==((L=k?void 0:{emailAddress:e})==null?void 0:L.emailAddress)}));this.hasUnsavedChanges=!1;this.teamExperiments={id:this.teamId,triage:[{id:0}]};this.hasTeamEditAccess=this.hasSloEditAccess=!1;this.starInProgress={};this.team$.pipe(lp(this.destroyRef)).subscribe(function(d){a.pageTitle.setTitle("Team: "+
d.name)});var b=OA(this.activeSession,"enableSloLockingCheck"),c="teams/"+this.teamId;BD(this.userAccess,"writer",b?"teams/"+this.teamId+"/slo":c).then(function(d){a.hasSloEditAccess=d});BD(this.userAccess,"writer",c).then(function(d){a.hasTeamEditAccess=d});this.hasUnsavedChanges$.pipe(lp(this.destroyRef)).subscribe(function(d){a.hasUnsavedChanges=d});this.subscriptions.add(VR(this.checkBeforeExit,function(){return a.hasUnsavedChanges},!1))};Y(d7,Z);d7.\u0275dir=Z.\u0275dir;
d7.prototype.ngOnInit=function(){var a=this,b,c,d,e,f,h;return z(function(k){switch(k.nextAddress){case 1:return b=a.location.hash(),b==="basic"?a.selectedTabIndex=0:b==="slo"?a.selectedTabIndex=1:b==="componentMapping"?a.selectedTabIndex=2:b==="triage"&&a.enableTeamScope?a.selectedTabIndex=3:b==="accessControl"&&a.enableSloDelegatesUi&&(a.selectedTabIndex=4),Gf(k,2),B(k,Rf(a.teamsService.get(a.teamId)),4);case 4:c=k.yieldResult;uu(k,3);break;case 2:return Kf(k),a.butterBar.showWarning("Unable to fetch team ID '"+
a.teamId+"'"),k.return();case 3:a.team$.next(c);RZb(a);if(!a.enableSloDelegatesUi){k.jumpTo(5);break}d=a.originalSloDelegates$;e=d.next;return B(k,Rf(a.sloDelegates$),6);case 6:e.call(d,k.yieldResult),a.sloDelegates=a.originalSloDelegates$.getValue();case 5:return B(k,Rf(a.parentTeam$),7);case 7:a.parentTeam=k.yieldResult||null;if(!a.enableTeamScope){k.jumpTo(0);break}return B(k,Rf(hzc(a.teamsService,a.teamId)).catch(function(){}),9);case 9:f=k.yieldResult,a.teamExperiments=(h=f)!=null?h:{id:a.teamId,
triage:[{id:0}]},Lf(k)}})};d7.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)};d7.prototype.onSloChange=function(a){a&&(this.sloId=a.sloId)};
var QZb=function(a,b){var c,d,e,f,h,k,q;return z(function(v){switch(v.nextAddress){case 1:if(!a.validate())return v.return();Kq(a.butterBar,"Saving changes...",0);Gf(v,2);if(((c=b.extra)==null?void 0:(d=c.escalationOwner)==null?void 0:d.emailAddress)===a.escalationOwnerEmail){v.jumpTo(4);break}var A,E;var H=a.teamsService.updateTeam(Object.assign({},b,{extra:{escalationOwner:{emailAddress:a.escalationOwnerEmail},defaultEscalationOwner:{emailAddress:(A=b.extra)==null?void 0:(E=A.defaultEscalationOwner)==
null?void 0:E.emailAddress},escalationOwnerOverride:a.isOwnerInheritEnabled?void 0:{emailAddress:a.escalationOwnerEmail}}}));return B(v,Rf(H),5);case 5:e=v.yieldResult,a.team$.next(e);case 4:if(a.sloLocked===a.originalSloLock){v.jumpTo(6);break}H=a.sloApi;A=a.teamId;E=a.sloLocked;var L=new Qyc;E=Jj(L,2,E?1:2).setTeamId(Number(A));H=H.executor.post({url:"action/teams/"+A+"/slo_edit_policy",responseConstructor:Vyc,body:E}).pipe(C(vJa));return B(v,Rf(H),7);case 7:f=v.yieldResult,a.originalSloLock=f;
case 6:h=b.slo;if(h.inherit===a.isSloInheritEnabled&&h.sloId===a.sloId&&a.originalSloLock===a.sloLocked&&h.comment===a.sloJustification){v.jumpTo(8);break}E={sloId:a.sloId,inherit:a.isSloInheritEnabled,comment:a.isSloInheritEnabled?"":a.sloJustification$.getValue(),sourceTeamId:"0"};H=a.teamsService;A=a.teamId;E=(new QF).setIt(UAa(E));H=H.executor.post({url:"/action/teams/"+A+"/update_slo",body:E,responseConstructor:NF}).pipe(C(CJa));return B(v,Rf(H),9);case 9:k=v.yieldResult,a.team$.next(k);case 8:Kq(a.butterBar,
"Save complete.");uu(v,0);break;case 2:q=Kf(v),cK(a.errorHandler,q),Lf(v)}})},mkd=function(a){var b,c;z(function(d){if(d.nextAddress==1)return Kq(a.butterBar,"Saving changes...",0),B(d,Rf(izc(a.teamsService,a.teamExperiments)),2);b=d.yieldResult;Kq(a.butterBar,"Save complete.");a.teamExperiments=(c=b)!=null?c:{id:a.teamId,triage:[{id:0}]};Lf(d)})},l_b=function(a){var b,c,d;return z(function(e){if(e.nextAddress==1){try{b=Vp(Tp()),b.admins=Sp(a.sloDelegates)}catch(f){return c="An unknown problem occurred",
f instanceof Error&&(c=f.message),a.butterBar.showWarning(c),e.return()}Kq(a.butterBar,"Saving changes...",0);Gf(e,2);return B(e,a.accessPolicyApi.update("TEAM_SLO",a.teamId,b).then(function(){Kq(a.butterBar,"Save complete.");a.originalSloDelegates$.next(a.sloDelegates)}),4)}if(e.nextAddress!=2)return uu(e,0);d=Kf(e);a.butterBar.showWarning(Ro(d));return e.return()})},m_b=function(a){return z(function(b){a.sloDelegates=a.originalSloDelegates$.getValue();Lf(b)})};
d7.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};d7.prototype.isTriageStarred=function(a,b,c){return c.some(function(d){return d.triageId===a.toString()&&d.teamId===b})};
var LZb=function(a){var b;z(function(c){if(c.nextAddress==1)return B(c,a.getDefaultEscalationOwner(),2);b=c.yieldResult;a.escalationOwner=b?"USER:"+b:"";Lf(c)})},nkd=function(a){var b,c,d,e,f,h,k,q,v,A,E,H;z(function(L){if(L.nextAddress==1)return B(L,Rf(a.team$),2);b=L.yieldResult;c=b.extra;f=(d=c)==null?void 0:(e=d.escalationOwner)==null?void 0:e.emailAddress;q=(h=c)==null?void 0:(k=h.escalationOwnerOverride)==null?void 0:k.emailAddress;A=(v=q)!=null?v:f;a.escalationOwner=A?"USER:"+A:"";a.isOwnerInheritEnabled=
((E=c)==null?void 0:E.escalationOwnerOverride)===void 0;a.isOwnerInheritEnabled||q===""||f===q||(a.escalationOwnerInvalidErrorMessage="Selected owner is invalid, falling back to default owner: "+((H=f)!=null?H:""));Lf(L)})};
d7.prototype.getDefaultEscalationOwner=function(){var a=this,b,c,d,e,f,h,k,q,v;return z(function(A){if(A.nextAddress==1)return B(A,Rf(a.team$),2);if(A.nextAddress!=3)return b=A.yieldResult,(e=(c=b.extra)==null?void 0:(d=c.defaultEscalationOwner)==null?void 0:d.emailAddress)?A.return(e):B(A,Rf(a.parentTeam$),3);f=A.yieldResult;return A.return((v=(h=f)==null?void 0:(k=h.extra)==null?void 0:(q=k.escalationOwner)==null?void 0:q.emailAddress)!=null?v:"")})};
var okd=function(a){Rf(a.teamSlo$).then(function(b){a.sloId=b.sloId;a.isSloInheritEnabled=b.inherit;a.sloJustification$.next(b.comment)})},pkd=function(a){Rf(a.sloLock$).then(function(b){a.originalSloLock=b;a.sloLocked=b})},RZb=function(a){a.error="";nkd(a);okd(a);a.enableSloLockingUi&&pkd(a)};d7.prototype.back=function(){kZ(this.appHistory)};d7.prototype.getTriageLink=function(a,b){return Dq.viewTriage.makeHref(b,a)};
d7.prototype.toggleStar=function(a,b){var c=this,d;return z(function(e){if(e.nextAddress==1){d=a+":"+b;if(c.starInProgress[d])return e.jumpTo(0);c.starInProgress[d]=!0;return B(e,Hzc(c.starredTeamsService,a.toString(),b),3)}c.starInProgress[d]=!1;Lf(e)})};
var e_b=function(a,b,c){var d,e,f,h;return z(function(k){if(k.nextAddress==1){d=a.teamExperiments.triage.find(function(q){return q.id===b});if(!d)return k.return();e={teamExperiments:a.teamExperiments,teamName:c.name,triage:d};return B(k,Rf(Nf(a.triageViewConfigDialogService.show(e))),2)}if(k.nextAddress!=3)return(f=k.yieldResult)?B(k,Rf(hzc(a.teamsService,a.teamId)),3):k.return();if(h=k.yieldResult)a.teamExperiments=h;Lf(k)})},i_b=function(a,b){var c,d,e;return z(function(f){if(f.nextAddress==1)return c=
{teamExperiments:a.teamExperiments,teamName:b.name},B(f,Rf(Nf(a.triageViewConfigDialogService.show(c))),2);if(f.nextAddress!=3)return(d=f.yieldResult)?B(f,Rf(hzc(a.teamsService,a.teamId)),3):f.return();if(e=f.yieldResult)a.teamExperiments=e;Lf(f)})},qkd=function(a,b){var c=a.teamExperiments.triage.findIndex(function(d){return d.id===b});c!==-1&&(a.teamExperiments.triage.splice(c,1),mkd(a))},c_b=function(a,b){LJ(a.matDialogService.open(a.deleteTriageDialog,{data:b})).pipe(lp(a.destroyRef)).subscribe(function(c){c&&
qkd(a,b.id)})};
nd.Object.defineProperties(d7.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()}}});d7.\u0275fac=function(a){return new (a||d7)};
d7.\u0275cmp=y({type:d7,selectors:[["manage-team-page"]],viewQuery:function(a,b){a&1&&(hh(kkd,5),hh(JN,5,Te));if(a&2){var c;lh(c=mh())&&(b.deleteTriageDialog=c.first);lh(c=mh())&&(b.tabs=c)}},standalone:!1,features:[Bg],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"],[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",""],["idForInputBox","Users who can manage SLO associations on teams and associated components","ariaLabel","SLO delegates",3,"usersChange","users","includeAliases","includeViewAliases"],["mat-dialog-content",""],["mat-dialog-actions",""],["type","button","mat-button","",1,"medium","cancel",3,"mat-dialog-close"],
["type","button","color","primary","mat-flat-button","",1,"medium","confirm",3,"mat-dialog-close"]],template:function(a,b){if(a&1){var c=t();J(0,"div",1)(1,"div",2)(2,"div",3)(3,"button",4);N("click",function(){u(c);return w(b.back())});M(4,"mat-icon",5);K()()()();J(5,"div",6);F(6,q_b,97,45);U(7,"async");K();D(8,r_b,7,3,"ng-template",null,0,Lh)}if(a&2){var d;x(6);G((d=V(7,1,b.team$))?6:-1,d)}},dependencies:[FC,xC,CC,V0,Ui,dy,vy,ky,oG,Jx,Kx,gM,hM,SJ,WJ,VJ,cP,XP,KP,QP,MP,JP,SP,NP,PP,TP,VP,ON,JN,KN,
zG,xG,Sw,EG,FG,IO,S1,fS,I1,Tv],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 rkd=["content"],skd=["task_input"],y_b=function(a,b){return b.id},tkd=new RegExp(/b-qa\/(\d+)|b-qa.corp.google.com\/issues\/(\d+)/,"i"),ukd=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"),vkd=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"),wkd=new RegExp(/docs.google.com\/(?:document|spreadsheets|presentation)\/d\/([^\/]+)|drive.google.com\/file\/d\/([^\/]+)/,"i"),xkd=new RegExp(/([^\/]+)-review.staging-git.corp.google.com\/c\/(.+)\/\+\/(\d+)|([^\/]+)-review.git.corp.google.com\/c\/(.+)\/\+\/(\d+)/,"i"),ykd=new RegExp(/irm\/(\w+)|irm\.corp\.google\.com\/incidents\/(\w+)/,"i"),e7=function(){Z.call(this);var a=this;this.destroyRef=r(Gg);this.window=r(HJ);this.activeSession=r(Bs);this.errorHandler=r(aK);this.butterBar=r(GJ);this.focusEscapeNotifierFactory=
r(oL);this.tasksService=r(AF);this.analytics=r(RE);this.isInternalSession=this.activeSession.isInternalSession();this.cancelClicked=new LE;this.saveClicked=new LE;this.focusEscaped=new LE;this.addTasksForm=new jy("",[Si,function(b){var c;(c=b.value==="")||(b=b.value,c=(ml(a.activeSession.session)?ukd:tkd).test(b)||vkd.test(b)||wkd.test(b)||xkd.test(b)||ykd.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?Ayc(this.tasksService).pipe(lp(this.destroyRef),hg(function(b){console.error("Error fetching task list:",b);return Nf([])})):Nf([]);this.saving=!1;this.validationErrorMessage="";this.fb=r(zy);this.gTaskForm=this.fb.group({title:["",Si],details:[""],date:[null],taskListId:["",Si]});this.urlPlaceholder="ex: "+this.window.location.origin+"/issues/123456";this.dynamicBuganizerUrlPattern=new RegExp(sq(this.window.location.hostname)+
"\\/(?:issues\\/)?(\\d+)","i")};Y(e7,Z);e7.\u0275dir=Z.\u0275dir;e7.prototype.ngAfterViewInit=function(){var a=this;this.focusEscapeNotifier=this.focusEscapeNotifierFactory.create(this.content.nativeElement);this.focusEscapeNotifier.escapeSubject$.pipe(yg(this.destroyed$)).subscribe(function(b){if(b===0){var c;(c=a.focusEscapeNotifier)==null||Nic(c)}else{var d;(d=a.focusEscapeNotifier)==null||ow(d)}});this.analytics.trackEvent("taskDialog","open","addTaskDialog")};
e7.prototype.saveChanges=function(){var a=this;this.saving=!0;this.analytics.trackEvent("manualSignal","add","dialog");var b=this.parseUrl(this.addTasksForm.value),c=zkd(this,this.addTasksForm.value)?3E3:0;uyc(this.tasksService,[b],!0).pipe(ng(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 zkd=function(a,b){return a.activeSession.isInternalSession()&&(ml(a.activeSession.session)?ukd:tkd).test(b)||a.dynamicBuganizerUrlPattern.test(b)?!0:!1};
e7.prototype.parseUrl=function(a){if(this.activeSession.isInternalSession()){var b=ml(this.activeSession.session)?ukd:tkd;if(b.test(a))return"b/"+a.match(b).slice(1).find(function(c){return!!c})}if(vkd.test(a))return"cl/"+a.match(vkd).slice(1).find(function(c){return!!c});if(wkd.test(a))return"drive/"+a.match(wkd).slice(1).find(function(c){return!!c});if(xkd.test(a))return a=a.match(xkd),a[1]?"gerrit/"+a[1]+"."+a[2]+"~"+a[3]:"gerrit/"+a[4]+"."+a[5]+"~"+a[6];if(ykd.test(a))return"irm/"+a.match(ykd).slice(1).find(function(c){return!!c});
if(zkd(this,a)&&(a=a.match(this.dynamicBuganizerUrlPattern),a!=null))return"b/"+a.slice(1).find(function(c){return!!c});throw Error("tf");};
e7.prototype.saveGTask=function(a){var b=this;this.saving=!0;this.tasksService.saveGTask(a).pipe(lp(this.destroyRef),xg(function(c){return uyc(b.tasksService,[c],!0)}),pg(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)}})};
e7.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)};
nd.Object.defineProperties(e7.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")}}});e7.\u0275fac=function(a){return new (a||e7)};
e7.\u0275cmp=y({type:e7,selectors:[["b-add-task-dialog"]],viewQuery:function(a,b){a&1&&(hh(rkd,7),hh(skd,5));if(a&2){var c;lh(c=mh())&&(b.content=c.first);lh(c=mh())&&(b.taskInput=c.first)}},outputs:{cancelClicked:"cancelClicked",saveClicked:"saveClicked",focusEscaped:"focusEscaped"},standalone:!1,features:[Bg],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&&(J(0,"div",6,0),D(2,u_b,14,5,"ng-template",null,1,Lh)(4,z_b,
30,10,"ng-template",null,2,Lh),F(6,C_b,5,2,"mat-tab-group",7)(7,E_b,1,1,"ng-container"),K());a&2&&(x(6),G(b.isInternalSession?6:7))},dependencies:[Sv,FC,oG,Jx,Yy,Wy,Xy,ly,Ui,dy,ey,vy,wy,py,qy,ry,My,Ey,Dy,Gy,bP,jP,Bx,DM,Uy,ON,JN,KN,Tv],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 Akd=[{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"}],f7=function(){Z.call(this);var a=this;this.overlay=r(lx);this.element=r(Te);this.openOnEnter=this.openOnClick=!0;this.taskAdded=new LE;this.onClose=new LE;this.opened=!1;this.destroyed$.subscribe(function(){var b;(b=a.overlayRef)==
null||b.dispose()})};Y(f7,Z);g=f7.prototype;g.onHostEnter=function(a){this.openOnEnter&&this.open();a.preventDefault();a.stopPropagation()};g.onClickHost=function(a){this.openOnClick&&this.open();a.preventDefault();a.stopPropagation()};g.open=function(){this.opened||(this.overlayRef=this.createOverlay(),this.attach(),this.opened=!0)};g.close=function(){if(this.opened){var a;(a=this.overlayRef)==null||a.dispose();this.overlayRef=void 0;this.opened=!1;this.onClose.emit()}};
g.onHostTab=function(a){this.opened&&this.addTaskContent&&this.addTaskContent.focusEscapeNotifier&&(ow(this.addTaskContent.focusEscapeNotifier),a.preventDefault())};g.onHostShiftTab=function(a){this.addTaskContent&&this.addTaskContent.focusEscapeNotifier&&(Nic(this.addTaskContent.focusEscapeNotifier),a.preventDefault())};
g.createOverlay=function(){var a=this.getPositionStrategy(),b=this.getScrollStrategy();a=this.overlay.create({positionStrategy:a,scrollStrategy:b,hasBackdrop:!0,backdropClass:"b-add-task-dialog-backdrop",panelClass:"b-add-task-dialog-popup"});a.overlayElement.setAttribute("role","dialog");a.overlayElement.setAttribute("title","Add Task By URL");return a};
g.attach=function(){var a=this,b=new fx(e7),c;this.addTaskContent=(c=this.overlayRef)==null?void 0:c.attach(b).instance;var d;(d=this.overlayRef)==null||d.updatePosition();setTimeout(function(){a.connectValues();var e;(e=a.addTaskContent)==null||e.taskInput.nativeElement.focus()})};g.getPositionStrategy=function(){return Yw(Zw($w(dx(this.overlay.position(),this.element)),8),Akd)};g.getScrollStrategy=function(){return this.overlay.scrollStrategies.reposition()};
g.connectValues=function(){var a=this;if(this.addTaskContent&&this.overlayRef){var b=dg(this.overlayRef._detachments,this.destroyed$);this.addTaskContent.saveClicked.pipe(yg(b)).subscribe(function(){a.taskAdded.emit()});dg(this.addTaskContent.saveClicked,this.addTaskContent.cancelClicked,this.overlayRef.backdropClick(),this.overlayRef.keydownEvents().pipe(eg(function(c){return c.code==="Escape"}))).pipe(yg(b)).subscribe(function(){a.close()})}};f7.\u0275fac=function(a){return new (a||f7)};
f7.\u0275dir=vf({type:f7,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&&Lg("aria-expanded",b.opened||void 0)},inputs:{openOnClick:"openOnClick",openOnEnter:"openOnEnter"},outputs:{taskAdded:"taskAdded",onClose:"onClose"},
exportAs:["bAddTaskDialogToggle"],standalone:!1,features:[Bg]});var g7=function(){};g7.prototype.transform=function(a){var b=a.comeBackTimestamp;return"Upcoming out of office starting "+Bkd.format(new Date(a.futureOooTimestamp.seconds*1E3))+" - back on "+Bkd.format(new Date(b.seconds*1E3))};g7.\u0275fac=function(a){return new (a||g7)};g7.\u0275pipe=wf({name:"futureAvailability",type:g7,pure:!0,standalone:!1});var Bkd=new Ll(wL.WEEKDAY_MONTH_DAY_MEDIUM);var h7=function(){this.activeSession=r(Bs);this.hovercardReady$=new sg(1);this.environmentType=this.activeSession.getEnvironmentType()};h7.prototype.ngOnInit=function(){this.hovercardReady$.next()};h7.prototype.getBaseUrl=function(){switch(this.environmentType){case "PROD":case "NIGHTLY":return"https://taskflow.corp.google.com";default:return"https://taskflow-autopush.corp.google.com"}};h7.\u0275fac=function(a){return new (a||h7)};
h7.\u0275cmp=y({type:h7,selectors:[["iteration-card"]],inputs:{iteration:"iteration"},standalone:!1,decls:1,vars:1,consts:[[1,"carded","bg-main"],[1,"flex-kids-x","align-items-center","gap","margin-s-bottom"],["role","img","svgIcon","taskflow-logo",1,"icon-s"],[1,"flex-kids-x","align-items-center","gap"],["role","img","svgIcon","time-24px",1,"icon-s","muted"],["target","_blank",1,"hover-link",3,"href"],["mode","date",3,"paddingLeftPx","timestamp"]],template:function(a,b){a&1&&F(0,F_b,13,7,"div",0);
a&2&&G(b.iteration?0:-1)},dependencies:[FC,EL],encapsulation:2});var i7=function(){this.analytics=r(RE);this.domSafe=r(UK);this.activeSession=r(Bs);this.environmentType=this.activeSession.getEnvironmentType()};i7.prototype.trackHoverEvent=function(){this.analytics.trackEvent("missionControl","hover","iteration-chip")};i7.prototype.getBaseUrl=function(){switch(this.environmentType){case "PROD":case "NIGHTLY":return"https://taskflow.corp.google.com";default:return"https://taskflow-autopush.corp.google.com"}};i7.\u0275fac=function(a){return new (a||i7)};
i7.\u0275cmp=y({type:i7,selectors:[["iteration-chip"]],inputs:{iteration:"iteration"},standalone:!1,decls:1,vars:1,consts:[["iterationHovercard","onedevHovercard"],["cardBody",""],[1,"iteration-chip","margin-xs-right",3,"onedevHovercardShown","click","onedevHovercardTrigger"],[3,"onedevIsHovercardReady","iteration",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","iteration"]],template:function(a,b){a&1&&F(0,H_b,5,1);a&2&&G(b.iteration?0:-1)},dependencies:[h7,DI,EI,JI,FI],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 j7=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"]]),B0b=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"]]),Ckd=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 zs=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(zs,n);g=zs.prototype;g.getId=function(){return xk(this,1)};g.getId_asLegacyNumberOrString=function(){return Um(this,1)};g.getId_asString=function(){return Bk(this,1)};g.setId=function(a){return Xl(this,1,a)};g.getFrequency=function(){return pk(this,2)};g.setFrequency=function(a){return Jj(this,2,a)};g.getOrdinal=function(){return Ej(this,3)};g.setOrdinal=function(a){return Zj(this,3,a)};
g.getTimeZone=function(){return W(this,Zo,4)};g.setTimeZone=function(a){return X(this,Zo,4,a)};g.hasTimeZone=function(){return tk(this,Zo,4)};g.getTimeOfDay=function(){return W(this,$o,5)};g.setTimeOfDay=function(a){return X(this,$o,5,a)};g.getDisplayName=function(){return Rc(this,6)};g.setDisplayName=function(a){return Hj(this,6,a)};g.getQuery=function(){return Rc(this,7)};g.setQuery=function(a){return Hj(this,7,a)};g.clearQuery=function(){Bu(this,7)};
g.getLastUpdatedTimestamp=function(){return W(this,bk,12)};var k7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,k7.messageId)};Y(k7,n);k7.prototype.getSubscription=function(){return W(this,zs,1,Nc)};k7.prototype.setSubscription=function(a){return X(this,zs,1,a,Nc)};k7.messageId="b.ConfigurableAlertSubscriptionRequest";var l7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,l7.messageId)};Y(l7,n);l7.prototype.getSubscription=function(){return W(this,zs,1,Nc)};l7.prototype.setSubscription=function(a){return X(this,zs,1,a,Nc)};l7.messageId="b.ConfigurableAlertSubscriptionResponse";var Dkd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,Dkd.messageId)};Y(Dkd,n);Dkd.prototype.getSubscriptionsList=function(){return Sj(this,zs,1,Bj(),Nc)};Dkd.messageId="b.ListConfigurableAlertSubscriptionsResponse";var m7=function(){this.executor=r(PA)};g=m7.prototype;g.create=function(a){return this.executor.post({url:"action/configurable_alert_subscriptions",body:(new k7).setSubscription(T_b(a)),responseConstructor:l7}).pipe(C(function(b){if(b=b.getSubscription())return S_b(b);throw Error("vf");}))};g.list=function(){return this.executor.get({url:"action/configurable_alert_subscriptions",responseConstructor:Dkd}).pipe(C(function(a){return a.getSubscriptionsList().map(S_b)}))};
g.get=function(a){return this.executor.get({url:"action/configurable_alert_subscriptions/"+a,responseConstructor:l7}).pipe(C(function(b){if(b=b.getSubscription())return S_b(b);throw Error("wf");}))};g.update=function(a){return this.executor.post({url:"action/configurable_alert_subscriptions/"+a.id,body:(new k7).setSubscription(T_b(a)),responseConstructor:l7}).pipe(C(function(b){if(b=b.getSubscription())return S_b(b);throw Error("vf");}))};
g.delete=function(a){return this.executor.delete({url:"action/configurable_alert_subscriptions/"+a,responseConstructor:$A}).pipe(C(function(){}))};m7.\u0275fac=function(a){return new (a||m7)};m7.\u0275prov=Cd({token:m7,factory:m7.\u0275fac,providedIn:"root"});var n7=function(){XA.call(this,{freshUntil:36E5,ancientAfter:2592E5});var a=this;this.api=r(m7);this.recordType="configurable_alert";this.idForRecord=function(d){return d.id};this.isEqual=gj;var b=r(gE),c=r(Gg);b.getObservable().pipe(lp(c)).subscribe(function(){a.invalidate()})};Y(n7,XA);g=n7.prototype;g.fetchOne=function(a){return this.api.get(a)};g.list=function(){return this.api.list()};g.create=function(a){return this.api.create(a)};g.update=function(a){var b=this;return this.api.update(a).pipe(zg(function(c){b.invalidate(c.id)}))};
g.delete=function(a){var b=this;return this.api.delete(a).pipe(zg(function(){b.invalidate(a)}))};n7.\u0275fac=function(a){return new (a||n7)};n7.\u0275prov=Cd({token:n7,factory:n7.\u0275fac,providedIn:"root"});var V_b=function(a){return{subscriptionId:a}},U_b=function(a){return{path:"/settings/configurable-alerts",queryParams:a}},X_b=function(a){return{q:a,s:"modified_time:desc"}},W_b=function(a){return{path:"/issues",queryParams:a}},o7=function(){var a=this;this.fridge=r(n7);this.subscriptionId$=new sg(1);this.data$=this.subscriptionId$.pipe(xg(function(b){return a.fridge.watch(b)}),eg(Qj));this.contentReady$=this.data$.pipe(C(function(){}))};
nd.Object.defineProperties(o7.prototype,{subscriptionId:{configurable:!0,enumerable:!0,set:function(a){this.subscriptionId$.next(a)}}});o7.\u0275fac=function(a){return new (a||o7)};
o7.\u0275cmp=y({type:o7,selectors:[["configurable-alert-card"]],inputs:{subscriptionId:"subscriptionId"},standalone:!1,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,Y_b,11,12,"div",0),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.data$))?0:-1,c)}},dependencies:[CC,oG,Jx,
Tv],styles:["[_nghost-%COMP%]{display:block;height:100%;max-width:700px;max-height:500px;overflow-y:auto;background:var(--surface-default)}"],changeDetection:0});var p7=function(){var a=this;this.tasksApi=r(AF);this.analytics=r(RE);this.fileId$=new sg(1);this.commentId$=new sg(1);this.mentionedDriveComment$=Uf([this.fileId$,this.commentId$]).pipe(xg(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=a.tasksApi;var e=new Rxc;b=Hj(e,1,b).setCommentId(d);return c.executor.post({url:"action/tasks/latest_drive_mention",responseConstructor:rF,body:b}).pipe(C(dJa))}),zg(function(){a.contentReady$.next()}));this.contentReady$=new sg(1)};
p7.prototype.ngOnInit=function(){this.analytics.trackEvent("mentionsCard","view","hovercard")};nd.Object.defineProperties(p7.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)}}});p7.\u0275fac=function(a){return new (a||p7)};
p7.\u0275cmp=y({type:p7,selectors:[["mentioned-drive-comments-card"]],inputs:{fileId:"fileId",commentId:"commentId",lastMentionLink:"lastMentionLink"},standalone:!1,decls:2,vars:3,consts:[[1,"carded","bg-main"],[1,"flex-kids-x","align-items-center","space-between","margin-s-bottom"],[1,"bv2-event-user-name",3,"model"],["target","_blank",1,"hover-link",3,"href"],["mode","datetime",3,"timestamp"],["target","_blank",1,"hover-link",3,"click","href"]],template:function(a,b){a&1&&(F(0,a0b,11,4,"div",0),
U(1,"async"));if(a&2){var c;G((c=V(1,1,b.mentionedDriveComment$))?0:-1,c)}},dependencies:[EL,bL,Tv],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 f0b=function(a,b){return b.commentNumber},q7=function(){var a=this;this.issueCommentsBatchApi=r(WD);this.analytics=r(RE);this.activeSession=r(Bs);this.enableExternalMentionsFe=OA(this.activeSession,"enableExternalMentionsFe");this.issueId$=new Kn("");this.commentNumbers$=new Kn([]);this.mentionedComments$=Uf([this.issueId$,this.commentNumbers$]).pipe(xg(function(b){var c=l(b);b=c.next().value;c=c.next().value;return a.issueCommentsBatchApi.batchGet(b,c)}),zg(function(){a.contentReady$.next()}));
this.contentReady$=new sg(1);this.thumbsDownClicked=this.thumbsUpClicked=this.hasReacted=!1};q7.prototype.ngOnInit=function(){this.analytics.trackEvent("mentionsCard","view","hovercard")};q7.prototype.getCommentNumberLink=function(a,b){return KOa(a,{comment:b})};q7.prototype.trackThumbsUp=function(){this.thumbsUpClicked=this.hasReacted=!0;this.analytics.trackEvent("needsResponse","accept",Ekd(this))};
q7.prototype.trackThumbsDown=function(){this.thumbsDownClicked=this.hasReacted=!0;this.analytics.trackEvent("needsResponse","reject",Ekd(this))};var Ekd=function(a){return JSON.stringify({id:a.issueId$.value,commentNumber:a.commentNumbers$.value})};nd.Object.defineProperties(q7.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)}}});
q7.\u0275fac=function(a){return new (a||q7)};
q7.\u0275cmp=y({type:q7,selectors:[["mentioned-issue-comments-card"]],inputs:{issueId:"issueId",commentNumbers:"commentNumbers",needsResponse:"needsResponse"},standalone:!1,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,g0b,5,0,"div",0),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.mentionedComments$))?0:-1,c)}},dependencies:[FC,CC,bL,EL,AO,Tv],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 i0b=function(a){return{signal:a}},r0b=function(){return[]},l0b=function(a,b){return b.type},Fkd=function(){this.activeSession=r(Bs);this.signals=[];this.SIGNAL_TO_DISPLAY_TEXT=j7;this.SIGNAL_TO_ACTION_TEXT=Ckd;this.getSignalUrgency=Q_b;this.getHighestPrioritySignal=R_b;this.enableMentionedCommentsHovercard=OA(this.activeSession,"enableMentionedCommentsHovercard")},o0b=function(a,b){return a.filter(function(c){return c!==b}).map(function(c){return j7.get(c.type)}).join("; ")},y0b=function(a,b){return a.enableMentionedCommentsHovercard&&
(b.type==="MENTIONED_NEEDS_RESPONSE"||b.type==="COMMENT_MENTIONS_ME")&&b.commentNumbers!=null&&b.commentNumbers.length>0&&a.issueId!=null},z0b=function(a){return a.type==="TAGGED_IN_COMMENT"&&a.driveFileId!=null&&a.driveCommentId!=null},A0b=function(a){return!(a.type!=="CONFIGURABLE_ALERT"||!a.configurableAlertSubscriptionId)};Fkd.\u0275fac=function(a){return new (a||Fkd)};
Fkd.\u0275cmp=y({type:Fkd,selectors:[["needs-attention-signals-cell"]],inputs:{issueId:"issueId",signals:"signals"},standalone:!1,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,m0b,3,0,"div",
4)(1,q0b,1,1),D(2,C0b,9,12,"ng-template",null,0,Lh));a&2&&G(b.signals.length<3?0:1)},dependencies:[Sv,zG,xG,DI,EI,JI,FI,q7,p7,o7],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 r7=function(){this.tasksService=r(AF);this.okrIds=[];this.hovercardReady$=new sg(1);this.teamObjectives$=Nf([])};r7.prototype.ngOnInit=function(){this.teamObjectives$=zyc(this.tasksService,Gkd(this.okrIds));this.hovercardReady$.next()};
var Gkd=function(a){a=a.map(function(b){return b.includes("/keyResults")?b.substring(0,b.indexOf("/keyResults")):b});return[].concat(p(new Set(a)))},G0b=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},H0b=function(a,b){if(b.includes("/keyResults")){var c,d;return(c=G0b(a,b))==null?void 0:(d=c.keyResults)==null?void 0:
d.find(function(e){return b.indexOf(e.keyResultId)>0})}},D0b=function(a){return a&&a!=="RATING_UNSPECIFIED"?" \u2022 "+a:""};r7.\u0275fac=function(a){return new (a||r7)};
r7.\u0275cmp=y({type:r7,selectors:[["okr-card"]],inputs:{okrIds:"okrIds"},standalone:!1,decls:2,vars:3,consts:[["role","dialog","aria-label","OKR hovercard",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body"],[1,"bv2-hovercard-narrow","okr-hovercard-content"],[1,"flex-kids-x","margin-s-bottom","type-m"],[1,"flex-kids-x","padded-s-top","border-top","margin-s-top","margin-s-bottom","type-xs"],[1,"type-and-priority"],["role","link","target","_blank",1,"okr-description",3,"href"],[1,"type-and-priority",
"kr-indentation"]],template:function(a,b){a&1&&(F(0,J0b,4,0,"div",0),U(1,"async"));if(a&2){var c;G((c=V(1,1,b.teamObjectives$))?0:-1,c)}},dependencies:[Tv],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 s7=function(){this.analytics=r(RE);this.okrIds=[]};s7.prototype.trackHoverEvent=function(){this.analytics.trackEvent("missionControl","hover","okr-chip")};s7.\u0275fac=function(a){return new (a||s7)};
s7.\u0275cmp=y({type:s7,selectors:[["okr-chip"]],inputs:{okrIds:"okrIds"},standalone:!1,decls:1,vars:1,consts:[["okrHovercard","onedevHovercard"],["cardBody",""],[1,"okr-chip","margin-xs-right",3,"onedevHovercardShown","onedevHovercardTrigger"],[3,"onedevIsHovercardReady","okrIds",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","okrIds"]],template:function(a,b){a&1&&F(0,L0b,5,1);a&2&&G(b.okrIds&&b.okrIds.length>0?0:-1)},dependencies:[r7,DI,EI,JI,FI],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 t7=function(){this.hovercardReady$=new sg(1)};t7.prototype.ngOnInit=function(){this.hovercardReady$.next()};t7.\u0275fac=function(a){return new (a||t7)};
t7.\u0275cmp=y({type:t7,selectors:[["stale-task-card"]],inputs:{taskId:"taskId"},standalone:!1,decls:1,vars:1,consts:[["role","dialog","aria-label","Stale task card",1,"onedev-hovercard-content"],[1,"onedev-hovercard-body","margin-xs"],[1,"bv2-hovercard-narrow"],["href","http://go/b-home#stale-tasks","target","_blank"]],template:function(a,b){a&1&&F(0,M0b,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 Hkd=function(){this.hovercardConfig={showDelay:250,hideDelay:250,position:[LHc,NHc],triggerKey:[]}};Hkd.\u0275fac=function(a){return new (a||Hkd)};
Hkd.\u0275cmp=y({type:Hkd,selectors:[["stale-task-indicator"]],inputs:{taskId:"taskId",lastAlertTimestamp:"lastAlertTimestamp"},standalone:!1,decls:7,vars:3,consts:[["staleTaskCard","onedevHovercard"],["cardBody",""],[1,"staleness-indicator","valign-middle",3,"onedevHovercardTrigger","onedevHovercardConfig"],["svgIcon","time-24px","color","orange"],[3,"onedevIsHovercardReady","taskId",4,"onedevHovercardLazyBody"],[3,"onedevIsHovercardReady","taskId"]],template:function(a,b){a&1&&(Wg(0),J(1,"div",
2),M(2,"mat-icon",3),R(3),K(),J(4,"onedev-hovercard",null,0),D(6,N0b,2,2,"stale-task-card",4),K(),Xg());a&2&&(a=Q(5),x(),I("onedevHovercardTrigger",a)("onedevHovercardConfig",b.hovercardConfig),x(2),b=b.lastAlertTimestamp?(b=uq(b.lastAlertTimestamp.seconds,!0))?b+", respond?":"":"",T(" ",b," "))},dependencies:[FC,DI,EI,JI,FI,t7],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 Ikd=["menuTrigger"],u7=function(){this.SIGNAL_TO_DISPLAY_TEXT=j7;this.DEFINITIONS=Fyc;this.analytics=r(RE);this.signalFilterKeys=[];this.selectedSignals=[];this.source="BUGANIZER";this.changeFilteredSignals=new LE;this.chipSelectionStateChanged=new LE};u7.prototype.ngOnInit=function(){this.currentSelectedSignals=new Set(this.selectedSignals);this.selectAllToggle=v7(this)};u7.prototype.openMenu=function(){this.menuTrigger.openMenu()};
u7.prototype.signalFilterChange=function(){var a=[].concat(p(this.currentSelectedSignals));this.changeFilteredSignals.emit(a);Jkd(this,new Set(this.selectedSignals),new Set(a))};var Kkd=function(a){return[].concat(p(a.signalFilterKeys)).sort(function(b,c){var d,e;return((d=j7.get(b))!=null?d:"").localeCompare((e=j7.get(c))!=null?e:"")})},v7=function(a){return a.currentSelectedSignals.size===a.signalFilterKeys.length};
u7.prototype.onCheckboxChange=function(a){this.currentSelectedSignals.has(a)?this.currentSelectedSignals.delete(a):this.currentSelectedSignals.add(a);this.selectAllToggle=v7(this);this.chipSelectionStateChanged.emit(this.currentSelectedSignals.size>0&&!v7(this)||v7(this))};var Jkd=function(a,b,c){a.signalFilterKeys.forEach(function(d){b.has(d)!==c.has(d)&&a.analytics.trackEvent("needsAttention","toggle",a.source+"-"+j7.get(d)+"-"+(c.has(d)?"checked":"unchecked"))})};
u7.\u0275fac=function(a){return new (a||u7)};
u7.\u0275cmp=y({type:u7,selectors:[["signal-list-dropdown"]],viewQuery:function(a,b){a&1&&hh(Ikd,5);if(a&2){var c;lh(c=mh())&&(b.menuTrigger=c.first)}},inputs:{signalFilterKeys:"signalFilterKeys",selectedSignals:"selectedSignals",source:"source"},outputs:{changeFilteredSignals:"changeFilteredSignals",chipSelectionStateChanged:"chipSelectionStateChanged"},standalone:!1,decls:11,vars:5,consts:[["menuTrigger","matMenuTrigger"],["signalFilterMenu",""],["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();J(0,"button",2,0);N("keydown.enter",function(d){u(c);return w(d.stopPropagation())})("keydown.space",function(d){u(c);return w(d.stopPropagation())})("keyup.enter",function(){u(c);return w(b.openMenu())})("keyup.space",function(){u(c);
return w(b.openMenu())})("click",function(d){u(c);return w(d.stopPropagation())});M(2,"mat-icon",3);K();J(3,"mat-menu",4,1);N("closed",function(){u(c);return w(b.signalFilterChange())});J(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&&!v7(b)||v7(b));return w(d.stopPropagation())});J(6,"mat-checkbox",6);R(7," Select all alerts ");
K()();M(8,"mat-divider");Pg(9,O0b,3,2,"button",7,Og);K()}a&2&&(a=Q(4),I("matTooltip","Filter "+Fyc[b.source].displayName+" alerts")("matMenuTriggerFor",a),Lg("aria-label",Fyc[b.source].displayName+" dropdown"),x(6),I("indeterminate",b.currentSelectedSignals.size>0&&!v7(b))("checked",v7(b)),x(3),Qg(Kkd(b)))},dependencies:[FC,zG,xG,pG,sG,qG,uG,gM,hM,oG,Kx,pL],encapsulation:2});var Lkd=["menuTrigger"],w7=function(){this.filteredSignalsSource=r(mX);this.activeSession=r(Bs);this.DEFINITIONS=Fyc;this.SIGNAL_TO_DISPLAY_TEXT=j7;this.FILTERED_SIGNALS=hj(this.filteredSignalsSource.activeSession.isInternalSession()?Gyc:Hyc);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 LE;this.changeSourceFilter=new LE;this.signals={};this.chipsSelected={}};
w7.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")};
w7.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})};
w7.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)};w7.prototype.openMenu=function(){this.menuTrigger.openMenu()};
var R0b=function(a,b){var c;return(c=a.signals[b])!=null?c:[]},Q0b=function(a,b){switch(b){case "BUGANIZER":return[].concat(p(a.FILTERED_SIGNALS.buganizerSignals));case "DRIVE":return[].concat(p(a.FILTERED_SIGNALS.driveSignals));case "GERRIT":return[].concat(p(a.FILTERED_SIGNALS.gerritSignals));case "GOOGLE_TASKS":return[].concat(p(a.FILTERED_SIGNALS.googleTasksSignals));case "CRITIQUE":return[].concat(p(a.FILTERED_SIGNALS.changelistSignals));case "IRM":return[].concat(p(a.FILTERED_SIGNALS.irmSignals));
default:return[]}};w7.\u0275fac=function(a){return new (a||w7)};
w7.\u0275cmp=y({type:w7,selectors:[["signal-filter-chips"]],viewQuery:function(a,b){a&1&&hh(Lkd,5);if(a&2){var c;lh(c=mh())&&(b.menuTrigger=c.first)}},inputs:{sourceFilterKeys:"sourceFilterKeys",selectedSignals:"selectedSignals",selectedSources:"selectedSources"},outputs:{changeSourceAndFilteredSignals:"changeSourceAndFilteredSignals",changeSourceFilter:"changeSourceFilter"},standalone:!1,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&&(J(0,"div",0),Pg(1,T0b,1,1,null,null,Og),K());a&2&&(x(),Qg(b.sourceFilterKeys))},dependencies:[FC,zG,xG,oG,Jx,u7],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 Mkd=["menuTrigger"],Nkd={label:"Last 1 day",numberOfDays:1},Okd={label:"Last 7 days",numberOfDays:7},Pkd={label:"Last 30 days",numberOfDays:30},Qkd={label:"Last 90 days",numberOfDays:90},Rkd=[Nkd,Okd,Pkd,Qkd],Skd={1:Nkd,7:Okd,30:Pkd,90:Qkd},x7=function(){this.timeBoundaries=Rkd;this.change=new LE};x7.prototype.getLabel=function(a){if(a==null)return"";var b,c;return(c=(b=Skd[a])==null?void 0:b.label)!=null?c:""};x7.prototype.openMenu=function(){this.menuTrigger.openMenu()};
x7.\u0275fac=function(a){return new (a||x7)};
x7.\u0275cmp=y({type:x7,selectors:[["time-boundary-filter"]],viewQuery:function(a,b){a&1&&hh(Mkd,5);if(a&2){var c;lh(c=mh())&&(b.menuTrigger=c.first)}},inputs:{selectedTimeBoundary:"selectedTimeBoundary"},outputs:{change:"change"},standalone:!1,decls:9,vars:3,consts:[["menuTrigger","matMenuTrigger"],["timeBoundaryMenu","matMenu"],["aria-label","Time boundary selection",3,"selectable"],["appearance","hairline-filter","aria-label","Select time boundary","selected","","color","primary","role","button",
1,"time-boundary-chip",3,"keyup.enter","keyup.space","matMenuTriggerFor"],["matChipTrailingIcon","","svgIcon","arrow-dropdown"],["xPosition","before"],["type","button","mat-menu-item","",3,"disabled"],["type","button","mat-menu-item","",3,"click","disabled"]],template:function(a,b){if(a&1){var c=t();J(0,"mat-chip-listbox",2)(1,"mat-chip-option",3,0);N("keyup.enter",function(){u(c);return w(b.openMenu())})("keyup.space",function(){u(c);return w(b.openMenu())});R(3);M(4,"mat-icon",4);K()();J(5,"mat-menu",
5,1);Pg(7,U0b,2,2,"button",6,Og);K()}a&2&&(a=Q(6),I("selectable",!1),x(),I("matMenuTriggerFor",a),x(2),T(" ",b.getLabel(b.selectedTimeBoundary)," "),x(4),Qg(b.timeBoundaries))},dependencies:[FC,aP,iP,gP,eP,pG,sG,qG,uG],encapsulation:2});var Tkd=function(){return{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:80}},Ukd=function(a){return[a]},y7=function(){this.isSnoozed=!0;this.snooze=new LE;this.unsnooze=new LE;this.isOpen=new LE;this.currentPickerDateTime=this.tomorrow;this.timePickerOpen=!1};y7.prototype.stopPropagation=function(a){a.stopPropagation()};y7.prototype.onOpen=function(a){this.isOpen.emit(a)};var Vkd=function(a,b){a.setHours(b);a.setMinutes(0);a.setSeconds(0);a.setMilliseconds(0)};
nd.Object.defineProperties(y7.prototype,{now:{configurable:!0,enumerable:!0,get:function(){return new rl}},laterToday:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.getHours()>=12?a.add(new hv("h",3)):Vkd(a,15);return a}},tomorrow:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.add(new hv("d",1));Vkd(a,8);return a}},nextWeek:{configurable:!0,enumerable:!0,get:function(){var a=this.now;a.setDate(a.getDate()+(7-a.getDay())%7+1);Vkd(a,8);return a}},nextMonth:{configurable:!0,
enumerable:!0,get:function(){var a=this.now;a.add(new hv("d",30));Vkd(a,8);return a}}});y7.\u0275fac=function(a){return new (a||y7)};
y7.\u0275cmp=y({type:y7,selectors:[["snooze-menu"]],viewQuery:function(a,b){a&1&&hh(sG,7);if(a&2){var c;lh(c=mh())&&(b.menu=c.first)}},inputs:{isSnoozed:"isSnoozed"},outputs:{snooze:"snooze",unsnooze:"unsnooze",isOpen:"isOpen"},standalone:!1,decls:27,vars:11,consts:[["trigger","cdkOverlayOrigin"],["aria-labelledby","snooze-menu-title",3,"closed"],["id","snooze-menu-title",1,"title","gmat-body-2",3,"click"],[1,"list"],["type","button","mat-menu-item","",3,"click"],[1,"date"],["mode","datetime",3,"date"],
[1,"bottom"],["type","button","mat-menu-item",""],["type","button","mat-menu-item","","dialogLabel","Pick date & time","ttr.aria-label","Pick date & time","matTooltip","Pick date & time","tabindex","0","cdkOverlayOrigin","",3,"keydown.enter","keydown.space","click"],["svgIcon","time-24px"],["cdkConnectedOverlay","",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions"],["svgIcon","clear"],[3,"clickOutside"],[3,"cancelClicked","dateTimeChange","saveClicked","required",
"renderPanel","dateTime","includeTimePicker","todayButtonEnabled"]],template:function(a,b){if(a&1){var c=t();J(0,"mat-menu",1);N("closed",function(d){u(c);if(d!=="click")b.onOpen(!1);return w()});J(1,"span",2);N("click",function(d){u(c);return w(b.stopPropagation(d))});R(2," Snooze until... ");K();J(3,"div",3)(4,"button",4);N("click",function(){u(c);var d=b.laterToday;d&&b.snooze.emit(d);b.onOpen(!1);return w()});R(5," Later today ");J(6,"span",5);M(7,"b-formatted-date-time",6);K()();J(8,"button",
4);N("click",function(){u(c);var d=b.tomorrow;d&&b.snooze.emit(d);b.onOpen(!1);return w()});R(9," Tomorrow ");J(10,"span",5);M(11,"b-formatted-date-time",6);K()();J(12,"button",4);N("click",function(){u(c);var d=b.nextWeek;d&&b.snooze.emit(d);b.onOpen(!1);return w()});R(13," Next week ");J(14,"span",5);M(15,"b-formatted-date-time",6);K()();J(16,"button",4);N("click",function(){u(c);var d=b.nextMonth;d&&b.snooze.emit(d);b.onOpen(!1);return w()});R(17," Next Month ");J(18,"span",5);M(19,"b-formatted-date-time",
6);K()()();J(20,"div",7);F(21,V0b,3,0,"button",8);J(22,"button",9,0);N("keydown.enter",function(){u(c);b.timePickerOpen=!b.timePickerOpen;return w()})("keydown.space",function(){u(c);b.timePickerOpen=!b.timePickerOpen;return w()})("click",function(){u(c);b.timePickerOpen=!b.timePickerOpen;return w()});M(24,"mat-icon",10);R(25," Pick date & time ");K()()();D(26,W0b,2,5,"ng-template",11)}a&2&&(a=Q(23),x(7),I("date",b.laterToday),x(4),I("date",b.tomorrow),x(4),I("date",b.nextWeek),x(4),I("date",b.nextMonth),
x(2),G(b.isSnoozed?21:-1),x(5),I("cdkConnectedOverlayOrigin",a)("cdkConnectedOverlayOpen",b.timePickerOpen)("cdkConnectedOverlayPositions",Hh(9,Ukd,Gh(8,Tkd))))},dependencies:[FC,qL,EL,sG,qG,nx,mx,MU],styles:[".date[_ngcontent-%COMP%]{padding-left:20px;float:right}.title[_ngcontent-%COMP%]{padding:15px;font-size:.8rem;font-weight:700}"],changeDetection:0});var Wkd=[5433823,5418819,5421028,5122552,5422257];var z7=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 nq},Xkd=function(a){return Wkd.some(function(b){var c;return(c=a.hotlistIds)==null?void 0:c.includes(b)})};z7.\u0275fac=function(a){return new (a||z7)};
z7.\u0275cmp=y({type:z7,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&&D(0,X0b,5,1,"ng-container",0);a&2&&I("ngIf",Xkd(b))},dependencies:[Rv,HQ],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 A7=function(){Z.call(this);var a=this;this.errorHandler=r(aK);this.tasksService=r(AF);this.missionControlPrefs=r(nX);this.domSafe=r(UK);this.router=r(vC);this.appEvents=r(FB);this.analytics=r(RE);this.clipboard=r(aO);this.activeSession=r(Bs);this.needsAttentionTaskFridge=r(CF);this.butterBar=r(GJ);this.irmTasks=OA(this.activeSession,"enableIrmTasks")?["IRM"]:[];this.OPTIONAL_SOURCE_FILTERS=["GERRIT","GOOGLE_TASKS"].concat(p(this.irmTasks));this.ALL_NEEDS_ATTENTION_SOURCE_FILTERS=[].concat(p(Cyc),
p(this.OPTIONAL_SOURCE_FILTERS));this.EXTERNAL_NEEDS_ATTENTION_SOURCE_FILTERS=Dyc;this.SOURCE_FILTERS=this.activeSession.isInternalSession()?this.ALL_NEEDS_ATTENTION_SOURCE_FILTERS:this.EXTERNAL_NEEDS_ATTENTION_SOURCE_FILTERS;this.ALL_FILTERED_SIGNALS=Gyc;this.enableViewDismissedTasks=OA(this.activeSession,"enableViewDismissedTasks");this.enableStaleTasks=OA(this.activeSession,"enableStaleTasks");this.enableIterationChip=OA(this.activeSession,"enableIterationChip");this.enableOkrChip=OA(this.activeSession,
"enableLinkedOkrChip");OA(this.activeSession,"enableSignalFiltering");this.refreshTable=new tg;this.SIGNAL_TO_DISPLAY_TEXT=j7;this.SIGNAL_TO_ACTION_TEXT=Ckd;this.TaskResourceType=joc;this.SignalStatus=mpc;this.sources$=this.missionControlPrefs.needsAttentionSources$;this.filteredSignals$=this.missionControlPrefs.needsAttentionFilteredSignals$;this.timeBoundary$=this.missionControlPrefs.prefs$.pipe(C(function(b){var c;return(c=b==null?void 0:b.needsAttentionDaysOld)!=null?c:30}));this.signalStatusFilter$=
new Kn(0);this.allNeedsAttention$=new Kn([]);this.tasksQuery$=Uf([this.timeBoundary$,this.sources$,this.signalStatusFilter$,this.filteredSignals$]).pipe(yg(this.destroyed$),og(function(b,c){return gj(b,c)}),xg(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 Yo(f)});return a.needsAttentionTaskFridge.watchMany({maxTaskAgeDays:b,sources:d,signalFilter:e,filterSignals:c})}),ug({bufferSize:1,refCount:!0}));this.workItems$=this.tasksQuery$.pipe(xg(function(b){return!a.enableIterationChip&&
!a.enableOkrChip||a.activeSession.isExternalSession()?Nf([]):yyc(a.tasksService,b2b(b.results)).pipe(hg(function(c){a.errorHandler.errorHandler(null,c);return Nf([])}))}));this.liteTasks$=Uf([this.tasksQuery$,this.workItems$,this.filteredSignals$]).pipe(C(function(b){var c=l(b);b=c.next().value;var d=c.next().value;c=c.next().value;var e=$1b(d);d=a2b(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 O_b(b,(f=a.signalStatusFilter$.getValue())!=null?f:0,e,d,c)}));this.dismissButtonLabel$=this.signalStatusFilter$.pipe(C(function(b){return b===1?"Un-dismiss":"Dismiss"}));this.dismissButtonTooltip$=this.signalStatusFilter$.pipe(C(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(C(function(b){return b===2?"Snooze Options":"Snooze"}));
this.snoozeButtonTooltip$=this.signalStatusFilter$.pipe(C(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 Tw(!0,[]);this.DEFAULT_NUM_ROWS_DISPLAYED=this.numDisplayedRows=10;this.getSignalUrgency=Q_b;this.getHighestPrioritySignal=R_b;Uf([this.liteTasks$]).pipe(C(function(b){b=l(b).next().value;b.sort(function(c,d){return ql(d.lastAlertTimestamp)-ql(c.lastAlertTimestamp)});return b}),yg(this.destroyed$)).subscribe(function(b){a.allNeedsAttention$.next(b)});Uf([this.timeBoundary$,this.sources$,this.filteredSignals$]).pipe(og(function(b,
c){return gj(b,c)}),xg(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 Yo(e)});return a.needsAttentionTaskFridge.watchMany({maxTaskAgeDays:b,sources:d,signalFilter:0,filterSignals:c})}),yg(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(yg(this.destroyed$)).subscribe(function(b){a.errorHandler.errorHandler(null,
b)})};Y(A7,Z);A7.\u0275dir=Z.\u0275dir;A7.prototype.ngOnInit=function(){this.refreshTable.pipe(yg(this.destroyed$)).subscribe(this.refreshTaskData.bind(this))};
A7.prototype.refreshTaskData=function(){var a=this,b,c,d,e,f,h,k,q;return z(function(v){switch(v.nextAddress){case 1:return B(v,Rf(a.timeBoundary$),2);case 2:return c=(b=v.yieldResult)!=null?b:0,B(v,Rf(a.sources$),3);case 3:return e=((d=v.yieldResult)!=null?d:[]).map(function(A){return Yo(A)}),B(v,Rf(a.signalStatusFilter$),4);case 4:return h=(f=v.yieldResult)!=null?f:0,B(v,Rf(a.filteredSignals$),5);case 5:return q=(k=v.yieldResult)!=null?k:a.ALL_FILTERED_SIGNALS,B(v,bqc(a.needsAttentionTaskFridge,
{maxTaskAgeDays:c,sources:e,signalFilter:h,filterSignals:q}),0)}})};A7.prototype.toggleAllRows=function(a){this.selection.selected.length===a.length?this.selection.clear():(a=a.map(function(b){return b.id}),this.selection.select.apply(this.selection,p(a)))};A7.prototype.dismissAlert=function(a){j1b(this,[a.id])};
var m1b=function(a,b,c){!c||c.getTime()>(new Date).getTime()?(vyc(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)}),Ykd(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")},M1b=function(a){if(a=DQa(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"}};
A7.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=wr(b.id),b=Dq.viewIssue.makeHref(b),kn(a)?this.domSafe.openInNewTab(b):(a==null?0:a.shiftKey)?Jq(this.domSafe,b):Mr(this.router,b);else{var e;this.domSafe.openInNewTab((e=b.lastMentionLink)!=null?
e:b.link)}}};
A7.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(Z1b(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);Zkd(this,a,b);this.enableStaleTasks&&(this.analytics.trackEvent("missionControl","click",a.isStaleTask?"click-stale-yes":"click-stale-no"),a=b.filter(function(e){return e.isStaleTask}).length,
this.analytics.trackEvent("missionControl","display","num-stale-task",a),this.analytics.trackEvent("missionControl","display","num-fresh-tasks",b.length-a))};A7.prototype.setNumDisplayedRows=function(a){this.numDisplayedRows=a.length>this.numDisplayedRows?a.length:10};
var p1b=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},j1b=function(a,b){var c,d;z(function(e){if(e.nextAddress==1)return B(e,Rf(a.signalStatusFilter$),
2);c=e.yieldResult;tyc(a.tasksService,b,c!==1).subscribe(function(){},function(f){return void a.errorHandler.errorHandler(null,f)});d=new Set(b);return B(e,Ykd(a,d),0)})},o1b=function(a){var b=a.selection.selected,c=p1b(a);a.analytics.trackEvent("manualSignal",c?"add":"remove","bulkControls",b.length);uyc(a.tasksService,b,c).subscribe(function(){a.refreshTaskData()},function(d){return void a.errorHandler.errorHandler(null,d)});a.selection.clear()};
A7.prototype.copyIdOrLink=function(a){a.type==="ISSUE"?(a=wr(a.id))&&this.clipboard.copy(a):this.clipboard.copy(a.link)};A7.prototype.sendDmaAnalytics=function(){this.analytics.trackEvent("missionControl","click","dmaChip")};A7.prototype.extractLastDigits=function(a){var b;return(b=wr(a))!=null?b:""};var y1b=function(a){return a.type==="ISSUE"?"/issues/"+a.issueId:a.lastMentionLink?a.lastMentionLink:a.link};
A7.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)};A7.prototype.hasFutureAvailability=function(a){var b,c;return!!(((b=a.futureAvailability)==null?0:b.futureOooTimestamp)&&((c=a.futureAvailability)==null?0:c.comeBackTimestamp))};
var Ykd=function(a,b){var c,d;return z(function(e){if(e.nextAddress==1)return c=a.allNeedsAttention$.getValue(),a.allNeedsAttention$.next(c.filter(function(f){return!b.has(f.id)})),B(e,Rf(a.signalStatusFilter$),2);d=e.yieldResult;d===0&&a.appEvents.missionControlTaskCount.next(c.filter(function(f){return!b.has(f.id)}).length);Lf(e)})},Zkd=function(a,b,c){$kd(a,b,c);ald(a,b,c)},$kd=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)},ald=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)};A7.\u0275fac=function(a){return new (a||A7)};
A7.\u0275cmp=y({type:A7,selectors:[["b-needs-attention-table"]],inputs:{refreshTable:"refreshTable"},standalone:!1,features:[Bg],decls:13,vars:13,consts:[["pickerToggle","bAddTaskDialogToggle"],["snoozeMenu",""],["gmat-tabs","","matAlignTabs","start","matStretchTabs","false","preserveContent","",3,"selectedIndex"],[1,"flex-kids-x","align-items-center","padded-xs-y","border-bottom"],[1,"heading-s"],[1,"border-left","padded-s-left","padded-s-right",3,"selectedTimeBoundary"],[1,"border-left","padded-s-left"],
[1,"text-center","border-bottom","padded-s-y"],["gmat-tabs","","matAlignTabs","start","matStretchTabs","false","preserveContent","",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],[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"],["type","button","mat-button","",1,"bulk-manual-signal",3,"click"],[1,"flex-kids-x","align-items-center"],[1,"italic"],[3,"issueId"],[3,"okrIds"],[3,"iteration"],[1,"going-ooo",3,"matTooltip"],["matTooltip","Estimated review time (visible only to you)",
1,"review-estimate"],[1,"margin-s-right",3,"issuePriority"],["tabindex","0","role","link",1,"subtle-link","break-word","grow-1",3,"auxclick","href"],[3,"onChipClicked","hotlistIds"],["svgIcon","event_upcoming_24px"],[3,"click","taskId","lastAlertTimestamp"],["mode","relativepastshort",3,"timestamp","paddingLeftPx"],[3,"issueId","signals"],["mat-button","","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&&(F(0,$0b,3,1,"mat-tab-group",2),J(1,"div",3)(2,"span",4),R(3,"Sources"),K(),F(4,b1b,2,3),U(5,"async"),F(6,c1b,1,1,"time-boundary-filter",5),U(7,"async"),F(8,d1b,4,0,"div",6),K(),F(9,X1b,2,3),U(10,"async"),U(11,"async"),
Mg(12,Y1b,2,1,"div",7));if(a&2){var c,d;G(b.enableViewDismissedTasks?0:-1);x(4);G((c=V(5,5,b.sources$))?4:-1,c);x(2);G((d=V(7,7,b.timeBoundary$))?6:-1,d);x(2);G(b.signalStatusFilter$.getValue()===b.SignalStatus.ACTIVE?8:-1);x();G(V(10,9,b.liteTasks$)&&!V(11,11,b.loading$)?9:12)}},dependencies:[FC,EL,cP,XP,KP,QP,MP,JP,SP,NP,PP,TP,VP,WP,ON,IN,JN,KN,gM,hM,zG,xG,oG,Jx,Kx,w7,y7,x7,yN,dO,z7,NO,Fkd,Hkd,uG,s7,i7,f7,Tv,Zv,g7],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 B7=function(){Z.call(this);var a=this;this.prefsService=r(nX);this.appEvents=r(FB);this.analytics=r(RE);this.numNeedsAttentionTasks$=this.appEvents.missionControlTaskCount;this.refreshData=new tg;this.numNeedsAttentionTasks$.pipe(eg(Qj),mg(1),yg(this.destroyed$)).subscribe(function(e){a.analytics.trackEvent("missionControl","display","num-needs-attention-"+e,e)});var b,c=(b=this.prefsService.prefs.needsAttentionSources)!=null?b:[];b=this.prefsService.prefs.isNeedsAttentionSourcesConfigured;c=
c.length!==0||b?c:[].concat(p(Cyc));var d;b=(d=this.prefsService.prefs.needsAttentionDaysOld)!=null?d:30;this.analytics.trackEvent("missionControl","view","needsAttention-sources-"+c.join(",")+"-"+b)};Y(B7,Z);B7.\u0275dir=Z.\u0275dir;B7.prototype.isCollapsed=function(){return this.prefsService.isCollapsed("needs-attention-wrapper")};B7.prototype.ariaLabelForToggleButton=function(){return this.isCollapsed()?"Expand needs attention section":"Collapse needs attention section"};
B7.prototype.toggleCollapsed=function(){this.prefsService.toggleCollapsed("needs-attention-wrapper")};B7.\u0275fac=function(a){return new (a||B7)};
B7.\u0275cmp=y({type:B7,selectors:[["needs-attention-wrapper"]],inputs:{refreshData:"refreshData"},standalone:!1,features:[Bg],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&&(J(0,"div",0)(1,"header",1)(2,"h3",2),R(3," Needs attention "),K(),M(4,"mat-icon",3),J(5,"button",4),N("click",function(){return b.toggleCollapsed()}),M(6,"mat-icon",5),K(),F(7,c2b,3,1,"div",6),U(8,"async"),K(),F(9,d2b,2,1,"div",7),K());if(a&2){var c;uh("collapsed",b.isCollapsed());x(5);Lg("aria-label",b.ariaLabelForToggleButton());
x(2);G((c=V(8,5,b.numNeedsAttentionTasks$))?7:-1,c);x(2);G(b.isCollapsed()?-1:9)}},dependencies:[FC,oG,Kx,A7,zG,xG,Tv],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 C7=function(){this.DEFINITIONS=Fyc;this.sourceFilterKeys=[];this.selectedSources=[];this.change=new LE};C7.prototype.sourceFilterChange=function(a){this.selectedSources=a.value;this.change.emit(a.value)};C7.\u0275fac=function(a){return new (a||C7)};
C7.\u0275cmp=y({type:C7,selectors:[["source-filter-chips"]],inputs:{sourceFilterKeys:"sourceFilterKeys",selectedSources:"selectedSources"},outputs:{change:"change"},standalone:!1,decls:3,vars:0,consts:[["multiple","","aria-label","Source selection",3,"change"],["appearance","hairline-filter",3,"value","selected"],[3,"matTooltip"]],template:function(a,b){a&1&&(J(0,"mat-chip-listbox",0),N("change",function(c){return b.sourceFilterChange(c)}),Pg(1,f2b,1,1,null,null,Og),K());a&2&&(x(),Qg(b.sourceFilterKeys))},
dependencies:[aP,iP,gP,zG,xG],encapsulation:2});var V2b=function(){return[]},W2b=function(){return["moreRows"]},D7=function(){Z.call(this);var a=this;this.prefsService=r(nX);this.issueFridge=r(iE);this.router=r(vC);this.domSafe=r(UK);this.analytics=r(RE);this.errorHandler=r(aK);this.activeSession=r(Bs);this.clipboard=r(aO);this.myTasksFridge=r(BF);this.tasksService=r(AF);this.isInternalSession=this.activeSession.isInternalSession();this.irmTasks=OA(this.activeSession,"enableIrmTasks")?["IRM"]:[];this.OPTIONAL_SOURCE_FILTERS=["GERRIT"].concat(p(this.irmTasks));
this.MY_TASK_DEFAULT_FILTERS=[].concat(p(Eyc),p(this.OPTIONAL_SOURCE_FILTERS));this.ONLY_OWNED_TASK_FILTERS=[].concat(p(this.MY_TASK_DEFAULT_FILTERS),["GOOGLE_TASKS"]);this.TaskResourceType=joc;this.taskResourceTypeToIcon=mxa;this.extractLastDigits=wr;this.tableColumns=[].concat(p(J0c));this.tableOptions=Object.assign({},M0c,{showActiveIndicator:!1,rowLimit:10});this.refreshData=new tg;this.manualSignalTriggered=new LE;this.sources$=this.prefsService.myTasksSources$;this.timeBoundary$=this.prefsService.prefs$.pipe(C(function(e){var f;
return(f=e==null?void 0:e.myTasksDaysOld)!=null?f:7}));var b;this.INITIAL_TAB_INDEX=(b=e6c(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 Kn([]),loading:!0},{label:"Collaborating",description:"Tasks you're working on or contributing to (but don't own)",liteTasks:new Kn([]),
loading:!0},{label:"Following",description:"Tasks you're tracking or have recent activities on",liteTasks:new Kn([]),loading:!0},g2b(this.issueFridge,(c=this.activeSession.getTracker())==null?void 0:c.trackerId)].filter(Qj);this.myTasks$=Uf([this.timeBoundary$,this.sources$]).pipe(yg(this.destroyed$),og(function(e,f){return e[0]===f[0]&&gj(e[1],f[1])}),xg(function(e){var f=l(e);e=f.next().value;f=f.next().value;var h=new Set(f.map(function(k){return Yo(k)}));return a.myTasksFridge.watchMany({maxTaskAgeDays:e,
sources:Array.from(h),issueFilter:h2b(f)})}));this.displayColumns="type title modified role created options".split(" ");this.DEFAULT_NUM_ROWS_DISPLAYED=this.numDisplayedRows=10;this.myTasks$.pipe(yg(this.destroyed$)).subscribe(function(e){var f=e.results;e=f.filter(function(A){return A.resourceRelationships.filter(function(E){return E.category==="OWNER"}).length>0}).sort(c3b);var h=f.filter(function(A){return A.resourceRelationships.filter(function(E){return E.category==="COLLABORATOR"}).length>0}).sort(c3b);
f=f.filter(function(A){return A.resourceRelationships.filter(function(E){return E.category==="FOLLOWING"}).length>0}).sort(c3b);var k;(k=a.tabData[0].liteTasks)==null||k.next(e);var q;(q=a.tabData[1].liteTasks)==null||q.next(h);var v;(v=a.tabData[2].liteTasks)==null||v.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(yg(this.destroyed$)).subscribe(function(e){a.errorHandler.errorHandler(null,
e)})};Y(D7,Z);D7.\u0275dir=Z.\u0275dir;g=D7.prototype;g.ngOnInit=function(){var a=this;this.refreshData.pipe(yg(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 Yo(e)}));a.myTasksFridge.watchMany({maxTaskAgeDays:c,sources:Array.from(d),issueFilter:h2b(b)})})};g.toggleCollapsed=function(){this.prefsService.toggleCollapsed("mc-my-tasks")};g.isCollapsed=function(){return this.prefsService.isCollapsed("mc-my-tasks")};
g.ariaLabelForToggleButton=function(){return this.isCollapsed()?"Expand recent items section":"Collapse recent items section"};g.setNumDisplayedRows=function(a){this.numDisplayedRows=a.length>this.numDisplayedRows?a.length:10};g.onTabIndexChange=function(a){Snb(this.prefsService,"mc-my-tasks",a);this.numDisplayedRows=10;var b;this.analytics.trackEvent("missionControl","view",(b=this.tabData[a])==null?void 0:b.label);this.MY_TASK_FILTERS=a===0?this.ONLY_OWNED_TASK_FILTERS:this.MY_TASK_DEFAULT_FILTERS};
g.navigateToResource=function(a,b){if(!(a.defaultPrevented||a.type==="mouseup"&&a instanceof MouseEvent&&a.button!==1)){this.sendClickAnalytics(b);var c;a&&((c=a.target)==null?void 0:c.tagName)==="A"||(b.taskResourceType==="ISSUE"?(b=wr(b.taskId),b=Dq.viewIssue.makeHref(b),kn(a)?this.domSafe.openInNewTab(b):a&&a.shiftKey?Jq(this.domSafe,b):Mr(this.router,b)):this.domSafe.openInNewTab(b.externalLink))}};
g.copyIdOrLink=function(a){a.taskResourceType==="ISSUE"?(a=wr(a.taskId),this.clipboard.copy(a)):this.clipboard.copy(a.externalLink)};var K2b=function(a,b){a.isSavingManualSignal=!0;a.analytics.trackEvent("manualSignal","add","myTasksRow");var c=b.taskResourceType==="ISSUE"?3E3:0;uyc(a.tasksService,[b.taskId],!0).pipe(ng(c)).subscribe(function(){a.manualSignalTriggered.emit(b);a.isSavingManualSignal=!1},function(d){a.errorHandler.errorHandler(null,d);a.isSavingManualSignal=!1})};
D7.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)};D7.prototype.sendDmaAnalytics=function(){this.analytics.trackEvent("missionControl","click","dmaChip")};D7.prototype.getIds=function(a){return a.map(function(b){return b.issueId})};
var w2b=function(a){return a==="P0"||a==="P1"};D7.\u0275fac=function(a){return new (a||D7)};
D7.\u0275cmp=y({type:D7,selectors:[["my-tasks"]],inputs:{refreshData:"refreshData"},outputs:{manualSignalTriggered:"manualSignalTriggered"},standalone:!1,features:[Bg],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&&(J(0,"div",0)(1,"header",1)(2,"h3",2),R(3," Recent items "),K(),M(4,"mat-icon",3),J(5,"button",4),N("click",function(){return b.toggleCollapsed()}),M(6,"mat-icon",5),K()(),F(7,b3b,4,1,"div",6),K());a&2&&(uh("collapsed",
b.isCollapsed()),x(5),Lg("aria-label",b.ariaLabelForToggleButton()),x(2),G(b.isCollapsed()?-1:7))},dependencies:[FC,dO,yN,C7,x7,EL,z7,NO,ZT,oG,Jx,Kx,ON,IN,JN,KN,cP,XP,KP,QP,MP,JP,SP,LP,RP,NP,PP,OP,TP,VP,UP,WP,zG,xG,Tv],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 E7=function(){Z.call(this);var a=this;this.hostElement=r(Te);this.analytics=r(RE);this.userFeedback=r(rS);this.prefsService=r(nX);this.hatsService=r(cR);this.appSearchState=r(bX);this.activeSession=r(Bs);this.isInternalSession=this.activeSession.isInternalSession();this.HOTKEYS=sp;this.refreshAllMissionControlData=new tg;this.refreshNeedsAttentionData=new tg;this.captureAnyClick=function(b){b=DAa(b);for(var c=l(Object.entries(bld)),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(yg(this.destroyed$)).subscribe(function(){a.refreshNeedsAttentionData.next()})};Y(E7,Z);E7.\u0275dir=Z.\u0275dir;
E7.prototype.ngOnInit=function(){var a=this;setTimeout(function(){a.appSearchState.clear()});this.hostElement.nativeElement.addEventListener("click",this.captureAnyClick,!0);var b=l(cld(this)),c=b.next().value;b=b.next().value;this.analytics.trackEvent("missionControl","sections-on-load",c,b);tUc(this.hatsService,"u5xoTzKbb0g6pPHSLo10WcCoiLmK").pipe(yg(this.destroyed$)).subscribe()};
E7.prototype.ngOnDestroy=function(){Z.prototype.ngOnDestroy.call(this);this.hostElement.nativeElement.removeEventListener("click",this.captureAnyClick,!0)};var cld=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]};E7.prototype.refresh=function(){this.refreshAllMissionControlData.next()};
E7.\u0275fac=function(a){return new (a||E7)};
E7.\u0275cmp=y({type:E7,selectors:[["ng-component"]],standalone:!1,features:[Bg],decls:10,vars:5,consts:[[1,"a11y-only"],[1,"padded-s","flex-kids-y","gap-s","pos-fill","bg-off-main","overflow","overflow-on-print-media",3,"onHotkey","hotkey"],["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&&(J(0,"h2",0),R(1,"Mission Control"),K(),J(2,"div",1),N("onHotkey",function(){return b.refresh()}),D(3,e3b,3,0,"div",2),J(4,"section",3),M(5,"needs-attention-wrapper",4),K(),J(6,"section",5)(7,"my-tasks",6),N("manualSignalTriggered",function(){return b.refreshNeedsAttentionData.next()}),K()(),J(8,"section",7),M(9,"work-areas-wrapper-card",4),K()());a&2&&(x(2),I("hotkey",b.HOTKEYS.REFRESH_ISSUE_LIST),x(),I("ngIf",b.isInternalSession),x(2),I("refreshData",
b.refreshNeedsAttentionData),x(2),I("refreshData",b.refreshAllMissionControlData),x(2),I("refreshData",b.refreshAllMissionControlData))},dependencies:[Rv,oG,Jx,TX,B7,D7,RG],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 bld={"NEEDS-ATTENTION-WRAPPER":"needs-attention","MY-TASKS":"my-tasks","MY-TASKS-V1":"my-tasks","WORK-AREAS-WRAPPER-CARD":"work-areas"};var dld=function(){this.timeZones=r($J);this.label="Time zone";this.timezoneId="";this.fullWidth=this.disabled=!1;this.timezoneIdChange=new LE;this.timeZoneOptions$=EKc(this.timeZones).pipe(C(function(a){return a.sort(g3b)}))};dld.\u0275fac=function(a){return new (a||dld)};
dld.\u0275cmp=y({type:dld,selectors:[["b-timezone-picker"]],inputs:{label:"label",timezoneId:"timezoneId",disabled:"disabled",fullWidth:"fullWidth"},outputs:{timezoneIdChange:"timezoneIdChange"},standalone:!1,decls:7,vars:7,consts:[["appearance","outline",1,"form-field-wide-select"],[3,"ngModelChange","disabled","ngModel"],[3,"value"]],template:function(a,b){a&1&&(J(0,"mat-form-field",0)(1,"mat-label"),R(2),K(),J(3,"mat-select",1),N("ngModelChange",function(c){b.timezoneId!==c&&(b.timezoneId=c,b.timezoneIdChange.emit(b.timezoneId))}),
Pg(4,f3b,2,2,"mat-option",2,Og),U(6,"async"),K()());a&2&&(uh("full-width",b.fullWidth),x(2),T(" ",b.label," "),x(),I("disabled",b.disabled)("ngModel",b.timezoneId),x(),Qg(V(6,5,b.timeZoneOptions$)))},dependencies:[bP,My,Fy,jP,Bx,DM,dy,ky,Tv],styles:["[_nghost-%COMP%]     .mat-form-field-infix { width: fit-content; }","mat-form-field[_ngcontent-%COMP%] { font-size: 16px; }"]});var F7=function(){var a=this;this.dateFormatter=r(BK);this.destroyRef=r(Gg);this.frequency$=new Kn("weekly");this.ordinal$=new Kn(1);this.timeZoneId$=new Kn("America/Los_Angeles");this.timeOfDay$=new Kn({hours:9,minutes:0,seconds:0,nanos:0});this.ordinalOrZero$=Uf([this.frequency$,this.ordinal$]).pipe(C(function(b){var c=l(b);b=c.next().value;c=c.next().value;return b==="daily"?0:c}));this.frequencyChange=new LE;this.ordinalChange=new LE;this.timeOfDayChange=new LE;this.timeZoneIdChange=new LE;this.frequencyOptions=
eld;this.repeatOnOptions=new Map([["daily",[]],["weekly",fld],["monthly",gld]]);this.repeatAtOptions=hld.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=o3b};
F7.prototype.ngOnInit=function(){var a=this;this.frequency$.pipe(og(),vg(1),lp(this.destroyRef)).subscribe(function(b){a.frequencyChange.emit(b)});this.ordinal$.pipe(og(),vg(1),eg(function(b){return b!==0}),lp(this.destroyRef)).subscribe(function(b){a.ordinalChange.emit(b)});this.timeOfDay$.pipe(og(o3b),vg(1),lp(this.destroyRef)).subscribe(function(b){a.timeOfDayChange.emit(b)});this.timeZoneId$.pipe(og(),vg(1),lp(this.destroyRef)).subscribe(function(b){a.timeZoneIdChange.emit(b)})};
nd.Object.defineProperties(F7.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)}}});F7.\u0275fac=function(a){return new (a||F7)};
F7.\u0275cmp=y({type:F7,selectors:[["b-delivery-frequency-subform"]],inputs:{frequency:"frequency",ordinal:"ordinal",timeOfDay:"timeOfDay",timeZoneId:"timeZoneId"},outputs:{frequencyChange:"frequencyChange",ordinalChange:"ordinalChange",timeOfDayChange:"timeOfDayChange",timeZoneIdChange:"timeZoneIdChange"},standalone:!1,decls:8,vars:12,consts:[["appearance","outline",1,"full-width"],[3,"ngModelChange","ngModel"],[3,"value"],[3,"ngModelChange","ngModel","compareWith"],[3,"timezoneIdChange","timezoneId",
"fullWidth"]],template:function(a,b){a&1&&(F(0,i3b,7,1,"div"),U(1,"async"),F(2,k3b,7,1,"div"),U(3,"async"),F(4,m3b,7,2,"div"),U(5,"async"),F(6,n3b,2,2,"div"),U(7,"async"));if(a&2){var c,d,e,f;G((c=V(1,4,b.frequency$))?0:-1,c);x(2);G((d=V(3,6,b.ordinalOrZero$))?2:-1,d);x(2);G((e=V(5,8,b.timeOfDay$))?4:-1,e);x(2);G((f=V(7,10,b.timeZoneId$))?6:-1,f)}},dependencies:[dy,ky,bP,My,Fy,jP,Bx,DM,dld,Tv],encapsulation:2,changeDetection:0});
var eld=[{frequency:"daily",display:"Daily"},{frequency:"weekly",display:"Weekly"},{frequency:"monthly",display:"Monthly"}],fld=[{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"}],gld=[].concat(p(Array.from({length:31}).fill(0).keys())).map(function(a){var b=a+1,c=b%10,d=b%100;return{ordinal:a+1,display:c===1&&d!==11?String(b)+"st":
c===2&&d!==12?String(b)+"nd":c===3&&d!==13?String(b)+"rd":String(b)+"th"}}),hld=[].concat(p(Array.from({length:24}).fill(0).keys())).map(function(a){var b=new Date;b.setHours(a%24);b.setMinutes(0);return{date:b,timeOfDay:{hours:b.getHours(),minutes:0,seconds:0,nanos:0}}});var ild=["dialogContent"],G7=function(){var a=this;this.matDialog=r(RJ);this.fridge=r(n7);this.confirmationDialogService=r(YJ);this.destroyRef=r(Gg);this.init$=new Kn(!1);this.columnsToDisplay=["name","overflow-warning","actions"];this.refreshOwnedSubscriptions$=new Kn(void 0);this.ownedSubscriptions$=this.refreshOwnedSubscriptions$.pipe(xg(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 Kn(!1);var b=r(Jn);this.init$.pipe(eg(function(c){return c}),xg(function(){return b.queryParams}),eg(function(c){return c.subscriptionId}),xg(function(c){return a.fridge.watch(c.subscriptionId,{trustMemory:!1,trustUncertainMemory:!1})}),lp(this.destroyRef)).subscribe(function(c){c&&a.openDialog(c)})};G7.prototype.ngOnInit=function(){this.init$.next(!0)};G7.prototype.openDialog=function(a){this.dialogRef=this.matDialog.open(this.dialogContent,{data:a,width:"500px"})};
G7.prototype.setFrequency=function(a,b){a.frequency=b;a.ordinal=b==="daily"?0:1};G7.prototype.save=function(a){var b=this;this.isSaving$.next(!0);(a.id==="0"?this.fridge.create(a):this.fridge.update(a)).pipe(mg(1),lp(this.destroyRef)).subscribe(function(c){b.isSaving$.next(!1);b.refreshOwnedSubscriptions$.next();if(c.isOverflowing)jld(b,c);else{var d;(d=b.dialogRef)==null||d.close()}})};
var jld=function(a,b){b.query.endsWith(" created:30d")?a.confirmationDialogService.open({title:"Configurable alert returns too many results",content:Xi("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:Xi('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()}})};G7.prototype.openConfirmDeleteDialog=function(a){var b=this;this.confirmationDialogService.open({title:"Delete a configurable alert",content:Xi("Delete `"+a.displayName+"`?"),confirmButtonText:"Delete",isDestructive:!0,onConfirm:function(){b.fridge.delete(a.id).pipe(lp(b.destroyRef)).subscribe(function(){b.refreshOwnedSubscriptions$.next()})}})};
G7.\u0275fac=function(a){return new (a||G7)};
G7.\u0275cmp=y({type:G7,selectors:[["b-configurable-alert-settings"]],viewQuery:function(a,b){a&1&&hh(ild,7);if(a&2){var c;lh(c=mh())&&(b.dialogContent=c.first)}},standalone:!1,decls:13,vars:1,consts:[["showOwnedSubscriptions",""],["dialogContent",""],["subscriptionMenu","matMenu"],[1,"flex-kids-x","gap-l"],[1,"settings-main-left","margin-right"],[1,"heading-s"],[4,"ngTemplateOutlet"],["type","button","mat-flat-button","","color","primary",3,"click"],[1,"full-width"],["mat-table","","aria-label",
"Configurable alerts list",1,"bordered","full-width",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","overflow-warning"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","tabindex","0",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["svgIcon","warning","tabindex","0",1,"bad","vertical-centered",3,"matTooltip"],["type","button","mat-icon-button","","aria-label",
"Show actions for this subscription",3,"matMenuTriggerFor"],["svgIcon","more-settings-vertical"],["type","button","mat-menu-item","",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();J(0,"div",3)(1,"div",4)(2,"p",5);R(3,"Subscriptions");K()();J(4,"div");D(5,p3b,1,0,"ng-container",
6);J(6,"div")(7,"button",7);N("click",function(){u(c);return w(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}}))});R(8," Create configurable alert ");K()()()();D(9,z3b,13,3,"ng-template",null,0,Lh)(11,G3b,29,14,"ng-template",null,
1,Lh)}a&2&&(a=Q(10),x(5),I("ngTemplateOutlet",a))},dependencies:[Sv,FC,CC,Ui,dy,ky,oG,Jx,Kx,SJ,UJ,WJ,VJ,My,Fy,DM,FM,Uy,EG,FG,cP,XP,KP,QP,MP,JP,SP,NP,PP,TP,VP,pG,sG,qG,uG,zG,xG,pL,yN,F7,Tv],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 kld=function(a,b){this.name=a;this.resourceType=b;this.options=[]};kld.prototype.shouldDisplay=function(){return!0};kld.prototype.hasOptions=function(){return!1};kld.prototype.getDefaultOptionId=function(){return null};var H7=function(a,b){this.name=a;this.resourceType=b;this.options=[]};H7.prototype.shouldDisplay=function(){return this.options.length>0};H7.prototype.hasOptions=function(){return this.options.length>0};
H7.prototype.getDefaultOptionId=function(){return this.hasOptions()?this.options[0].id:null};
var lld=function(a,b){this.id=a;this.name=b},nld=function(a,b,c,d,e,f){var h=this;this.butterBar=a;this.sidebar=b;this.userPreferencesManager=c;this.cdr=d;this.appEvents=e;this.activeSession=f;this.selectedOptionId=null;this.subscriptions=new yf;this.missionControlMainOption=new kld("Home","MISSION_CONTROL");this.assignedToMeMainOption=new kld("Assigned to me","ASSIGNED_TO_ME");this.hotlistMainOption=new H7("Hotlist","HOTLIST");this.savedSearchMainOption=new H7("Saved search","SAVED_SEARCH");this.bookmarkGroupMainOption=
new H7("Bookmark group","BOOKMARK_GROUP");this.mainOptions=[this.assignedToMeMainOption,this.hotlistMainOption,this.savedSearchMainOption,this.bookmarkGroupMainOption];(this.isUserInternal()||OA(this.activeSession,"enableMissionControlInExternalEnvironments"))&&this.mainOptions.unshift(this.missionControlMainOption);a={};this.resourceMainOptions=(a.MISSION_CONTROL=this.missionControlMainOption,a.ASSIGNED_TO_ME=this.assignedToMeMainOption,a.HOTLIST=this.hotlistMainOption,a.SAVED_SEARCH=this.savedSearchMainOption,
a.BOOKMARK_GROUP=this.bookmarkGroupMainOption,a);this.selectedMainOption=this.mainOptions[0];mld(this);this.subscriptions.add(this.appEvents.sidebarUpdated.subscribe(function(){mld(h);h.cdr.detectChanges()}));this.subscriptions.add(this.userPreferencesManager.preferences$.subscribe(function(k){k.homepagePreferences&&(k=k.homepagePreferences,k.resourceType?h.selectedMainOption=h.resourceMainOptions[k.resourceType]||h.mainOptions[0]:h.isUserInternal()||OA(h.activeSession,"enableMissionControlInExternalEnvironments")?
h.selectedMainOption=h.missionControlMainOption:h.selectedMainOption=h.assignedToMeMainOption,h.selectedOptionId=k.resourceId||null,mld(h))}))};nld.prototype.destroy=function(){this.subscriptions.unsubscribe()};
var K3b=function(a){Kq(a.butterBar,"Saving preferences...",0);var b={resourceType:a.selectedMainOption.resourceType};a.selectedMainOption.hasOptions()&&a.selectedOptionId&&(b.resourceId=a.selectedOptionId);zzc(a.userPreferencesManager,b).subscribe(function(){Kq(a.butterBar,"Preferences saved.",4E3)})},mld=function(a){function b(c){return new lld(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 lld(String(a.selectedOptionId),a.selectedMainOption.name+" "+a.selectedOptionId)))};nld.prototype.isUserInternal=function(){return this.activeSession.isInternalSession()};var I7=function(){Z.call(this);this.cdr=r(NE,{self:!0});this.userPreferencesManager=r(iG);this.butterBar=r(GJ);this.activeSession=r(Bs);this.documentationLinks=r(JJ);this.analytics=r(RE);this.sidebar=r(MY);this.appEvents=r(FB);this.constants=r(dK);this.IS_INTERNAL_USER=this.activeSession.isInternalSession();this.ENABLE_MISSION_CONTROL_IN_EXTERNAL_ENVIRONMENTS=OA(this.activeSession,"enableMissionControlInExternalEnvironments");this.dateFormats=[{value:"MMM d, yyyy",label:"Dec 31, 2015"},{value:"EE MMM dd, yyyy",
label:"Thu Dec 31, 2015"},{value:"yyyy-MM-dd",label:"2015-12-31"},{value:"MM/dd/yyyy",label:"12/31/2015"},{value:"dd-MM-yyyy",label:"31-12-2015"},{value:"dd.MM.yyyy",label:"31.12.2015"}];this.timeFormats=[{value:"hh:mma",label:"01:00PM"},{value:"h:mma",label:"1:00PM"},{value:"HH:mm",label:"13:00"},{value:"HH:mm:ss",label:"13:00:01"}];this.timeZones=[];this.showForcePlainTextSettings=(this.enableLiteralModeRevisions=OA(this.activeSession,"enableLiteralModeRevisions"))&&this.activeSession.isInternalSession();
this.appName=this.activeSession.getAppName();this.timeZones.push.apply(this.timeZones,p(this.constants.supportedTimeZones.map(function(a){return{value:a.id,label:a.name}})));this.sloEnabled=this.activeSession.isInternalSession();this.showBugScreensaverSetting=this.activeSession.isInternalSession();this.showInlineImagesSetting=this.activeSession.isInternalSession()};Y(I7,Z);I7.\u0275dir=Z.\u0275dir;
I7.prototype.ngOnInit=function(){var a=this;this.destroyed$.subscribe(function(){var b;(b=a.preferredHomepage)==null||b.destroy()});this.preferredHomepage=new nld(this.butterBar,this.sidebar,this.userPreferencesManager,this.cdr,this.appEvents,this.activeSession);this.userPreferencesManager.preferences$.pipe(yg(this.destroyed$)).subscribe(function(b){a.userPreferences=b;a.cdr.detectChanges()})};
I7.prototype.save=function(a,b,c){var d=this;Kq(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){Kq(d.butterBar,"Preferences saved.",4E3)});this.analytics.trackEvent("preferences",a,b,c)};
var Q3b=function(a){var b;return((b=a.userPreferences.textDisplayPreferences)==null?void 0:b.commentDisplayOverride)==="LITERAL_FORMATTING_MODE"},T3b=function(a){var b;return((b=a.userPreferences.commentFormattingPreferences)==null?void 0:b.commentDisplayOverride)==="LITERAL_FORMATTING_MODE"},U3b=function(a){var b;return((b=a.userPreferences.commentFormattingPreferences)==null?void 0:b.commentCreateOverride)==="LITERAL_FORMATTING_MODE"};
I7.prototype.getShowInlineImages=function(){var a;return(a=this.userPreferences.showInlineImages)!=null?a:!1};nd.Object.defineProperties(I7.prototype,{hideBadgeInNav:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this.userPreferences)==null?0:(b=a.missionControlPreferences)==null?0:b.hideBadgeInNav)}}});I7.\u0275fac=function(a){return new (a||I7)};
I7.\u0275cmp=y({type:I7,selectors:[["b-general-settings"]],standalone:!1,features:[Fh([NE]),Bg],decls:73,vars:13,consts:[[1,"flex-kids-x","gap-l","margin-bottom"],[1,"settings-main-left","margin-right"],[1,"heading-s"],[1,"muted","type-s"],["target","_blank",3,"href"],["appearance","outline"],["matTooltip","Current selection for preferred homepage"],["id","bv2-homepage-pref-selection",3,"ngModelChange","selectionChange","ngModel"],[1,"margin-y"],["id","bv2-datetime-pref-date-formatting","appearance",
"outline"],["matTooltip","Date/time formatting - Use this format for calendar dates."],[3,"ngModelChange","selectionChange","ngModel"],[3,"value"],["id","bv2-datetime-pref-time-formatting","appearance","outline"],["matTooltip","Date/time formatting - Use this format for times."],["id","bv2-datetime-pref-timezone","appearance","outline"],["matTooltip","Date/time formatting - Format dates and times with respect to this time zone."],["id","bv2-enable-all-hotkeys",3,"change","checked"],[1,"margin-bottom"],
["id","bv2-force-code-font"],[1,"bv2-settings-preferred-homepage-main-option-select-item",3,"value"],["id","bv2-homepage-pref-suboption-selection",1,"homepage-option-select",3,"ngModelChange","selectionChange","ngModel"],[1,"bv2-settings-preferred-homepage-option-select-item",3,"value"],["id","hide-nav-badge",3,"change","checked"],["id","bv2-force-plain-text",3,"change","checked"],["id","bv2-show-inline-images",3,"change","checked"],["id","bv2-force-display-plain-text",3,"change","checked"],["id",
"bv2-force-create-plain-text",3,"change","checked"],["id","bv2-bug-screensaver",3,"change","checked"]],template:function(a,b){a&1&&(J(0,"div")(1,"div",0)(2,"div",1)(3,"p",2),R(4,"Preferred homepage"),K(),J(5,"p",3),R(6," Select your preferred homepage when first opening the app. "),J(7,"a",4),R(8," Learn more "),K()()(),J(9,"div")(10,"div")(11,"mat-form-field",5)(12,"mat-label",6),R(13," Current selection "),K(),J(14,"mat-select",7),Ah("ngModelChange",function(c){zh(b.preferredHomepage.selectedMainOption,
c)||(b.preferredHomepage.selectedMainOption=c);return c}),N("selectionChange",function(){var c=b.preferredHomepage;c.selectedOptionId=c.selectedMainOption.getDefaultOptionId();K3b(c);c.cdr.detectChanges()}),Pg(15,I3b,1,1,null,null,Og),K()(),F(17,L3b,4,1,"mat-form-field",5),K(),F(18,M3b,3,1,"div"),K()(),M(19,"hr",8),J(20,"div",0)(21,"div",1)(22,"p",2),R(23,"Date/time formatting settings"),K(),J(24,"p",3),R(25," Select how you want dates and times to be formatted. "),J(26,"a",4),R(27," Learn more "),
K()()(),J(28,"div")(29,"div")(30,"mat-form-field",9)(31,"mat-label",10),R(32," Dates "),K(),J(33,"mat-select",11),Ah("ngModelChange",function(c){zh(b.userPreferences.dateTimePreferences.calendarFormat,c)||(b.userPreferences.dateTimePreferences.calendarFormat=c);return c}),N("selectionChange",function(){return b.save("saveDateTimePreferences")}),Pg(34,N3b,2,2,"mat-option",12,Og),K()()(),J(36,"div")(37,"mat-form-field",13)(38,"mat-label",14),R(39," Times "),K(),J(40,"mat-select",11),Ah("ngModelChange",
function(c){zh(b.userPreferences.dateTimePreferences.timeFormat,c)||(b.userPreferences.dateTimePreferences.timeFormat=c);return c}),N("selectionChange",function(){return b.save("saveDateTimePreferences")}),Pg(41,O3b,2,2,"mat-option",12,Og),K()()(),J(43,"div")(44,"mat-form-field",15)(45,"mat-label",16),R(46," Time Zones "),K(),J(47,"mat-select",11),Ah("ngModelChange",function(c){zh(b.userPreferences.dateTimePreferences.timeZone,c)||(b.userPreferences.dateTimePreferences.timeZone=c);return c}),N("selectionChange",
function(){return b.save("saveDateTimePreferences")}),Pg(48,P3b,2,2,"mat-option",12,Og),K()()()()(),M(50,"hr",8),J(51,"div",0)(52,"div",1)(53,"p",2),R(54,"Keyboard settings"),K()(),J(55,"div")(56,"div")(57,"mat-slide-toggle",17),N("change",function(c){b.userPreferences.keyboardPreferences.enableAllHotkeys=c.checked;return b.save("saveKeyboardPreferences")}),R(58," Enable all hotkeys "),K()()()(),M(59,"hr",8),J(60,"div",0)(61,"div",1)(62,"p",2),R(63,"Display settings"),K()(),J(64,"div"),F(65,R3b,3,
1,"div",18),J(66,"div",18)(67,"b-toggle-code-font",19),R(68," Force comments to display with code font "),K()(),F(69,S3b,3,1,"div",18),K()(),F(70,V3b,12,2),M(71,"hr",8),F(72,W3b,8,1,"div",0),K());a&2&&(x(7),I("href",b.documentationLinks.baseDocumentationUrl+"/guides/set-a-homepage",hf),x(7),yh("ngModel",b.preferredHomepage.selectedMainOption),x(),Qg(b.preferredHomepage.mainOptions),x(2),G(b.preferredHomepage.selectedMainOption.hasOptions()?17:-1),x(),G(b.IS_INTERNAL_USER||b.ENABLE_MISSION_CONTROL_IN_EXTERNAL_ENVIRONMENTS?
18:-1),x(8),I("href",b.documentationLinks.baseDocumentationUrl+"/guides/set-date-time-formatting",hf),x(7),yh("ngModel",b.userPreferences.dateTimePreferences.calendarFormat),x(),Qg(b.dateFormats),x(6),yh("ngModel",b.userPreferences.dateTimePreferences.timeFormat),x(),Qg(b.timeFormats),x(6),yh("ngModel",b.userPreferences.dateTimePreferences.timeZone),x(),Qg(b.timeZones),x(9),I("checked",b.userPreferences.keyboardPreferences.enableAllHotkeys),x(8),G(b.enableLiteralModeRevisions?-1:65),x(4),G(b.showInlineImagesSetting?
69:-1),x(),G(b.showForcePlainTextSettings?70:-1),x(2),G(b.showBugScreensaverSetting?72:-1))},dependencies:[dy,ky,bP,My,Fy,jP,Bx,DM,EG,FG,zG,xG,n6],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 J7=function(){Z.call(this);var a=this;this.userPreferencesManager=r(iG);this.butterBar=r(GJ);this.documentationLinks=r(JJ);this.analytics=r(RE);this.priorities=["ALL","IMPORTANT","CLOSURE_ONLY","MINIMAL"];this.userPreferencesManager.preferences$.pipe(yg(this.destroyed$)).subscribe(function(b){a.userPreferences=b})};Y(J7,Z);J7.\u0275dir=Z.\u0275dir;
J7.prototype.save=function(a,b,c){var d=this;Kq(this.butterBar,"Saving preferences...",0);this.userPreferencesManager.save(this.userPreferences).subscribe(function(){Kq(d.butterBar,"Preferences saved.",4E3)});this.analytics.trackEvent("preferences",a,b,c)};J7.\u0275fac=function(a){return new (a||J7)};
J7.\u0275cmp=y({type:J7,selectors:[["b-notification-settings"]],standalone:!1,features:[Bg],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&&(J(0,"div",0)(1,"div",1)(2,"p",2),R(3,"Notification settings"),K(),J(4,"p",3),R(5," Select the level of email you want to receive for each issue role. "),J(6,"a",4),R(7," Learn more "),K()()(),J(8,"div")(9,"div")(10,"mat-form-field",5)(11,"mat-label",6),R(12," Assignee "),K(),J(13,"mat-select",7),Ah("ngModelChange",
function(c){zh(b.userPreferences.notificationPreferences.assignedPriority,c)||(b.userPreferences.notificationPreferences.assignedPriority=c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Pg(14,X3b,3,4,"mat-option",8,Og),K()()(),J(16,"div")(17,"mat-form-field",9)(18,"mat-label",10),R(19," Reporter "),K(),J(20,"mat-select",7),Ah("ngModelChange",function(c){zh(b.userPreferences.notificationPreferences.reportedPriority,c)||(b.userPreferences.notificationPreferences.reportedPriority=
c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Pg(21,Y3b,3,4,"mat-option",8,Og),K()()(),J(23,"div")(24,"mat-form-field",11)(25,"mat-label",12),R(26," Verifier "),K(),J(27,"mat-select",7),Ah("ngModelChange",function(c){zh(b.userPreferences.notificationPreferences.verifiedPriority,c)||(b.userPreferences.notificationPreferences.verifiedPriority=c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Pg(28,Z3b,3,4,"mat-option",
8,Og),K()()(),J(30,"div")(31,"mat-form-field",13)(32,"mat-label",14),R(33," Collaborator "),K(),J(34,"mat-select",7),Ah("ngModelChange",function(c){zh(b.userPreferences.notificationPreferences.collaboratorPriority,c)||(b.userPreferences.notificationPreferences.collaboratorPriority=c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Pg(35,$3b,3,4,"mat-option",8,Og),K()()(),J(37,"div")(38,"mat-form-field",15)(39,"mat-label",16),R(40," CC'd "),K(),J(41,"mat-select",
7),Ah("ngModelChange",function(c){zh(b.userPreferences.notificationPreferences.ccdPriority,c)||(b.userPreferences.notificationPreferences.ccdPriority=c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Pg(42,a4b,3,4,"mat-option",8,Og),K()()(),J(44,"div")(45,"mat-form-field",17)(46,"mat-label",18),R(47," Starred "),K(),J(48,"mat-select",7),Ah("ngModelChange",function(c){zh(b.userPreferences.notificationPreferences.starredPriority,c)||(b.userPreferences.notificationPreferences.starredPriority=
c);return c}),N("selectionChange",function(){return b.save("saveNotificationPreferences")}),Pg(49,b4b,3,4,"mat-option",8,Og),K()()(),J(51,"div")(52,"mat-slide-toggle",19),N("change",function(c){b.userPreferences.notificationPreferences.excludeChangesByMe=c.checked;return b.save("saveNotificationPreferences")}),R(53," Exclude edits made by you "),K()()()());a&2&&(x(6),I("href",b.documentationLinks.baseDocumentationUrl+"/concepts/settings#email",hf),x(7),yh("ngModel",b.userPreferences.notificationPreferences.assignedPriority),
x(),Qg(b.priorities),x(6),yh("ngModel",b.userPreferences.notificationPreferences.reportedPriority),x(),Qg(b.priorities),x(6),yh("ngModel",b.userPreferences.notificationPreferences.verifiedPriority),x(),Qg(b.priorities),x(6),yh("ngModel",b.userPreferences.notificationPreferences.collaboratorPriority),x(),Qg(b.priorities),x(6),yh("ngModel",b.userPreferences.notificationPreferences.ccdPriority),x(),Qg(b.priorities),x(6),yh("ngModel",b.userPreferences.notificationPreferences.starredPriority),x(),Qg(b.priorities),
x(3),I("checked",b.userPreferences.notificationPreferences.excludeChangesByMe))},dependencies:[dy,ky,bP,My,Fy,jP,Bx,DM,EG,FG,zG,xG,mNc],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 old=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,old.messageId)};Y(old,n);old.prototype.getSubscriptionsList=function(){return Sj(this,cp,1,Bj(),Nc)};old.messageId="b.ListSloReportSubscriptionsResponse";var K7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,K7.messageId)};Y(K7,n);K7.prototype.getSubscription=function(){return W(this,cp,1,Nc)};K7.prototype.setSubscription=function(a){return X(this,cp,1,a,Nc)};K7.messageId="b.SloReportSubscriptionRequest";var L7=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,0,L7.messageId)};Y(L7,n);L7.prototype.getSubscription=function(){return W(this,cp,1,Nc)};L7.prototype.setSubscription=function(a){return X(this,cp,1,a,Nc)};L7.messageId="b.SloReportSubscriptionResponse";var M7=function(){this.executor=r(PA)};g=M7.prototype;g.get=function(a){return this.executor.get({url:"action/slo_report_subscriptions/"+a,responseConstructor:L7}).pipe(C(function(b){if(b=b.getSubscription())return xJa(b);throw Error("xf");}))};g.list=function(){return this.executor.get({url:"action/slo_report_subscriptions",responseConstructor:old}).pipe(C(function(a){return a.getSubscriptionsList().map(xJa)}))};
g.create=function(a){if(a.id!==0)throw Error("yf");return this.executor.post({url:"action/slo_report_subscriptions",body:(new K7).setSubscription(yJa(a)),responseConstructor:L7}).pipe(C(function(b){if(b=b.getSubscription())return xJa(b);throw Error("vf");}))};
g.update=function(a){if(a.id===0)throw Error("zf");return this.executor.post({url:"action/slo_report_subscriptions/"+a.id,body:(new K7).setSubscription(yJa(a)),responseConstructor:L7}).pipe(C(function(b){if(b=b.getSubscription())return xJa(b);throw Error("vf");}))};g.delete=function(a){return this.executor.delete({url:"action/slo_report_subscriptions/"+a,responseConstructor:$A}).pipe(C(function(){}))};M7.\u0275fac=function(a){return new (a||M7)};M7.\u0275prov=Cd({token:M7,factory:M7.\u0275fac,providedIn:"root"});var pld=["sloSubscriptionDialog"],N7=function(){Z.apply(this,arguments);var a=this;this.dateFormatter=r(BK);this.api=r(M7);this.currentUser=r(qZ);this.dialog=r(RJ);this.timeZones=r($J);this.confirmationDialogService=r(YJ);this.principalTypes=r(FF);this.analytics=r(RE);this.butterBar=r(GJ);this.constants=r(dK);this.activeSession=r(Bs);this.enablePeoplekitAc=OA(this.activeSession,"enablePeoplekitUserAc");this.subscriptions$=new Kn([]);this.isBasicMode$=this.subscriptions$.pipe(C(function(b){return b.length===
0||b.length===1&&b[0].lead.emailAddress===a.currentUser.email}));this.userSubscription$=this.subscriptions$.pipe(C(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:qld[9].timeOfDay,daysRemaining:0,types:["BUG","CUSTOMER_ISSUE","VULNERABILITY","PRIVACY_ISSUE"],sloIds:[]}}));this.isThinking$=
new Kn(!1);this.inputHasFocus=!1;this.repeatAtOptions$=Uf(qld.map(function(b){return Nf(a.dateFormatter.format("HH:mma",void 0,b.date)).pipe(C(function(c){return{timeOfDay:b.timeOfDay,display:c}}))}));this.ceoSelected=this.dialogInvalidEmailFormat=!1;this.emailToUser=Dj;this.columns=["scope","frequency","actions"];this.frequencyDisplayMap=new Map(rld.map(function(b){return[b.frequency,b.display]}));this.timeZoneDisplayMap$=EKc(this.timeZones).pipe(mg(1),C(function(b){return new Map(b.map(function(c){return[c.id,
c.displayName]}))}),ug({bufferSize:1,refCount:!0}));this.hourOfDayDisplayMap$=this.repeatAtOptions$.pipe(mg(1),C(function(b){return new Map(b.map(function(c){return[c.timeOfDay.hours,c.display]}))}),ug({bufferSize:1,refCount:!0}));this.typeChoices=[{value:"BUG",displayText:this.constants.issueTypesDisplayNames.get("BUG")},{value:"CUSTOMER_ISSUE",displayText:this.constants.issueTypesDisplayNames.get("CUSTOMER_ISSUE")},{value:"PRIVACY_ISSUE",displayText:this.constants.issueTypesDisplayNames.get("PRIVACY_ISSUE")},
{value:"VULNERABILITY",displayText:this.constants.issueTypesDisplayNames.get("VULNERABILITY")},{value:"PROCESS",displayText:this.constants.issueTypesDisplayNames.get("PROCESS")},{value:"INTERNAL_CLEANUP",displayText:this.constants.issueTypesDisplayNames.get("INTERNAL_CLEANUP")},{value:"FEATURE_REQUEST",displayText:this.constants.issueTypesDisplayNames.get("FEATURE_REQUEST")},{value:"MILESTONE",displayText:this.constants.issueTypesDisplayNames.get("MILESTONE")},{value:"FEATURE",displayText:this.constants.issueTypesDisplayNames.get("FEATURE")},
{value:"PROJECT",displayText:this.constants.issueTypesDisplayNames.get("PROJECT")},{value:"EPIC",displayText:this.constants.issueTypesDisplayNames.get("EPIC")},{value:"STORY",displayText:this.constants.issueTypesDisplayNames.get("STORY")},{value:"TASK",displayText:this.constants.issueTypesDisplayNames.get("TASK")}]};Y(N7,Z);N7.\u0275dir=Z.\u0275dir;N7.prototype.ngOnInit=function(){O7(this)};
var k4b=function(a){a.userSubscription$.pipe(mg(1),xg(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(){O7(a)})},O7=function(a){a.isThinking$.next(!0);a.api.list().pipe(mg(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)})},As=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");O7(a);a.newSloId=void 0},function(c){c.status===404&&(a.butterBar.showWarning("Subscription does not exist"),O7(a))})},sld=function(a,b){a.isThinking$.next(!0);a.api.delete(b.id).subscribe(function(){a.analytics.trackEvent("sloReports","deleteSubscription");O7(a)})};g=N7.prototype;
g.openConfirmDeleteDialog=function(a){var b=this;this.confirmationDialogService.open({title:"Delete a subscription",content:Xi("You will no longer receive reports from '"+a.lead.emailAddress+"'."),confirmButtonText:"Delete",isDestructive:!0,onConfirm:function(){sld(b,a)}})};g.setFrequency=function(a,b){b.frequency=a;a!=="daily"?b.ordinal=1:delete b.ordinal;As(this,b)};g.setTimeZone=function(a,b){As(this,Object.assign({},b,{timeZone:Object.assign({},b.timeZone,{id:a})}))};
g.setDaysRemaining=function(a){if(this.inputDaysRemaining!==a.daysRemaining){var b;As(this,Object.assign({},a,{daysRemaining:(b=this.inputDaysRemaining)!=null?b:0}))}};g.setIssueType=function(a,b){As(this,Object.assign({},b,{types:a}))};
var i4b=function(a,b){a.newSloId&&!b.sloIds.includes(a.newSloId)&&As(a,Object.assign({},b,{sloIds:[].concat(p(b.sloIds),[a.newSloId])}))},f4b=function(a,b,c){if(b.sloIds.includes(c)){var d=b.sloIds.filter(function(e){return e!==c});As(a,Object.assign({},b,{sloIds:d}))}},G4b=function(a,b){a.newSloId&&!b.sloIds.includes(a.newSloId)&&(b.sloIds.push(a.newSloId),a.newSloId=void 0)},D4b=function(a,b){if(a.sloIds.includes(b)){var c=a.sloIds.filter(function(d){return d!==b});a.sloIds=c}};
N7.prototype.openDialog=function(a){this.sloSubscriptionDialog&&(a||(a={id:0,frequency:"weekly",ordinal:1,timeZone:{id:"America/Los_Angeles"},timeOfDay:qld[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:hj(a),panelClass:"slo-report-subscription-dialog",width:"500px"}))};
var H4b=function(a,b){return z(function(c){if(c.nextAddress==1)return a.dialogRef&&b.lead!==void 0?B(c,tld(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");O7(a)}):As(a,b);a.dialogRef.close();Lf(c)})},tld=function(a,b){var c;
return z(function(d){if(d.nextAddress==1)return pl(b)?B(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))})};N7.\u0275fac=function(){var a;return function(b){return(a||(a=Re(N7)))(b||N7)}}();
N7.\u0275cmp=y({type:N7,selectors:[["b-slo-reports-settings"]],viewQuery:function(a,b){a&1&&hh(pld,7);if(a&2){var c;lh(c=mh())&&(b.sloSubscriptionDialog=c.first)}},standalone:!1,features:[Bg],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,"asMatInput","email","required","placeholder"],["matInput","","required",
"","placeholder","Search users...",3,"ngModel","bContactAutocomplete"],["matInput","","type","number",3,"ngModelChange","ngModel"],["appearance","outline","subscriptSizing","dynamic",1,"full-width"],["id","new-subscription-note",1,"italic"],"href http://go/issue-slo-reports target _blank aria-describedby new-subscription-note".split(" "),"type button mat-button  color primary matDialogClose ".split(" "),[3,"emailChange","asMatInput","email","required","placeholder"],["matInput","","required","","placeholder",
"Search users...",3,"ngModelChange","ngModel","bContactAutocomplete"]],template:function(a,b){if(a&1){var c=t();F(0,m4b,11,3);U(1,"async");J(2,"div",2)(3,"div",3)(4,"p",4);R(5,"Advanced settings");K();J(6,"p",5);R(7," Add subscriptions to receive other user's reports. ");J(8,"a",6);R(9,"Learn more");K()()();J(10,"div",7)(11,"div",8)(12,"button",9);U(13,"async");N("click",function(){u(c);return w(b.openDialog())});R(14," Create subscription ");K()();F(15,n4b,1,0,"b-spinner");U(16,"async");F(17,x4b,
12,3,"table",10);U(18,"async");U(19,"async");K()();D(20,I4b,43,13,"ng-template",null,0,Lh)}a&2&&(G(V(1,4,b.isBasicMode$)?0:-1),x(12),I("disabled",V(13,6,b.isThinking$)),x(3),G(V(16,8,b.isThinking$)?15:-1),x(2),G(V(18,10,b.isBasicMode$)||V(19,12,b.isThinking$)?-1:17))},dependencies:[FC,Ui,my,dy,vy,ky,oG,Jx,Kx,SJ,UJ,WJ,VJ,bP,My,Fy,Ey,Dy,jP,Bx,DM,FM,Uy,EG,FG,cP,XP,KP,QP,MP,JP,SP,NP,PP,TP,VP,pG,sG,qG,uG,zG,xG,yN,zI,aV,F7,Tv],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 rld=[{frequency:"daily",display:"Daily"},{frequency:"weekly",display:"Weekly"},{frequency:"monthly",display:"Monthly"}],r4b=[{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"}],qld=[].concat(p(Array.from({length:24}).fill(0).keys())).map(function(a){var b=new Date;b.setHours(a%24);b.setMinutes(0);return{date:b,timeOfDay:{hours:b.getHours(),
minutes:0,seconds:0,nanos:0}}});var P7=function(){this.activeSession=r(Bs);this.location=r(DH);this.routeParams=r(EK);this.enableSloReportEmail=this.activeSession.isInternalSession()&&OA(this.activeSession,"enableSloReportEmail");this.selectedTabIndex=0};P7.prototype.ngAfterViewInit=function(){this.selectedTabIndex=uld(this,this.routeParams.settingsTab)};
P7.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(Dq.settingsTab.makeHref(d)):this.location.setUrl(Dq.settings.makeHref())}};var uld=function(a,b){a=a.tabs.toArray().findIndex(function(c){return c.id===b});return a<0?0:a};P7.\u0275fac=function(a){return new (a||P7)};
P7.\u0275cmp=y({type:P7,selectors:[["b-settings"]],viewQuery:function(a,b){a&1&&hh(JN,5);if(a&2){var c;lh(c=mh())&&(b.tabs=c)}},standalone:!1,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&&(J(0,"p",0),R(1,"Settings"),
K(),J(2,"mat-tab-group",1),N("selectedIndexChange",function(c){return b.tabChange(c)}),J(3,"mat-tab",2),D(4,J4b,2,0,"ng-template",3),K(),J(5,"mat-tab",4),D(6,K4b,2,0,"ng-template",3),K(),J(7,"mat-tab",5),D(8,L4b,2,0,"ng-template",3),K(),F(9,N4b,2,0,"mat-tab",6),K());a&2&&(x(2),I("selectedIndex",b.selectedTabIndex),x(7),G(b.enableSloReportEmail?9:-1))},dependencies:[ON,FN,JN,KN,I7,J7,N7,G7],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 vld=function(){this.activatedRoute=r(Jn);this.routeParams=r(EK);this.issueId=this.routeParams.issueId;this.attachmentId=this.routeParams.attachmentId;this.mimeType=tLa(this.activatedRoute.snapshot.queryParamMap).mimeType};vld.\u0275fac=function(a){return new (a||vld)};
vld.\u0275cmp=y({type:vld,selectors:[["view-attachment-page"]],standalone:!1,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:[BS],encapsulation:2});var Q7=function(){Z.apply(this,arguments);this.cdr=r(NE,{self:!0});this.routeParams=r(EK);this.bLocation=r(DH);this.pageTitle=r(EY);this.userApi=r(bD);this.bookmarkGroupsApi=r(iB);this.paths=r(oN);this.appEvents=r(FB);this.activeSession=r(Bs);this.isStarred=!1;this.userEmail=this.activeSession.getUserEmail();this.bookmarkGroup=null};Y(Q7,Z);Q7.\u0275dir=Z.\u0275dir;g=Q7.prototype;
g.ngOnInit=function(){var a=this,b=function(c){a.bookmarkGroup=c;a.userIsAdmin=c.adminUsers.some(function(d){return d.emailAddress===a.userEmail});a.pageTitle.setTitle(c.name);a.cdr.detectChanges()};this.bookmarkGroupsApi.get(this.routeParams.groupId).then(b);this.userApi.getUserBookmark("BOOKMARK_GROUP",this.routeParams.groupId).then(function(){a.isStarred=!0;a.cdr.detectChanges()}).catch(function(){});this.subscriptions.add(this.appEvents.bookmarkGroupModified.subscribe(function(c){c&&a.bookmarkGroup&&
c.bookmarkGroupId==a.bookmarkGroup.bookmarkGroupId&&a.bookmarkGroupsApi.get(a.routeParams.groupId).then(b)}))};g.toggleStar=function(){var a=this;this.isStarred=!this.isStarred;var b=function(){a.appEvents.bookmarkGroupModified.next()};this.isStarred?this.userApi.addUserBookmark({resourceType:"BOOKMARK_GROUP",resourceId:this.bookmarkGroup.bookmarkGroupId}).then(b):this.userApi.removeUserBookmark({resourceType:"BOOKMARK_GROUP",resourceId:this.bookmarkGroup.bookmarkGroupId}).then(b)};
g.openEditBookmarkGroup=function(){this.bLocation.setUrl(this.paths.editBookmarkGroup(this.bookmarkGroup.bookmarkGroupId))};g.getUserEmail=function(){return this.userEmail};g.isEditable=function(){return!!this.bookmarkGroup&&!!this.userIsAdmin};g.getUrl=function(a){switch(a.resourceType){case "SAVED_SEARCH":return this.paths.viewSavedSearch(a.savedSearchId);case "HOTLIST":return Dq.viewHotlist.makeHref(a.hotlistId);default:throw Error("Af`"+a.resourceType);}};
g.getDisplayName=function(a){if(a.name)return a.name;switch(a.resourceType){case "SAVED_SEARCH":return"(Saved Search ID "+a.savedSearchId+")";case "HOTLIST":return"(Hotlist ID "+a.hotlistId+")";default:throw Error("Af`"+a.resourceType);}};Q7.\u0275fac=function(){var a;return function(b){return(a||(a=Re(Q7)))(b||Q7)}}();
Q7.\u0275cmp=y({type:Q7,selectors:[["view-bookmark-group-page"]],standalone:!1,features:[Fh([NE]),Bg],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&&(J(0,"h2",0),R(1),K(),M(2,"div",1),J(3,"div",2),F(4,R4b,13,3,"div"),K());a&2&&(x(),T("View Bookmark Group ",b.bookmarkGroup==null?null:b.bookmarkGroup.name),x(2),Lg("aria-busy",!b.bookmarkGroup),x(),G(b.bookmarkGroup?4:-1))},dependencies:[fS,zG,xG],encapsulation:2});var R7=function(){};
R7.\u0275fac=function(a){return new (a||R7)};R7.\u0275mod=uf({type:R7});R7.\u0275inj=Dd({imports:[HC,gY,CG]});var S7=function(){H6.apply(this,arguments);this.ngZone=r(Ph);this.userApi=r(bD);this.hotlists=r(B1);this.hotkeys=r(PG);this.pageTitle=r(EY);this.userAccess=r(AD);this.routeParams=r(EK);this.mcPrefs=r(nX);this.ANALYTICS_CATEGORY="hotlistIssues";this.canAppend=this.isAdmin=this.isStarred=!1;this.hotlistId=this.routeParams.hotlistId;this.hotlist=null;this.isLoading=!0;this.repositioning=this.showHotlists=!1};Y(S7,H6);S7.\u0275dir=H6.\u0275dir;
S7.prototype.ngOnInit=function(){var a=this;H6.prototype.ngOnInit.call(this);this.subscriptions.add(QG(this.hotkeys,{title:"Hotlist",hotkeys:[].concat(p(this.BASE_HOTKEYS),[{keys:[qp("j")],displayAs:"Shift+j",description:"Move the current issue down (when sorting by POS)",onPress:function(){wld(a,1)}},{keys:[qp("k")],displayAs:"Shift+k",description:"Move the current issue up (when sorting by POS)",onPress:function(){wld(a,-1)}}])}));this.subscriptions.add(this.appEvents.hotlistChanged.subscribe(function(b){b&&
Number(b.hotlistId)===Number(a.hotlistId)&&b.origin!=="view-hotlist"&&xld(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)};
S7.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)}};
S7.prototype.loadUserAccess=function(a){var b=this;BD(this.userAccess,"admin","hotlists/"+a).then(function(c){b.isAdmin=c},function(c){b.errorHandler.errorHandler(null,c)});BD(this.userAccess,"appender","hotlists/"+a).then(function(c){b.canAppend=c},function(c){b.errorHandler.errorHandler(null,c)})};
S7.prototype.getIssues=function(){var a=this;this.searchResults=null;this.isLoading=!0;cX(this.appSearchState,"hotlistid:"+this.hotlistId);var b=this.hotlist?Promise.resolve(this.hotlist):xld(this);return this.doSearch(b).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
var xld=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};
S7.prototype.doSearch=function(a){var b=this,c=sad.map(Tr).filter(Qj),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=hj(f);f.query=d;f.returnUrl=b.bLocation.getUrl();f.hotlistId=b.hotlistId;f.trackerIds=b.appSearchState.currentTrackerScope;return O7c(b.issuePagination,f)});a.then(function(f){ijd(b,
f)}).catch(function(f){typeof f==="number"?c1(b.urlPreferences,{page:f}):b.errorHandler.errorHandler(null,f)});return Aq({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,yld(b)?S7.META_COLUMNS_DRAGGABLE:S7.META_COLUMNS);b.loadHotlists();b.cdr.detectChanges()}).catch(function(){})};
var yld=function(a){return a.sortPreferences.length===0||a.sortPreferences.length===1&&a.sortPreferences[0].fieldId.type==="POSITION"};S7.prototype.getCsvUrl=function(){var a=this.appSearchState.currentTrackerScope,b=this.displayColumns,c=this.showHotlists,d="action/hotlists/"+this.hotlistId+"/issues/csv",e=IWa(this.sortPreferences);(b=JWa(b))&&(b="position,"+b);return KWa(d,"trackerIds",a,"s",e,"c",b,"h",c)};
S7.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 wld=function(a,b){if(a.searchResults&&!a.repositioning&&yld(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||lAb(f)}else if(b===-1){var h;(h=a.resultsGrid)==null||mAb(h)}a.repositionIssue(e,c,!0)}}};g=S7.prototype;
g.save=function(){var a=this;if(this.hotlist){var b=this.hotlist,c=this.urlPreferences.getDisplayColumns();if(c){var d=FHa(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}});Kq(this.butterBar,"Saving changes to hotlist...");zld(this,b).then(function(e){Kq(a.butterBar,'Saved changes to hotlist "'+
e.name+'".');c1(a.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null});a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"savedParams",d)})}};g.discardChanges=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"discardChanges");c1(this.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null})};g.hasParamChanges=function(){return this.hotlist&&this.isEditable()?!(!this.urlPreferences.getSortColumns()&&!this.urlPreferences.getDisplayColumns()):!1};
g.isEditable=function(){return this.hotlist!=null&&this.isAdmin};g.isDirectAdmin=function(){return this.hotlist?xj(this.hotlist.adminUsers).includes(this.currentUserEmail):!1};g.setSort=function(a,b){var c=this.getSort();a==="position"||c&&c.field==="position"?H6.prototype.setSort.call(this,a,b,!1):H6.prototype.setSort.call(this,a,b)};
var zld=function(a,b){return a.hotlistApi.updateMetadata(b.hotlistId,b).then(function(c){a.hotlist=c;Ald(a,c.hotlistId);return c},function(c){a.errorHandler.errorHandler(null,c);return Promise.reject(c)})},Ald=function(a,b){a.appEvents.hotlistChanged.next({hotlistId:b,origin:"view-hotlist"})};
S7.prototype.toggleStar=function(){var a=this;this.isStarred=!this.isStarred;var b=Ym(this.hotlistId),c=function(){Ald(a,b)};this.isStarred?this.userApi.addUserBookmark({resourceType:"HOTLIST",resourceId:b}).then(c):this.userApi.removeUserBookmark({resourceType:"HOTLIST",resourceId:b}).then(c)};S7.prototype.openEditHotlist=function(){this.bLocation.setUrl(Dq.editHotlist.makeHref(this.hotlistId))};S7.prototype.addToMissionControl=function(a){a!=null&&(this.mcPrefs.addHotlist(a),this.bLocation.setUrl(this.paths.home()))};
S7.prototype.showAddToMcButton=function(a){var b=this.activeSession.isInternalSession();a=a<=500;var c=!this.mcPrefs.hasHotlist(this.hotlistId);return b&&a&&c};S7.META_COLUMNS=[K0,L0,M0,dcd];S7.META_COLUMNS_DRAGGABLE=[K0,ccd,L0,M0,dcd];S7.\u0275fac=function(){var a;return function(b){return(a||(a=Re(S7)))(b||S7)}}();
S7.\u0275cmp=y({type:S7,selectors:[["view-hotlist-page"]],standalone:!1,features:[Fh([NE]),Bg],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&&(J(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()}),K(),F(2,T4b,1,1),J(3,"div",2)(4,"b-pagination",3),N("pageChange",
function(d){return b.goToPage(d.page)})("resultsPerPageChange",function(d){return b.saveResultsPerPage(d.option)}),K()()(),J(5,"div",4),F(6,c5b,9,7,"div",5),F(7,d5b,4,1,"div",6),F(8,g5b,3,2,"div",7),F(9,h5b,2,6,"div",8),K());if(a&2){var c;x();I("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices)("showHotlistButtons",b.canAppend)("currentHotlistId",b.hotlistId)("isHotlistAdmin",b.isAdmin);x();G((c=b.searchResults==null?null:b.searchResults.numResults)?2:-1,c);x(2);I("searchResults",b.searchResults);
x();Lg("aria-busy",b.isLoading);x();G(b.isInitializing?-1:6);x();G(b.isLoading?7:-1);x();G(b.isLoading||b.hasResults()?-1:8);x();G(!b.isLoading&&b.hasResults()?9:-1)}},dependencies:[P0,C1,fS,I0,zG,xG,yN,gO,oG,Jx],encapsulation:2});var T7=function(){};T7.\u0275fac=function(a){return new (a||T7)};T7.\u0275mod=uf({type:T7});T7.\u0275inj=Dd({imports:[Y0,D1,gY,A1,CG,HC,AN,hO,BG,Ay,nH,UX,gX]});var U7=function(){H6.apply(this,arguments);this.savedSearchApi=r(fD);this.hotkeys=r(PG);this.pageTitle=r(EY);this.userAccess=r(AD);this.routeParams=r(EK);this.mcPrefs=r(nX);this.ANALYTICS_CATEGORY="savedSearchIssues";this.isAdmin=!1;this.savedSearchId=this.routeParams.savedSearchId;this.savedSearch=null;this.isLoading=!0;this.showHotlists=!1};Y(U7,H6);U7.\u0275dir=H6.\u0275dir;g=U7.prototype;
g.ngOnInit=function(){var a=this;H6.prototype.ngOnInit.call(this);this.subscriptions.add(QG(this.hotkeys,{title:"Saved Search",hotkeys:this.BASE_HOTKEYS}));this.subscriptions.add(this.appEvents.savedSearchModified.subscribe(function(b){b&&String(b.savedSearchId)===a.savedSearchId&&(b.action==="delete"?(a.savedSearch=null,a.searchResults=null,a.appSearchState.clear()):a.loadSavedSearch())}));this.subscriptions.add(this.userPreferencesManager.listViewPreferences$.subscribe(function(b){a.showHotlists=
b.showHotlists}));this.subscriptions.add($5c(this.appSearchState,function(b){a.savedSearch?c1(a.urlPreferences,{query:b}):(b=a.paths.listIssues({q:b}),a.bLocation.setUrl(b))}));this.loadUserAccess(this.savedSearchId)};g.loadUserAccess=function(a){var b=this;BD(this.userAccess,"admin","savedSearches/"+a).then(function(c){b.isAdmin=c;b.cdr.detectChanges()}).catch(function(c){b.errorHandler.errorHandler(null,c)})};
g.loadSavedSearch=function(){var a=this;this.savedSearch=null;var b=this.savedSearchApi.get(this.savedSearchId);b.then(function(c){a.savedSearch=c;a.pageTitle.setTitle(c.name)}).catch(function(c){a.errorHandler.errorHandler(null,c);a.savedSearch=null}).finally(function(){a.cdr.detectChanges()});return b};
g.getIssues=function(){var a=this,b=this.urlPreferences.getQuery()||"savedsearchid:"+this.savedSearchId;cX(this.appSearchState,b);this.searchResults=null;this.isLoading=!0;this.isInitializing=!1;b=this.savedSearch?Promise.resolve(this.savedSearch):this.loadSavedSearch();return this.doSearch(b).finally(function(){a.isLoading=!1;a.cdr.detectChanges()})};
g.doSearch=function(a){var b=this;a=this.gridPreferencesFetcher.fetch({resultsPerPage:25,page:1,query:"",sortColumns:[],displayColumns:djd(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;cX(b.appSearchState,d.query);b.exitLink=b.paths.listIssues({q:d.query});b.cdr.detectChanges();d=hj(d);d.returnUrl=b.bLocation.getUrl();d.trackerIds=
b.appSearchState.currentTrackerScope;return O7c(b.issuePagination,d)});c.then(function(d){ijd(b,d)}).catch(function(d){typeof d==="number"?c1(b.urlPreferences,{page:d}):d&&b.errorHandler.errorHandler(null,d)});this.initColumns(a.displayColumns);return Aq({searchResultsPage:c,displayColumns:a.displayColumns}).then(function(d){d=d.searchResultsPage;b.searchResults=d;b.page=d.params.page;b.sortPreferences=d.params.sortColumns||[];b.loadHotlists();b.cdr.detectChanges()}).catch(function(){})};
g.isEditable=function(){return!!this.savedSearch&&this.isAdmin};g.getCsvUrl=function(){return LWa(this.searchParams.query,this.appSearchState.currentTrackerScope,this.sortPreferences,this.displayColumns,this.showHotlists)};
g.save=function(){var a=this,b=this.urlPreferences.getDisplayColumns();b&&(this.savedSearch.displayColumn=b);if(b=this.urlPreferences.getSortColumns())this.savedSearch.sortOrder=b.map(function(c){return{direction:c.direction,field:c.fieldId}});this.savedSearch.query=this.urlPreferences.getQuery()||this.savedSearch.query;Kq(this.butterBar,"Saving changes to search...");this.savedSearchApi.update(this.savedSearch.searchId,this.savedSearch).then(function(c){Kq(a.butterBar,'Saved changes to search "'+
c.name+'".');a.savedSearch=c;c1(a.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null});a.analytics.trackEvent(a.ANALYTICS_CATEGORY,"savedParams");a.cdr.detectChanges()}).catch(function(c){a.errorHandler.errorHandler(null,c)})};g.discardChanges=function(){this.analytics.trackEvent(this.ANALYTICS_CATEGORY,"discardChanges");c1(this.urlPreferences,{query:null,sortColumns:null,page:null,displayColumns:null})};
g.hasParamChanges=function(){return this.savedSearch?!!(this.urlPreferences.getQuery()&&this.urlPreferences.getQuery()!==this.savedSearch.query||this.urlPreferences.getSortColumns()||this.urlPreferences.getDisplayColumns()):!1};g.openEditSavedSearch=function(){this.bLocation.setUrl(this.paths.editSavedSearch(this.savedSearchId))};g.addToMissionControl=function(a){a!=null&&(oX(this.mcPrefs,wab(a)),this.bLocation.setUrl(this.paths.home()))};
g.showAddToMcButton=function(a){var b=this.activeSession.isInternalSession();a=a<=500;var c=!this.mcPrefs.hasSavedSearch(this.savedSearchId);return b&&a&&c};U7.\u0275fac=function(){var a;return function(b){return(a||(a=Re(U7)))(b||U7)}}();
U7.\u0275cmp=y({type:U7,selectors:[["view-saved-search-page"]],standalone:!1,features:[Fh([NE]),Bg],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&&(J(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()}),K(),F(2,j5b,1,1),J(3,"div",2)(4,"b-pagination",3),N("pageChange",
function(d){return b.goToPage(d.page)})("resultsPerPageChange",function(d){return b.saveResultsPerPage(d.option)}),K()()(),J(5,"div",4)(6,"div",5),F(7,p5b,3,1,"div",6),F(8,r5b,7,2,"div",7),K(),F(9,x5b,3,1,"div"),K());if(a&2){var c;x();I("grid",b.resultsGrid)("hotlistChoices",b.hotlistChoices);x();G((c=b.searchResults==null?null:b.searchResults.numResults)?2:-1,c);x(2);I("searchResults",b.searchResults);x();Lg("aria-busy",b.isLoading);x(2);G(b.isInitializing?-1:7);x();G(b.hasParamChanges()?8:-1);x();
G(b.savedSearch?9:-1)}},dependencies:[P0,C1,I0,zG,xG,yN,gO,oG,Jx],encapsulation:2});var V7=function(){};V7.\u0275fac=function(a){return new (a||V7)};V7.\u0275mod=uf({type:V7});V7.\u0275inj=Dd({imports:[Y0,D1,A1,HC,CG,AN,hO,BG,Ay,nH,UX,gX]});var Bld={path:Dq.viewIssue.routeDeclarationPath,component:O5,children:[{path:"",pathMatch:"full",component:k6},{path:"dependencies",component:OX},{path:"dupes",component:Q5},{path:"blocking",component:r5},{path:"resources",component:ajd}].concat(p(z5b("enableCodeMentionsUi",{path:"todos",component:F6})),p(y5b(function(){var a=ll();return Qwa("enableInsightsEnrichments")&&xva(a)==="INTERNAL"},{path:"insights",component:U3})))},Cld=[{path:"",component:r4,canActivateGuards:[A4]},{title:Wr("Issues"),
path:Dq.listIssues.routeDeclarationPath,component:I6},{title:Wr("New issue"),path:Dq.createIssue.routeDeclarationPath,component:h5,canActivateGuards:[T4]}].concat(p(y5b(function(){var a;if(a=Qwa("enableChromeWizard")){var b;a=((b=ll().tracker)==null?void 0:b.trackerId)==="157"}return a},{title:Wr("New issue"),path:Dq.createIssueChromeWizard.routeDeclarationPath,component:S4})),[Bld,{title:Wr("Browse All Components"),path:Dq.listComponentsGlobal.routeDeclarationPath,component:X3},{title:Wr("Browse Components"),
path:Dq.listComponents.routeDeclarationPath,component:U4},{title:Wr("Create component"),path:Dq.createComponent.routeDeclarationPath,component:W4},{title:Wr("Component"),path:Dq.editComponent.routeDeclarationPath,component:c7},{path:"components/:componentId/manage",redirectTo:Dq.editComponent.routeDeclarationPath},{path:"components/:componentId",redirectTo:Dq.editComponent.routeDeclarationPath}],p(z5b("enableTeamScope",{title:Wr("Triage"),path:Dq.viewTriage.routeDeclarationPath,component:eY})),p(z5b("enableTeamScope",
{title:Wr("Triage"),path:Dq.viewTriageDashboard.routeDeclarationPath,component:dX})),p(z5b("enableTeamScope",{title:Wr("Issue Themes"),path:Dq.viewIssueThemes.routeDeclarationPath,component:VW})),p(z5b("enableTeamScope",{title:Wr("Triage"),path:Dq.triageSettings.routeDeclarationPath,component:kY})),[{title:Wr("Team"),path:Dq.editTeam.routeDeclarationPath,component:d7},{path:"teams/:teamId",redirectTo:Dq.editTeam.routeDeclarationPath},{title:Wr("Create Bookmark Group"),path:Dq.createBookmarkGroup.routeDeclarationPath,
component:V4},{title:Wr("Bookmark Group"),path:Dq.viewBookmarkGroup.routeDeclarationPath,component:Q7},{title:Wr("Bookmark Group"),path:Dq.editBookmarkGroup.routeDeclarationPath,component:m5},{title:Wr("Create Hotlist"),path:Dq.createHotlist.routeDeclarationPath,component:X4},{title:Wr("Hotlist"),path:Dq.viewHotlist.routeDeclarationPath,component:S7},{title:Wr("Edit Hotlist"),path:Dq.editHotlist.routeDeclarationPath,component:U0},{title:Wr("Create SLO"),path:Dq.createSlo.routeDeclarationPath,component:i5},
{title:Wr("SLO"),path:Dq.viewSlo.routeDeclarationPath,component:q5},{title:Wr("SLO"),path:Dq.editSlo.routeDeclarationPath,component:q5},{title:Wr("Saved search"),path:Dq.editSavedSearch.routeDeclarationPath,component:n5},{title:Wr("All of my hotlists"),path:Dq.listHotlists.routeDeclarationPath,component:G6},{title:Wr("Manage SLOs"),path:Dq.listSlos.routeDeclarationPath,component:K6},{title:Wr("Saved search"),path:Dq.viewSavedSearch.routeDeclarationPath,component:U7},{title:Wr("Dashboard"),path:Dq.viewDashboard.routeDeclarationPath,
component:k5},{title:Wr("Settings"),path:Dq.settingsTab.routeDeclarationPath,component:P7},{title:Wr("Settings"),path:Dq.settings.routeDeclarationPath,component:P7},{title:Wr("View Attachment"),path:Dq.viewAttachment.routeDeclarationPath,component:vld,hideAppChrome:!0},{title:Wr("Home"),path:Dq.home.routeDeclarationPath,component:E7,canActivateGuards:[y4,x4]},{path:"**",component:r4,canActivateGuards:[A4]}]);var W7=function(){};W7.\u0275fac=function(a){return new (a||W7)};W7.\u0275mod=uf({type:W7});W7.\u0275inj=Dd({imports:[l6,HC,AN,BG,kQ,TQ,yG]});var X7=function(){};X7.\u0275fac=function(a){return new (a||X7)};X7.\u0275mod=uf({type:X7});X7.\u0275inj=Dd({imports:[HC,DQ,BG]});var Y7=function(){};Y7.\u0275fac=function(a){return new (a||Y7)};Y7.\u0275mod=uf({type:Y7});Y7.\u0275inj=Dd({imports:[HC,kQ,tJ,CQ,X7]});var Z7=function(){};Z7.\u0275fac=function(a){return new (a||Z7)};Z7.\u0275mod=uf({type:Z7});Z7.\u0275inj=Dd({imports:[HC,SG,BG,wK]});var $7=function(){};$7.\u0275fac=function(a){return new (a||$7)};$7.\u0275mod=uf({type:$7});$7.\u0275inj=Dd({imports:[BQ,HC,E5,SG,BG,zL,mH,CG,R1,z1,o6,Z7]});var a8=function(){};a8.\u0275fac=function(a){return new (a||a8)};a8.\u0275mod=uf({type:a8});a8.\u0275inj=Dd({imports:[HC,SG,BG,CG]});var b8=function(){};b8.\u0275fac=function(a){return new (a||b8)};b8.\u0275mod=uf({type:b8});b8.\u0275inj=Dd({imports:[SV,HC,CG,lM,HG,BG,AN,qQ,z1,AQ]});var c8=function(){};c8.\u0275fac=function(a){return new (a||c8)};c8.\u0275mod=uf({type:c8});c8.\u0275inj=Dd({imports:[HC,PQ,tJ,oM]});var d8=function(){};d8.\u0275fac=function(a){return new (a||d8)};d8.\u0275mod=uf({type:d8});d8.\u0275inj=Dd({imports:[Y7,PQ,HC,QU,nW,SG,tJ,KQ,wW,X7,BG,zL,CG,gY,oM,c8,a8,$7,b8]});var e8=function(){};e8.\u0275fac=function(a){return new (a||e8)};e8.\u0275mod=uf({type:e8});e8.\u0275inj=Dd({imports:[HC,BG]});var f8=function(){};f8.\u0275fac=function(a){return new (a||f8)};f8.\u0275mod=uf({type:f8});f8.\u0275inj=Dd({imports:[HC,JL,BG,CG]});var g8=function(){};g8.\u0275fac=function(a){return new (a||g8)};g8.\u0275mod=uf({type:g8});g8.\u0275inj=Dd({imports:[x2,pJ,jC,HC,TQ,Vw,kQ,qQ,Ay,W7,d8,w1,BG,wK,bY,QN,CG,By,N5,z1,yH,e8,f8]});var h8=function(){};h8.\u0275fac=function(a){return new (a||h8)};h8.\u0275mod=uf({type:h8});h8.\u0275inj=Dd({imports:[HC,Z3]});var i8=function(){};i8.\u0275fac=function(a){return new (a||i8)};i8.\u0275mod=uf({type:i8});i8.\u0275inj=Dd({imports:[HC,jC,pJ,Ay,By,BG,QN,yH,BQ,g8,D6,QX,s5,R5,h8,E6]});var Dld=Cld.map(function(a){var b=a.redirectTo?void 0:[u4,w4].concat(p(a.canActivateGuards||[])),c;return{title:a.title,path:a.path,redirectTo:a.redirectTo,component:a.component,canDeactivate:[UR],canActivate:b,children:a.children,isRootRoute:!0,hideAppChrome:(c=a.hideAppChrome)!=null?c:!1}});Dld.push({path:"**",canActivate:["dontActivate"],component:r4,isRootRoute:!0,hideAppChrome:!1});
var Eld=ll().appBaseHref,Fld,j8={initialNavigation:"disabled"},Gld=(j8==null?0:j8.errorHandler)?{provide:Ksc,useValue:j8.errorHandler}:[],Hld={provide:mC,useValue:j8?j8:{}},Ild=(j8==null?0:j8.useHash)?{provide:dw,useClass:hw}:{provide:dw,useClass:ew},Jld={provide:qtc,useFactory:function(){var a=r(Aic),b=r(Ph),c=r(mC),d=r(qC),e=r(HB);c.scrollOffset&&Cic(a,c.scrollOffset);return new AC(e,d,a,b,c)}},Kld=(j8==null?0:j8.preloadingStrategy)?VDa(0,[{provide:wtc,useExisting:zC},{provide:mtc,useExisting:j8.preloadingStrategy}]).\u0275providers:
[],Lld;
(j8==null?0:j8.initialNavigation)?Lld=[j8.initialNavigation==="disabled"?VDa(3,[Rja(function(){dtc(r(vC))}),{provide:vtc,useValue:2}]).\u0275providers:[],j8.initialNavigation==="enabledBlocking"?VDa(2,[{provide:Agc,useValue:!0},{provide:vtc,useValue:0},Rja(function(){var a=r(Cg);return a.get(wic,Promise.resolve()).then(function(){return new Promise(function(b){var c=a.get(vC),d=a.get(utc);UDa(c,function(){b(!0)});a.get(qC).afterPreactivation=function(){b(!0);return d.closed?Nf(void 0):d};c.initialNavigation()})})})]).\u0275providers:[]]:
Lld=[];var Mld=Lld,Nld=(j8==null?0:j8.bindToComponentInputs)?VDa(8,[OB,{provide:nrc,useExisting:OB}]).\u0275providers:[],Old;if(j8==null?0:j8.enableViewTransitions){tf("NgRouterViewTransitions");var Pld=[{provide:Jsc,useValue:TDa},{provide:RDa,useValue:Object.assign({},{skipNextTransition:!1},void 0)}];Old=VDa(9,Pld).\u0275providers}else Old=[];
Fld={ngModule:BC,providers:[xtc,[],{provide:PDa,multi:!0,useValue:[]},[],Gld,Hld,Ild,Jld,Kld,Mld,Nld,Old,[{provide:ytc,useFactory:function(){var a=r(Cg);return function(b){var c=a.get(Wh);if(b===c.components[0]){b=a.get(vC);var d=a.get(utc);a.get(vtc)===1&&b.initialNavigation();var e;(e=a.get(wtc,null,{optional:!0}))==null||ntc(e);var f;(f=a.get(qtc,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:Bhc,multi:!0,useExisting:ytc}]]};var k8=function(){var a=r(vC),b=r(CK);a.config=Dld.map(sCa);a.navigated=!1;a.initialNavigation();dMc(b)};k8.\u0275fac=function(a){return new (a||k8)};k8.\u0275mod=uf({type:k8});k8.\u0275inj=Dd({providers:[{provide:"dontActivate",useValue:function(){return!1}},{provide:rC,useClass:t4},{provide:zic,useValue:Eld},w4,u4],imports:[Fld,s4,i8,BC]});var Qld=new le("Environment");var Rld=new le("Worktracker API Key");var Sld=new le("G3C API Keys");var l8=function(){};l8.\u0275fac=function(a){return new (a||l8)};l8.\u0275mod=uf({type:l8});l8.\u0275inj=Dd({providers:[{provide:Qld,useFactory:A5b},{provide:Sld,useValue:{prodApiKey:"AIzaSyB9Ljnt9FDyfTnTH2yeDn6lGM40PQm6Gsk",stagingApiKey:"AIzaSyCYqhU0fWA9T487wYfx1ogB9z2mNJ9AQco",autopushApiKey:"AIzaSyBEveljwBki0sKCHdprNdJJPZrqTnIwIcM"}},{provide:Rld,useValue:"AIzaSyAVSCxcE30nYSaySrZXBXCTumqIjorZA2c"}]});var m8=function(a){this.lookupId_=a;this.displayName_="";this.forceDisplayNameOverride_=!1},y$b=function(a){return new m8(a)};m8.prototype.getId=function(){return this.lookupId_};m8.prototype.setDisplayName=function(a){this.displayName_=a;return this};m8.prototype.getDisplayName=function(){return this.displayName_};var z$b=function(a,b){a.forceDisplayNameOverride_=b;return a};m8.prototype.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride_};
m8.prototype.equals=function(a){return a?this===a?!0:this.getId().equals(a.getId())&&this.getDisplayName()===a.getDisplayName()&&this.getForceDisplayNameOverride()===a.getForceDisplayNameOverride():!1};var B5b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(B5b,n);B5b.prototype.setDisabled=function(a,b){Bc(this,2,zb,a,b,Ab)};var n8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(n8,n);g=n8.prototype;g.getEnableClearcut=function(){return kk(this,1)};g.setEnableClearcut=function(a){return Nk(this,1,a)};g.getClientId=function(){return pk(this,2)};g.setClientId=function(a){return Rk(this,2,a)};g.getSocialApplication=function(){return pk(this,3)};g.getSocialApplicationOrUndefined=function(){return Nm(this,3)};g.getComponentFlow=function(){return pk(this,4)};
g.setComponentFlow=function(a){return Rk(this,4,a)};g.getInterfaceType=function(){return pk(this,5)};g.setInterfaceType=function(a){return Rk(this,5,a)};var o8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(o8,n);o8.prototype.getEnableAutocompleteLegalese=function(){return kk(this,11)};var p8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(p8,n);p8.prototype.getApplication=function(){return pk(this,1)};p8.prototype.setApplication=function(a){return Rk(this,1,a)};p8.prototype.getApplicationOrUndefined=function(){return Nm(this,1)};p8.prototype.getIsEnabled=function(){return kk(this,2)};var Tld=[0,Xu,-15];var Uld=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Uld,n);g=Uld.prototype;g.getClearcut=function(){return W(this,n8,1)};g.setClearcut=function(a){X(this,n8,1,a)};g.hasClearcut=function(){return tk(this,n8,1)};g.getExperiments=function(){return W(this,p8,2)};g.setExperiments=function(a){return X(this,p8,2,a)};g.hasExperiments=function(){return tk(this,p8,2)};g.getEnableAutocompleteLegalese=function(){return kk(this,13,!0)};var Vld=Kda(Uld);var Wld;var Xld=function(){var a=H9b(Wld||(Wld=Vld('[[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 n8);a.hasExperiments()||a.setExperiments(new p8);this.internal=a};var Yld=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};
Yld.prototype.create=function(a){for(var b=this,c=l(this.coreTypeOrder.filter(function(h){var k=b.configurationKey;return b.container.configurations.hasCoreType(h,k===void 0?"\ud83c\udf68":k)})),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.container.getCoreFactory(d),f=void 0;if((f=e)==null?0:f.shouldCreate(a))return c=void 0,this.extractor(this.decorate((c=e)==null?void 0:c.create(a),d,a))}throw Error("Bf");};
Yld.prototype.decorate=function(a,b,c){var d=this,e,f=(e=this.getCompatibleTypes(b))!=null?e:new Set;return this.decoratorTypeOrder.filter(function(h){var k=d.configurationKey;return d.container.configurations.hasDecoratorType(h,k===void 0?"\ud83c\udf68":k)&&f.has(h)}).map(function(h){return d.container.getDecoratorFactory(h)}).filter(function(h){return h==null?void 0:h.shouldCreate(c)}).reduce(function(h,k){return k.create(c,h)},a)};var q8=function(){this.core=new Set;this.decorators=new Set};q8.prototype.addCoreType=function(a){this.core.add(a)};q8.prototype.addDecoratorType=function(a){this.decorators.add(a)};q8.prototype.hasCoreType=function(a){return this.core.has(a)};q8.prototype.hasDecoratorType=function(a){return this.decorators.has(a)};var Zld=function(){this.configurations=new Map};g=Zld.prototype;g.addCoreType=function(a,b){this.configurations.has(b)||this.configurations.set(b,new q8);this.configurations.get(b).addCoreType(a)};
g.addDecoratorType=function(a,b){this.configurations.has(b)||this.configurations.set(b,new q8);this.configurations.get(b).addDecoratorType(a)};g.hasCoreType=function(a,b){var c,d;return!!(((c=this.configurations.get(b))==null?0:c.hasCoreType(a))||((d=this.configurations.get("\ud83c\udf68"))==null?0:d.hasCoreType(a)))};g.hasDecoratorType=function(a,b){var c,d;return!!(((c=this.configurations.get(b))==null?0:c.hasDecoratorType(a))||((d=this.configurations.get("\ud83c\udf68"))==null?0:d.hasDecoratorType(a)))};
g.clear=function(){this.configurations.clear()};var $ld=function(){this.core=new Map;this.decorator=new Map};g=$ld.prototype;g.addCoreFactory=function(a,b){this.core.has(a)||this.core.set(a,b)};g.addDecoratorFactory=function(a,b){this.decorator.has(a)||this.decorator.set(a,b)};g.getCoreFactory=function(a){return this.core.get(a)};g.getDecoratorFactory=function(a){return this.decorator.get(a)};g.clear=function(){this.core.clear();this.decorator.clear()};
var r8=function(a){var b=this;var c=a.coreTypeOrder;var d=a.decoratorTypeOrder;var e=a.extractor;a=a.getCompatibleTypes;this.configurations=new Zld;this.factories=new $ld;this.coreTypeOrder=c;this.decoratorTypeOrder=d;this.extractor=e;this.getCompatibleTypes=a;amd.set(this,function(){b.configurations.clear();b.factories.clear()})};
r8.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)};r8.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)};r8.prototype.getCoreFactory=function(a){return this.factories.getCoreFactory(a)};
r8.prototype.getDecoratorFactory=function(a){return this.factories.getDecoratorFactory(a)};var P6b=function(a,b){b=b===void 0?"\ud83c\udf68":b;return new Yld(a.coreTypeOrder,a.decoratorTypeOrder,a.getCompatibleTypes,a,a.extractor,b===void 0?"\ud83c\udf68":b)},amd=new Map;var Hs=new r8({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 K5b=function(a){var b=a.imageUrls,c=a.backupUrl,d=a.size,e=a.preloadSize,f=a.pixelRatio;a=rt(st(),'<div class="'+nt("peoplekitComponentsAvatarImplAvatarContainer")+'" style="width: '+nt(kI(d))+"px; height: "+nt(kI(d))+'px"><div peoplekit-id="'+nt("YLEF4c")+'" class="'+nt("peoplekitComponentsAvatarImplAvatar")+'" style="width: '+nt(kI(d))+"px; height: "+nt(kI(d))+'px">');b=b.length===1?rt(tt(rt(st(),'<div class="'+nt("peoplekitComponentsAvatarImplContainer")+'">'),s8(b[0],c,d,e,f)),"</div>"):b.length===
2?rt(tt(rt(tt(rt(tt(rt(st(),'<div class="'+nt("peoplekitComponentsAvatarImplContainer")+'"><div class="'+nt("peoplekitComponentsAvatarImplColumn")+'">'),s8(b[0],c,d,e,f)),"</div>"),t8()),'<div class="'+nt("peoplekitComponentsAvatarImplColumn")+'">'),s8(b[1],c,d,e,f)),"</div></div>"):b.length===3?rt(tt(rt(tt(rt(tt(rt(tt(rt(tt(rt(st(),'<div class="'+nt("peoplekitComponentsAvatarImplContainer")+'"><div class="'+nt("peoplekitComponentsAvatarImplColumn")+'">'),s8(b[0],c,d,e,f)),"</div>"),t8()),'<div class="'+
nt("peoplekitComponentsAvatarImplColumn")+'"><div class="'+nt("peoplekitComponentsAvatarImplRow")+'">'),s8(b[1],c,Math.round(d*.5),e,f)),"</div>"),t8()),'<div class="'+nt("peoplekitComponentsAvatarImplRow")+'">'),s8(b[2],c,Math.round(d*.5),e,f)),"</div></div></div>"):rt(tt(rt(tt(rt(tt(rt(tt(rt(tt(rt(tt(rt(tt(rt(st(),'<div class="'+nt("peoplekitComponentsAvatarImplContainer")+'"><div class="'+nt("peoplekitComponentsAvatarImplColumn")+'"><div class="'+nt("peoplekitComponentsAvatarImplRow")+'">'),s8(b[0],
c,Math.round(d*.5),e,f)),"</div>"),t8()),'<div class="'+nt("peoplekitComponentsAvatarImplRow")+'">'),s8(b[2],c,Math.round(d*.5),e,f)),"</div></div>"),t8()),'<div class="'+nt("peoplekitComponentsAvatarImplColumn")+'"><div class="'+nt("peoplekitComponentsAvatarImplRow")+'">'),s8(b[1],c,Math.round(d*.5),e,f)),"</div>"),t8()),'<div class="'+nt("peoplekitComponentsAvatarImplRow")+'">'),s8(b[3],c,Math.round(d*.5),e,f)),"</div></div></div>");b=tt(st(),b);return rt(tt(rt(tt(a,b),'</div><div peoplekit-id="'+
nt("Btuy5e")+'" class="'+nt("peoplekitComponentsAvatarImplAvatarBadge")+'">'),qt('<img class="'+nt("peoplekitComponentsAvatarImplBadgeIconImage")+'" peoplekit-id="'+nt("m6fZne")+'" draggable="false" alt="">')),"</div></div>")},s8=function(a,b,c,d,e){var f=rt(st(),'<div peoplekit-id="'+nt("IHgMKc")+'" class="'+nt("peoplekitComponentsAvatarImplImageRoot")+'">'),h=pt(NIc(a,c,c,e));h=mGc(h);a=pt(NIc(a,d,d,e));a=mGc(a);b=pt(NIc(b,c,c,e));b=mGc(b);h=rt(f,'<img peoplekit-id="'+nt("HiaYvf")+'" class="'+nt("peoplekitComponentsAvatarImplImage")+
'" style="width: '+nt(kI(c))+"px; height: "+nt(kI(c))+'px;" data-preload-src="'+nt(a)+'" data-src="'+nt(h)+'" data-backup-src="'+nt(b)+'" draggable="false" alt="">');c=qt('<svg xmlns="http://www.w3.org/2000/svg" height="'+nt(c)+'px" viewBox="0 0 24 24" width="'+nt(c)+'px" class="'+nt("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>');
rt(tt(h,c),"</div>");return f},t8=function(){return qt('<div class="'+nt("peoplekitComponentsAvatarImplDivider")+'"></div>')};var bmd=new Map([[0,"light_theme"],[1,"dark_theme"]]);var F5b=!Ps&&!vaa();var cmd=new Map([[1,"badge_active"],[2,"badge_inactive"],[3,"badge_idle"],[4,"badge_do_not_disturb"],[5,"badge_video"]]),dmd=new Map([[1,"Active."],[2,"Inactive."],[3,"Idle."],[4,"Do Not Disturb."],[5,"In Video Call."]]),M5b=function(a,b){this.appearance=b;this.root=a;emd(this)};g=M5b.prototype;
g.setBadge=function(a){var b=Cs(this.root,"Btuy5e");if(a.badgeType===0)b.classList.remove("visible");else{var c=cmd.get(a.badgeType)||"";if(c){var d=this.appearance.getTheme();c="https://www.gstatic.com/people/peoplekit/icons/"+(bmd.get(d)||"light_theme")+"/"+c+".svg"}else c="";a=dmd.get(a.badgeType)||"";d=Cs(b,"m6fZne");c&&(d.src=c);d.alt=a;b.classList.add("visible")}};g.getAllIds=function(){return[]};g.updateWaldo=function(){};g.updateHubAvailabilityDot=function(){};
g.getSupportedIntelligenceFeatures=function(){return[]};g.initializeIntelligence=function(){};
var emd=function(a){a=l(D5b(a.root,"IHgMKc"));for(var b=a.next(),c={};!b.done;c={img$jscomp$11:void 0,src$jscomp$63:void 0,imageRoot:void 0,backupSrc:void 0},b=a.next())c.imageRoot=b.value,c.img$jscomp$11=Cs(c.imageRoot,"HiaYvf"),b=H5b(c.img$jscomp$11,"preloadSrc"),c.src$jscomp$63=H5b(c.img$jscomp$11,"src"),c.backupSrc=H5b(c.img$jscomp$11,"backupSrc"),I5b(c.src$jscomp$63)?c.img$jscomp$11.src=c.src$jscomp$63:I5b(b)?(c.img$jscomp$11.src=b,Vq(function(d){return function(){d.img$jscomp$11.src=d.src$jscomp$63}}(c),
0)):(c.imageRoot.classList.add("isLoading"),c.img$jscomp$11.onload=function(d){return function(){d.imageRoot.classList.remove("isLoading")}}(c),c.img$jscomp$11.onerror=function(d){return function(){d.img$jscomp$11.getAttribute("src")===d.backupSrc?(d.img$jscomp$11.onerror=null,d.imageRoot.classList.remove("isLoading"),d.imageRoot.classList.add("isNotLoaded")):d.img$jscomp$11.src=d.backupSrc}}(c),c.img$jscomp$11.src=c.src$jscomp$63)};var J5b=function(){this.style=this.theme=this.density=0};g=J5b.prototype;g.getDensity=function(){return this.density};g.setDensity=function(a){this.density=a};g.getTheme=function(){return this.theme};g.setTheme=function(a){this.theme=a};g.getStyle=function(){return this.style};g.setStyle=function(a){this.style=a};var V5b=Qs.getInstance();var X5b=function(a){a=a.memberCount;return(new DOa("{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 b6b=Qs.getInstance();var d6b=function(a,b,c){var d=this;this.root=a;this.selection=b;this.selectionsState=c;this.isDisabledInternal=!1;this.deleteButton=Cs(this.root,"bxvLg");this.eventHandler=Gs(this);this.eventHandler.listen(this.deleteButton,"click",function(){d.onDeleteButtonClick()})};g=d6b.prototype;g.onDeleteButtonClick=function(){this.selectionsState.deselect(this.selection,8)};g.toggleSelection=function(){};g.activate=function(){this.root.classList.add("isActive");this.root.setAttribute("aria-selected","true")};
g.deactivate=function(){this.root.classList.remove("isActive");this.root.setAttribute("aria-selected","false")};g.isActive=function(){return this.root.classList.contains("isActive")};g.spotlight=function(){this.root.classList.add("isSpotlit")};g.unspotlight=function(){this.root.classList.remove("isSpotlit")};g.disable=function(){this.root.classList.add("isDisabled");this.isDisabledInternal=!0};g.enable=function(){this.root.classList.remove("isDisabled");this.isDisabledInternal=!1};g.isDisabled=function(){return this.isDisabledInternal};
g.drag=function(){this.root.classList.add("isDragged")};g.undrag=function(){this.root.classList.remove("isDragged")};g.edit=function(){};g.unedit=function(){};g.dispose=function(){this.eventHandler.removeAll()};g.getRoot=function(){return this.root};g.getSelection=function(){return this.selection};g.setDisambiguationLabel=function(){};g.onKeyDown=function(){};g.onContextMenu=function(){return function(){}};g.getAllIds=function(){return[this.selection.id()]};g.updateWaldo=function(){};
g.updateHubAvailabilityDot=function(){};g.getSupportedIntelligenceFeatures=function(){return[]};g.initializeIntelligence=function(){};var fmd=function(a,b,c,d,e,f,h,k,q,v){d=d?nt(d):e?nt("isWarning"):"";return rt(tt(rt(tt(rt(tt(rt(st(),'<div role="option" class="'+nt("peoplekitComponentsChipChip")+" "+d+" "+(f?nt("isDeletionDisabled"):"")+" "+(h?nt(h):"")+'" id="'+nt(a)+'" peoplekit-id="'+nt("XPtOyb")+'" data-hovercard-id="'+nt(c)+'" data-name="'+nt(b)+'"'+(f?"":' aria-describedby="'+nt(a)+'-db"')+'><div class="'+nt("peoplekitComponentsChipChipRow")+" "+nt("peoplekitComponentsChipChipContainer")+'"><div class="'+nt("peoplekitComponentsChipLeft")+
'">'),ot(k)),'</div><div class="'+nt("peoplekitComponentsChipCenter")+'">'),ot(q)),'</div><div class="'+nt("peoplekitComponentsChipRight")+'">'),ot(v)),'</div></div><div peoplekit-id="'+nt("QL45qe")+'"></div></div>')},gmd=function(a){return rt(tt(rt(st(),'<div class="'+nt("peoplekitComponentsChipAvatar")+'"><div class="'+nt("peoplekitComponentsChipAvatarContainer")+'" peoplekit-id="'+nt("d6MZcd")+'"></div>'),jI(a)?ot(a):""),"</div>")},hmd=function(a){var b=st();a=rt(st(),'<div class="'+nt("peoplekitComponentsChipAvatarExclamationOverlay")+
" "+(a?nt(a):"")+'"><div class="'+nt("peoplekitComponentsChipExclamationIcon")+" "+(a?nt(a):"")+'">');var c=qt('<svg viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M11 14V5h2v9Zm0 5v-2h2v2Z"/></svg>');return tt(b,gmd(rt(tt(a,c),"</div></div>")))},imd=function(a){return qt('<div class="'+nt("peoplekitComponentsChipLabelContainer")+'"><div class="'+nt("peoplekitComponentsChipLabel")+" "+nt("peoplekitComponentsChipLabelRow")+'"><div class="'+nt("peoplekitComponentsChipDisplayLabel")+
'" translate="no">'+q$b(vt(a))+'</div><div class="'+nt("peoplekitComponentsChipDisambiguationLabel")+'" peoplekit-id="'+nt("hyPgpe")+'" translate="no"></div></div></div>')},jmd=function(a){var b=st();a=rt(b,'<div id="'+nt(a)+'-db" peoplekit-id="'+nt("bxvLg")+'" class="'+nt("peoplekitComponentsChipDeleteButton")+'" aria-hidden="true" aria-label="'+nt("Press delete to remove this chip")+'">');var c=qt('<svg xmlns="https://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" class="'+(nt("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>'));rt(tt(a,c),"</div>");return b};var c6b=function(a){var b=a.id,c=a.label,d=a.name,e=a.hovercardId,f=a.stateClass,h=a.isWarning;a=a.isDeletionDisabled;return tt(st(),fmd(b,d,e,f,h,a,void 0,tt(st(),f?hmd(f):gmd()),tt(st(),imd(c)),tt(st(),jmd(b))))};var h6b=function(a,b,c){var d=this;this.root=a;this.selection=b;this.selectionsState=c;this.isDisabledInternal=!1;this.deleteButton=Cs(this.root,"bxvLg");this.eventHandler=Gs(this);this.eventHandler.listen(this.deleteButton,"click",function(){return d.onDeleteButtonClick()})};g=h6b.prototype;g.onDeleteButtonClick=function(){this.selectionsState.deselect(this.selection,8)};g.toggleSelection=function(){};
g.activate=function(){this.root.classList.add("isActive");this.root.setAttribute("aria-selected","true")};g.deactivate=function(){this.root.classList.remove("isActive");this.root.setAttribute("aria-selected","false")};g.isActive=function(){return this.root.classList.contains("isActive")};g.spotlight=function(){this.root.classList.add("isSpotlit")};g.unspotlight=function(){this.root.classList.remove("isSpotlit")};g.disable=function(){this.root.classList.add("isDisabled");this.isDisabledInternal=!0};
g.enable=function(){this.root.classList.remove("isDisabled");this.isDisabledInternal=!1};g.isDisabled=function(){return this.isDisabledInternal};g.drag=function(){this.root.classList.add("isDragged")};g.undrag=function(){this.root.classList.remove("isDragged")};g.edit=function(){};g.unedit=function(){};g.dispose=function(){this.eventHandler.removeAll()};g.getRoot=function(){return this.root};g.getSelection=function(){return this.selection};g.setDisambiguationLabel=function(){};g.onKeyDown=function(){};
g.onContextMenu=function(){return function(){}};g.getAllIds=function(){return[this.selection.id()]};g.updateWaldo=function(){};g.updateHubAvailabilityDot=function(){};g.getSupportedIntelligenceFeatures=function(){return[]};g.initializeIntelligence=function(){};var g6b=function(a){var b=a.id,c=a.hovercardId,d=a.name,e=a.label,f=a.avatarSize;a=a.isDeletionDisabled;return tt(st(),fmd(b,d,c,"",!1,a,void 0,qt('<div class="'+nt("peoplekitComponentsChipPlaceholderAvatarPlaceholder")+" "+nt("peoplekitComponentsChipPlaceholderShimmer")+'" style="width: '+nt(kI(f))+"px; height: "+nt(kI(f))+'px;"></div>'),tt(st(),e?imd(e):'<div class="'+nt("peoplekitComponentsChipPlaceholderLabelPlaceholder")+" "+nt("peoplekitComponentsChipPlaceholderShimmer")+'"></div>'),tt(st(),
jmd(b))))};var u8=function(a){this.delegate=a};g=u8.prototype;g.toggleSelection=function(){this.delegate.toggleSelection()};g.activate=function(){this.delegate.activate()};g.deactivate=function(){this.delegate.deactivate()};g.isActive=function(){return this.delegate.isActive()};g.spotlight=function(){this.delegate.spotlight()};g.unspotlight=function(){this.delegate.unspotlight()};g.disable=function(){this.delegate.disable()};g.enable=function(){this.delegate.enable()};g.isDisabled=function(){return this.delegate.isDisabled()};
g.drag=function(){this.delegate.drag()};g.undrag=function(){this.delegate.undrag()};g.edit=function(){this.delegate.edit()};g.unedit=function(){this.delegate.unedit()};g.dispose=function(){this.delegate.dispose()};g.getRoot=function(){return this.delegate.getRoot()};g.getSelection=function(){return this.delegate.getSelection()};g.setDisambiguationLabel=function(a){this.delegate.setDisambiguationLabel(a)};g.onKeyDown=function(a){this.delegate.onKeyDown(a)};
g.onContextMenu=function(a,b){return this.delegate.onContextMenu(a,b)};g.getAllIds=function(){return this.delegate.getAllIds()};g.updateWaldo=function(a,b){this.delegate.updateWaldo(a,b)};g.updateHubAvailabilityDot=function(a,b){this.delegate.updateHubAvailabilityDot(a,b)};g.getSupportedIntelligenceFeatures=function(){return this.delegate.getSupportedIntelligenceFeatures()};g.initializeIntelligence=function(){this.delegate.initializeIntelligence()};var kmd=Object.freeze(new Is(NaN,NaN)),lmd=Object.freeze(new oI(NaN,NaN,NaN,NaN)),Ks=function(a,b){this.root=a;this.options=b;this.lastPosition=kmd;this.lastBounds=lmd;this.anchorUpdateTimer=new DE(15);this.eventHandler=Gs(this);this.attach()};Ks.prototype.attach=function(){var a=this;this.eventHandler.listen(this.anchorUpdateTimer,"tick",function(){return mmd(a)})};Ks.prototype.isShown=function(){return this.root.style.display!="none"};Ks.prototype.dispose=function(){this.hide();this.eventHandler.removeAll()};
Ks.prototype.show=function(a){this.anchor=a;this.lastPosition=kmd;this.lastBounds=lmd;Kr(this.root,!0);mmd(this);this.anchorUpdateTimer.start()};
var mmd=function(a){var b;if(b=a.anchor){if(!(b=!a.lastPosition.equals(rI(a.anchor)))){b=a.lastBounds;var c=k6b(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=k6b(c),b=(c=l6b(c))?b.intersection(m6b(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;Js(b,"","");b.style.height=qI("",!0);var h=s6b(c,e,b,f,d);c=s6b(c,e^1,b,f^1,d);h.height>=
c.height||!d?v6b(b,h):v6b(b,c);a.lastPosition=rI(a.anchor);a.lastBounds=k6b(a.root)}};Ks.prototype.hide=function(){this.root.style.cssText="";Kr(this.root,!1);this.anchorUpdateTimer.stop();this.lastPosition=kmd;this.lastBounds=lmd};var y6b=function(a,b,c){this.tooltip=a;this.showDelayMs=b;this.hideDelayMs=c;this.displayed=!1;this.eventHandler=Gs(this)};y6b.prototype.showTooltip=function(){nmd(this);if(!this.isDisplayed()&&this.anchor){this.displayed=!0;var a;(a=this.showCallback)==null||a.call(this);v8(this)}};y6b.prototype.hideTooltip=function(){v8(this);if(this.isDisplayed()&&this.anchor){this.displayed=!1;var a;(a=this.hideCallback)==null||a.call(this);nmd(this)}else v8(this)};y6b.prototype.isDisplayed=function(){return this.displayed};
y6b.prototype.getAnchorElement=function(){return this.anchor};
var omd=function(a,b){a.hideCallback=b.hideTooltipCallback;a.showCallback=b.showTooltipCallback},smd=function(a,b){if(a.anchor)throw Error("Cf");a.anchor=b;pmd(a);qmd(a);rmd(a)},tmd=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)},umd=function(a){nmd(a);v8(a);a.showTimeout=setTimeout(function(){a.showTooltip()},a.showDelayMs)},vmd=function(a){nmd(a);v8(a);a.hideTimeout=
setTimeout(function(){a.hideTooltip()},a.hideDelayMs)},pmd=function(a){if(!a.anchor)throw Error("Df");a.eventHandler.listen(a.anchor,"mouseover",function(){a.isDisplayed()?a.showTooltip():umd(a)});a.eventHandler.listen(a.anchor,"touchstart",function(){umd(a)});a.eventHandler.listen(a.anchor,"focusin",function(b){a.tooltip.contains(b.relatedTarget)||umd(a)});a.eventHandler.listen(a.anchor,"touchend",function(){v8(a)});a.eventHandler.listen(a.anchor,"touchcancel",function(){v8(a)});a.eventHandler.listen(a.anchor,
"mouseout",function(){vmd(a)});a.eventHandler.listen(a.anchor,"focusout",function(){a.hideTooltip()})},qmd=function(a){a.eventHandler.listen(a.tooltip,"mouseover",function(){umd(a)});a.eventHandler.listen(a.tooltip,"mouseout",function(){vmd(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()})},rmd=function(a){a.eventHandler.listen(window,"touchmove",function(){vmd(a)});a.eventHandler.listen(window,
"focus",function(b){b.target!==a.anchor&&vmd(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()})},v8=function(a){clearTimeout(a.showTimeout);a.showTimeout=void 0},nmd=function(a){clearTimeout(a.hideTimeout);a.hideTimeout=void 0};var z6b=function(a,b){this.tooltip=a;this.tooltipEventTracker=b;this.popupService=w6b(this.tooltip,{anchorCorner:3,popupCorner:2})},E6b=function(a,b){smd(a.tooltipEventTracker,b);omd(a.tooltipEventTracker,{showTooltipCallback:function(){a.showTooltipCallback()},hideTooltipCallback:function(){a.hideTooltipCallback()}})};g=z6b.prototype;g.showTooltip=function(){this.tooltipEventTracker.showTooltip()};g.hideTooltip=function(){this.tooltipEventTracker.hideTooltip()};g.getRoot=function(){return this.tooltip};
g.isDisplayed=function(){return this.tooltipEventTracker.isDisplayed()};g.showTooltipCallback=function(){this.popupService.show(this.tooltipEventTracker.getAnchorElement())};g.hideTooltipCallback=function(){this.popupService.hide()};var x6b=function(a){var b=a.label,c=a.ariaLabel,d=a.classes,e=a.attributes;return qt('<div id="'+nt(a.id)+'" peoplekit-id="'+nt("suEOdc")+'" class="'+nt("peoplekitComponentsTooltipImplTooltip")+(d?" "+nt(d):"")+'" style="display: none;" aria-hidden="true"'+(c?' aria-label="'+nt(c)+'"':"")+(jI(e)?vGc(iI(e,fGc)?e.getContent():GGc(e)):"")+">"+ot(b)+"</div>")};var Ls=function(a,b,c){this.delegate=a;var d=a.getRoot();/-[a-z]/.test("hovercardId")||(F5b&&d.dataset?(/-[a-z]/.test("hovercardId")?0:F5b&&d.dataset?"hovercardId"in d.dataset:d.hasAttribute?d.hasAttribute("data-"+G5b("hovercardId")):d.getAttribute("data-"+G5b("hovercardId")))&&delete d.dataset.hovercardId:d.removeAttribute("data-"+G5b("hovercardId")));d="tt-"+a.getSelection().id().toString();this.tooltip=A6b(a.getRoot(),d,{label:b,ariaLabel:c});E6b(this.tooltip,a.getRoot())};Y(Ls,u8);
Ls.prototype.dispose=function(){tmd(this.tooltip.tooltipEventTracker);u8.prototype.dispose.call(this)};Ls.prototype.spotlight=function(){u8.prototype.spotlight.call(this);this.tooltip.showTooltip()};Ls.prototype.unspotlight=function(){u8.prototype.unspotlight.call(this);this.tooltip.hideTooltip()};Ls.prototype.drag=function(){u8.prototype.drag.call(this);this.tooltip.hideTooltip()};var Os=new r8({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 F6b=function(a,b,c,d,e,f){var h=this;this.root=a;this.enabledIcon=b;this.disabledIcon=c;this.tooltip=d;this.disableDomNavigation=e;this.internalIsDisabled=!1;this.eventHandler=Gs(this);this.onClick=f;this.eventHandler.listen(this.root,"click",function(k){var q;(q=h.onClick)==null||q.call(h,k)});this.disableDomNavigation?this.root.tabIndex=-1:(this.eventHandler.listen(this.root,"focus",function(){h.activate()}),this.eventHandler.listen(this.root,"blur",function(){h.deactivate()}))};g=F6b.prototype;
g.getRoot=function(){return this.root};g.enable=function(){this.root.disabled=!1;var a=this.root.querySelector("img");a&&(a.src=this.enabledIcon);this.internalIsDisabled=!1};g.disable=function(){this.root.disabled=!0;var a=this.root.querySelector("img");a&&this.disabledIcon&&(a.src=this.disabledIcon);this.internalIsDisabled=!0};g.isDisabled=function(){return this.internalIsDisabled};g.dispose=function(){this.eventHandler.removeAll();this.onClick=void 0;this.tooltip&&tmd(this.tooltip.tooltipEventTracker)};
g.activate=function(){this.root.classList.add("isFocused");this.tooltip&&this.tooltip.showTooltip()};g.deactivate=function(){this.root.classList.remove("isFocused");this.tooltip&&this.tooltip.hideTooltip()};g.isActive=function(){return this.root.classList.contains("isFocused")};var wmd=0;var D6b=function(a){var b=a.icon,c=a.tooltipLabel,d=a.ariaLabel;a=st();c=(c=c?"tt-c"+wmd++:"")?' data-tooltip-id="'+nt(c)+'" aria-labelledby="'+nt(c)+'"':d?' aria-label="'+nt(d)+'"':"";rt(tt(rt(a,'<button class="'+nt("peoplekitComponentsButtonIconIconButton")+'"'+c+">"),qt('<span><img src="'+nt(BGc(b))+'" draggable="false" aria-hidden="true" alt="" class="'+nt("peoplekitComponentsButtonIconAdaptableIcon")+'"/></span>')),"</button>");return a};var w8=function(a){this.delegate=a};g=w8.prototype;g.getAllIds=function(){return this.delegate.getAllIds()};g.toggleSelection=function(){this.delegate.toggleSelection()};g.activate=function(){this.delegate.activate()};g.deactivate=function(){this.delegate.deactivate()};g.spotlight=function(){this.delegate.spotlight()};g.unspotlight=function(){this.delegate.unspotlight()};g.getRoot=function(){return this.delegate.getRoot()};g.getSelection=function(){return this.delegate.getSelection()};
g.onKeyDown=function(a){this.delegate.onKeyDown(a)};g.onContextMenu=function(a,b){return this.delegate.onContextMenu(a,b)};g.updateWaldo=function(a,b){this.delegate.updateWaldo(a,b)};g.updateHubAvailabilityDot=function(a,b){this.delegate.updateHubAvailabilityDot(a,b)};g.getSupportedIntelligenceFeatures=function(){return this.delegate.getSupportedIntelligenceFeatures()};g.initializeIntelligence=function(){this.delegate.initializeIntelligence()};g.addTag=function(a){this.delegate.addTag(a)};
g.setMetaIcon=function(a){this.delegate.setMetaIcon(a)};g.dispose=function(){this.delegate.dispose()};var S9b=new Map([["pcw-select",3],["pcw-deselect",3],["pcw-click",3],["pcw-input",15]]);var H6b=function(a,b,c,d){this.delegate=a;var e=this;this.secondaryActionConfig=c;for(var f=Cs(a.getRoot(),"QChpEe");f.firstChild;)f.removeChild(f.firstChild);this.secondaryActionButton=G6b(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&&MG(this.buttonRoot,"menuitem");Ms({element:this.buttonRoot,veid:163534,actions:["impression",
"pcw-click"],componentId:"peoplekitweb"});this.secondaryActionButton.onClick=function(h){var k;(k=c.onClick)==null||k.call(c,h);e.buttonRoot.dispatchEvent(Ns(e.buttonRoot))};this.eventHandler=Gs(this);this.eventHandler.listen(a.getRoot(),"mouseover",this.displaySecondaryActionButton);this.eventHandler.listen(a.getRoot(),"mouseleave",this.hideSecondaryActionButton)};Y(H6b,w8);g=H6b.prototype;g.activate=function(){this.getRoot().classList.add("isActive");this.displaySecondaryActionButton()};
g.deactivate=function(){this.getRoot().classList.remove("isActive");this.secondaryActionButton.deactivate();this.hideSecondaryActionButton()};
g.onKeyDown=function(a){var b=a.event.keyCode===13,c=b&&a.event.platformModifierKey;if(this.secondaryActionConfig.disableDomNavigation){var d=a.event.keyCode===9;!d||a.event.shiftKey||this.secondaryActionButton.isActive()?d&&this.secondaryActionButton.isActive()&&(this.secondaryActionButton.deactivate(),NG(this.buttonRoot,"hidden","true"),a.stopPropagation(),a.preventDefault()):(this.secondaryActionButton.activate(),NG(this.buttonRoot,"hidden","false"),a.stopPropagation(),a.preventDefault())}if(c||
b&&this.secondaryActionButton.isActive())this.buttonRoot.click(),a.stopPropagation(),a.preventDefault()};g.dispose=function(){this.eventHandler.removeAll();this.secondaryActionButton.dispose();w8.prototype.dispose.call(this)};g.displaySecondaryActionButton=function(){this.buttonRoot.style.display=""};g.hideSecondaryActionButton=function(){this.getRoot().classList.contains("isActive")||(this.buttonRoot.style.display="none")};var xmd=function(){this.label="";this.type=0};g=xmd.prototype;g.getAutocompleteGroupingType=function(){return this.type};g.setAutocompleteGroupingType=function(a){this.type=a};g.getAutocompleteGroupingLabel=function(){return this.label};g.setAutocompleteGroupingLabel=function(a){this.label=a};g.getAutocompleteCustomGrouping=function(){return this.customGrouping};var ymd=function(){this.warnForExternalSelections=!1;this.decorationConfigRequest=function(){};this.resultCustomizationCallback=function(){return{}}};g=ymd.prototype;g.getAllowResultDeselection=function(){return!1};g.getWarnForExternalSelections=function(){return this.warnForExternalSelections};g.getResultDecorationConfigRequestCallback=function(){return this.decorationConfigRequest};g.getResultCustomizationCallback=function(){return this.resultCustomizationCallback};
g.setResultCustomizationCallback=function(a){this.resultCustomizationCallback=a};var zmd=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 xmd;this.result=new ymd;this.appearance=new J5b};g=zmd.prototype;g.getEnvironmentConfig=function(){return this.environmentConfig};g.getAutocompleteHeader=function(){return this.header};
g.setAutocompleteHeader=function(a){this.header=a};g.getShowSuggestions=function(){return this.showSuggestions};g.setShowSuggestions=function(a){this.showSuggestions=a};g.getAutocompleteMaxResultsBeforeScroll=function(){return this.maxResultsBeforeScroll};g.setAutocompleteMaxResultsBeforeScroll=function(a){this.maxResultsBeforeScroll=Math.max(Math.min(20,a),3)};g.getMoveAutocompleteAboveAnchorIfOffscreen=function(){return this.moveAutocompleteAboveAnchorIfOffscreen};
g.setMoveAutocompleteAboveAnchorIfOffscreen=function(a){this.moveAutocompleteAboveAnchorIfOffscreen=a};g.getAutoActivateFirstSuggestion=function(){return this.autoActivateFirstSuggestion};g.setAutoActivateFirstSuggestion=function(a){this.autoActivateFirstSuggestion=a};g.getAutoActivateFirstSearchResult=function(){return this.autoActivateFirstSearchResult};g.setAutoActivateFirstSearchResult=function(a){this.autoActivateFirstSearchResult=a};g.setEntryPoint=function(a){this.entryPoint=a};
g.getEntryPoint=function(){return this.entryPoint};g.getNoResultsMessage=function(){return this.noResultsMessage};g.setNoResultsMessage=function(a){this.noResultsMessage=a};g.getUseTabForResultSelection=function(){return!0};g.getClearSelectionsOnSearch=function(){return this.clearSelectionsOnSearch};g.setClearSelectionsOnSearch=function(a){this.clearSelectionsOnSearch=a};g.getAutocompleteGroupingType=function(){return this.grouping.getAutocompleteGroupingType()};g.setAutocompleteGroupingType=function(a){this.grouping.setAutocompleteGroupingType(a)};
g.getAutocompleteGroupingLabel=function(){return this.grouping.getAutocompleteGroupingLabel()};g.setAutocompleteGroupingLabel=function(a){this.grouping.setAutocompleteGroupingLabel(a)};g.getAutocompleteCustomGrouping=function(){return this.grouping.getAutocompleteCustomGrouping()};g.getAllowResultDeselection=function(){return this.result.getAllowResultDeselection()};g.getWarnForExternalSelections=function(){return this.result.getWarnForExternalSelections()};
g.getResultDecorationConfigRequestCallback=function(){return this.result.getResultDecorationConfigRequestCallback()};g.getResultCustomizationCallback=function(){return this.result.getResultCustomizationCallback()};g.setResultCustomizationCallback=function(a){this.result.setResultCustomizationCallback(a)};g.getDensity=function(){return this.appearance.getDensity()};g.setDensity=function(a){this.appearance.setDensity(a)};g.getTheme=function(){return this.appearance.getTheme()};g.setTheme=function(a){this.appearance.setTheme(a)};
g.getStyle=function(){return this.appearance.getStyle()};g.setStyle=function(a){this.appearance.setStyle(a)};var Amd=function(a){this.environmentConfig=a;this.autocomplete=new zmd(a);this.autocomplete.setClearSelectionsOnSearch(!0)};g=Amd.prototype;g.getEnvironmentConfig=function(){return this.environmentConfig};g.getAutocompleteHeader=function(){return this.autocomplete.getAutocompleteHeader()};g.setAutocompleteHeader=function(a){this.autocomplete.setAutocompleteHeader(a)};g.getShowSuggestions=function(){return this.autocomplete.getShowSuggestions()};g.setShowSuggestions=function(a){this.autocomplete.setShowSuggestions(a)};
g.getAutocompleteMaxResultsBeforeScroll=function(){return this.autocomplete.getAutocompleteMaxResultsBeforeScroll()};g.setAutocompleteMaxResultsBeforeScroll=function(a){this.autocomplete.setAutocompleteMaxResultsBeforeScroll(a)};g.getMoveAutocompleteAboveAnchorIfOffscreen=function(){return this.autocomplete.getMoveAutocompleteAboveAnchorIfOffscreen()};g.setMoveAutocompleteAboveAnchorIfOffscreen=function(a){this.autocomplete.setMoveAutocompleteAboveAnchorIfOffscreen(a)};
g.getAutoActivateFirstSuggestion=function(){return this.autocomplete.getAutoActivateFirstSuggestion()};g.setAutoActivateFirstSuggestion=function(a){this.autocomplete.setAutoActivateFirstSuggestion(a)};g.getAutoActivateFirstSearchResult=function(){return this.autocomplete.getAutoActivateFirstSearchResult()};g.setAutoActivateFirstSearchResult=function(a){this.autocomplete.setAutoActivateFirstSearchResult(a)};g.setEntryPoint=function(a){this.autocomplete.setEntryPoint(a)};g.getEntryPoint=function(){return this.autocomplete.getEntryPoint()};
g.getNoResultsMessage=function(){return this.autocomplete.getNoResultsMessage()};g.setNoResultsMessage=function(a){this.autocomplete.setNoResultsMessage(a)};g.getUseTabForResultSelection=function(){return this.autocomplete.getUseTabForResultSelection()};g.getClearSelectionsOnSearch=function(){return this.autocomplete.getClearSelectionsOnSearch()};g.setClearSelectionsOnSearch=function(a){this.autocomplete.setClearSelectionsOnSearch(a)};g.getAutocompleteGroupingType=function(){return this.autocomplete.getAutocompleteGroupingType()};
g.setAutocompleteGroupingType=function(a){this.autocomplete.setAutocompleteGroupingType(a)};g.getAutocompleteGroupingLabel=function(){return this.autocomplete.getAutocompleteGroupingLabel()};g.setAutocompleteGroupingLabel=function(a){this.autocomplete.setAutocompleteGroupingLabel(a)};g.getAutocompleteCustomGrouping=function(){return this.autocomplete.getAutocompleteCustomGrouping()};g.getAllowResultDeselection=function(){return this.autocomplete.getAllowResultDeselection()};
g.getWarnForExternalSelections=function(){return this.autocomplete.getWarnForExternalSelections()};g.getResultDecorationConfigRequestCallback=function(){return this.autocomplete.getResultDecorationConfigRequestCallback()};g.getResultCustomizationCallback=function(){return this.autocomplete.getResultCustomizationCallback()};g.setResultCustomizationCallback=function(a){this.autocomplete.setResultCustomizationCallback(a)};g.getDensity=function(){return this.autocomplete.getDensity()};g.setDensity=function(a){this.autocomplete.setDensity(a)};
g.getTheme=function(){return this.autocomplete.getTheme()};g.setTheme=function(a){this.autocomplete.setTheme(a)};g.getStyle=function(){return this.autocomplete.getStyle()};g.setStyle=function(a){this.autocomplete.setStyle(a)};var S6b=function(a){this.onHide=a;this.menuItemConfigs=[]};S6b.prototype.isSupported=function(a){return Bmd(this,a).length>0};
S6b.prototype.configure=function(a){var b=this,c=a.contextMenu,d=a.selection,e=a.activatableRoot,f=new Map;a=l(Bmd(this,d.result()));for(var h=a.next();!h.done;h=a.next()){h=h.value;var k=h.getContextMenuItemOptions();c.append(k);f.set(k.id,h)}Cmd(c,function(q){f.get(q.id).onContextMenuItemClick({options:q,selection:d,activatableRoot:e})});Dmd(c,function(){var q;(q=b.onHide)==null||q.call(b)})};var Bmd=function(a,b){return a.menuItemConfigs.filter(function(c){return c.isSupported(b)})};var Q6b=new r8({coreTypeOrder:[0],decoratorTypeOrder:[0],extractor:function(a){return a},getCompatibleTypes:function(){return new Set([0])}});var V6b=function(){this.groupingDecorators=[]};var T6b=function(a){this.contextMenuConfigurator=a;this.resultCustomizationDecorators=[]};var Z6b=function(a){this.root=a;this.length=0;this.isInteractive=!0};g=Z6b.prototype;g.getItems=function(){return Array.from(this.root.childNodes)};g.append=function(a){this.root.appendChild(a);++this.length};g.insert=function(a,b){if(a<0||a>this.length)throw new RangeError("Ff");if(a===this.length)this.append(b);else{var c=this.getItems();this.root.insertBefore(b,c[a]);++this.length}};
g.remove=function(a){if(a<0||a>=this.length)throw new RangeError("Ff");var b=this.getItems();this.root.removeChild(b[a]);--this.length};g.clear=function(){oz(this.root);this.length=0};g.getRoot=function(){return this.root};var X6b=function(a){return qt('<ul id="'+nt(a.id)+'" peoplekit-id="'+nt("rymPhb")+'" role="listbox" aria-multiselectable="true" class="'+nt("peoplekitComponentsListImplList")+'"></ul>')};var Y6b=Qs.getInstance();var Emd=function(a){this.isActive=!1;this.multiActivateAnchorIndex=this.spotlightIndex=-1;this.secondaryEventTargets=[];this.list=[].concat(p([]));this.shouldWrap=!!a.shouldWrap;this.activeItems=new Set([]);this.hideContextMenu=function(){}};g=Emd.prototype;
g.remove=function(a,b){var c=-1;a=l(a);for(var d=a.next();!d.done;d=a.next())d=d.value,c=this.list.indexOf(d),this.list.splice(c,1),this.activeItems.delete(d),b||(c<this.spotlightIndex?--this.spotlightIndex:c===this.spotlightIndex&&this.reset());c>=0&&b&&(this.isActive=!1,this.goToIndex(c,0))};
g.insert=function(a,b,c){this.list.splice.apply(this.list,[a,0].concat(p(b)));c?(Fmd(this),Gmd(this,a,a+b.length-1),this.spotlightIndex=a,this.list[this.spotlightIndex].spotlight()):a>=0&&a<=this.spotlightIndex&&(this.spotlightIndex+=b.length)};g.size=function(){return this.list.length};
g.prev=function(a){var b=this.spotlightIndex===0&&(!this.shouldWrap||a===1);!this.list.length||b?a=!1:(this.isActive?(b=this.spotlightIndex-1,b=b>=0?b:this.list.length+b):b=this.list.length-1,a=this.goToIndex(b,a));return a};g.next=function(a){var b=this.spotlightIndex===this.list.length-1&&(!this.shouldWrap||a===1);if(!this.list.length||b)a=!1;else{var c;this.isActive?c=(this.spotlightIndex+1)%this.list.length:c=0;a=this.goToIndex(c,a)}return a};
g.goToItem=function(a,b){a=this.list.indexOf(a);return this.goToIndex(a,b)};
g.goToIndex=function(a,b){this.hideContextMenu();if(!this.list.length||a===void 0||a<0)return!1;var c=this.isActive?this.spotlightIndex:-1;this.spotlightIndex=Math.max(Math.min(this.list.length-1,a),0);this.isActive&&this.list[c].unspotlight();this.isActive||(this.multiActivateAnchorIndex=a);this.isActive=!0;switch(b){case 0:Fmd(this);Hmd(this);break;case 3:Hmd(this);break;case 1:a=L6b(this.spotlightIndex,c,this.multiActivateAnchorIndex);b=L6b(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);Gmd(this,this.multiActivateAnchorIndex,this.spotlightIndex)}this.list[this.spotlightIndex].spotlight();return!0};
g.activateAll=function(){if(!(this.list.length<=0)){var a=this.spotlightIndex>=0?this.spotlightIndex:this.list.length-1;Fmd(this);for(var b=l(this.list),c=b.next();!c.done;c=b.next())c=c.value,c.activate(),this.activeItems.add(c);this.goToIndex(a,2)}};g.getSpotlitItem=function(){return this.isActive?this.list[this.spotlightIndex]:void 0};g.getActiveItems=function(){var a=this;return this.list.filter(function(b){return a.activeItems.has(b)})};
g.getItem=function(a){for(var b=l(this.list),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.getRoot();if(d===a||d.contains(a))return c}};g.getIndexOf=function(a){return this.list.indexOf(a)};g.clear=function(){this.reset();this.list.length=0};g.reset=function(){this.hideContextMenu();Fmd(this);var a=this.getSpotlitItem();a&&a.unspotlight();this.spotlightIndex=-1;this.isActive=!1};g.setSecondaryEventTargets=function(a){this.secondaryEventTargets=a};
g.onKeyDown=function(a){var b=[this.getSpotlitItem()].concat(p(this.secondaryEventTargets));b=l(b);for(var c=b.next();!c.done;c=b.next()){var d=void 0;(d=c.value)==null||d.onKeyDown(a);if(a.hasStoppedPropagationInternal)break}};g.onContextMenu=function(a,b){this.hideContextMenu();var c=a.event;if(c=c.target===c.currentTarget?this.getSpotlitItem():this.getItem(c.target))this.hideContextMenu=c.onContextMenu(a,b)};
var Hmd=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},Fmd=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()},Gmd=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 d7b=function(a){this.delegate=a};g=d7b.prototype;g.prev=function(a){a=this.delegate.prev(a);Imd(this);return a};g.next=function(a){a=this.delegate.next(a);Imd(this);return a};g.size=function(){return this.delegate.size()};g.goToItem=function(a,b){a=this.delegate.goToItem(a,b);Imd(this);return a};g.goToIndex=function(a,b){a=this.delegate.goToIndex(a,b);Imd(this);return a};g.activateAll=function(){this.delegate.activateAll()};g.getSpotlitItem=function(){return this.delegate.getSpotlitItem()};
g.getActiveItems=function(){return this.delegate.getActiveItems()};g.getItem=function(a){return this.delegate.getItem(a)};g.getIndexOf=function(a){return this.delegate.getIndexOf(a)};g.clear=function(){this.delegate.clear()};g.reset=function(){this.delegate.reset()};g.setSecondaryEventTargets=function(a){this.delegate.setSecondaryEventTargets(a)};g.onKeyDown=function(a){this.delegate.onKeyDown(a)};g.onContextMenu=function(a,b){this.delegate.onContextMenu(a,b)};
g.remove=function(a,b){this.delegate.remove(a,b)};g.insert=function(a,b,c){this.delegate.insert(a,b,c)};var Imd=function(a){(a=a.delegate.getSpotlitItem())&&c7b(a.getRoot())};var x8=function(a,b,c,d){this.list=a;this.navigatable=b;this.intelligentCollection=c;this.collapsibleConfig=d;this.items=[];this.isCollapsed=!1};x8.prototype.getContainerId=function(){return this.collapsibleConfig.resultListContainer.id};x8.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)};x8.prototype.getItems=function(){return this.isCollapsed?[]:this.items};
x8.prototype.dispose=function(){for(var a=l(this.items),b=a.next();!b.done;b=a.next())b.value.dispose();this.items=[]};var Jmd=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",c7b(c));a.isCollapsed=b}};var C7b=function(a,b,c,d){this.list=a;this.navigatable=b;this.intelligentCollection=c;this.resultListItemFactory=d};g=C7b.prototype;g.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))};g.getOrCreateSection=function(){this.section||(this.section=new x8(this.list,this.navigatable,this.intelligentCollection));return this.section};
g.clear=function(){var a;(a=this.section)==null||a.dispose();this.section=void 0;this.list.clear();this.navigatable.clear();this.intelligentCollection.clear()};g.reset=function(){this.navigatable.reset()};g.getItems=function(){var a,b;return(b=(a=this.section)==null?void 0:a.getItems())!=null?b:[]};g.done=function(){};var Kmd=function(a,b){this.itemsSection=a;this.groupingHeader=b};Kmd.prototype.append=function(a){this.itemsSection.append(a)};Kmd.prototype.getItems=function(){return this.itemsSection.getItems()};Kmd.prototype.dispose=function(){this.groupingHeader.dispose();this.itemsSection.dispose()};var Lmd=function(a){var b=a.listId;return qt('<div id="'+nt(a.id)+'" peoplekit-id="'+nt("E9WxSb")+'" role="listitem"><div role="group"><div peoplekit-id="'+nt("Bm3u4d")+'"></div><div id="'+nt(b)+'" role="region" class="'+nt("peoplekitComponentsResultListCoreGroupSectionListContainer")+'" peoplekit-id="'+nt("tjneg")+'"></div></div></div>')};var y8=function(a){this.delegate=a};g=y8.prototype;g.getRoot=function(){return this.delegate.getRoot()};g.getHeader=function(){return this.delegate.getHeader()};g.getActionItems=function(){return this.delegate.getActionItems()};g.dispose=function(){this.delegate.dispose()};g.setCollapsible=function(a){this.delegate.setCollapsible(a)};g.getCollapsible=function(){return this.delegate.getCollapsible()};g.getActivatable=function(){return this.delegate.getActivatable()};var Mmd=function(a){var b=a.id,c=a.groupName;a=a.classes;return qt('<div class="'+nt("peoplekitComponentsGroupingHeaderCollapsibleChevronContainer")+" "+(a?" "+nt(a):"")+'" peoplekit-id="'+nt("wgPSWd")+'" id="'+nt(b)+'" aria-expanded="false" role="menuitem" aria-label="'+nt("To expand "+c+" group, press enter")+'"><svg class="'+nt("peoplekitComponentsGroupingHeaderCollapsibleChevron")+'" viewBox="0 0 24 24" height="24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg></div>')},
Nmd=function(a){return"To "+a.action+" "+a.groupName+" group, press enter"};var Rs=function(a,b){this.delegate=a;var c=this;this.isCollapsed=b;this.eventHandler=Gs(this);this.chevron=Hp(Mmd,{id:Es(Qs.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);Cs(this.getRoot(),"QChpEe").appendChild(this.chevron);b||(this.chevron.classList.toggle("rotate"),NG(this.chevron,"expanded",!0),BAc(this.chevron,Nmd({groupName:this.getHeader(),action:"collapse"})))};Y(Rs,y8);Rs.prototype.getActionItems=function(){return this.groupingHeaderActionItems};Rs.prototype.dispose=function(){this.eventHandler.removeAll();y8.prototype.dispose.call(this)};
Rs.prototype.setCollapsible=function(a){y8.prototype.setCollapsible.call(this,a);Jmd(a,this.isCollapsed);this.chevron.setAttribute("aria-controls",a.getContainerId());Omd(this)};Rs.prototype.toggleView=function(){this.isCollapsed=!this.isCollapsed;this.chevron.classList.toggle("rotate");Jmd(this.getCollapsible(),this.isCollapsed);Omd(this)};var Omd=function(a){var b=a.isCollapsed?"expand":"collapse";NG(a.chevron,"expanded",!a.isCollapsed);BAc(a.chevron,Nmd({groupName:a.getHeader(),action:b}))};var g7b=function(a){var b=this;this.root=a;this.internalIsDisabled=!1;this.eventHandler=Gs(this);this.eventHandler.listen(this.root,"click",function(c){var d;(d=b.onClick)==null||d.call(b,c)})};g=g7b.prototype;g.getRoot=function(){return this.root};g.enable=function(){this.root.classList.remove("isDisabled");this.root.disabled=!1;this.root.setAttribute("aria-disabled","false");this.internalIsDisabled=!1};
g.disable=function(){this.root.classList.add("isDisabled");this.root.disabled=!0;this.root.setAttribute("aria-disabled","true");this.internalIsDisabled=!0};g.isDisabled=function(){return this.internalIsDisabled};g.dispose=function(){this.eventHandler.removeAll();this.onClick=void 0};var f7b=function(a){a=a.label;return qt('<button class="'+nt("peoplekitComponentsButtonLabelLabelButton")+'">'+ot(a)+"</button>")};var r$b=function(a,b,c){var d=this;this.root=a;this.actionListeners=[];this.eventHandler=Gs(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=Cs(this.root,"Sx9Kwc");this.startFocusableElement=Cs(this.root,"tYwGbe");this.endFocusableElement=Cs(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()};g=r$b.prototype;g.subscribeToAction=function(a){this.actionListeners.push(a)};g.dispatchAction=function(a){var b=this.actionButtons.get(a);if(b&&!b.isDisabled()){for(var c=l(this.actionListeners),d=c.next();!d.done;d=c.next())d=d.value,d(a);a=b.getRoot();a.dispatchEvent(Ns(a))}};g.disableAction=function(a){(a=this.actionButtons.get(a))&&a.disable()};
g.enableAction=function(a){(a=this.actionButtons.get(a))&&a.enable()};g.getRoot=function(){return this.root};g.onDialogClick=function(a){a.stopPropagation()};g.onDialogKeyDown=function(a){a.keyCode===27&&(this.dispatchAction(0),a.stopPropagation())};g.onStartFocusableElementFocus=function(){this.focusLastFocusableElement()};g.onEndFocusableElementFocus=function(){this.focusFirstFocusableElement()};g.focusFirstFocusableElement=function(){var a=E5b(this.dialog);a.length&&a[0].focus()};
g.focusLastFocusableElement=function(){var a=E5b(this.dialog);a.length&&a[a.length-1].focus()};g.onScrimClick=function(){this.dispatchAction(0)};g.dispose=function(){this.eventHandler.removeAll();this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.actionListeners.length=0;for(var a=l(this.actionButtons.values()),b=a.next();!b.done;b=a.next())b.value.dispose();this.actionButtons.clear()};var m7b=function(a){var b=a.content,c=a.header;a=a.confirmAction;return rt(tt(tt(rt(tt(rt(tt(rt(st(),'<div peoplekit-id="'+nt("GGAcbc")+'" class="'+nt("peoplekitComponentsDialogImplScrim")+'" role="dialog" aria-modal="true"><div peoplekit-id="'+nt("tYwGbe")+'" tabindex="0" role="application"></div><div peoplekit-id="'+nt("Sx9Kwc")+'" class="'+nt("peoplekitComponentsDialogImplDialog")+'" tabindex="-1" role="dialog">'),jI(c)?ot(c):""),'<div class="'+nt("peoplekitComponentsDialogImplContent")+'">'),
ot(b)),'</div><div class="'+nt("peoplekitComponentsDialogImplActions")+'">'),tt(st(),Pmd("IbE0S"))),a?tt(tt(st(),qt('<div class="'+nt("peoplekitComponentsDialogImplActionDivider")+'"></div>')),tt(st(),Pmd("McfNlf"))):""),'</div></div><div peoplekit-id="'+nt("dYgZK")+'" tabindex="0" role="application"></div></div>')},Pmd=function(a){return qt('<div peoplekit-id="'+nt(a)+'"></div>')},Qmd=function(a){a=a.header;return qt('<div class="'+nt("peoplekitComponentsDialogImplTextHeader")+'">'+ot(a)+"</div>")};var n7b=function(a,b){var c=this;this.root=a;this.closeButton=b;this.actionListeners=[];this.eventHandler=Gs(this);this.dialog=Cs(this.root,"Sx9Kwc");this.startFocusableElement=Cs(this.root,"tYwGbe");this.endFocusableElement=Cs(this.root,"dYgZK");b.onClick=function(){c.dispatchAction(2)};this.eventHandler.listen(this.root,"click",function(){c.onScrimClick()});this.eventHandler.listen(this.dialog,"click",function(d){c.onDialogClick(d)});this.eventHandler.listen(this.dialog,"keydown",function(d){c.onDialogKeyDown(d)});
this.eventHandler.listen(this.startFocusableElement,"focus",function(){c.onStartFocusableElementFocus()});this.eventHandler.listen(this.endFocusableElement,"focus",function(){c.onEndFocusableElementFocus()});this.focusFirstFocusableElement()};g=n7b.prototype;g.subscribeToAction=function(a){this.actionListeners.push(a)};g.dispatchAction=function(a){if(!this.closeButton.isDisabled()&&a===2)for(var b=l(this.actionListeners),c=b.next();!c.done;c=b.next())c=c.value,c(a)};g.disableAction=function(){this.closeButton.disable()};
g.enableAction=function(){this.closeButton.enable()};g.getRoot=function(){return this.root};g.dispose=function(){this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.eventHandler.removeAll();this.actionListeners.length=0;this.closeButton.dispose()};g.onDialogClick=function(a){a.stopPropagation()};g.onDialogKeyDown=function(a){a.keyCode===27&&(this.dispatchAction(2),a.stopPropagation())};g.onStartFocusableElementFocus=function(){this.focusLastFocusableElement()};
g.onEndFocusableElementFocus=function(){this.focusFirstFocusableElement()};g.focusFirstFocusableElement=function(){var a=E5b(this.dialog);a.length&&a[0].focus()};g.focusLastFocusableElement=function(){var a=E5b(this.dialog);a.length&&a[a.length-1].focus()};g.onScrimClick=function(){this.dispatchAction(2)};var i7b=new Map([[0,"peoplekitStyleLegacy"],[1,"peopleKitStyleGm3"]]);var k7b=new Map([[0,"peoplekitThemeLight"],[1,"peoplekitThemeDark"]]);var Rmd=function(a){var b=a.learnMoreLinkUrl,c=a.learnMoreLinkText;return qt("<div>"+ot(a.description)+'  <a href="'+nt(pt(b))+'" target="_blank" class="'+nt("peoplekitComponentsGroupingHeaderInfoLearnMoreLink")+'" peoplekit-id="'+nt("lh87ke")+'">'+ot(c)+"</a></div>")},Smd=function(a){var b=a.id,c=a.ariaLabel;a=a.classes;return qt('<div class="'+nt("peoplekitComponentsGroupingHeaderInfoInfoIconContainer")+" "+(a?" "+nt(a):"")+'" peoplekit-id="'+nt("CLghmc")+'" id="'+nt(b)+'" aria-label="'+nt(c)+'"><svg class="'+
nt("peoplekitComponentsGroupingHeaderInfoInfoIcon")+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg></div>')};var r7b=function(a,b,c,d){this.delegate=a;var e=this;this.infoGroupConfig=b;this.appearanceConfig=c;this.infoGroupingHeaderVeIds=d;this.infoIcon=Hp(Smd,{id:Es(Qs.getInstance()),ariaLabel:"For more information about "+this.getHeader()+", press enter.",classes:"TdcT2c"});Cs(this.getRoot(),"xiK4Cd").appendChild(this.infoIcon);this.infoGroupingHeaderVeIds.infoIconVeId!==void 0&&Ms({element:this.infoIcon,veid:this.infoGroupingHeaderVeIds.infoIconVeId,actions:["impression","pcw-click"],componentId:"peoplekitweb"});
this.eventHandler=Gs(this);this.eventHandler.listen(this.infoIcon,"click",function(){Tmd(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&&(Tmd(e),f.stopPropagation(),f.preventDefault())}})};Y(r7b,y8);
var Tmd=function(a){a.infoIcon.dispatchEvent(Ns(a.infoIcon));var b=Qmd({header:a.infoGroupConfig.infoDialogHeader}),c=Rmd({description:a.infoGroupConfig.learnMoreMessage,learnMoreLinkUrl:a.infoGroupConfig.learnMoreUrl,learnMoreLinkText:a.infoGroupConfig.learnMoreLinkText}),d=a.getRoot().ownerDocument.activeElement,e=a.getRoot().closest('[class~="aU4VQc"]'),f=o7b(e,c,a.appearanceConfig,b),h=Cs(f.getRoot(),"lh87ke");a.infoGroupingHeaderVeIds.learnMoreLinkVeId!==void 0&&Ms({element:h,veid:a.infoGroupingHeaderVeIds.learnMoreLinkVeId,
actions:["impression","pcw-click"],componentId:"peoplekitweb"});a.eventHandler.listen(h,"click",function(){h.dispatchEvent(Ns(h))});f.subscribeToAction(function(k){k===2&&(f.dispose(),d&&d.focus())})};r7b.prototype.getActionItems=function(){return this.groupingHeaderActionItems};r7b.prototype.dispose=function(){this.eventHandler.removeAll();y8.prototype.dispose.call(this)};var q7b=function(a,b){this.root=a;this.header=b};g=q7b.prototype;g.getHeader=function(){return this.header};g.getActionItems=function(){return[]};g.dispose=function(){};g.getRoot=function(){return this.root};g.setCollapsible=function(a){this.collapsible=a};g.getCollapsible=function(){return this.collapsible};g.getActivatable=function(){};var p7b=function(a){var b=a.id,c=a.header;a=st();b=qt('<div class="'+nt("peoplekitComponentsGroupingHeaderGroupingHeader")+'" id="'+nt(b)+'" peoplekit-id="'+nt("XLuqBd")+'" role="menu"><div class="'+nt("peoplekitComponentsGroupingHeaderGroupingHeaderRow")+'"><div class="'+nt("peoplekitComponentsGroupingHeaderHeader")+'">'+ot(c)+'</div><div class="'+nt("peoplekitComponentsGroupingHeaderAction")+'"><div class="'+nt("peoplekitComponentsGroupingHeaderActionRow")+'"><div class="'+nt("peoplekitComponentsGroupingHeaderLeft")+
'" peoplekit-id="'+nt("xiK4Cd")+'"></div><div class="'+nt("peoplekitComponentsGroupingHeaderRight")+'" peoplekit-id="'+nt("QChpEe")+'"></div></div></div></div></div>');return tt(a,b)};var s7b=function(a){this.delegate=a};Y(s7b,y8);g=s7b.prototype;g.activate=function(){};g.deactivate=function(){};g.getSelection=function(){throw Error("Gf");};g.toggleSelection=function(){};g.onContextMenu=function(){return function(){}};g.spotlight=function(){var a=this.getActionItems();a.length&&(this.activeActionItemIndex=0,a[this.activeActionItemIndex].focus())};
g.unspotlight=function(){this.activeActionItemIndex!==void 0&&(this.getActionItems()[this.activeActionItemIndex].unfocus(),this.activeActionItemIndex=void 0)};
g.onKeyDown=function(a){if(this.activeActionItemIndex!==void 0){var b=this.getActionItems(),c=b[this.activeActionItemIndex];c.onKeyDown(a);if(!a.hasStoppedPropagationInternal)switch(a.event.keyCode){case 9:c.unfocus(),this.activeActionItemIndex=(this.activeActionItemIndex+1)%b.length,b[this.activeActionItemIndex].focus(),a.stopPropagation(),a.preventDefault()}}};g.getActivatable=function(){return this};var z8=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=[]};g=z8.prototype;g.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))};
g.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=t7b(a,this.appearanceConfig);c=this.createSection(c);this.sections.push({section:c,groupId:b});return c};g.getItems=function(){return Umd(this).flatMap(function(a){return a.getItems()})};g.reset=function(a){this.grouping.reset(a);this.navigatable.reset()};
g.clear=function(){var a=Umd(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};g.done=function(){};var Umd=function(a){a=new Set(a.sections.map(function(b){return b.section}));return[].concat(p(a.values()))};var u7b=function(){z8.apply(this,arguments)};Y(u7b,z8);
u7b.prototype.createSection=function(a){var b=Es(Qs.getInstance()),c=Es(Qs.getInstance()),d=Hp(Lmd,{id:b,listId:c});this.list.append(d);var e=Cs(d,"tjneg");b=$6b(e);if(a){Cs(d,"Bm3u4d").appendChild(a.getRoot());c=this.navigatable;var f=this.intelligentCollection;e={collapsibleResultListContainer:e,collapsibleSectionRoot:d};d=a.getActivatable();var h;d&&(c.insert(c.size(),[d],!1),e&&(h={sectionRoot:e.collapsibleSectionRoot,resultListContainer:e.collapsibleResultListContainer,before:d}));b=new x8(b,
c,f,h);h&&d&&d.setCollapsible(b);return new Kmd(b,a)}return new x8(b,this.navigatable,this.intelligentCollection)};var B7b=function(a,b){this.delegate=a;this.grouping=b;this.demotedResults=new Map};g=B7b.prototype;g.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);w7b(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)};g.getItems=function(){return this.delegate.getItems()};
g.clear=function(){this.delegate.clear();this.demotedResults.clear()};g.reset=function(a){this.delegate.reset(a)};g.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 x7b=function(){z8.apply(this,arguments)};Y(x7b,z8);x7b.prototype.createSection=function(a){this.section||(this.section=new x8(this.list,this.navigatable,this.intelligentCollection));a&&this.list.append(a.getRoot());return this.section};x7b.prototype.clear=function(){z8.prototype.clear.call(this);this.section=void 0};var Vmd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Vmd,n);Vmd.prototype.getEnablePersonalizedQueryMatching=function(){return kk(this,7)};var Vs=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Vs,n);Vs.prototype.getRequestType=function(){return pk(this,1)};Vs.prototype.setRequestType=function(a){return Rk(this,1,a)};var Wmd=[0,ofc,99,[0,Xu,jfc],[0],[0],[0,Xu,-7],[0,Xu],[0,Xu,Wu],Tld,[0,Xu],[0,Xu,-1]];var Xmd=function(){var a=new Vs,b=new o8;this.experimentFlags_=X(a,o8,107,b)};Xmd.prototype.getExperimentFlags=function(){return this.experimentFlags_};Xmd.prototype.getExperimentIds=function(){return[]};var M9b=function(a,b){this.cache=b;this.overriddenExperiments=W(a,o8,3)||new o8};M9b.prototype.getExperiments=function(){var a,b=((a=this.cache.getExperimentFlags())==null?void 0:W(a,o8,107))||new o8;a=this.overriddenExperiments;jk(a,3)&&(a=kk(a,3),Nk(b,3,a));return b};M9b.prototype.getExperimentIds=function(){return this.cache.getExperimentIds()};var Ymd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ymd,n);g=Ymd.prototype;g.getCacheStaleSec=function(){return Ej(this,4,14400)};g.getCacheExpiredSec=function(){return Ej(this,5,63158400)};g.getRpcTimeoutSec=function(){return Ej(this,7,60)};g.getApiKey=function(){return Rc(this,8)};g.setApiKey=function(a){return Qk(this,8,a)};g.getEnableClearcut=function(){return kk(this,13,!0)};g.setEnableClearcut=function(a){return Nk(this,13,a)};var J9b=Kda(Ymd);var I9b;var Zmd=function(){};Zmd.prototype.getExperimentFlags=function(){return new Vs};Zmd.prototype.getExperimentIds=function(){return[]};var dt=function(){};dt.prototype.prefetch=function(){};dt.prototype.loadExperiments=function(){return new Zmd};var A8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(A8,n);A8.prototype.getVersion=function(){return xk(this,1)};A8.prototype.setVersion=function(a){return Ek(this,1,a)};A8.prototype.getVersionOrUndefined=function(){return Pb(rk(this,1))};A8.prototype.getVersionOrUndefined_asString=function(){return Eu(this,1)};var B8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(B8,n);g=B8.prototype;g.getApplication=function(){return pk(this,1)};g.setApplication=function(a){return Rk(this,1,a)};g.getApplicationOrUndefined=function(){return Nm(this,1)};g.getVersion=function(){return xk(this,2)};g.setVersion=function(a){return Ek(this,2,a)};g.getVersionOrUndefined=function(){return Pb(rk(this,2))};g.getVersionOrUndefined_asString=function(){return Eu(this,2)};var $md=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($md,n);g=$md.prototype;g.getRequestType=function(){return pk(this,1)};g.setRequestType=function(a){return Rk(this,1,a)};g.getProfileId=function(){return Rc(this,2)};g.getProfileId_legacyNullable=function(){return $k(this,2)};g.setProfileId=function(a){return Qk(this,2,a)};g.hasProfileId=function(){return mk(this,2)};g.getCaller=function(){return W(this,A8,3)};g.setCaller=function(a){return X(this,A8,3,a)};
g.getInstanceId=function(){return Rc(this,4)};g.setInstanceId=function(a){return Qk(this,4,a)};g.clearInstanceId=function(){Bu(this,4)};g.hasInstanceId=function(){return mk(this,4)};g.getInstanceIdOrUndefined=function(){return Hu(this,4)};g.getClient=function(){return W(this,B8,5)};g.setClient=function(a){return X(this,B8,5,a)};g.hasClient=function(){return tk(this,B8,5)};var Ts=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ts,n);g=Ts.prototype;g.getErrorType=function(){return pk(this,2,1)};g.setErrorType=function(a){return Rk(this,2,a)};g.hasErrorType=function(){return nk(this,2)};g.getErrorMessage=function(){return Rc(this,3)};g.setErrorMessage=function(a){Qk(this,3,a)};g.getStatusCode=function(){return pk(this,4)};g.setStatusCode=function(a){Rk(this,4,a)};g.hasStatusCode=function(){return nk(this,4)};var U7b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(U7b,n);g=U7b.prototype;g.getExperimentFlags=function(){return W(this,Vs,1)};g.setExperimentFlags=function(a){return X(this,Vs,1,a)};g.hasExperimentFlags=function(){return tk(this,Vs,1)};g.getError=function(){return W(this,Ts,2)};g.setError=function(a){X(this,Ts,2,a)};g.hasError=function(){return tk(this,Ts,2)};g.getSource=function(){return pk(this,3)};g.setSource=function(a){return Rk(this,3,a)};
g.hasSource=function(){return nk(this,3)};g.getSourceOrUndefined=function(){return Nm(this,3)};g.getInstanceId=function(){return Rc(this,4)};g.setInstanceId=function(a){return Qk(this,4,a)};g.clearInstanceId=function(){Bu(this,4)};g.hasInstanceId=function(){return mk(this,4)};g.getInstanceIdOrUndefined=function(){return Hu(this,4)};g.getExperimentIdsList=function(a){return Fj(this,5,Bj(a))};g.setExperimentIdsList=function(a){return vc(this,5,a,Cb)};g.getExperimentIds=function(){return Ju(this,5)};
g.setExperimentIds=function(a){Gec(this,5,a)};var and=function(a,b){this.client_=a;this.runtime_=b;G7b();this.apiKey_=a.getApiKey();this.apiRoot_=Rc(this.client_,10)||CLa("peoplestackwebexperiments-pa",this.runtime_.getPeopleApiEnv())};and.prototype.getClient=function(){return this.client_};and.prototype.getApiKey=function(){return this.apiKey_};var C8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(C8,n);g=C8.prototype;g.getExperimentFlags=function(){return W(this,Vs,1)};g.setExperimentFlags=function(a){return X(this,Vs,1,a)};g.hasExperimentFlags=function(){return tk(this,Vs,1)};g.getObfuscatedGaiaId=function(){return $k(this,2)};g.getObfuscatedGaiaId_legacyNullable=function(){return $k(this,2)};g.setObfuscatedGaiaId=function(a){return Qk(this,2,a)};g.getExperimentIdsList=function(a){return Fj(this,3,Bj(a))};
g.setExperimentIdsList=function(a){return vc(this,3,a,Cb)};g.getExperimentIds=function(){return Ju(this,3)};g.setExperimentIds=function(a){Gec(this,3,a)};var bnd=Tc(C8);var cnd=[0,Wmd,nfc,kfc];var dnd=function(a){var b=void 0;b=b===void 0?Date.now:b;this.clientConfig_=a;this.now_=b},end=function(a,b,c){a=a.now_()-c*1E3;return b>a};dnd.prototype.getCacheState=function(a){var b=this.clientConfig_.getClient();b=Ej(b,3,1800);if(end(this,a,b))return 1;b=this.clientConfig_.getClient().getCacheStaleSec();if(end(this,a,b))return 2;b=this.clientConfig_.getClient().getCacheExpiredSec();return end(this,a,b)?3:4};var fnd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(fnd,n);g=fnd.prototype;g.getExperiments=function(){return W(this,C8,2)};g.setExperiments=function(a){return X(this,C8,2,a)};g.hasExperiments=function(){return tk(this,C8,2)};g.getInstanceId=function(){return Rc(this,4)};g.setInstanceId=function(a){return Qk(this,4,a)};g.clearInstanceId=function(){Bu(this,4)};g.hasInstanceId=function(){return mk(this,4)};g.getInstanceIdOrUndefined=function(){return Hu(this,4)};var gnd=[0,nfc,cnd,jfc,nfc];var hnd=Jda(fnd,gnd),ind=function(a){return function(b){var c=new $ec;Fda(b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c,Oc(a));return fba(afc(c))}}(gnd);var D8=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)};Y(D8,Error);var Us=function(a,b,c){b=b===void 0?2:b;D8.call(this,b,c===void 0?"{errorType: "+a+", statusCode: "+b+"}":c);this.name="ExperimentsError";this.type=a};Y(Us,D8);var jnd=new Us(6);var knd=function(){};var E8=function(){};zu(E8,knd);E8.prototype.getCount=function(){for(var a=0,b=l(this),c=b.next();!c.done;c=b.next())a++;return a};E8.prototype[Symbol.iterator]=function(){return Ktc(this.__iterator__(!0)).toEs6()};E8.prototype.clear=function(){var a=Array.from(this);a=l(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};zu(K7b,E8);var Z7b=function(a){if(a.cachedIsStorageAvailable_===null){var b=a.storage_;if(b)try{b.setItem("__sak","1");b.removeItem("__sak");var c=!0}catch(d){c=d instanceof DOMException&&(d.name==="QuotaExceededError"||d.code===22||d.code===1014||d.name==="NS_ERROR_DOM_QUOTA_REACHED")&&b&&b.length!==0}else c=!1;a.cachedIsStorageAvailable_=c}return a.cachedIsStorageAvailable_};g=K7b.prototype;
g.set=function(a,b){F8(this);try{this.storage_.setItem(a,b)}catch(c){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};g.get=function(a){F8(this);a=this.storage_.getItem(a);if(typeof a!=="string"&&a!==null)throw"Storage mechanism: Invalid value was encountered";return a};g.remove=function(a){F8(this);this.storage_.removeItem(a)};g.getCount=function(){F8(this);return this.storage_.length};
g.__iterator__=function(a){F8(this);var b=0,c=this.storage_,d=new JC;d.next=function(){if(b>=c.length)return Jtc;var e=c.key(b++);if(a)return{value:e,done:!1};e=c.getItem(e);if(typeof e!=="string")throw"Storage mechanism: Invalid value was encountered";return{value:e,done:!1}};return d};g.clear=function(){F8(this);this.storage_.clear()};g.key=function(a){F8(this);return this.storage_.key(a)};var F8=function(a){if(a.storage_==null)throw Error("Hf");Z7b(a)||fa(Error("Hf"))};zu(L7b,K7b);zu(Ss,E8);Ss.prototype.set=function(a,b){this.mechanism_.set(this.prefix_+a,b)};Ss.prototype.get=function(a){return this.mechanism_.get(this.prefix_+a)};Ss.prototype.remove=function(a){this.mechanism_.remove(this.prefix_+a)};
Ss.prototype.__iterator__=function(a){var b=this.mechanism_[Symbol.iterator](),c=this,d=new JC;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 M7b=["PeopleStackExperiments"],lnd=new Set([4,0]),$7b=function(a,b){b=b===void 0?new L7b:b;this.clientConfig_=a;this.transformer_=new dnd(this.clientConfig_);this.localStorage_=b;this.storage_=new Ss(this.localStorage_,"pse/591286274")};$7b.prototype.set=function(a,b){var c=J7b(a,b.getObfuscatedGaiaId_legacyNullable());if(!c)throw jnd;var d=new fnd;b=Qk(d,1,c).setExperiments(b);d=Date.now();a=Ek(b,3,d).setInstanceId(a.getInstanceId());this.storage_.set(c,Dca(ind(a)));return c};
$7b.prototype.get=function(a){a=J7b(a);if(!a)return null;a=this.storage_.get(a);if(!a)return null;a=mnd(a);if(a&&this.transformer_.getCacheState(Uc(xk(a,3)))!==4){var b=this.transformer_,c;var d={keyPath:Rc(a,1),experiments:(c=a.getExperiments())!=null?c:new C8,lastUpdated:new Date(Uc(xk(a,3))),state:b.getCacheState(Uc(xk(a,3))),instanceId:a.getInstanceId()}}else d=null;return d};var mnd=function(a){if(!a)return null;try{return hnd(a)}catch(b){return null}};
$7b.prototype.delete=function(a){this.storage_.remove(a);return!0};
$7b.prototype.clean=function(){for(var a=[].concat(p(this.storage_)),b=l(a),c=b.next();!c.done;c=b.next()){c=c.value;var d=lnd,e=d.has,f;a:{if(c&&(f=mnd(this.storage_.get(c)))&&wk(f,3)){f=this.transformer_.getCacheState(Uc(xk(f,3)));break a}f=0}e.call(d,f)&&this.delete(c)}a:{if(a.length>10)try{this.storage_.set("__sak","1"),this.storage_.remove("__sak")}catch(h){if(h==="Storage mechanism: Quota exceeded"){a=!0;break a}}a=!1}a&&this.storage_.clear();a=l(N7b(this.localStorage_));for(b=a.next();!b.done;b=
a.next())b.value.clear()};var a8b=function(a){var b=void 0;b=b===void 0?new Map:b;this.clientConfig_=a;this.transformer_=new dnd(this.clientConfig_);this.cache_=b};a8b.prototype.set=function(a,b){var c=J7b(a,b.getObfuscatedGaiaId_legacyNullable());if(!c)throw jnd;a={keyPath:c,experiments:b,lastUpdated:new Date,state:1,instanceId:a.getInstanceId()};this.cache_.set(c,a);return c};
a8b.prototype.get=function(a){a=J7b(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};a8b.prototype.delete=function(a){this.cache_.delete(a);return!0};a8b.prototype.clean=function(){var a=this;this.cache_.forEach(function(b,c){a.transformer_.getCacheState(b.lastUpdated.getTime())===4&&a.cache_.delete(c)})};var nnd=function(){};g=nnd.prototype;g.start=function(){};g.stop=function(){};g.count=function(){};g.latency=function(){};g.error=function(){};g.status=function(){};g.logError=function(){};var ond=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ond,n);g=ond.prototype;g.getCaller=function(){return W(this,A8,1)};g.setCaller=function(a){return X(this,A8,1,a)};g.getClient=function(){return W(this,B8,2)};g.setClient=function(a){return X(this,B8,2,a)};g.hasClient=function(){return tk(this,B8,2)};var pnd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(pnd,n);g=pnd.prototype;g.getRequestType=function(){return pk(this,1)};g.setRequestType=function(a){return Rk(this,1,a)};g.setProperties=function(a){return X(this,ond,3,a)};g.getInstanceId=function(){return Rc(this,4)};g.setInstanceId=function(a){return Qk(this,4,a)};g.clearInstanceId=function(){Bu(this,4)};g.hasInstanceId=function(){return mk(this,4)};g.getInstanceIdOrUndefined=function(){return Hu(this,4)};var qnd=new o0("/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",pnd,C8,function(a){return a.serialize()},bnd);var rnd=function(a){this.client_=new ubd({format:"jspb"});this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};rnd.prototype.getExperimentFlags=function(a,b){return t0(this.client_,this.hostname_+"/$rpc/peoplestackwebexperiments.PeopleStackExperimentsService/GetExperimentFlags",a,b||{},qnd)};var snd=function(a,b){this.clientRequest_=a;this.rpcClient_=b;this.metric_=new nnd};snd.prototype.getMetric=function(){return this.metric_};snd.prototype.send=function(a){var b=this,c;return z(function(d){var e=(new ond).setCaller(b.clientRequest_.getCaller()).setClient(b.clientRequest_.getClient());c=(new pnd).setRequestType(b.clientRequest_.getRequestType()).setInstanceId(b.clientRequest_.getInstanceIdOrUndefined()).setProperties(e);return d.return(b.rpcClient_.getExperimentFlags(c,a))})};
snd.prototype.close=function(){};snd.prototype.processResponse=function(a){return a};var tnd=function(a,b){D8.call(this,a,b===void 0?"RpcError ("+a+")":b)};Y(tnd,D8);var und=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};var vnd=function(a,b){this.config_=a;this.request_=b;this.resolver_=new und;this.state_=0};g=vnd.prototype;g.resultPromise=function(){return this.resolver_.promise};g.isPending=function(){return this.state_===1};g.cancel=function(){switch(this.state_){case 1:this.state_=2;this.onError_("CANCELLED");break;case 0:this.state_=3;var a=new tnd(1,"CANCELLED");this.resolver_.reject(a.statusCode)}};
g.send=function(){var a=this;if(this.state_!==0)return this.resultPromise();var b=BLa(this.config_.apiKey);this.config_.customAuthHeaders&&(b=Object.assign({},b,this.config_.customAuthHeaders));this.state_=1;b=this.request_.send(b);S7b(b,this.config_.timeoutSec*1E3).finally(function(){a.state_=2}).then(function(c){return a.onResponse_(c)},function(c){return a.onError_(c)});return this.resultPromise()};
g.onResponse_=function(a){if(this.state_!==3)if(a){try{var b=this.request_.processResponse(a)}catch(c){this.onError_(c,2);return}try{this.resolver_.resolve(b),this.request_.close(0)}finally{this.state_=3}}else this.onError_(a)};
g.onError_=function(a,b){b=b===void 0?0:b;if(this.state_!==3){if(a==="TIMEOUT")a=new tnd(4,"TIMEOUT");else if(a==="CANCELLED")a=new tnd(1,"CANCELLED");else if(!(a instanceof D8)){var c=2;if(La(a)){var d;isFinite((d=a.code)!=null?d:NaN)&&(c=a.code);c===2&&(c=xp("result.error.code",a)||a.status,c=Number(c),c=oEc.has(c)?oEc.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 tnd(c)}try{var e=a instanceof
D8?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 wnd=Symbol("Jf"),xnd=function(){};xnd.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[wnd]=d)}return c})};var ynd=function(a){this.request_=a;this.metric_=this.request_.getMetric();this.metric_.start("total");this.metric_.start("blocked");this.contentLength_=0};ynd.prototype.getMetric=function(){return this.metric_};ynd.prototype.send=function(a){this.metric_.stop("blocked");this.metric_.count();this.metric_.start("network");return this.request_.send(a)};
ynd.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[wnd]||0}};ynd.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 znd=function(a){this.config_=a;this.pendingRpcs_=new Set},Bnd=function(a,b){b=new ynd(b);b=new vnd(a.config_,b);a.pendingRpcs_.add(b);And(a,b);return b.resultPromise()},And=function(a,b){z(function(c){if(c.nextAddress==1)return Gf(c,2,3),B(c,b.send(),3);if(c.nextAddress!=2)return Hf(c),a.pendingRpcs_.delete(b),Jf(c,0);Kf(c);return c.jumpTo(3)})};var X7b=function(a){this.clientConfig_=a;this.inflightRequests_=new Map;a={apiKey:this.clientConfig_.getApiKey(),timeoutSec:this.clientConfig_.getClient().getRpcTimeoutSec()};this.dispatcher_=new znd(a);this.rpcClient_=new rnd(this.clientConfig_.apiRoot_)},Dnd=function(a,b){var c,d,e,f,h;return z(function(k){switch(k.nextAddress){case 1:var q=Cnd(b);if(c=a.inflightRequests_.get(q)||null)return k.return(c);d=new snd(b,a.rpcClient_);Gf(k,2,3);e=Bnd(a.dispatcher_,d);q=Cnd(b);a.inflightRequests_.set(q,
e);return B(k,e,5);case 5:return f=k.yieldResult,k.return(f);case 3:Hf(k);q=Cnd(b);a.inflightRequests_.delete(q);Jf(k,0);break;case 2:h=Kf(k);if(Number.isFinite(h))throw new Us(7,h);throw new Us(7);}})},Cnd=function(a){a=I7b(a);if(!a)throw jnd;return a};var End=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(End,n);g=End.prototype;g.getInstanceId=function(){return Rc(this,1)};g.setInstanceId=function(a){return Qk(this,1,a)};g.clearInstanceId=function(){Bu(this,1)};g.hasInstanceId=function(){return mk(this,1)};g.getInstanceIdOrUndefined=function(){return Hu(this,1)};g.getRequestId=function(){return Rc(this,2)};g.getRequestType=function(){return pk(this,4)};g.setRequestType=function(a){return Rk(this,4,a)};
g.getSourceType=function(){return pk(this,6)};g.setSourceType=function(a){return Rk(this,6,a)};g.getClient=function(){return pk(this,7)};g.setClient=function(a){return Rk(this,7,a)};g.hasClient=function(){return nk(this,7)};g.getErrorType=function(){return pk(this,8)};g.setErrorType=function(a){return Rk(this,8,a)};g.hasErrorType=function(){return nk(this,8)};g.getStatusCode=function(){return pk(this,10)};g.setStatusCode=function(a){Rk(this,10,a)};g.hasStatusCode=function(){return nk(this,10)};var Y7b=function(a){var b=a.getClient();a=a.runtime_.getPeopleApiEnv();this.logContext_=fu(new gu,"PeopleExperiments").setEnvironment(a).setLogSource(1250).setVersion("1.0.1").setBaselineCl(794327108).setEnableClearcut(b.getEnableClearcut())};g=Y7b.prototype;g.getLogContext=function(){return this.logContext_};g.createCountMetric=function(){throw Error("rf");};g.createStatusMetric=function(){throw Error("rf");};g.createErrorMetric=function(){throw Error("rf");};
g.createLatencyMetric=function(a,b){a=b.source();b=Math.round(b.duration()*1E3);Ek(a,3,b);return a};var G8=function(a,b){this.metrics_=a;this.state_=new SH(b);this.label_="total";this.source=b};G8.prototype.start=function(){this.metrics_.start(this.state_,this.label_)};G8.prototype.stop=function(){this.metrics_.stop(this.state_,this.label_);this.metrics_.latency(this.state_)};var b8b=function(a,b,c){this.worker_=a;this.metrics_=at(b);this.runtimeConfig_=c},Fnd=function(a,b,c){var d,e,f=new End,h=G7b();f=Qk(f,2,h).setRequestType(b.getRequestType());b=Rk(f,5,c).setClient((e=(d=b.getClient())==null?void 0:d.getApplicationOrUndefined())!=null?e:0);return Rk(b,9,a.runtimeConfig_.getPeopleApiEnv())},Gnd=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())};b8b.prototype.updateExperimentsCache=function(a,b){b=b===void 0?2:b;var c=this,d,e,f;return z(function(h){if(h.nextAddress==1)return d=Fnd(c,a,b),e=new G8(c.metrics_,d),e.start(),B(h,c.worker_.updateExperimentsCache(a,b),2);f=h.yieldResult;Gnd(f,d);e.stop();return h.return(f)})};
b8b.prototype.getCachedExperiments=function(a,b){b=b===void 0?0:b;var c=Fnd(this,a,b),d=new G8(this.metrics_,c);d.start();a=this.worker_.getCachedExperiments(a,b);Gnd(a,c);d.stop();return a};var Hnd=function(a){this.timer=a;this.count=0},d8b=function(a,b){this.clientConfig_=a;this.worker_=b;this.refreshers_=new Map;a=this.clientConfig_.getClient();this.refreshRateMs_=Ej(a,11,14400)*1E3;this.eventHandler_=new Fs(this)};d8b.prototype.updateExperimentsCache=function(a,b){try{return Ind(this,a),this.worker_.updateExperimentsCache(a,b)}catch(c){return Promise.resolve(V7b(c))}};d8b.prototype.getCachedExperiments=function(a,b){try{return Ind(this,a),this.worker_.getCachedExperiments(a,b)}catch(c){return V7b(c)}};
var Ind=function(a,b){var c=I7b(b);if(!c)throw new Us(6);if(a.refreshers_.has(c))a.refreshers_.get(c).count=0;else{var d=new DE(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=Ej(f,12,18);e.count>=f&&(e.timer.stop(),a.refreshers_.delete(c))}});d.start();a.refreshers_.set(c,new Hnd(d))}a.refreshers_.get(c)};var Jnd=function(){},c8b=function(a,b){this.cache_=a;this.loader_=b};
c8b.prototype.updateExperimentsCache=function(a,b){var c=this,d,e,f,h;return z(function(k){if(k.nextAddress==1){e=d=null;try{d=Knd(c,a)}catch(E){e=E}if(d&&d.state!==3)return k.return(c.getCachedExperiments(a,b));Gf(k,3);return B(k,Lnd(c,a),5)}if(k.nextAddress!=3){f=k.yieldResult;var q=k.return,v=f,A=e;A=A===void 0?null:A;v=(new U7b).setExperimentFlags(v.getExperimentFlags()).setExperimentIdsList(v.getExperimentIdsList()).setSource(1).setInstanceId(a.getInstanceIdOrUndefined());A&&v.setError(T7b(A));
return q.call(k,v)}h=Kf(k);return k.return(V7b(h))})};c8b.prototype.getCachedExperiments=function(a){try{var b=Knd(this,a);if(b){var c=(new U7b).setExperimentFlags(b.experiments.getExperimentFlags()).setExperimentIdsList(b.experiments.getExperimentIdsList()).setInstanceId(b.instanceId).setSource(2);b.state!==1&&Lnd(this,a).catch(Jnd);return c}Lnd(this,a).catch(Jnd);return V7b()}catch(d){return V7b(d)}};
var Knd=function(a,b){try{var c=a.cache_.get(b);return c&&c.experiments.hasExperimentFlags()?c:null}catch(d){if(d instanceof Us)throw d;throw new Us(3);}},Lnd=function(a,b){var c,d;return z(function(e){if(e.nextAddress==1)return Gf(e,2),b.hasInstanceId()||b.setInstanceId(G7b()),B(e,Dnd(a.loader_,b),4);if(e.nextAddress!=2)return c=e.yieldResult,a.cache_.set(b,c),e.return(c);d=Kf(e);if(d instanceof Us)throw d;throw new Us(2);})};var W7b;var Mnd=function(a){this.clientConfig_=a;this.worker_=e8b(this.clientConfig_)};Mnd.prototype.getCachedExperiments=function(a){return this.worker_.getCachedExperiments(a,0)};var L9b=function(){this.peopleApiEnv_=4};L9b.prototype.getPeopleApiEnv=function(){return this.peopleApiEnv_};L9b.prototype.setPeopleApiEnv=function(a){this.peopleApiEnv_=a;return this};var Nnd=function(a,b){this.client_=a;this.request_=b;this.response_=null};Nnd.prototype.getExperimentFlags=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentFlags()};Nnd.prototype.getExperimentIds=function(){this.response_||(this.response_=this.client_.getCachedExperiments(this.request_));return this.response_.getExperimentIdsList(Cj)};var K9b=function(a,b){this.clientConfig_=a;this.requestType_=b;this.version_=794327108};K9b.prototype.prefetch=function(a){var b=new and(this.clientConfig_,new L9b);a=Ond(this,a,"");e8b(b).updateExperimentsCache(a,2)};K9b.prototype.loadExperiments=function(a,b,c){var d=new and(this.clientConfig_,b),e=Ond(this,a,c);e8b(d).updateExperimentsCache(e,2);b=new and(this.clientConfig_,b);b=new Mnd(b);a=Ond(this,a,c);return new Nnd(b,a)};
var Ond=function(a,b,c){var d=(new A8).setVersion(a.version_);b=(new B8).setApplication(b);return(new $md).setProfileId(c).setRequestType(a.requestType_).setCaller(d).setClient(b)};var h8b=new M9b(new p8,new Xmd);var i8b=Qs.getInstance();var j8b=Qs.getInstance();var Pnd=new Ll(wL.WEEKDAY_MONTH_DAY_MEDIUM),Qnd=new Ll(7);new Ll(wL.WEEKDAY_MONTH_DAY_MEDIUM);var Rnd=new Map([[0,2],[1,1],[2,3],[3,4],[4,2],[5,5]]);var Snd=function(a){var b=a.iconUrl,c=a.altText,d=a.persistentText,e=a.styleClass,f=a.fontIcon,h=a.customTagClass;a=st();e=h||e;e=rt(a,'<div class="'+nt("peoplekitComponentsTagTag")+" "+(e?nt(e):"")+'" peoplekit-id="'+nt("mQXP")+'">');jI(b)||jI(f)?(h=st(),b=jI(b)?'<img class="'+nt("peoplekitComponentsTagIcon")+'" src="'+nt(BGc(b))+'" alt="'+nt(c)+'">':jI(f)?'<span class="google-symbols '+nt("peoplekitComponentsTagIcon")+'">'+ot(f)+"</span>":"",b=qt(b),c=rt(tt(h,b),"<div"+(d?"":' class="'+nt("peoplekitComponentsTagUnrollingAltText")+
'"')+'><div class="'+nt("peoplekitComponentsTagText")+'">'+ot(c)+"</div></div>")):c='<div class="'+nt("peoplekitComponentsTagText")+'">'+ot(c)+"</div>";rt(tt(e,c),"</div>");return a};var l8b=function(a,b,c,d,e,f){var h=this;this.root=a;this.avatar=e;this.features=f;this.isIntelligenceInitialized=this.isOutOfOffice=!1;Tnd(this,{tags:d});N6b(a,b.getPrimaryTarget());c.getResultDecorationConfigRequestCallback()(b,function(k){Tnd(h,k)})};g=l8b.prototype;g.getAllIds=function(){return[]};g.toggleSelection=function(){};g.activate=function(){this.root.classList.add("isActive")};g.deactivate=function(){this.root.classList.remove("isActive")};g.spotlight=function(){};g.unspotlight=function(){};
g.getRoot=function(){return this.root};g.getSelection=function(){throw Error("Gf");};g.onKeyDown=function(){};g.onContextMenu=function(){return function(){}};
g.updateWaldo=function(a){if(this.getSupportedIntelligenceFeatures().includes(1)){var b=Cs(this.root,"Z306Oe");if(this.isOutOfOffice=a.getCurrentStatus()===4){if(a.getCurrentStatus()!==4)throw Error("Kf");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 "+Qnd.format(c):"Out of office - back on "+Pnd.format(c);rz(b,String(c));this.root.classList.add("isOutOfOffice")}else rz(b,
""),this.root.classList.remove("isOutOfOffice")}};g.updateHubAvailabilityDot=function(a){this.getSupportedIntelligenceFeatures().includes(2)&&this.avatar.setBadge({badgeType:Rnd.get(a.getType()||0)||2})};g.getSupportedIntelligenceFeatures=function(){return this.features};g.addTag=function(a){var b=Cs(this.root,"x00ATb");a:switch(a.style||0){case 1:var c="isWarning";break a;default:c=""}a=Hp(Snd,Object.assign({},a,{styleClass:c}));b.appendChild(a)};
g.setMetaIcon=function(a){var b=D5b(this.root,"SC3Htd")[0];b&&(b.src=a.iconUrl,b.alt=a.altText)};var Tnd=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)};l8b.prototype.initializeIntelligence=function(){this.isIntelligenceInitialized||(this.getSupportedIntelligenceFeatures().includes(2)&&this.avatar.setBadge({badgeType:2}),this.isIntelligenceInitialized=!0)};l8b.prototype.dispose=function(){};var Und=function(a,b,c,d){this.loggingToken=d;this.lookupWithOverride=z$b(y$b(a).setDisplayName(b),c)};Und.prototype.getLoggingToken=function(){return this.loggingToken};var Vnd=function(){};Vnd.prototype.getDisplayNameMatches=function(){return[]};Vnd.prototype.getDisplayValueMatches=function(){return[]};Vnd.prototype.getGivenNameMatches=function(){return[]};var Wnd=new Vnd;var n8b=function(a,b,c){this.resultType_=a;this.targets_=b;this.memberCount_=c};g=n8b.prototype;g.getResultType=function(){return this.resultType_};g.getTargetList=function(){return this.targets_};g.getMemberList=function(){return[]};g.getTotalMemberCount=function(){return this.memberCount_};g.getPrimaryTarget=function(){throw Error("Lf");};g.getDisplayName=function(){return""};g.getDisplayValue=function(){return""};g.getDescription=function(){return""};g.getPhotoUrl=function(){return""};
g.getIsBoosted=function(){return!1};g.getMatchInfo=function(){return Wnd};g.getExtendedData=function(){return null};var Xnd=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 Uac=function(){this.url_="";this.sourceType_=this.type_=0;this.glyph_=""};g=Uac.prototype;g.getUrl=function(){return this.url_};g.setUrl=function(a){this.url_=a||"";return this};g.getType=function(){return this.type_};g.setType=function(a){this.type_=a;return this};g.getSourceType=function(){return this.sourceType_};g.setSourceType=function(a){this.sourceType_=a||0;return this};g.getGlyph=function(){return this.glyph_};g.setGlyph=function(a){this.glyph_=a||"";return this};
var Ynd=(new Uac).setType(1).setUrl("https://lh3.googleusercontent.com/a/default-user"),Znd=new Uac;var $nd=function(a){this.id_=a;this.value_=this.id_.getOriginalValue();this.description_=this.canonicalValue_="";this.name_=null;this.photo_=Et(this.id_)?Znd:Ynd;this.tags_=[];this.sourceIds_=ncc.includes(this.id_.getType())?[this.id_]:[];this.id_.getType()===8&&this.sourceIds_.push(pac(this.id_.getOriginalValue()));this.isMe_=this.id_.getType()===17;this.dataSource_=0;this.resultType_=Xnd.get(this.id_.getType())||0;this.personLoggingId_=this.fieldLoggingId_="";this.orgState_=0;this.extendedData_=
this.reachabilityInfo_=this.originatingField_=this.emailSecurityInfo_=null};g=$nd.prototype;g.getId=function(){return this.id_};g.getTargetType=function(){return this.id_.getType()};g.getValue=function(){return this.value_};g.setValue=function(a){this.value_=Ws(a);return this};g.getDisplayValue=function(){switch(this.getTargetType()){case 8:var a=this.getOriginatingField();return Ws(a&&a.getValue());case 1:case 2:case 6:case 7:return this.getValue();default:return""}};
g.getCanonicalValue=function(){return this.canonicalValue_||this.value_};g.setCanonicalValue=function(a){this.canonicalValue_=Ws(a);return this};g.getName=function(){return this.name_};g.setName=function(a){this.name_=a;return this};g.getDescription=function(){return this.description_};g.setDescription=function(a){this.description_=Ws(a);return this};g.getPhoto=function(){return this.photo_};g.setPhoto=function(a){a&&a.getUrl()&&a.getType()!==1?this.photo_=a:this.photo_=Et(this.id_)?Znd:Ynd};
g.getTagList=function(){return this.tags_};g.setTagList=function(a){this.tags_=a||[]};g.getSourceIdList=function(){return this.sourceIds_};g.getProfileId=function(){return this.getSourceIdList().filter(function(a){return a.getType()===3}).map(function(a){return a.getOriginalValue()}).find(Boolean)||""};g.getContactId=function(){return this.getSourceIdList().filter(function(a){return a.getType()===4}).map(function(a){return a.getOriginalValue()}).find(Boolean)||""};g.getLoggingToken=function(){return new $t};
g.getIsMe=function(){return this.isMe_};g.setIsMe=function(a){this.isMe_=a;return this};g.getDataSource=function(){return this.dataSource_};g.setDataSource=function(a){this.dataSource_=a;return this};g.getResultType=function(){return this.resultType_};g.setResultType=function(a){this.resultType_=a;return this};g.getFieldLoggingId=function(){return this.fieldLoggingId_};g.setFieldLoggingId=function(a){this.fieldLoggingId_=Ws(a)};g.getPersonLoggingId=function(){return this.personLoggingId_};
g.setPersonLoggingId=function(a){this.personLoggingId_=Ws(a)};g.getOrgState=function(){return this.orgState_};g.setOrgState=function(a){this.orgState_=a};g.getOriginatingField=function(){return this.originatingField_};var Xac=function(a,b){a.originatingField_=b;return a};g=$nd.prototype;g.getEmailSecurityInfo=function(){return this.emailSecurityInfo_};g.setEmailSecurityInfo=function(a){this.emailSecurityInfo_=a};g.getReachabilityInfo=function(){return this.reachabilityInfo_};
g.setReachabilityInfo=function(a){this.reachabilityInfo_=a};g.getExtendedData=function(){return this.extendedData_};g.setExtendedData=function(a){this.extendedData_=a};var Xt=function(a){return new $nd(a)};var p8b=function(a,b,c,d){this.internalId=a;this.displayNameOverride=b;this.forceDisplayNameOverride=c;a=Xt(this.internalId).setDataSource(3);this.internalResult=Nq(o8b(0,[a]));this.internalSelectionToken=new Und(this.internalId,this.displayNameOverride,this.forceDisplayNameOverride,d)};g=p8b.prototype;g.id=function(){return this.internalId};g.selectionToken=function(){return this.internalSelectionToken};g.targets=function(){return this.internalResult.getTargetList()};g.result=function(){return this.internalResult};
g.getDisplayNameOverride=function(){return this.displayNameOverride};g.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride};g.getDisplayNameWithOverrideApplied=function(){return this.displayNameOverride};g.isPlaceholder=function(){return!0};var aod=function(a,b,c,d,e){this.delegate=m8b(a,b,c,d,e,[2]);this.root=a;this.root.setAttribute("aria-selected","true");this.id=b.getPrimaryTarget().getId();this.selection=q8b(Kt)};Y(aod,w8);aod.prototype.getAllIds=function(){return[this.id]};aod.prototype.getSelection=function(){return this.selection};var bod=function(a,b,c,d,e,f,h,k){d=d===void 0?"":d;e=e===void 0?!1:e;return rt(tt(rt(tt(rt(tt(rt(st(),'<div role="option" class="'+nt("peoplekitComponentsResultlistitemResultListItem")+" "+nt(d)+'" id="'+nt(a)+'" peoplekit-id="'+nt(a)+'" aria-disabled="'+nt(e)+'" aria-selected="false"><div class="'+nt("peoplekitComponentsResultlistitemResultListItemRow")+'"><div class="'+nt("peoplekitComponentsResultlistitemLeft")+'" data-hovercard-id="'+nt(b)+'" data-name="'+nt(vt(c))+'">'),ot(f)),'</div><div class="'+
nt("peoplekitComponentsResultlistitemCenter")+'">'),ot(h)),'</div><div class="'+nt("peoplekitComponentsResultlistitemRight")+'" peoplekit-id="'+nt("QChpEe")+'">'),ot(k)),'</div></div><div peoplekit-id="'+nt("Z306Oe")+'" class="'+nt("peoplekitComponentsResultlistitemOutOfOffice")+'"></div></div>')},cod=function(a,b,c){return qt('<div class="'+nt("peoplekitComponentsResultlistitemLabelContainer")+'"><div class="'+nt("peoplekitComponentsResultlistitemLabel")+" "+nt("peoplekitComponentsResultlistitemLabelRow")+
'"><div class="'+nt("peoplekitComponentsResultlistitemLabelText")+'" data-name="'+nt(vt(a))+'" translate="no">'+q$b(vt(a))+'</div><div peoplekit-id="'+nt("x00ATb")+'" class="'+nt("peoplekitComponentsResultlistitemTags")+'"></div></div>'+(b?'<div class="'+nt("peoplekitComponentsResultlistitemSublabel")+" "+nt("peoplekitComponentsResultlistitemLabelRow")+'"><div class="'+nt("peoplekitComponentsResultlistitemSublabelText")+'" data-name="'+nt(vt(a))+'"'+(c?"":' translate="no"')+">"+q$b(vt(b))+"</div></div>":
"")+"</div>")},dod=function(a){return rt(tt(rt(st(),'<div class="'+nt("peoplekitComponentsResultlistitemAvatar")+'"><div class="'+nt("peoplekitComponentsResultlistitemAvatarContainer")+'" peoplekit-id="'+nt("d6MZcd")+'"></div>'),jI(a)?ot(a):""),"</div>")},eod=function(){var a=st(),b=rt(st(),'<div class="'+nt("peoplekitComponentsResultlistitemAvatarSelectionOverlay")+'"><div class="'+nt("peoplekitComponentsResultlistitemWhiteCheck")+'">');var c=qt('<svg viewBox="0 0 24 24" class="'+(nt("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 tt(a,dod(rt(tt(b,c),"</div></div>")))},fod=function(){return qt('<img class="'+nt("peoplekitComponentsResultlistitemMetaIcon")+'" peoplekit-id="'+nt("SC3Htd")+'" alt="" src=""/>')};var god=function(a){var b=a.id,c=a.hovercardId,d=a.label,e=a.sublabel,f=a.densityClass,h=a.disableReason;a=a.allowSublabelTranslation;return tt(st(),bod(b,c,d,"isDisabled "+f,!0,tt(st(),dod()),tt(st(),cod(d,e,a)),rt(tt(rt(st(),'<div class="'+nt("peoplekitComponentsResultlistitemDisabledDisableReasonContainer")+'">'),ot(h)),"</div>")))},hod=function(){var a=st(),b='<div class="'+nt("peoplekitComponentsResultlistitemDisabledIconIndicator")+'" aria-label="';a=rt(a,b+nt(". Already selected")+'">');b=
qt('<svg xmlns="http://www.w3.org/2000/svg" height="18px" viewBox="0 0 24 24" width="18px" class="'+(nt("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 rt(tt(a,b),"</div>")};var s8b=function(a){this.delegate=a;var b=this;this.eventHandler=Gs(this);this.eventHandler.listen(this.getRoot(),"click",function(c){b.onClick(c)})};Y(s8b,w8);s8b.prototype.onClick=function(){this.toggleSelection()};var u8b=function(a,b,c,d){this.internalResult=a;this.displayNameOverride=b;this.forceDisplayNameOverride=c;a=this.internalResult.getTargetList()[0];if(!a)throw new RangeError("Mf");this.target=a;d=d||this.target.getLoggingToken();a=this.target.getId();this.internalSelectionToken=new Und(a,this.displayNameOverride,this.forceDisplayNameOverride,d)};g=u8b.prototype;g.id=function(){return this.target.getId()};g.selectionToken=function(){return this.internalSelectionToken};g.targets=function(){return[this.target]};
g.result=function(){return this.internalResult};g.getDisplayNameOverride=function(){return this.displayNameOverride};g.getForceDisplayNameOverride=function(){return this.forceDisplayNameOverride};g.getDisplayNameWithOverrideApplied=function(){return this.forceDisplayNameOverride?this.displayNameOverride:this.displayNameOverride||this.internalResult.getDisplayName()};g.isPlaceholder=function(){return!1};var iod=function(a){this.groupLoggingToken=a.getPrimaryTarget().getLoggingToken();this.explodedMembers=a.getMemberList().map(function(b){return v8b(b)})};iod.prototype.getLoggingToken=function(){return this.groupLoggingToken};var jod=function(a,b,c,d,e,f){this.delegate=m8b(a,b,d,e,f,[]);this.root=a;this.result=b;this.selectionsState=c;this.id=b.getPrimaryTarget().getId();this.selection=q8b(Kt)};Y(jod,w8);jod.prototype.getAllIds=function(){return[this.id]};jod.prototype.toggleSelection=function(){var a=new iod(this.result);this.selectionsState.selectExplodingGroup(a,1);this.root.dispatchEvent($5b("pcw-select",this.root))};jod.prototype.getSelection=function(){return this.selection};var kod=function(a){var b=a.id,c=a.hovercardId,d=a.label,e=a.sublabel,f=a.densityClass;a=a.allowSublabelTranslation;return tt(st(),bod(b,c,d,f,void 0,tt(st(),dod()),tt(st(),cod(d,e,a)),tt(st(),fod())))};var mod=function(a,b){this.delegate=a;var c=this;this.selectionsState=b;this.id=a.getAllIds()[0];b.get(this.id)&&lod(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){lod(c,d)};H8(this.selectionsState,this.onDeselectionCallback);I8(this.selectionsState,this.onSelectionCallback)};Y(mod,w8);
mod.prototype.toggleSelection=function(){if(this.selectionsState.get(this.id)){var a=this.getRoot();a=$5b("pcw-deselect",a)}else a=this.getRoot(),a=$5b("pcw-select",a);this.getRoot().dispatchEvent(a);this.selectionsState.toggle(this.getSelection(),1)};var lod=function(a,b){b.id().equals(a.id)&&(a.getRoot().classList.add("isSelected"),a.getRoot().setAttribute("aria-selected","true"))};mod.prototype.dispose=function(){this.selectionsState.deselectionCallbacks.remove(this.onDeselectionCallback);this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback)};var nod=function(a,b,c,d,e,f,h){this.delegate=m8b(a,b,d,e,f,[2]);this.selectionsState=c;this.clientConfig=h;this.id=b.getPrimaryTarget().getId();this.selection=this.selectionsState.get(this.id)||v8b(b,b.getDisplayName())};Y(nod,w8);nod.prototype.onContextMenu=function(a,b){kk(this.clientConfig.internal,7)&&a.preventDefault();return w8.prototype.onContextMenu.call(this,a,b)};nod.prototype.getAllIds=function(){return[this.id]};nod.prototype.getSelection=function(){return this.selection};var ood=function(a){var b=a.id,c=a.hovercardId,d=a.label,e=a.sublabel,f=a.densityClass;a=a.allowSublabelTranslation;return tt(st(),bod(b,c,d,f,void 0,tt(st(),eod()),tt(st(),cod(d,e,a)),tt(st(),fod())))};var pod=function(a,b,c,d,e,f,h){this.delegate=m8b(a,b,d,e,f,[]);this.selectionsState=c;this.clientConfig=h;this.id=b.getPrimaryTarget().getId();this.selection=this.selectionsState.get(this.id)||v8b(b)};Y(pod,w8);pod.prototype.onContextMenu=function(a,b){kk(this.clientConfig.internal,7)&&a.preventDefault();return w8.prototype.onContextMenu.call(this,a,b)};pod.prototype.getAllIds=function(){return[this.id]};pod.prototype.getSelection=function(){return this.selection};var qod=function(a){var b=a.id,c=a.hovercardId,d=a.label,e=a.sublabel,f=a.densityClass;a=a.allowSublabelTranslation;return tt(st(),bod(b,c,d,f,void 0,tt(st(),eod()),tt(st(),cod(d,e,a)),tt(st(),fod())))};Os.addCoreFactory({type:0,factory:{create:function(a){var b=a.result,c=a.resultConfig,d=a.resultCustomizationConfig,e=a.appearanceConfig,f=a.selectionsState,h=a.clientConfig;a=g8b(a);var k=Hp(ood,a);Ms({element:k,veid:25285,actions:["impression","pcw-select","pcw-deselect"],pairs:[w8b(b.getPrimaryTarget().getLoggingToken())],componentId:"peoplekitweb"});var q=Cs(k,"d6MZcd"),v=E7b(e.getDensity()),A;d=(A=d.backupAvatarUrl)!=null?A:"";e=Ds(q,a.photos,v,v,e,d);b=new nod(k,b,f,c,a.tags,e,h);return t8b(new mod(b,
f))},shouldCreate:function(){return!0}},configurationKey:void 0});
Os.addCoreFactory({type:1,factory:{create:function(a){var b=r8b(a),c=a.result,d=a.resultConfig,e=a.appearanceConfig,f=a.resultCustomizationConfig,h=c.getPrimaryTarget().getId();a=Et(h)||$Dc(h)?k8b(a):g8b(a);h=Object;var k=h.assign;a:switch(b){case 1:b=hod();break a;case 2:b=f.showSelectedIndicatorForDisabled?hod():qt("");break a;default:b='<div class="'+nt("peoplekitComponentsResultlistitemDisabledTextIndicator")+'">',b=qt(b+"DISABLED</div>")}b=Hp(god,k.call(h,{},a,{disableReason:b}));h=Cs(b,"d6MZcd");
k=E7b(e.getDensity());var q;f=(q=f.backupAvatarUrl)!=null?q:"";e=Ds(h,a.photos,k,k,e,f);return new aod(b,c,d,a.tags,e)},shouldCreate:function(a){return r8b(a)!==0}},configurationKey:void 0});
Os.addCoreFactory({type:2,factory:{create:function(a){var b=a.result,c=a.resultConfig,d=a.appearanceConfig,e=a.resultCustomizationConfig,f=a.clientConfig,h=a.selectionsState;a=k8b(a);var k=Hp(qod,a);Ms({element:k,veid:25285,actions:["impression","pcw-select","pcw-deselect"],pairs:[w8b(b.getPrimaryTarget().getLoggingToken())],componentId:"peoplekitweb"});var q=Cs(k,"d6MZcd"),v=E7b(d.getDensity()),A;e=(A=e.backupAvatarUrl)!=null?A:"";d=Ds(q,a.photos,v,v,d,e);b=new pod(k,b,h,c,a.tags,d,f);return t8b(new mod(b,
h))},shouldCreate:function(a){return Et(a.result.getPrimaryTarget().getId())}},configurationKey:void 0});
Os.addCoreFactory({type:3,factory:{create:function(a){var b=a.result,c=a.resultConfig,d=a.resultCustomizationConfig,e=a.appearanceConfig,f=a.selectionsState;a=k8b(a);var h=Hp(kod,a);Ms({element:h,veid:25285,actions:["impression","pcw-select","pcw-deselect"],pairs:[w8b(b.getPrimaryTarget().getLoggingToken())],componentId:"peoplekitweb"});var k=Cs(h,"d6MZcd"),q=E7b(e.getDensity()),v;d=(v=d.backupAvatarUrl)!=null?v:"";e=Ds(k,a.photos,q,q,e,d);return t8b(new jod(h,b,f,c,a.tags,e))},shouldCreate:function(a){return $Dc(a.result.getPrimaryTarget().getId())}},
configurationKey:void 0});var x8b=function(a,b,c,d,e,f,h,k,q){this.selectionsState=a;this.resultConfig=b;this.injectableResultConfig=c;this.appearanceConfig=d;this.clientConfig=e;this.isRightToLeft=f;this.interactions=h;this.ariaParent=k;this.popupsContainer=q};
x8b.prototype.create=function(a,b){var c=this.selectionsState,d=this.resultConfig,e=this.appearanceConfig,f=this.clientConfig,h=this.isRightToLeft(),k=this.interactions,q=this.injectableResultConfig,v=this.resultConfig.getResultCustomizationCallback()(a,b);q=l(q.resultCustomizationDecorators);for(var A=q.next();!A.done;A=q.next())A=A.value,A=A(v,a,b),v=Object.assign({},v,A);a={result:a,selectionsState:c,resultConfig:d,appearanceConfig:e,clientConfig:f,isRightToLeft:h,interactions:k,resultCustomizationConfig:v,
ariaParent:this.ariaParent,popupsContainer:this.popupsContainer,contextMenuConfigurator:this.injectableResultConfig.contextMenuConfigurator};b=C5b(this.clientConfig);return P6b(Os,b).create(a)};var z8b=function(a,b,c,d,e,f,h,k,q,v,A){var E=this;this.list=a;this.resultConfig=b;this.injectableResultConfig=c;this.appearanceConfig=d;this.clientConfig=e;this.selectionsState=f;this.interactions=h;this.ariaParent=q;this.popupsContainer=v;this.grouping=A;this.navigatable=e7b(new Emd({shouldWrap:!0}));this.intelligentComponentCollection=k.create();this.sectionController=D7b(this.list,this.navigatable,this.intelligentComponentCollection,this.appearanceConfig,y8b(this.selectionsState,this.resultConfig,
this.injectableResultConfig,this.appearanceConfig,this.clientConfig,function(){return At(E.list.getRoot())},this.interactions,this.ariaParent,this.popupsContainer),this.grouping)};g=z8b.prototype;g.append=function(a,b){this.sectionController.append(a,b)};g.clear=function(){this.sectionController.clear();this.popupsContainer.clear()};g.reset=function(a){this.sectionController.reset(a)};g.getNavigatable=function(){return this.navigatable};g.getResultListItems=function(){return this.sectionController.getItems()};
g.done=function(){this.sectionController.done()};var I8b=function(a,b,c){this.delegate=a;this.interactions=b;this.health=c};g=I8b.prototype;g.append=function(a,b){try{for(var c=l(a),d=c.next();!d.done;d=c.next()){var e=d.value;this.delegate.append([e],b);this.interactions.display(e)}}catch(f){throw this.health.createError(3,Ys(f)),f;}};g.clear=function(){try{this.delegate.clear()}catch(a){throw this.health.createError(4,Ys(a)),a;}};g.reset=function(a){try{this.delegate.reset(a)}catch(b){throw this.health.createError(5,Ys(b)),b;}};
g.getNavigatable=function(){return this.delegate.getNavigatable()};g.getResultListItems=function(){return this.delegate.getResultListItems()};g.done=function(){this.delegate.done()};var H8b=function(a){a=a.header;return qt('<div peoplekit-id="'+nt("aittld")+'">'+(a.length>0?'<div class="'+nt("peoplekitUiResultlistHeader")+'">'+ot(a)+"</div>":"")+'<div peoplekit-id="'+nt("tjneg")+'"></div></div>')};var zac=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(zac,n);var Aac=new Yu(417869137,Nt,zac);var rod=function(){return"Google makes suggestions based on your interactions."};var sod=function(a){this.labels=a;this.isSuggest=!1;this.hiddenSuggestionsLabel=qt("Hidden suggestions").toString();a={infoType:1,infoDialogHeader:"How suggestions work",learnMoreMessage:rod(),learnMoreUrl:B8b(),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)};sod.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(Aac))==null?void 0:Nm(c,1))===1?"HIDDEN":"SEARCH"}b=a}return b};sod.prototype.reset=function(a){this.isSuggest=!a.trim()};var C8b=[sod];var E8b=function(){this.isSuggest=!1;var a={infoType:1,infoDialogHeader:"How suggestions work",learnMoreMessage:rod(),learnMoreUrl:B8b(),learnMoreLinkText:"Learn more about suggestions."},b={};this.groupConfigs=(b.SUGGEST={headerText:"Suggestions",infoGroupConfig:a},b.SEARCH={headerText:"Search Results",infoGroupConfig:a},b)};E8b.prototype.getGroupId=function(a){return a.getResultType()===7?"CUSTOM":this.isSuggest?"SUGGEST":"SEARCH"};E8b.prototype.reset=function(a){this.isSuggest=!a.trim()};var F8b=function(a){this.label=a;a={};this.groupConfigs=(a.directory={headerText:this.label},a.non_directory={},a)};F8b.prototype.getGroupId=function(a){return a.getTargetList().some(function(b){return b.getDataSource()!==2})?"non_directory":"directory"};F8b.prototype.reset=function(){};var G8b=function(a){this.label=a;a={};this.groupConfigs=(a.suggestions={headerText:this.label},a)};G8b.prototype.getGroupId=function(a){return a.getResultType()!==7?"suggestions":"non_suggestions"};G8b.prototype.reset=function(){};var Zs=function(a,b){this.ariaParent=a;this.delegate=b};g=Zs.prototype;g.update=function(){var a=this.getSpotlitItem();a?(a=a.getRoot(),OG(this.ariaParent,a)):OG(this.ariaParent,null)};g.prev=function(a){a=this.delegate.prev(a);this.update();return a};g.next=function(a){a=this.delegate.next(a);this.update();return a};g.size=function(){return this.delegate.size()};g.goToItem=function(a,b){a=this.delegate.goToItem(a,b);this.update();return a};
g.goToIndex=function(a,b){a=this.delegate.goToIndex(a,b);this.update();return a};g.activateAll=function(){this.delegate.activateAll()};g.getSpotlitItem=function(){return this.delegate.getSpotlitItem()};g.getActiveItems=function(){return this.delegate.getActiveItems()};g.getItem=function(a){return this.delegate.getItem(a)};g.getIndexOf=function(a){return this.delegate.getIndexOf(a)};g.clear=function(){this.delegate.clear();this.update()};g.reset=function(){this.delegate.reset();this.update()};
g.setSecondaryEventTargets=function(a){this.delegate.setSecondaryEventTargets(a)};g.onKeyDown=function(a){this.delegate.onKeyDown(a)};g.onContextMenu=function(a,b){var c=this;this.delegate.onContextMenu(a,function(){c.update();b()})};g.remove=function(a,b){this.delegate.remove(a,b);this.update()};g.insert=function(a,b,c){this.delegate.insert(a,b,c);this.update()};var tod=function(a,b){Zs.call(this,a,b)};Y(tod,Zs);tod.prototype.onKeyDown=function(a){if(a.event.keyCode===9){var b=this.getSpotlitItem();if(b){b=b.getRoot();var c=this.ariaParent;var d=AAc(c,"activedescendant");c=jz(c).getElementById(d);(d=b.querySelector('[id="'+(b.id+'-2ab"]')))?OG(this.ariaParent,c===d?b:d):M8b(b)&&(b=Array.from(b.querySelectorAll('[class~="TdcT2c"]')),c=c?b.indexOf(c):-1,c!==-1&&OG(this.ariaParent,b[(c+1)%b.length]))}}Zs.prototype.onKeyDown.call(this,a)};
tod.prototype.next=function(a){a=Zs.prototype.next.call(this,a);var b=this.getSpotlitItem();b&&(b=b.getRoot(),M8b(b)&&uod(this,b));return a};tod.prototype.prev=function(a){a=Zs.prototype.prev.call(this,a);var b=this.getSpotlitItem();b&&(b=b.getRoot(),M8b(b)&&uod(this,b));return a};var uod=function(a,b){(b=b.querySelector('[class~="TdcT2c"]'))&&OG(a.ariaParent,b)};var Bt=function(a){this.event=a;this.hasStoppedPropagationInternal=!1};Bt.prototype.stopPropagation=function(){this.event.stopPropagation();this.hasStoppedPropagationInternal=!0};Bt.prototype.preventDefault=function(){this.event.preventDefault()};var N8b=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=Gs(this)};g=N8b.prototype;
g.attach=function(a,b){var c=this;this.detach();this.navigatable=b;this.input=a;this.eventHandler.listen(this.input,"keydown",function(d){return c.onKeyDown(new Bt(d))});this.eventHandler.listen(this.input,"contextmenu",function(d){return c.onContextMenu(new Bt(d))});this.eventHandler.listen(this.input,"blur",function(d){return c.onBlur(d)})};g.detach=function(){this.eventHandler.removeAll();this.navigatable=this.input=null};
g.onKeyDown=function(a){if(this.navigatable&&(this.navigatable.onKeyDown(a),!a.hasStoppedPropagationInternal))switch(a.event.keyCode){case this.nextKeyCode:this.navigatable.next(0)||this.navigatePastEndCallback();a.stopPropagation();a.preventDefault();break;case this.prevKeyCode:this.navigatable.prev(0);a.stopPropagation();a.preventDefault();break;case 36:if(!this.options.shouldReactToHomeEnd)break;this.navigatable.goToIndex(0,0);a.stopPropagation();a.preventDefault();break;case 35:this.options.shouldReactToHomeEnd&&
(this.navigatable.goToIndex(this.navigatable.size()-1,0),a.stopPropagation(),a.preventDefault())}};g.onClick=function(a,b){if(!this.navigatable)return!1;this.navigatable.goToItem(a,0);b.stopPropagation();return!0};g.onContextMenu=function(a){if(this.navigatable)this.navigatable.onContextMenu(a,function(){})};g.reset=function(){this.navigatable&&this.navigatable.reset()};g.onBlur=function(){this.reset()};var vod=new Ip;vod.altKey=!0;vod.keyCode=39;(new Ip).keyCode=13;var wod=function(){jE.call(this)};Y(wod,jE);wod.prototype.init=function(){};new wod;var xod=ea.URL,yod;try{new xod("http://example.com"),yod=!0}catch(a){yod=!1}
var zod=yod,Aod=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("&")},Cod=function(a){var b=jr(document,"A");try{Wda(b,new Zc(a));var c=b.protocol}catch(e){throw Error("Qf`"+a);}if(c===""||c===":"||c[c.length-1]!=":")throw Error("Qf`"+a);if(!Bod.has(c))throw Error("Qf`"+a);if(!b.hostname)throw Error("Qf`"+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}};Bod.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},Dod=function(a){if(zod){try{var b=new xod(a)}catch(d){throw Error("Qf`"+a);}var c=Bod.get(b.protocol);if(!c)throw Error("Qf`"+a);if(!b.hostname)throw Error("Qf`"+
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=Cod(a);return b},Bod=new Map([["http:","80"],["https:","443"],["ws:","80"],["wss:","443"],["ftp:","21"]]),Eod=function(a){var b=Dod("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("Rf");c.hash&&c.hash[0]!="#"&&(c.hash="#"+c.hash);a.search?a.search[0]!="?"&&(c.search="?"+a.search):a.searchParams&&(c.search="?"+Aod(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 Dod(a)};var lu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lu,n);var J8=function(a,b){return Nk(a,1,b)};g=lu.prototype;g.getProvenance=function(){return pk(this,2)};g.setProvenance=function(a){return Rk(this,2,a)};g.getCode=function(){return pk(this,3)};g.setCode=function(a){return Rk(this,3,a)};g.getCodeOrUndefined=function(){return Nm(this,3)};var K8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(K8,n);K8.prototype.getSource=function(){return W(this,lu,1)};K8.prototype.setSource=function(a){return X(this,lu,1,a)};K8.prototype.hasSource=function(){return tk(this,lu,1)};K8.prototype.getSourceOrUndefined=function(){return Cec(this,lu,1)};var L8=function(a,b){return Rk(a,2,b)},M8=function(a,b){return Rk(a,3,b)};var N8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(N8,n);g=N8.prototype;g.getQuery=function(){return Rc(this,1)};g.setQuery=function(a){return Qk(this,1,a)};g.clearQuery=function(){Bu(this,1)};g.hasQuery=function(){return mk(this,1)};g.getIsFirstCallback=function(){return kk(this,2)};g.setIsFirstCallback=function(a){return Nk(this,2,a)};g.getIsLastCallback=function(){return kk(this,3)};g.setIsLastCallback=function(a){return Nk(this,3,a)};
g.setCallbackNumber=function(a){return Ok(this,4,a)};g.getNextPageToken=function(){return Rc(this,5)};g.getCode=function(){return pk(this,6,2)};g.setCode=function(a){return Rk(this,6,a)};g.getCodeOrUndefined=function(){return Nm(this,6)};g.getCacheState=function(){return W(this,K8,7)};g.setCacheState=function(a){return X(this,K8,7,a)};g.hasCacheState=function(){return tk(this,K8,7)};var R8b=function(a,b,c,d,e,f,h,k){this.root=a;this.navigationInput=b;this.resultList=c;this.session=d;this.health=e;this.config=f;this.noResultsMessage=h;this.clientConfig=k;this.attached=!1;this.resultsLoadingCompleteListeners=[];this.inputFocusListeners=[];this.inputBlurListeners=[];this.navigatable=new tod(this.navigationInput,this.resultList.getNavigatable());this.navigatable.setSecondaryEventTargets([this]);this.navigationEventHandler=O8b({getPrevKeyCode:function(){return 38},getNextKeyCode:function(){return 40}},
{shouldReactToHomeEnd:!1});this.eventHandler=Gs(this);M6b(this.root,0)};g=R8b.prototype;
g.search=function(a,b,c,d){var e=this;this.currentSearchState={query:a,anchor:b,showSuggestions:c,listener:d};this.resultList.reset(a);this.resultList.clear();this.root.classList.remove("noResults");this.showLoadingIndicator();M6b(this.root,1);if(a){var f=Fod(this.health);f.start();this.session.search(a,function(k){e.update(k,d,f,!0)})}else if(c){var h=Fod(this.health);h.start();this.session.suggest(function(k){e.update(k,d,h,!1)})}};g.focus=function(){var a;(a=this.navigationInput)==null||a.focus()};
g.hasFocus=function(){return this.navigationInput===document.activeElement};g.refresh=function(){if(this.currentSearchState){var a=this.currentSearchState;this.search(a.query,a.anchor,a.showSuggestions,a.listener)}return!!this.currentSearchState};
g.attach=function(){var a=this;this.attached||(this.attached=!0,this.navigationEventHandler.attach(this.navigationInput,this.navigatable),this.eventHandler.listen(this.root,"mousedown",function(b){b.preventDefault();b.stopPropagation()}),kk(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 Bt(b),function(){}))}),this.eventHandler.listen(this.navigationInput,
"focus",function(b){b={event:b};for(var c=l(a.inputFocusListeners),d=c.next();!d.done;d=c.next())d=d.value,d(b)}),this.eventHandler.listen(this.navigationInput,"blur",function(b){b={event:b};for(var c=l(a.inputBlurListeners),d=c.next();!d.done;d=c.next())d=d.value,d(b)}))};g.detach=function(){this.attached=!1;this.navigatable.reset();this.navigationEventHandler.detach();this.eventHandler.removeAll();this.session.cancel();M6b(this.root,0)};g.isShown=function(){return!0};g.canHide=function(){return!1};
g.dispose=function(){this.detach();this.root.parentNode&&this.root.parentNode.removeChild(this.root)};
g.update=function(a,b,c,d){this.hideLoadingIndicator();var e=a.getResults();a=a.getMetadata();var f=a.getQuery(),h=a.getIsLastCallback();this.resultList.append(e,{query:f});h&&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")):h&&(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));if(h)for(M6b(this.root,a.getCode()===0?2:3,a.getCode()),b={query:f,resultCount:e.length},d=l(this.resultsLoadingCompleteListeners),a=d.next();!a.done;a=d.next())a=a.value,a(b);else M6b(this.root,4);c.stop()};
g.onKeyDown=function(a){var b=a.event.keyCode===9&&!a.event.shiftKey,c=a.event.keyCode===13;if(kk(this.clientConfig.internal,9)&&K8b(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()))};g.getNavigatable=function(){return this.navigatable};g.getRoot=function(){return this.root};g.showLoadingIndicator=function(){this.getRoot().classList.add("isLoading")};g.hideLoadingIndicator=function(){this.getRoot().classList.remove("isLoading")};var God=function(a){return rt(tt(rt(st(),'<div tabindex="-1" class="'+nt("peoplekitComponentsScrollboxScrollbar")+'" peoplekit-id="'+nt("I8ejUe")+'">'),ot(a)),"</div>")};var W8b=function(){var a=rt(tt(rt(st(),'<div class="'+nt("peoplekitComponentsAutocompleteInlineContainer")+'" peoplekit-id="'+nt("yDHfq")+'"><div class="'+nt("peoplekitComponentsAutocompleteInlineListContainer")+'">'),God(qt('<div peoplekit-id="'+nt("tjneg")+'"></div>'))),'</div><div class="'+nt("peoplekitComponentsAutocompleteInlineCircularProgress")+'">');var b='<div class="'+nt("peoplekitComponentsCircularprogressCircularProgress")+(" "+nt("isActive"))+'" data-loadingmessage="'+nt("Loading...")+
'" data-active="true"'+(jI()?vGc(iI(void 0,fGc)?(void 0).getContent():GGc()):"")+'><div class="'+nt("peoplekitComponentsCircularprogressMessageContainer")+'" aria-live="polite" jsname="'+nt("vyyg5")+'">'+ot("Loading...")+'</div><div class="'+nt("peoplekitComponentsCircularprogressCircularProgressContainer")+'"><div class="'+nt("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+nt("peoplekitComponentsCircularprogressColorOne")+" "+nt("exportColorOne")+'"><div class="'+nt("peoplekitComponentsCircularprogressCircleClipper")+
" "+nt("peoplekitComponentsCircularprogressLeft")+'"><div class="'+nt("peoplekitComponentsCircularprogressCircle")+" "+nt("exportCircle")+'"></div></div><div class="'+nt("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+nt("peoplekitComponentsCircularprogressCircle")+" "+nt("exportCircle")+'"></div></div><div class="'+nt("peoplekitComponentsCircularprogressCircleClipper")+" "+nt("peoplekitComponentsCircularprogressRight")+'"><div class="'+nt("peoplekitComponentsCircularprogressCircle")+
" "+nt("exportCircle")+'"></div></div></div><div class="'+nt("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+nt("peoplekitComponentsCircularprogressColorTwo")+" "+nt("exportColorTwo")+'"><div class="'+nt("peoplekitComponentsCircularprogressCircleClipper")+" "+nt("peoplekitComponentsCircularprogressLeft")+'"><div class="'+nt("peoplekitComponentsCircularprogressCircle")+" "+nt("exportCircle")+'"></div></div><div class="'+nt("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+
nt("peoplekitComponentsCircularprogressCircle")+" "+nt("exportCircle")+'"></div></div><div class="'+nt("peoplekitComponentsCircularprogressCircleClipper")+" "+nt("peoplekitComponentsCircularprogressRight")+'"><div class="'+nt("peoplekitComponentsCircularprogressCircle")+" "+nt("exportCircle")+'"></div></div></div><div class="'+nt("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+nt("peoplekitComponentsCircularprogressColorThree")+" "+nt("exportColorThree")+'"><div class="'+nt("peoplekitComponentsCircularprogressCircleClipper")+
" "+nt("peoplekitComponentsCircularprogressLeft")+'"><div class="'+nt("peoplekitComponentsCircularprogressCircle")+" "+nt("exportCircle")+'"></div></div><div class="'+nt("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+nt("peoplekitComponentsCircularprogressCircle")+" "+nt("exportCircle")+'"></div></div><div class="'+nt("peoplekitComponentsCircularprogressCircleClipper")+" "+nt("peoplekitComponentsCircularprogressRight")+'"><div class="'+nt("peoplekitComponentsCircularprogressCircle")+
" "+nt("exportCircle")+'"></div></div></div><div class="'+nt("peoplekitComponentsCircularprogressCircularProgressLayer")+" "+nt("peoplekitComponentsCircularprogressColorFour")+" "+nt("exportColorFour")+'"><div class="'+nt("peoplekitComponentsCircularprogressCircleClipper")+" "+nt("peoplekitComponentsCircularprogressLeft")+'"><div class="'+nt("peoplekitComponentsCircularprogressCircle")+" "+nt("exportCircle")+'"></div></div><div class="'+nt("peoplekitComponentsCircularprogressGapPatch")+'"><div class="'+
nt("peoplekitComponentsCircularprogressCircle")+" "+nt("exportCircle")+'"></div></div><div class="'+nt("peoplekitComponentsCircularprogressCircleClipper")+" "+nt("peoplekitComponentsCircularprogressRight")+'"><div class="'+nt("peoplekitComponentsCircularprogressCircle")+" "+nt("exportCircle")+'"></div></div></div></div></div>';b=qt(b);return rt(tt(a,b),'</div><div peoplekit-id="'+nt("i2HSVe")+'"></div></div>')},Y8b=function(){return qt('<div class="'+nt("peoplekitComponentsAutocompleteInlineNoResultsContainer")+
'"></div>')};var T8b=function(a){a=a||{};var b=a.primaryMessage,c=a.contextMessage,d=a.learnMoreUrl,e=a.urlText;a=a.jsname;a='<div class="'+nt("peoplekitComponentsNoResultsMessageNoResultsMessage")+'"'+(a?' jsname="'+nt(a)+'"':"")+'><p class="'+nt("peoplekitComponentsNoResultsMessageHeader")+'">';a=b?a+ot(b):a+"No results";a+="</p>";if(c||d)a+='<p class="'+nt("peoplekitComponentsNoResultsMessageExplanation")+'">'+(c?ot(c)+(d?" ":""):""),d&&(a+='<a jsname="'+nt("viORvd")+'" class="'+nt("peoplekitComponentsNoResultsMessageLearnMoreLink")+
'" target="_blank" href="'+nt(pt(d))+'">',a=e?a+ot(e):a+"Learn more",a+="</a>"),a+="</p>";return qt(a+"</div>")};var Z8b=function(a,b){this.parent=a;this.config=b};Z8b.prototype.update=function(a){this.root&&this.root.remove();a=this.config.display(a);if(!a)return!1;this.root=Hp(T8b,a);this.parent.appendChild(this.root);return!0};var $8b=function(){};$8b.prototype.update=function(){return!1};var U8b=function(){};U8b.prototype.update=function(){return!0};var Hod=function(){return qt('<div peoplekit-id="'+nt("i2HSVe")+'"></div>')},Iod=function(a){return qt('<div peoplekit-id="'+nt(a.id)+'"></div>')};var X8b=function(a){this.parent=a;this.root=Hp(Hod);this.parent.appendChild(this.root)};X8b.prototype.get=function(a){if(D5b(this.root,a).length===0){var b=Hp(Iod,{id:a});this.root.appendChild(b)}return Cs(this.root,a)};X8b.prototype.clear=function(){this.root.replaceChildren()};X8b.prototype.dispose=function(){this.root.remove()};X8b.prototype.getRoot=function(){return this.root};Q6b.addCoreFactory({type:0,factory:{create:function(a){return{injectableResultConfig:a.injectableResultConfig,injectableAutocompleteGrouping:a.injectableAutocompleteGrouping}},shouldCreate:function(){return!0}},configurationKey:void 0});var c9b=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=w6b(this.root,{moveAboveAnchorIfOffscreen:this.config.getMoveAutocompleteAboveAnchorIfOffscreen()});this.inlineAutocomplete.getNavigatable().setSecondaryEventTargets([this.inlineAutocomplete,this]);this.eventHandler=Gs(this);this.onSelectionCallback=function(){f.onSelect()};this.onSelectionAttemptedCallback=function(){f.onSelectAttempt()};
this.attach()};g=c9b.prototype;g.search=function(a,b,c,d){var e=this;this.hide();this.inlineAutocomplete.search(a,b,c,function(f){e.anchor=b;e.update(f);d(f)})};g.attach=function(){var a=this;I8(this.selectionsState,this.onSelectionCallback);this.selectionsState.selectionAttemptedCallbacks.add(this.onSelectionAttemptedCallback,2);this.eventHandler.listen(this.root,"mouseover",function(b){Date.now()-a.lastShowTime<100&&(b.preventDefault(),b.stopPropagation())})};g.onSelect=function(){this.hide()};
g.onSelectAttempt=function(){this.hide()};g.onKeyDown=function(a){this.isShown()&&a.event.keyCode===27&&(this.hide(),a.preventDefault(),a.stopPropagation())};g.detach=function(){this.hide()};g.isShown=function(){return this.popup.isShown()};g.canHide=function(){return!0};
g.dispose=function(){this.detach();this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback);this.selectionsState.selectionAttemptedCallbacks.remove(this.onSelectionAttemptedCallback);this.eventHandler.removeAll();this.inlineAutocomplete.dispose();this.root.parentNode&&this.root.parentNode.removeChild(this.root)};g.getNavigatable=function(){return this.inlineAutocomplete.getNavigatable()};g.getRoot=function(){return this.root};g.hasFocus=function(){return this.inlineAutocomplete.hasFocus()};
g.focus=function(){this.inlineAutocomplete.focus()};g.refresh=function(){return this.inlineAutocomplete.refresh()};g.showLoadingIndicator=function(){this.inlineAutocomplete.showLoadingIndicator()};g.hideLoadingIndicator=function(){this.inlineAutocomplete.hideLoadingIndicator()};g.update=function(a){a.hasContent&&this.show()};
g.show=function(){this.navigationInput.setAttribute("aria-expanded","true");this.lastShowTime=Date.now();var a=this.navigationInput.clientWidth;a:{var b=this.config.getDensity();switch(b){case 0:b=300;break a;case 1:b=300;break a;case 2:b=240;break a;default:throw Error("Ef`"+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("Ef`"+c);}}this.root.style.width=qI(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("Ef`"+a);}this.root.style.maxHeight=this.config.getAutocompleteMaxResultsBeforeScroll()*a+"px";this.popup.show(this.anchor)};g.hide=function(){this.popup.hide();this.navigationInput.setAttribute("aria-expanded","false");this.inlineAutocomplete.detach()};var b9b=function(){return qt('<div class="'+nt("peoplekitComponentsAutocompletePopupContainer")+'" peoplekit-id="'+nt("noeiCf")+'" style="display: none;"></div>')};var Jod=function(){this.batches=new Map};Jod.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 e9b=function(a,b){this.service=a;this.resolveComponents=b};
e9b.prototype.update=function(a){var b=this;a=l([].concat(p(a.batches.values())));for(var c=a.next();!c.done;c=a.next()){var d=c.value;if(d.features.length){c=this.service.for(d.ids);d=l(d.features);for(var e=d.next();!e.done;e=d.next())switch(e.value){case 1:c=c.withWaldo(function(f){Kod(b,f.values,function(h,k,q){q.updateWaldo(k,h)})});break;case 2:c=c.withHubAvailabilityDot(function(f){Kod(b,f.values,function(h,k,q){q.updateHubAvailabilityDot(k,h)})})}c.execute()}}};
var Kod=function(a,b,c){b=l(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;for(var e=d.getLookupId(),f=l(a.resolveComponents(e)),h=f.next();!h.done;h=f.next())c(e,d,h.value)}};var Lod=new Set([1,3,20]),Mod=function(a){var b=this;this.idToComponent=new Map;this.updater=f9b(a,function(c){return b.resolveComponents(c)})};g=Mod.prototype;
g.append=function(a){var b=a.filter(function(f){return f.getAllIds().some(function(h){return Lod.has(h.getType())})});a=[];b=l(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;c.initializeIntelligence();for(var d=l(c.getAllIds()),e=d.next();!e.done;e=d.next())e=e.value,a.push(e),e=String(e),this.idToComponent.has(e)||this.idToComponent.set(e,[]),this.idToComponent.get(e).push(c)}this.refresh(a)};
g.remove=function(a){a=l(a);for(var b=a.next(),c={};!b.done;c={component$jscomp$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(h){return h!==f.component$jscomp$145}}(c)))}}};g.resolveComponents=function(a){return this.idToComponent.get(String(a))||[]};
g.refresh=function(a){var b=new Jod;a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=this.resolveComponents(c);d=l(d);for(var e=d.next();!e.done;e=d.next())b.add(c,e.value.getSupportedIntelligenceFeatures())}this.updater.update(b)};g.clear=function(){this.idToComponent.clear()};var Nod=function(){};Nod.prototype.append=function(){};Nod.prototype.remove=function(){};Nod.prototype.refresh=function(){};Nod.prototype.clear=function(){};var R9b=function(a){this.peopleIntelligence=a};R9b.prototype.create=function(){return this.peopleIntelligence?new Mod(this.peopleIntelligence):new Nod};var Ood=Object.freeze(new Map([[5,1]]));var Pod=function(){this.entryPoint_=0};Pod.prototype.getPeoplekitEntryPoint=function(){return this.entryPoint_};Pod.prototype.setPeoplekitEntryPoint=function(a){this.entryPoint_=a;return this};Pod.prototype.serialize=function(){return[this.entryPoint_].toString()};var Qod=Object.freeze(new Pod);var Rod=function(){this.originator_=0};Rod.prototype.setOriginator=function(a){this.originator_=a;return this};Rod.prototype.getOriginator=function(){return this.originator_};var i9b=function(a,b,c){var d=this;this.reporter=a.getReporter((new Pod).setPeoplekitEntryPoint(c));I8(b,function(e,f,h){d.select(e,h)},0);H8(b,function(e,f,h){d.deselect(e,h)},0);Sod(b,function(e,f,h,k){d.replace(e,k)},0);Tod(b,function(e,f){d.selectExplodingGroup(e,f)})};i9b.prototype.display=function(a){this.reporter.reportDisplay(g9b(a.getTargetList()))};i9b.prototype.select=function(a,b){a.isPlaceholder()||Uod(this,$s([a]),b)};
i9b.prototype.selectExplodingGroup=function(a,b){Uod(this,[a.getLoggingToken()],b)};var Uod=function(a,b,c){switch(c){case 1:case 12:case 5:a.reporter.reportSelect(b,(new Rod).setOriginator(Ood.get(c)||0));break;case 6:a.reporter.reportExternalSelect(b)}};g=i9b.prototype;g.deselect=function(a,b){if(!a.isPlaceholder())switch(b){case 7:case 8:case 1:this.reporter.reportDeselect($s([a]))}};g.dismiss=function(a){this.reporter.reportDismiss($s(a))};g.save=function(a){this.reporter.reportSave($s(a))};
g.send=function(a){this.reporter.reportSend($s(a))};g.replace=function(a,b){switch(b){case 5:case 6:this.select(a,b)}};var Vod=function(){this.isBatchingInternal=!1;this.timerId=this.lastBatchTime=0};Vod.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=Vq(function(){b.isBatchingInternal=!1;a()},d>100?0:100)}};Vod.prototype.cancel=function(){Wq(this.timerId);this.isBatchingInternal=!1};var T9b=function(a,b,c,d,e,f){var h=this;this.root=a;this.autocomplete=b;this.selectionsState=c;this.interactions=d;this.tracker=e;this.config=f;this.selectionChangedListeners=[];this.selectionChangedAutoBatcher=new Vod;I8(this.selectionsState,function(){h.notifySelectionChanged(!1)});H8(this.selectionsState,function(){h.notifySelectionChanged(!0)})};g=T9b.prototype;
g.search=function(a,b){this.config.getClearSelectionsOnSearch()&&this.selectionsState.clear();var c=!1;this.autocomplete.search(a,b,this.config.getShowSuggestions(),function(d){d.count>0&&!c&&(c=!0)})};g.select=function(a){this.selectionsState.select(a)};g.deselect=function(a){this.selectionsState.deselect(a)};g.isShown=function(){return this.autocomplete.isShown()};g.report=function(a,b){b=b===void 0?[]:b;b=b.length?b:this.selectionsState.asArray();h9b(this.interactions,a,b)};g.cancel=function(){this.autocomplete.detach()};
g.dispose=function(){this.tracker.stop();this.selectionChangedListeners.length=0;this.selectionsState.clear();this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.autocomplete.dispose()};g.subscribeToSelectionChanged=function(a){this.selectionChangedListeners.push({listener:a,listenToDeselections:!1})};
g.notifySelectionChanged=function(a){var b=this;this.selectionChangedAutoBatcher.call(function(){for(var c=b.selectionsState.asArray(),d=l(b.selectionChangedListeners),e=d.next();!e.done;e=d.next()){var f=e.value;e=f.listener;f=f.listenToDeselections;a&&!f||e(c,a)}})};var Q9b=function(a){a=a||{};a=a.classes;return qt('<div peoplekit-id="'+nt("nVhUhf")+'"'+(a?' class="'+nt(a)+'"':"")+"></div>")};var Wod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Wod,n);g=Wod.prototype;g.getClientId=function(){return pk(this,1)};g.setClientId=function(a){return Rk(this,1,a)};g.getEntryPoint=function(){return pk(this,5)};g.setEntryPoint=function(a){return Rk(this,5,a)};g.getSocialClient=function(){return W(this,JH,2)};g.setSocialClient=function(a){return X(this,JH,2,a)};g.setVersionName=function(a){return Qk(this,3,a)};g.getBaselineCl=function(){return xk(this,4)};
g.setBaselineCl=function(a){return Ek(this,4,a)};g.hasBaselineCl=function(){return wk(this,4)};g.getBaselineClOrUndefined=function(){return Pb(rk(this,4))};g.getComponentFlow=function(){return pk(this,7)};g.setComponentFlow=function(a){return Rk(this,7,a)};var O8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(O8,n);var Xod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Xod,n);g=Xod.prototype;g.getLabel=function(){return pk(this,1)};g.setLabel=function(a){return Rk(this,1,a)};g.hasLabel=function(){return nk(this,1)};g.getCause=function(){return pk(this,2)};g.setCause=function(a){Rk(this,2,a)};var Yod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Yod,n);g=Yod.prototype;g.getLabel=function(){return pk(this,1)};g.setLabel=function(a){return Rk(this,1,a)};g.hasLabel=function(){return nk(this,1)};g.getValue=function(){return xk(this,2,jb(1))};g.setValue=function(a){return Ek(this,2,a)};g.hasValue=function(){return wk(this,2)};var Zod=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Zod,n);g=Zod.prototype;g.getLabel=function(){return Rc(this,1)};g.setLabel=function(a){return Qk(this,1,a)};g.hasLabel=function(){return mk(this,1)};g.getCause=function(){return Rc(this,2)};g.setCause=function(a){Qk(this,2,a)};var $od=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($od,n);g=$od.prototype;g.getLabel=function(){return pk(this,1)};g.setLabel=function(a){return Rk(this,1,a)};g.hasLabel=function(){return nk(this,1)};g.setLatencyUsec=function(a){Ek(this,2,a)};g.getCacheStatus=function(){return pk(this,3)};g.setCacheStatus=function(a){return Rk(this,3,a)};var apd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(apd,n);apd.prototype.getInterfaceType=function(){return pk(this,1)};apd.prototype.setInterfaceType=function(a){return Rk(this,1,a)};var bpd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bpd,n);g=bpd.prototype;g.getCount=function(){return W(this,Yod,3)};g.getMutableCount=function(){return Cu(this,Yod,3)};g.setCount=function(a){return X(this,Yod,3,a)};g.getMutableLatency=function(){return Cu(this,$od,4)};g.setLatency=function(a){X(this,$od,4,a)};g.getError=function(){return W(this,Zod,5)};g.setError=function(a){X(this,Zod,5,a)};g.hasError=function(){return tk(this,Zod,5)};var cpd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(cpd,n);cpd.prototype.setElementIndex=function(a){Ok(this,2,a)};cpd.prototype.setUserAction=function(a){return Rk(this,4,a)};var dpd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dpd,n);g=dpd.prototype;g.getClientInterface=function(){return W(this,Wod,3)};g.setClientInterface=function(a){return X(this,Wod,3,a)};g.getMetadata=function(){return W(this,O8,4)};g.getMutableMetadata=function(){return Cu(this,O8,4)};g.setMetadata=function(a){X(this,O8,4,a)};g.hasMetadata=function(){return tk(this,O8,4)};var k9b=function(a,b){this.entryPoint=b;this.logContext=Xbc(fu(new gu,"peoplekit.health").setLogSource(624).setApplication(a.getSocialApplicationOrUndefined()).setEnvironment(0).setVersion("1.0").setBaselineCl(794327108).setEnableClearcut(a.getEnableClearcut()),h8b.getExperimentIds());this.clientId=a.getClientId();this.componentFlow=a.getComponentFlow()};g=k9b.prototype;g.getLogContext=function(){return this.logContext};
g.createCountMetric=function(a,b,c){b.source().getMutableCount().setValue(c);return epd(this,a,b)};g.createStatusMetric=function(){throw Error("rf");};g.createLatencyMetric=function(a,b){b.source().getMutableLatency().setLatencyUsec(TH(b,"total"));return epd(this,a,b)};g.createErrorMetric=function(a,b){return epd(this,a,b)};
var epd=function(a,b,c){a=(new dpd).setClientInterface((new Wod).setClientId(a.clientId).setSocialClient(b.getSocialClient()).setVersionName(a.getLogContext().getVersionOrUndefined()).setBaselineCl(a.getLogContext().getBaselineClOrUndefined()).setComponentFlow(a.componentFlow).setEntryPoint(a.entryPoint));c=c.source();return X(a,bpd,2,c)};var fpd=function(a,b){this.metrics_=a;this.state_=new SH(b);this.source=b};fpd.prototype.increment=function(a){this.metrics_.count(this.state_,a===void 0?1:a)};var gpd=function(a,b){this.metrics_=a;this.state_=new SH(b);this.source=b};gpd.prototype.report=function(){this.metrics_.error(this.state_)};var m9b=function(a,b){this.metrics=a;this.userInterfaceType=b};m9b.prototype.createCount=function(a,b){a=hpd(this,a,3);a.getMutableCount().setLabel(b);return new fpd(this.metrics,a)};m9b.prototype.createError=function(a,b,c){a=hpd(this,a,5);Cu(a,Xod,8).setLabel(b).setCause(c);return new gpd(this.metrics,a)};var hpd=function(a,b,c){var d=new bpd;c=Rk(d,1,c);a=(new apd).setInterfaceType(a.userInterfaceType);b=Rk(a,2,b);return X(c,apd,2,b)};var l9b=function(a){this.trackers=a},Fod=function(a){a=a.trackers;var b=hpd(a,2,4);b.getMutableLatency().setLabel(8);return new G8(a.metrics,b)};l9b.prototype.createCount=function(a,b){return this.trackers.createCount(b===void 0?0:b,a)};l9b.prototype.createError=function(a,b,c){return this.trackers.createError(c===void 0?0:c,a,b===void 0?0:b)};var P8=function(){this.itemsByPriority=[]};P8.prototype.add=function(a,b){this.itemsByPriority[b]||(this.itemsByPriority[b]=new Set);this.itemsByPriority[b].add(a)};P8.prototype.remove=function(a){for(var b=l(this.itemsByPriority),c=b.next();!c.done;c=b.next())(c=c.value)&&c.delete(a)};P8.prototype.asArray=function(){return this.itemsByPriority.flatMap(function(a){return[].concat(p(a))})};var ft=function(){this.selectionCallbacks=new P8;this.deselectionCallbacks=new P8;this.selectionReplacedCallbacks=new P8;this.selectionAttemptedCallbacks=new P8;this.explodingGroupSelectionCallbacks=new P8;this.selectionsState=[]};
ft.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 o9b(a,b,c,this.selectionAttemptedCallbacks.asArray()),!1;b>=0?(this.selectionsState.splice(b,0,a),o9b(a,b,c,this.selectionCallbacks.asArray())):(this.selectionsState.push(a),o9b(a,this.selectionsState.length-1,c,this.selectionCallbacks.asArray()));return!0};
ft.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)};ft.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),o9b(a,d,b,this.deselectionCallbacks.asArray()))};
ft.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 I8=function(a,b,c){a.selectionCallbacks.add(b,c===void 0?2:c)},H8=function(a,b,c){a.deselectionCallbacks.add(b,c===void 0?2:c)},Sod=function(a,b,c){a.selectionReplacedCallbacks.add(b,c===void 0?2:c)},Tod=function(a,b){a.explodingGroupSelectionCallbacks.add(b,0)};g=ft.prototype;
g.get=function(a){var b=String(a);return this.selectionsState.find(function(c){return b===String(c.id())})};g.at=function(a){return this.selectionsState[a]};g.replace=function(a,b,c){c=c===void 0?0:c;var d=String(a),e=this.selectionsState.findIndex(function(f){return d===String(f.id())});if(e<0||!a.equals(b.id())&&this.get(b.id()))return!1;this.selectionsState[e]=b;p9b(b,e,a,c,this.selectionReplacedCallbacks.asArray());return!0};
g.pop=function(a){a=a===void 0?0:a;var b=this.selectionsState.pop();if(b)return o9b(b,this.selectionsState.length,a,this.deselectionCallbacks.asArray()),b};g.indexOf=function(a){var b=String(a);return this.selectionsState.findIndex(function(c){return b===String(c.id())})};g.asArray=function(){return this.selectionsState.slice()};g.size=function(){return this.selectionsState.length};g.clear=function(){for(;this.selectionsState.length>0;)this.deselect(this.selectionsState[0])};for(var ipd={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"}},q9b=u9b(ipd),jpd=new Map,kpd=l(Object.keys(ipd)),lpd=kpd.next();!lpd.done;lpd=kpd.next()){var mpd=lpd.value;jpd.set(ipd[mpd].xid,ipd[mpd].string)}
var s9b=u9b({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 Q8=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},npd=function(a,b){return b?a.tracks_.has(a.maybeXidEventLabel_(b)):a.tracks_.size!=0};g=Q8.prototype;g.setIndex=function(a){this.index_=a};g.getIndex=function(){return this.index_};
g.setComponentID=function(a){this.componentID_=a};g.getComponentID=function(){return this.componentID_};g.isMutable=function(){return this.mutable_};g.setAttribute=function(a){this.attribute_=a;return this};g.getAttribute=function(){return this.attribute_};var opd=function(a,b){for(var c=0;c<a.metadataHandlers_.length;++c)a.metadataHandlers_[c](b)};Q8.prototype.maybeXidEventLabel_=function(a){return this.xidTagComponents_?r9b(a):a};
Q8.prototype.maybeXidPartLabel_=function(a){return this.xidTagComponents_?t9b(a):a};Q8.prototype.isMutable=Q8.prototype.isMutable;var ppd=function(a){Q8.call(this,a)};Y(ppd,Q8);var qpd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(qpd,n);var rpd=[0,jfc,mfc,-1];var R8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(R8,n);var spd=[0,rpd,jfc];var S8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(S8,n);S8.prototype.setVeIndex=function(a){Ok(this,1,a)};var tpd=function(a,b){Ok(a,2,b)};S8.prototype.setElementIndex=function(a){Ok(this,5,a)};S8.prototype.getResultIndex=function(){return Ej(this,6,-1)};S8.prototype.setResultIndex=function(a){Ok(this,6,a)};var upd=[0,Wu,-1,2,Wu,-4,Xu,Wu,lfc,spd,Wu,[0,kfc,Wu],Wu];var vpd=Jda(S8,upd),wpd=function(a){return function(b){var c=new $ec;Fda(b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c,Oc(a));return afc(c)}}(upd);var xpd=function(a,b){this.el_=a;this.veTag_=b;this.loggedImpression_=!1;this.rootImpressionEventID=this.impressionEventID=void 0;this.neverShown=this.hidden=!0;this.serverVed_=this.parent_=this.traversalOrder_=void 0};xpd.prototype.getTag=function(){return this.veTag_};xpd.prototype.getElement=function(){return this.el_};var zpd=function(a){var b=ypd++;a.traversalOrder_=b};xpd.prototype.setParent=function(a){this.parent_=a};xpd.prototype.getParent=function(){return this.parent_};
var Apd=function(a){if(a.impressionEventID){var b=new S8;b.setVeIndex(a.traversalOrder_);tpd(b,a.getTag().visualElementID);X(b,R8,13,a.impressionEventID);a=wpd(b);return"0"+gec(a,4)}};var A9b=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(A9b,n);g=A9b.prototype;g.getClientId=function(){return pk(this,1)};g.setClientId=function(a){return Rk(this,1,a)};g.getEntryPoint=function(){return pk(this,2)};g.setEntryPoint=function(a){return Rk(this,2,a)};g.getApplication=function(){return pk(this,3)};g.setApplication=function(a){return Rk(this,3,a)};g.getApplicationOrUndefined=function(){return Nm(this,3)};g.setVersionName=function(a){return Qk(this,4,a)};
g.getBaselineCl=function(){return xk(this,5)};g.setBaselineCl=function(a){return Ek(this,5,a)};g.hasBaselineCl=function(){return wk(this,5)};g.getBaselineClOrUndefined=function(){return Pb(rk(this,5))};g.getMetadata=function(){return W(this,O8,6)};g.getMutableMetadata=function(){return Cu(this,O8,6)};g.setMetadata=function(a){X(this,O8,6,a)};g.hasMetadata=function(){return tk(this,O8,6)};g.setSharekitEntryPoint=function(a){Rk(this,7,a)};
g.getSharekitEntryPointOrUndefined=function(){return Nm(this,7)};var C9b=function(a){this.context_=a};C9b.prototype.createNewTag=function(a){return new ppd(a)};C9b.prototype.addEventMetadata=function(a){Evc(a,this.context_.serialize())};var Bpd=function(){this.client_info=this.global_metadata=this.ve_metadata=void 0;this.testCodes=[]};var Cpd=function(){};Cpd.prototype.impressionEvent=function(){return[]};Cpd.prototype.interactionEvent=function(){return[]};Cpd.prototype.visibilityEvent=function(){return[]};var Fpd=function(){if(!Dpd){var a=Dpd=new qpd,b=Date.now()*1E3+Math.floor(Math.random()*1E3);Ek(a,1,b);pq(Dpd,2,yba());pq(Dpd,3,yba());Epd=0}a=new R8;a=X(a,qpd,1,Dpd);b=++Epd;return Ek(a,2,b)},Epd=0,Dpd=void 0;var T8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,1)};Y(T8,n);var U8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(U8,n);var V8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(V8,n);V8.prototype.setVed=function(a){return Rl(this,5,Gpd,a)};var Hpd=[1,3,4],Gpd=[2,5];var W8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,7)};Y(W8,n);g=W8.prototype;g.getTarget=function(){return W(this,V8,1)};g.setTarget=function(a){return X(this,V8,1,a)};g.getType=function(){return pk(this,2)};g.setType=function(a){return Rk(this,2,a)};g.hasType=function(){return nk(this,2)};var Ipd=function(a){var b=Date.now();b=Number.isFinite(b)?b*1E3:void 0;Ek(a,4,b)};var Jpd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Jpd,n);var X8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,233)};Y(X8,n);X8.prototype.setUiType=function(a){return Ok(this,1,a)};X8.prototype.setElementIndex=function(a){Ok(this,3,a)};var Kpd=function(a,b){vc(a,4,b,Cb)};X8.prototype.getResultIndex=function(){return Ej(this,7)};X8.prototype.setResultIndex=function(a){Ok(this,7,a)};X8.prototype.setVisible=function(a){return Rk(this,6,a)};var Y8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,17)};Y(Y8,n);g=Y8.prototype;g.setVed=function(a){return Qk(this,11,a)};g.setUiType=function(a){return Ok(this,1,a)};g.setVeIndex=function(a){Ok(this,2,a)};g.getResultIndex=function(){return Ej(this,7,-1)};g.setResultIndex=function(a){Ok(this,7,a)};g.setElementIndex=function(a){Ok(this,8,a)};var Lpd=function(a,b){Bm(a,14,b)};var Z8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Z8,n);var Mpd=function(a){this.userAction=a};var Opd=function(a,b){this.userAction=a;this.visualElementID=b;Npd++},Npd=0;var Ppd=function(){this.xidTagComponents_=!1};Ppd.prototype.createNewTag=function(a){return new Q8(a,this.xidTagComponents_)};Ppd.prototype.addEventMetadata=function(){};var $8=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($8,n);var Qpd=function(a,b){Bm(a,1,b)};$8.prototype.addPath=function(a,b){return Po(this,1,X8,a,b)};$8.prototype.setPath=function(a,b){return Au(this,1,X8,a,b)};var Rpd=new Yu(100,W8,$8);var a9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(a9,n);var b9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(b9,n);b9.prototype.getTimestamp=function(){return W(this,a9,1)};b9.prototype.setTimestamp=function(a){return X(this,a9,1,a)};b9.prototype.hasTimestamp=function(){return tk(this,a9,1)};var Spd=new Yu(126,T8,b9);var Tpd=new Yu(618,X8,b9);var Upd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,2)};Y(Upd,n);var Vpd=new Yu(273,X8,Upd);g=v9b.prototype;g.add=function(a){var b=this.buff_[this.nextPtr_];this.buff_[this.nextPtr_]=a;this.nextPtr_=(this.nextPtr_+1)%this.maxSize_;return b};g.get=function(a){a=Wpd(this,a);return this.buff_[a]};g.set=function(a,b){a=Wpd(this,a);this.buff_[a]=b};g.getCount=function(){return this.buff_.length};g.isEmpty=function(){return this.buff_.length==0};g.clear=function(){this.nextPtr_=this.buff_.length=0};
g.getValues=function(){var a=this.getCount(),b=this.getCount(),c=[];for(a=this.getCount()-a;a<b;a++)c.push(this.get(a));return c};g.getKeys=function(){for(var a=[],b=this.getCount(),c=0;c<b;c++)a[c]=c;return a};g.containsKey=function(a){return a<this.getCount()};g.containsValue=function(a){for(var b=this.getCount(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};var Wpd=function(a,b){if(b>=a.buff_.length)throw Error("Wf");return a.buff_.length<a.maxSize_?b:(a.nextPtr_+Number(b))%a.maxSize_};var ct=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 v9b};Y(ct,Cpd);ct.prototype.impressionEvent=function(a,b){for(var c=[],d=[],e=0;e<a.length;++e)a[e].keys().next().value.impressionEventID?d.push(a[e]):c.push(a[e]);a=Xpd(this,c,b);b=this.enableBatching_?Ypd(this,d,b):Zpd(this,d,b);return a.concat(b)};
ct.prototype.interactionEvent=function(a,b){var c=new Z8,d=Fpd();X(c,R8,1,d);d=new Y8;a.serverVed_?d.setVed(a.serverVed_):d.setUiType(a.getTag().visualElementID).setVeIndex(a.traversalOrder_);Lpd(Ok(d,3,b.userAction),this.getAncestry_(a));var e=a.getTag();e.interactionMetadataHandler_&&e.interactionMetadataHandler_(d);this.setTimestamp(d);e=new U8;X(e,R8,1,a.impressionEventID);X(c,R8,3,a.impressionEventID);X(c,Y8,4,d);X(c,U8,9,e);this.recentInteractions_.add(new Opd(b.userAction,a.getTag().visualElementID));
a=new pE;Fvc(a,c.serialize());return[a]};
ct.prototype.visibilityEvent=function(a,b){for(var c=[],d=new Map,e=0;e<a.length;++e){var f=a[e],h=f.getElement(),k=f.rootImpressionEventID,q=d.get(k);q=q?q:[];var v=new $8;this.enableAncestryLoggingForGrafts_&&Qpd(v,this.getAncestry_(f));if(f.neverShown||npd(f.getTag(),"vis"))if(h=this.isVisible_(h,b),f.hidden&&h){h=new W8;h.setType(1);var A=$pd(f);h.setTarget(A);Ipd(h);this.enableAncestryLoggingForGrafts_&&Ot(h,Rpd,v);q.push(h);f.hidden=!1;f.neverShown=!1}else f.hidden||h||(h=new W8,h.setType(2),
A=$pd(f),h.setTarget(A),Ipd(h),this.enableAncestryLoggingForGrafts_&&Ot(h,Rpd,v),q.push(h),f.hidden=!0);d.set(k,q)}a=l(d.keys());for(b=a.next();!b.done;b=a.next())b=b.value,f=d.get(b),f.length&&(e=new Jpd,Bm(e,1,f),f=new Z8,k=Fpd(),q=new U8,X(q,R8,1,b),X(f,R8,1,k),X(f,R8,3,b),X(f,Jpd,7,e),X(f,U8,9,q),b=new pE,Fvc(b,f.serialize()),c.push(b));return c};
ct.prototype.isVisible_=function(a,b){if(a.hasAttribute("ve-visible"))return a.getAttribute("ve-visible")=="true";if(a instanceof HTMLElement&&(a.offsetWidth<=0||a.offsetHeight<=0))return!1;a=a.getBoundingClientRect();return(b=eHc(b,new oI(a.left,a.top,a.width,a.height)))&&b.width>=10&&b.height>=10?!0:!1};
var Xpd=function(a,b,c){for(var d=[],e={},f=b.length-1;f>=0;e={impressionEventID:void 0,clientVeProto$jscomp$7:void 0,testCodes$jscomp$1:void 0},f--){e.clientVeProto$jscomp$7=new Z8;e.testCodes$jscomp$1=[];e.impressionEventID=Fpd();X(e.clientVeProto$jscomp$7,R8,1,e.impressionEventID);var h=new U8;X(h,R8,1,e.impressionEventID);X(e.clientVeProto$jscomp$7,U8,9,h);if(h=thb(window.location.href,"ved"))h=(new Y8).setVed(h),X(e.clientVeProto$jscomp$7,Y8,4,h);b[f].forEach(function(k){return function(q,v){v.impressionEventID=
k.impressionEventID;v.rootImpressionEventID=k.impressionEventID;var A=this.getVisualElementLiteProto_(v);q.length&&Kpd(A,q);q=v.getElement();this.isVisible_(q,c)?(v.neverShown=!1,v.hidden=!1):A.setVisible(1);aqd(this,v)&&v.traversalOrder_!==void 0&&(q.setAttribute("data-hveid",Number(v.traversalOrder_)),Sj(k.clientVeProto$jscomp$7,X8,2,Bj()).length===0&&Apd(v)&&(q.setAttribute("decode-data-ved","1"),q.setAttribute("data-ved",Apd(v)+"")));this.setTimestamp(A);Po(k.clientVeProto$jscomp$7,2,X8,A);k.testCodes$jscomp$1=
k.testCodes$jscomp$1.concat(v.getTag().testCodes_)}}(e),a);h=new pE;Fvc(h,e.clientVeProto$jscomp$7.serialize());vc(h,20,e.testCodes$jscomp$1,Cb);d.push(h)}return d},Ypd=function(a,b,c){for(var d=[],e=new Map,f=b.length-1;f>=0;f--){var h=b[f],k=h.keys().next().value.rootImpressionEventID,q=e.get(k)||[];q.push(h);e.set(k,q)}e.forEach(function(v,A){var E=0,H=[],L=new Z8,O=[],S=Fpd();X(L,R8,1,S);X(L,R8,3,A);var aa=new U8;X(aa,R8,1,A);X(L,U8,9,aa);for(aa=0;aa<v.length;aa++)for(var ka=v[aa],na=ka.keys(),
za=na.next().value,Na=ka.get(za),Pa={},hb=0;hb<Na.length;Pa={startingOffset:void 0,cloneTreeRootIndex:void 0},++hb){var ua=za;Pa.cloneTreeRootIndex=0;Pa.startingOffset=Na[hb];var Ha=ka.size;hb!=Na.length-1&&(Ha=Na[hb+1]);for(var Ia=Pa.startingOffset;Ia<Ha;++Ia){var tb=na.next().value;Ia==Pa.startingOffset&&(ua=tb,Pa.cloneTreeRootIndex=E);tb.impressionEventID=S;tb.rootImpressionEventID=A;tb.traversalOrder_=E;var rb=ka.get(tb),dc=this.getVisualElementLiteProto_(tb);rb.length&&Kpd(dc,rb.map(function(bc){return function(Ac){return Ac-
bc.startingOffset+bc.cloneTreeRootIndex}}(Pa)));rb=tb.getElement();this.isVisible_(rb,c)?(tb.neverShown=!1,tb.hidden=!1):dc.setVisible(1);this.setTimestamp(dc);Po(L,2,X8,dc);O=O.concat(tb.getTag().testCodes_);E++}Pa=new W8;Pa.setType(3);Ha=$pd(za);Pa.setTarget(Ha);Ha=new V8;Ia=new S8;tb=new $8;Ia.setVeIndex(ua.traversalOrder_);tpd(Ia,ua.getTag().visualElementID);nm(Ha,2,Gpd,Ia);X(Pa,V8,3,Ha);this.enableAncestryLoggingForGrafts_&&(Qpd(tb,this.getAncestry_(ua)),Ot(Pa,Rpd,tb));H.push(Pa)}H.length&&(v=
new Jpd,Bm(v,1,H),X(L,Jpd,7,v));H=new pE;Fvc(H,L.serialize());vc(H,20,O,Cb);d.push(H)},a);return d},Zpd=function(a,b,c){for(var d=[],e=b.length-1;e>=0;e--)for(var f=b[e],h=f.keys(),k=h.next().value,q=f.get(k),v={},A=0;A<q.length;v={startingOffset$jscomp$1:void 0},++A){v.startingOffset$jscomp$1=q[A];var E=f.size;A!=q.length-1&&(E=q[A+1]);var H=new Z8,L=[],O=Fpd(),S=new U8;X(S,R8,1,k.impressionEventID);X(H,R8,1,O);X(H,R8,3,k.impressionEventID);Rk(H,5,3);X(H,U8,9,S);S=new Y8;k.serverVed_?S.setVed(k.serverVed_):
S.setUiType(k.getTag().visualElementID).setVeIndex(k.traversalOrder_);Lpd(S,a.getAncestry_(k));X(H,Y8,4,S);for(S=v.startingOffset$jscomp$1;S<E;++S){var aa=h.next().value;aa.impressionEventID=O;aa.rootImpressionEventID=k.rootImpressionEventID;aa.traversalOrder_!=void 0&&(aa.traversalOrder_-=v.startingOffset$jscomp$1);var ka=f.get(aa),na=a.getVisualElementLiteProto_(aa);ka.length&&Kpd(na,ka.map(function(za){return function(Na){return Na-za.startingOffset$jscomp$1}}(v)));ka=aa.getElement();a.isVisible_(ka,
c)?(aa.neverShown=!1,aa.hidden=!1):na.setVisible(1);aqd(a,aa)&&aa.traversalOrder_!==void 0&&(ka.setAttribute("data-hveid",Number(aa.traversalOrder_)),Sj(H,X8,2,Bj()).length===0&&Apd(aa)&&(ka.setAttribute("decode-data-ved","1"),ka.setAttribute("data-ved",Apd(aa)+"")));a.setTimestamp(na);Po(H,2,X8,na);L=L.concat(aa.getTag().testCodes_)}v=new pE;Fvc(v,H.serialize());vc(v,20,L,Cb);d.push(v)}return d};
ct.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};ct.prototype.getVisualElementLiteProto_=function(a){var b=(new X8).setUiType(a.getTag().visualElementID);Number.isFinite(a.getTag().getIndex())&&b.setElementIndex(a.getTag().getIndex());opd(a.getTag(),b);aqd(this,a)&&(a=new Upd,Nk(a,1,!0),Ot(b,Vpd,a));return b};
var $pd=function(a){var b=new V8;if(a.serverVed_)b.setVed(a.serverVed_);else{var c=new S8;nm(b,3,Hpd,a.impressionEventID);c.setVeIndex(a.traversalOrder_);tpd(c,a.getTag().visualElementID);nm(b,2,Gpd,c)}return b};
ct.prototype.setTimestamp=function(a){var b=Date.now();b=Number.isFinite(b)?b.toString():void 0;if(a instanceof Y8&&(!W(a,T8,15)||!W(a,T8,15).getExtension(Spd))){var c=new b9,d=new a9,e=W(a,T8,15);e||(e=new T8);Uk(d,1,b);c.setTimestamp(d);Ot(e,Spd,c);X(a,T8,15,e)}a instanceof X8&&(c=new b9,d=new a9,Uk(d,1,b),c.setTimestamp(d),Ot(a,Tpd,c))};var aqd=function(a,b){return a.enableAttentionLogging_?npd(b.getTag(),"hover")||npd(b.getTag(),"attention"):!1};ea.U3bHHf!=null||(ea.U3bHHf=0);ea.U3bHHf++;var bqd=1;(function(){for(var a=["ms","moz","webkit","o"],b=0;b<a.length&&!window.requestAnimationFrame;++b)window.requestAnimationFrame=window[a[b]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[a[b]+"CancelAnimationFrame"]||window[a[b]+"CancelRequestAnimationFrame"];if(!window.requestAnimationFrame){var c=0;window.requestAnimationFrame=function(d){var e=(new Date).getTime(),f=Math.max(0,16-(e-c));c=e+f;return window.setTimeout(function(){d(e+f)},f)};window.cancelAnimationFrame||(window.cancelAnimationFrame=
function(d){clearTimeout(d)})}})();var cqd=function(){},dqd=[[],[]],eqd=0,fqd=new Set,gqd=null,hqd=0,iqd=0,jqd=0,kqd=0,lqd=0,mqd=function(a){this.mutate_=this.measure_=void 0;this.runInCurrentFrameIfPossible_=!1;this.window_=window;this.context_=a;this.state_ctor_=cqd};g=mqd.prototype;g.measure=function(a){this.measure_=a;return this};g.mutate=function(a){this.mutate_=a;return this};g.runInCurrentFrameIfPossible=function(){this.runInCurrentFrameIfPossible_=!0;return this};
g.window=function(a){this.window_=a;return this};g.build=function(){return nqd({measure:this.measure_,mutate:this.mutate_,stateCtor:this.state_ctor_,window:this.window_,runInCurrentFrameIfPossible:this.runInCurrentFrameIfPossible_},this.context_)};
var nqd=function(a,b){var c=lqd++,d=Math.max(a.measure?a.measure.length:0,a.mutate?a.mutate.length:0),e={id:c,measureFn:a.measure,mutateFn:a.mutate,context:b,args:[]},f=e;return function(){var h=f.phase!==0;h&&(f=Object.assign({phase:0},e));b||(f.context=this);f.args=Array.prototype.slice.call(arguments);d>arguments.length&&f.args.push(new a.stateCtor);h&&(h=eqd,!a.runInCurrentFrameIfPossible||kqd==0||a.measure&&kqd!=1||(h=(h+1)%2),dqd[h].push(f));return oqd(a.window)}},pqd=function(a,b){var c={};
kqd=1;for(var d=0;d<a.length;++d){var e=a[d];var f=e.args[e.args.length-1];f&&typeof f==="object"&&(f.now=b);if(e.measureFn){e.phase=1;try{e.measureFn.apply(e.context,e.args)}catch(h){c[d]=!0,fa(h)}}}kqd=2;for(d=0;d<a.length;++d)if(e=a[d],(f=e.args[e.args.length-1])&&typeof f==="object"&&(f.now=b),!c[d]&&e.mutateFn){e.phase=2;try{e.mutateFn.apply(e.context,e.args)}catch(h){fa(h)}}hqd>0&&b>1&&(a=b-hqd,a<500&&(bqd++,a>100&&iqd++,jqd<a&&(jqd=a)));hqd=fqd.size&&b>1?b:0},oqd=function(a){if(!fqd.has(a)){fqd.size||
(gqd=new und);fqd.add(a);var b=gqd.resolve;a.requestAnimationFrame(function(c){fqd.clear();var d=dqd[eqd];eqd=(eqd+1)%2;try{pqd(d,c)}finally{kqd=0,d.length=0}b()})}return gqd.promise};var qqd=function(a,b){this.visualElementProvider=a;this.traverseShadowDom=b===void 0?!1:b},sqd=function(a,b){return rqd(a,b).filter(function(c){return c9(this.visualElementProvider,c)!=null},a)},tqd=function(a,b){var c=a.visualElementProvider;a=[];for(var d=void 0,e={},f=0;f<b.length;e={parent$jscomp$175:void 0},++f){var h=c9(c,b[f]);h.traversalOrder_==void 0&&h.serverVed_==void 0&&(e.parent$jscomp$175=void 0,y9b(b[f],function(k){return function(q){q=c9(c,q);return q!=null?(k.parent$jscomp$175=q,
!0):!1}}(e),!1),e.parent$jscomp$175?d&&d.has(e.parent$jscomp$175)||(d=new Map,a.unshift(d),d.set(e.parent$jscomp$175,[]),ypd=1):(d=new Map,a.unshift(d),ypd=0),zpd(h),h.setParent(e.parent$jscomp$175),d.set(h,[]),e.parent$jscomp$175&&d.get(e.parent$jscomp$175).push(h.traversalOrder_))}return a},uqd=function(a,b){var c=a.visualElementProvider;return b.map(function(d){return c9(c,d)})},rqd=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},ypd=0;var vqd=function(a,b){this.tagPopulator_=a;this.expectXidTagComponents_=b||!1;this.componentID_=void 0},c9=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||ja(d)||d!=c.getTag().getAttribute()));if(d)return c;d=b.getAttribute("jslog");if(!d)return null;d=wqd(a,
d);if(!d||(d.getComponentID()||a.componentID_)&&d.getComponentID()!=a.componentID_)return null;a=new xpd(b,d);c&&c.getTag().retain_cached_impression_&&c.loggedImpression_&&(a.loggedImpression_=!0);if(c=a.getElement().getAttribute("data-ved")){a.serverVed_=c;if(!c||c.charAt(0)!="0"&&c.charAt(0)!="2")var e=null;else{c=c.substring(1);try{var f=vpd(c);e=W(f,R8,13)}catch(h){e=null}}e&&(a.impressionEventID=e,a.rootImpressionEventID=e)}return b.LSWHIf=a},wqd=function(a,b){if(ja(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(!ja(f)){var h=Ifc(f);if(h.length<2)return null;f=h[0].trim();h=h[1].trim();if(ja(f)||ja(h))return null;switch(f){case a.maybeXidPartLabel_("track"):f=h.split(",");for(h=0;h<f.length;++h){var k=d,q=f[h].trim();if(a.expectXidTagComponents_){if(!k.xidTagComponents_)throw Error("Uf");if(!jpd.has(q))throw Error("Vf`"+q);k.tracks_.add(q)}else k.tracks_.add(k.maybeXidEventLabel_(q))}break;
case a.maybeXidPartLabel_("index"):d.setIndex(Number(h));break;case a.maybeXidPartLabel_("tc"):f=h.split(",");f=f.map(Number);f=f.filter(Number.isInteger);d.testCodes_=f;break;case "cid":d.setComponentID(h);break;case a.maybeXidPartLabel_("mutable"):h=="true"?d.mutable_=!0:h=="rci"&&(d.mutable_=!0,d.retain_cached_impression_=!0)}}}return d.setAttribute(b)};vqd.prototype.maybeXidPartLabel_=function(a){return this.expectXidTagComponents_?t9b(a):a};
vqd.prototype.setComponentID=function(a){this.componentID_=a};vqd.prototype.getComponentID=function(){return this.componentID_};var xqd=function(a,b){yE.call(this,"visibilitychange");this.hidden=a;this.visibilityState=b};Y(xqd,yE);zu(z9b,Cp);g=z9b.prototype;g.getBrowserEventType_=Ap(function(){var a=this.isSupported(),b=this.getHiddenPropertyName_()!="hidden";if(a){var c;b?c=((eMa()||"")+"visibilitychange").toLowerCase():c="visibilitychange";a=c}else a=null;return a});g.getHiddenPropertyName_=Ap(function(){return fMa("hidden",this.domHelper_.document_)});g.getVisibilityStatePropertyName_=Ap(function(){return fMa("visibilityState",this.domHelper_.document_)});g.isSupported=function(){return!!this.getHiddenPropertyName_()};
g.isHidden=function(){return!!this.domHelper_.document_[this.getHiddenPropertyName_()]};g.handleChange_=function(){var a=this.isSupported()?this.domHelper_.document_[this.getVisibilityStatePropertyName_()]:null;a=new xqd(this.isHidden(),a);this.dispatchEvent(a)};g.disposeInternal=function(){CE(this.eventKey_);z9b.superClass_.disposeInternal.call(this)};var d9=function(a,b,c,d,e,f,h){var k=d===void 0?{}:d;var q=k.backgroundJobDeferrer===void 0?void 0:k.backgroundJobDeferrer;d=k.expectXidTagComponents===void 0?!1:k.expectXidTagComponents;k=k.traverseShadowDom===void 0?!1:k.traverseShadowDom;Fs.call(this);var v=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 Ppd;this.visualElementProvider_=
new vqd(this.metadataHandler_,this.expectXidTagComponents_);this.eventToActionMap_={click:3};this.eventToTracksLabelMap_={click:this.maybeXidEventLabel_("generic_click")};this.pageVisibilityMonitor_=new z9b;this.logImpressionsTask_=(new mqd(this)).measure(q?function(){return q().then(v.handleImpressions_.bind(v))}:this.handleImpressions_).runInCurrentFrameIfPossible().build();this.logImpressionsThrottle_=new wVc(this.logImpressionsTask_,500,this);this.traverser_=h||new qqd(this.visualElementProvider_,
k);this.eventBuilder instanceof Cpd&&(this.eventHandler_=this.eventBuilder);this.zwiebackId_=e;this.windowProvider_=f};Y(d9,Fs);d9.prototype.setComponentID=function(a){this.visualElementProvider_.setComponentID(a)};d9.prototype.logImpressions=function(){this.domHelper_&&this.logImpressionsThrottle_.fire()};
var zqd=function(a,b,c,d){var e=yqd(d),f=a.getIndex(c);var h=(new cpd).setUserAction(b);var k=c.getTag().visualElementID;h=Ok(h,1,k);e=vc(h,3,e,Cb);f!=null&&e.setElementIndex(f);f=new Bpd;f.ve_metadata=a.getMetadata(c,d);f.global_metadata=a.invariantData_;f.client_info=a.appInfo_;c=Evc(new pE,e.serialize());c=vc(c,20,f.testCodes,Cb);a.transport&&uE(a.transport,c);if(b!=null)for(b=new Mpd(b),c=0;c<a.listeners_.length;c++)a.listeners_[c](b)};
d9.prototype.log=function(a){this.transport&&uE(this.transport,a)};var Aqd=function(a){for(var b=0;b<a.impressionListeners_.length;b++)a.impressionListeners_[b]()};d9.prototype.getIndex=function(a){return a.getTag().getIndex()};var yqd=function(a){return a.map(function(b){return b.getTag().visualElementID})};d9.prototype.getMetadata=function(a,b){var c=new X8;opd(a.getTag(),c);for(a=0;a<b.length;++a)opd(b[a].getTag(),c);return c};
var Bqd=function(a,b,c){var d,e=a.visualElementProvider_,f=a.eventToTracksLabelMap_[b];y9b(c,function(h){if(!qz(h))return!1;h=c9(e,h);var k;if(k=h!=null)if(k=h.getTag(),a.expectXidTagComponents_){if(!k.xidTagComponents_)throw Error("Uf");if(!jpd.has(f))throw Error("Vf`"+f);k=k.tracks_.has(f)}else k=npd(k,f);return k?(d=h,!0):!1},!0);return d};g=d9.prototype;
g.getAncestry_=function(a){var b=[],c=this.visualElementProvider_;y9b(a,function(d){if(!qz(d))return!1;d=c9(c,d);d!=null&&b.push(d);return!1},!1);return b};
g.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=sqd(this.traverser_,this.root_);if(this.eventHandler_){var c=this.windowProvider_?this.domHelper_.getViewportSize(this.windowProvider_()):this.domHelper_.getViewportSize();c=new oI(0,0,c.width,c.height);var d=tqd(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]),Qk(d[e],28,this.zwiebackId_),this.transport&&uE(this.transport,d[e])}b=uqd(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_&&Qk(b[c],28,this.zwiebackId_),this.transport&&uE(this.transport,b[c]);Aqd(this)}else{c=[];d=this.windowProvider_?this.domHelper_.getViewportSize(this.windowProvider_()):
this.domHelper_.getViewportSize();d=new oI(0,0,d.width,d.height);for(e=0;e<b.length;e++){var f=b[e];this.isVisible_(f,d)&&(f=c9(this.visualElementProvider_,f))&&npd(f.getTag(),"impression")&&c.push(f)}for(b=0;b<c.length;b++)d=c[b],d.loggedImpression_||(e=this.getAncestry_(d.getElement()),zqd(this,void 0,d,e),Aqd(this),d.loggedImpression_=!0)}a&&window.performance.measure("ZVwBtb","KtiTlc")}};
g.isVisible_=function(a,b){if(a.hasAttribute("ve-visible"))return a.getAttribute("ve-visible")==="true";a=a.getBoundingClientRect();return(b=eHc(b,new oI(a.left,a.top,a.width,a.height)))&&b.width>=10&&b.height>=10?!0:!1};g.maybeXidEventLabel_=function(a){return this.expectXidTagComponents_?r9b(a):a};
g.tearDown=function(){if(this.domHelper_){var a=this.domHelper_.document_;this.unlisten(a,"scroll",this.logImpressions,!0);this.unlisten(a,"resize",this.logImpressions,!0);this.unlisten(a,"load",this.logImpressions,!1);this.unlisten(a,"DOMContentLoaded",this.logImpressions,!1)}this.unlisten(this.pageVisibilityMonitor_,"visibilitychange",this.logImpressions,!1);this.logImpressionsThrottle_.dispose()};var B9b=function(a,b,c,d,e,f,h,k,q,v,A,E,H){e=e===void 0?!1:e;q=q===void 0?!1:q;k||(b=new vE(b,c),d&&(b.destinationUrl=d),f&&(b.backgroundJobDeferrer=f),k=b.build());d9.call(this,a,h||null,k,{expectXidTagComponents:e,backgroundJobDeferrer:f,traverseShadowDom:q},v,A,E);this.clearcut_=k;this.clearcut_.setClientSideLogOnlyForDevelopment(!1);a=this.clearcut_;a.useSendBeaconForFinalFlush=a.isSendBeaconSupported;this.clearcut_.useGetRequestForFinalFlush=!0;H&&this.clearcut_.setProductID(H)};Y(B9b,d9);
B9b.prototype.setClearcutClientInfo=function(a){this.clearcut_.setClearcutClientInfo(a)};B9b.prototype.setBuildLabel=function(a){this.clearcut_.setBuildLabel(a)};B9b.prototype.setClientSideLogOnlyForDevelopment=function(a){this.clearcut_.setClientSideLogOnlyForDevelopment(a)};var Cqd=function(a){this.tracker=a};var Dqd=function(a,b){this.root=a;this.handler=b;this.eventHandler=new Fs(this)};
Dqd.prototype.observe=function(a){var b=this;this.observer||(this.observer=new MutationObserver(function(c){c=l(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.type==="childList"){d=l(d.addedNodes);for(var e=d.next();!e.done;e=d.next())e=e.value,e instanceof Element&&(e.querySelectorAll("[jsLog]").length||e.getAttribute("jsLog"))&&b.handler.tracker.logImpressions()}}),this.observer.observe(this.root,{childList:!0,subtree:!0}),this.eventHandler.listen(this.root,a,function(c){var d=b.handler.tracker,
e=c.type,f=d.eventToActionMap_[e];if(f&&(e=Bqd(d,e,c.target)))if(d.eventHandler_)for(f=d.eventHandler_.interactionEvent(e,new Mpd(f)),e=0;e<f.length;++e)d.metadataHandler_.addEventMetadata(f[e]),d.zwiebackId_&&Qk(f[e],28,d.zwiebackId_),d.transport&&uE(d.transport,f[e]);else{var h=d.getAncestry_(e.getElement());zqd(d,f,e,h)}c.stopPropagation()}))};Dqd.prototype.dispose=function(){var a;(a=this.observer)==null||a.disconnect();this.eventHandler.removeAll()};var F9b=function(a,b){this.root=a;this.tracker=b;this.observer=new Dqd(this.root,new Cqd(this.tracker))};
F9b.prototype.start=function(a){var b=this.tracker,c=this.root;b.domHelper_=new iz;b.root_=c||b.domHelper_.document_.body;c=b.domHelper_.document_;c.readyState!=="interactive"&&c.readyState!=="complete"||b.logImpressions();b.listenOnce(c,"load",b.logImpressions,!1);b.listenOnce(c,"DOMContentLoaded",b.logImpressions,!1);b.listen(b.pageVisibilityMonitor_,"visibilitychange",b.logImpressions,!1);b.listen(c,"scroll",b.logImpressions,!0);b.listen(c,"resize",b.logImpressions,!0);b=l(a);for(c=b.next();!c.done;c=
b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;var e=this.tracker;e.eventToActionMap_[c]=d;e.eventToTracksLabelMap_[c]=e.maybeXidEventLabel_(c)}this.observer.observe([].concat(p(a.keys())))};F9b.prototype.stop=function(a){this.observer.dispose();a&&(a=this.tracker,a.transport&&a.transport.flush());this.tracker.dispose()};var e9=function(){this.queryScope_=0;this.targetCount_=1;this.displayNameWithOverrideApplied_=null},Eqd=function(a,b){a.displayNameWithOverrideApplied_=b;return a},Fqd=function(a,b){a.targetCount_=b;return a};e9.prototype.getTargetCount=function(){return this.targetCount_};e9.prototype.getQueryScope=function(){return this.queryScope_};e9.prototype.setQueryScope=function(a){this.queryScope_=a;return this};e9.prototype.getDisplayNameWithOverrideApplied=function(){return this.displayNameWithOverrideApplied_};var Gqd=function(){this.code_=2;this.cacheState_=new K8;this.similarIds_=[]};g=Gqd.prototype;g.getCode=function(){return this.code_};g.getCacheState=function(){return this.cacheState_};g.getSimilarIds=function(){return this.similarIds_};g.setCode=function(a){this.code_=a;return this};g.setCacheState=function(a){this.cacheState_=a;return this};var Hqd=function(a,b){this.disambiguationLabel_=a;this.metadata_=b};Hqd.prototype.getDisambiguationLabel=function(){return this.disambiguationLabel_};Hqd.prototype.getMetadata=function(){return this.metadata_};var Z$b=function(){this.filter_=null;this.originator_=this.queryScope_=0;this.useOriginalDisplayValue_=!1};g=Z$b.prototype;g.getFilter=function(){return this.filter_};g.setFilter=function(a){this.filter_=a;return this};g.getQueryScope=function(){return this.queryScope_};g.setQueryScope=function(a){this.queryScope_=a;return this};g.getOriginator=function(){return this.originator_};g.setOriginator=function(a){this.originator_=a;return this};g.getUseOriginalDisplayValue=function(){return this.useOriginalDisplayValue_};
g.setUseOriginalDisplayValue=function(a){this.useOriginalDisplayValue_=a;return this};g.clone=function(){return(new Z$b).setFilter(this.getFilter()).setOriginator(this.getOriginator()).setQueryScope(this.getQueryScope()).setUseOriginalDisplayValue(this.getUseOriginalDisplayValue())};var Iqd=function(){this.isLastCallback_=this.isFirstCallback_=!1;this.notFoundIdList_=[];this.code_=2;this.cacheState_=new K8};g=Iqd.prototype;g.getIsFirstCallback=function(){return this.isFirstCallback_};g.getIsLastCallback=function(){return this.isLastCallback_};g.getCode=function(){return this.code_};g.getCacheState=function(){return this.cacheState_};g.setIsFirstCallback=function(a){this.isFirstCallback_=a;return this};g.setIsLastCallback=function(a){this.isLastCallback_=a;return this};
g.setCallbackNumber=function(){return this};g.setCode=function(a){this.code_=a;return this};g.setCacheState=function(a){this.cacheState_=a;return this};var Jqd=function(a,b){this.results_=a;this.metadata_=b};Jqd.prototype.getResults=function(){return this.results_};Jqd.prototype.getMetadata=function(){return this.metadata_};var f9=function(a,b){this.results_=a;this.metadata_=b};f9.prototype.getResults=function(){return this.results_};f9.prototype.getMetadata=function(){return this.metadata_};var Kqd={create:function(a,b,c,d,e){e=e===void 0?new et:e;return P9b(a,b,c,d,new Xld,{sessionOptions:e})},createWith:function(a,b,c,d,e){e=e===void 0?{}:e;return P9b(a,b,c,d,new Xld,e)},createConfig:function(a){a=a===void 0?new eEc($H.apiEnv,new fEc($H.userProfileId)):a;return new Amd(a)}};var Lqd=function(){this.warnForExternalSelections=!1;this.allowContactMethodEditing=!0;this.chipCustomizationCallback=function(){return{}}};g=Lqd.prototype;g.getWarnForExternalSelections=function(){return this.warnForExternalSelections};g.getAllowDisplayNameEditing=function(){return!1};g.getAllowContactMethodEditing=function(){return this.allowContactMethodEditing};g.setAllowContactMethodEditing=function(a){this.allowContactMethodEditing=a};g.getAllowChipDeletion=function(){return!0};
g.getShouldDisplayExternalSelectionIcon=function(){return!0};g.getAllowChipDragAndDrop=function(){return!0};g.getChipCustomizationCallback=function(){return this.chipCustomizationCallback};g.getAllowChipDisambiguation=function(){return!0};var Mqd=function(a){this.entryPoint=0;this.environmentConfig=a;this.appearance=new J5b;this.chip=new Lqd;this.chip.setAllowContactMethodEditing(!1);this.useOriginalDisplayValue=!1};g=Mqd.prototype;g.setEntryPoint=function(a){this.entryPoint=a};g.getEntryPoint=function(){return this.entryPoint};g.getEnvironmentConfig=function(){return this.environmentConfig};g.getUseOriginalDisplayValue=function(){return this.useOriginalDisplayValue};
g.setUseOriginalDisplayValue=function(a){this.useOriginalDisplayValue=a};g.getWarnForExternalSelections=function(){return this.chip.getWarnForExternalSelections()};g.getAllowDisplayNameEditing=function(){return this.chip.getAllowDisplayNameEditing()};g.getAllowContactMethodEditing=function(){return this.chip.getAllowContactMethodEditing()};g.setAllowContactMethodEditing=function(a){this.chip.setAllowContactMethodEditing(a)};g.getAllowChipDeletion=function(){return this.chip.getAllowChipDeletion()};
g.getShouldDisplayExternalSelectionIcon=function(){return this.chip.getShouldDisplayExternalSelectionIcon()};g.getAllowChipDragAndDrop=function(){return this.chip.getAllowChipDragAndDrop()};g.getChipCustomizationCallback=function(){return this.chip.getChipCustomizationCallback()};g.getAllowChipDisambiguation=function(){return this.chip.getAllowChipDisambiguation()};g.getDensity=function(){return this.appearance.getDensity()};g.setDensity=function(a){this.appearance.setDensity(a)};g.getTheme=function(){return this.appearance.getTheme()};
g.setTheme=function(a){this.appearance.setTheme(a)};g.getStyle=function(){return this.appearance.getStyle()};g.setStyle=function(a){this.appearance.setStyle(a)};var Nqd=function(a){this.entryPoint=0;this.helpText="";this.shouldAutofocus=!1;this.environmentConfig=a;this.autocomplete=new zmd(this.environmentConfig);this.chipsBar=new Mqd(this.environmentConfig);this.chipsBar.setAllowContactMethodEditing(!0)};g=Nqd.prototype;g.getEnvironmentConfig=function(){return this.environmentConfig};g.setEntryPoint=function(a){this.entryPoint=a};g.getEntryPoint=function(){return this.entryPoint};g.getWarnForExternalSelections=function(){return this.chipsBar.getWarnForExternalSelections()};
g.getAllowDisplayNameEditing=function(){return this.chipsBar.getAllowDisplayNameEditing()};g.getAllowContactMethodEditing=function(){return this.chipsBar.getAllowContactMethodEditing()};g.setAllowContactMethodEditing=function(a){this.chipsBar.setAllowContactMethodEditing(a)};g.getAllowChipDeletion=function(){return this.chipsBar.getAllowChipDeletion()};g.getShouldDisplayExternalSelectionIcon=function(){return this.chipsBar.getShouldDisplayExternalSelectionIcon()};g.getAllowChipDragAndDrop=function(){return this.chipsBar.getAllowChipDragAndDrop()};
g.getChipCustomizationCallback=function(){return this.chipsBar.getChipCustomizationCallback()};g.getAllowChipDisambiguation=function(){return this.chipsBar.getAllowChipDisambiguation()};g.getUseOriginalDisplayValue=function(){return this.chipsBar.getUseOriginalDisplayValue()};g.setUseOriginalDisplayValue=function(a){this.chipsBar.setUseOriginalDisplayValue(a)};g.getAutocompleteHeader=function(){return this.autocomplete.getAutocompleteHeader()};g.setAutocompleteHeader=function(a){this.autocomplete.setAutocompleteHeader(a)};
g.getShowSuggestions=function(){return this.autocomplete.getShowSuggestions()};g.setShowSuggestions=function(a){this.autocomplete.setShowSuggestions(a)};g.getAutocompleteMaxResultsBeforeScroll=function(){return this.autocomplete.getAutocompleteMaxResultsBeforeScroll()};g.setAutocompleteMaxResultsBeforeScroll=function(a){this.autocomplete.setAutocompleteMaxResultsBeforeScroll(a)};g.getMoveAutocompleteAboveAnchorIfOffscreen=function(){return this.autocomplete.getMoveAutocompleteAboveAnchorIfOffscreen()};
g.setMoveAutocompleteAboveAnchorIfOffscreen=function(a){this.autocomplete.setMoveAutocompleteAboveAnchorIfOffscreen(a)};g.getAutoActivateFirstSuggestion=function(){return this.autocomplete.getAutoActivateFirstSuggestion()};g.setAutoActivateFirstSuggestion=function(a){this.autocomplete.setAutoActivateFirstSuggestion(a)};g.getAutoActivateFirstSearchResult=function(){return this.autocomplete.getAutoActivateFirstSearchResult()};g.setAutoActivateFirstSearchResult=function(a){this.autocomplete.setAutoActivateFirstSearchResult(a)};
g.getNoResultsMessage=function(){return this.autocomplete.getNoResultsMessage()};g.setNoResultsMessage=function(a){this.autocomplete.setNoResultsMessage(a)};g.getUseTabForResultSelection=function(){return this.autocomplete.getUseTabForResultSelection()};g.getAutocompleteGroupingType=function(){return this.autocomplete.getAutocompleteGroupingType()};g.setAutocompleteGroupingType=function(a){this.autocomplete.setAutocompleteGroupingType(a)};g.getAutocompleteGroupingLabel=function(){return this.autocomplete.getAutocompleteGroupingLabel()};
g.setAutocompleteGroupingLabel=function(a){this.autocomplete.setAutocompleteGroupingLabel(a)};g.getAutocompleteCustomGrouping=function(){return this.autocomplete.getAutocompleteCustomGrouping()};g.getAllowResultDeselection=function(){return this.autocomplete.getAllowResultDeselection()};g.getResultDecorationConfigRequestCallback=function(){return this.autocomplete.getResultDecorationConfigRequestCallback()};g.getResultCustomizationCallback=function(){return this.autocomplete.getResultCustomizationCallback()};
g.setResultCustomizationCallback=function(a){this.autocomplete.setResultCustomizationCallback(a)};g.getDensity=function(){return this.autocomplete.getDensity()};g.setDensity=function(a){this.autocomplete.setDensity(a)};g.getTheme=function(){return this.autocomplete.getTheme()};g.setTheme=function(a){this.autocomplete.setTheme(a)};g.getStyle=function(){return this.autocomplete.getStyle()};g.setStyle=function(a){this.autocomplete.setStyle(a)};var U$b=function(a){var b=a.multiSelectable,c=a.orientation,d=a.isKeyboardFocusable;a=a.ariaLabel;return qt('<div class="'+nt("peoplekitComponentsArialistboxAriaListBox")+'" peoplekit-id="'+nt("pQPeT")+'" tabindex="'+nt(d?0:-1)+'" role="listbox" aria-multiselectable="'+nt(b)+'" aria-orientation="'+nt(c)+'" aria-label="'+nt(a)+'"></div>')};var Oqd=function(a){D8.call(this,9,a);this.name="LookupSelectorError"};Y(Oqd,D8);var Pqd=new Map([[5,12],[12,8],[11,13],[13,14],[2,15],[6,7]]);var Ct=function(a,b,c,d){this.selectionsState=a;this.peopleStore=b;this.lookupOptions=c;this.health=d;this.disposed=!1};Ct.prototype.select=function(a,b,c){var d=this;c=c===void 0?-1:c;return this.disposed?Promise.reject(new Oqd("LookupSelector is disposed.")):new Promise(function(e){Qqd(d,a,b,c,e)})};
var Qqd=function(a,b,c,d,e){var f=[],h=[];d=d>=0?d:a.selectionsState.size();b=l(b);for(var k=b.next();!k.done;k=b.next()){var q=Rqd(k.value);k=q.lookupId;q=q8b(k,q.displayNameOverride,q.forceDisplayNameOverride,q.loggingTokenOverride);a.selectionsState.select(q,d,c)&&(f.push(k),d++)}d=a.lookupOptions.clone().setOriginator(Ood.get(c)||0);a.peopleStore.lookup(f,function(v){Sqd(a,v,h,c,e)},d)},Sqd=function(a,b,c,d,e){if(a.disposed)e([]);else{var f=b.getResults(),h=0,k=0;f=l(f.entries());for(var q=f.next();!q.done;q=
f.next()){var v=l(q.value);q=v.next().value;var A=v=v.next().value,E=a.selectionsState.get(q);E&&(v=E.getDisplayNameOverride(),A=v8b(A,v,E.getForceDisplayNameOverride(),E.selectionToken().getLoggingToken()),a.selectionsState.replace(q,A,d),v&&h++,A.getDisplayNameWithOverrideApplied()&&k++)}h=k-h;h>0&&(k=a.health,f=k.createCount,q=6,q=q===void 0?0:q,d=Pqd.get(d)||q,f.call(k,53,d).increment(h));b=b.getMetadata();c.push.apply(c,p(b.notFoundIdList_));b.getIsLastCallback()&&(a.deselect(c),e(c))}};
Ct.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)};Ct.prototype.replace=function(a,b){var c=this;return this.disposed?Promise.reject(new Oqd("LookupSelector is disposed.")):new Promise(function(d){Tqd(c,a,b,d)})};
var Tqd=function(a,b,c,d){var e=[],f=[];b=l(b.entries());for(var h=b.next();!h.done;h=b.next()){var k=l(h.value);h=k.next().value;k=k.next().value;var q=Rqd(k);k=q.lookupId;q=q8b(k,q.displayNameOverride,q.forceDisplayNameOverride,q.loggingTokenOverride);a.selectionsState.replace(h,q)&&f.push(k)}a.peopleStore.lookup(f,function(v){Sqd(a,v,e,c,d)},a.lookupOptions)};Ct.prototype.dispose=function(){this.disposed=!0};
var Rqd=function(a){if(a instanceof Und){var b=a.lookupWithOverride.getId();var c=a.lookupWithOverride.getDisplayName();var d=a.lookupWithOverride.getForceDisplayNameOverride();a=a.getLoggingToken()}else a instanceof m8?(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 L$b=function(a,b,c,d,e,f){var h=this;this.chipSet=a;this.selectionsState=b;this.undoRedoStack=c;this.lookupSelector=new Ct(b,d,e,f);this.onSelectionCallback=function(k,q,v){h.onSelect(v)};this.onSelectionReplacedCallback=function(k,q,v,A){A===9&&h.undoRedoStack.push()};this.onDeselectionCallback=function(k,q,v){h.onDeselect(v)};this.attach()};g=L$b.prototype;
g.attach=function(){I8(this.selectionsState,this.onSelectionCallback);Sod(this.selectionsState,this.onSelectionReplacedCallback);H8(this.selectionsState,this.onDeselectionCallback)};g.select=function(a){a=this.lookupSelector.select(a,6);this.undoRedoStack.push();return a};g.deselect=function(a){this.lookupSelector.deselect(a);this.undoRedoStack.push()};g.replace=function(a){a=this.lookupSelector.replace(a,6);this.undoRedoStack.push();return a};g.focusLastChip=function(){return this.chipSet.focusLastChip()};
g.activateAllChips=function(){this.chipSet.activateAllChips()};g.dispose=function(){this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback);this.selectionsState.selectionReplacedCallbacks.remove(this.onSelectionReplacedCallback);this.selectionsState.deselectionCallbacks.remove(this.onDeselectionCallback);this.lookupSelector.dispose();this.chipSet.dispose()};g.onSelect=function(a){a===1&&this.undoRedoStack.push()};g.onDeselect=function(a){switch(a){case 1:case 8:this.undoRedoStack.push()}};var f$b=function(a){this.root=a;this.length=0;a=this.root;if(a.firstElementChild!==void 0)a=a.firstElementChild;else for(a=a.firstChild;a&&a.nodeType!=1;)a=a.nextSibling;this.marker=a};g=f$b.prototype;g.append=function(a){this.root.insertBefore(a,this.marker);++this.length};g.insert=function(a,b){if(a<0||a>this.length)throw new RangeError("Ff");a===this.length?this.append(b):(this.root.insertBefore(b,this.root.childNodes[a]),++this.length)};
g.remove=function(a){if(a<0||a>=this.length)throw new RangeError("Ff");this.removeItem(this.root.childNodes[a])};g.removeItem=function(a){try{this.root.removeChild(a),--this.length}catch(b){}};g.clear=function(){for(;this.root.firstChild&&this.root.firstChild!==this.marker;)this.root.removeChild(this.root.firstChild);this.length=0};g.getRoot=function(){return this.root};g.getItems=function(){return Array.from(this.root.childNodes)};var c$b=function(a,b){this.root=a;this.options=b};g=c$b.prototype;g.activate=function(){this.root.classList.add("isActive")};g.deactivate=function(){this.root.classList.remove("isActive")};g.spotlight=function(){};g.unspotlight=function(){};g.getRoot=function(){return this.root};g.getSelection=function(){return q8b(mcc(this.options.id))};g.toggleSelection=function(){};g.onKeyDown=function(){};g.onContextMenu=function(){return function(){}};var b$b=function(a){var b=a.iconUrl,c=a.label,d=a.keyboardShortcut,e=a.densityClass,f=a.ariaLabel;a='<div role="menuitem" id="'+nt(a.id)+'" peoplekit-id="'+nt("UhZROb")+'" class="'+nt("peoplekitComponentsContextmenuitemImplMenuItem")+" "+nt(e)+'"'+(f?' aria-label="'+nt(f)+'"':"")+'><div class="'+nt("peoplekitComponentsContextmenuitemImplRow")+'">'+(jI(b)?'<img class="'+nt("peoplekitComponentsContextmenuitemImplIcon")+" "+nt("peoplekitComponentsContextmenuitemImplLeft")+'" src="'+nt(BGc(b))+'" draggable="false" alt=""/>':
"")+'<div class="'+nt("peoplekitComponentsContextmenuitemImplLabel")+" "+nt("peoplekitComponentsContextmenuitemImplCenter")+'">'+ot(c)+"</div>";d.length>0&&(a+='<div class="'+nt("peoplekitComponentsContextmenuitemImplKeyboardShortcut")+" "+nt("peoplekitComponentsContextmenuitemImplRight")+'"><span dir="ltr">',a+=ot(d.join("+"))+"</span></div>");return qt(a+"</div></div>")};var gt=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 it=function(a,b,c,d,e){this.root=a;this.anchor=b;this.container=d;this.appearanceConfig=e;this.popup=w6b(this.root,{});this.navigatable=L8b(c,new Emd({shouldWrap:!0}));this.navigationEventHandler=O8b({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=Gs(this);this.eventHandler.listen(this.root,"mouseover",function(f){f.stopPropagation()});
this.eventHandler.listen(this.root,"mouseout",function(f){f.stopPropagation()});this.eventHandler.listen(this.root,"mouseenter",function(f){f.stopPropagation()});this.hide()};
it.prototype.append=function(a){var b=this;this.contextMenuItemOptions.set(a.id,a);var c=d$b(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(Ns(e))}d.stopPropagation();Uqd(b,a);b.hide()});this.navigatable.insert(this.navigatable.size(),[c],!1)};
it.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)};it.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()};
it.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(Ns(c));b=b.getSelection().id().getValue();b=this.contextMenuItemOptions.get(b);Uqd(this,b);this.hide();a.stopPropagation();a.preventDefault()}}};
var Cmd=function(a,b){a.itemSelectedCallbacks.add(b)},Dmd=function(a,b){a.afterHideCallbacks.add(b)},Uqd=function(a,b){a=l(a.itemSelectedCallbacks.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c(b)};it.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 e$b=function(){return qt('<div peoplekit-id="'+nt("xl07Ob")+'" class="'+nt("peoplekitComponentsContextmenuImplMenu")+'" role="menu"></div>')};var Vqd=function(a,b,c,d,e,f,h){this.delegate=a;this.ariaParent=b;this.actionRequestCallbacks=c;this.chipConfig=d;this.appearanceConfig=e;this.clientConfig=f;this.chipCustomization=h;this.contextMenuContainer=Cs(u8.prototype.getRoot.call(this),"QL45qe");a=u8.prototype.getRoot.call(this).parentElement;u8.prototype.getRoot.call(this).removeChild(this.contextMenuContainer);a.appendChild(this.contextMenuContainer)};Y(Vqd,u8);g=Vqd.prototype;g.deactivate=function(){u8.prototype.deactivate.call(this);g9(this)};
g.drag=function(){g9(this);u8.prototype.drag.call(this)};g.dispose=function(){g9(this);u8.prototype.dispose.call(this)};g.onKeyDown=function(a){var b;(b=this.contextMenu)==null||b.onKeyDown(a);u8.prototype.onKeyDown.call(this,a)};
g.onContextMenu=function(a,b){var c=this;a.stopPropagation();a.preventDefault();this.isActive()?this.actionRequestCallbacks.spotlight():this.actionRequestCallbacks.activate();this.contextMenu&&g9(this);this.contextMenu=g$b(this.contextMenuContainer,this.getRoot(),this.ariaParent,this.appearanceConfig);a=this.appearanceConfig.getTheme();this.contextMenu.append(W9b(a));kk(this.clientConfig.internal,4)&&Wqd(this,a);this.chipConfig.getAllowChipDeletion()&&this.contextMenu.append(X9b(a));var d;!this.chipConfig.getAllowDisplayNameEditing()||
((d=this.chipCustomization.chipAction)==null?0:d.disableDisplayNameEditing)||this.contextMenu.append(Y9b(a));aEc(this.getSelection().id())&&this.chipConfig.getAllowContactMethodEditing()&&this.contextMenu.append(Z9b(a));P8b(this.getRoot())&&this.contextMenu.append($9b(a));Cmd(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("Yf`"+e.id);}g9(c)});Dmd(this.contextMenu,function(){g9(c);b()});this.contextMenu.show();return function(){g9(c)}};
var Wqd=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();XDc.includes(a.getType())?(b=gt.get(b),c=Object.freeze({id:"RkeQbd",iconUrl:b==null?void 0:b.get("RkeQbd"),label:'Copy "'+c+'"',keyboardShortcut:[18,67],veid:134816})):(b=gt.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)}}};
Vqd.prototype.showHovercard=function(){this.isActive();this.getRoot();this.getSelection()};var g9=function(a){var b;(b=a.contextMenu)==null||b.dispose();a.contextMenu=void 0};var Xqd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Xqd,n);var Yqd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Yqd,n);Yqd.prototype.getGroupIdHex=function(){return Rc(this,1)};var Zqd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Zqd,n);Zqd.prototype.getGroupIdHex=function(){return Rc(this,1)};var lt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lt,n);g=lt.prototype;g.getGivenName=function(){return Rc(this,1)};g.setGivenName=function(a){return Hj(this,1,a)};g.getFamilyName=function(){return Rc(this,2)};g.setFamilyName=function(a){return Hj(this,2,a)};g.getEmailList=function(){return Aj(this,3,Bj())};g.setEmailList=function(a){return Ij(this,3,a)};g.addEmail=function(a){return yc(this,3,Qb,a,void 0,Rb)};
g.removeEmail=function(a){return yc(this,3,Qb,void 0,a,Rb,void 0,1,!1,!0)};g.getEmail=function(a){return Ku(this,3,a)};g.setEmail=function(a){return Tu(this,3,a)};var $qd=function(a){return Aj(a,4,Bj())},n$b=function(a,b){return Ij(a,4,b)};lt.prototype.getPhone=function(){return Ku(this,4)};lt.prototype.setPhone=function(a){return Tu(this,4,a)};var h9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(h9,n);var k$b=function(a){var b=new h9;return Hj(b,1,a)};h9.prototype.getEdit=function(){return kk(this,2)};h9.prototype.setEdit=function(a){return pm(this,2,a)};h9.prototype.getIncludeTrash=function(){return kk(this,3)};var jt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(jt,n);g=jt.prototype;g.getObfuscatedGaiaId=function(){return Rc(this,1)};g.setObfuscatedGaiaId=function(a){return Hj(this,1,a)};g.getEdit=function(){return kk(this,2)};g.setEdit=function(a){return pm(this,2,a)};g.getIncludeTrash=function(){return kk(this,3)};var i9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(i9,n);i9.prototype.getEdit=function(){return kk(this,2)};i9.prototype.setEdit=function(a){return pm(this,2,a)};i9.prototype.getIncludeTrash=function(){return kk(this,3)};var ard=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(ard,n);ard.prototype.getQuery=function(){return Rc(this,1)};ard.prototype.setQuery=function(a){return Hj(this,1,a)};ard.prototype.clearQuery=function(){Bu(this,1)};var brd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(brd,n);brd.prototype.getQuery=function(){return Rc(this,1)};brd.prototype.setQuery=function(a){return Hj(this,1,a)};brd.prototype.clearQuery=function(){Bu(this,1)};var kt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(kt,n);var j$b=function(){var a=new kt;return Rl(a,1,crd,"0")};kt.prototype.getAuthUser=function(){return Ol(this,17,crd)};var m$b=function(a,b){return nm(a,3,j9,b)},l$b=function(a,b){return nm(a,9,j9,b)},i$b=function(a,b){return nm(a,10,j9,b)};kt.prototype.getSearchParams=function(){return im(this,ard,13,j9)};kt.prototype.setSearchParams=function(a){nm(this,13,j9,a)};
var crd=[1,17],j9=[2,3,4,5,6,7,8,9,10,11,13,14,15,16];var h$b=function(a){switch(Ml(a,j9)){case 2:var b=im(a,Xqd,2,j9);b=kk(b,1);return k9(a,"",b?[["multisend_welcome","1"]]:null);case 3:return drd(a);case 4:return k9(a,"/frequent");case 5:return k9(a,"/other");case 6:return k9(a,"/directory");case 7:return k9(a,"/label/"+l9(im(a,Zqd,7,j9).getGroupIdHex(),"GroupParams.GroupIdHex"));case 8:b=im(a,i9,8,j9);b=Rc(b,1);b="/person/"+l9(b,"PersonByPersonIdParams.PersonId");var c=im(a,i9,8,j9).getEdit()?[["edit","1"]]:im(a,i9,8,j9).getIncludeTrash()?[["includeTrash",
"1"]]:[];return k9(a,b,c);case 9:return b="/p/"+l9(im(a,jt,9,j9).getObfuscatedGaiaId(),"PersonByObfuscatedGaiaIdParams.ObfuscatedGaiaId"),c=im(a,jt,9,j9).getEdit()?[["edit","1"]]:im(a,jt,9,j9).getIncludeTrash()?[["includeTrash","1"]]:[],k9(a,b,c);case 10:return b=im(a,h9,10,j9),b=Rc(b,1),b="/contact/"+l9(b,"PersonByContactIdParams.ContactIdHex"),c=im(a,h9,10,j9).getEdit()?[["edit","1"]]:im(a,h9,10,j9).getIncludeTrash()?[["includeTrash","1"]]:[],k9(a,b,c);case 11:return b="/group/"+l9(im(a,Yqd,11,
j9).getGroupIdHex(),"DelegatedContactListParams.GroupIdHex")+"/",c=im(a,Yqd,11,j9),c=Rc(c,2),k9(a,b+l9(c,"DelegatedContactListParams.SyntheticGroupId"));case 13:return k9(a,"/search/"+l9(a.getSearchParams().getQuery(),"SearchParams.Query"));case 14:return k9(a,"/trash");case 15:return k9(a,"/trashsearch/"+l9(im(a,brd,15,j9).getQuery(),"TrashSearchParams.Query"));case 16:return k9(a,"/suggestions");default:throw Error("Zf`"+Ml(a,j9));}},drd=function(a){var b=[],c=Ur(im(a,lt,3,j9).getGivenName());ja(c)||
b.push(["givenname",c]);c=Ur(im(a,lt,3,j9).getFamilyName());ja(c)||b.push(["familyname",c]);c=im(a,lt,3,j9).getEmailList().filter(function(d){return!ja(d)}).toString();ja(c)||b.push(["email",c]);c=$qd(im(a,lt,3,j9)).filter(function(d){return!ja(d)}).toString();ja(c)||b.push(["phone",c]);return k9(a,"/new",b)},l9=function(a,b){if(ja(Ur(a)))throw Error("$f`"+b);return a},k9=function(a,b,c){b=b===void 0?"":b;var d=Ur(a.getAuthUser()).trim(),e=d||ja(Ur(Ol(a,1,crd)))||Ol(a,1,crd)==="0"?"":"/u/"+Ol(a,1,
crd),f=[];d&&f.push(["authuser",d]);(a=pk(a,18))&&f.push(["bdSource",a]);c&&c.length>0&&f.push.apply(f,p(c));return(f.length>0?Eod({searchParams:f,pathname:e+b}):Eod({pathname:e+b})).href.substring(0,16384)};var u$b=function(a,b){var c=this;this.dialog=a;this.textField=b;this.textField.checkValidity=p$b;this.textField.onValidityChanged=function(d){return c.onValidityChanged(d)};this.textField.onInput=function(){c.nameLabel.textContent=c.textField.getValue()};this.nameLabel=Cs(this.dialog.getRoot(),"E0kCZc");this.eventHandler=Gs(this);this.textField.focus();this.textField.select();erd(this.textField);this.eventHandler.listen(this.textField.input,"keydown",function(d){switch(d.keyCode){case 13:c.dialog.dispatchAction(1),
d.stopPropagation(),d.preventDefault()}})};g=u$b.prototype;g.subscribeToAction=function(a){this.dialog.subscribeToAction(a)};g.dispatchAction=function(a){this.dialog.dispatchAction(a)};g.enableAction=function(a){this.dialog.enableAction(a)};g.disableAction=function(a){this.dialog.disableAction(a)};g.getRoot=function(){return this.dialog.getRoot()};g.dispose=function(){this.dialog.dispose();this.textField.dispose();this.eventHandler.removeAll()};
g.onValidityChanged=function(a){a?this.dialog.enableAction(1):this.dialog.disableAction(1)};var wt=function(a){var b=this;this.root=a;this.input=Cs(this.root,"YPqjbf");this.invalidMessage=Cs(this.root,"kyLNld");this.eventHandler=Gs(this);this.eventHandler.listen(this.input,"input",function(c){var d;(d=b.onInput)==null||d.call(b,c);erd(b)})};wt.prototype.getRoot=function(){return this.root};wt.prototype.focus=function(){this.input.focus()};wt.prototype.select=function(){this.input.select()};wt.prototype.getValue=function(){return this.input.value};
var erd=function(a){if(a.checkValidity){var b=a.checkValidity(a.input.value);a.updateValidity(b)}};wt.prototype.updateValidity=function(a){a.isValid?this.validate():this.invalidate(a.errorMessage||"")};wt.prototype.validate=function(){this.root.classList.remove("isInvalid");this.invalidMessage.textContent="";var a;(a=this.onValidityChanged)==null||a.call(this,!0)};
wt.prototype.invalidate=function(a){this.root.classList.add("isInvalid");this.invalidMessage.textContent=a;var b;(b=this.onValidityChanged)==null||b.call(this,!1)};wt.prototype.dispose=function(){this.eventHandler.removeAll();this.onInput=this.onValidityChanged=this.checkValidity=void 0};var s$b=function(a){var b=a.label,c=a.initialValue;a=a.id;return qt('<div class="'+nt("peoplekitComponentsTextfieldImplTextField")+'"><div class="'+nt("peoplekitComponentsTextfieldImplInputContainer")+'"><label class="'+nt("peoplekitComponentsTextfieldImplLabel")+'" for="'+nt(a)+'">'+ot(b)+'</label><input peoplekit-id="'+nt("YPqjbf")+'" id="'+nt(a)+'" class="'+nt("peoplekitComponentsTextfieldImplInput")+'" value="'+nt(c)+'" autocomplete="off" spellcheck="false"></div><div peoplekit-id="'+nt("kyLNld")+
'" class="'+nt("peoplekitComponentsTextfieldImplInvalidMessage")+'" role="alert"></div></div>')};var t$b=Qs.getInstance();var frd=function(a,b,c,d,e,f){var h=this;this.root=a;this.selection=b;this.selectionsState=c;this.actionRequestCallbacks=d;this.appearanceConfig=e;this.chipCustomization=f;this.isDisabledInternal=!1;this.nameEditDialog=null;this.deleteButton=Cs(this.root,"bxvLg");this.eventHandler=Gs(this);this.eventHandler.listen(this.deleteButton,"click",function(){return h.onDeleteButtonClick()})};g=frd.prototype;g.onDeleteButtonClick=function(){this.selectionsState.deselect(this.selection,8)};
g.toggleSelection=function(){};g.activate=function(){this.root.classList.add("isActive");this.root.setAttribute("aria-selected","true")};g.deactivate=function(){this.root.classList.remove("isActive");this.root.setAttribute("aria-selected","false")};g.isActive=function(){return this.root.classList.contains("isActive")};g.spotlight=function(){this.root.classList.add("isSpotlit")};g.unspotlight=function(){this.root.classList.remove("isSpotlit")};
g.disable=function(){this.root.classList.add("isDisabled");this.isDisabledInternal=!0};g.enable=function(){this.root.classList.remove("isDisabled");this.isDisabledInternal=!1};g.isDisabled=function(){return this.isDisabledInternal};g.drag=function(){this.root.classList.add("isDragged")};g.undrag=function(){this.root.classList.remove("isDragged")};
g.edit=function(){var a=this;this.nameEditDialog&&this.nameEditDialog.dispose();var b=this.root.classList.contains("isActive"),c;this.nameEditDialog=v$b(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=v8b(a.selection.result(),((e=a.nameEditDialog)==null?void 0:e.textField.getValue().trim())||"",!0);a.selectionsState.replace(d.id(),
d,9)}a.unedit();b&&a.actionRequestCallbacks.activate()})};g.unedit=function(){this.nameEditDialog&&(this.nameEditDialog.dispose(),this.nameEditDialog=null)};g.dispose=function(){this.eventHandler.removeAll();this.unedit()};g.getRoot=function(){return this.root};g.getSelection=function(){return this.selection};g.setDisambiguationLabel=function(a){var b=D5b(this.root,"hyPgpe")[0];b&&(a?(b.classList.add("hasDisambiguationLabel"),rz(b,"("+a+")")):b.classList.remove("hasDisambiguationLabel"))};
g.onKeyDown=function(){};g.onContextMenu=function(){return function(){}};g.getAllIds=function(){return[this.selection.id()]};g.updateWaldo=function(){};g.updateHubAvailabilityDot=function(){};g.getSupportedIntelligenceFeatures=function(){return[]};g.initializeIntelligence=function(){};var grd=function(a){var b=a.id,c=a.label,d=a.name,e=a.hovercardId,f=a.stateClass,h=a.isWarning,k=a.isDeletionDisabled;a=a.customChipClass;return tt(st(),fmd(b,d,e,f,h,k,a,tt(st(),f?hmd(f):gmd()),tt(st(),imd(c)),tt(st(),jmd(b))))};Hs.addCoreFactory({type:2,factory:{create:function(a){var b=W5b(a.selection,a.chipConfig,a.chipCustomization),c=Hp(grd,b);Ds(Cs(c,"d6MZcd"),b.photos,a.avatarSize,a.resultListItemAvatarSize,a.appearanceConfig);a.parent.appendChild(c);return{chip:new frd(c,a.selection,a.selectionsState,a.actionRequestCallbacks,a.appearanceConfig,a.chipCustomization),root:c,state:0}},shouldCreate:function(){return!0}},configurationKey:void 0});
Hs.addDecoratorFactory({type:2,configurationKey:void 0,factory:{create:function(a,b){return{chip:new Vqd(b.chip,a.ariaParent,a.actionRequestCallbacks,a.chipConfig,a.appearanceConfig,a.clientConfig,a.chipCustomization),root:b.root,state:b.state}},shouldCreate:function(){return!0}}});
Hs.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("Xf`"+c);}}Ms({element:a,veid:c,actions:["impression"],componentId:"peoplekitweb"});return b},shouldCreate:function(){return!0}}});var ird=function(){return rt(tt(rt(st(),'<div draggable="true" peoplekit-id="'+nt("Svajxe")+'" class="'+nt("peoplekitComponentsChipsetImplDraggableChip")+'">'),hrd()),"</div>")},jrd=function(){return rt(tt(rt(st(),'<div draggable="false" peoplekit-id="'+nt("shtr1e")+'" class="'+nt("peoplekitComponentsChipsetImplNonDraggableChip")+'">'),hrd()),"</div>")},krd=function(a){a=a.height;return qt('<div peoplekit-id="'+nt("tozrW")+'" class="'+nt("peoplekitComponentsChipsetImplDropMarker")+'" style="height: '+
nt(kI(a))+'px"></div>')},lrd=function(){return qt('<div peoplekit-id="'+nt("DOyw7")+'" class="'+nt("peoplekitComponentsChipsetImplDraggedChips")+'"></div>')},hrd=function(){return qt('<div peoplekit-id="'+nt("ubaLBe")+'" class="'+nt("peoplekitComponentsChipsetImplChipContainer")+'"></div>')};var C$b=function(a,b,c,d,e,f,h,k,q,v){this.selectionsState=a;this.undoRedoStack=b;this.container=c;this.dragImageRenderSandbox=d;this.navigatable=e;this.chipDropCallback=k;this.appearanceConfig=q;this.draggedChipsContainer=document.createElement("div");this.currentDropIndex=-1;this.draggedLookupIds=[];this.chipControllers=new Map;this.chipEventHandlers=new Map;this.eventHandler=Gs(this);this.lookupSelector=new Ct(a,f,h,v);this.dropMarker=Hp(krd,{height:V9b(this.appearanceConfig.getDensity())});this.attach()};
C$b.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=mrd(a,a.chipControllers.size);m9(a);nrd(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"),m9(a),b.stopPropagation(),b.preventDefault())});this.eventHandler.listen(this.container.getRoot(),"drop",function(b){ord(a,b)});l7b(this.draggedChipsContainer,this.appearanceConfig.getTheme());this.dragImageRenderSandbox.appendChild(this.draggedChipsContainer)};
C$b.prototype.listen=function(a,b,c){var d=this,e=String(a.id()),f=Gs(c);f.listen(b,"dragstart",function(h){prd(d,a,h)});f.listen(b,"dragend",function(h){qrd(d,h)});f.listen(b,"dragover",function(h){d.container.getRoot().classList.add("isDraggedOver");h=h.event_;if(h.dataTransfer.types.includes("text/lookupids")){var k=d.selectionsState.indexOf(a.id());var q=Cs(h.currentTarget,"ubaLBe").clientWidth,v=At(d.container.getRoot());k=mrd(d,h.offsetX<q/2?v?k+1:k:v?k:k+1);m9(d);nrd(d,k);h.stopPropagation();
h.preventDefault()}d.container.getRoot()});f.listen(b,"drop",function(h){rrd(d,h)});this.chipEventHandlers.set(e,f);this.chipControllers.set(e,c)};C$b.prototype.unlisten=function(a){a=String(a);this.chipEventHandlers.get(a).removeAll();this.chipEventHandlers.delete(a);this.chipControllers.delete(a)};
var prd=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 B$b(f.getSelection())}):a.draggedLookupIds=[B$b(b)];a.draggedChips=Hp(lrd);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();oz(a.draggedChipsContainer);a.draggedChipsContainer.appendChild(a.draggedChips);
c.dataTransfer.setDragImage(a.draggedChips,0,0);c.dataTransfer.setData("text/lookupids",x$b(a.draggedLookupIds));c.dataTransfer.effectAllowed="move";Q8b(a.container.getRoot())},qrd=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()}m9(a);oz(a.draggedChipsContainer);
a.container.getRoot().classList.remove("isDraggedOver")},mrd=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},nrd=function(a,b){b!==a.currentDropIndex&&(a.container.insert(b,a.dropMarker),a.currentDropIndex=b)},m9=function(a){a.container.removeItem(a.dropMarker);a.currentDropIndex=-1},rrd=function(a,b){a.container.getRoot().classList.remove("isDraggedOver");b=b.event_;var c=b.dataTransfer.getData("text/lookupids");
if(c){c=A$b(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--;m9(a);a.lookupSelector.deselect(c.map(function(h){return h.getId()}));a.lookupSelector.select(c,2,d);b.stopPropagation();b.preventDefault();b.dataTransfer.dropEffect="move";a.currentDropIndex=-1;a.undoRedoStack.push()}else m9(a);oz(a.draggedChipsContainer);a.chipDropCallback()},ord=function(a,b){a.container.getRoot().classList.remove("isDraggedOver");
b=b.event_;var c=b.dataTransfer.getData("text/lookupids");c&&(c=A$b(c),a.draggedLookupIds=[],m9(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());oz(a.draggedChipsContainer);a.chipDropCallback()};
C$b.prototype.dispose=function(){this.eventHandler.removeAll();this.draggedChipsContainer.parentNode&&this.draggedChipsContainer.parentNode.removeChild(this.draggedChipsContainer);this.lookupSelector.dispose()};var srd=function(){};srd.prototype.listen=function(){};srd.prototype.unlisten=function(){};srd.prototype.dispose=function(){};var trd=function(){this.listeners=new Map},n9=function(a,b,c){b=JSON.stringify(b);var d=a.listeners.get(b)||[];a.listeners.set(b,[].concat(p(d),[c]))};trd.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)};trd.prototype.dispose=function(){this.listeners.clear()};var zt=function(a,b,c,d,e,f,h,k,q,v,A){var E=this;this.selectionsState=a;this.undoRedoStack=b;this.container=c;this.peopleStore=d;this.appearanceConfig=f;this.chipConfig=h;this.clientConfig=k;this.callbacks=q;this.chipElements=new Map;this.chips=new Map;this.chipCustomizations=new Map;this.navigatable=L8b(c.getRoot(),e7b(new Emd({shouldWrap:!1})));this.navigatable.setSecondaryEventTargets([this]);this.eventHandler=Gs(this);this.chipEventHandlers=new Map;this.intelligentCollection=e.create();this.keyboardShortcutHandler=
new trd;urd(this);this.dragonDropHandler=this.chipConfig.getAllowChipDragAndDrop()?D$b(a,b,c,this.container.getRoot().ownerDocument.body,this.navigatable,d,v,this.callbacks.chipDrop,this.appearanceConfig,A):new srd;this.eventHandler.listen(c.getRoot(),"keyup",function(H){H.keyCode!==9||H.target!==E.container.getRoot()||E.navigatable.getSpotlitItem()||(H.shiftKey?E.navigatable.prev(0):E.navigatable.next(0))});this.onSelectionCallback=function(H,L){E.insert(H,L)};this.onDeselectionCallback=function(H){E.remove(H.id())};
this.onSelectionReplacedCallback=function(H,L,O){E.replace(H,L,O)};I8(this.selectionsState,this.onSelectionCallback);H8(this.selectionsState,this.onDeselectionCallback);Sod(this.selectionsState,this.onSelectionReplacedCallback)},urd=function(a){n9(a.keyboardShortcutHandler,[512,67],function(c){var d=a.navigatable.getSpotlitItem();a.copyMethod(d);a.navigatable.goToItem(d,2);c.stopPropagation()});n9(a.keyboardShortcutHandler,[18,67],function(c){var d=a.navigatable.getSpotlitItem();a.copyContactMethod(d);
a.navigatable.goToItem(d,2);c.stopPropagation()});n9(a.keyboardShortcutHandler,[512,88],function(c){a.chipConfig.getAllowChipDeletion()&&(a.cut(a.navigatable.getSpotlitItem(),3),c.stopPropagation())});n9(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()}};n9(a.keyboardShortcutHandler,[16,69],b);n9(a.keyboardShortcutHandler,[113],b);n9(a.keyboardShortcutHandler,[16,70],function(c){a.chipConfig.getAllowContactMethodEditing()&&(c.stopPropagation(),c.preventDefault(),vrd(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()}};n9(a.keyboardShortcutHandler,[46],b);n9(a.keyboardShortcutHandler,[8],b);n9(a.keyboardShortcutHandler,[13],function(c){c.stopPropagation();c.preventDefault();a.callbacks.chipContextMenu(a.navigatable.getSpotlitItem(),c.event)})};zt.prototype.insert=function(a,b){var c=String(a.id());this.chipElements.has(c)||wrd(this,a,b)};
zt.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()}};zt.prototype.replace=function(a,b,c){this.remove(c);wrd(this,a,b)};
var wrd=function(a,b,c){var d=String(b.id()),e=a.chipConfig.getAllowChipDragAndDrop()?Hp(ird):Hp(jrd);a.container.insert(c,e);a.chipElements.set(d,e);var f=Cs(e,"ubaLBe"),h=a.chipConfig.getChipCustomizationCallback()(b.result());a.chipCustomizations.set(d,h);var k=w$b(f,a.container.getRoot(),b,a.selectionsState,{activate:function(){var q=b.id();q=a.chips.get(String(q));a.container.getRoot().focus();a.navigatable.goToItem(q,0)},spotlight:function(){var q=b.id();q=a.chips.get(String(q));a.container.getRoot().focus();
a.navigatable.goToItem(q,2)},copyMethod:function(q){a.copyMethod(q)},copyContactMethod:function(q){a.copyContactMethod(q)},cut:function(q){a.cut(q,4)},editContactMethod:function(){vrd(a)}},a.appearanceConfig,a.chipConfig,a.clientConfig,h,At(a.container.getRoot()));f=Gs(k);a.dragonDropHandler.listen(b,e,k);f.listen(e,"click",function(q){a.callbacks.chipClick(k,q)});f.listen(e,"dblclick",function(q){a.callbacks.chipContextMenu(k,q)});a.chips.set(d,k);a.chipEventHandlers.set(d,f);a.navigatable.insert(c,
[k],!!a.navigatable.getSpotlitItem());a.intelligentCollection.append([k]);a.chipConfig.getAllowChipDisambiguation()&&Promise.resolve().then(function(){a.chips.get(d)===k&&a.peopleStore.disambiguate(b.result().getPrimaryTarget(),Eqd(Fqd(new e9,a.selectionsState.size()),b.getDisplayNameWithOverrideApplied())).then(function(q){k.setDisambiguationLabel(q.getDisambiguationLabel())})})};zt.prototype.getNavigatable=function(){return this.navigatable};
zt.prototype.focusLastChip=function(){this.container.getRoot().focus();return this.navigatable.goToIndex(this.navigatable.size()-1,0)};zt.prototype.activateAllChips=function(){this.navigatable.activateAll()};
zt.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 xrd=function(a,b){return a.navigatable.getActiveItems().includes(b)?a.navigatable.getActiveItems().map(function(c){return c.getSelection()}):[b.getSelection()]};zt.prototype.copyMethod=function(a){a=xrd(this,a);H$b(a,this.container.getRoot())};zt.prototype.copyContactMethod=function(a){a=a.getSelection();a.result().getDisplayValue()&&G$b(a.result().getDisplayValue(),this.container.getRoot())};
zt.prototype.cut=function(a,b){a=xrd(this,a);H$b(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 vrd=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())};
zt.prototype.onKeyDown=function(a){a.event.target===this.container.getRoot()&&this.navigatable.getSpotlitItem()&&(this.keyboardShortcutHandler.handleEvent(a),this.undoRedoStack.onKeyDown(a))};var I$b=function(a,b){this.delegate=a;this.health=b};g=I$b.prototype;g.insert=function(a,b){try{this.delegate.insert(a,b)}catch(c){throw this.health.createError(6,Ys(c)),c;}};g.remove=function(a){try{this.delegate.remove(a)}catch(b){throw this.health.createError(7,Ys(b)),b;}};g.replace=function(a,b,c){try{this.delegate.replace(a,b,c)}catch(d){throw this.health.createError(8,Ys(d)),d;}};g.getNavigatable=function(){return this.delegate.getNavigatable()};g.focusLastChip=function(){return this.delegate.focusLastChip()};
g.activateAllChips=function(){this.delegate.activateAllChips()};g.onKeyDown=function(a){this.delegate.onKeyDown(a)};g.dispose=function(){try{this.delegate.dispose()}catch(a){throw this.health.createError(9,Ys(a)),a;}};var K$b=function(a){this.input=this.navigatable=null;this.prevKeyCode=a.getPrevKeyCode();this.nextKeyCode=a.getNextKeyCode();this.navigatePastEndCallback=a.navigatePastEnd||function(){};this.eventHandler=Gs(this)};g=K$b.prototype;
g.attach=function(a,b){var c=this;this.detach();this.navigatable=b;this.input=a;this.eventHandler.listen(this.input,"keydown",function(d){return c.onKeyDown(new Bt(d))});this.eventHandler.listen(this.input,"contextmenu",function(d){return c.onContextMenu(new Bt(d))});this.eventHandler.listen(this.input,"blur",function(d){return c.onBlur(d)})};g.detach=function(){this.eventHandler.removeAll();this.navigatable=this.input=null};
g.onKeyDown=function(a){if(this.navigatable&&(this.navigatable.onKeyDown(a),!a.hasStoppedPropagationInternal)){var b=yrd(a);switch(a.event.keyCode){case this.nextKeyCode:this.navigatable&&!this.navigatable.next(b)&&(this.navigatable.getActiveItems().length<2||b!==1)&&this.navigatePastEndCallback();a.stopPropagation();a.preventDefault();break;case this.prevKeyCode:this.navigatable.prev(b);a.stopPropagation();a.preventDefault();break;case 36:case 38:this.navigatable.goToIndex(0,b);a.stopPropagation();
a.preventDefault();break;case 35:case 40:this.navigatable.goToIndex(this.navigatable.size()-1,b);a.stopPropagation();a.preventDefault();break;case 65:a.event.platformModifierKey&&(this.navigatable.activateAll(),a.stopPropagation(),a.preventDefault());break;case 32:var c=this.navigatable.getSpotlitItem();c&&(this.navigatable.goToItem(c,b===2?3:b),a.stopPropagation(),a.preventDefault())}}};
g.onClick=function(a,b){if(!this.navigatable)return!1;this.navigatable.goToItem(a,yrd(b));b.stopPropagation();return!0};g.onContextMenu=function(a){if(this.navigatable)this.navigatable.onContextMenu(a,function(){})};g.reset=function(){this.navigatable&&this.navigatable.reset()};var yrd=function(a){return a.event.shiftKey?1:a.event.platformModifierKey?a.event.type==="keydown"?2:3:0};K$b.prototype.onBlur=function(a){this.navigatable&&(this.navigatable.reset(),a.stopPropagation())};var zrd=function(){};zrd.prototype.call=function(a){a()};zrd.prototype.cancel=function(){};var O$b=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"),Ard=RegExp("^([\\s\n\r,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a]*)+","g"),Brd=Object.freeze({startIndex:0,length:0,value:""});var T$b=function(a){a=a||{};a=a.max_height;var b=st(),c;a&&a>0?c=rt(tt(rt(st(),'<div class="'+nt("peoplekitComponentsSearchbarImplSearchBarContainer")+'" style="max-height: '+nt(kI(a))+'px">'),God(qt('<div peoplekit-id="'+nt("kE8AEc")+'"></div>'))),"</div>"):c=qt('<div class="'+nt("peoplekitComponentsSearchbarImplSearchBarContainer")+'"><div peoplekit-id="'+nt("kE8AEc")+'"></div></div>');return tt(b,c)},V$b=function(a){var b=a.id,c=a.ariaLabel,d=a.helpText,e=a.shouldAutofocus,f=a.height;a=a.densityClass;
return qt('<div class="'+nt("peoplekitComponentsSearchbarImplSearchInputContainer")+'" style="height: '+nt(kI(f))+'px" role="presentation"><input id="'+nt(b)+'" class="'+nt("peoplekitComponentsSearchbarImplSearchInput")+" "+nt(a)+'" peoplekit-id="'+nt("BbVjBd")+'" autocomplete="off" autocapitalize="off" autocorrect="off" spellcheck="false" aria-label="'+nt(c)+'" aria-autocomplete="list" aria-haspopup="listbox" aria-expanded="false" placeholder="'+nt(d)+'" size="'+nt(d.length)+'" type="text" role="combobox"'+
(e?" autofocus":"")+'><span class="'+nt("peoplekitComponentsSearchbarImplSearchInputWidthMeasurer")+" "+nt(a)+'" peoplekit-id="'+nt("nl4wje")+'"></span></div>')};var Crd=[[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]],Dt=function(a,b,c,d,e,f,h,k,q,v){var A=this;this.searchBarElement=a;this.chipsBar=b;this.inputContainer=c;this.autocomplete=d;this.selectionsState=e;this.undoRedoStack=f;this.config=q;this.prevQueryValue="";this.isDisposed=
!1;this.inputElement=Cs(c,"BbVjBd");this.inputWidthMeasurer=Cs(c,"nl4wje");this.scrollBarElement=a.querySelector('[peoplekit-id="I8ejUe"]');this.updateMinWidthBatcher=new Vod;this.autocompleteBatcher=new zrd;this.lookupSelector=new Ct(this.selectionsState,h,k,v);this.eventHandler=Gs(this);this.keyboardShortcutHandler=new trd;this.enterKeyDownListeners=[];this.query=Brd;this.onSelectionCallback=function(){A.onSelect()};this.onSelectionAttemptedCallback=function(){A.onSelectAttempt()};this.onDeselectionCallback=
function(){A.onDeselect()};this.attach();o9(this);Drd(this)};g=Dt.prototype;g.select=function(a){return this.chipsBar.select(a)};g.deselect=function(a){this.chipsBar.deselect(a)};g.replace=function(a){return this.chipsBar.replace(a)};g.focus=function(){this.inputElement.focus()};
g.dispose=function(){this.detach();this.autocomplete.dispose();this.chipsBar.dispose();this.lookupSelector.dispose();this.updateMinWidthBatcher.cancel();this.autocompleteBatcher.cancel();this.keyboardShortcutHandler.dispose();this.enterKeyDownListeners.length=0;this.isDisposed=!0};g.subscribeToEnterKeyDown=function(a){this.enterKeyDownListeners.push(a)};g.search=function(){p9(this,!1,!0)};
g.attach=function(){var a=this;I8(this.selectionsState,this.onSelectionCallback);this.selectionsState.selectionAttemptedCallbacks.add(this.onSelectionAttemptedCallback,2);H8(this.selectionsState,this.onDeselectionCallback);this.eventHandler.listen(this.inputElement,"keydown",function(b){b=new Bt(b);a.keyboardShortcutHandler.handleEvent(b);if(!a.inputElement.value)a.undoRedoStack.onKeyDown(b)});this.eventHandler.listen(this.inputElement,"keyup",function(b){b.keyCode!==37&&b.keyCode!==39||p9(a)});this.eventHandler.listen(this.inputElement,
"input",function(){a.onInput()});this.eventHandler.listen(this.inputElement,"paste",function(b){Erd(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(){p9(a)});this.eventHandler.listen(this.searchBarElement,"click",function(){a.inputElement.focus()});Frd(this)};
g.detach=function(){this.selectionsState.selectionCallbacks.remove(this.onSelectionCallback);this.selectionsState.selectionAttemptedCallbacks.remove(this.onSelectionAttemptedCallback);this.selectionsState.deselectionCallbacks.remove(this.onDeselectionCallback);this.eventHandler.removeAll()};
var p9=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!1:c;a.autocompleteBatcher.call(function(){a.query=Q$b(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(){})})},Grd=function(a){var b=a.inputElement.value;a.inputElement.value="";a.detachAutocomplete();var c=mt(b);c=y$b(Gt(c.getAddress())).setDisplayName(c.getName());
a.lookupSelector.select([c],13).then(function(d){a.isDisposed||(d.length&&(a.inputElement.value=b),a.inputElement.setSelectionRange(a.inputElement.value.length,a.inputElement.value.length),o9(a),p9(a))});a.undoRedoStack.push()};Dt.prototype.onInput=function(){o9(this);p9(this)};
var Hrd=function(a,b){if(Ps)return a.searchBarElement.ownerDocument.defaultView.clipboardData;a=b.event_;return a.type==="paste"?a.clipboardData:null},Erd=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=Hrd(a,b))==null?void 0:e.getData("text"))||"";e=P$b(c);var f=new Map;e=e.map(function(h){var k=mt(h.value),q=k.getAddress()?k.getName():"";k=k.getAddress()||k.getName();k=k.includes("@")?Gt(k):kac(k);
q=y$b(k).setDisplayName(q);f.set(String(k),h);return q});b.preventDefault();b.stopPropagation();a.lookupSelector.select(e,5).then(function(h){a.isDisposed||(a.inputElement.value=h.map(function(k){var q;return((q=f.get(String(k)))==null?void 0:q.value.trim())||""}).join(", "),a.inputElement.setSelectionRange(a.inputElement.value.length,a.inputElement.value.length),o9(a),p9(a))});a.undoRedoStack.push()}};Dt.prototype.onInputFocus=function(){p9(this)};Dt.prototype.onInputBlur=function(){this.detachAutocomplete()};
var o9=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"})},Frd=function(a){var b=At(a.searchBarElement)?39:37,c=function(d){!a.inputElement.value&&a.selectionsState.size()>0&&(a.chipsBar.focusLastChip(),d.stopPropagation())};n9(a.keyboardShortcutHandler,[8],c);n9(a.keyboardShortcutHandler,
[b],c);n9(a.keyboardShortcutHandler,[16,b],c);n9(a.keyboardShortcutHandler,[512,16,b],c);n9(a.keyboardShortcutHandler,[18,16,b],c);n9(a.keyboardShortcutHandler,[512,65],function(d){a.inputElement.value||(a.chipsBar.focusLastChip(),a.chipsBar.activateAllChips(),d.preventDefault(),d.stopPropagation())});n9(a.keyboardShortcutHandler,[40],function(d){a.inputElement.value||a.autocomplete.isShown()||(p9(a,!0),d.preventDefault(),d.stopPropagation())});n9(a.keyboardShortcutHandler,[13],function(d){if(a.inputElement.value){var e=
a.inputElement.value;e=e==null?!1:mt(e).isValid();var f=!a.autocomplete.getNavigatable().size();e&&f&&(Grd(a),d.preventDefault(),d.stopPropagation())}else if(!a.autocomplete.getNavigatable().getActiveItems().length){e=a.selectionsState.asArray();f=l(a.enterKeyDownListeners);for(var h=f.next();!h.done;h=f.next())h=h.value,h(e);d.preventDefault();d.stopPropagation()}});b=l(Crd);for(c=b.next();!c.done;c=b.next())n9(a.keyboardShortcutHandler,c.value,function(d){d.stopPropagation()})};
Dt.prototype.detachAutocomplete=function(){this.autocompleteBatcher.cancel();this.autocomplete.canHide()&&(this.autocomplete.detach(),this.prevQueryValue="")};
Dt.prototype.onSelect=function(){Ird(this);Drd(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(Ard,"");this.inputElement.setSelectionRange(this.query.startIndex,this.query.startIndex);
p9(this,!1,!1);o9(this)}};Dt.prototype.onSelectAttempt=function(){this.onSelect()};Dt.prototype.onDeselect=function(){this.autocomplete.isShown()&&p9(this,!1,!1);Ird(this);Drd(this);o9(this);this.selectionsState.size()<=0&&this.inputElement.focus()};
var Ird=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,o9(a))},Drd=function(a){var b=a.inputElement,c=b.setAttribute;a=a.selectionsState.size();c.call(b,"aria-description",(a===0?"None":""+a)+" selected")};var S$b=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=zba(rk(c.internal,3)))!=null?d:a;this.push()};S$b.prototype.push=function(){var a=this.selectionsState.asArray().map(B$b),b=!1;this.undoStack.length!==0&&R$b(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};
S$b.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};S$b.prototype.clear=function(){this.undoStack.length=0;this.push()};
S$b.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 W$b=Qs.getInstance();var $$b=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 Vod;I8(this.selectionsState,function(){f.notifySelectionChanged()});H8(this.selectionsState,function(){f.notifySelectionChanged()});Sod(this.selectionsState,function(){f.notifySelectionChanged()})};g=$$b.prototype;g.select=function(a){return this.searchBar.select(a)};g.deselect=function(a){this.searchBar.deselect(a)};
g.replace=function(a){return this.searchBar.replace(a)};g.subscribeToSelectionChanged=function(a){this.selectionChangedListeners.push(a)};g.subscribeToEnterKeyDown=function(a){this.searchBar.subscribeToEnterKeyDown(a)};g.notifySelectionChanged=function(){var a=this;this.selectionChangedAutoBatcher.call(function(){for(var b=a.selectionsState.asArray(),c=l(a.selectionChangedListeners),d=c.next();!d.done;d=c.next())d=d.value,d(b)})};g.focus=function(){this.searchBar.focus()};
g.report=function(a){var b=this.selectionsState.asArray();h9b(this.interactionReporter,a,b)};g.dispose=function(){this.searchbarTracker.stop();this.selectionChangedListeners.length=0;this.selectionsState.clear();this.root.parentNode&&this.root.parentNode.removeChild(this.root);this.searchBar.dispose()};var Y$b=function(a){a=a||{};a=a.classes;return qt('<div peoplekit-id="'+nt("P3anae")+'"'+(a?' class="'+nt(a)+'"':"")+"></div>")};var Jrd={create:function(a,b,c,d){d=d===void 0?new et:d;return cac(a,b,c,new Xld,{sessionOptions:d})},createWith:function(a,b,c,d){d=d===void 0?{}:d;return cac(a,b,c,new Xld,d)},createConfig:function(a){a=a===void 0?new eEc($H.apiEnv,new fEc($H.userProfileId)):a;return new Nqd(a)}};var q9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(q9,n);g=q9.prototype;g.getEnableClearcut=function(){return kk(this,1)};g.setEnableClearcut=function(a){return Nk(this,1,a)};g.getSocialApplication=function(){return pk(this,2)};g.getSocialApplicationOrUndefined=function(){return Nm(this,2)};g.setEventSources=function(a){Au(this,5,iu,a)};var r9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(r9,n);r9.prototype.getApplication=function(){return pk(this,1)};r9.prototype.setApplication=function(a){return Rk(this,1,a)};r9.prototype.getApplicationOrUndefined=function(){return Nm(this,1)};r9.prototype.getIsEnabled=function(){return kk(this,2)};var s9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(s9,n);g=s9.prototype;g.getSuggestMaxResults=function(){return Ej(this,1,10)};g.getSearchMaxResults=function(){return Ej(this,2,10)};g.getCacheSize=function(){return Ej(this,3,500)};g.setCacheSize=function(a){Ok(this,3,a)};g.hasCacheSize=function(){return lk(this,3)};g.getCacheStaleSec=function(){return hm(this,4,86400)};g.getCacheExpiredSec=function(){return hm(this,5,1209600)};
g.getRpcTimeoutSec=function(){return hm(this,12,60)};g.getSuggestFormat=function(){return pk(this,15,1)};g.getSearchFormat=function(){return pk(this,16,1)};g.getEnablePersonalizedQueryMatching=function(){return kk(this,35)};var t9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(t9,n);t9.prototype.getApiKey=function(){return Rc(this,1)};t9.prototype.setApiKey=function(a){return Qk(this,1,a)};var u9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(u9,n);u9.prototype.getClientId=function(){return Rc(this,1,"CLIENT_UNSPECIFIED")};u9.prototype.setClientId=function(a){return Qk(this,1,a)};u9.prototype.getAffinityType=function(){return Rc(this,4,"AFFINITY_TYPE_UNKNOWN")};u9.prototype.setAffinityType=function(a){return Qk(this,4,a)};var Krd=function(a){return pk(a,5)};u9.prototype.getContainerType=function(){return Lu(this,7)};
u9.prototype.setPhoneCanonicalizationInference=function(a){return Rk(this,19,a)};u9.prototype.getPhoneCanonicalizationInferenceOrUndefined=function(){return Nm(this,19)};var Lrd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Lrd,n);g=Lrd.prototype;g.getClient=function(){return W(this,s9,1)};g.setClient=function(a){return X(this,s9,1,a)};g.hasClient=function(){return tk(this,s9,1)};g.getGapi=function(){return W(this,t9,2)};g.getPeopleApi=function(){return W(this,u9,3)};g.getClearcut=function(){return W(this,q9,4)};g.setClearcut=function(a){X(this,q9,4,a)};g.hasClearcut=function(){return tk(this,q9,4)};
g.getExperiments=function(){return W(this,r9,5)};g.setExperiments=function(a){return X(this,r9,5,a)};g.hasExperiments=function(){return tk(this,r9,5)};var Mrd=Kda(Lrd);var Nrd;var v9=function(a,b){this.delegate_=a;this.runtimeConfig_=b||new tSc;a=this.getPeopleApi();Fk(a,7,Bj()).length||dp(a,7,[2,8,1,7,10,11]);Aj(a,8,Bj()).length||Ij(a,8,["person.name","person.photo","person.email","person.phone","person.metadata"]);b=l(Aj(a,8,Bj()));for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c){case "person.name":case "person.email":case "person.phone":yc(a,8,Qb,c+".metadata.verified",void 0,Rb)}};
v9.prototype.getClient=function(){this.delegate_.hasClient()||this.delegate_.setClient(new s9);return this.delegate_.getClient()};v9.prototype.getGapi=function(){if(!tk(this.delegate_,t9,2)){var a=this.delegate_,b=new t9;X(a,t9,2,b)}return this.delegate_.getGapi()};v9.prototype.getPeopleApi=function(){if(!tk(this.delegate_,u9,3)){var a=this.delegate_,b=new u9;X(a,u9,3,b)}return this.delegate_.getPeopleApi()};
v9.prototype.getClearcut=function(){this.delegate_.hasClearcut()||this.delegate_.setClearcut(new q9);return this.delegate_.getClearcut()};var Ord=function(a){a.delegate_.hasExperiments()||a.delegate_.setExperiments(new r9);return a.delegate_.getExperiments()};v9.prototype.getAuthErrorHandler=function(){return this.runtimeConfig_.getAuthErrorHandler()};var Prd=function(a){a=a.getClient();return Ej(a,6,500)?Math.min(Math.round(Ej(a,6,500)/4),500):500};var Qrd;var hu=null;var Rrd=function(){};Rrd.prototype.processItem=function(){};var Srd=new Rrd;var eac=new Set([10,11]);var Trd=function(a){this.interleaveGroups_=kk(a,33)},Urd=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=fac(d,e,f,!0);break a;default:d=gac(d,e,f)}}return d}).map(function(d){return String(d.id)})};var w9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(w9,n);w9.prototype.setPhoneCanonicalizationInference=function(a){return Rk(this,1,a)};w9.prototype.getPhoneCanonicalizationInferenceOrUndefined=function(){return Nm(this,1)};var Ft=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ft,n);Ft.prototype.setDevice=function(a){return Rk(this,1,a)};var Vrd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Vrd,n);var Wrd=function(){var a=new Vrd;return Rk(a,1,1)},Xrd=function(a,b){return Qk(a,2,b)};var Yrd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Yrd,n);g=Yrd.prototype;g.getAffinityType=function(){return Ut(this,1)};g.setAffinityType=function(a){return Rk(this,1,a)};g.getQuery=function(){return $k(this,2)};g.setQuery=function(a){return Qk(this,2,a)};g.clearQuery=function(){Bu(this,2)};g.hasQuery=function(){return mk(this,2)};g.setClientInformation=function(a){X(this,Ft,3,a)};g.setMaxResults=function(a){return Ok(this,4,a)};
g.setFormattingOptions=function(a){X(this,w9,5,a)};g.setDelegation=function(a){X(this,Vrd,6,a)};var Zrd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Zrd,n);var $rd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y($rd,n);g=$rd.prototype;g.getAffinityVersion=function(){return Mu(this,1)};g.setAffinityVersion=function(a){Ok(this,1,a)};g.getAffinityVersionOrUndefined=function(){return Gu(this,1)};g.setFeature=function(a){return Au(this,3,Zrd,a)};g.getAffinityType=function(){return $k(this,4)};g.setAffinityType=function(a){return Qk(this,4,a)};var Cac=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,4)};Y(Cac,n);var x9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(x9,n);x9.prototype.getValue=function(){return $k(this,1)};x9.prototype.getValue_legacyNullable=function(){return $k(this,1)};x9.prototype.setValue=function(a){return Qk(this,1,a)};x9.prototype.hasValue=function(){return mk(this,1)};var y9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(y9,n);g=y9.prototype;g.getLoggingId=function(){return rk(this,1,void 0,Wt,sc)};g.setLoggingId=function(a){pq(this,1,gb(a,!1,!0))};g.getValue=function(){return Ou(this,2)};g.getValue_legacyNullable=function(){return Ou(this,2)};g.setValue=function(a){return Pu(this,2,a)};g.hasValue=function(){return rk(this,2,void 0,void 0,sb)!=null};var z9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(z9,n);g=z9.prototype;g.getValue=function(){return $k(this,1)};g.getValue_legacyNullable=function(){return $k(this,1)};g.setValue=function(a){return Qk(this,1,a)};g.hasValue=function(){return mk(this,1)};g.getGivenName=function(){return $k(this,2)};g.setGivenName=function(a){return Qk(this,2,a)};g.hasGivenName=function(){return mk(this,2)};g.getFamilyName=function(){return $k(this,3)};
g.setFamilyName=function(a){return Qk(this,3,a)};g.hasFamilyName=function(){return mk(this,3)};g.getSourceType=function(){return Ut(this,4)};g.setSourceType=function(a){return Rk(this,4,a)};var asd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(asd,n);g=asd.prototype;g.getUrl=function(){return $k(this,1)};g.setUrl=function(a){return Qk(this,1,a)};g.hasUrl=function(){return mk(this,1)};g.getType=function(){return Ut(this,2)};g.setType=function(a){return Rk(this,2,a)};g.hasType=function(){return nk(this,2)};g.getGlyph=function(){return $k(this,3)};g.setGlyph=function(a){return Qk(this,3,a)};var A9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(A9,n);g=A9.prototype;g.getPhoto=function(){return W(this,asd,1)};g.setPhoto=function(a){X(this,asd,1,a)};g.hasPhoto=function(){return tk(this,asd,1)};g.getName=function(){return W(this,z9,2)};g.setName=function(a){return X(this,z9,2,a)};g.hasName=function(){return tk(this,z9,2)};g.getNameOrUndefined=function(){return Cec(this,z9,2)};g.getAffinity=function(){return W(this,y9,3)};
g.hasAffinity=function(){return tk(this,y9,3)};g.getPrimary=function(){return Mt(this,4)};var B9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(B9,n);B9.prototype.getStatus=function(){return Ut(this,2)};B9.prototype.setStatus=function(a){return Rk(this,2,a)};B9.prototype.hasStatus=function(){return nk(this,2)};var bsd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(bsd,n);var Pac=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Pac,n);Pac.prototype.getState=function(){return Ut(this,2)};Pac.prototype.setState=function(a){return Rk(this,2,a)};var C9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(C9,n);C9.prototype.getApplication=function(){return pk(this,1)};C9.prototype.setApplication=function(a){return Rk(this,1,a)};C9.prototype.getApplicationOrUndefined=function(){return Nm(this,1)};var D9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(D9,n);D9.prototype.getValue=function(){return $k(this,1)};D9.prototype.getValue_legacyNullable=function(){return $k(this,1)};D9.prototype.setValue=function(a){return Qk(this,1,a)};D9.prototype.hasValue=function(){return mk(this,1)};var lac=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lac,n);g=lac.prototype;g.getProfileId=function(){return $k(this,1)};g.getProfileId_legacyNullable=function(){return $k(this,1)};g.setProfileId=function(a){return Qk(this,1,a)};g.hasProfileId=function(){return mk(this,1)};g.getEmail=function(){return Zt(this,2,Jt)};g.getEmail_legacyNullable=function(){return Zt(this,2,Jt)};g.setEmail=function(a){return Rl(this,2,Jt,a)};
g.hasEmail=function(){return Vo(this,2,Jt)!=null};g.getPhone=function(){return Zt(this,3,Jt)};g.getPhone_legacyNullable=function(){return Zt(this,3,Jt)};g.setPhone=function(a){return Rl(this,3,Jt,a)};g.hasPhone=function(){return Vo(this,3,Jt)!=null};g.getClientData=function(){return $k(this,4)};g.hasClientData=function(){return mk(this,4)};var Jt=[2,3];var csd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(csd,n);g=csd.prototype;g.getDisplayValue=function(){return $k(this,1)};g.getCanonicalValue=function(){return $k(this,2)};g.setCanonicalValue=function(a){return Qk(this,2,a)};g.hasCanonicalValue=function(){return mk(this,2)};g.getOriginalValue=function(){return $k(this,3)};var dsd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(dsd,n);var esd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(esd,n);g=esd.prototype;g.getStatus=function(){return Ut(this,1)};g.setStatus=function(a){return Rk(this,1,a)};g.hasStatus=function(){return nk(this,1)};g.getClientData=function(){return $k(this,2)};g.hasClientData=function(){return mk(this,2)};var oac=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(oac,n);g=oac.prototype;g.getIdCase=function(){return Ml(this,E9)};g.getProfileId=function(){return Zt(this,1,E9)};g.getProfileId_legacyNullable=function(){return Zt(this,1,E9)};g.setProfileId=function(a){return Rl(this,1,E9,a)};g.hasProfileId=function(){return Vo(this,1,E9)!=null};g.getContactId=function(){return Zt(this,2,E9)};g.setContactId=function(a){return Rl(this,2,E9,a)};var E9=[1,2];var fsd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(fsd,n);g=fsd.prototype;g.getValueCase=function(){return Ml(this,Ht)};g.getDisplayInfo=function(){return W(this,A9,1)};g.hasDisplayInfo=function(){return tk(this,A9,1)};g.getEmail=function(){return im(this,D9,2,Ht)};g.setEmail=function(a){return nm(this,2,Ht,a)};g.hasEmail=function(){return vm(this,D9,2,Ht)};g.getPhone=function(){return im(this,csd,3,Ht)};g.setPhone=function(a){return nm(this,3,Ht,a)};
g.hasPhone=function(){return vm(this,csd,3,Ht)};g.getIsSelf=function(){return Mt(this,6)};g.getTypeLabel=function(){return $k(this,10)};g.getDisambiguationLabel=function(){return W(this,x9,14)};g.setDisambiguationLabel=function(a){X(this,x9,14,a)};var Ht=[2,3,4];var gsd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(gsd,n);g=gsd.prototype;g.getDisplayInfo=function(){return W(this,A9,1)};g.hasDisplayInfo=function(){return tk(this,A9,1)};g.getMembersList=function(){return Sj(this,fsd,2,Bj())};g.setMembersList=function(a){return Bm(this,2,a)};g.getLabelId=function(){return $k(this,3)};var Lt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a,5)};Y(Lt,n);Lt.prototype.getIsPlaceholder=function(){return kk(this,2)};Lt.prototype.setIsPlaceholder=function(a){Nk(this,2,a)};Lt.prototype.getContactId=function(){return xk(this,4)};Lt.prototype.setContactId=function(a){return Ek(this,4,a)};var hsd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(hsd,n);hsd.prototype.getAffinity=function(){return W(this,y9,2)};hsd.prototype.hasAffinity=function(){return tk(this,y9,2)};var Zac=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Zac,n);Zac.prototype.getIdCase=function(){return Ml(this,$ac)};var $ac=[1,2];var isd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(isd,n);g=isd.prototype;g.getDisplayInfo=function(){return W(this,A9,1)};g.hasDisplayInfo=function(){return tk(this,A9,1)};g.getMembersList=function(){return Sj(this,hsd,2,Bj())};g.setMembersList=function(a){return Bm(this,2,a)};g.getGroupId=function(){return $k(this,4)};g.setGroupId=function(a){Qk(this,4,a)};g.hasGroupId=function(){return mk(this,4)};var F9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(F9,n);F9.prototype.getDataCase=function(){return Ml(this,G9)};F9.prototype.clearData=function(){return Aec(this,G9)};F9.prototype.getGroup=function(){return im(this,isd,2,G9)};F9.prototype.setGroup=function(a){nm(this,2,G9,a)};var G9=[1,2,3];var jsd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(jsd,n);var ksd=new o0("/peoplestack.PeopleStackAutocompleteService/Autocomplete",Yrd,jsd,function(a){return a.serialize()},Tc(jsd));var lsd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(lsd,n);g=lsd.prototype;g.getAffinityType=function(){return Ut(this,1)};g.setAffinityType=function(a){return Rk(this,1,a)};g.setClientInformation=function(a){X(this,Ft,2,a)};g.getName=function(){return $k(this,3)};g.setName=function(a){return Qk(this,3,a)};g.hasName=function(){return mk(this,3)};g.getNameOrUndefined=function(){return Hu(this,3)};var msd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(msd,n);msd.prototype.getGroup=function(){return W(this,isd,1)};msd.prototype.setGroup=function(a){X(this,isd,1,a)};var nsd=new o0("/peoplestack.PeopleStackAutocompleteService/CreateGroup",lsd,msd,function(a){return a.serialize()},Tc(msd));var St=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(St,n);g=St.prototype;g.getIdCase=function(){return Ml(this,Tt)};g.getEmail=function(){return Zt(this,1,Tt)};g.getEmail_legacyNullable=function(){return Zt(this,1,Tt)};g.setEmail=function(a){return Rl(this,1,Tt,a)};g.hasEmail=function(){return Vo(this,1,Tt)!=null};g.getPhone=function(){return Zt(this,2,Tt)};g.getPhone_legacyNullable=function(){return Zt(this,2,Tt)};g.setPhone=function(a){return Rl(this,2,Tt,a)};
g.hasPhone=function(){return Vo(this,2,Tt)!=null};g.getProfileId=function(){return Zt(this,3,Tt)};g.getProfileId_legacyNullable=function(){return Zt(this,3,Tt)};g.setProfileId=function(a){return Rl(this,3,Tt,a)};g.hasProfileId=function(){return Vo(this,3,Tt)!=null};g.getContactId=function(){return Zt(this,5,Tt)};g.setContactId=function(a){return Rl(this,5,Tt,a)};var Tt=[1,2,3,4,5];var H9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(H9,n);H9.prototype.getAffinityType=function(){return Ut(this,1)};H9.prototype.setAffinityType=function(a){return Rk(this,1,a)};H9.prototype.setClientInformation=function(a){X(this,Ft,2,a)};var osd=function(a,b){Bm(a,3,b)};H9.prototype.setIds=function(a){return Au(this,3,St,a)};H9.prototype.setFormattingOptions=function(a){X(this,w9,4,a)};H9.prototype.setDelegation=function(a){X(this,Vrd,5,a)};var psd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(psd,n);psd.prototype.getId=function(){return W(this,St,1)};psd.prototype.setId=function(a){return X(this,St,1,a)};var qsd=[2,3];var rsd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(rsd,n);var ssd=new o0("/peoplestack.PeopleStackAutocompleteService/Lookup",H9,rsd,function(a){return a.serialize()},Tc(rsd));var I9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(I9,n);I9.prototype.getAffinityType=function(){return Ut(this,1)};I9.prototype.setAffinityType=function(a){return Rk(this,1,a)};I9.prototype.setClientInformation=function(a){X(this,Ft,2,a)};I9.prototype.setDelegation=function(a){X(this,Vrd,3,a)};var tsd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(tsd,n);var usd=new o0("/peoplestack.PeopleStackAutocompleteService/Warmup",I9,tsd,function(a){return a.serialize()},Tc(tsd));var vsd=function(a){var b={unaryInterceptors:[new xnd]};b=b||{};b.format="jspb";this.client_=new ubd(b);this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};vsd.prototype.autocomplete=function(a,b,c){return t0(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Autocomplete",a,b||{},ksd,c)};vsd.prototype.lookup=function(a,b,c){return t0(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Lookup",a,b||{},ssd,c)};
vsd.prototype.createGroup=function(a,b,c){return t0(this.client_,this.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/CreateGroup",a,b||{},nsd,c)};var du=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(du,n);g=du.prototype;g.getTimestamp=function(){return xk(this,1)};g.setTimestamp=function(a){return Ek(this,1,a)};g.hasTimestamp=function(){return wk(this,1)};g.getAffinityVersion=function(){return Ej(this,2)};g.setAffinityVersion=function(a){Ok(this,2,a)};g.getAffinityVersionOrUndefined=function(){return Gu(this,2)};g.getNextPageToken=function(){return Rc(this,4)};var J9=function(a){return Nk(a,5,!0)};
du.prototype.getCode=function(){return pk(this,6)};du.prototype.setCode=function(a){return Rk(this,6,a)};du.prototype.getCodeOrUndefined=function(){return Nm(this,6)};var yac=new Yu(417869898,Nt,Lt);var Dac=new Yu(417866180,Nt,Cac);var wsd=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},wac=function(a){if(!a)return 0;a=Array.from(a).map(wsd);a.sort();for(var b=1,c=0,d=a.length;c<d;c++)b=(b<<5)-b+a[c];return b};var iac=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 xsd=function(a){this.leanResponseProcessorConfig_=a},ysd=function(a,b,c,d){d=d===void 0?!1:d;for(var e=[],f=Bac(b),h=[],k=l(Sj(b,fsd,1,Bj())),q=k.next();!q.done;q=k.next()){q=q.value;var v=nac(q);if(v.equals(Kt)){if(!a.leanResponseProcessorConfig_.allowEmptyTargets&&!d)continue;v=xac(q);if(!v)continue;v=mcc(v)}h.push(String(v));var A=void 0,E=void 0;v={id:v,containerIds:rac(q),coalescedKeys:h,isMe:!!q.getIsSelf(),dataSource:sac(b,q),provenance:c,isPrimary:vac((A=q.getDisplayInfo())!=null?A:null),
itemAffinity:uac(b),fieldAffinity:tac((E=q.getDisplayInfo())!=null?E:null),contactMethod:q,person:b};f&&(v.resultExtendedData=f);if(A=Eac(q))v.targetExtendedData=A;q=Sj(q,dsd,15,Bj());q.length>0&&(v.preferredSearchTerms=q.map(function(H){return $k(H,1)}));e.push(v)}e.length&&e.every(function(H){return!H.isPrimary})&&(e[0].isPrimary=!0);return e},zsd=function(a,b,c){var d=lcc(jac($k(b,5)),b.getGroupId()||""),e=b.getMembersList().map(function(q){return ysd(a,q,8,!0)}),f=e.filter(function(q){return q&&
q.length}).map(function(q){return String(q[0].id)}),h,k;d=[{id:d,containerIds:[d],memberKeys:f,totalMemberCount:(h=Gu(b,3))!=null?h:void 0,provenance:c,isPrimary:!0,itemAffinity:tac((k=b.getDisplayInfo())!=null?k:null),fieldAffinity:-Infinity,group:b}];b=l(e);for(c=b.next();!c.done;c=b.next())d.push.apply(d,p(c.value));return d},Asd=function(a,b){var c=bEc(a.getLabelId()||""),d=a.getMembersList().map(function(h){if(h.hasEmail()&&h.getEmail().getValue()){var k,q;var v={id:Gt(h.getEmail().getValue()),
containerIds:rac(h),contactMethod:h,provenance:8,isMe:!1,dataSource:1,isPrimary:vac((k=h.getDisplayInfo())!=null?k:null),itemAffinity:-Infinity,fieldAffinity:tac((q=h.getDisplayInfo())!=null?q:null)};if(h=Eac(h))v.targetExtendedData=h}else v=null;return v}).filter(Boolean),e=d.map(function(h){return String(h.id)}),f;return[{id:c,containerIds:[c],memberKeys:e,totalMemberCount:d.length,provenance:b,dataSource:1,isPrimary:!0,itemAffinity:tac((f=a.getDisplayInfo())!=null?f:null),fieldAffinity:-Infinity,
isMe:!1,contactLabel:a}].concat(p(d))},Bsd=function(a,b,c){switch(b.getDataCase()){case 1:return ysd(a,im(b,hsd,1,G9),c);case 2:return zsd(a,b.getGroup(),c);case 3:return Asd(im(b,gsd,3,G9),c);default:return[]}},Csd=function(a,b,c){return Sj(b,F9,1,Bj()).flatMap(function(d){return Bsd(a,d,c)})};var eu=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(eu,n);eu.prototype.getSessionState=function(){return W(this,CO,1)};eu.prototype.setSessionState=function(a){return X(this,CO,1,a)};eu.prototype.hasSessionState=function(){return tk(this,CO,1)};var Qt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Qt,n);Qt.prototype.hasNoChanges=function(){return jk(this,12)};var Pt=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Pt,n);Pt.prototype.getEventType=function(){return pk(this,1)};Pt.prototype.setEventType=function(a){return Rk(this,1,a)};var Rt=function(a,b){return Rk(a,2,b)},Fac=function(a,b){return Rk(a,3,b)};g=Pt.prototype;g.getErrorType=function(){return pk(this,6)};g.setErrorType=function(a){return Rk(this,6,a)};g.hasErrorType=function(){return nk(this,6)};g.getIdType=function(){return pk(this,8)};
g.setIdType=function(a){Rk(this,8,a)};g.getResultIndex=function(){return Ej(this,9)};g.setResultIndex=function(a){Ok(this,9,a)};g.getToken=function(){return Rc(this,10)};g.setToken=function(a){return Qk(this,10,a)};g.getCacheState=function(){return W(this,K8,11)};g.setCacheState=function(a){return X(this,K8,11,a)};g.hasCacheState=function(){return tk(this,K8,11)};g.getQueryLength=function(){return Ej(this,14)};g.setQueryLength=function(a){return Ok(this,14,a)};
g.hasQueryLength=function(){return lk(this,14)};g.getItemCount=function(){return Ej(this,15)};g.setItemCount=function(a){return Ok(this,15,a)};g.hasItemCount=function(){return lk(this,15)};g.getLookupInfo=function(){return W(this,Qt,16)};g.getMutableLookupInfo=function(){return Cu(this,Qt,16)};g.setLookupInfo=function(a){return X(this,Qt,16,a)};g.hasLookupInfo=function(){return tk(this,Qt,16)};g.getQueryScope=function(){return pk(this,17)};g.setQueryScope=function(a){return Rk(this,17,a)};
g.hasQueryScope=function(){return nk(this,17)};var Hac=new Map([[0,1],[1,2],[2,3],[3,4]]);var Dsd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Dsd,n);g=Dsd.prototype;g.getLabel=function(){return Ut(this,1)};g.setLabel=function(a){return Rk(this,1,a)};g.hasLabel=function(){return nk(this,1)};g.getItemCount=function(){return Mu(this,2)};g.setItemCount=function(a){return Ok(this,2,a)};g.hasItemCount=function(){return lk(this,2)};g.getLookupInfo=function(){return W(this,Qt,3)};g.getMutableLookupInfo=function(){return Cu(this,Qt,3)};
g.setLookupInfo=function(a){return X(this,Qt,3,a)};g.hasLookupInfo=function(){return tk(this,Qt,3)};g.getQueryLength=function(){return Mu(this,4)};g.setQueryLength=function(a){return Ok(this,4,a)};g.hasQueryLength=function(){return lk(this,4)};g.getQueryScope=function(){return pk(this,5)};g.setQueryScope=function(a){return Rk(this,5,a)};g.hasQueryScope=function(){return nk(this,5)};var Esd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Esd,n);g=Esd.prototype;g.getLabel=function(){return Ut(this,1)};g.setLabel=function(a){return Rk(this,1,a)};g.hasLabel=function(){return nk(this,1)};g.getStatus=function(){return Ut(this,2)};g.setStatus=function(a){return Rk(this,2,a)};g.hasStatus=function(){return nk(this,2)};g.setLatencyUsec=function(a){Ek(this,3,a)};g.getResultIndex=function(){return Mu(this,4)};g.setResultIndex=function(a){Ok(this,4,a)};
g.getDataSource=function(){return Ut(this,7)};g.setDataSource=function(a){return Rk(this,7,a)};g.hasDataSource=function(){return nk(this,7)};g.getItemCount=function(){return Mu(this,8)};g.setItemCount=function(a){return Ok(this,8,a)};g.hasItemCount=function(){return lk(this,8)};g.getLookupInfo=function(){return W(this,Qt,10)};g.getMutableLookupInfo=function(){return Cu(this,Qt,10)};g.setLookupInfo=function(a){return X(this,Qt,10,a)};g.hasLookupInfo=function(){return tk(this,Qt,10)};
g.getStatusCode=function(){return pk(this,11,2)};g.setStatusCode=function(a){Rk(this,11,a)};g.hasStatusCode=function(){return nk(this,11)};g.getQueryLength=function(){return Mu(this,13)};g.setQueryLength=function(a){return Ok(this,13,a)};g.hasQueryLength=function(){return lk(this,13)};g.getQueryScope=function(){return pk(this,14)};g.setQueryScope=function(a){return Rk(this,14,a)};g.hasQueryScope=function(){return nk(this,14)};var Fsd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Fsd,n);var K9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(K9,n);g=K9.prototype;g.getDataSource=function(){return Ut(this,3)};g.setDataSource=function(a){return Rk(this,3,a)};g.hasDataSource=function(){return nk(this,3)};g.getType=function(){return Ut(this,4)};g.setType=function(a){return Rk(this,4,a)};g.hasType=function(){return nk(this,4)};g.getValue=function(){return xk(this,2,jb(1))};g.setValue=function(a){return Ek(this,2,a)};g.hasValue=function(){return wk(this,2)};
g.getLabel=function(){return $k(this,1)};g.setLabel=function(a){return Qk(this,1,a)};g.hasLabel=function(){return mk(this,1)};var L9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(L9,n);g=L9.prototype;g.getStatusCode=function(){return pk(this,5,2)};g.setStatusCode=function(a){Rk(this,5,a)};g.hasStatusCode=function(){return nk(this,5)};g.getLabel=function(){return $k(this,1)};g.setLabel=function(a){return Qk(this,1,a)};g.hasLabel=function(){return mk(this,1)};g.getCause=function(){return $k(this,2)};g.setCause=function(a){Qk(this,2,a)};g.getType=function(){return Ut(this,3)};
g.setType=function(a){return Rk(this,3,a)};g.hasType=function(){return nk(this,3)};var Gsd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Gsd,n);g=Gsd.prototype;g.getType=function(){return Ut(this,3)};g.setType=function(a){return Rk(this,3,a)};g.hasType=function(){return nk(this,3)};g.setLatencyUsec=function(a){Ek(this,2,a)};g.getLabel=function(){return $k(this,1)};g.setLabel=function(a){return Qk(this,1,a)};g.hasLabel=function(){return mk(this,1)};var M9=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(M9,n);M9.prototype.getLabel=function(){return Ut(this,1)};M9.prototype.setLabel=function(a){return Rk(this,1,a)};M9.prototype.hasLabel=function(){return nk(this,1)};var Hsd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Hsd,n);g=Hsd.prototype;g.getLabel=function(){return Ut(this,1)};g.setLabel=function(a){return Rk(this,1,a)};g.hasLabel=function(){return nk(this,1)};g.getStatus=function(){return Ut(this,2)};g.setStatus=function(a){return Rk(this,2,a)};g.hasStatus=function(){return nk(this,2)};g.setLatencyUsec=function(a){Ek(this,3,a)};g.getErrorCode=function(){return Nu(this,4)};g.hasErrorCode=function(){return wk(this,4)};
g.getStatusCode=function(){return pk(this,7,2)};g.setStatusCode=function(a){Rk(this,7,a)};g.hasStatusCode=function(){return nk(this,7)};g.setBlockedUsec=function(a){return Ek(this,8,a)};var Tbc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Tbc,n);g=Tbc.prototype;g.getClientInterface=function(){return W(this,KH,1)};g.setClientInterface=function(a){return X(this,KH,1,a)};g.getEventType=function(){return Ut(this,3)};g.getEventType_legacyNullable=function(){return Ut(this,3)};g.setEventType=function(a){return Rk(this,3,a)};g.getCacheStatus=function(){return W(this,Fsd,12)};g.setCacheStatus=function(a){return X(this,Fsd,12,a)};
g.getCount=function(){return W(this,K9,4)};g.getMutableCount=function(){return Cu(this,K9,4)};g.setCount=function(a){return X(this,K9,4,a)};g.getMutableLatency=function(){return Cu(this,Gsd,5)};g.setLatency=function(a){X(this,Gsd,5,a)};g.getError=function(){return W(this,L9,6)};g.setError=function(a){X(this,L9,6,a)};g.hasError=function(){return tk(this,L9,6)};g.setRpcRequest=function(a){return X(this,M9,7,a)};g.setRpcResponse=function(a){return X(this,Hsd,8,a)};
g.setApiCall=function(a){return X(this,Dsd,9,a)};g.setApiResult=function(a){return X(this,Esd,10,a)};var N9=function(a,b,c,d,e){this.leanResponseProcessor_=a;this.grpcClient_=b;e?a=Gac(e):(a=new Pt,Fac(a.setEventType(4),4));this.sourceInfo_=a;this.provenance_=e?2:1;this.trackers_=d;this.query_=e;this.affinity_=Krd(c.getPeopleApi());this.searchMaxResults_=c.getClient().getSearchMaxResults();this.cacheSize_=c.getClient().getCacheSize();this.phoneCanonicalizationInference_=c.getPeopleApi().getPhoneCanonicalizationInferenceOrUndefined();this.requestCorpHeaders_=c.runtimeConfig_.requestCorpHeaders_;var f;
this.delegatorId_=(f=c.runtimeConfig_.getDelegatorId())!=null?f:""};N9.prototype.getMetric=function(){return Isd(this.trackers_,this.sourceInfo_)};
N9.prototype.send=function(a){var b=new Yrd;b.setAffinityType(this.affinity_).setQuery(this.query_).setClientInformation(hac({requestCorpHeaders:this.requestCorpHeaders_}));this.query_.length?b.setMaxResults(this.searchMaxResults_):b.setMaxResults(this.cacheSize_);this.phoneCanonicalizationInference_!=null&&b.setFormattingOptions((new w9).setPhoneCanonicalizationInference(this.phoneCanonicalizationInference_));this.delegatorId_&&b.setDelegation(Xrd(Wrd(),this.delegatorId_));return this.grpcClient_.autocomplete(b,
a)};N9.prototype.processResponse=function(a){var b=Csd(this.leanResponseProcessor_,a,this.provenance_),c=new du;tk(a,$rd,2)&&c.setAffinityVersion(W(a,$rd,2).getAffinityVersion());return{data:b,metadata:c}};N9.prototype.close=function(){};var Jsd=function(a,b,c,d,e,f){this.leanResponseProcessor_=a;this.grpcClient_=b;a=new Pt;Fac(a.setEventType(4),7).setIdType(e);this.sourceInfo_=a;this.provenance_=3;this.keys_=f;this.type_=e;this.trackers_=d;this.affinity_=Krd(c.getPeopleApi());this.phoneCanonicalizationInference_=c.getPeopleApi().getPhoneCanonicalizationInferenceOrUndefined();this.requestCorpHeaders_=c.runtimeConfig_.requestCorpHeaders_;var h;this.delegatorId_=(h=c.runtimeConfig_.getDelegatorId())!=null?h:""};
Jsd.prototype.getMetric=function(){return Isd(this.trackers_,this.sourceInfo_)};
Jsd.prototype.send=function(a){var b=this,c=new H9;c.setAffinityType(this.affinity_).setClientInformation(hac({requestCorpHeaders:this.requestCorpHeaders_}));osd(c,this.keys_.map(function(d){return Oac(b.type_,d)}).filter(function(d){return!!d}));this.phoneCanonicalizationInference_!=null&&c.setFormattingOptions((new w9).setPhoneCanonicalizationInference(this.phoneCanonicalizationInference_));this.delegatorId_&&c.setDelegation(Xrd(Wrd(),this.delegatorId_));return this.grpcClient_.lookup(c,a)};
Jsd.prototype.processResponse=function(a){var b=this.leanResponseProcessor_,c=this.provenance_,d=new Map;a=l(Sj(a,psd,1,Bj()));for(var e=a.next();!e.done;e=a.next()){var f=e.value;if(vm(f,F9,2,qsd))switch(e=Bsd(b,im(f,F9,2,qsd),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 h=d,k=h.set;f=f.getId();f=Zt(f,4,Tt);k.call(h,f,e);break;case 5:d.set(f.getId().getContactId(),
e)}}return{data:d,metadata:new du}};Jsd.prototype.close=function(){};var Ksd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Ksd,n);var Lsd=new Yu(342338249,pSc,Ksd);var Msd=function(){};Msd.prototype.write=function(a,b){var c=new Ksd;b=X(c,jsd,1,b);Ot(a,Lsd,b)};Msd.prototype.read=function(a){return(a=a.getExtension(Lsd))?W(a,jsd,1):null};var Nsd=function(a,b,c){this.grpcClient_=a;this.sourceInfo_=Gac("");this.trackers_=c;this.affinity_=Krd(b.getPeopleApi());var d;this.delegatorId_=(d=b.runtimeConfig_.getDelegatorId())!=null?d:""};Nsd.prototype.getMetric=function(){return Isd(this.trackers_,this.sourceInfo_)};
Nsd.prototype.send=function(a){var b=new I9;b.setAffinityType(this.affinity_).setClientInformation(hac());this.delegatorId_&&b.setDelegation(Xrd(Wrd(),this.delegatorId_));var c=this.grpcClient_;return t0(c.client_,c.hostname_+"/$rpc/peoplestack.PeopleStackAutocompleteService/Warmup",b,a||{},usd)};Nsd.prototype.processResponse=function(){return{data:[],metadata:new du}};Nsd.prototype.close=function(){};var Osd=new Gqc;var O9=function(a,b,c){this.delegate_=a;this.runtimeConfig_=b;this.offlineResponse_=c};O9.prototype.send=function(a){var b=this;return z(function(c){return b.runtimeConfig_.isOffline_()?c.return(Osd):c.return(b.delegate_.send(a))})};O9.prototype.getMetric=function(){return this.delegate_.getMetric()};O9.prototype.processResponse=function(a){return a===Osd?this.offlineResponse_:this.delegate_.processResponse(a)};O9.prototype.close=function(a){this.delegate_.close(a)};
var Psd={data:[],metadata:J9(new du).setCode(14)},Qsd={data:new Map,metadata:J9(new du).setCode(14)};J9(new du).setCode(14);J9(new du).setCode(14);J9(new du).setCode(14);J9(new du).setCode(14);J9(new du).setCode(14);J9(new du).setCode(14);var Rsd=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(Rsd,n);g=Rsd.prototype;g.getTimestamp=function(){return xk(this,1)};g.setTimestamp=function(a){return Ek(this,1,a)};g.hasTimestamp=function(){return wk(this,1)};g.getOwner=function(){return Rc(this,2)};g.setOwner=function(a){return Qk(this,2,a)};var Ssd=new Yu(342656659,pSc,Rsd);var P9=function(a,b,c,d,e){this.delegate_=a;this.offlineStorage_=b;this.offlineDataTransformer_=c;this.owner_=d;this.storageTaskDelayMillis_=e;this.offlineMetadata_=null};P9.prototype.store_=function(a,b){var c=new pSc;Ot(c,Ssd,(new Rsd).setTimestamp(b).setOwner(String(this.owner_)));this.offlineDataTransformer_.write(c,a);this.offlineStorage_.store(c)};
var Tsd=function(a){var b,c;return z(function(d){if(d.nextAddress==1)return Gf(d,2),B(d,a.offlineStorage_.fetch(),4);if(d.nextAddress!=2){b=d.yieldResult;if(!b)return d.return(null);a.offlineMetadata_=b.getExtension(Ssd);c=a.offlineMetadata_?xt(a.offlineMetadata_.getOwner()):Kt;return a.owner_.equals(c)?d.return(a.offlineDataTransformer_.read(b)):d.return(null)}Kf(d);return d.return(null)})};
P9.prototype.send=function(a){var b=this,c,d,e,f,h;return z(function(k){switch(k.nextAddress){case 1:return Gf(k,2),B(k,b.delegate_.send(a),4);case 4:c=k.yieldResult;d=Date.now();if(c!==Osd){k.jumpTo(5);break}return B(k,Tsd(b),6);case 6:return e=k.yieldResult,k.return(e||Osd);case 5:return setTimeout(function(){b.store_(c,d)},b.storageTaskDelayMillis_),k.return(c);case 2:return f=Kf(k),B(k,Tsd(b),7);case 7:return(h=k.yieldResult)?k.return(h):k.return(Promise.reject(f))}})};
P9.prototype.getMetric=function(){return this.delegate_.getMetric()};P9.prototype.processResponse=function(a){a=this.delegate_.processResponse(a);if(!a||!this.offlineMetadata_||!this.offlineMetadata_.hasTimestamp())return a;a.metadata.setTimestamp(Uc(this.offlineMetadata_.getTimestamp()));return a};P9.prototype.close=function(a){this.delegate_.close(a)};var Usd=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=Rc(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 znd(b);b=CLa("peoplestack-pa",a.runtimeConfig_.getPeopleApiEnv());this.grpcPeopleStackClient_=new vsd(b);this.offlineDataTransformer_=
new Msd;a=a.getClient();a=kk(a,22);this.leanResponseProcessor_=new xsd({allowEmptyTargets:a})};
Usd.prototype.loadRankedItems=function(){var a=new N9(this.leanResponseProcessor_,this.grpcPeopleStackClient_,this.config_,this.trackers_,"");a=new O9(a,this.config_.runtimeConfig_,Psd);var b=this.config_,c=this.offlineDataTransformer_,d=b.runtimeConfig_.offlineStorage_;if(d){var e=b.runtimeConfig_.getUserEmail();e&&(e=Gt(e),b=b.getPeopleApi(),b=Ej(b,14,5E3),a=new P9(a,d,c,e,b))}return Bnd(this.dispatcher_,a)};
Usd.prototype.warmUpServer=function(){var a=new Nsd(this.grpcPeopleStackClient_,this.config_,this.trackers_);a=new O9(a,this.config_.runtimeConfig_,Psd);return Bnd(this.dispatcher_,a)};Usd.prototype.loadAutocompleteItems=function(a){var b=this.leanResponseProcessor_;var c=this.grpcPeopleStackClient_,d=this.config_,e=this.trackers_;a=a.getPrefix();b=new N9(b,c,d,e,a);b=new O9(b,this.config_.runtimeConfig_,Psd);return Bnd(this.dispatcher_,b)};
Usd.prototype.loadLookupItems=function(a,b){a=new Jsd(this.leanResponseProcessor_,this.grpcPeopleStackClient_,this.config_,this.trackers_,a,b);a=new O9(a,this.config_.runtimeConfig_,Qsd);return Bnd(this.dispatcher_,a)};var Vsd=function(a,b){this.isOrgStateEnabled_=a.runtimeConfig_.isOrgStateEnabled_;this.delegate_=b};Vsd.prototype.processItem=function(a){this.delegate_.processItem(a);a=a.target;this.isOrgStateEnabled_||a.setOrgState(0)};var Qac=new Map([[1,1],[2,2]]);var Wsd=function(a,b,c){this.encryptionSupport_=a;this.certificateStatus_=b;this.certificateExpirySec_=c};Wsd.prototype.getEncryptionSupport=function(){return this.encryptionSupport_};Wsd.prototype.getCertificateStatus=function(){return this.certificateStatus_};Wsd.prototype.getCertificateExpirySec=function(){return this.certificateExpirySec_};var qcc=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 Wsd(a===4?c?4:3:c?2:1,a,b)};var rcc=function(a,b){this.reachabilityStatus=a;this.clientData=b};rcc.prototype.getReachabilityStatus=function(){return this.reachabilityStatus};rcc.prototype.getClientData=function(){return this.clientData};var mu=function(){this.iconUrl_=this.altText_=""};mu.prototype.getAltText=function(){return this.altText_};mu.prototype.setAltText=function(a){this.altText_=a||"";return this};mu.prototype.getIconUrl=function(){return this.iconUrl_};mu.prototype.setIconUrl=function(a){this.iconUrl_=a||"";return this};var Vac=new Map([[3,3],[1,2],[2,1]]),Xsd=new Map([[2,1],[4,2],[3,3],[1,4]]),Ysd=function(a){this.delegate_=a};
Ysd.prototype.processItem=function(a){if(a.person||a.contactMethod){switch(a.contactMethod.getValueCase()){case 2:var b=a.contactMethod.getEmail();var c=Vt(b.getValue()),d=a.id.normalizedValue_;c=Xt(a.id).setValue(c).setCanonicalValue(d);if(Sj(b,B9,2,Bj()).length||tk(b,bsd,3)){d=1;var e=0;if(Sj(b,B9,2,Bj()).length){var f=Sj(b,B9,2,Bj())[0],h=Pb(rk(f,1));e=(h==null?null:Uc(h))||e;d=Xsd.get(f.getStatus())||d}if(f=tk(b,bsd,3))f=W(b,bsd,3),f=!!Mt(f,1);d=qcc(d,e,f)}else d=null;d&&c.setEmailSecurityInfo(d);
tk(b,C9,4)&&(b=Rac(W(b,C9,4)),c.setOrgState(b));Mt(a.contactMethod,7)&&c.setResultType(2);b=c;break;case 3:c=a.contactMethod.getPhone();b=Vt(c.getCanonicalValue());c=Vt(c.getOriginalValue())||Vt(c.getDisplayValue())||b;b=Xt(a.id).setValue(c).setCanonicalValue(b);break;case 4:b=im(a.contactMethod,lac,4,Ht);b=Yac(a,b);break;default:b=Xt(a.id||Kt)}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=Ida(rk(e,1,void 0,Wt,sc)),d.call(c,Sac(e||"")));a.contactMethod.hasDisplayInfo()&&Wac(b,a.contactMethod.getDisplayInfo());mk(a.contactMethod,10)&&b.setTagList([(new mu).setAltText(a.contactMethod.getTypeLabel())]);if(tk(a.contactMethod,esd,13)){d=W(a.contactMethod,esd,13);switch(d.getStatus()){case 1:c=1;break;default:c=0}d=d.hasClientData()?d.getClientData():void 0;b.setReachabilityInfo(new rcc(c,d))}a.targetExtendedData&&b.setExtendedData(a.targetExtendedData);a.target=
b}else a.group?abc(a,a.group.getDisplayInfo()):a.contactLabel&&abc(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 Zsd=function(a,b){this.metrics_=a;this.state_=new SH(b);this.source=b;this.label_="total"};Zsd.prototype.call=function(){this.metrics_.count(this.state_);this.metrics_.start(this.state_,this.label_)};Zsd.prototype.result=function(a){this.metrics_.stop(this.state_,this.label_);this.metrics_.status(this.state_,a)};var $sd=function(a,b){this.metrics_=a;this.state_=new SH(b)};g=$sd.prototype;g.start=function(a){this.metrics_.start(this.state_,a)};g.stop=function(a){this.metrics_.stop(this.state_,a)};g.count=function(){this.metrics_.count(this.state_)};g.latency=function(){this.metrics_.latency(this.state_)};g.error=function(){this.metrics_.error(this.state_)};
g.status=function(a,b,c){b=b===void 0?0:b;c=c===void 0?0:c;if(b){var d=this.state_.source();Rk(d,13,b)}c&&(b=this.state_.source(),Ok(b,12,c));this.metrics_.status(this.state_,a)};g.logError=function(a,b){this.metrics_.logError(a,b)};var atd=function(a){this.getSessionState=a};atd.prototype.attach=function(a,b){var c,d;b=(new eu).setSessionState((d=b==null?void 0:(c=W(b,eu,18))==null?void 0:c.getSessionState())!=null?d:this.getSessionState().clone());X(a,eu,18,b);return a};var btd=function(){};btd.prototype.attach=function(a){return a};var ctd=new btd;var Q9=function(a,b){b=b===void 0?ctd:b;this.metrics_=a;this.sessioninfo_=b};Q9.prototype.error=function(a,b,c){var d=this.metrics_,e=this.sessioninfo_,f=e.attach,h=new Pt;a=h.setEventType(3).setErrorType(a);Rk(a,7,b);return new gpd(d,f.call(e,h,c))};Q9.prototype.latency=function(a,b){var c=this.metrics_,d=this.sessioninfo_,e=d.attach,f=new Pt,h=f.setEventType(2);Rk(h,5,a);return new G8(c,e.call(d,f,b))};
Q9.prototype.count=function(a){var b=this.metrics_,c=this.sessioninfo_,d=c.attach,e=new Pt,f=e.setEventType(1);Rk(f,4,a);return new fpd(b,d.call(c,e))};Q9.prototype.api=function(a){return new Zsd(this.metrics_,this.sessioninfo_.attach(a))};var Isd=function(a,b){return new $sd(a.metrics_,a.sessioninfo_.attach(b))},dtd=function(a,b){return new Q9(a.metrics_,b)};var etd=function(a,b){var c=a.getClient();this.ranker_=new Trd(c);this.loader_=new Usd(a,b);b=Srd;b=b===void 0?Srd:b;this.targetFactory_=new Vsd(a,new Ysd(b))};var ftd=function(){this.cacheConfigurators_=[];this.grpcClient_=null};var gtd=function(){this.bits_=[]};g=gtd.prototype;g.and=function(a){for(var b=new gtd,c=l(this),d=c.next();!d.done;d=c.next())d=d.value,a.bits_[d]&&(b.bits_[d]=!0);return b};g.or=function(a){for(var b=new gtd,c=l(this),d=c.next();!d.done;d=c.next())b.bits_[d.value]=!0;a=l(a);for(c=a.next();!c.done;c=a.next())b.bits_[c.value]=!0;return b};g.get=function(a){return!!this.bits_[a]};g.set=function(a){this.bits_[a]=!0};g.setAll=function(a){var b=a;for(a+=NaN;b<a;b++)this.bits_[b]=!0};
g.clear=function(a){this.bits_[a]=!1};gtd.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 htd=function(a,b){this.key=a;this.terms=b};var R9=function(a,b,c){b=b===void 0?"":b;c=c===void 0?new gtd:c;this.items_=a;this.prefix_=b;this.matchIndices_=c;this.childNodes_={};this.isExpanded_=b==="\u2026"},itd=function(a){return a.items_.map(function(b){return b.key})};R9.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 R9(b)};
R9.prototype.getMatches=function(a){for(var b=[],c=l(this.prefix_?this.matchIndices_:dbc(this.items_.length)),d=c.next();!d.done&&(d=a.loadOrSkip(this.items_[d.value].key),d==null||(b.push(d),!a.isDone()));d=c.next());return b};
R9.prototype.search=function(a){var b=this;return a.length?a.map(function(c){for(var d=b,e=0;e<c.length;e++){var f=c.charAt(e),h=d;if(!h.isExpanded_){for(var k=l(h.prefix_?h.matchIndices_:dbc(h.items_.length)),q=k.next();!q.done;q=k.next()){var v=h;q=q.value;for(var A=v.prefix_+"\ufdc7",E=l(v.items_[q].terms),H=E.next();!H.done;H=E.next())H=H.value,H.length<=v.prefix_.length||H<v.prefix_||H>A||(H=H.charAt(v.prefix_.length),v.childNodes_[H]||(v.childNodes_[H]=new R9(v.items_,v.prefix_+H)),v.childNodes_[H].matchIndices_.set(q))}h.isExpanded_=
!0}d=d.childNodes_[f]||S9;if(d===S9)break}return d}).reduce(function(c,d){return c.and(d)}):this};var jtd=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_&&jtd(c)};R9.prototype.and=function(a){a=this.matchIndices_.and(a.matchIndices_);return new R9(this.items_,"\u2026",a)};R9.prototype.or=function(a){a=this.matchIndices_.or(a.matchIndices_);return new R9(this.items_,"\u2026",a)};var S9=new R9([]);
S9.isExpanded_=!0;var ktd=function(a,b,c){this.expiry_=a;this.value_=b;this.stale_=c};ktd.prototype.getExpiry=function(){return this.expiry_};ktd.prototype.getValue=function(){return this.value_};ktd.prototype.isExpired=function(){return this.expiry_<Date.now()};ktd.prototype.isStale=function(){return this.stale_<Date.now()};var ltd=function(a){this.shouldEvictItem_=a;this.items_=new Map};g=ltd.prototype;g.size=function(){return this.items_.size};g.clear=function(){this.items_.clear()};g.has=function(a){return this.items_.has(a)};g.get=function(a){var b=this.items_.get(a);this.items_.has(a)&&(this.items_.delete(a),this.items_.set(a,b));return b};
g.set=function(a,b){this.items_.has(a)&&this.items_.delete(a);this.items_.set(a,b);b=l(this.items_.entries().next().value);a=b.next().value;b=b.next().value;this.shouldEvictItem_(a,b)&&this.items_.delete(a);return this};g.delete=function(a){return this.items_.delete(a)};g.compact=function(){for(var a=0,b=l(this.items_),c=b.next();!c.done;c=b.next()){var d=l(c.value);c=d.next().value;d=d.next().value;this.shouldEvictItem_(c,d)&&(this.items_.delete(c),a++)}return a};
var mtd=function(){var a=new ltd(function(){return a.size()>1E3});return a};var ntd=function(a,b){var c=this;this.capacity_=a;this.itemFactory_=b;this.delegate_=new ltd(function(d,e){return e.isExpired()||c.delegate_.size()>c.capacity_})};g=ntd.prototype;g.get=function(a){var b=this.delegate_.get(a);if(b)if(b.isExpired())this.delegate_.delete(a);else return b.getValue()};g.set=function(a,b){b=this.itemFactory_(b);this.delegate_.set(a,b);return this};g.has=function(a){return!!this.get(a)};g.size=function(){return this.delegate_.size()};g.clear=function(){this.delegate_.clear()};
g.delete=function(a){return this.delegate_.delete(a)};g.compact=function(){return this.delegate_.compact()};var T9=function(a,b){return new ntd(a,function(c){var d=Date.now()+b;return new ktd(d,c,d)})};var ebc=function(a){this.delegate_=a};Y(ebc,DO);ebc.prototype.getIsBoosted=function(){return!0};var otd=function(a){this.keys_=new Set(a)};otd.prototype.loadOrSkip=function(a){return this.keys_.delete(a)?a:null};otd.prototype.isDone=function(){return!this.keys_.size};var ptd=function(a){this.keys_=a;this.foundKeys_=new Set;this.delegate_=new otd(a)};ptd.prototype.loadOrSkip=function(a){return this.delegate_.loadOrSkip(a)?(this.foundKeys_.add(a),!0):!1};ptd.prototype.isDone=function(){return this.delegate_.isDone()};var qtd=function(a){return a.keys_.filter(function(b){return!a.foundKeys_.has(b)})};var rtd=new lu,std=function(a,b,c){this.itemResolver_=a;this.trieFactory_=b;this.indexes_=T9(Ej(c,31,5),hm(c,32,3600)*1E3)};g=std.prototype;g.getCacheType=function(){return 2};g.flush=function(){this.indexes_.clear()};
g.fetch=function(a){var b=this,c,d,e,f;return z(function(h){if(h.nextAddress==1){c=a.getBoostKey();if(!c.cacheKey||b.indexes_.get(c.cacheKey))return h.return(rtd);d=c.ids.map(function(k){var q=xt(k);return ZDc.includes(q.getType())?k:(q=U9(b.itemResolver_,k))?String(q.id):k});e=new ptd(d);return B(h,ttd(b.trieFactory_,e,a.getFormat(),c.primingTimeoutMillis),2)}f=h.yieldResult;b.indexes_.set(c.cacheKey,f);return h.return(rtd)})};
g.search=function(a){var b=a.getBoostKey();if(!b.cacheKey)return[];this.indexes_.has(b.cacheKey)||this.fetch(a);return(this.indexes_.get(b.cacheKey)||S9).search(a.getTerms()).getMatches(a.getCollector()).map(fbc)};g.index=function(){};g.getName=function(){};var V9=function(a,b,c){this.indexLatency_=a;this.searchLatency_=b;this.errorType_=c};V9.prototype.getErrorType=function(){return this.errorType_};var W9=function(a,b,c){this.delegate_=a;this.trackers_=b;this.indexingLabel_=c.indexLatency_;this.searchLabel_=c.searchLatency_;this.errorLabel_=c.getErrorType()};g=W9.prototype;g.getCacheType=function(){return this.delegate_.getCacheType()};g.flush=function(){try{this.delegate_.flush()}catch(a){throw this.trackers_.error(this.errorLabel_,15).report(),a;}};g.fetch=function(a){try{return this.delegate_.fetch(a)}catch(b){throw this.trackers_.error(this.errorLabel_,14).report(),b;}};
g.index=function(a,b,c){var d=this.trackers_.latency(this.indexingLabel_);d.start();try{this.delegate_.index(a,b,c)}catch(e){throw this.trackers_.error(this.errorLabel_,10).report(),e;}finally{d.stop()}};g.search=function(a){var b=this.trackers_.latency(this.searchLabel_);b.start();try{return this.delegate_.search(a)}catch(c){throw this.trackers_.error(this.errorLabel_,13).report(),c;}finally{b.stop()}};g.getName=function(){return this.delegate_.getName()};var utd=new V9(60,61,34);var vtd=function(){};vtd.prototype.configure=function(a){var b=a.storage,c=a.trackers,d=a.trieFactory,e=a.prefixCaches;a=a.clientConfig.getClient();kk(a,30)&&(b=new std(b,d,a),c=new W9(b,c,utd),e.unshift(c))};var wtd=function(){return Date.now()},xtd=function(a,b,c){this.staleMillis_=a*1E3;this.expiredMillis_=b*1E3;this.nowFn_=c;this.timestamp_=0};g=xtd.prototype;g.isStale=function(){return this.timestamp_+this.staleMillis_<=this.nowFn_()};g.isExpired=function(){return this.timestamp_+this.expiredMillis_<=this.nowFn_()};g.getStatus=function(){return this.isExpired()?1:this.isStale()?3:2};g.getTimestamp=function(){return this.timestamp_};g.setTimestamp=function(a){this.timestamp_=a};
g.markAsFresh=function(){this.timestamp_=this.nowFn_()};var hbc=new Map([[1,1],[2,2],[3,3],[8,6],[6,7],[7,5],[4,4],[9,9]]),gbc=new Map([[1,7],[2,5]]);var ytd=function(a,b){this.delegate_=a;this.extendedData_=b};Y(ytd,DO);ytd.prototype.getExtendedData=function(){return this.extendedData_};var ztd=function(a,b,c){this.group_=a;this.members_=b;this.totalMemberCount_=$Dc(this.group_.getId())?this.members_.length:c;this.resultType_=Xnd.get(this.group_.getTargetType())||0};g=ztd.prototype;g.getResultType=function(){return this.resultType_};g.getTargetList=function(){return[this.group_]};g.getMemberList=function(){return this.members_};g.getTotalMemberCount=function(){return this.totalMemberCount_};g.getPrimaryTarget=function(){throw Error("Lf");};g.getDisplayName=function(){return""};
g.getDisplayValue=function(){return""};g.getDescription=function(){return""};g.getPhotoUrl=function(){return""};g.getIsBoosted=function(){return!1};g.getMatchInfo=function(){return Wnd};g.getExtendedData=function(){return null};var jbc=function(a,b){this.delegate_=a;this.loggingToken_=b};Y(jbc,fSc);jbc.prototype.getLoggingToken=function(){return this.loggingToken_};var Atd=function(a){this.itemResolver_=a};Atd.prototype.create=function(a,b){var c=this,d=xt(a);a=U9(this.itemResolver_,a);if(!a)return null;if(Et(d))return d=(a.memberKeys||[]).map(function(h){return c.create(h,b)}).filter(Boolean),this.createGroup(a,d,b);var e,f=b===2&&((e=a.coalescedKeys)==null?void 0:e.length)>1?a.coalescedKeys.map(function(h){return U9(c.itemResolver_,h)}).filter(Boolean):[a];return Btd(f,d,b)};
var Btd=function(a,b,c){var d=[],e=0,f=null,h=null;a=l(a);for(var k=a.next();!k.done;k=a.next()){k=k.value;var q=k.target,v=q.getId().equals(b);if(!e||v)e=q.getResultType();q=kbc(q,k.provenance,c);v?(h=void 0,f=(h=k.totalMemberCount)!=null?h:null,d.unshift(q),h=k.resultExtendedData):d.push(q)}b=o8b(e,d,f);return h?new ytd(b,h):b};
Atd.prototype.createGroup=function(a,b,c){c=kbc(a.target,a.provenance,c);var d,e=(d=a.totalMemberCount)!=null?d:null;b=Nq(new ztd(c,b!=null?b:[],e!=null?e:null));return(a=a.resultExtendedData)?new ytd(b,a):b};var lbc=[1,2,3,4,5,6,9,7,8],Ctd=function(a,b){this.targetFactory_=a;this.resultFactory_=new Atd(this);a=b.getCacheStaleSec();var c=b.getCacheExpiredSec();var d=d===void 0?wtd:d;this.expiry_=new xtd(a,c,d);this.affinityVersion_=0;this.ttlStorage_=new Map;this.lruStorage_=T9(Ej(b,6,500),Ej(b,7,43200)*1E3);d=Set;b=Fk(b,25,Bj());this.idTypes_=new d(b)};Ctd.prototype.load=function(a,b){var c;return(c=this.resultFactory_.create(a,b))!=null?c:null};
var U9=function(a,b){return a.ttlStorage_.get(b)||a.lruStorage_.get(b)||null};g=Ctd.prototype;g.getExpiry=function(){return this.expiry_};g.getAffinityVersion=function(){return this.affinityVersion_};g.markAsFresh=function(a){this.affinityVersion_=a.getAffinityVersion();a.hasTimestamp()?this.expiry_.setTimestamp(Uc(a.getTimestamp())):this.expiry_.markAsFresh();this.lruStorage_.compact()};
g.flush=function(){this.ttlStorage_.clear();this.lruStorage_.clear();this.affinityVersion_=0;this.expiry_.timestamp_=0};g.storeItems=function(a,b,c,d){c=c===void 0?!1:c;if(d=d===void 0?"":d){var e=b.findIndex(function(h){return String(h.id)===d});if(e>0){var f=b[e];b.splice(e,1);b.unshift(f)}}c&&b.reverse();b=l(b);for(e=b.next();!e.done;e=b.next())this.store_(a,e.value,c,d)};
g.store_=function(a,b,c,d){if(!this.idTypes_.size||!ZDc.includes(b.id.getType())||this.idTypes_.has(b.id.getType())){var e=!1,f=String(b.id),h=(b.containerIds||[]).map(String),k=Dtd(this,a,f);Etd(this,a,f,b,c)&&(k(f,b),e=!0);h=l(h);for(var q=h.next();!q.done;q=h.next())q=q.value,Etd(this,a,q,b,c)&&(k(q,b),e=!0);b.isMe&&(h=String(cEc),Etd(this,a,h,b,c)&&(k(h,b),e=!0));d&&f!==d&&Etd(this,a,d,b,c)&&(k(d,b),e=!0);e&&!b.target&&this.targetFactory_.processItem(b)}};
var Etd=function(a,b,c,d,e){var f=U9(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)?nbc(d)&&!nbc(f)||Ftd(a,f)<Ftd(a,d)||mbc(d)<mbc(f)||d.id.getType()===18&&f.id.getType()===18||obc(d)>obc(f)?!0:!1:String(d.id)===c},Ftd=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},Dtd=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 Gtd=new lu,Htd=function(a){this.trieFactory=a;this.root=S9};g=Htd.prototype;g.getCacheType=function(){return 2};g.flush=function(){this.root=S9};g.fetch=function(){var a=this;return z(function(b){if(a.root!==S9)return b.return(Gtd);var c=a.trieFactory,d,e,f=(e=(d=c.trieRoots_.get(1))==null?void 0:itd(d))!=null?e:[];c=Itd(c,f,!0);a.root=new R9(c);return b.return(Gtd)})};g.index=function(){};g.search=function(a){if(a.isSuggestQuery())return[];this.root===S9&&this.fetch(a);return this.root.search(a.getTerms()).getMatches(a.getCollector()).map(fbc)};
g.getName=function(){};var Jtd=new V9(60,61,34);var Ktd=function(){};Ktd.prototype.configure=function(a){var b=a.trackers,c=a.trieFactory,d=a.prefixCaches;if(a=a.clientConfig.getClient().getEnablePersonalizedQueryMatching())hu?(a=hu.getExperimentFlags(),a=W(a,Vmd,104)||new Vmd):a=new Vmd,a=a.getEnablePersonalizedQueryMatching();a&&(b=new W9(new Htd(c),b,Jtd),d.unshift(b))};var pbc=function(a,b){this.delegate_=a;this.displayValue_=b};Y(pbc,fSc);pbc.prototype.getDisplayValue=function(){return this.displayValue_};var rbc=function(){};rbc.prototype.createFromLookupId=function(a){if(a.getType()!==1||!SDc(a.getOriginalValue()))return null;a=Xt(a).setValue(a.getOriginalValue()).setDataSource(3);return o8b(a.getResultType(),[a],null)};var Ltd=function(){};Ltd.prototype.createFromLookupId=function(){return null};var sbc=new Ltd;var Mtd=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=tbc(e.getClient())};g=Mtd.prototype;g.isCancelled=function(){return!1};g.getFormat=function(){return this.format};g.getOptions=function(){return this.options};g.queryScope=function(){return this.options.getQueryScope()};
g.getResultFilter=function(){return this.options.getFilter()};g.isDone=function(){return this.remainingIds.size===0};var Ntd=function(a){return Array.from(a.remainingIds.values())};Mtd.prototype.hasError=function(){return this.hasErrorCode};
Mtd.prototype.notify=function(a,b,c){if(a.size||b.length||this.isDone()||ubc(c.getCode())){var d=new Map,e=this.getResultFilter();a=l(a);for(var f=a.next();!f.done;f=a.next()){var h=l(f.value);f=h.next().value;h=h.next().value;this.notNotifiedIds.delete(String(f));(h=e?e.filterResult(h):h)&&h.getTargetList().length&&(d.set(f,h),this.remainingIds.delete(String(f)))}a=[];b=l(b);for(f=b.next();!f.done;f=b.next())f=f.value,this.notNotifiedIds.delete(String(f)),this.remainingIds.delete(String(f)),(h=this.placeholderFactory.createFromLookupId(f))&&
e&&(h=e.filterResult(h)),h&&h.getTargetList().length?d.set(f,h):a.push(f);d=qbc(d,this.options);ubc(c.getCode())&&(this.hasErrorCode=!0);e=(new Iqd).setCallbackNumber(this.callbackNumber).setIsFirstCallback(this.callbackNumber===0).setIsLastCallback(this.isDone()).setCode(c.getCode());e.notFoundIdList_=a;d=new Jqd(d,e);this.callbackNumber++;this.listener(d,c)}};var Otd=function(a,b,c){this.stages=a;this.indexer=b;this.clientConfig=c};Otd.prototype.flush=function(){this.indexer.flush()};
Otd.prototype.lookup=function(a,b,c,d){var e=this,f,h,k,q,v,A;return z(function(E){switch(E.nextAddress){case 1:(f=d.getFilter())==null||f.reset(""),h=new Mtd(a,b,c,d,e.clientConfig),k=new Set,h.queryScope()!==1&&h.queryScope()!==2||k.add(2),h.queryScope()===3&&k.add(1),q=l(e.stages),v=q.next();case 2:if(v.done){E.jumpTo(4);break}A=v.value;if(h.isDone()||h.isCancelled()){E.jumpTo(4);break}if(k.has(A.getStageType())){E.jumpTo(3);break}return B(E,A.lookup(h),3);case 3:v=q.next();E.jumpTo(2);break;case 4:if(!h.isDone()){if(h.queryScope()===
0&&!h.hasError()){var H=e.indexer,L=Array.from(h.notNotifiedIds.values());L=l(L);for(var O=L.next();!O.done;O=L.next())O=String(O.value),H.notFoundIds.set(O,O)}h.notify(new Map,Ntd(h),J8((new lu).setProvenance(10),!1).setCode(0))}e.indexer.compact();return E.return()}})};var Ptd=function(a,b){this.storage=a;a=b.getClient();this.notFoundIds=T9(Ej(a,10,500),hm(a,11,600)*1E3)};g=Ptd.prototype;g.compact=function(){this.notFoundIds.compact()};g.flush=function(){this.notFoundIds.clear()};g.store=function(a,b,c,d){if(!kk(c,5))for(J9(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(lcc(a,String(c)));this.storeItems(e,d,c)}};g.storeItems=function(a,b,c){this.storage.storeItems(2,a,b,c)};
g.load=function(a,b,c){b=this.storage.load(String(a),b);c&&b&&(b=jYa(a).filterResult(b));return b};var Qtd={ids:[],cacheKey:"",primingTimeoutMillis:0};var Rtd=function(){};Rtd.prototype.loadOrSkip=function(){return null};Rtd.prototype.resultCount=function(){return 0};Rtd.prototype.isDone=function(){return!0};var Std=new Rtd;var Ttd=function(){this.prefix_="";this.terms_=[];this.format_=0;this.collector_=Std;this.boostKey_=Qtd;this.listener_=function(){}};g=Ttd.prototype;g.getPrefix=function(){return this.prefix_};g.getTerms=function(){return this.terms_};g.getFormat=function(){return this.format_};g.getCollector=function(){return this.collector_};g.getBoostKey=function(){return this.boostKey_};g.getListener=function(){return this.listener_};g.isDone=function(){return!0};g.isCancelled=function(){return!0};
g.isSuggestQuery=function(){return!0};g.isEmailAddress=function(){return!1};g.queryScope=function(){return 0};g.getResultFilter=function(){return null};g.shouldSkipCache=function(){return!1};var Utd=new Ttd;var Vtd=function(){this.fetchDone_=Promise.resolve((new lu).setCode(0))};g=Vtd.prototype;g.getCacheType=function(){return 0};g.flush=function(){};g.fetch=function(){return this.fetchDone_};g.index=function(){};g.search=function(){return[]};g.getName=function(){};var Wtd=new Vtd;var Xtd=function(a){a=Array.from(new Set(a));this.primary_=a.find(function(b){return b.getCacheType()===1})||Wtd;this.prefetched_=a.filter(function(b){return b.getCacheType()===2||b.getCacheType()===1});this.lazyLoaded_=a.filter(function(b){return b.getCacheType()===3})};
Xtd.prototype.prefetch=function(a){var b=this,c,d,e,f,h;return z(function(k){if(k.nextAddress==1)return B(k,b.primary_.fetch(a),2);if(k.nextAddress!=3){c=k.yieldResult;if(c.getCode()!==0)return k.return(c);d=l(b.lazyLoaded_);for(e=d.next();!e.done;e=d.next())f=e.value,f.flush();h=b.prefetched_.filter(function(q){return q!==b.primary_}).map(function(q){q.flush();return q.fetch(a)});return h.length?B(k,Promise.all(h),3):k.jumpTo(3)}return k.return(c)})};
Xtd.prototype.warmUpSession=function(a){var b=this;if(a.queryScope()===1)return Promise.resolve([(new lu).setProvenance(2).setCode(1)]);var c=this.prefetched_.filter(function(d){return d!==b.primary_});a.queryScope()!==2&&c.push.apply(c,p(this.lazyLoaded_));return Promise.all(c.map(function(d){return d.fetch(a)}))};
var Ytd=function(a){var b=[a.primary_].concat(p(a.prefetched_.filter(function(d){return d!==a.primary_})),p(a.lazyLoaded_)).reverse();b=l(b);for(var c=b.next();!c.done;c=b.next())c.value.flush()},Ztd=function(a,b){var c=[];a=l(a.prefetched_);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(b.isDone()||b.isCancelled())break;b.shouldSkipCache(d.getName())||c.push.apply(c,p(d.search(b)))}return c},aud=function(a,b,c){var d,e,f,h,k;return z(function(q){if(q.nextAddress==1){if(b.queryScope()===2)return q.return();
d=a.lazyLoaded_.filter(function(v){return!b.shouldSkipCache(v.getName())});e=d[d.length-1];f=l(d);h=f.next()}if(q.nextAddress!=3){if(h.done)return q.jumpTo(0);k=h.value;return b.isDone()||b.isCancelled()?q.return():B(q,$td(k,b,c,e===k),3)}h=f.next();return q.jumpTo(2)})},$td=function(a,b,c,d){var e,f;return z(function(h){if(h.nextAddress==1)return b.queryScope()===1?(e=J8((new lu).setProvenance(6).setCode(0),!1),h.jumpTo(2)):B(h,a.fetch(b),3);h.nextAddress!=2&&(e=h.yieldResult);if(b.isCancelled())return h.return();
f=a.search(b);c(f,e,d);Lf(h)})};var bud=function(a,b,c,d,e){this.clientInfo_=a.getClient();this.trackers_=b;this.storage_=e;this.lookupCache_=d;this.prefixSearch_=c;this.sessionWarming_=this.cacheWarming_=null};g=bud.prototype;g.getLastUpdatedTimestamp=function(){return this.storage_.getExpiry().getTimestamp()};g.getAffinityVersion=function(){return this.storage_.getAffinityVersion()};
g.warmUpCache=function(a){cud(this,Utd);return this.cacheWarming_&&(a||this.storage_.getExpiry().isExpired())?this.cacheWarming_:Promise.resolve(M8(L8((new K8).setSource(J8(new lu,!1).setProvenance(1).setCode(0)),X9(this)),X9(this)))};
g.warmUpSession=function(a){var b=this,c,d,e,f,h;return z(function(k){switch(k.nextAddress){case 1:c=L8(new K8,X9(b));cud(b,a);if(!b.cacheWarming_){k.jumpTo(2);break}return B(k,b.cacheWarming_,2);case 2:return Gf(k,4,5),b.sessionWarming_||(b.sessionWarming_=b.prefixSearch_.warmUpSession(a)),B(k,b.sessionWarming_,7);case 7:return d=k.yieldResult,e=d.find(function(q){return q.getProvenance()===2})||(new lu).setProvenance(2).setCode(0),k.return(M8(c.setSource(e),X9(b)));case 5:Hf(k);b.sessionWarming_=
null;Jf(k,0);break;case 4:return f=Kf(k),h=f instanceof lu?f:(new lu).setProvenance(2).setCode(13),k.return(Promise.reject(M8(c.setSource(h),X9(b))))}})};
g.search=function(a){var b=this,c,d,e,f,h;return z(function(k){switch(k.nextAddress){case 1:dud(b);Gf(k,2);d=X9(b);cud(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 B(k,b.cacheWarming_,7);case 7:c=k.yieldResult;case 5:if(!b.sessionWarming_){k.jumpTo(4);break}return B(k,b.sessionWarming_,4);case 4:return c||(c=M8(L8((new K8).setSource(J8(new lu,!1).setProvenance(1).setCode(0)),d),X9(b)),cud(b,
a)),B(k,eud(b,a,c),10);case 10:uu(k,0);break;case 2:f=Kf(k);if(a.isCancelled())return k.return();f instanceof K8?c=f:(h=f instanceof lu?f:(new lu).setCode(13),M8(c.setSource(h),X9(b)));a.getListener()(new f9([],(new N8).setQuery(a.getPrefix()).setIsLastCallback(!0).setCacheState(c).setCode(c.getSource().getCode())));Lf(k)}})};
var eud=function(a,b,c){var d,e,f,h;return z(function(k){if(k.nextAddress==1){if(b.isCancelled())return k.return();d=Ztd(a.prefixSearch_,b);e=(new N8).setIsLastCallback(b.isSuggestQuery()).setQuery(b.getPrefix()).setCode(c.getSource().getCode()).setCacheState(c);b.getListener()(new f9(d,e));if(e.getIsLastCallback())return k.return();f=!1;return B(k,aud(a.prefixSearch_,b,function(q,v,A){v=(new N8).setIsLastCallback(A).setQuery(b.getPrefix()).setCode(v.getCode()).setCacheState(M8(L8((new K8).setSource(v),
Nm(c,2)),X9(a)));b.getListener()(new f9(q,v));v.getIsLastCallback()&&(f=!0)}),2)}f||b.isCancelled()||(h=(new N8).setIsLastCallback(!0).setQuery(b.getPrefix()).setCode(0).setCacheState(M8(L8((new K8).setSource((new lu).setProvenance(10).setCode(0)),Nm(c,2)),X9(a))),b.getListener()(new f9([],h)));Lf(k)})};
bud.prototype.lookup=function(a,b,c){var d=this;dud(this);cud(this,Utd);var e=L8(new K8,X9(this));this.lookupCache_.lookup(a,pk(this.clientInfo_,17,1),function(f,h){e.setSource(h);M8(e,X9(d));f.getMetadata().setCacheState(e);b(f)},c)};
var cud=function(a,b){if(a.storage_.getExpiry().isStale()&&(a.storage_.getExpiry().isExpired()&&a.storage_.getExpiry().getTimestamp()&&fud(a),!a.cacheWarming_)){var c=X9(a);a.cacheWarming_=new Promise(function(d,e){var f,h,k,q;return z(function(v){switch(v.nextAddress){case 1:return f=L8(new K8,c),Gf(v,2,3),B(v,a.prefixSearch_.prefetch(b),5);case 5:h=v.yieldResult,M8(f,X9(a)).setSource(h),d(f);case 3:Hf(v);a.cacheWarming_=null;Jf(v,0);break;case 2:k=Kf(v),q=k instanceof lu?k:(new lu).setCode(13),
M8(f,X9(a)).setSource(q),e(f),v.jumpTo(3)}})})}},X9=function(a){return a.storage_.getExpiry().getStatus()},fud=function(a){Ytd(a.prefixSearch_);a.lookupCache_.flush();a.storage_.flush()},dud=function(a){var b=X9(a)===1?1:2;a.trackers_.count(b).increment()};var Abc=RegExp("[\\s,;\u055d\u060c\u1363\u1802\u1808\u2e41\u3001\uff0c\u061b\u1364\uff1b\uff64\u104a]+","g"),zbc=/^[<"']|[>"']$/g,xbc=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"),gud=/[^a-z0-9]+/gi,ybc=String.prototype.normalize?function(a){return a.normalize("NFKC")}:function(a){return a};var hud=function(a){this.itemResolver_=a},jud=function(a,b){if(!b.preferredSearchTerms)return[];a=Bbc(iud(a,b));var c=Bbc(b.preferredSearchTerms);return a.filter(function(d){return c.some(function(e){return d.startsWith(e)})})},iud=function(a,b,c){c=c===void 0?[]:c;var d=b.target,e=d.getName();e&&(c.push(e.getDisplayName()),c.push(e.getGivenName()),c.push(e.getFamilyName()));if(e=d.getDisplayValue())switch(d.getTargetType()){case 2:case 7:var f=c.push,h=f.apply,k=e.split(gud).filter(Boolean),q=k.length-
1;if(q>0){var v=k.join(".");k.push(k.join("-"));for(k.push(v);q>0;q--)k[q-1]+=k[q]}k.push(e);k.push(e.replace(Abc,""));e[0]==="+"&&k.push("+"+k[0]);h.call(f,c,p(k));break;default:c.push(e)}b.preferredSearchTerms&&c.push.apply(c,p(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=U9(a.itemResolver_,d.value))&&iud(a,d,c);return c};var kud=new Z$b,lud=function(a,b,c){this.itemResolver_=a;this.lookupCache_=b;this.trackers_=c;this.indexer_=new hud(a);this.trieRoots_=new Map},ttd=function(a,b,c,d){var e=(a.trieRoots_.get(c)||S9).cloneNode(b);if(b.isDone())return a.trackers_.count(120).increment(),Promise.resolve(e);var f=a.trackers_.latency(95);f.start();var h=new Promise(function(k){var q=qtd(b).map(xt);a.lookupCache_.lookup(q,c,function(v){var A=Array.from(v.getResults().keys(),String);A=Itd(a,A,!1);Array.prototype.push.apply(e.items_,
A);jtd(e);v.getMetadata().getIsLastCallback()&&(f.stop(),k(e))},kud)});return R7b(h,e,d)},mud=function(a,b){a=Itd(a,b,!1);return new R9(a)},Itd=function(a,b,c){var d=[];b=l(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=U9(a.itemResolver_,e);if(f){if(c){if(f=jud(a.indexer_,f),f.length<1)continue}else f=Bbc(iud(a.indexer_,f));d.push(new htd(e,f))}}return d};var nud=function(a,b){this.target_=a;this.displayName_=b;this.similarTargets_=[]};nud.prototype.getSimilarIds=function(){return this.similarTargets_.map(function(a){return a.getId()})};
nud.prototype.getDisambiguationLabel=function(){var a="";if(this.similarTargets_.length){var b=Cbc(this.target_.getDisplayValue());a=this.similarTargets_.some(function(d){return Cbc(d.getDisplayValue())===b});var c=this.similarTargets_.some(function(d){return Cbc(d.getDisplayValue())!==b});a=a&&c?this.target_.getDisplayValue():c?b:Dbc(this.target_.getDisplayValue())}return a};
nud.prototype.filterResult=function(a){var b=this,c=cu(this.target_.getDisplayValue());this.similarTargets_.push.apply(this.similarTargets_,p(a.getTargetList().filter(function(d){return d.getTargetType()===1&&cu(d.getDisplayValue())!==c&&d.getName()&&cu(d.getName().getDisplayName())===b.displayName_})));return null};nud.prototype.reset=function(){this.similarTargets_=[]};var Ebc=/\S+@\S+\.\S+/,Fbc=/<|>|\(|\)/g;var oud=function(){this.queryId_=0};oud.prototype.getQueryId=function(){return this.queryId_};var pud=function(a,b){var c=new oud;this.cache_=a;this.queryFactory_=b;this.querySession_=c};
pud.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 Hqd("",(new Gqd).setCode(0).setCacheState((new K8).setSource(J8(new lu,!1).setProvenance(8).setCode(0))))):b.getTargetCount()>25||Gbc(e,a.getDisplayValue())?Promise.resolve(new Hqd(a.getDisplayValue(),(new Gqd).setCode(0).setCacheState((new K8).setSource(J8(new lu,
!1).setProvenance(8).setCode(0))))):new Promise(function(f){var h=new nud(a,cu(e)),k=qud(c.queryFactory_,e,c.querySession_,(new et).setFilter(h).setQueryScope(b.getQueryScope()),function(q){if(q.getMetadata().getIsLastCallback()){var v=h.getDisambiguationLabel(),A=new Gqd,E=h.getSimilarIds();A.similarIds_=E;f(new Hqd(v,A.setCode(q.getMetadata().getCode()).setCacheState(q.getMetadata().getCacheState()||new K8)))}});c.cache_.search(k)})};var rud=function(a){this.delegate=a};g=rud.prototype;g.getLastUpdatedTimestamp=function(){return this.delegate.getLastUpdatedTimestamp()};g.getAffinityVersion=function(){return this.delegate.getAffinityVersion()};g.warmUpCache=function(a){return this.delegate.warmUpCache(a)};g.warmUpSession=function(a){var b=this;return z(function(c){return c.return(b.delegate.warmUpSession(a))})};g.search=function(a){var b=this;return z(function(c){return c.return(b.delegate.search(a))})};
g.lookup=function(a,b,c){this.delegate.lookup(a,b,c)};var sud=function(){this.delegate=iSc};sud.prototype.filterResult=function(a){return this.delegate.filterResult(a)};sud.prototype.reset=function(a){this.delegate.reset(a)};var tud=function(a,b){a.delegate=b!=null?b:iSc};var uud=function(a){this.delegate=a};g=uud.prototype;g.getPrefix=function(){return this.delegate.getPrefix()};g.getTerms=function(){return this.delegate.getTerms()};g.getFormat=function(){return this.delegate.getFormat()};g.getCollector=function(){return this.delegate.getCollector()};g.getBoostKey=function(){return this.delegate.getBoostKey()};g.getListener=function(){return this.delegate.getListener()};g.isDone=function(){return this.delegate.isDone()};g.isCancelled=function(){return this.delegate.isCancelled()};
g.isSuggestQuery=function(){return this.delegate.isSuggestQuery()};g.isEmailAddress=function(){return this.delegate.isEmailAddress()};g.queryScope=function(){return this.delegate.queryScope()};g.getResultFilter=function(){return this.delegate.getResultFilter()};g.shouldSkipCache=function(a){return this.delegate.shouldSkipCache(a)};var vud=function(a,b){this.delegate_=a;this.limit_=b;this.count_=0};vud.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);if(!a)return null;this.count_++;return a};vud.prototype.resultCount=function(){return this.count_};vud.prototype.isDone=function(){return this.count_>=this.limit_||this.delegate_.isDone()};var wud=function(a,b,c,d){this.delegate=a;var e=this;this.isLastSlot=d;d=a.getCollector();c.limit>0&&(d=new vud(d,c.limit));this.collector=d;this.listener=function(h){var k=h.getMetadata();k.getIsLastCallback()&&k.setIsLastCallback(e.isLastSlot);e.delegate.getListener()(h)};d=[];c.filter&&(d.push(c.filter),c.filter.reset(a.getPrefix()));b&&d.push(b);this.resultFilter=d.length?lYa.apply(null,p(d)):null;var f;this.scope=(f=c.scope)!=null?f:a.queryScope()};Y(wud,uud);g=wud.prototype;g.getCollector=function(){return this.collector};
g.getListener=function(){return this.listener};g.isDone=function(){return this.collector.isDone()};g.getResultFilter=function(){return this.resultFilter};g.queryScope=function(){return this.scope};var xud=function(a,b,c,d){this.delegate=a;this.slots=b;this.filterInterceptor=c;this.originalFilter=d};Y(xud,rud);
xud.prototype.search=function(a){var b=this,c,d,e,f,h,k;return z(function(q){switch(q.nextAddress){case 1:c=new Set,a.isSuggestQuery()?c.add(2):c.add(1),a.isEmailAddress()||c.add(3),d=b.slots.filter(function(v){return!c.has(v.visibility)}),e=d.map(function(v,A){return new wud(a,b.originalFilter,v,A===d.length-1)}),f=l(e),h=f.next();case 2:if(h.done){q.jumpTo(4);break}k=h.value;if(a.isCancelled()||a.isDone()){q.jumpTo(4);break}tud(b.filterInterceptor,k.getResultFilter());return B(q,b.delegate.search(k),
3);case 3:h=f.next();q.jumpTo(2);break;case 4:return q.return()}})};var yud=function(a,b,c){this.delegate=a;var d=this;this.query_=b;this.terms_=Bbc([b]);this.id_=Gt(b);this.listener_=function(e){var f=e.getResults().map(function(h){if(d.id_.equals(h.getPrimaryTarget().getId())&&h.getDisplayName()!==c){var k=(new Tac).setDisplayName(c),q=h.getPrimaryTarget();h=fYa(h,new gSc(q,k))}return h});e=new f9(f,e.getMetadata());a.getListener()(e)}};Y(yud,uud);yud.prototype.getPrefix=function(){return this.query_};yud.prototype.getTerms=function(){return this.terms_};
yud.prototype.getListener=function(){return this.listener_};var zud=function(a,b,c){this.cache_=a;this.queryFactory_=b;this.querySession_=new oud;this.clientInfo_=c};g=zud.prototype;g.warmUpSession=function(a){a=qud(this.queryFactory_,"",this.querySession_,a,function(){});return this.cache_.warmUpSession(a)};g.suggest=function(a,b){a=qud(this.queryFactory_,"",this.querySession_,b,a);this.cache_.search(a)};
g.search=function(a,b,c){a=qud(this.queryFactory_,a,this.querySession_,c,b);kk(this.clientInfo_,28)&&(b=a.getPrefix(),b.includes("<")&&(c=mt(b),c.isValid()||(c=mt(b+">")),a=c.isValid()&&c.getName()?new yud(a,c.getAddress(),c.getName()):a));this.cache_.search(a)};g.cancel=function(){++this.querySession_.queryId_};g.getLastUpdatedTimestamp=function(){return this.cache_.getLastUpdatedTimestamp()};g.getAffinityVersion=function(){return this.cache_.getAffinityVersion()};
g.getReporter=function(){throw Error("rf");};g.getSessionState=function(){throw Error("rf");};var Aud=function(a,b,c){var d=this;this.cache_=a;this.queryFactory_=b;this.clientInfo_=c;this.getSessionCache_=kk(c,34)?function(e){var f=d.cache_,h=e.slots_;if(h.length){var k=e.getFilter(),q=new sud;e.setFilter(q);e=new xud(f,h,q,k)}else e=f;return e}:function(){return d.cache_}};Aud.prototype.warmUpCache=function(){return this.cache_.warmUpCache(!1)};Aud.prototype.lookup=function(a,b,c){this.cache_.lookup(a,b,c)};
Aud.prototype.disambiguate=function(a,b){return(new pud(this.cache_,this.queryFactory_)).disambiguate(a,b)};Aud.prototype.beginSession=function(a){a=this.getSessionCache_(a);return new zud(a,this.queryFactory_,this.clientInfo_)};var Bud=function(){};g=Bud.prototype;g.getCacheType=function(){return 3};g.flush=function(){};g.fetch=function(){return z(function(a){return a.return(J8(new lu,!1).setProvenance(12).setCode(0))})};g.index=function(){};g.search=function(a){return a.isEmailAddress()?(a=a.getCollector().loadOrSkip(String(Gt(a.getPrefix()))))?[a]:[]:[]};g.getName=function(){};var Cud=function(){};Cud.prototype.configure=function(a){var b=a.prefixCaches;a=a.clientConfig.getClient();kk(a,21)&&b.push(new Bud)};var Dud=function(a,b,c,d,e,f,h,k){this.delegate_=a;this.prefix_=b;this.terms_=c;this.collector_=d;this.boostKey_=e;this.filter_=h;this.listener_=Hbc(this,f);this.isEmailAddress_=null;this.selectedCustomProviderNames_=k?new Set(k):null};g=Dud.prototype;g.getPrefix=function(){return this.prefix_};g.getTerms=function(){return this.terms_};g.getFormat=function(){return this.delegate_.getFormat()};g.getCollector=function(){return this.collector_};g.getBoostKey=function(){return this.boostKey_};
g.getListener=function(){return this.listener_};g.isDone=function(){return this.collector_.isDone()};g.isCancelled=function(){return this.delegate_.isCancelled()};g.isSuggestQuery=function(){return!this.prefix_};g.isEmailAddress=function(){this.isEmailAddress_===null&&(this.isEmailAddress_=SDc(this.prefix_));return this.isEmailAddress_};g.queryScope=function(){return this.delegate_.queryScope()};g.getResultFilter=function(){return this.filter_};
g.shouldSkipCache=function(a){return!(!this.selectedCustomProviderNames_||!a||this.selectedCustomProviderNames_.has(a))};var Eud=function(a,b,c){this.format_=a;this.querySession_=b;this.queryScope_=c;this.id_=++this.querySession_.queryId_};Eud.prototype.getFormat=function(){return this.format_};Eud.prototype.isCancelled=function(){return this.querySession_.getQueryId()!==this.id_};Eud.prototype.queryScope=function(){return this.queryScope_};var Y9=function(){this.foundKeys_=new Set};Y(Y9,EO);Y9.prototype.shouldRemove=function(a){return this.foundKeys_.has(String(a.getId()))};Y9.prototype.has=function(a){return this.foundKeys_.has(a)};Y9.prototype.add=function(a){this.foundKeys_.add(a)};Y9.prototype.reset=function(){this.foundKeys_.clear()};var Fud=function(a){this.delegate_=a;this.filter_=new Y9};Fud.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};Fud.prototype.resultCount=function(){return this.delegate_.resultCount()};Fud.prototype.isDone=function(){return this.delegate_.isDone()};var Gud=function(a,b,c){this.delegate_=a;this.filter_=b;this.filter_.reset(c)};Gud.prototype.loadOrSkip=function(a){a=this.delegate_.loadOrSkip(a);return a?(a=this.filter_.filterResult(a))&&a.getTargetList().length?a:null:null};Gud.prototype.resultCount=function(){return this.delegate_.resultCount()};Gud.prototype.isDone=function(){return this.delegate_.isDone()};var Hud=function(a,b){this.storage_=a;this.format_=b};Hud.prototype.loadOrSkip=function(a){return this.storage_.load(a,this.format_)||null};Hud.prototype.resultCount=function(){return 0};Hud.prototype.isDone=function(){return!1};var Iud=[198,230,306,307,338,339],Jud=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)"+sq(b),"g")})},Ibc=function(a,b){var c=[];if(!b||!a.matchers_.length)return c;var d=cu(b),e=d.indexOf("@"),f=e<0?-1:d.indexOf(".",e);a=l(a.matchers_);for(var h=a.next();!h.done;h=a.next()){h=h.value;h.lastIndex=0;for(var k=h.exec(d);k;k=
h.exec(d)){k=k.index;if((e>0||e===0&&f>e)&&k>e)break;c.push([k,h.lastIndex])}}c.sort(function(q,v){return q[0]-v[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++):Iud.includes(a)&&e.push(f);b=l(c);for(f=b.next();!f.done;f=b.next()){f=f.value;a=l(d);for(h=a.next();!h.done;h=a.next())h=h.value,h<f[0]&&f[0]++,h<f[1]&&f[1]++;a=l(e);for(h=a.next();!h.done;h=
a.next())h=h.value,h<f[0]&&f[0]--,h<f[1]&&f[1]--}}return c};var Jbc=function(a,b){this.start_=a;this.end_=b};Jbc.prototype.getStart=function(){return this.start_};Jbc.prototype.getEnd=function(){return this.end_};var Kbc=function(a,b,c){this.displayNameMatches_=a;this.displayValueMatches_=b;this.givenNameMatches_=c};Kbc.prototype.getDisplayNameMatches=function(){return this.displayNameMatches_};Kbc.prototype.getDisplayValueMatches=function(){return this.displayValueMatches_};Kbc.prototype.getGivenNameMatches=function(){return this.givenNameMatches_};var Kud=function(a,b){this.delegate_=a;this.matcher_=b;this.memberList_=a.getMemberList().map(function(c){return new Kud(c,b)});this.matchInfo_=null};Y(Kud,DO);Kud.prototype.getMemberList=function(){return this.memberList_};Kud.prototype.getMatchInfo=function(){if(!this.matchInfo_){var a,b=((a=this.getDelegate().getPrimaryTarget().getName())==null?void 0:a.getGivenName())||"";this.matchInfo_=Lbc(this.matcher_,this.getDelegate().getDisplayName(),this.getDelegate().getDisplayValue(),b)}return this.matchInfo_};var Lud=function(a,b){this.delegate_=a;this.matcher_=new Jud(b)};Lud.prototype.loadOrSkip=function(a){return(a=this.delegate_.loadOrSkip(a))?new Kud(a,this.matcher_):null};Lud.prototype.resultCount=function(){return this.delegate_.resultCount()};Lud.prototype.isDone=function(){return this.delegate_.isDone()};var Mud=function(a){var b=new rbc;this.delegate=a;this.placeholderFactory=b};Mud.prototype.loadOrSkip=function(a){var b;return(b=this.delegate.loadOrSkip(a))!=null?b:this.placeholderFactory.createFromLookupId(xt(a))};Mud.prototype.resultCount=function(){return this.delegate.resultCount()};Mud.prototype.isDone=function(){return this.delegate.isDone()};var Nud=/\s+/g,Oud=function(a,b){this.clientInfo_=a;this.storage_=b},qud=function(a,b,c,d,e){var f=Bbc([b]);b=(b||"").replace(Nud," ").trim();var h=!f.length;var k=a.clientInfo_;k=h?d.getSuggestFormat()||k.getSuggestFormat():d.getSearchFormat()||k.getSearchFormat();var q=a.clientInfo_;h=h?d.getSuggestMaxResults()||q.getSuggestMaxResults():d.getSearchMaxResults()||q.getSearchMaxResults();var v=d.boostIds_;q=d.primingTimeoutMillis_;if(v.length){v=v.map(String);var A=wac(v)+":"+v.length;q={ids:v,cacheKey:A,
primingTimeoutMillis:q}}else q=Qtd;v=d.getFilter();A=b;var E=new Hud(a.storage_,k);kk(a.clientInfo_,21)&&SDc(A)&&(E=new Mud(E));v&&(E=new Gud(E,v,A));E=new Fud(E);E=new vud(E,h);a=f.length?new Lud(E,f):E;h=d.getQueryScope();c=new Eud(k,c,h);return new Dud(c,b,f,a,q,e,v,d.selectedCustomProviderNames_)};var Pud=function(a){this.fetcher=a};Pud.prototype.getStageType=function(){return 2};Pud.prototype.lookup=function(a){var b=this,c,d,e,f,h,k,q,v,A;return z(function(E){switch(E.nextAddress){case 1:c=Nbc(Ntd(a)),d=l(c),e=d.next();case 2:if(e.done){E.jumpTo(4);break}f=e.value;h=l(f);k=h.next().value;q=h.next().value;v=k;A=q;if(!v){E.jumpTo(3);break}return B(E,b.fetcher.fetch(A,v,a.getFormat(),function(H,L){a.notify(H,[],L)},a.getOptions()),3);case 3:e=d.next();E.jumpTo(2);break;case 4:return E.return()}})};var Qud=function(a,b){this.delegate=a;this.maxLookupChunkSize=Prd(b)};Qud.prototype.fetch=function(a,b,c,d,e){var f=this,h,k,q;return z(function(v){switch(v.nextAddress){case 1:var A=f.maxLookupChunkSize;if(a.length)if(a.length<=A)A=[a];else{for(var E=[],H=0;H<a.length;H+=A){var L=a.slice(H,H+A);L.length&&E.push(L)}A=E}else A=[];h=l(A);k=h.next();case 2:if(k.done){v.jumpTo(4);break}q=k.value;return B(v,f.delegate.fetch(q,b,c,d,e),3);case 3:k=h.next();v.jumpTo(2);break;case 4:return v.return()}})};var Rud=function(a){this.qos=a};Rud.prototype.getIndex=function(){return String(this.qos)};var Sud=new Rud(1),Tud=new Rud(2);var Uud=function(a,b,c){this.trackers=a;this.loader=b;this.indexer=c};
Uud.prototype.fetch=function(a,b,c,d,e){var f=this,h,k,q,v,A,E,H,L,O,S,aa;return z(function(ka){switch(ka.nextAddress){case 1:return h=b===3?4:3,k=J8((new lu).setProvenance(h),!0).setCode(0),Gf(ka,2),B(ka,f.loader.loadLookupItems(b,a.map(function(na){return na.getOriginalValue()}),Tud),4);case 4:q=ka.yieldResult;q.metadata.getCode()&&k.setCode(q.metadata.getCode());v=e.getQueryScope()===3;try{f.indexer.store(b,q.data,q.metadata,v)}catch(na){f.trackers.error(21,10).report(),k.setCode(13)}uu(ka,3);
break;case 2:A=Kf(ka),E=Number(A),k.setCode(isFinite(E)&&E?E:13);case 3:H=new Map;L=l(a);for(O=L.next();!O.done;O=L.next())S=O.value,(aa=f.indexer.load(S,c,e.getUseOriginalDisplayValue()))&&H.set(S,aa);d(H,k);return ka.return()}})};var Vud=function(a){this.indexer=a};Vud.prototype.getStageType=function(){return 1};Vud.prototype.lookup=function(a){var b=this,c,d,e,f,h,k;return z(function(q){c=new Map;d=[];e=l(Ntd(a));for(f=e.next();!f.done;f=e.next())if(h=f.value,k=b.indexer.load(h,a.getFormat(),a.getOptions().getUseOriginalDisplayValue()))c.set(h,k);else{var v=b.indexer;(dEc(h)?v.notFoundIds.get(String(h)):1)&&d.push(h)}a.notify(c,d,J8((new lu).setProvenance(6),!1).setCode(0));return q.return()})};var Wud=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"),Xud=function(a,b,c,d,e){this.loader_=a;this.ranker_=b;this.trieFactory_=c;this.storage_=d;this.indexes_=T9(Ej(e,8,250),hm(e,9,3600)*1E3);this.notFound_=T9(Ej(e,10,500),hm(e,11,600)*1E3)};g=Xud.prototype;g.getCacheType=function(){return 3};g.flush=function(){this.indexes_.clear();this.notFound_.clear()};
g.fetch=function(a){var b=this,c,d,e;return z(function(f){switch(f.nextAddress){case 1:c=J8(new lu,!0).setProvenance(2).setCode(0);if(a.isSuggestQuery())return b.loader_.warmUpServer(Sud).catch(function(){}),f.return(c);if(b.canSkipFetch_(a))return f.return(J8(c,!1));Gf(f,2);return B(f,b.loader_.loadAutocompleteItems(a,Tud),4);case 4:d=f.yieldResult;uu(f,3);break;case 2:return e=Kf(f),f.return(c.setCode(isFinite(e)?e:13));case 3:try{b.index(a,d.data,d.metadata)}catch(h){return f.return(c.setCode(13))}return f.return(c)}})};
g.search=function(a){if(a.isSuggestQuery())return[];var b=a.getPrefix(),c=this.indexes_.get(b);if(c)return c.search([]).getMatches(a.getCollector());if(this.notFound_.has(b)||a.queryScope()===3)return[];for(var d=b.length-1;!c&&d>0;d--){c=b.substr(0,d);if(this.notFound_.has(c))return[];c=this.indexes_.get(c)}return c?c.search(a.getTerms()).getMatches(a.getCollector()):[]};
g.index=function(a,b,c){if(!kk(c,5))if(J9(c),b.length){c=Urd(this.ranker_,b,1);var d=a.queryScope()===3;this.storage_.storeItems(1,b,d);b=mud(this.trieFactory_,c);this.indexes_.set(a.getPrefix(),b)}else this.notFound_.set(a.getPrefix(),a.getPrefix())};g.canSkipFetch_=function(a){if(a.queryScope()===3)return!1;var b=a.getPrefix();if(this.indexes_.has(b)||this.notFound_.has(b))return!0;if(a.isEmailAddress())return!1;for(a=b.length-1;a>0;a--){var c=b.substr(0,a);if(c.match(Wud))break;if(this.notFound_.has(c))return!0}return!1};
g.getName=function(){};var Yud=function(a,b,c,d,e){this.loader_=a;this.ranker_=b;this.trieFactory_=c;this.storage_=d;this.coalescedSortOrder_=e;this.indexes_=new Map;this.trieFactory_.trieRoots_=this.indexes_};g=Yud.prototype;g.getCacheType=function(){return 1};g.flush=function(){this.indexes_.clear()};
g.fetch=function(a){var b=this,c,d,e,f;return z(function(h){switch(h.nextAddress){case 1:return c=J8(new lu,!0).setProvenance(1).setCode(0),d=b.storage_.getExpiry().isExpired()?Tud:Sud,Gf(h,2),B(h,b.loader_.loadRankedItems(d),4);case 4:e=h.yieldResult;uu(h,3);break;case 2:return f=Kf(h),h.return(c.setCode(isFinite(f)?f:13));case 3:try{b.index(a,e.data,e.metadata)}catch(k){c.setCode(13)}return h.return(c)}})};
g.search=function(a){return a.isSuggestQuery()||a.getTerms().length?(this.indexes_.get(a.getFormat())||S9).search(a.getTerms()).getMatches(a.getCollector()):[]};g.index=function(a,b,c){if(!kk(c,5)){J9(c);a=this.coalescedSortOrder_!==1?Urd(this.ranker_,b,this.coalescedSortOrder_):null;var d=Urd(this.ranker_,b,1);this.storage_.flush();this.storage_.storeItems(1,b);this.storage_.markAsFresh(c);b=mud(this.trieFactory_,d);c=a?mud(this.trieFactory_,a):b;this.indexes_.set(1,b);this.indexes_.set(2,c)}};
g.getName=function(){};var Zud=new V9(27,32,33),$ud=new V9(24,23,20);var avd=function(){};avd.prototype.configure=function(a){var b=a.trackers,c=a.storage,d=a.indexer,e=a.loader,f=a.trieFactory,h=a.prefixCaches,k=a.lookupStages,q=a.loaderFactory.ranker_,v=a.clientConfig.getClient();if(v.getCacheSize()>0){var A=pk(v,19,1);A=new Yud(e,q,f,c,A);A=new W9(A,b,$ud);h.push(A)}k.push(new Vud(d));v.getSearchMaxResults()>0&&(c=new Xud(e,q,f,c,v),b=new W9(c,b,Zud),h.push(b));h=new Uud(a.trackers,a.loader,a.indexer);h=new Qud(h,a.clientConfig);k.push(new Pud(h))};var bvd=function(a){this.delegate=a};g=bvd.prototype;g.warmUpSession=function(a){return this.delegate.warmUpSession(a)};g.suggest=function(a,b){this.delegate.suggest(a,b)};g.search=function(a,b,c){this.delegate.search(a,b,c)};g.cancel=function(){this.delegate.cancel()};g.getLastUpdatedTimestamp=function(){return this.delegate.getLastUpdatedTimestamp()};g.getAffinityVersion=function(){return this.delegate.getAffinityVersion()};g.getReporter=function(a){return this.delegate.getReporter(a)};
g.getSessionState=function(){return this.delegate.getSessionState()};var Z9=function(a){this.delegate=a};Z9.prototype.warmUpCache=function(){return this.delegate.warmUpCache()};Z9.prototype.disambiguate=function(a,b){return this.delegate.disambiguate(a,b)};Z9.prototype.lookup=function(a,b,c){this.delegate.lookup(a,b,c)};Z9.prototype.beginSession=function(a){return this.delegate.beginSession(a)};var cvd=function(a,b,c){this.idType_=a;this.id_=b;this.options_=c};cvd.prototype.getId=function(){return this.id_};cvd.prototype.getIndex=function(){return this.getId()+":"+this.idType_+":"+this.options_.getIndex()};var dvd=function(a,b,c){this.idType_=a;this.ids_=b;this.options_=c};g=dvd.prototype;g.getIds=function(){return this.ids_};g.getIdType=function(){return this.idType_};g.getOptions=function(){return this.options_};
g.getKeys=function(){var a=this;return this.getIds().map(function(b){return new cvd(a.getIdType(),b,a.getOptions())})};g.setIds=function(a){this.ids_=a;return this};g.setIdType=function(a){this.idType_=a};g.setOptions=function(a){this.options_=a};g.clone=function(){var a=this.getIdType(),b=this.getIds(),c=this.getOptions();return new dvd(a,b,c)};var evd=function(a,b){this.ids_=new Set(b.getIds());this.parameters_=b.clone();this.loader_=a;this.resolver_=new und;this.isSent_=!1};evd.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)}};evd.prototype.promise=function(){return this.resolver_.promise};
evd.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 fvd=function(a,b,c){this.delegate_=a;this.batchedRequest_=null;this.tracker_=b;this.maxRequestSize_=Prd(c);this.lastRequestCreationTime_=0};
fvd.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 evd(this.delegate_,a);a=Date.now();var d=a-this.lastRequestCreationTime_;this.lastRequestCreationTime_=a;Vq(function(){c===b.batchedRequest_&&(c.send(),b.batchedRequest_=null)},d>30?0:30)}return this.batchedRequest_.promise()};var gvd=function(a,b){this.delegate_=a;this.inflightRequests_=mtd();this.tracker_=b};
gvd.prototype.load=function(a){for(var b=this,c=new Set,d=[],e=l(a.getKeys()),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.getIndex();this.inflightRequests_.has(h)?c.add(this.inflightRequests_.get(h)):d.push(f.getId())}d.length===a.getKeys().length?this.tracker_.count(93).increment():d.length?this.tracker_.count(92).increment():this.tracker_.count(91).increment();if(d.length){var k=a.clone().setIds(d);var q=new evd(this.delegate_,k);q.send();c.add(q);a=l(k.getKeys());for(d=a.next();!d.done;d=
a.next())this.inflightRequests_.set(d.value.getIndex(),q);q.promise().catch(function(){}).finally(function(){for(var v=l(k.getKeys()),A=v.next();!A.done;A=v.next())b.inflightRequests_.delete(A.value.getIndex())})}c=Array.from(c);return Promise.all(c.map(function(v){return v.promise()})).then(function(v){return q?q.promise().then(function(A){return Obc(v,A.metadata)}):Obc(v)})};var hvd=function(a){this.peopleLoader_=a};hvd.prototype.load=function(a){return this.peopleLoader_.loadLookupItems(a.getIdType(),a.getIds(),a.getOptions())};var ivd=function(a,b,c){this.peopleLoader_=a;this.gatedLoaders_=new Map;this.tracker_=b;this.clientConfig_=c};ivd.prototype.load=function(a){if(!this.gatedLoaders_.has(a.getIdType())){var b=new hvd(this.peopleLoader_);b=new fvd(b,this.tracker_,this.clientConfig_);b=new gvd(b,this.tracker_);this.gatedLoaders_.set(a.getIdType(),b)}return this.gatedLoaders_.get(a.getIdType()).load(a)};var jvd=function(a,b,c){this.delegate_=a;this.trackers_=b;this.searchRequests_=new Map;this.lookupLoader_=new ivd(this.delegate_,this.trackers_,c)},kvd=function(a,b,c,d){var e,f;return z(function(h){if(h.nextAddress==1){e=b+":"+c;if(a.searchRequests_.has(e))return a.trackers_.count(b).increment(),h.return(a.searchRequests_.get(e));f=d();a.searchRequests_.set(e,f);If(h,2);return B(h,f,4)}if(h.nextAddress!=2)return h.return(h.yieldResult);Hf(h);a.searchRequests_.delete(e);return Jf(h,0)})};
jvd.prototype.loadRankedItems=function(a){var b=this;return kvd(this,81,"",function(){return b.delegate_.loadRankedItems(a)})};jvd.prototype.warmUpServer=function(a){var b=this;return kvd(this,82,"",function(){return b.delegate_.warmUpServer(a)})};jvd.prototype.loadAutocompleteItems=function(a,b){var c=this;return kvd(this,82,a.getPrefix(),function(){return c.delegate_.loadAutocompleteItems(a,b)})};jvd.prototype.loadLookupItems=function(a,b,c){return this.lookupLoader_.load(new dvd(a,b,c))};var lvd=function(){return Date.now()},mvd=function(a,b,c){this.delegate_=a;this.nowFn_=c;a=b.getClient();this.cacheFlushRateMillis_=hm(a,14,300)*1E3;b=b.getClient();this.serverWarmupRateMillis_=hm(b,13,60)*1E3;this.lastServerWarmup_=this.lastCacheFlush_=0};mvd.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)};
mvd.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)};mvd.prototype.loadAutocompleteItems=function(a,b){return this.delegate_.loadAutocompleteItems(a,b)};mvd.prototype.loadLookupItems=function(a,b,c){return this.delegate_.loadLookupItems(a,b,c)};var nvd=function(a,b,c){this.delegate_=a;this.listener_=b;this.options_=c;this.delegate_.warmUpSession(c)};nvd.prototype.suggest=function(a){a=a===void 0?this.listener_:a;this.delegate_.suggest(a,this.options_);return this};nvd.prototype.search=function(a,b){b=b===void 0?this.listener_:b;this.delegate_.search(a,b,this.options_);return this};nvd.prototype.cancel=function(){this.delegate_.cancel();return this};nvd.prototype.getReporter=function(a){a=a===void 0?Qod:a;return this.delegate_.getReporter(a)};var ovd=function(a,b){this.delegate_=a;this.members_=b;this.totalMemberCount_=$Dc(a.getPrimaryTarget().getId())?b.length:a.getTotalMemberCount()};Y(ovd,DO);ovd.prototype.getMemberList=function(){return this.members_};ovd.prototype.getTotalMemberCount=function(){return this.totalMemberCount_};var pvd=function(a,b){this.filter_=a;this.filterEmptyExplodingGroups_=b};pvd.prototype.filterResult=function(a){var b=this;if(!$Dc(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:Nq(new ovd(a,c))};pvd.prototype.reset=function(a){this.filter_.reset(a)};
var Pbc=function(a,b){this.filter_=lYa(a,new pvd(a,b))};Pbc.prototype.filterResult=function(a){return this.filter_.filterResult(a)};Pbc.prototype.reset=function(a){this.filter_.reset(a)};var qvd=function(a){this.delegate_=a};qvd.prototype.warmUpCache=function(){return this.delegate_.warmUpCache().then(function(){return Promise.resolve()},function(a){var b=2;a instanceof K8&&(a=a.getSource())&&(b=a.getCode());return Promise.reject(b)})};qvd.prototype.disambiguate=function(a,b){b=b===void 0?new e9:b;return this.delegate_.disambiguate(a,b)};qvd.prototype.lookup=function(a,b,c){c=c===void 0?new Z$b:c;c.setFilter(Qbc(c.getFilter(),!0));this.delegate_.lookup(a,b,c);return this};
qvd.prototype.beginSession=function(a,b){b=b===void 0?new et:b;b=b.clone();b.setFilter(Qbc(b.getFilter(),b.filterEmptyExplodingGroups_));var c=this.delegate_.beginSession(b);return new nvd(c,a,b)};var rvd=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]]),svd=new Map([[2,13],[3,6]]),tvd=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 Vbc=new Map([[1,1],[2,3],[3,5]]),uvd=new Map([[1,2],[2,4],[3,5],[4,8],[6,15],[7,19],[12,21],[10,20]]),vvd=new Map([[1,2],[2,9],[3,6],[4,6],[6,15],[7,19],[12,21],[10,20]]),wvd=function(a,b){this.logContext_=Ybc(a,b)};g=wvd.prototype;g.getLogContext=function(){return this.logContext_};
g.createCountMetric=function(a,b,c){var d=b.source();xvd(d,a);var e=Ubc(d);switch(d.getEventType()){case 1:d=e.setCount;b=b.source();b=pk(b,4);var f=new K9;f.setType(b);f.setValue(c);d.call(e,f);e.setEventType(1);break;case 4:case 5:c=e.setRpcRequest;b=b.source();b=pk(b,3);d=new M9;d.setLabel(b);c.call(e,d);e.setEventType(4);break;case 6:case 7:c=e.setApiCall;b=b.source();d=pk(b,2);f=new Dsd;b.hasItemCount()&&f.setItemCount(b.getItemCount());b.hasQueryLength()&&f.setQueryLength(b.getQueryLength());
b.hasLookupInfo()&&f.setLookupInfo(b.getLookupInfo());b.hasQueryScope()&&f.setQueryScope(b.getQueryScope());f.setLabel(d);c.call(e,f);e.setEventType(6);break;default:return null}e.setClientInterface(a);return e};
g.createStatusMetric=function(a,b,c){var d=b.source();xvd(d,a);var e=Ubc(d);switch(d.getEventType()){case 4:case 5:d=e.setRpcResponse;var f=b.source(),h=pk(f,3);var k=pk(f,13)||0;k=svd.get(k)||rvd.get(c)||0;var q=TH(b,"blocked"),v=TH(b,"network"),A=TH(b,"processed");b=new Hsd;b.setLabel(h);b.setStatus(k);b.setBlockedUsec(q);b.setLatencyUsec(v);Ek(b,9,A);b.setStatusCode(c);Ej(f,12)&&(c=Ej(f,12),Ek(b,6,c));d.call(e,b);e.setEventType(5);break;case 6:case 7:d=e.setApiResult;h=b.source();k=pk(h,2);f=new Esd;
f.setLabel(k);f.setStatusCode(c);h.hasItemCount()&&f.setItemCount(h.getItemCount());h.hasQueryLength()&&f.setQueryLength(h.getQueryLength());h.hasLookupInfo()&&f.setLookupInfo(h.getLookupInfo());h.hasQueryScope()&&f.setQueryScope(h.getQueryScope());c===0&&(b=TH(b,"total"),f.setLatencyUsec(b));c=tvd.get(c)||0;f.setStatus(c);c=h.getResultIndex();f.setResultIndex(c);if(b=h.getCacheState())c=Wbc(Ut(b,2)),Rk(f,5,c),c=Wbc(Ut(b,3)),Rk(f,6,c),c=f.setDataSource,h=b.getSource(),b=!kk(h,1),h=h.getProvenance(),
b=(b?vvd.get(h):uvd.get(h))||0,c.call(f,b);d.call(e,f);e.setEventType(7);break;default:return null}e.setClientInterface(a);return e};g.createLatencyMetric=function(a,b){var c=b.source();xvd(c,a);if(c.getEventType()!==2)return null;var d=Ubc(c);d.setClientInterface(a);a=d.setLatency;var e=b.source();e=pk(e,5);b=TH(b,"total");var f=new Gsd;f.setType(e);f.setLatencyUsec(b);a.call(d,f);d.setEventType(c.getEventType());return d};
g.createErrorMetric=function(a,b){var c=b.source();xvd(c,a);if(c.getEventType()!==3)return null;var d=Ubc(c);d.setClientInterface(a);a=d.setError;var e=b.source();b=e.getErrorType();e=pk(e,7);var f=new L9;f.setType(b);Rk(f,4,e);a.call(d,f);d.setEventType(c.getEventType());return d};var xvd=function(a,b){var c,d,e;a=(c=W(a,eu,18))==null?void 0:(d=c.getSessionState())==null?void 0:(e=d.getSources())==null?void 0:Nm(e,4);a!=null&&(b.setEventSource(a),b.setEventSourceId(a))};var yvd=function(a,b){this.delegate_=a;this.trackers_=b};g=yvd.prototype;g.reportDisplay=function(a){this.delegate_.reportDisplay(a)};g.reportSelect=function(a,b){b=b===void 0?new Rod:b;this.delegate_.reportSelect(a,b)};g.reportExternalSelect=function(a){this.delegate_.reportExternalSelect(a)};g.reportDeselect=function(a){this.delegate_.reportDeselect(a)};g.reportProceed=function(a){this.delegate_.reportProceed(a)};g.reportDismiss=function(){this.delegate_.reportDismiss();zvd(this)};
g.reportSave=function(a){this.delegate_.reportSave(a);zvd(this)};g.reportSecondaryAction=function(a){this.delegate_.reportSecondaryAction(a);zvd(this)};g.reportSend=function(a){this.delegate_.reportSend(a);zvd(this)};var zvd=function(a){a=a.trackers_;var b=a.api,c=new Pt;Rt(c.setEventType(6),3);b.call(a,c).call()};var Zbc=function(a,b){this.delegate_=this.delegate=a;this.trackers_=b};Y(Zbc,bvd);
Zbc.prototype.suggest=function(a,b){var c=this;try{var d=!1,e=!1,f=this.trackers_.api(Nac(b.getQueryScope()));f.call();this.delegate_.suggest(function(h){var k=h.getMetadata(),q=k.getCacheState();f.source.setCacheState(q);f.source.setItemCount(h.getResults().length);f.result(q.getSource().getCode());k.getIsFirstCallback()&&(d&&k.getCode()===0&&c.trackers_.error(22,19,f.source).report(),d=!0);k.getIsLastCallback()&&(e&&k.getCode()===0&&c.trackers_.error(22,20,f.source).report(),e=!0);k=c.trackers_.latency(90,
f.source);k.start();try{a(h)}catch(v){throw c.trackers_.error(22,11,f.source).report(),v;}finally{k.stop()}},b)}catch(h){throw this.trackers_.error(22,1).report(),h;}};
Zbc.prototype.search=function(a,b,c){var d=this;try{var e=!1,f=!1,h=this.trackers_.api(Mac(a,c.getQueryScope()));h.call();this.delegate_.search(a,function(k){var q=k.getMetadata(),v=q.getCacheState();h.source.setCacheState(v);h.source.setItemCount(k.getResults().length);h.result(v.getSource().getCode());q.getIsFirstCallback()&&(e&&q.getCode()===0&&d.trackers_.error(23,19,h.source).report(),e=!0);q.getIsLastCallback()&&(f&&q.getCode()===0&&d.trackers_.error(23,20,h.source).report(),f=!0);q=d.trackers_.latency(91,
h.source);q.start();try{b(k)}catch(A){throw d.trackers_.error(23,11,h.source).report(),A;}finally{q.stop()}},c)}catch(k){throw this.trackers_.error(23,1).report(),k;}};Zbc.prototype.getReporter=function(a){a=this.delegate_.getReporter(a);return new yvd(a,this.trackers_)};var $9=function(a,b){this.delegate_=this.delegate=a;a=this.trackers_=b;b=a.api;var c=new Pt;Rt(c.setEventType(6),1);b.call(a,c).call()};Y($9,Z9);
$9.prototype.warmUpCache=function(){var a=this,b=this.trackers_.api(Jac());b.call();return this.delegate_.warmUpCache().then(function(c){b.source.setCacheState(c);b.result(c.getSource().getCode());return c},function(c){c instanceof K8?(b.source.setCacheState(c),b.result(c.getSource().getCode())):(a.trackers_.error(17,1).report(),c=(new K8).setSource((new lu).setCode(2)));return Promise.reject(c)})};
$9.prototype.lookup=function(a,b,c){var d=this;try{var e=!1,f=!1,h=this.trackers_.api(Iac(a,c.getQueryScope()));h.call();this.delegate_.lookup(a,function(k){var q=k.getMetadata(),v=q.getCacheState();h.source.setCacheState(v);h.source.setItemCount(k.getResults().size);for(var A=0,E=0,H=0,L=0,O=l(k.getResults().keys()),S=O.next();!S.done;S=O.next()){S=S.value;aEc(S)?A++:XDc.includes(S.getType())?E++:YDc.includes(S.getType())&&H++;var aa=void 0;((aa=k.getResults().get(S))==null?0:aa.getDisplayName())&&
L++}O=S=aa=0;for(var ka=l(q.notFoundIdList_),na=ka.next();!na.done;na=ka.next())na=na.value,aEc(na)?aa++:XDc.includes(na.getType())?S++:YDc.includes(na.getType())&&O++;ka=h.source.getMutableLookupInfo();A=Ok(ka,2,A);E=Ok(A,1,E);H=Ok(E,3,H);H=Ok(H,5,aa);H=Ok(H,4,S);H=Ok(H,6,O);Ok(H,14,L);h.result(v.getSource().getCode());q.getIsFirstCallback()&&(e&&q.getCode()===0&&d.trackers_.error(8,19).report(),e=!0);q.getIsLastCallback()&&(f&&q.getCode()===0&&d.trackers_.error(8,20).report(),f=!0);q=d.trackers_.latency(89);
q.start();try{b(k)}catch(za){throw d.trackers_.error(8,11).report(),za;}finally{q.stop()}},c)}catch(k){throw this.trackers_.error(8,1).report(),k;}};$9.prototype.disambiguate=function(a,b){var c=this.trackers_.api(Lac());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})};
$9.prototype.beginSession=function(a){this.trackers_.api(Kac()).call();var b=this.delegate_.beginSession(a);return $bc(b,dtd(this.trackers_,new atd(function(){return b.getSessionState()})))};var Avd=function(a,b){this.clearcut_=a;this.logEventFactory_=b};Avd.prototype.report=function(a){var b=lEc(this.clearcut_);a=this.logEventFactory_.eventsFactory_.create(b,a);a=l(a);for(b=a.next();!b.done;b=a.next())mEc(this.clearcut_,b.value)};var Bvd=function(a){this.clearcut_=a};Bvd.prototype.report=function(a){this.clearcut_.report(a);return this};var Cvd=function(a){this.writer_=a};var Dvd=function(){};Dvd.prototype.create=function(a,b,c){var d=Sbc(b),e=new BDc;X(e,Rbc,3,d);c!==7&&b.hasQuery()&&(d=b.getQuery(),c===2&&e.setQuery(d),e.setQueryLength(d.length));var f=new CDc;d=HLa(hm(b,9)-hm(b,8));Ok(f,2,d);d=new ZH;X(d,BDc,1,e);X(d,CDc,6,f);e=new ADc;if(f=Uc(xk(b,6))){Ek(e,3,f*1E3);var h=(Date.now()-f)*1E3;Ek(e,2,h)}Nk(e,1,!!f);X(d,ADc,3,e);d.setAffinityVersion(b.getAffinityVersionOrUndefined());b=new EDc;b.setEventType(c);b.setMetadata(d);b.setClientInterface(a.clone());return b};var Evd=function(){};Evd.prototype.extractPersonEventSource=function(a){a=acc(a);return Ut(a,4)};Evd.prototype.extractFieldEventSource=function(a){a=acc(a);return Ut(a,3)};var Fvd=function(){};Fvd.prototype.extractPersonEventSource=function(a){var b=a.getSources()||new iu;return(a.getQuery()||"").length?Ut(b,2):Ut(b,4)};Fvd.prototype.extractFieldEventSource=function(a){var b=a.getSources()||new iu;return(a.getQuery()||"").length?Ut(b,1):Ut(b,3)};var Gvd=function(){};Gvd.prototype.extractPersonEventSource=function(a){a=bcc(a);return Ut(a,4)};Gvd.prototype.extractFieldEventSource=function(a){a=bcc(a);return Ut(a,3)};var dcc=new Set([8]);var Hvd=function(a,b,c){this.defaultTokenGroups_=a;this.additionTokenGroups_=b;this.replacementTokenGroups_=c};var Ivd=new Map([[1,11],[2,12],[0,0]]),Jvd=function(){};Jvd.prototype.write=function(a,b,c){var d=new UH;Ok(d,1,c);c=new VH;c.setPosition(d);c.setExistingSelectionsCount(b.getExistingSelectionsCount());X(a,VH,8,c);b=Ivd.get(b.getContext());dp(a,3,[b])};var Kvd=new Map([[1,5],[2,4],[3,6],[7,13]]),Lvd=function(){};Lvd.prototype.write=function(a,b,c,d){var e=new UH;Ok(e,1,c);a.setPosition(e);c=Kvd.get(b.getProvenance())||0;pk(b,4)===1?c=14:d?c=3:pk(b,4)===2?c=10:pk(b,4)===3&&(c=15);dp(a,3,[c])};var Mvd=new Set([9,1,2]),Nvd=function(){};Nvd.prototype.write=function(a,b,c,d,e){var f=a.getMutableMetadata();if(e===3||c===8||c===10||c===9||c===2&&Mvd.has(d))c=new WH,Ut(b,7)!==1&&Ut(b,7)!==7||c.setEmail(Hu(b,3)),Ut(b,7)!==2&&Ut(b,7)!==5||c.setPhone(Hu(b,3)),b.hasProfileId()&&c.setObfuscatedGaiaId(b.getProfileId()),b.hasGroupId()&&c.setGroupId(b.getGroupId()),X(a,WH,4,c),a=new XH,a.setName(b.getNameOrUndefined()),X(f,XH,2,a);f.setIsBoosted(b.getIsBoosted())};var Ovd=function(a){var b=new Nvd;this.metadataStateWriter_=a;this.contactInfoWriter_=b},Pvd=function(a){var b;return((b=W(a,bu,1))==null?0:b.getIsPlaceholder())?!0:!1};var jcc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=m(a)};Y(jcc,n);g=jcc.prototype;g.getEventType=function(){return pk(this,1)};g.getEventType_legacyNullable=function(){return Ut(this,1)};g.setEventType=function(a){return Rk(this,1,a)};g.getSessionState=function(){return W(this,CO,2)};g.setSessionState=function(a){return X(this,CO,2,a)};g.hasSessionState=function(){return tk(this,CO,2)};g.setEventSources=function(a){X(this,iu,4,a)};var Qvd=function(){this.defaultEntityFactory_=new Cvd(new Ovd(new Lvd));this.contextualEntityFactory_=new Cvd(new Ovd(new Jvd));this.extensionFactory_=new Dvd;this.defaultEventSourceExtractor_=new Fvd;this.additionEventSourceExtractor_=new Evd;this.replacementEventSourceExtractor_=new Gvd};
Qvd.prototype.create=function(a,b){var c=b.getSessionState()||new CO,d=b.getEventType_legacyNullable();b=Sj(b,$t,3,Bj(Cj));var e=fcc(b,hcc);var f=e.get(0);b=e.get(1);e=e.get(2);f=f?[].concat(p(fcc(f,gcc).values())):[];b=b?[].concat(p(fcc(b,gcc).values())):[];e=e?[].concat(p(fcc(e,gcc).values())):[];e=new Hvd(f,b,e);b=[];f=l(e.defaultTokenGroups_);for(var h=f.next();!h.done;h=f.next())b.push.apply(b,p(Rvd(this,a,d,h.value,c,this.defaultEventSourceExtractor_,this.defaultEntityFactory_)));f=l(e.additionTokenGroups_);
for(h=f.next();!h.done;h=f.next())b.push.apply(b,p(Rvd(this,a,d,h.value,c,this.additionEventSourceExtractor_,this.contextualEntityFactory_)));e=l(e.replacementTokenGroups_);for(f=e.next();!f.done;f=e.next())b.push.apply(b,p(Rvd(this,a,d,f.value,c,this.replacementEventSourceExtractor_,this.contextualEntityFactory_)));return b};
var Rvd=function(a,b,c,d,e,f,h){var k=[];e=d[0].getSessionState()||e;var q=ccc(d).map(function(v){var A=new DDc,E=h.writer_,H=A.getMetadata()||new YH;A.setMetadata(H);var L=Xs(v)||new au,O=W(v,bu,1)||new bu;E.metadataStateWriter_.write(H,L,Ej(L,2)||0,Pvd(v));E.contactInfoWriter_.write(A,O,c,L.getProvenance()||0,pk(L,4)||0);A.setLoggingId(Hu(O,1));v=W(A,WH,4)||new WH;X(A,WH,4,v);v.setType(Nm(O,8));return A});q.length&&k.push(Svd(a,b,c,f.extractPersonEventSource(e),q,e));d=ecc(d).map(function(v){var A=
new DDc,E=h.writer_,H=A.getMetadata()||new YH;A.setMetadata(H);var L=Xs(v)||new au,O=W(v,bu,1)||new bu;E.metadataStateWriter_.write(H,L,(kk(O,9,!0)?Ej(L,2):Ej(L,1))||0,Pvd(v));E.contactInfoWriter_.write(A,O,c,L.getProvenance()||0,pk(L,4)||0);v=W(A,WH,4)||new WH;X(A,WH,4,v);W(A,WH,4).setType(Nm(O,7));A.setLoggingId(Hu(O,2));return A});d.length&&k.push(Svd(a,b,c,f.extractFieldEventSource(e),d,e));return k},Svd=function(a,b,c,d,e,f){a=a.extensionFactory_.create(b,f,c);a.getClientInterface().setEventSource(d);
a.getClientInterface().setEventSourceId(d);Bm(a,2,e);return a};var Tvd=function(a,b){var c=fu(new gu,"PeopleStore.BigBug"),d=c.setLogSource;var e=a.getClearcut();e=pk(e,3,41);this.logContext_=Xbc(d.call(c,e).setApplication(a.getClearcut().getSocialApplication()).setEnvironment(a.runtimeConfig_.getPeopleApiEnv()).setVersion("1004").setBaselineCl(794327108).setEnableClearcut(a.getClearcut().getEnableClearcut()),[].concat(p(a.runtimeConfig_.getExperiments().getExperimentIdsList()),p(hu?hu.getExperimentIds():[]))).setPeoplekitEntryPoint(b.getPeoplekitEntryPoint()).setClientAgent(2);
this.eventsFactory_=new Qvd};Tvd.prototype.getLogContext=function(){return this.logContext_};var Uvd=function(a){this.clientConfig_=a;this.reportingCache_=new Map};Uvd.prototype.create=function(a){var b=a.serialize();this.reportingCache_.has(a.serialize())||(a=new Tvd(this.clientConfig_,a),a=new Bvd(new Avd(kEc(a),a)),this.reportingCache_.set(b,a));return this.reportingCache_.get(b)};var Vvd=function(a,b,c){this.reporting_=a;this.sharedSessionState_=b;this.peopleStore_=c};g=Vvd.prototype;g.reportDisplay=function(a){a$(this,ku(a,1))};g.reportSelect=function(a,b){b=b===void 0?new Rod:b;if(b.getOriginator()!==0)for(var c=l(a),d=c.next();!d.done;d=c.next()){d=d.value;if(!tk(d,au,2)){var e=d,f=new au;X(e,au,2,f)}d=Xs(d);Rk(d,4,b.getOriginator())}b=this.sharedSessionState_;c=Uc(xk(this.sharedSessionState_,4))+1;Ek(b,4,c);a$(this,ku(a,2,this.sharedSessionState_))};
g.reportExternalSelect=function(a){for(var b=l(a),c=b.next();!c.done;c=b.next()){c=c.value;if(!tk(c,au,2)){var d=c,e=new au;X(d,au,2,e)}c=Xs(c);Rk(c,4,2)}b=this.sharedSessionState_;c=Uc(xk(this.sharedSessionState_,4))+1;Ek(b,4,c);a$(this,ku(a,15,this.sharedSessionState_))};g.reportDeselect=function(a){a$(this,ku(a,17,this.sharedSessionState_))};g.reportProceed=function(a){a$(this,ku(a,10,this.sharedSessionState_))};
g.reportDismiss=function(){var a=this.sharedSessionState_,b=new jcc;a=a.clone();b.setSessionState(a);b.setEventType(7);b.setEventSources(a.getSources());a$(this,[b])};g.reportSave=function(a){a$(this,ku(a,9,this.sharedSessionState_))};g.reportSecondaryAction=function(a){a$(this,ku(a,19,this.sharedSessionState_))};g.reportSend=function(a){a$(this,ku(a,8,this.sharedSessionState_,!0))};var a$=function(a,b){b=l(b);for(var c=b.next();!c.done;c=b.next())a.reporting_.report(c.value)};var b$=function(a,b,c,d){this.delegate_=this.delegate=a;this.sharedSessionState_=c;Ek(this.sharedSessionState_,5,Math.floor(Math.random()*9007199254740991));Ek(this.sharedSessionState_,4,0);dSc(this.sharedSessionState_,0);this.reportingFactory_=b;this.peopleStore_=d};Y(b$,bvd);
b$.prototype.suggest=function(a,b){var c=this,d=this.sharedSessionState_.clone();dSc(this.sharedSessionState_,Uc(xk(this.sharedSessionState_,3))+1);d.setQuery("");eSc(d);var e=0;this.delegate_.suggest(function(f){e=Wvd(c,f.getResults(),kcc(f),d,e);a(f)},b)};
b$.prototype.search=function(a,b,c){var d=this,e=this.sharedSessionState_.clone();dSc(this.sharedSessionState_,Uc(xk(this.sharedSessionState_,3))+1);e.setQuery(a);eSc(e);var f=0;this.delegate_.search(a,function(h){f=Wvd(d,h.getResults(),kcc(h),e,f);b(h)},c)};b$.prototype.getReporter=function(a){return new Vvd(this.reportingFactory_.create(a),this.sharedSessionState_,this.peopleStore_)};b$.prototype.getSessionState=function(){return this.sharedSessionState_};
var Wvd=function(a,b,c,d,e){d=d.clone();var f=xDc();Pu(d,9,f);f=a.delegate_.getLastUpdatedTimestamp();Ek(d,6,f);d.setAffinityVersion(a.delegate_.getAffinityVersion());a=l(b);for(b=a.next();!b.done;b=a.next()){var h=b.value;b=h.getIsBoosted();f=0;h=l(h.getTargetList());for(var k=h.next();!k.done;k=h.next()){k=k.value.getLoggingToken();Cu(k,bu,1).setIsBoosted(b);var q=Xs(k)||new au;q.getProvenance()!==7&&q.setProvenance(c.getProvenance());Ok(q,2,e);Ok(q,1,f);X(k,au,2,q);k.setSessionState(d);f++}e++}return e};var Xvd=function(a,b,c){this.delegate_=this.delegate=a;this.reportingFactory_=b;this.instanceId_=G7b();this.clearcutConfig_=c};Y(Xvd,Z9);
Xvd.prototype.lookup=function(a,b,c){this.delegate_.lookup(a,function(d){var e=Array.from(d.getResults().values()),f,h=d.getMetadata();h.getCacheState()&&(h=h.getCacheState(),h.hasSource()&&(f=h.getSource()));f=f||new lu;h=c.getOriginator();e=l(e);for(var k=e.next();!k.done;k=e.next()){k=l(k.value.getTargetList());for(var q=k.next();!q.done;q=k.next()){q=q.value.getLoggingToken();var v=Xs(q)||new au;v.getProvenance()!==7&&v.setProvenance(f.getProvenance());Rk(v,4,h);X(q,au,2,v)}}b(d)},c)};
Xvd.prototype.beginSession=function(a){var b=new CO,c=Yvd(this,a);X(b,iu,10,c);c=Zvd(this,a);X(b,ju,12,c);b.setInstanceId(this.instanceId_);a=this.delegate_.beginSession(a);return new b$(a,this.reportingFactory_,b,this)};
var Yvd=function(a,b){a=Sj(a.clearcutConfig_,iu,5,Bj());return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return c.getEntryPoint()===0})||new iu},Zvd=function(a,b){a=Sj(a.clearcutConfig_,ju,6,Bj());return a.find(function(c){return c.getEntryPoint()===b.getEntryPoint()})||a.find(function(c){return c.getEntryPoint()===0})||new ju};var $vd=function(a,b,c,d,e){this.adapter_=a;this.targetFactory_=b;this.trieFactory_=c;this.storage_=d;this.ranker_=new Trd(e);this.indexes_=T9(Ej(e,8,250),hm(e,9,3600)*1E3);this.maxResults_=e.getSearchMaxResults()};g=$vd.prototype;g.getCacheType=function(){return 3};g.flush=function(){this.indexes_.clear()};
g.fetch=function(a){var b=this,c,d;return z(function(e){switch(e.nextAddress){case 1:c=J8(new lu,!0).setProvenance(7).setCode(0);if(b.canSkipFetch_(a))return e.return(J8(c,!1));Gf(e,2);return B(e,b.adapter_.search(a.getPrefix(),b.maxResults_),4);case 4:d=e.yieldResult;uu(e,3);break;case 2:return Kf(e),e.return(c.setCode(13));case 3:try{return b.index(a,d,new du),e.return(c)}catch(f){return e.return(c.setCode(13))}}})};
g.canSkipFetch_=function(a){return a.isSuggestQuery()?!0:a.queryScope()===3?!1:this.indexes_.has(a.getPrefix())?!0:!1};g.index=function(a,b){for(var c=Urd(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=mud(this.trieFactory_,c);this.indexes_.set(a.getPrefix(),b)};g.search=function(a){return a.isSuggestQuery()||!this.indexes_.has(a.getPrefix())?[]:this.indexes_.get(a.getPrefix()).search([]).getMatches(a.getCollector())};
g.getName=function(){return this.adapter_.getName()};var awd=function(a,b,c){this.adapter_=a;this.targetFactory_=b;this.indexer_=c};awd.prototype.getStageType=function(){return 2};awd.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)};
awd.prototype.lookup=function(a){var b=this,c,d,e,f,h,k,q,v,A;return z(function(E){switch(E.nextAddress){case 1:return c=new Map,d=J8(new lu,!0).setProvenance(7).setCode(0),e=a.queryScope()===3,f=Ntd(a),Gf(E,2),B(E,b.adapter_.lookup(f),4);case 4:h=E.yieldResult;uu(E,3);break;case 2:return Kf(E),d.setCode(13),a.notify(c,[],d),E.return();case 3:b.index_(h,e);k=l(f);for(q=k.next();!q.done;q=k.next())v=q.value,(A=b.indexer_.load(v,a.getFormat(),a.getOptions().getUseOriginalDisplayValue()))&&c.set(v,A);
a.notify(c,[],d);Lf(E)}})};var bwd=function(a,b){this.delegate_=a;this.trackers_=b;this.name=a.name};bwd.prototype.search=function(a){var b=this,c,d;return z(function(e){switch(e.nextAddress){case 1:return c=b.trackers_.latency(66),c.start(),Gf(e,2,3),B(e,b.delegate_.search(a),5);case 5:return e.return(e.yieldResult);case 3:Hf(e);c.stop();Jf(e,0);break;case 2:throw d=Kf(e),b.trackers_.error(36,11).report(),d;}})};
bwd.prototype.lookup=function(a){var b=this,c,d;return z(function(e){switch(e.nextAddress){case 1:return c=b.trackers_.latency(67),c.start(),Gf(e,2,3),B(e,b.delegate_.lookup(a),5);case 5:return e.return(e.yieldResult);case 3:Hf(e);c.stop();Jf(e,0);break;case 2:throw d=Kf(e),b.trackers_.error(37,11).report(),d;}})};var cwd=function(a,b){this.delegate_=a;this.trackers_=b;this.name=a.name};cwd.prototype.getPosition=function(){try{return this.delegate_.getPosition()}catch(a){throw this.trackers_.error(38,11).report(),a;}};
cwd.prototype.warmUpCache=function(){var a=this,b,c;return z(function(d){switch(d.nextAddress){case 1:return b=a.trackers_.latency(65),b.start(),Gf(d,2,3),B(d,a.delegate_.warmUpCache(),5);case 5:return d.return(d.yieldResult);case 3:Hf(d);b.stop();Jf(d,0);break;case 2:throw c=Kf(d),a.trackers_.error(35,11).report(),c;}})};cwd.prototype.needsWarmUp=function(){try{return this.delegate_.needsWarmUp()}catch(a){throw this.trackers_.error(38,11).report(),a;}};var dwd=function(a,b,c,d,e){this.adapter_=a;this.targetFactory_=b;this.trieFactory_=c;this.storage_=d;this.ranker_=new Trd(e);this.index_=S9};g=dwd.prototype;g.getCacheType=function(){switch(this.adapter_.getPosition()){case 1:return 2;case 2:return 3;default:return 0}};g.flush=function(){this.index_=S9};
g.fetch=function(a){var b=this,c,d;return z(function(e){switch(e.nextAddress){case 1:c=J8(new lu,!0).setProvenance(7).setCode(0);if(b.index_!=S9&&!b.adapter_.needsWarmUp())return e.return(J8(c,!1));Gf(e,2);return B(e,b.adapter_.warmUpCache(),4);case 4:d=e.yieldResult;uu(e,3);break;case 2:return Kf(e),e.return(c.setCode(13));case 3:try{return b.index(a,d,new du),e.return(c)}catch(f){return e.return(c.setCode(13))}}})};
g.index=function(a,b){a=Urd(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_=mud(this.trieFactory_,a)};g.search=function(a){var b=this;this.adapter_.needsWarmUp()&&Promise.resolve().then(function(){return b.fetch(a)});return this.index_.search(a.getTerms()).getMatches(a.getCollector())};g.getName=function(){return this.adapter_.getName()};var ewd=function(a,b){this.provider_=a;this.itemFactory_=b};ewd.prototype.search=function(a,b){var c=this,d;return z(function(e){if(e.nextAddress==1)return b<1?e.return([]):B(e,c.provider_.search((new nSc).setQuery(a).setMaxResults(b)),2);d=e.yieldResult;return e.return(fwd(d))})};ewd.prototype.lookup=function(a){var b=this,c;return z(function(d){if(d.nextAddress==1)return a.length?B(d,b.provider_.lookup(a),2):d.return([]);c=d.yieldResult;return d.return(fwd(c))})};ewd.prototype.getName=function(){return this.provider_.name};var gwd=function(a,b){this.provider_=a;this.itemFactory_=b};gwd.prototype.getPosition=function(){return this.provider_.getPosition()};gwd.prototype.needsWarmUp=function(){return this.provider_.needsWarmUp()};gwd.prototype.warmUpCache=function(){var a=this,b;return z(function(c){if(c.nextAddress==1)return B(c,a.provider_.warmUpCache(),2);b=c.yieldResult;return c.return(fwd(b))})};gwd.prototype.getName=function(){return this.provider_.name};var hwd=new V9(68,69,38);var iwd=function(){},jwd=function(a){var b=[];a=l(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=void 0,e=[],f=l(c.getTargetList()),h=f.next();!h.done;h=f.next())h=occ(c,h.value,7),e.push(String(h.id)),h.coalescedKeys=e,d||(d=h),b.push(h);d&&Et(d.id)&&(e=void 0,d.totalMemberCount=(e=Gu(c,4))!=null?e:void 0,d.memberKeys=c.getMemberList().map(function(k){var q=l(k.getTargetList());for(q=q.next();!q.done;q=q.next())return k=occ(k,q.value,8),b.push(k),String(k.id)}))}return b},fwd=function(a){a=
Sj(a,uoc,1,Bj());return jwd(a)};var kwd=function(a){this.delegate_=a};kwd.prototype.processItem=function(a){a.target=scc(a);this.delegate_.processItem(a);a.resultData&&delete a.resultData;a.targetData&&delete a.targetData};var tcc=function(){};
tcc.prototype.configure=function(a){var b=a.clientConfig,c=a.trackers,d=a.storage,e=a.indexer,f=a.trieFactory,h=a.prefixCaches;a=a.lookupStages;var k=b.runtimeConfig_.customDataConfig_;if(k){var q=b.getClient(),v=new iwd;var A=A===void 0?Srd:A;b=new Vsd(b,new kwd(A));A=[];for(var E=l(k.staticDataProviders_.reverse()),H=E.next();!H.done;H=E.next()){H=H.value;var L=c,O=H;O=new cwd(O,L);O=new dwd(new gwd(O,v),b,f,d,q);L=new W9(O,L,hwd);switch(H.getPosition()){case 1:A.push(L);break;case 2:h.push(L);
break;default:throw Error("ag");}}A.length&&h.splice.apply(h,[0,0].concat(p(A)));k=l(k.dynamicDataProviders_);for(A=k.next();!A.done;A=k.next())A=A.value,E=c,H=A,H=new bwd(H,E),H=new $vd(new ewd(H,v),b,f,d,q),E=new W9(H,E,hwd),h.push(E),A=new bwd(A,c),a.push(new awd(new ewd(A,v),b,e))}};var lwd={create:function(a){var b=H9b(Nrd||(Nrd=Mrd('[[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,null,null,["person.name","person.photo","person.email","person.metadata"]],[null,740,null,null,[[180,181,178,179]]],[7,true]]')));a=new v9(b,a);a.runtimeConfig_.getExperiments().getProfileId()?Ord(a).getIsEnabled()?
(b=H9b(Qrd||(Qrd=J9b('[null,null,null,null,null,null,null,"AIzaSyABqJ85_R2irnKzMtGBL0iHuyFBi6Efk1w"]'))),b=new K9b(b,1)):b=new dt:b=new dt;var c=a.runtimeConfig_.getExperiments().getProfileId_legacyNullable(),d=a.runtimeConfig_;hu=b.loadExperiments(Ord(a).getApplication(),(new L9b).setPeopleApiEnv(d.getPeopleApiEnv()),c);b={};c=new ftd;d=l([ucc]);for(var e=d.next();!e.done;e=d.next())e=e.value,c=e(c,b);c=c===void 0?new ftd:c;b=a.getClearcut();b=new wvd(b,a.runtimeConfig_);b=at(b);b=new Q9(b);d=new etd(a,
b);e=c;c=d.targetFactory_;var f=a.getClient();c=new Ctd(c,f);var h=h===void 0?lvd:h;h=new mvd(d.loader_,a,h);f=new jvd(h,b,a);var k=[new avd,new Ktd,new vtd].concat(p(e.cacheConfigurators_),[new Cud]);e=[];var q=[],v=new Ptd(c,a);h=new Otd(q,v,a);d={clientConfig:a,trackers:b,storage:c,indexer:v,loader:f,loaderFactory:d,trieFactory:new lud(c,h,b),prefixCaches:e,lookupStages:q};f=l(k);for(k=f.next();!k.done;k=f.next())k.value.configure(d);d=new Xtd(e);h=new bud(a,b,d,h,c);d=a.getClient();c=new Oud(d,
c);d=a.getClient();h=new Aud(h,c,d);c=new Uvd(a);a=a.getClearcut();h=new Xvd(h,c,a);h=new $9(h,b);return new qvd(h)}};var mwd=function(){};mwd.prototype.send=function(a,b){AKa(a);return this.makeRequest(a).then(function(c){return b?wKa(b,c):c})};var nwd=function(a,b,c,d,e){this.gapiUrl=a;this.gapiKey=b;this.customGapiPromise=null;this.gapiConfigUpdates=c||{};this.gapiAuthParams=d||{};this.defaultApiId=e};Y(nwd,mwd);g=nwd.prototype;g.getGapi=function(){var a=this;return(this.customGapiPromise||mLa()).then(function(b){b=b||window.gapi;a.setGapiConfig(b);return sLa(b,{apiKey:a.gapiKey,clientId:a.gapiAuthParams.clientId,scope:a.gapiAuthParams.scope,hostedDomain:a.gapiAuthParams.hostedDomain,fetchBasicProfile:a.gapiAuthParams.fetchBasicProfile}).then(function(){return b})})};
g.makeRequest=function(a){var b=this;return this.getGapi().then(function(c){return z(function(d){if(d.nextAddress==1)return b.gapiAuthParams.minAuthTokenTimeRemaining===void 0?d.jumpTo(2):B(d,rLa(c,b.gapiAuthParams.minAuthTokenTimeRemaining),2);b.setGapiConfig(c);return d.return(b.parseResponse(c.client.request(b.createRequestParams(a))))})})};
g.createRequestParams=function(a){return{root:this.gapiUrl,path:a.path,method:a.httpMethod,body:a.body,params:a.queryParams,headers:a.headers,authType:a.authType,apiId:a.apiId||this.defaultApiId}};g.parseResponse=function(a){return new Promise(function(b,c){a.then(function(d){b(d.result===!1&&d.body!=null?{data:d.body}:d.result)},function(d){c(d.result===!1&&d.body!=null?{data:d.body}:d.result)})})};
g.setGapiConfig=function(a){for(var b in this.gapiConfigUpdates)this.gapiConfigUpdates.hasOwnProperty(b)&&pLa(a,b,this.gapiConfigUpdates[b])};nwd.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var c$=function(){};c$.\u0275fac=function(a){return new (a||c$)};c$.\u0275mod=uf({type:c$});
c$.\u0275inj=Dd({providers:[{provide:gIc,useFactory:function(){var a=new nwd("https://people-pa.googleapis.com","AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s",{withCredentials:!0,"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0}),b=uLa();a.customGapiPromise=b;return new vCc(a)}}],imports:[{ngModule:yQ,providers:[HO,{provide:jSc,useFactory:function(){return{authRealm:1,peopleApiEnv:4,peopleStoreClient:lwd,autocompleteFactory:Kqd}}}]},{ngModule:bV,providers:[GU,
{provide:g2c,useFactory:function(){return{authRealm:1,peopleApiEnv:4,peopleStoreClient:lwd,searchBarFactory:Jrd}}}]}]});var xcc={os:1223084,version:1223033},wcc={os:201569,version:201543};var Dcc={unconfirmed:5437934,chromiumRegression:5438261},Ccc={unconfirmed:1218157,chromiumRegression:1218155};var d$={},owd=(d$.NETWORK_DOWNLOADING=[{type:"INPUT",question:"What specific URL can reproduce the problem?",answerPrefix:"Example URL: "}],d$.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"}],d$.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?"}}]}],d$.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:Zi([Xi("What is the link to that software in "),vcc("the Chrome Webstore","https://chrome.google.com/webstore"),Xi("?")]),answerPrefix:"WebStore page: "}],d$.WEBSTORE=[{type:"INPUT",question:"What is the URL of the Chrome WebStore page that had the problem?",answerPrefix:"Webstore page: "}],
d$.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"]}],d$.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"]}],d$.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"}}]}],d$.SECURITY=[{type:"INPUT",question:"For crashes, what type of crash [tab, browser, etc.]:",answerPrefix:"Type of crash: "},{type:"TEXT",question:Zi([Xi("For crashes, what was the crash state? [See "),
vcc("Reporting Crash Bugs","https://www.chromium.org/Home/chromium-security/reporting-security-bugs/#reporting-crash-bugs"),Xi(", 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: "}],d$);var e$=function(){};e$.\u0275fac=function(a){return new (a||e$)};e$.\u0275mod=uf({type:e$});e$.\u0275inj=Dd({imports:[RU]});var f$=function(){};f$.\u0275fac=function(a){return new (a||f$)};f$.\u0275mod=uf({type:f$});f$.\u0275inj=Dd({providers:[Tgd,vx],imports:[px,kx,J4,GC,Cx,R4,P4,px]});var g$=function(){};g$.\u0275fac=function(a){return new (a||g$)};g$.\u0275mod=uf({type:g$});g$.\u0275inj=Dd({providers:[{provide:Kgd,useValue:owd},{provide:Mgd,useFactory:ycc},{provide:Lgd,useFactory:Bcc},{provide:Ngd,useFactory:Ecc}],imports:[NV,HC,f2,Ay,BG,e$,lM,GM,RN,hQ,f$,TV]});var h$=function(){};h$.\u0275fac=function(a){return new (a||h$)};h$.\u0275mod=uf({type:h$});h$.\u0275inj=Dd({imports:[HC,BG,CG,jQ,Ay,By,W0]});var i$=function(){};i$.\u0275fac=function(a){return new (a||i$)};i$.\u0275mod=uf({type:i$});i$.\u0275inj=Dd({imports:[DG,HC,W0,hO,Ay,gL,CG,lM,V1,SQ]});var j$=function(){};j$.\u0275fac=function(a){return new (a||j$)};j$.\u0275mod=uf({type:j$});j$.\u0275inj=Dd({imports:[HC,BG,CG,jQ,Ay,By,W0]});var k$=function(){};k$.\u0275fac=function(a){return new (a||k$)};k$.\u0275mod=uf({type:k$});k$.\u0275inj=Dd({imports:[HC,BG,CG,JQ]});var l$=function(){};l$.\u0275fac=function(a){return new (a||l$)};l$.\u0275mod=uf({type:l$});l$.\u0275inj=Dd({imports:[HC,BG,CG,AN,k$,mH]});var m$=function(){};m$.\u0275fac=function(a){return new (a||m$)};m$.\u0275mod=uf({type:m$});m$.\u0275inj=Dd({imports:[HC,AN,DQ,CQ,BQ,CW,CG,tJ,BG]});var n$=function(){};n$.\u0275fac=function(a){return new (a||n$)};n$.\u0275mod=uf({type:n$});n$.\u0275inj=Dd({imports:[aw,Ay,Ty,WU,By]});var o$=function(){};o$.\u0275fac=function(a){return new (a||o$)};o$.\u0275mod=uf({type:o$});o$.\u0275inj=Dd({imports:[DG,PV,kQ,AI,FZ,p1,EM,hO,Ay,VU,C_,gL,R_,PM,BG,lM,hQ,wK,ZW,mH,HG,CG,p1,nL,oQ,By,n$,SQ,HC,Ww,TV,QV,l$,m$,yQ,bV,cV,zL]});var p$=function(){};p$.\u0275fac=function(a){return new (a||p$)};p$.\u0275mod=uf({type:p$});p$.\u0275inj=Dd({imports:[DG,HC,W0,hO,Ay,gL,CG,g2]});var q$=function(){};q$.\u0275fac=function(a){return new (a||q$)};q$.\u0275mod=uf({type:q$});q$.\u0275inj=Dd({imports:[HC,CG,BG,QN,W0,VU,C_,aZ,jQ,Ay,By,mH,zQ]});var r$=function(){};r$.\u0275fac=function(a){return new (a||r$)};r$.\u0275mod=uf({type:r$});r$.\u0275inj=Dd({imports:[wK,lM,HC,ox,BG,kQ,OU,TV]});var s$=function(){};s$.\u0275fac=function(a){return new (a||s$)};s$.\u0275mod=uf({type:s$});s$.\u0275inj=Dd({imports:[HC,CG,BG,QN,W0,jQ,wK,Ay,By,mH,zQ]});var t$=function(){};t$.\u0275fac=function(a){return new (a||t$)};t$.\u0275mod=uf({type:t$});t$.\u0275inj=Dd({imports:[DG,HC,W0,Ay,gL,QN,CG,zQ,lM,g2,AN]});var u$=function(){};u$.\u0275fac=function(a){return new (a||u$)};u$.\u0275mod=uf({type:u$});u$.\u0275inj=Dd({imports:[HC,a1,AN,BG]});var v$=function(){};v$.\u0275fac=function(a){return new (a||v$)};v$.\u0275mod=uf({type:v$});v$.\u0275inj=Dd({imports:[HC,BG,i2,AN]});var w$=function(){};w$.\u0275fac=function(a){return new (a||w$)};w$.\u0275mod=uf({type:w$});w$.\u0275inj=Dd({imports:[HC,nW,O3,Ay,BG,lM,wK,GM,hQ,XQ,CG,tJ,oQ,By,H3]});var x$=function(){};x$.\u0275fac=function(a){return new (a||x$)};x$.\u0275mod=uf({type:x$});x$.\u0275inj=Dd({imports:[HC,a_,J1]});var y$=function(){};y$.\u0275fac=function(a){return new (a||y$)};y$.\u0275mod=uf({type:y$});y$.\u0275inj=Dd({imports:[HC,qQ,Ay,QN,hL,zQ,gL,ZW,BG,lM,CG,wK,AN]});var z$=function(){};z$.\u0275fac=function(a){return new (a||z$)};z$.\u0275mod=uf({type:z$});z$.\u0275inj=Dd({imports:[DG,HC,qQ,a_,OZ,x3,E3,G3,S_,W0,P3,w$,Ay,gL,BG,lM,wK,hQ,HG,QN,CG,zQ,V1,y$,Ww,x$,T1,AN,SQ,OQ,f8]});var A$=function(){};A$.\u0275fac=function(a){return new (a||A$)};A$.\u0275mod=uf({type:A$});A$.\u0275inj=Dd({imports:[HC,W0,Ay,BG,lM,wK,XQ,QN,CG,HG,zQ,Ww,T1,gY,$O,J1,JW]});var B$=function(){};B$.\u0275fac=function(a){return new (a||B$)};B$.\u0275mod=uf({type:B$});B$.\u0275inj=Dd({imports:[HC,BG,Zy,zL,Bw,yL,Ay,By,Ny,hQ,GC,Vy,QN]});var C$=function(){};C$.\u0275fac=function(a){return new (a||C$)};C$.\u0275mod=uf({type:C$});C$.\u0275inj=Dd({imports:[HC,JL]});var D$=function(){};D$.\u0275fac=function(a){return new (a||D$)};D$.\u0275mod=uf({type:D$});D$.\u0275inj=Dd({imports:[HC,C$,tJ,CG]});var E$=function(){};E$.\u0275fac=function(a){return new (a||E$)};E$.\u0275mod=uf({type:E$});E$.\u0275inj=Dd({imports:[HC,hL,JL,kQ,BG]});var F$=function(){};F$.\u0275fac=function(a){return new (a||F$)};F$.\u0275mod=uf({type:F$});F$.\u0275inj=Dd({imports:[HC,JL,hL]});var I$=function(){};I$.\u0275fac=function(a){return new (a||I$)};I$.\u0275mod=uf({type:I$});I$.\u0275inj=Dd({imports:[HC,hL,JL,kQ]});var J$=function(){};J$.\u0275fac=function(a){return new (a||J$)};J$.\u0275mod=uf({type:J$});J$.\u0275inj=Dd({imports:[HC,CG,tJ,I$,F$,E$]});var K$=function(){};K$.\u0275fac=function(a){return new (a||K$)};K$.\u0275mod=uf({type:K$});K$.\u0275inj=Dd({imports:[HC,tJ]});var L$=function(){};L$.\u0275fac=function(a){return new (a||L$)};L$.\u0275mod=uf({type:L$});L$.\u0275inj=Dd({imports:[HC,K$,tJ,CG]});var M$=function(){};M$.\u0275fac=function(a){return new (a||M$)};M$.\u0275mod=uf({type:M$});M$.\u0275inj=Dd({imports:[HC,tJ]});var N$=function(){};N$.\u0275fac=function(a){return new (a||N$)};N$.\u0275mod=uf({type:N$});N$.\u0275inj=Dd({imports:[HC,CG,tJ,M$]});var O$=function(){};O$.\u0275fac=function(a){return new (a||O$)};O$.\u0275mod=uf({type:O$});O$.\u0275inj=Dd({imports:[HC,VQ,CG,mH,lM,BG,zL]});var P$=function(){};P$.\u0275fac=function(a){return new (a||P$)};P$.\u0275mod=uf({type:P$});P$.\u0275inj=Dd({imports:[HC,VQ,mH]});var Q$=function(){};Q$.\u0275fac=function(a){return new (a||Q$)};Q$.\u0275mod=uf({type:Q$});Q$.\u0275inj=Dd({imports:[HC,AL,JL,Lx,GC,lH,ox,NU]});var R$=function(){};R$.\u0275fac=function(a){return new (a||R$)};R$.\u0275mod=uf({type:R$});R$.\u0275inj=Dd({imports:[aw,LI,IQ]});var S$=function(){};S$.\u0275fac=function(a){return new (a||S$)};S$.\u0275mod=uf({type:S$});S$.\u0275inj=Dd({imports:[HC,JL,AL,XQ,QN,lM,CG,BG,O$,Q$,P$,AN,DQ,qQ,R$,AQ,J$,N$,lH,L$,D$,B$,ox]});var T$=function(){};T$.\u0275fac=function(a){return new (a||T$)};T$.\u0275mod=uf({type:T$});T$.\u0275inj=Dd({imports:[HC,BG,S$,CG]});var U$=function(){};U$.\u0275fac=function(a){return new (a||U$)};U$.\u0275mod=uf({type:U$});U$.\u0275inj=Dd({imports:[HC,VQ,CG]});var V$=function(){};V$.\u0275fac=function(a){return new (a||V$)};V$.\u0275mod=uf({type:V$});V$.\u0275inj=Dd({imports:[HC,DQ,AN,U$,P$,JL,qQ,R$,AQ,CW,BG,QN,XQ,CG]});var W$=function(){};W$.\u0275fac=function(a){return new (a||W$)};W$.\u0275mod=uf({type:W$});W$.\u0275inj=Dd({imports:[HC,Ay,BG,CG,By,UX,T$,V$,SG]});var X$=function(){};X$.\u0275fac=function(a){return new (a||X$)};X$.\u0275mod=uf({type:X$});X$.\u0275inj=Dd({imports:[hQ,HC,Ay]});var Y$=function(){};Y$.\u0275fac=function(a){return new (a||Y$)};Y$.\u0275mod=uf({type:Y$});Y$.\u0275inj=Dd({imports:[TQ,HC,Ay,lM,BG,wK,hQ,GM,HG,XQ,mH,QN,CG,JG,zL,nL,o6,X$,AN,AI,GC,cV]});var Z$=function(){};Z$.\u0275fac=function(a){return new (a||Z$)};Z$.\u0275mod=uf({type:Z$});Z$.\u0275inj=Dd({imports:[HC,jQ,BG]});var pwd={disableCheatSheet:!0};pwd=pwd===void 0?{}:pwd;
var qwd=[HC,yZ,CH,jC,pJ,BZ,R_,AL,wY,gL,bZ,JG,yY,V1,gY,dZ,KQ,DG,h1,k_,sY,i3,g4,iW,DL,PM,EU,ZZ,BQ,p$,t$,v$,u$,l5,J6,T7,V7,i$,z$,A$,R7,a1,i2,S_,R3,Z3,m1,wJ,Y0,F_,i4,j3,L3,k3,a4,K3,J3,F1,H1,SN,D1,D_,iZ,TQ,kQ,OU,r$,eR,rY,O1,aZ,sM,R1,k2,y1,z1,Y3,R2,AN,AZ,rT,oM,lY,G3,Z$,P3,I3,x2,hL,qQ,JL,Y$,KL,uJ,i1,o1,g2,T1,j1,W0,m3,h$,j$,D3,Y1,i_,a_,b_,OZ,k1,A1,m_,uQ,q1,r1,C_,e2,s1,t1,E3,CZ,GZ,zQ,X0,PV,x3,q$,HY,s$,o$,HZ,g8,s2,l8,W$,nY,W3,fC,{ngModule:BH,providers:[hH,{provide:PBc,useFactory:function(a){return new vCc(new uCc("https://appswaldo-pa.clients6.google.com",
a.waldoApiKey,a.globalApiKey,Object.assign({},xCc,a.gapiConfig),{scope:"https://www.googleapis.com/auth/calendar.readonly"}))},deps:[wCc]},{provide:wCc,useFactory:function(){return{waldoApiKey:"AIzaSyDvxpDVHooCQawPUQkmQxwrtt-Xdp3Q3so",globalApiKey:"AIzaSyClMyMjdjUv-Z9gej4bgUQoU3CSbak7a9s",gapiConfig:{withCredentials:!0}}}}]},{ngModule:LG,providers:[KG,{provide:xAc,useValue:pwd}]},c$];Qwa("enableChromeWizard")&&qwd.push(g$);
var rwd=[Rja(function(){r(QE)}),Ztc,ned,oed,ped,F7c,Pwc,{provide:WQc,useValue:{animationDuration:"0ms",stretchTabs:!1}},{provide:NZc,useValue:{productName:"Buganizer",cooldownMilliseconds:864E5,enableUsageTracking:!0}},{provide:oAc,useValue:{disableTooltipInteractivity:!0,showDelay:100,hideDelay:0}},{provide:nUc,useValue:"AIzaSyCBj23e6C2MNif_tvceM-CPTXcVDK3sarY"},{provide:qUc,useValue:"92912"},pgd,Agd,Bgd,Cgd],Nv=function(){};Nv.prototype.ngDoBootstrap=function(){Vj("bootstrapping AppModule")};
Nv.\u0275fac=function(a){return new (a||Nv)};Nv.\u0275mod=uf({type:Nv,bootstrap:[d9c,mgd]});Nv.\u0275inj=Dd({providers:[].concat(p(rwd)),imports:[qwd,k8]});AE(document,"DOMContentLoaded",function(){Zhc()});
__._ModuleManager_initialize=function(){};
__._ModuleManager_initialize('c/wrzEXb/dSirkf/n90YA/ZGAB2e/sLGWFe/M79aPc/nJ4XF/hZVRae',[]);
}catch(e){__._DumpException(e)}
}).call(this,this.default_b);
// Google Inc.
